No module named 'tensorflow.contrib.framework.ops'

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution: win 10
TensorFlow installed from (source or binary): I don't remember....
TensorFlow version: 1.15.0
Python version: 3.6
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source): 0.26.1
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:10.0/7.4
GPU model and memory: MX330

Describe the problem
When i run the train_ssd_network.py in ssd training program there was an error:
from tensorflow.contrib.framework.ops import variables as contrib_variables
ModuleNotFoundError: No module named 'tensorflow.contrib.framework.ops'
=====================================================
The codes which caused problem are in metrics.py and these are part of the codes:
import tensorflow as tf
import numpy as np
from tensorflow.contrib.framework.ops import variables as contrib_variables
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import nn
from tensorflow.python.ops import state_ops
from tensorflow.python.ops import variable_scope
from tensorflow.python.ops import variables
from tf_extended import math as tfe_math
Provide the exact sequence of commands / steps that you executed before running into the problem
Any other info / logs

Hello @0smilingpig,
tensorflow.contrib is being removed in version 2.x,I request you to please refer this document to migrate from TensorFlow 1.x to TensorFlow 2.
Also I request you to please try to update the latest stable version 2.8 for here.There is a high possibility that any bug fixes with later TF versions.Thanks!

Thank you for your comment, but I said I am using tensorflow version 1.14.0 which doesn't remove tensorflow.contrib and now the error occurred. I wonder why there is no module named tensorflow.contrib.framework.ops in 1.14.0 if tensorflow.contrib is still exist on that version.
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年4月14日(星期四) 晚上10:30
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [tensorflow/tensorflow] No module named 'tensorflow.contrib.framework.ops' (Issue #55620)
Hello @0smilingpig,
tensorflow.contrib is being removed in version 2.x,I request you to please refer this document to migrate from TensorFlow 1.x to TensorFlow 2.
Also I request you to please try to update the latest stable version 2.8 for here.There is a high possibility that any bug fixes with later TF versions.Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@0smilingpig ,
We see that you are using tf version 1.14, where 1.x is not actively supported.Requesting you, please update to latest v2.x and let us know if you are facing same issue.Thanks!

Well, I have tried it on 2.8.0 and 1.15.0 before but they didn't work, then I downgrade to 1.14.0 the problem was still there.
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年4月18日(星期一) 晚上6:41
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [tensorflow/tensorflow] No module named 'tensorflow.contrib.framework.ops' (Issue #55620)
@0smilingpig ,
We see that you are using tf version 1.14, where 1.x is not actively supported.Requesting you, please update to latest v2.x and let us know if you are facing same issue.Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@0smilingpig Contrib module exists in tensorflow 1.15. Here is my github gist.
You are importing variables from the wrong path inside contrib module.
Instead of using from tensorflow.contrib.framework.ops import variables as contrib_variables,
use from tensorflow.contrib.framework.python.ops import variables as contrib_variables

TF 1.15 is out of date. We no longer support it.

(sorry, closed by mistake)

@0smilingpig ,
As suggested 1.15 is not actively supported.Please upgrade to latest version.Also as per comment I request you,please try to use from tensorflow.contrib.framework.python.ops import variables as contrib_variables.Thanks!


Style: Update scala doc wrapping

Codecov Report

Merging #959 (17ca859) into main (e514484) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #959   +/-   ##
=======================================
  Coverage   55.80%   55.80%
=======================================
  Files          71       71
  Lines        2238     2238
  Branches       57       57
=======================================
  Hits         1249     1249
  Misses        989      989

Impacted Files
Coverage Δ

zio-http/src/main/scala/zhttp/html/Dom.scala
100.00% <ø> (ø)

zio-http/src/main/scala/zhttp/http/Cookie.scala
72.44% <ø> (ø)

zio-http/src/main/scala/zhttp/http/HExit.scala
76.00% <ø> (ø)

zio-http/src/main/scala/zhttp/http/Headers.scala
86.36% <ø> (ø)

zio-http/src/main/scala/zhttp/http/Http.scala
71.65% <ø> (ø)

...io-http/src/main/scala/zhttp/http/Middleware.scala
91.37% <ø> (ø)

zio-http/src/main/scala/zhttp/http/Response.scala
81.03% <ø> (ø)

...src/main/scala/zhttp/http/RouteDecoderModule.scala
100.00% <ø> (ø)

...c/main/scala/zhttp/http/headers/HeaderChecks.scala
80.00% <ø> (ø)

.../scala/zhttp/http/headers/HeaderConstructors.scala
22.89% <ø> (ø)

... and 17 more

Continue to review full report at Codecov.

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


Does this work in background mode?

Is it possible to keep BT alive?

Sorry this is not our plate for now.

Thank you.


"dataset" and IE

Please read what it says here:
http://stackoverflow.com/questions/23034428/having-problems-in-ie8-when-attempting-to-get-data-from-target-event
It appears that the use of "dataset" causes problems for IE10 and below.
Would you consider fixing this? (if it a problem at all)
Thx.

@af7 Fixed.
Really thanks for your information :+1:


Add a mergePublisher operator to IterableFunctor that allows reactive-streams Publishers to be asynchronously merged into a single Stream

ListX.of(1,2,3)
        .mergePublisher(Arrays.asList(Maybe.of(4),Maybe.of(5)))
       .toListX()

hasItems(1,2,3,4,5)

Implemented in https://github.com/aol/cyclops-react/pull/141


Adjust profile pic padding and sizing and fix chapter 2 outro screen

Closes #481

I think the text is low enough the ch2 outro on mobile but want to double check with @GBKS

@benalleng you have some conflicts


Shard content by version + language

Not sure we should merge this, as performance didn't improve (see https://docs.google.com/spreadsheets/d/1w0tSfL-MKFArSrB-L8IX1pxmrhWmQyNgNwQRloG3cLk/edit#gid=456110917)
Maybe we should just keep the routing part (because it simplifies queries a bit) and drop the sharding config?

Maybe we should just keep the routing part (because it simplifies queries a bit) and drop the sharding config?

Yeah, that makes sense (dropping the shards). Based on this doc recommendations https://docs.aws.amazon.com/opensearch-service/latest/developerguide/bp.html#bp-sharding-strategy

However, shard count is secondary to shard size—if you have 5 GiB of data, you should still use a single shard

And looking at the index size:
health status index        uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   guide-000002 _O-S0RTLRLG6h1b3BcrDmQ   1   0       6675            0      368mb          368mb

And then we never update/refresh the index after initial indexing so I'd suspect that having smaller shards does not change much in our case...

Agreed, thanks for having a look. I rebased and added a commit to disable sharding.


Fix OffsetDateTimeTest failures

Closed in favor of https://github.com/hibernate/hibernate-orm/pull/4279


FFFE07D1 - Xbox 360 Dashboard

Marketplace
Tested on https://github.com/xenia-canary/xenia-canary/commit/60ab11ad0
Upstream compatibility: https://github.com/xenia-project/game-compatibility/issues/1713
Issues:
Title crashes immediately.
Version used: 2.0.1888.0
Latest version: 2.0.17559.0
Log:
log.zip
Screenshot(s):

Labels:
kernel-unimplemented-feature, state-nothing / state-crash-guest

Is there a download anywhere?

Bugchecked under 2.0.17559.0 dash with code DRIVER_OVERRAN_STACK_BUFFER (0xF7):

Boots w/ 2.0.13604.0 dash, fails to render any and all typefaces. Application crash/deadlock occurs several seconds after attempting to invoke xam function xeXamUserReadProfileSettingsEx()/XamUserGetUserTenure():

Tested with xenia-canary/xenia-canary@74b5271


[Feature]: Support clean distPath of DTS before build

What problem does this feature solve?
For js outputs, Rsbuild will automatically clean distPath, see more details https://rsbuild.dev/config/output/clean-dist-path#outputcleandistpath
And for DTS outputs, we should also support to control the behaviour of clean DTS distPath after below code:
https://github.com/web-infra-dev/rslib/blob/4b5f674789059bea3456e1105cb3cf9b051912d7/packages/plugin-dts/src/index.ts#L63
The default value of clean should directly read from output.cleanDistPath

if it is false value, do not remove DTS distPath
otherwise, just remove DTS distPath

Do we need a new option? How about always reading output.cleanDistPath.

As a Rsbuild plugin, the DTS plugin could add a new config field, and defaults to Rsbuild's output.cleanDistPath while could be altered by user. In Rslib, we don't need to expose the config at the moment.

As a Rsbuild plugin, the DTS plugin could add a new config field, and defaults to Rsbuild's output.cleanDistPath while could be altered by user. In Rslib, we don't need to expose the config at the moment.

Rsbuild plugin can directly read output.cleanDistPath, seems no need to add an extra options for rsbuild-plugin-dts


update to official maven wrapper, remove MavenWrapperDownloader

Addresses issue TS-29632

[x] Changes are tested adequately - ran build, still works
[x] Teamscale documentation updated in case of relevant user-visible changes
[x] CHANGELOG.md updated - not necessary
[x] Present new features in N&N

Please respect the vote of the Teamscale bot or flag irrelevant findings as tolerated or
false positives. If you feel that the Teamscale config or architecture file needs adjustment, please state so in a
comment and discuss this with your reviewer.

@sewe I agree about Git magic. I don't have a Windows system to test, so could you please test: does the script work with LF on Windows? If so, I would simply use whatever the wrapper generated as there's not functional difference between LF and CRLF then. And noone's supposed to manually edit the mvnw.cmd file, so whether it's readable in, say, Notepad, doesn't matter.


[ENG-1320] Same link using per multiples titles

Description

Replace renderer head to Nesting Unique Head Counter on config.rb to generate HTML id for each section

Testing required outside of automated testing?

[X] Not Applicable

Screenshots (if appropriate):
Prod

Fix

[ ] Not Applicable

Rollback / Rollforward Procedure

[ ] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

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


UI Still says 0.7

Needs to be updated to 1.0

16ef83f1ce9fda0907a13ae8063d52d18270b120 updated the version number to 1.0 beta.
I'd say that probably suffices for closing this issue, the final version number bump should be covered in a release checklist or something similar.


Ability to log JSON

Summary

Would be cool to be able to set up JSON logging.
Problem Definition

So I am using Loki as a centralised solution for logs management and it allows you to structure logs in a fancy way if they are not a plain string, but a JSON object instead, that way the logging solution (such as Elastic Stack or Loki) can destructure it and later you can aggregate the logs based on the internal JSON fields (like, displaying only logs related to a specific chain).
For me, I'd benefit a lot if there'd be a way to configure Hermes so it'd log JSON instead of strings to use it.
Proposal

Have a config entry for logging that spams logs as JSON objects rather than strings, similar to what cosmos-sdk does, something like
[global]
log_json = true # Defaults to false, as this is how it works now

If it's set to true, then the app should log in JSON.
Acceptance Criteria

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Actually nevermind this, it's already possible with hermes --json start. Sorry for disturbing :(


How to use MONAI - Unet with 2D images in png format

Hi there,
I am trying to use Unet from MONAI to train it with 2D png data, I am following the idea of this code:
https://github.com/Project-MONAI/tutorials/tree/main/2d_segmentation/torch
My png images are have dimension of 512 x 512, are in gray scale (they come from Ultrasound device)
The transforms that I am using are:
train_imtrans = Compose(
[
LoadImaged(keys=["img", "seg"]),
AddChanneld(keys=["img", "seg"]),
ScaleIntensityd(keys=["img", "seg"]),
RandCropByPosNegLabeld(
keys=["img", "seg"], label_key="seg", spatial_size=[96, 96], pos=1, neg=1, num_samples=4
),
RandRotate90d(keys=["img", "seg"], prob=0.5, spatial_axes=[0, 1]),
EnsureTyped(keys=["img", "seg"]),
]
)
val_transforms = Compose(
[
LoadImaged(keys=["img", "seg"]),
AddChanneld(keys=["img", "seg"]),
ScaleIntensityd(keys=["img", "seg"]),
EnsureTyped(keys=["img", "seg"]),
]
)
val_imtrans = Compose([LoadImage(image_only=True, ensure_channel_first=True), ScaleIntensity()])
val_segtrans = Compose([LoadImage(image_only=True, ensure_channel_first=True), ScaleIntensity()])
define array dataset, data loader
check_ds = ArrayDataset(images, train_imtrans, segs, train_segtrans)
check_loader = DataLoader(check_ds, batch_size=10, num_workers=2, pin_memory=torch.cuda.is_available())
im, seg = monai.utils.misc.first(check_loader)
I am getting this error:

RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_1277572/3049765578.py in
----> 1 im, seg = monai.utils.misc.first(check_loader)
2 #print(im.shape, seg.shape)
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/utils/misc.py in first(iterable, default)
83     Returns the first item in the given iterable or default if empty, meaningful mostly with 'for' expressions.
84     """
---> 85     for i in iterable:
86         return i
87     return default
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/dataloader.py in next(self)
679                 # TODO(https://github.com/pytorch/pytorch/issues/76750)
680                 self._reset()  # type: ignore[call-arg]
--> 681             data = self._next_data()
682             self._num_yielded += 1
683             if self._dataset_kind == _DatasetKind.Iterable and \
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/dataloader.py in _next_data(self)
1374             else:
1375                 del self._task_info[idx]
-> 1376                 return self._process_data(data)
1377
1378     def _try_put_index(self):
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/dataloader.py in _process_data(self, data)
1400         self._try_put_index()
1401         if isinstance(data, ExceptionWrapper):
-> 1402             data.reraise()
1403         return data
1404
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/_utils.py in reraise(self)
459             # instantiate since we don't know how to
460             raise RuntimeError(msg) from None
--> 461         raise exception
462
463
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py", line 91, in apply_transform
return apply_transform(transform, data, unpack_items)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py", line 55, in apply_transform
return transform(parameters)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/io/array.py", line 239, in call
img = reader.read(filename)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/image_reader.py", line 267, in read
img.append(itk.imread(name, **kwargs))
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/itk/support/extras.py", line 1293, in imread
reader = template_reader_type.New(**kwargs)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/itk/support/template_class.py", line 662, in New
itk.ImageFileReader, False, "FileName", *args, **kwargs
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/itk/support/template_class.py", line 161, in _NewImageReader
f"Could not create IO object for reading file {inputFileName}" + msg
RuntimeError: Could not create IO object for reading file image
The file doesn't exist.
Filename = image
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py", line 91, in apply_transform
return _apply_transform(transform, data, unpack_items)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py", line 55, in apply_transform
return transform(parameters)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/compose.py", line 173, in call
input = apply_transform(transform, input, self.map_items, self.unpack_items, self.log_stats)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py", line 118, in apply_transform
raise RuntimeError(f"applying transform {transform}") from e
RuntimeError: applying transform <monai.transforms.io.array.LoadImage object at 0x7f59adab2590>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py", line 1318, in getitem
return self.dataset[index]
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py", line 105, in getitem
return self._transform(index)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py", line 1215, in _transform
data.extend(to_list(dataset[index]))
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py", line 105, in getitem
return self._transform(index)
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py", line 91, in _transform
return apply_transform(self.transform, data_i) if self.transform is not None else data_i
File "/home/sonosa/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py", line 118, in apply_transform
raise RuntimeError(f"applying transform {transform}") from e
RuntimeError: applying transform <monai.transforms.compose.Compose object at 0x7f59adab2850>

Thanks a lot Eric for your response, but when I changed the in_channels  and out_channels to 3 (because it I leaving out_channels to 1) there was also a similar error,
config = {
# data
"cache_rate": 1.0,
"num_workers": 2,
# train settings
"train_batch_size": 2,
"val_batch_size": 1,
"learning_rate": 1e-3,
"max_epochs": 100, # it was 100
"val_interval": 10, # check validation score after n epochs
"lr_scheduler": "cosine_decay", # just to keep track

# Unet model (you can even use nested dictionary and this will be handled by W&B automatically)
"model_type": "unet", # just to keep track
"model_params": dict(spatial_dims=3,
              in_channels=3,
              out_channels=3,
              channels=(16, 32, 64, 128, 256),
              strides=(2, 2, 2, 2),
              num_res_units=2,
              norm=Norm.BATCH,
)

}
``
AssertionError                            Traceback (most recent call last)
/tmp/ipykernel_1373955/1893856992.py in
22         optimizer.zero_grad()
23         outputs = model(inputs)
---> 24         loss = loss_function(outputs, labels)
25         loss.backward()
26         optimizer.step()
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
1128         if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1129                 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1130             return forward_call(*input, **kwargs)
1131         # Do not call functions when jit is used
1132         full_backward_hooks, non_full_backward_hooks = [], []
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/losses/dice.py in forward(self, input, target)
144                 warnings.warn("single channel prediction, to_onehot_y=True ignored.")
145             else:
--> 146                 target = one_hot(target, num_classes=n_pred_ch)
147
148         if not self.include_background:
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/networks/utils.py in one_hot(labels, num_classes, dtype, dim)
151
152     if sh[dim] != 1:
--> 153         raise AssertionError("labels should have a channel with length equal to one.")
154
155     sh[dim] = num_classes
AssertionError: labels should have a channel with length equal to one.

I think that I can solve the problem converting my input images to gray scale, how can I do that ?

Change only in_channels to 3, leave out_channels as the number of classes you want to predict, or 1 if it's binary. If you want to convert to greyscale you might want to use command line tools to make a new dataset such as imagemagick.

When I do use in_channels to 3 and out_channels to 1, (because I only want to predict the segmentation of 1 tissue).  I am getting this error:
AssertionError                            Traceback (most recent call last)
/tmp/ipykernel_1376077/1893856992.py in
22         optimizer.zero_grad()
23         outputs = model(inputs)
---> 24         loss = loss_function(outputs, labels)
25         loss.backward()
26         optimizer.step()
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
1128         if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1129                 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1130             return forward_call(*input, **kwargs)
1131         # Do not call functions when jit is used
1132         full_backward_hooks, non_full_backward_hooks = [], []
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/losses/dice.py in forward(self, input, target)
144                 warnings.warn("single channel prediction, to_onehot_y=True ignored.")
145             else:
--> 146                 target = one_hot(target, num_classes=n_pred_ch)
147
148         if not self.include_background:
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/networks/utils.py in one_hot(labels, num_classes, dtype, dim)
151
152     if sh[dim] != 1:
--> 153         raise AssertionError("labels should have a channel with length equal to one.")
154
155     sh[dim] = num_classes
AssertionError: labels should have a channel with length equal to one.

My question about rgb to gray is because, my images are in png format, so maybe monai assumes that it in rgb and sets the channels to 3, but the images have a dimension of 512x512 (like a gray scale image). So, I was thinking, if I convert the images using monai to gray scale, the problem could be solved.

You could convert manually using a Lambdad and a function that does the conversion, one of these solutions would work but you have to keep in mind that your channel dimension will be first rather than last as expected here. I think you also need to look at how many channels your label images have, it seems they have 3 which implies three classes but if you want to do binary segmentation these need to have 1 channel only as well so they need converting.

Pardon, the output when I used in_channels to 3, leave out_channels to 1 (binary classifier), I am getting this error:

AssertionError                            Traceback (most recent call last)
/tmp/ipykernel_1376077/1893856992.py in
22         optimizer.zero_grad()
23         outputs = model(inputs)
---> 24         loss = loss_function(outputs, labels)
25         loss.backward()
26         optimizer.step()
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
1128         if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1129                 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1130             return forward_call(*input, **kwargs)
1131         # Do not call functions when jit is used
1132         full_backward_hooks, non_full_backward_hooks = [], []
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/losses/dice.py in forward(self, input, target)
155
156         if target.shape != input.shape:
--> 157             raise AssertionError(f"ground truth has different shape ({target.shape}) from input ({input.shape})")
158
159         # reducing only spatial dimensions (not batch nor channels)
AssertionError: ground truth has different shape ((8, 3, 96, 96)) from input ((8, 1, 96, 96))

Yes so your ground truth is 3 channel, you need to convert them to 1 channel if you have only 1 class. I have looked up what the transform would look like, something like this would work:
def _convert(image):
    r, g, b = image
    gray = 0.2989 * r + 0.5870 * g + 0.1140 * b
    return gray[None,...]

rgb_to_gray= Lambdad(["image","seg"],_convert)

If you use that after loading your image and label pairs and adding a channel that should convert both to grayscale.

Lambdad is a transform so it doesn't have a shape, I had meant it should be used in your transform sequence:
train_imtrans = Compose(
    [
        LoadImaged(keys=["img", "seg"]),
        Lambdad(["im","seg"],_convert),
        ScaleIntensityd(keys=["img", "seg"]),
    ...
    ]
)

Thanks a lot for your reply, but when I do that I am getting this error:
Just in case the images are in tensor format of size (8,3,96,96)
ValueError                                Traceback (most recent call last)
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py in apply_transform(transform, data, map_items, unpack_items, log_stats)
90             return [_apply_transform(transform, item, unpack_items) for item in data]
---> 91         return _apply_transform(transform, data, unpack_items)
92     except Exception as e:
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py in _apply_transform(transform, parameters, unpack_parameters)
54
---> 55     return transform(parameters)
56
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/utility/dictionary.py in call(self, data)
1039         for key, func, overwrite in self.key_iterator(d, self.func, self.overwrite):
-> 1040             ret = self._lambd(img=d[key], func=func)
1041             if overwrite:
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/utility/array.py in call(self, img, func)
831             raise TypeError(f"func must be None or callable but is {type(fn).name}.")
--> 832         out = fn(img)
833         # convert to MetaTensor if necessary
/tmp/ipykernel_1877514/4105821486.py in _convert(image)
1 def _convert(image):
----> 2     r, g, b = image
3     gray = 0.2989 * r + 0.5870 * g + 0.1140 * b
ValueError: too many values to unpack (expected 3)
The above exception was the direct cause of the following exception:
RuntimeError                              Traceback (most recent call last)
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py in apply_transform(transform, data, map_items, unpack_items, log_stats)
90             return [_apply_transform(transform, item, unpack_items) for item in data]
---> 91         return _apply_transform(transform, data, unpack_items)
92     except Exception as e:
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py in _apply_transform(transform, parameters, unpack_parameters)
54
---> 55     return transform(parameters)
56
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/compose.py in call(self, input_)
172         for transform in self.transforms:
--> 173             input = apply_transform(transform, input, self.map_items, self.unpack_items, self.log_stats)
174         return input_
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py in apply_transform(transform, data, map_items, unpack_items, log_stats)
117                 _log_stats(data=data)
--> 118         raise RuntimeError(f"applying transform {transform}") from e
119
RuntimeError: applying transform <monai.transforms.utility.dictionary.Lambdad object at 0x7fdd2ac62750>
The above exception was the direct cause of the following exception:
RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_1877514/1179077659.py in
1 check_ds = Dataset(data=val_files, transform=val_transforms)
2 check_loader = DataLoader(check_ds, batch_size=1)
----> 3 check_data = first(check_loader)
4 image, label = (check_data["image"][0][0], check_data["label"][0][0])
5 print(f"image shape: {image.shape}, label shape: {label.shape}")
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/utils/misc.py in first(iterable, default)
83     Returns the first item in the given iterable or default if empty, meaningful mostly with 'for' expressions.
84     """
---> 85     for i in iterable:
86         return i
87     return default
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/dataloader.py in next(self)
679                 # TODO(https://github.com/pytorch/pytorch/issues/76750)
680                 self._reset()  # type: ignore[call-arg]
--> 681             data = self._next_data()
682             self._num_yielded += 1
683             if self._dataset_kind == _DatasetKind.Iterable and \
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/dataloader.py in _next_data(self)
719     def _next_data(self):
720         index = self._next_index()  # may raise StopIteration
--> 721         data = self._dataset_fetcher.fetch(index)  # may raise StopIteration
722         if self._pin_memory:
723             data = _utils.pin_memory.pin_memory(data, self._pin_memory_device)
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py in fetch(self, possibly_batched_index)
47     def fetch(self, possibly_batched_index):
48         if self.auto_collation:
---> 49             data = [self.dataset[idx] for idx in possibly_batched_index]
50         else:
51             data = self.dataset[possibly_batched_index]
~/anaconda3/envs/monai/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py in (.0)
47     def fetch(self, possibly_batched_index):
48         if self.auto_collation:
---> 49             data = [self.dataset[idx] for idx in possibly_batched_index]
50         else:
51             data = self.dataset[possibly_batched_index]
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py in getitem(self, index)
103             # dataset[[1, 3, 4]]
104             return Subset(dataset=self, indices=index)
--> 105         return self._transform(index)
106
107
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/data/dataset.py in _transform(self, index)
89         """
90         data_i = self.data[index]
---> 91         return apply_transform(self.transform, data_i) if self.transform is not None else data_i
92
93     def getitem(self, index: Union[int, slice, Sequence[int]]):
~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/transforms/transform.py in apply_transform(transform, data, map_items, unpack_items, log_stats)
116             else:
117                 _log_stats(data=data)
--> 118         raise RuntimeError(f"applying transform {transform}") from e
119
120
RuntimeError: applying transform <monai.transforms.compose.Compose object at 0x7fdd2ac62e50>

THe _convert function I gave above assumes the first dimension has 3 channels for RGB. Your image has dimension (8,3,96,96) it seems. Your transform sequence is meant to work on one image at a time so if that dimension represents a  batch of 8 images you need to break that up and process your data in a different way somehow.


Import WIP component into AudioTemplate

Please import the WorkInProgress component into the AudioTemplate found inside components/ContentTemplates folder.
Then render the WorkInProgress component instead of the current div and placeholder sentence.
See the AlertsTemplate component if unsure how to do this and follow the same pattern.

hey, if the issue is still open, i can fix it. please assign it to me.

Sure, go ahead @jyotika6221

ok.

Can you please elaborate how to work on this issue? I'm facing difficulty.

Sure. How far have you gotten?

I forked and cloned the repository , went through the AlertTemplates component to see how is it done and saw the code.
But kindly tell me which file do i need to add this code to? Or if something else needs to be done please explain.
Thank you.

If you look in the folder Components/ContentTemplates you will find a file called AudioTemplate.
It currently looks like this
import React from "react"

const AudioTemplate = () => {
	return
AudioTemplate

}

export default AudioTemplate

Update it so it looks like this instead:
import React from "react"
import WorkInProgress from "../WorkInProgress/WorkInProgress"

const AudioTemplate = () => {
	return <WorkInProgress />
}

export default AudioTemplate

Thank you, i have requested for the pr.


catkin: 0.8.10-1 in 'noetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository catkin to 0.8.10-1:

upstream repository: git@github.com:ros/catkin.git
release repository: https://github.com/ros-gbp/catkin-release.git
distro file: noetic/distribution.yaml
bloom version: 0.10.6
previous version for package: 0.8.9-1

catkin
* Fix problem with Googletest's LIBRARY_OUTPUT_DIRECTORY (#1135 <https://github.com/ros/catkin/issues/1135>)
* deduplicate dependency lists of exported code generation targets (#1123 <https://github.com/ros/catkin/issues/1123>)
* Update maintainers (#1124 <https://github.com/ros/catkin/issues/1124>)
* Contributors: Michael Carroll, Timo Röhling, pseyfert

Please hold this PR while we investigate https://discourse.ros.org/t/upgrade-to-jenkins-2-277-3-causing-job-failures-across-ros-build-farms/20013 the farm is currently in shutdown mode but may require expansive job configuration which could delay successful rebuilds.

We should be good to go whenever now. Thanks for the patience!


refactor(plugin/favicon): preferred svg icon

Description
This PR makes the favicon plugin follow Definitive edition of "How to Favicon" in 2023 by default.
Related Issues
https://github.com/lumeland/lume.land/pull/99
Check List

[x] Have you read the
CODE OF CONDUCT
[x] Have you read the document
CONTRIBUTING

[x] One pull request per feature. If you want to do more than one thing,
send multiple pull request.
[ ] Write tests.
[x] Run deno fmt to fix the code format before commit.
[x] Document any change in the CHANGELOG.md.

Great! Thank you


Task: localise resource explorer

Overview
Fixes #1716 #1754
Demo
Optional. Screenshots, curl examples, etc.
Notes
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.
Testing Instructions

How to test this PR
Prefer bulleted description
Start after checking out this branch
Include any setup required, such as bundling scripts, restarting services, etc.
Include test case, and expected output

@thewahome There's Resources tab name and Switch to label that are yet to be localised.

@thewahome Remove is also missing some localization


{Misc.} Replace NBSP with normal ASCII space

Description
For unknown reason, https://github.com/Azure/azure-cli/pull/15998 added NBSP (Non-breaking space U+00A0) to scripts/release/debian/deb_install.sh
PyCharm:

VS Code:

This leads to display issue in Edge browser:
https://azurecliprod.blob.core.windows.net/$root/deb_install.sh

This PR replaces NBSP with normal ASCII space.
We've seen this issue before:

https://github.com/Azure/azure-cli/pull/19442
https://github.com/Azure/azure-cli/pull/8785

Packaging

There are also some NBSP under src path, should we also replace them?
For example:  src/azure-cli/azure/cli/command_modules/appservice/custom.py

There are also some NBSP under src path, should we also replace them?
For example: src/azure-cli/azure/cli/command_modules/appservice/custom.py

Nice catch!
https://github.com/Azure/azure-cli/blob/c2bffb8bef23728919fe8a315ef7553b103ec393/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L2719
https://github.com/Azure/azure-cli/blob/c2bffb8bef23728919fe8a315ef7553b103ec393/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L2730
They are added by #21309.

I found more special character in our source code.
doc/azure2az_commands.rst and doc/authoring_command_modules/README.md contains NBSP
src/azure-cli/HISTORY.rst contains NBSP & ZWSP
If this possible to create some rules to prevent these characters being merged?

I searched across the project but have no idea why PyCharm didn't find them. 🤔 I purged the cache, and it works now. Fixed everywhere.

There are so many unicode whitespace characters. If this is possible to create some rules to prevent these characters being merged?

Surely we can. I am just curious how they are inserted in the first place!

Use non-breaking spaces instead of regular spaces when you don't want Word to break a line at a certain space. Is it possible some of them are added for specific purpose, for example, avoid to break command into multiple lines?
@jiasli

Is it possible that some of them were added for specific purpose, for example, avoid to break command into multiple lines?

These are not valid scenarios, since line breaks are acceptable. We can resume our investigation once we see more occurrences.


TokensAnalyzer - isAnonymousClass bug on PHP8

Coverage increased (+0.002%) to 92.349% when pulling 6981ce4db44e5a5aa0e36a0769d4f04a2f0b672e on SpacePossum:master_PHP8_AnonymousClass_detection into f785f8817258cb07e94a751263cb6668854baa09 on FriendsOfPHP:master.

Thank you @SpacePossum.


Unexpected idle activity

newsboat 2.13.0
System: Linux 4.14.0-3-amd64 (x86_64)
Compiler: g++ 8.2.0
ncurses: ncurses 6.1.20181013 (compiled with 6.1)
libcurl: libcurl/7.64.0 GnuTLS/3.6.7 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.37.0 librtmp/2.3 (compiled with 7.61.0)
SQLite: 3.27.2 (compiled with 3.25.1)
libxml2: compiled with 2.9.4
Steps to reproduce the issue:

Open newsboat in a tmux window

Set tmux to notify of activity on another window
set -g monitor-activity on
set -g activity-action other

Go about your business in another tmux window

Within a few minutes, notice that tmux is indicating activity by newsboat.

Hi! Thank you for the report.
If that happens exactly a minute later, it's probably us—our main loop has a timeout of 60 seconds, after which it calls FormAction::prepare, which might update something. But for the feed list (the default screen, shown right after startup), that call does nothing unless terminal width or sort order changed—which probably doesn't happen in your case.
If you're trying to use activity monitoring to get notifications about new articles, check out notify-* settings. For example, Newsboat can beep when new articles arrive. This is more reliable than mere window updates.
Frankly, this is a very low-priority on my personal to-do list; e.g. I'd like to deal with i386 breakage first, and then there are a ton of more severe bugs. If someone would like to dig into this, I'd start with compiling STFL examples and checking if they trigger this bug as well. If they do, the problem is with STFL or something further down the stack, which we can't control (but you can dig into and submit patches to). If examples don't trigger the bug, I'd start slashing code from our FeedListFormAction to see when it stops triggering the bug, and work backwards to pinpoint the line that does.

On 2019-07-04 12:34, Alexander Batischev wrote:

Hi! Thank you for the report.
If that happens exactly a minute later, it's probably us—[1]our main
loop has a timeout of 60 seconds, after which it calls
FormAction::prepare, which might update something. But for the feed
list (the default screen, shown right after startup), that call [2]does
nothing unless terminal width or sort order changed—which probably
doesn't happen in your case.

Sounds like a simple fix, then. If newsboat is displaying the feed list,
don't call FormAction::prepare. Whatever cosmetic bells and whistles
there are to re-draw the display could be linked to some manual refresh
or some manual cursor or mouse movement within the window, instead of
being on a timer.

If you're trying to use activity monitoring to get notifications about
new articles

... No.

Frankly, this is a very low-priority on my personal to-do list

It shouldn't be.  From a security perspective, a program sitting idly in
background that shouldn't be doing anything ... shouldn't be doing
anything. Even if you trust newsboat to be benign, you're contributing
to people being complacent about any program x with the same behavior.
Security-wise, newsboat is in the class of programs that have network
access, so from a user's perspective activity not explicitly asked for
should be an alarm condition.
Even if you personally don't agree with what I wrote above, if recognize
the merit in it, this should not be low priority.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

I mentally separate me-maintainer from me-developer. Me-maintainer has just a couple of responsibilities, but he has to take care of them: making high-level decisions, merging PRs, cutting releases, and tending to infrastructure like CI. Me-developer is a free gun who is only responsible for his PRs, and works on whatever he feels like—or doesn't work at all if he doesn't want to. The paragraph about "my personal to-do list" was written by me-developer. I should have made this more explicit; sorry about the confusion.
Now with my maintainer hat on: the PR that fixes this issue is going to have the same priority to me as any other non-security-critical contribution—i.e. I'll handle it chronologically with other contributions. "Security-critical" means "worthy of a CVE number". Maintainer hat off now.
You don't seem interested in working on this yourself, so I won't waste your and my time explaining how the main loop works, and what your fix will break. If you intend to look into this, drop a comment here and I'll answer any further questions.


Unify supported schemas with TypeSchema?

TypeSchema is a nice project that unifies a range of validation libraries, including valibot.
I noticed that it's using a different "supported schemas" type than you do with this library. Here's their definition: https://github.com/decs/typeschema/blob/main/src/adapters/valibot.ts#L9
I had some trouble unifying this with your SupportedSchemas type. Maybe you know better what BaseSchema does, and if it's a good idea to add it, to make it work with both libraries.

Yes BaseSchema is the generic definition of a valibot schema while my SupportedSchema type is explicit on what schemas are supported or not.
I guess we can use BaseSchema for the on the toJSONSchema() input options and keep the SupportedSchema for internal documentation.
The only downside is that calling with a known unsupported schema (like: toJSONSchema({ schema: nan() })) won't produce a type error but a runtime error. But it's not that useful because it does not work with nested schema that contain an unsupported schema (like: toJSONSchema({ schema: object({ prop: nan() }) }) .
If you want to open a PR, go ahead

I'll do that, thanks. Will it be ok adding the async version as well?

I never tested the conversion of async schema. It should work because async and sync schema have the same options.
I guess we can still say we accept BaseSchemaAsync but in practice I think async schema are useless without customAsync() and of course it's impossible to convert to JSON schema

Merged and released in v0.0.22


Add cluster label for remote_cluster_sync_timeouts_total metric

Fix https://github.com/istio/istio/issues/44489

In other places we use cluster instead of cluster_id (controller_sync_errors_total).

@kebe7jun: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-test_istio
a159f8786dfec290bfa909b2898d1388e37a0cc2
link
true
/test release-test

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

@kebe7jun: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-test_istio
a159f8786dfec290bfa909b2898d1388e37a0cc2
link
true
/test release-test

integ-cni_istio
a159f8786dfec290bfa909b2898d1388e37a0cc2
link
true
/test integ-cni

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

/retest


Images are loaded lazily even though scripting is disabled via uBO (+uM)

Support for lazy loading was implemented in FF75.
According to this images and iframes are only loaded lazily when JS is enabled because they can otherwise leak a user's approximate scroll position.
STR:

set uBO to block 1st+3rd-party scripts globally & no-scripting: * true
set uM to block 1st+3rd-party scripts globally & noscript-spoof: * true
visit test site

Expected result:
All images were loaded immediately.
Actual result:
Images were loaded lazily.
Images were loaded immediately when JS was disabled via DevTools or setting javascript.enabled to false. Perhaps users who use extensions to disable JS should consider setting dom.image-lazy-loading.enabled to false?
Note: I have not tested if this affects NS or not.

Looks like documentation does not mention CSP and uBO/uMatrix disable scripting by injecting CSP directive.

https://whatpr.org/html/3752/images.html#updating-the-image-data

This is an anti-tracking measure, because if a user agent supported lazy loading when scripting is disabled, it would still be possible for a site to track a user's approximate scroll position throughout a session, by strategically placing images in a page's markup such that a server can track how many images are requested and when.

Unless I'm missing something, I fail to see how a scroll position on a page tracks someone ... "a site to track a user's approximate scroll position throughout a session" - they can already do that with SSL Session IDs, or cache + ETags or many other ways (zombie persistent local web data, HSTS?). I just don't get it. What relevance does how far down a page you scrolled allow anyone to track you

I fail to see how a scroll position on a page tracks someone

This allows a page without JS to get some information about your usage of a page (read only the header/just scan the article/deeply read a article/…).
TL;DR: Gather metadata on user behaviour when JS is disabled.

That's nuts. Just because a site (server) knows I scrolled to position 3 out of a possible 5, on a single page ... does not mean it can be used for tracking. It has zero linkability to any other site, let alone page in the same site - there's nothing stable about it

The :hover mouse position leak is also still present. => If you don't want to be tracked, use sites which don't track you.
https://nakedsecurity.sophos.com/2019/05/09/css-tracking-trick-can-monitor-your-mouse-without-javascript/

It has zero linkability to any other site, let alone page in the same site - there's nothing stable about it

Unfortunately I am no expert on this but they seem to be referring to 'tracking' in the sense that users' scrolling behavior within a session can be informational for purposes outside of re-identification across sessions? (e.g. % of visitors who read through a long-form article?)
Slightly off-topic: it would seem that Mozilla have decided to disable lazy loading in 78.2esr due to issues with printing/print preview and screenshots. The fix (for printing) in FF80 seems to involve forcing all uncached images to load when printing is triggered.
Again this is more of a question if anything, but could this be potentially leaking a user's intent to print a page/ take a screenshot, depending on how far they have scrolled?

potentially leaking a user's intent to print a page

If a site really wants to track this w/o JS, the can add a @media print { TrackDiv::before { content: url("https://example.com/track/print.png"); } }.

FYI: https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/40056

If a site really wants to track this w/o JS, the can add a @media print { TrackDiv::before { content: url("https://example.com/track/print.png"); } }.


Rename extra mouse buttons in the InputKey enum

Resolves #2575
vNext
InputKey enum names for extra mouse buttons have been renamed.
MouseButtonX -> ExtraMouseButtonX

Note that there is no Game PR for this. So you will need to update InputKey usages on framework update.


all: builders seeing test timeouts in various packages

Some recent ones:

cmd/link/internal/ld: https://build.golang.org/log/605bbee54f3f3bfa763b4185583b0cc550dee6e8
runtime: https://build.golang.org/log/63f6888c9a4ac251a0f1dbca2369679afc2c5835
cmd/fix: https://build.golang.org/log/d11055331cfdb560e1ef22854c786d5a146b80b6

This seems to have started sometime around the 28th of March: https://build.golang.org/
Since it's not a single package, and they don't seem to be related, this seems like a runtime or compiler issue. /cc @aclements @josharian @mdempsky

Josh filed an issue about flaky network tests that time out, but I doubt the two related: #24580

I've looked through all the recent failures, and I only see these three packages plus net. I wonder what's special about them.

Let's close this in favor of concrete bugs for certain packages.
It's likely that certain packages are now running up against the default 3 minute timeout.
Another reason to close this: this predates the move away from Kubernetes pods to dedicated VMs for Linux builders, so we have better isolation now.


Port aggregator as s-c-s processor

As a developer, I'd like to port aggregator module from XD to s-c-s repo, so I can use it as processor module to build streaming pipeline.
Acceptance:

aggregator as processor module is available in spring-cloud-stream-modules repo
maven repo includes aggregator module with respective group/artifact/version detail

This issue was moved to spring-cloud/spring-cloud-stream-app-starters#54


Test against Golang's SSL implementation

Relatively easy to shell out to go build from an integration test suite.

So I decided not to do that - rustls already tests against common implementations, and hopefully everyone does AEAD the same way, or nothing would be interoperable 🙃


Package for Archlinux

Hello,
Curious to use Ihaskell, I've created a package in AUR for Archlinux:
https://aur.archlinux.org/packages/ihaskell-git/
I use stack instead of cabal, because it's a little bit easier to manage afterwards, and it only installs the ihaskell binary for the user (well, without counting all the packages stack installs).
Hope it can be useful for some people!
Cheers,
Jiehong

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26216334-package-for-archlinux?utm_campaign=plugin&utm_content=tracker%2F332399&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F332399&utm_medium=issues&utm_source=github).

That's great!
This should be added to the README.

Added to README. Thanks!


General Grievance: Watch www-newjetnet.com

General Grievance requests the watch of the watch_keyword www-newjetnet\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

www-newjetnet\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


mark selected announcement as non-historical

So it won't spam history info

btw, I found there's an announce param but no used, is it deprecated?


Custom font special characters not rendered correctly on Web with CanvasKit

Steps to reproduce

Clone the shadcn_ui repo https://github.com/nank1ro/flutter-shadcn-ui
Switch to the branch feat/context-menu
cd example
flutter run -d chrome --web-renderer=canvaskit
After the app launched, click on the "ContextMenu" list tile.
See error

If you relaunch the app with the html renderer, everything works as expected, like the other platforms.
The font family used is Geist. The error happens only with canvaskit, in other platforms and with the html renderer everything works as expected
See screenshots below.
Maybe it's related to https://github.com/flutter/flutter/issues/96222, https://github.com/flutter/flutter/issues/90452 and https://github.com/flutter/flutter/issues/56319
Expected results
The font should work even when using the canvaskit renderer.
Actual results
The font doesn't show special characters, or they load very slowly. Even when loaded, the characters are not aligned with the others. Like the ⌘
Code sample
Code sample

Screenshots or Video

Screenshots / Video demonstration
With HTML renderer it works correctly

With CanvasKit the error happens

Logs
Logs
https://pastebin.com/5hhVPPqA

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64, locale en-IT)
    • Flutter version 3.24.1 on channel stable at /Users/ale/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5874a72aa4 (11 days ago), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/ale/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.92.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (4 available)
    • iPhone di Ale (mobile)          • 00008030-000E39E01EEB802E • ios            • iOS 17.6.1 21G93
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.5 23F79 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.5 23F79 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 128.0.6613.113

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Thanks for the detailed report.
I cloned the repo, but couldn't find ContextMenu option in the list displayed in the UI.
I tried both, main and feat/ branch.

Clone the repo with
git clone -b feat/context-menu https://github.com/nank1ro/flutter-shadcn-ui
cd flutter-shadcn-ui
cd example
flutter pub get
flutter run -d chrome --web-renderer=canvaskit

Thanks for the update. I see that the issue you are referring to is below:

For this, it seems similar to below issues that you can check:
https://github.com/flutter/flutter/issues/77023
https://github.com/flutter/flutter/issues/119547

Thanks for the update. I see that the issue you are referring to is below:

For this, it seems similar to below issues that you can check:
https://github.com/flutter/flutter/issues/77023
https://github.com/flutter/flutter/issues/119547

I've read the issues you provided, they seem related to the fallback font.
I'm not using the fallback font but a custom one (Geist) which is added to the assets by me.
I don't understand how this is related

Thanks for the update. Seeing the same behavior as reported.
Stable : 3.24.1
Master: 3.25.0-1.0.pre.219

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

@nank1ro FYI, you don't need to explicitly pass canvaskit renderer when you are running on web, as it is the default renderer.


Project using go-prompt (bit)

Hello, we are working on an experimental git cli replacement called bit and would love to see our project added to the "Projects using go-prompt" list.
bit is a Modernized Git CLI. https://github.com/chriswalz/bit
Many thanks!

Cool! I added Bit at https://github.com/c-bata/go-prompt/commit/8e6eb48b4aa09bfc6701ad171e6c855d873724a3.


MINOR: enable KRaft in MetadataRequestTest

Test failure is ReplicaManagerTest#testReplicaAlterLogDirsWithAndWithoutIds, which is not related to this PR.

Oops, the quorum parameter should be present for all of these. Fixed.

Failed tests are org.apache.kafka.streams.integration.StoreQueryIntegrationTest and kafka.admin.LeaderElectionCommandTest`, which are not related.


Can I have a 2-row toolbar????????????

sad..................... or maybe 3-row? HA!

and I like to use Google Translate, is there a way................. to.................................... change..................................................... never mind... T.T

Hi @c2xusnpq6, what version of Edge are you using?

Hi @c2xusnpq6, what version of Edge are you using?

latest version of course bro?!

If you install many extensions, edge will be difficult to use
(I don't want to collect it in the corner............... =3=)

If you are on Stable version, you can try using the approach mentioned here: https://techcommunity.microsoft.com/t5/discussions/how-to-unhide-vs-disable-enable-my-extensions-in-edge/m-p/2113172/highlight/true#M43247
If you are on Dev or Canary, you'll find an extensions menu available for managing your extensions better on the toolbar.


PageProtection list is not complete

There can be some other bit flags, for example, PAGE_EXECUTE_READWRITE.

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

ID: f3aed758-d5dc-0128-62fb-2bc69c635540
Version Independent ID: 8351a690-5a4c-8c30-11f6-eb0a62ed3ded
Content: FsRtlRegisterFileSystemFilterCallbacks function
Content Source: wdk-ddi-src/content/ntifs/nf-ntifs-fsrtlregisterfilesystemfiltercallbacks.md
Service: unspecified
Product: windows-hardware
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

Thanks @21street, I can help add the flag you mention to the topic. I'm having trouble tracking PageProtection down - are you aware of any other bit flags that should be documented here?

Quick update, I was able to locate the PageProtection information, and I've updated the topic. Should be live soon. Thanks!


Added files via upload

Added interpolation search.

Hey @SDakshit, Interpolation Search was already assigned to someone else. But we have plenty more. Please check out the issue section and comment so that I can assign it to you. For any issues, reach out to us on our Slack channel. Thank you :)


A way to use custom parameters/interactive mode?

-i, --interactive or -l, --location so we can change the installation location and custom settings?

I guess it could be done...

Thank you so much i appreciate your work

I would love that "-i" option as well, maybe just as a checkbox. I like to see/change setup options during installation because often you get weird preselected choices. Thanks for considering!

It's coming...


[BUG] Contributors Section is not responsive.

Description
The contributions section is not responsive and is not looking good on smaller screens. I will fix this Please assign me this under GSSOC'23
Screenshots

Any additional information?
No response
What browser are you seeing the problem on?
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I have read the discussion tab thoroughly and got the project idea
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@k-deepak04 Please assign me this issue under GSSOC'23

@JAYESHBATRA please take the latest pull and check once
if the issue is still there let me know

I have checked the latest preview. The issue is still there.


better dependency handling/profile management/etc. for workspaces

Some projects (my context is Firefox, but I can imagine others) may want to manage multiple in-tree Rust libraries (one Rust staticlib per shared library the project generates, some libraries for inclusion in shared libaries and some for inclusion in binaries, etc. etc.).  You can do this today with multiple Cargo.toml files and tying them together with workspaces.
There are some things about this which are not ideal.  Consider:

Dependencies have to be re-specified in every sub-Cargo.toml.  I think if you're going to trouble yourself to use workspaces, it's reasonable that you can list all the dependencies that you need in the root Cargo.toml file and go from there.  This issue is particularly acute for codebases (such as Firefox) where all the Rust code must live in-tree, as path specifications are needed for every dependency in every sub-library.  It would be much simpler to specify everything once in the root Cargo.toml.  I can certainly imagine issues where a particular sub-library might want to use a different version, though...
Likewise, profile settings have to be re-specified for every library.

It would be super-helpful if settings such as the above (and probably others that I'm not thinking of because they haven't come up in my context) could somehow be shared between library-generating crates.
What would solve the problems above for me would be permitting multiple [lib] sections in a Cargo.toml; I wouldn't need to use workspaces at all if multiple libraries could be specified in the root Cargo.toml!  I can understand that it might not be practical to change that at this point, despite the consistency benefits it would bring...

cc @alexcrichton @wycats @aturon
(more discussion from the Firefox context is here - https://bugzilla.mozilla.org/show_bug.cgi?id=1231764 )

Cargo is likely never going to be on a path to allowing multiple [lib] sections in Cargo.toml, and the theory is that all crates are intended to be their own independent units, e.g. they specify their dependencies exactly.
I'd love, however, for workspace profiles to be fleshed out a bit more. I do think that it probably makes the most sense to default to using the workspace profile rather than the local package profile, especially if one isn't specified.

Likewise, profile settings have to be re-specified for every library.

Profiles are now per workspace (#3249)

Dependencies have to be re-specified in every sub-Cargo.toml

I am not sure that mass specification of dependencies is even theoretically possible. If some local crates depend on each other, how would you figure out the order they should be build in?

It sounds like the profile issue here was solved with #3249, and the dependency issue may not be possible to solve, so I'm going to close this issue. Please reopen if I've misunderstood, thank you!


Optional alternatives not being parsed correctly?

I want to write a program sendmsg.py that sends a message to a server. Connecting to the server requires connection information including a server address, port, username and a password. I would like to give the users of the program three possibilities to provide this connection information:

Each item via a command line argument
All items can be stored in a config file which can be passed via a command line argument
If none of the above are present, the program will read a config file in the user's home directory (say ~/.config/sendmsg.conf for example) to get the connection information

Additionally, a command line argument will be used to specify the message that will be sent.
I thought about using something as simple as:
#!/usr/bin/env python3
"""
Usage:
    sendmsg.py [<config> | <server> <user> <password> <port>] <message>
"""
from docopt import docopt

if __name__ == "__main__":
    arguments = docopt(__doc__)
    print(arguments)

However, that does not seem to work. It gets the job done for case 1 and 2, but not for case 3.
$ python --version
Python 3.8.0
$ python sendmsg.py test.conf message
{'<config>': 'test.conf',
 '<message>': 'message',
 '<password>': None,
 '<port>': None,
 '<server>': None,
 '<user>': None}
$ python sendmsg.py server user password port message
{'<config>': None,
 '<message>': 'message',
 '<password>': 'password',
 '<port>': 'port',
 '<server>': 'server',
 '<user>': 'user'}
$ python sendmsg.py message
Usage:
    sendmsg.py [<config> | <server> <user> <password> <port>] <message>

Am I missing something here or is this not possible with docopt?
[EDIT] Ok, one way to solve this is to spell out case 3 with an extra usage line:
"""
Usage:
    sendmsg.py [<config> | <server> <user> <password> <port>] <message>
    sendmsg.py <message>
"""

I'll leave the issue open because I'm not convinced this should be necessary as it might be a bug.

Yes, it fails for optional commands as well, however, unlike your case, I couldn't find a workaround for this one!
#!/usr/bin/env python3
"""
Usage:
    wg-tool info    [options] (<person> | <person> <device>)
    wg-tool online  [options] [<person> | <person> <device>]
    wg-tool [show]  [options] [<interface> ... | --all]
"""

from docopt import docopt

if __name__ == "__main__":
    arguments = docopt(__doc__)
    print(arguments)

Sane behavior is prioritizing lines which have non-optional commands but it interprets the command as the argument for the last optional command (interface argument for show):
$ ./wg-tool.py info
{'--all': False,
 '<device>': None,
 '<interface>': ['info'],
 '<person>': None,
 'info': False,
 'online': False,
 'show': False}

The expected behavior:
It should parse according to the info line and then fail to find the required arguments and print the usage.


NoiseTexture "As normalmap" returns a flat normalmap

Godot version:
Godot beta 10
Issue description:
When setting "as normalmap" the resulting normalmap does not represent a bumpmap of the NoiseTexture. It returns a flat bumpmap.
Steps to reproduce:
Create a NoiseTexture with OpenSimplexNoise. Then select "as normalmap".

Seems like the bump scale needs to be set higher to make it not so flat.
void bumpmap_to_normalmap( float bump_scale=1.0 )

Set bump_scale to 10.0, looks like this now:

@JFonS do you think this parameter needs to be exposed as noise texture property?

The normalmap strength can already be modified in the SpatialMaterial properties, so I would change the bumpmap_to_normalmap() strength to a fixed value like 8.0 and let the users adjust it on the material. I don't want to clutter the NoiseTexture properties.
On the other hand, changing this value will break existing 3.1 projects that use normalmaps from noise textures, so exposing the strength property in the noise texture might also be a good option.

We could expose the strength property, but only when "as normalmap" is selected, that way we are only cluttering up NoiseTexture when we have to.

@clayjohn That would be good.
If anyone feels like implementing this small change feel free to  open a PR, otherwise I will do it later this week.


504 error when trying to add heatzy integration.

After install via HACS, I cannot perform entity integration, here is the error I get:
Config flow could not be loaded:  <title>504 Gateway Time-out</title>
504 Gateway Time-out

nginx/1.18.0 (Ubuntu)

I think I solved on my side, a config part was conflicting.


median.firstView.score_gzip - Error: not found

When using this command: webpagetest test http://example.com --first --poll --specs testspecs.json and this testspecs.json:
{
  "median": {
    "firstView": {
      "requests": 20,
      "render": 400,
      "loadTime": 3000,
      "score_gzip": {
        "min": 50
      }
    }
  }
}

I get this error:
2) WebPageTest median.firstView.score_gzip:
     Error: not found
      at /usr/local/lib/node_modules/webpagetest/lib/specs.js:126:19
      at Array.forEach (native)
      at traverse (/usr/local/lib/node_modules/webpagetest/lib/specs.js:116:24)
      at /usr/local/lib/node_modules/webpagetest/lib/specs.js:134:9
      at Array.forEach (native)
      at traverse (/usr/local/lib/node_modules/webpagetest/lib/specs.js:116:24)
      at /usr/local/lib/node_modules/webpagetest/lib/specs.js:134:9
      at Array.forEach (native)
      at traverse (/usr/local/lib/node_modules/webpagetest/lib/specs.js:116:24)
      at WebPageTest.specsRunner (/usr/local/lib/node_modules/webpagetest/lib/specs.js:160:5)

The test is run with the latest WebPagetest API, installed with npm install webpagetest -g.
WPT Private Instance v2.19 is using a headless Chrome browser in Xvfb.
The error occurs both on Ubuntu 14.04
npm --version
1.3.10
nodejs --version
v0.10.25

and Mac OS X "El Capitan":
npm --version
3.8.6
node --version
v6.0.0

Seems to be related to #13
Any clues / hints / etc.?

Seems to be related to not using an external Windows-based client.
I've set one up and the error did not occur anymore. Instead
 ✓ median.firstView.score_gzip: 100 should be greater than 50.
Will close the issue.


queryOne keep loading and no result

What steps will reproduce the problem?
I installed pdo_informix and edgardmessias/yii2-informix library (ver. 1.1.1) in php 8.2.
I execute a queryOne() on a simple query: select * from tablename
What is the expected result?
I expect to have a single row from table
What do you get instead?
I got an infite loop without any result. The browser keep loading forever
Additional info
If I comment the row
$this->pdoStatement->closeCursor();
at tline 1195 in vendor/yiisoft/yii2/db/Command.php then everyting works fine.

Q
A

Yii version
<IP_ADDRESS>

PHP version
8.2

Operating system
Debian GNU/Linux 10 (buster) on Docker

if you use edgardmessias/yii2-informix
how come it come into yii2 \yii\db\Command::queryInternal
It suppose overrided by edgardmessias/yii2-informix, except your structure mixed up each other

The queryInternal of edgardmessias\yii2-informix\src\Command.php starts with this code:
if ($method !== '') {
    return parent::queryInternal($method, $fetchMode);
}

With queryOne() the $fetchMode is "fetch" so it does not override.


correction in motion with bezier curve

Solution to the problem of not reaching the target when using movement with a bezier curve

This PR isn't acceptable, it doesn't actually fix any problem and just changes the movement mode instead. A real mouse doesn't use absolute movements, it defeats the entire purpose of making it appear human.


Kant Kodali - Engagement Engineer access ticket

Access Needed for New Engineer

[ ] CDC email
[ ] CDC SU account access
[ ] Okta Account Staging
[x] Okta Account Production
[ ] Open VPN credentials for Staging and Prod dbs
[ ] Metabase Staging Access
[ ] Metabase Production Access
Slack Channels

[x] prime-reportstream
[x] prime-reportstream-engagement
[x] prime-reportstream-engineering

Has access to Zenhub, but cannot filter by assignee for his name

Access to slack channels granted by Patricia on 3/7/23

Still needs access to the main ReportStream channel

I need his Keybase ID so I can send his VPN credentials. I contacted Kant directly for his username

only two more items remaining in this ticket


Improve round robin queueing algorithm

Fixes https://github.com/ppy/osu-server-spectator/issues/126
Firstly, a very simple fix - the playlist wasn't reordered when items were removed.
As for round robin... The previous algorithm didn't really work at all, and after much trying/deliberation, this is what I've come up with. It's a rework of the algorithm in entirety.
Consider the queue as sets of items such that each user appears at most once in each set. The order in which items from users are picked into sets is by the order in which they were added to the playlist.
In the first set containing the single earliest item added by each user, items are sorted by their existing PlaylistOrder value. When an item is added by a new user, it is added with PlaylistOrder = ushort.Max, so it will always be added to the end of this list.
Preserving the existing PlaylistOrder is important for when items are played, in order to prevent the next item by the same user whose item was played from jumping to the front of the queue.
If there is a PlaylistOrder tie in the first set, which is currently not possible but may become possible in the future if we allow rooms to be created with more than 1 item, then the tie is broken by taking the order in which the items were added.
Any further sets of items are ordered such that they maintain the same ordering as the first set.
The sets are then combined to form the queue.

One edge case of this algorithm is during removal. Suppose the queue is
| item | user |
| ---- | ---- |
|  1   |  1   |
|  4   |  2   |
|  5   |  3   |
|  9   |  4   |
|  2   |  1   |
|  7   |  2   |
|  6   |  3   |
|  10  |  4   |

If the item 4 is removed, the movement of item 7 is as follows:
| item | user |
| ---- | ---- |
|  1   |  1   |
|  5   |  3   |
|  9   |  4   |
|      |      |<---|
|  2   |  1   |    |
|  7   |  2   | ---|
|  6   |  3   |
|  10  |  4   |

Which is unexpected since item 7 was added earlier than item 9.
This is due to the preservation of order via the use of the existing PlaylistOrder value. There may be a simple solution to this, but I haven't figured it out yet, and from the view of not complicating this PR too much I'd say we should go with it.

The ordering in the tests looks same, but... I'm having a hard time following the implementation code-wise.


Add seed examples to README.md

Added some example code for seeding the database. This is based on my answer here: http://stackoverflow.com/questions/28548137/one-to-many-relationships-with-factorymuffin-in-php/28612034#28612034

I will leave this one to @GrahamCampbell, but my only suggestion is to use braces in the foreach loop :)

there... anything else :smile_cat: ?

Sorry this is taking so long. I'm going to give the documentation some love in the first week of July this year.

Thanks.


Floating point precision is undefined

Description of the problem
I am trying to upload a Brain Vision file and I am getting the following error: "Floating point precision is undefined". Is this an error in the library?
Steps to reproduce
Just using the read_header(fid)and getting the message above

Link to data
No response
Expected results
Completely read the file
Actual results
Error message with the text "Floating point precision is undefined"
Additional information
Platform:         Windows-10-10.0.22621-SP0
Python:           3.9.12 (main, Apr  4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]
Executable:       C:\ProgramData\Anaconda3\python.exe
CPU:              Intel64 Family 6 Model 140 Stepping 1, GenuineIntel: 8 cores
Memory:           15.7 GB
mne:              1.2.0
numpy:            1.21.1 {OpenBLAS 0.3.17 with 8 threads}
scipy:            1.10.1
matplotlib:       3.5.1 {backend=module://matplotlib_inline.backend_inline}
sklearn:          1.0.2
numba:            0.57.1
nibabel:          Not found
nilearn:          Not found
dipy:             Not found
openmeeg:         Not found
cupy:             Not found
pandas:           1.4.2
pyvista:          Not found
pyvistaqt:        Not found
ipyvtklink:       Not found
vtk:              Not found
qtpy:             2.0.1 {PyQt5=5.9.7}
ipympl:           Not found
pyqtgraph:        Not found
pooch:            v1.6.0
mne_bids:         Not found
mne_nirs:         Not found
mne_features:     Not found
mne_qt_browser:   Not found
mne_connectivity: Not found
mne_icalabel:     Not found

Just using the read_header(fid)and getting the message above

There is no read_header() function, so can you please share the code that leads to the error (i.e. a minimal example)?

Just using the read_header(fid)and getting the message above

There is no read_header() function, so can you please share the code that leads to the error (i.e. a minimal example)?

Yes, it is the function def _read_header(fid): you can find the link of the function here: https://github.com/mne-tools/mne-python/blob/main/mne/io/egi/egi.py

This is a private function, you should not use it. Again, can you share your code so that we can reproduce the issue? It looks like you are not using the correct function, because mne.io.read_raw_egi() cannot be used to import BrainVision files. Instead, you need to use mne.io.read_raw_brainvision(). Alternatively, you can use mne.io.read_raw() for any supported file type.


Flaky Emulator Tests

There are a handful of flaky Cosmos Emulator tests that are currently failing unrelated PRs (even after a recent fix for emulator/live discrepancies was recently merged, AFAIK).
Specifically: https://github.com/Azure/azure-sdk-for-python/pull/8607 and https://github.com/Azure/azure-sdk-for-python/pull/8548 at least are not passing due to Cosmos emulator tests.
 But this is also probably worth a wider discussion.
cc @mayurid @srinathnarayanan thoughts? Can we just mark these xfail for now?

yes, we can mark it as xfail. i was going to rework these tests in a different PR.

OK will do it as part of #8607 to get things passing there.


Feature/dg 979 support classification

Adds support for classification task on public API level
Adds simple features (class distribution)
Improve ask_user method to use ipython widgets instead of stdin when launched from notebook to allow users to provide input

Adds support for classification task on public API level
Adds simple features (class distribution)
Improve ask_user method to use ipython widgets instead of stdin when launched from notebook to allow users to provide input

In SG we kept colab links rather then having the opynb files inside the repo, I think its better that way (in case changes are introduced we will always need to update in 2 places...)

Adds support for classification task on public API level
Adds simple features (class distribution)
Improve ask_user method to use ipython widgets instead of stdin when launched from notebook to allow users to provide input

In SG we kept colab links rather then having the ipynb files inside the repo, I think its better that way (in case changes are introduced we will always need to update in 2 places...)

Well I can argue that this break "atomic change" concept, that you have to make a DF release first, then go over all colab files and update them by hand. From my perspective having them under git is easier to maintain. These are meant to be "quick usage examples" that people can quickly refer to.
Maybe for deep dive colabs as we did for YOLO-NAS it make sense to store them elsewhere...
But honestly - location of notebook files is the smallest question I have about this PR ):

Looks like the notebook still includes this plot

Note: We agreed on adressing the changes concerning the denormalization in a following RP


Cannot read property 'filter' of undefined

When using Antd form, I'm getting error with onChange value.
TypeError: Cannot read property 'filter' of undefined
    at Object.getRules (createBaseForm.js:304)
    at createBaseForm.js:444
    at Array.forEach (<anonymous>)
    at Object.validateFieldsInternal (createBaseForm.js:431)
    at Object.onCollectValidate (createBaseForm.js:189)
    at handleChange (PictureUpload.jsx:37)
    at Upload._this.onChange (Upload.js:202)
    at Upload._this.onStart (Upload.js:90)
    at AjaxUploader.js:184

The error started after trying to use the lib with react hooks.

I'm facing the same issue, any possible solution to this?

@Prajwal-S-Venkatesh, did you solve this problem?


Register<AssetDefinition> permissions

ATM, there are no permissions for registering asset definitions in the default validator, i.e. all Register<AssetDefinition> operations are never denied. For example it is allowed that alice@wonderland registers a new asset definition xor#genesis. Should we disallow alice@wonderland from accessing other domains by default and introduce some tokens to grant such a privilege?

we should only allow domain owner and the account that owns a permission token to register AssetDefinition in another Domain


Async: reserved keyword

In the 2018 edition, and already on nightly, async is a reserved word.
So while reqwest still compiles because it is compiled as 2015 edition, the async async module can't be used without a compilation error for reserved keyword usage.
This can be circumvented with a raw identifier (eg: use reqwest::r#async as asyn or use reqwest::r#async::Client), but this is obviously really awkward.
The async module will have to be renamed, which will force a version bump so it's a shame we didn't notice before 0.9 but what can you do.
It would be nice to get this out rather soon though, because nightly already has edition 2018 enabled by default when creating a new crate.

As you mentioned, the module can be referenced via "raw identifiers", r#async. It is more awkward than normal imports, that's true.
A new naming scheme would be needed to differentiate between the blocking and async APIs.

(Previously discussed in https://github.com/seanmonstar/reqwest/issues/310 )

Opened #408 to address this. Let me know if you have qualms about the name I chose.

This was resolved by making the async API the default, and adding a blocking module.


feat: Added a new CLI flag: --snapshot-patch-pycharm-diff

(Only relevant for Pycharm users) If the flag is passed, Syrupy will import and extend Pycharm's default diff script to provide more meaning full diffs when viewing snapshots mismatches in Pycharm's diff viewer
Description
When running snapshots tests in Pycharm (in fact, when running tests in general in Pycharm), it has this cool feature where you can see the difference between the expected and the actual objects in a diff viewer:
def test_example():
    expected = {
        "a": 1,
        "b": 2,
        "c": 3,
    }
    actual = {
        "a": 1,
        "b": 2,
        "c": 5,
    }
    assert actual== expected

After running test_example, and looking at Pycharm's console, we can see a link:

By clicking the <Click to see difference> link we can easily see the difference and know what the problem was:

However, lets run some snapshot tests this time:
@pytest.fixture
def json_snapshot(snapshot):
    return snapshot.with_defaults(extension_class=JSONSnapshotExtension)

def test_example(json_snapshot):
    actual = {
        "a": 1,
        "b": 2,
        "c": 5,
    }
    assert actual == json_snapshot

This time, Pycharm will show an incorrect difference that is hard to parse out:

This happens because Pycharm only sees an actual and an expected object, it doesn't have a way to know that the actual objects needs further parsing before the diff calculation.
This PR adds a new flag: --snapshot-patch-pycharm-diff. If the flag is active, Syrupy will attempt to import Pycharm's built-in teamcity-messages package (which Pycharm automatically adds to PYTHONPATH when running scripts in order to make it importable). If the import was successful, the teamcity.diff_tools.EqualsAssertionError object (which is responsible to calculating the string representation of the expected and actual objects in the diff view) will be patched.
The patched object will behave the same as before. However, if either the expected object or the actual objects are instances of syrupy.assertions.SnapshotAssertion, the expected and actual objects will be replaced by the snapshot's recalled data and asserted data respectively.
Now, if we activate the new flag, the diff will be meaningful again:

Related Issues
This PR should resolve #675 as well as the second part of #597
Checklist

[ ] This PR has sufficient documentation.
[ ] This PR has sufficient test coverage.
[X ] This PR title satisfies semantic convention.

Additional Comments
As you might see in the checklist, there are a few missing parts in this PR. This is because I wasn't sure how to go about certain parts of the checklist.

At first I wanted to put the entire documentation in the README.md file (because that's where I saw the rest of the configuration going to. However, I wanted to put some images to have a more clear explanation and I wasn't sure where would be a good place to put them (if it is ok to put any at all).
I have no idea how should I go about testing this feature considering its results are accessible via Pycharm's UI.

Cool idea! You did what I wanted to but didn't have time to. You're right tho, it's kinda messy. Would this logic be better suited to living in PyCharm or does it absolutely need to be on the syrupy side?

Cool idea! You did what I wanted to but didn't have time to. You're right tho, it's kinda messy. Would this logic be better suited to living in PyCharm or does it absolutely need to be on the syrupy side?

I have no idea how Jetbrains manages their scripts, but the script in question is just a class that generically receives an "expected" and "actual" objects and formats them. It doubt Jetbrains would rush into adding extra code handling specifically for objects of a single library. Unless they offically add support for custom diff calculations (like a __calculate_diff__ or something to check on every object), I would assume the change would have to be strictly on Syrupy side.
Regardless, I guess it wouldn't hurt to ask around and check their stance on this issue.

I've added test coverage and will get this merged. Thank you for the contribution!

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

v4.7.0
GitHub release

Your semantic-release bot :package::rocket:

@all-contributors add @UltimateLobster for feature

https://github.com/all-contributors add @UltimateLobster for code

@all-contributors add @UltimateLobster for code


Could anyone provide a elegant example for this potential framework ?

I saw no examples that use this framework in example folder:

Hi @loveoverflowdev,
Use the nylo repo to build a project as mentioned in the README.

Hope that helps.

Thank you, have a nice day


Don't try to reuse existing normal windows as dev mode windows

Fixes https://github.com/atom/atom/issues/8766

Thanks!


Disable C# classification from TextMate

Summary of the changes

Disable colorization for C# classifications because they are "bleeding" in some cases.

Temporary fix for https://github.com/dotnet/razor-tooling/issues/5614 and https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1426196/. Long term fix is that colors should be explicitly defined for default classifications and then this should be reverted.

Could you confirm this doesn't accidentally further break JavaScript highlighting?

Could you confirm this doesn't accidentally further break JavaScript highlighting?

This only touches the classifications in the "C# specific" section. The only JavaScript tokens I've seen reliably work are keyword and string, and those are both still safely defined at the bottom of this file.
Looking at the JS problem (and seeing if there's a cheap way to improve the TM experience while we wait for LS to be feasible) is the next item on my list.

GitHub is not displaying the change in a particularly useful way. Might be easier to understand what I did if you clone the branch and do git show HEAD --patience

🆙:date:


Slight language tweak

Cos I worried that if i tapped 'No more pages' it wasn't going to record the one i'd just uploaded...

Maybe Submit, no more pages after this one?

Yes, that's probably better!


Is Android Jelly Bean (v4.2.2) supported?

It seems App Framework Demo is not working on Android Jelly Bean.
How to reproduce:

Install Android Studio
Configure and start AVD with Jelly Bean
Install App Framework Demo on it (or your custom app based on the framework)

Result:
App is stuck on loading overlay.
I think this is App Framework's related problem and not Cordova's (since my other cordova related apps that are built with Framework7 but without the framework are working correctly).
Also Chrome DevTools Inspect (chrome://inspect/#devices) is not working for me for Jelly Bean which makes debugging harder.
Any ideas, suggestions?

@Premke - Maybe there are performance issues, but I cannot give a prompt answer to you - sorry.

V3 will not give special attention to Android v4 anymore, as the official support is stopped long time ago


community-operator-crds should have the custom resource definition in the "crds" subdirectory

Helm 3.0 specifies that a custom resource definition should be located within the crds subdirectory.  When located there, Helm will install the custom resource definition before the rest of the chart.
With the current location within the templates subdirectory, this chart cannot be used effectively as a subchart with the parent chart using the custom resource as the custom resource is not installed early enough.
Steps to reproduce the behavior:

Create a helm chart that will have the community-operator as a subchart

helm create crds-test
cd crds-test
rm -rf templates/*
delete customresourcedefinitions.apiextensions.k8s.io mongodbcommunity.mongodbcommunity.mongodb.com

Add in the community-operator as a dependency

echo "
dependencies:
  - name: community-operator
    version: 0.8.3
    repository: https://mongodb.github.io/helm-charts
" >>Chart.yaml

Build the chart dependencies

helm repo add mongodb https://mongodb.github.io/helm-charts
helm dependency build

Add a usage of the custom resource definition to the parent chart

curl https://raw.githubusercontent.com/mongodb/mongodb-kubernetes-operator/master/config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml --output templates/mongodb.com_v1_mongodbcommunity_cr.yaml

Try to install the chart

See error

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "example-mongodb" namespace: "" from "": no matches for kind "MongoDBCommunity" in version "mongodbcommunity.mongodb.com/v1"
ensure CRDs are installed first

What did you expect?
The custom resource definition should have been installed before the custom resource referenced it.
What happened instead?
The custom resource definition was not installed and then the reference to it failed when the custom resource reference it.
Additional context
Locally I have locally repackaged the community-operator-crds chart with the custom resource definition within the crds directory and locally repackaged the community-operator chart pointing to this local community-operator-crds.
cat Chart.yaml
apiVersion: v2
name: parent-chart
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

dependencies:
  - name: community-operator-cp
    version: 0.8.3
    repository: "@smm-chart-db-local"

With no other changes, the parent chart can be installed
helm install crds-test .
NAME: crds-test
LAST DEPLOYED: Sun Nov 19 08:10:20 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None

crds-test.zip
ZIP file of the project that follows the instructions above


[CDAI] Your focus-trap must have at least one container with at least one tabbable node in it at all times

We have been broken by v1.2.6 of CDAI components.
The break can be seen from the Storybook: IdeSlideOverPanel > With state manager
What package(s) are you using?

[ ] Cloud & Cognitive
[x] Legacy/CDAI
[ ] Legacy/Security

Detailed description
Error: Your focus-trap must have at least one container with at least one tabbable node in it at all times
    at updateTabbableNodes (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:10558993)
    at Object.activate (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:10562913)
    at FocusTrap.componentDidUpdate (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9461187)
    at Ji (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9951122)
    at Sj (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9968775)
    at exports.unstable_runWithPriority (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9988338)
    at cg (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9912816)
    at Jj (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9965277)
    at yj (https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9961489)
    at https://ibm-cloud-cognitive.netlify.app/vendors~main.438ed8b9.iframe.bundle.js:2:9913107

Probably related to the version bump of focus-trap-react here:
https://github.com/carbon-design-system/ibm-cloud-cognitive/pull/831/files

Hey @asfordmatt, I opened a PR that fixes this issue for you.

Should be fixed in v1.2.7


ISPN-15352 NullPointerException in case of failover brings to HR Clie…

…nt hanging
https://issues.redhat.com/browse/ISPN-15352

@wburns There is a PR for those #11635

Integrated into main, thanks @jabolina !


add: golang sql interface

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

@nmreadelf need to update readme and doc.chdb.io for usage of sql/database interface


removed cloud_admin role from update_network

Removed cloud_admin role from update_network and delete_network. This prevents cloud_admin from editing/deleting networks owned by admin role. Jellyroll middleware is necessary to give cloud_admin access to other networks in non-admin projects.
The project_admin role is implicitly granted access via rule:owner and will still be able to edit networks within its project.

retest


Use with angular.element breaks events when called on hidden select field

I am including all scripts in the HTML file in order of precedence as defined in the documentation.
For information:
angular.element(document.querySelector('select')).trigger('chosen:updated');

does not work when the chosen is initialized on a hidden select input.  However:
$('select').trigger('chosen:updated');

works just fine.
It's interesting in the fact that angular should be using jQuery in this aspect, but there is some idiosyncrasy that's causing unexpected behavior.

Hi @rodriguezrs, please make sure you load jQuery before angular, otherwise, Angular jQlite will try do the job.
Let me know if work. Thanks

Hello, thanks for your response. I am loading jQuery before angular, sorry that I wasn't clear in my original message.

I have a new realease to publish that forces the jQuery lite while using chosen from the PR #88 which is already merge into master.
What version version of angular-chosen are you using?
Is there any chances of show me what are you trying to achieve in a plunkr/jsfiddle (ish)?
So you have a hidden select which doesn't work with Angular Chosen, right?

Hi @rodriguezrs I have an example using ng-if to show/hide a <select> and it's working fine. I'm even using a remote $http request. Check it out: http://leocaseiro.github.io/angular-chosen/#ng-if-instead-of-ng-show-ng-hide-example

Hi @rodriguezrs, I was wondering if this issue still happening. Did you come with a solution for that?
Thanks