Don't add empty layers in JavaLayerConfigurations

Before this PR, in JavaLayerConfigurations, all 5 java layers (classes, resources, dependencies, snapshot dependencies, and extra files) are added automatically, whether there are files in the layers or not. This PR skips the empty layers.
Small bit towards #1373.

I only realized this was creating empty layers while fixing tests working on #1373; realized JavaContainerBuilder.toContainerBuilder returns a JibContainerBuilder that already has the 5 java layers, including extra files even if I wasn't adding extra files to the classpath. So when I tried to add extra directory contents to the JibContainerBuilder I got after creating a JavaContainerBuilder, it ended up with 2 extra files layers (one empty classpath one, and one with the extra directory files). So, can't say I've considered other places yet.


Raise CommandError instead is SystemExit

Using CommandError is the 'preferred way' for custom Commands, it will print the message and do the sys.exit(1).
Makes it a bit nicer to use from python code (e.g through django.core.management.call_command),
avoids needing to catch SystemExit.

Background reading: Django documentation on CommandError.

Good catch! Thanks for your contribution! :100:


cloudflare_record (Data Source) cannot find any record

Confirmation

[X] My issue isn't already found on the issue tracker.
[X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version
terraform -v
Terraform v1.4.6
on darwin_arm64

provider registry.terraform.io/cloudflare/cloudflare v4.8.0
provider registry.terraform.io/hashicorp/null v3.2.1

Your version of Terraform is out of date! The latest version
is 1.5.0. You can update by downloading from https://www.terraform.io/downloads.html
Affected resource(s)
data.cloudflare_record
Terraform configuration files
data "cloudflare_record" "example" {
  zone_id  = "0a87c587bd0bd3e868449694dabccf47"
  hostname = "aemcmstacka-dev.npd.selfridges.com"
}

Link to debug output
https://gist.github.com/
Panic output
No response
Expected output
it should show the record
Actual output
terraform plan fails, it says it cannot find the record:
│ Error: didn't get any DNS records for hostname: aemcmstacka-dev.npd.selfridges.com
│
│   with data.cloudflare_record.example,
│   on cloudflare-dns.tf line 31, in data "cloudflare_record" "example":
│   31: data "cloudflare_record" "example" {

Steps to reproduce

use the data source to try retrieving a record
run terraform plan and check the output, notice it complains about failing to find the record

The record exists in that zone, because I can find it using the Cloudflare API:
zone_id=0a87c587bd0bd3e868449694dabccf47 zone_name=npd.selfridges.com
	 0e404fd8bb0d0bbfdc502eee2dc6c580 aemcmstacka-dev.npd.selfridges.com CNAME dev-aem-cmstacka-alb-714352668.eu-west-1.elb.amazonaws.com

Additional factoids
No response
References
No response

I was having the same issue. It turns out that the cloudflare_record data source only looks for A records by default. You have a CNAME record instead (just as I did), which means you need to pass type = "CNAME" to the data source for it to find the record.


Fixed the whole website issue #150

https://github.com/user-attachments/assets/a5b733e3-9b34-4db8-a70f-20dd99dc43db
All about the fixes i made is in this video.
I fixed the whole website the files everything is organised now!!

@vishanurag Look into this


Deprecate old proxy classes

Fixes #1148
This PR is ready for review.
Risk
This PR makes no API changes.
Summary
This PR deprecates old proxy classes that should have been deprecated when the new managers were instructed
CLA

[x] I have signed the CLA

Codecov Report

Merging #1149 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             develop   #1149   +/-   ##
=========================================
  Coverage       46.8%   46.8%
  Complexity      4070    4070
=========================================
  Files            459     459
  Lines          22458   22458
  Branches        2553    2553
=========================================
  Hits           10512   10512
  Misses         11318   11318
  Partials         628     628

Impacted Files
Coverage Δ
Complexity Δ

...n/java/com/smartdevicelink/proxy/SdlProxyBase.java
8.36% <ø> (ø)
27 <0> (ø)
:arrow_down:

...in/java/com/smartdevicelink/proxy/SdlProxyALM.java
2.66% <ø> (ø)
1 <0> (ø)
:arrow_down:

...ava/com/smartdevicelink/proxy/SdlProxyBuilder.java
49.36% <ø> (ø)
1 <0> (ø)
:arrow_down:

...vicelink/proxy/SdlProxyConfigurationResources.java
58.33% <ø> (ø)
3 <0> (ø)
:arrow_down:

...a/com/smartdevicelink/proxy/LockScreenManager.java
58.49% <ø> (ø)
19 <0> (ø)
:arrow_down:

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 5ea3f89...82547ec. Read the comment docs.


Close a WebSocket when it is idle

Related: #5696
Motivation:

WebSocket is mostly a long-running request,
it is not easy to limit when it will end with a request timeout.
It would make more sense to terminate the request when no messages are sent or received for a certain period of time.

The existing idle timeout handler operates at the connection level so a new scheduler that can perform at the WebSocket level is necessary.

Modifications:

WebSocketServiceChannelHandler

Add ServerConfig parameter to the constructor
Add a feature  closes channels using ScheduledFuture

Http1RequestDecoder

Modify new WebSocketServiceChannelHandler()  Parameter in  pipeline.replace()

Result:

Closes #5696 .
Set idleTimeoutMillis in ServerConfig to a non-zero value, WebSockets will close after the idle timeout period.

 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.

What do you think about solving this issue in a more generic way? We could add idle timeout settings to any HttpService, like:

"Abort the stream if a peer doesn't send anything for N milliseconds."
"Abort the stream if the service doesn't send anything for N milliseconds."
"Abort the stream if neither the peer nor the service doesn't send anything for N milliseconds."

I think I was just too focused on shutting down the connection in idle state.
I will solve it at the higher level and request it again.
@jrhee17 @trustin
Thank you for your review.


Stopped working

Describe the bug
It's several days since stopped working at all
Screenshots
[homeassistant.components.binary_sensor] Error while setting up dpc platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/dpc/binary_sensor.py", line 70, in async_setup_platform
await updater.async_update()
File "/config/custom_components/dpc/binary_sensor.py", line 163, in async_update
self.dpc_output = await self.fetch_all()
File "/config/custom_components/dpc/binary_sensor.py", line 184, in fetch_all
dataList = await asyncio.gather(*tasks)
File "/config/custom_components/dpc/binary_sensor.py", line 214, in fetch
prevision_date = parse(prevision["date"]).date()
KeyError: 'date'
Additional context
HA version 0.115.6

Same for me.
HA version 2021.1.0

Same for me.
HA version 2021.1.0

It seems that the problem is some missing data in the parsing response, in particular the date.
How can I reply to your mistake? What istat number are you using?

It seems that the problem is some missing data in the parsing response, in particular the date.
How can I reply to your mistake? What istat number are you using?

I'm using 037006 Bologna (BO)

I'm using 037006 Bologna (BO)

I'm using 037006 Bologna (BO)

Checked the source and the data is missing for Bologna.
I opened an issue at website source.
Waiting for an answer, as soon as I can, I will insert an exception in the code that if data is missing, it will generate a warning with the data of the source to ask.

I'm using 037006 Bologna (BO)

Checked the source and the data is missing for Bologna.
I opened an issue at website source.
Waiting for an answer, as soon as I can, I will insert an exception in the code that if data is missing, it will generate a warning with the data of the source to ask.

the istat i check is 038004

the istat i check is 038004

the istat i check is 038004

Now I see that the data is there, it should work, maybe a reboot is needed.
There is still a problem to be fixed, I try to correct it.

the istat i check is 038004

Now I see that the data is there, it should work, maybe a reboot is needed.
There is still a problem to be fixed, I try to correct it.

Yes, after a reboot now it's work.
Thank you and hope to be fixed soon.

Yes, after a reboot now it's work.
Thank you and hope to be fixed soon.

The problem does not depend on the component, but on the lack of data from the resource. I added a warning message if there is no data.
In this way the entities are still created but not updated, until the resource site fixes the problem, by requesting corrections to be made to the link that will be displayed in the warning message.
Hope this solves if a similar problem occurs again.

The problem does not depend on the component, but on the lack of data from the resource. I added a warning message if there is no data.
In this way the entities are still created but not updated, until the resource site fixes the problem, by requesting corrections to be made to the link that will be displayed in the warning message.
Hope this solves if a similar problem occurs again.


Adding constructors to enable Storyboard instantiation

Thanks Eros. Looks good. AppVeyor is derping currently but builds and runs fine locally. Merging this :)

Thanks :)


Example - House prices regressed on long interest rate and GDP (and population)

R example
(Maybe we do in other languages too later ...)

What does it demonstrate: quickly getting data and using it together
Required data

[x] House price data - http://data.okfn.org/data/house-prices-uk
[x] UK Long interest rate - http://data.okfn.org/data/bond-yields-uk-10y
[x] UK GDP - http://data.okfn.org/data/gdp-uk

Do we need this quarterly?
Why this analysis

People are interested in house prices - why do they go up and down
Classic explanation is other economic variables e.g. demand (GDP, population and interest rate (mortgages)), supply (housing stock). Here will just use demand variables and see what we find.

This issue was moved to frictionlessdata/frictionlessdata.io#53


Improvements: confirm email response changed to text instead of acces…

…s token

@sedhumadhavan19 - Did you test this via API?

@manikandan0603 Yes tested.


Unexpected tf.cast behavior between signed and unsigned integers

It is tested on Google's own platform https://colab.research.google.com:
System information

OS Platform and Distribution: Linux version 4.14.79+ (chrome-bot@swarm-cros-634)
TensorFlow installed from (source or binary): The platform is provided by Google
TensorFlow version: 1.14.0-rc1  (also tested on my own machine with TF 1.13.1)
Python version: 3.6.8

Describe the current behavior
Type casting tf.cast from tf.int32 to tf.uint32 will make the Tensor become 0.
Describe the expected behavior
tf.cast should not change the bit representation of values.
Code to reproduce the issue
import tensorflow as tf

c = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
x = tf.cast(c, dtype=tf.uint32)
y = tf.cast(c, dtype=tf.uint32)
with tf.Session() as sess:
    x_raw, y_raw = sess.run([x, y])
    print(x_raw.dtype, y_raw.dtype)
    print(x_raw)
    print(y_raw)

print(tf.__version__)

Running this code gives the result:
uint32 uint32
[0 0 0 0 0 0]
[0 0 0 0 0 0]
1.14.0-rc1

This is really odd... @acs6610987, can you explain why are you assigning to d but never actually using it?
I've run your example and get the same results:
import tensorflow as tf

c = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
x = tf.cast(c, dtype=tf.uint32)
y = tf.cast(c, dtype=tf.uint32)
with tf.Session() as sess:
    x_raw, y_raw = sess.run([x, y])
    print(x_raw.dtype, y_raw.dtype)
    print(x_raw)
    print(y_raw)

print(tf.__version__)

Yields:
2019-06-28 17:17:28.815499: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-06-28 17:17:28.842292: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-06-28 17:17:28.843186: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x4739440 executing computations on platform Host. Devices:
2019-06-28 17:17:28.843243: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
uint32 uint32
[0 0 0 0 0 0]
[0 0 0 0 0 0]
1.13.1

But if I comment that single line I get the correct results!
import tensorflow as tf

c = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
#d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
x = tf.cast(c, dtype=tf.uint32)
y = tf.cast(c, dtype=tf.uint32)
with tf.Session() as sess:
    x_raw, y_raw = sess.run([x, y])
    print(x_raw.dtype, y_raw.dtype)
    print(x_raw)
    print(y_raw)

print(tf.__version__)

Yields:
2019-06-28 17:15:10.449152: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-06-28 17:15:10.470490: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-06-28 17:15:10.471184: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x44bae00 executing computations on platform Host. Devices:
2019-06-28 17:15:10.471227: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
uint32 uint32
[ 5  6  7  8  9 10]
[ 5  6  7  8  9 10]
1.13.1

Running on a docker container with TF 1.13, Python 3.5.2 and
tf-docker /root > uname -a
Linux bc59301e4081 4.18.0-21-generic #22~18.04.1-Ubuntu SMP Thu May 16 15:07:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

A similar code running on TF2.0 (eager) seems to be correct:
import tensorflow as tf

c = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
x = tf.cast(c, dtype=tf.uint32)
y = tf.cast(c, dtype=tf.uint32)
#with tf.Session() as sess:
    #x, y = sess.run([x, y])
print("x,y")
print(x.dtype, y.dtype)
print(x)
print(y)

#c, d = sess.run([c, d])
print("c,d")
print(c.dtype, d.dtype)
print(c)
print(d)

print(tf.__version__)

Gives
tf-docker /root > python --version
Python 3.6.7
tf-docker /root > python tmp/test-eager.py
2019-06-28 17:23:06.690077: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-06-28 17:23:06.728827: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-06-28 17:23:06.729713: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2465ae0 executing computations on platform Host. Devices:
2019-06-28 17:23:06.729737: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): <undefined>, <undefined>
x,y
<dtype: 'uint32'> <dtype: 'uint32'>
tf.Tensor([ 5  6  7  8  9 10], shape=(6,), dtype=uint32)
tf.Tensor([ 5  6  7  8  9 10], shape=(6,), dtype=uint32)
c,d
<dtype: 'int32'> <dtype: 'int32'>
tf.Tensor([ 5  6  7  8  9 10], shape=(6,), dtype=int32)
tf.Tensor([ 5  6  7  8  9 10], shape=(6,), dtype=int32)
2.0.0-beta0
tf-docker /root > uname -a
Linux ccc7b6654656 4.18.0-21-generic #22~18.04.1-Ubuntu SMP Thu May 16 15:07:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@eduardofv , about the d, I actually meant to use it for y, so I meant to post the following code:
import tensorflow as tf

c = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
x = tf.cast(c, dtype=tf.uint32)
y = tf.cast(d, dtype=tf.uint32)
with tf.Session() as sess:
    x_raw, y_raw = sess.run([x, y])
    print(x_raw.dtype, y_raw.dtype)
    print(x_raw)
    print(y_raw)

print(tf.__version__)

This would also give the wrong result. I made a typo for using c but not d in the issue description, but this did not change the observed weird behavior...:( There must be something wrong in the TF runtime.

You are right @acs6610987. I've done several tests and can confirm your findings. This is very odd and, unless there's something I don't understand from the execution model, this must be a bug.
In this colab notebook I can reproduce your results.
In this one just commenting the creation of the second const the cast operation is correct.
In this other notebook I separated the second const definition and cast, and run independently. When only one operation is performed the results are correct. But when the second operation is performed the results are zeroes again as shown below:
import tensorflow as tf
print(tf.__version__)

c = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
x = tf.cast(c, dtype=tf.uint32)
with tf.Session() as sess:
    x_raw = sess.run([x])
    print(type(x_raw))
    #print(x_raw.dtype)
    print(x_raw)

d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
y = tf.cast(d, dtype=tf.uint32)
with tf.Session() as sess:
    x_raw, y_raw = sess.run([x, y])
    print(type(x_raw))
    print(x_raw.dtype)
    print(x_raw)
    print(type(y_raw))
    print(y_raw.dtype)
    print(y_raw)

1.14.0
<class 'list'>
[array([ 5,  6,  7,  8,  9, 10], dtype=uint32)]
<class 'numpy.ndarray'>
uint32
[0 0 0 0 0 0]
<class 'numpy.ndarray'>
uint32
[0 0 0 0 0 0]

I went as far as I could, reproducing the tf.cast python operation and debugging on this notebook, but couldn't find any point of failure up to the moment the C++ operations are invoked. I gave a glimpse to the implementation but it's been long since I worked on C++!! I think this issue will have to be revised by someone with deeper knowledge of the TF kernel.

After some other tests, it seems that the error occurs when casting from ints or floats to uint32 or uint64. uint8 and unit16 seems to be OK. I wonder if it may have to do something with this LSBZeroSetter at cast_op.cc

I have tried on colab with TF version 1.14 & 1.13.1 with and without commenting d and was able to reproduce the  issue.Also, i replaced with d, which actually meant to use it for y (by mistake used c) and checked,still i am able to reproduce the issue.Thanks!

@rmlarsen the problem doesn't happen in eager or if you replace the tf.constant in the original bug with a placeholder_with_default, so I think it's a constant folding issue.
Do you know who should take a look? It seems bad...

same issue as: https://github.com/tensorflow/tensorflow/issues/30691
Please refer to this PR: https://github.com/tensorflow/tensorflow/pull/30707
I try it and fix this issue

The reason when we comment this line:
#d = tf.constant([5, 6, 7, 8, 9, 10], dtype=tf.int32)
would fix the issue is that: the nodes numbers need to be greater than 4 then that the code would go through this optimization path(which cause the problem).
Please refer to this code, if you change the min_graph_nodes larger than 4, the problem wouldn't happen
from tensorflow.core.protobuf import rewriter_config_pb2
rewriteOptions = rewriter_config_pb2.RewriterConfig(**min_graph_nodes=10**)
graphOptions = tf.GraphOptions(rewrite_options=rewriteOptions)
config = tf.ConfigProto(graph_options=graphOptions)

sess = tf.Session(config=config)

Could anyone help to have a review of this PR?

@zicofish,
Your code could be run successfully and is resulting in Expected Output. Please find the Gist of the working code. Thanks!

@zicofish  I executed the code in TF 2.5 version and  it is returning the output as expected. Please find the gist here. Thanks!


feat: add CarouselIndicatorGroup and CarouselIndicator parts

Hello again 👋
Was building a custom carousel on top of akr’s one and noticed that the machine implementation from @zagjs has support for two extra parts: indicator and indicatorGroup, which I believe that in the carousel context are typically that bullet navigation overlay with the slide counts. I decided to bring it them into ark as it is a fairly common piece of the puzzle and a requirement for my implementation.
Note for reviewers

Solid version is untested, don't have enough experience with the framework and with my current work, I don't have more time to dedicate.
By default, the indicator doesn't have the onClick event handler in their props, so I've manually added it using scrollTo exposed method to make the bullets clickable. It seemed a sensible default but consumers might want to disable this behaviour via prop so I'm not 100% sure.
I'm also not 100% that website docs are websites are correct for react because locally running the site seemed not to pick up the updates I've made to the story but hopefully will be working in production, please double-check/edit 😅

Final notes
I'm somewhat of an experienced developer and It's not super easy to contribute to this package.

I came to add a feature on vue, but end up having to port it to react, because if I want to document it I have to build the react version as the website demos are all react under the hood.

There are no contributing guidelines saying what I need to update to make it happen — again, easy to figure out for experienced devs, hard for beginners.
The styling of parts of the demo has a bit of boilerplate associated, hard for people not acquainted with panda or css-in-js in general as it's one more thing to learn to contribute.

Please don't take this the wrong way, I'm so glad Ark UI exists and what it represents for the Vue ecosystem!  I understand that this package is relatively new to have all these things figured out, I'm just saying this because I really want ark to become the most popular headless UI library and for that, it needs to grab the max amount of contributions possible and that's also done by eliminating these barriers.
Thank you so much for all the work on Ark, keep shipping :shipit:

First of all, thank you for your thoughtful contribution and the in-depth description of your changes. Your commitment to improving Ark UI is highly appreciated.
I want to reassure you that I'll be reviewing your PR shortly. I understand your concern about some aspects of the contribution process. Your feedback is very valuable to us as we continuously strive to make the process as clear and accessible as possible.

To update the stories you need to run pnpm document in the root folder (I just did that for you).

Thanks for your contribution <3


Please help me to understand PCG32/Bounded()

Thank you very much for this implementation of PCG. This isn't really an issue, but a question.
I'd like to understand what appears to be excessive complexity in Bounded():
func (p *PCG32) Bounded(bound uint32) uint32 {
	if bound == 0 {
		return 0
	}
	threshold := -bound % bound
	for {
		r := p.Random()
		if r >= threshold {
			return r % bound
		}
	}
}

Since we're dealing with (uint32)s, what would be wrong with this, simpler, version?:
func (p *PCG32) Bounded(bound uint32) uint32 {
	if bound == 0 {
		return 0
	}
	r := p.Random()
	return r % bound
}

Thanks again

Yes, it is rather complicated. There are two reasons for this, a) the
natural cost of a subtle issue which is necessary; and b) coding style
which might be made better.
The subtle issue concerns the general case where the range of the
generator's values (2^64) and the desired bound. Imagine a simpler case, a
3-bit range and a bound of 5 (8 not being a multiple of 5). Here is how it
works:
rng   rng%5
0      0
1      1
2      2
3      3
4      4
5      0
6      1
7      2
This means that the probabilities of 0..4 are...
0      2 in 8
1      2 in 8
2      2 in 8
3      1 in 8
4      1 in 8
...which is probably a surprise to many and would certainly be unwelcome to
whatever algorithm and statistical analysis was expecting "random" numbers.
This is true, but since the typical ranges of PRNGs are 2^32 or 2^64 and
the typical bounds are hundreds, thousands, or millions, the ratio between
what should be uniform and what is biased is much less erroneous in ratio
even though it is still wrong and biased to smaller values.
With a 4-bit range the probabilities of 0..4 are...
0      4 in 16
1      3 in 16
2      3 in 16
3      3 in 16
4      3 in 16
With a 5-bit range it would result in
0      7 in 32
1      7 in 32
2      6 in 32
3      6 in 32
4      6 in 32
With a 6-bit range it would result in
0      13 in 32
1      13 in 32
2      13 in 32
3      13 in 32
4      12 in 32
The way to avoid this subtle problem is to ensure that the random value
that is used in value%bound is in fact from a range that is a multiple of
bound. Here is idea:
{
// determine max which is the greatest multiple of bound <=
maxPossiblePRNGValue
maxMultiple := bound*(maxPossiblePRNGValue/bound)
// get the next PRNG value
v := NextPRNGValue()
// in the unlikely case that we've got one of the last few PRNG values in
the range
// maxMultiple... maxPossiblePRNGValue then just iterate again to find a
new one
for v >= maxMultiple {
v = NextPRNGValue()
}
// choose a uniformly weighted  value in 0..bound-1
return v%bound
}
Perhaps this is a subtle issue, and for many people the wrongness probably
makes no difference. For a careful implementation, and a careful programmer
though, this is critical. It is a point that Knuth makes clear in The Art
of Computer Programming, which for me, makes this part of the conmplexity
inarguable.
Now issue b, the question of how to implement this, centers on the clarity
of the code on the one hand, and the desire to avoid the divide and the
multiply in "bound*(maxPossiblePRNGValue/bound)" for the sake of
performance. The code you found is the tricky but fast way, which goes from
"small up to full range" rather than "zero up to reduced range." This part
of it is mostly about personal taste and I'm biased towards speed as is the
clever Melissa E. O'Neill, inventor of PCG.
Michael
On Tue, Sep 5, 2017 at 3:50 AM, Brent Longborough<EMAIL_ADDRESS>wrote:

Thank you very much for this implementation of PCG. This isn't really an
issue, but a question.
I'd like to understand what appears to be excessive complexity in
Bounded():
func (p *PCG32) Bounded(bound uint32) uint32 {
if bound == 0 {
return 0
}
threshold := -bound % bound
for {
r := p.Random()
if r >= threshold {
return r % bound
}
}
}
Since we're dealing with (uint32)s, what would be wrong with this,
simpler, version?:
func (p *PCG32) Bounded(bound uint32) uint32 {
if bound == 0 {
return 0
}
r := p.Random()
return r % bound
}
Thanks again
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MichaelTJones/pcg/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgypTIN_-lRAOeIZ2hGNndsqBr-7xu3ks5sfSd3gaJpZM4PMxVh
.

--
Michael T. Jones
<EMAIL_ADDRESS>

Michael, thank you very much for a clear explanation of a very subtle, but important, point. Although I "knew of the range x bound bias in the back of my mind", your amazing optimization led me down a different path, and managed to hide from me exactly what you were about.
Congratulations, and best wishes,
Brent

I've just rolled my own example with uint8 to see exactly how that works. In fifty years(! yes) of programming, I don't think I've seen more than about two or three pieces of code as wonderful as that.

Oh, not my invention. like most good ideas, it is something valuable passed
from a former student to the next one. :-) Enjoy!
On Wed, Sep 6, 2017 at 4:13 AM, Brent Longborough<EMAIL_ADDRESS>wrote:

I've just rolled my own example with uint8 to see exactly how that works.
In fifty years(! yes) of programming, I don't think I've seen more than
about two or three pieces of code as wonderful as that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/MichaelTJones/pcg/issues/1#issuecomment-327452071,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgypdX9ZRbO1q2zOiTBNSiP-EW-8dgGks5sfn5BgaJpZM4PMxVh
.

--
Michael T. Jones
<EMAIL_ADDRESS>


Updated productgrp.go to have consistent error handling response.

Updated productgrp.go to have consistent error handling response.

Nice catches!!

It took me a bit, but your logic was good and I changed it a couple times :(.  Everything is back.


How do I run vfa_t1 on all the data sets in my directory

Expected Behavior
vfa1_t1_batch from CL
Actual Behavior
via_t1_batch from CL only runs on first 4D data set
Steps to Reproduce the Problem

put 1 4D image in directory runs OK
put another 4D image in directory with added ID - error message saying wrong filename (obviously)
Do I have to write my own loop inside the Matlab script or do you have one setup already

Specifications

Version: 2.4.0
Platform: MacOSX catalina
Subsystem: Matlab 2015b

@annapbarnes the script generated by qMRGenBatch is for one dataset only. You will need to wrap that in a simple loop to deal with other images, which are favorably nicely organized in multiple folders.

Thank you - I guessed as much - just wanted to make sure I wasn't re-inventing the wheel.


expect(undefined).to.have.className("WTF”); // this passes somehow?

It seems like asserting that undefined has a classname should fail, but it's passing.

@annthurium Are you using the latest version? this should have been fixed with #11

@marcodejongh I am not!  Will upgrade.  Sorry about that -- I'll check past issues before commenting next time.


Suggest search queries on homepage

Also, increase body font size and fix broken links to facilities on homepage.

Oh so Emiliano's branch came off this branch? Then yeah, ideally this should have been merged first and then Emiliano's branch should have been rebased onto main, but meh, whatever works :smile:


I need tips on the ADR pattern for programming best practices

Hi Odan, I want to thank you immensely for this SLIM 4 skeleton that you provided to the community. However, I have a beginner's doubt:
By the ADR development pattern, let's assume I have a domain called Categories and another one called Subcategories with their respective Actions (following your SLIM 4 skeleton pattern). The Categories action returns the categories and the Subcategories action returns the subcategories for their respective routes.
However, I need a route that returns the subcategories with categories Following good programming practices, can I create an Action SubcategoriesWithCategorie (without any domain) and through this Action access the Categories domain and the Subcategories domain?

Hi @esallum-iluminare
The fundamental idea is to build the Application (and the API) around the higher-level use cases and not around the (lower-level) database tables. So please don't just build CRUD API for each table. Build API for the concrete problems you are trying to solve. Focusing on capabilities is the key. I already mentioned this in my Slim 4 Tutorial
The most detailed answer to this question and other best practices can be found in my Slim 4 eBook.
Chapter: Clean Architecture and ADR
You also find good information in the documentation of this Slim skeleton project.
There is a good video on Youtube that explains the concept very well: The Entity Service Antipattern

Thanks for the clarification. I will develop thinking about the routes and not the database CRUD.
In my specific case, my SubcategoriesWithCategorie action doesn't have any domain, because it uses the Categories domain and the Subcategories domain to return.
In my project it is necessary for me to have a route that returns the Categories, another that returns the Subcategories and another that returns both together. In this case, then my question is: due to good programming practices, in this case, an Action may not have a specific domain, and access two different domains?

I don't know your exact requirements, so I try to answer it more general.
In general, I would try to split all these different use cases into specific, services. So for each endpoint (URL, route) there should be only one use case specific service class. If you have a piece of common logic, split this logic into a separate class and share it with the other classes. Take a look at the context and find out what this specific class does (SRP), then it should be clear how to name it. If you have a shared logic, try to find this shared logic and extract it into another class.
When you focus on the capabilities, you see that every use case is different.
Example:

Use case 1 returns enity1.field1, enity1.field2
Use case 2 returns enity1.field1, enity1.field3 and enity2.field5, enity2.field6, enity2.field7.
Use case 3 returns enity3.field9, enity3.field4, enity3.field5 from and enity2.field1, enity2.field3.
Use case 4 returns enity1.field1 and a custom formatted field from enity2.field3
and so on...

So when you build an endpoint that needs data from multiple sources you also build
a "use case specific query", that selects only the tables, fields you really need.
The relation between the tables can be defined using a JOIN statement.
I have already answered similar questions here. I hope it helps. By eBooks contains more details.

https://github.com/odan/slim4-tutorial/issues/32#issuecomment-836753344
https://github.com/odan/slim4-tutorial/issues/35
https://github.com/odan/slim4-tutorial/issues/29

Thanks for the answer.
In my case, my domain in question is as follows:
https://pastebin.com/De24gQ4v .
My routes:
//Subcategories w/ Category
$app->get('/subcategories-with-category/{id_subcategory}', \App\Action\SubCategoryCategory\SubCategoryCategoryReadAction::class);
$app->options('/subcategories-with-category/{id_subcategory}', PreflightAction::class);
As I understand it, the way I did it is wrong. The correct way is to create a Domain (with its respective Repository and Data) that contains a Service titled SubCategoryCategoryReader
Detail: I'm planning to buy your book :)

The correct way is to create a Domain (with its respective Repository and Data) that contains a Service titled SubCategoryCategoryReader

Yes, correct. Just invoke one Service (not more) that handles the task (business logic) with the corresponding repository(s) that retrieves only the required data for that specific use case.

Hi everyone,
I need to convert an old controller class which has 10 methods which are associated to 10 routes to the ADR pattern.
Should I have to write 10 Action classes or there is an more concise alternative solution ?
Regards


Retina device support?

macOS 10.12, Lackey 0.7.3
Seems the find()/exists() always fails when the image is captured from a retina Mac ( CMD+SHIFT+4).
lackey.Exceptions.FindFailed: Could not find pattern 'icon.png'
Does it officially support retina Mac?

@genequ
SikuliX does nothing like downscale of images. Since it is based on Java, the capturing with the Java Robot works against Retina displays since Java 8: internally automatically downscaled with factor 0.5.
Still it is a problem with SikuliX also, if you want to use images captured with CMD+SHIFT+4. Those images have to be manually downscaled before using them with SikuliX. Or you might use the SikuliX feature resize(), to do the scaling in a script before using those images.
For SikuliX users it is recommended anyways, to do any capturing with the SikuliX features (IDE or programmatically).
For Retina images to be used in Lackey: if captured with CMD+SHIFT+4, you have to downscale them manually (e.g. with Preview) with the factor 0.5 or programmatically using relevant OpenCV features.
RaiMan (SikuliX developer)

@RaiMan Thanks!


[google_sign_in] Remove unused variable

Description
Removed unused variable introduced by #2127.

@cyanglaz @ditman @mehmetf Sorry, I wasn’t sure who to ping. Can I get a review?

Could you please also update the version in changelog and pubspec?

@mehmetf Yeap, done and pushed.

I've just seen this, thanks for the fix @jayjun and @mehmetf !


fix(integration): test_migration_with_unscheduled_replica

Which issue(s) this PR fixes:

Issue longhorn/longhorn#8873
What this PR does / why we need it:
See https://github.com/longhorn/longhorn/issues/8873#issuecomment-2205066596.
Special notes for your reviewer:
None
Additional documentation or context
None

Test WIP: https://ci.longhorn.io/job/private/job/longhorn-tests-regression/7117/


Fix example configuration name in dependency declaration docs

The dependency configuration overview image should show existing configurations that correspond to the action shown next to it instead of referencing the long removed testRuntime configuration.
Fixes #26351

@bot-gradle test BD

I've triggered the following builds for you. Click here to see all build failures.

BuildDistributions build

Result can be found here:
https://builds.gradle.org/repository/download/Gradle_Master_Check_BuildDistributions/72107618:id/distributions/gradle-8.5-docs.zip!/gradle-8.5-20230921121430%2B0000/docs/userguide/declaring_dependencies.html

configuration names updated
@bot-gradle test BD

I've triggered the following builds for you. Click here to see all build failures.

BuildDistributions build

@bot-gradle test and merge


Brackets Sass Not Compiling - File brackets.min.css.map not found

Hi !
No compilation occurs from sass to css when I modify the scss file. I configured the json file as needed :
{
    "sass.enabled": false,
    "path": {
        "assets/sass/main.scss": {
            "sass.enabled": true,
            "sass.compiler": "ruby",
            "sass.options": {
                "outputDir": "../css/",
                "includePaths": [],
                "sourceComments": true,
                "outputStyle": "nested"
            }
        }
    }
}

(but there is maybe an error ? i can't find where) but brackets seems to ignore it. I tested by manually launching the ruby command line :
sass main.scss ../css/main.css
and it all worked well.
Thanks in advance !
Info : Ruby installer version (2.3.0)

Same problem...it compiles when I update my global.scss file which contains my @imports but not when saving those individual imported files, ie I have a global.scss with a list of imports (file1.scss, file2.scss etc). When I edit and save global.scss, it compiles file1,file2 etc but when editing and saving file1,file2 etc, it doesn't. I'm using version 2.0.3-132 which I know is outdated but the updated version wasn't working at all.

@mikemedd 2.0.4 and 2.0.5 were little updates and changed nothing to the actual workings of the program. It just added support for Brackets 1.8 on Linux and macOS (and windows 10). What exactly isn't working and how would I reproduce it?

I am using 2.0.7 with Brackets 1.13   I can't get my css file to update from the scss file


[Document Intelligence] fix link

Fixes link for the release

API change check
API changes are not detected in this pull request.


Master

Docs Build status updates of commit be324b1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

DocsLegal/docfx.json
:white_check_mark:Succeeded

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


perl 'illegal mode string' Darwin

build log: https://gist.github.com/miah/6aa9a52afe954106a2dd
patching script interpreter paths in /nix/store/ry1xfxg5rm02caqzszjidqrgvzhp75hg-zlib-1.2.8
find: -perm: /0100: illegal mode string
builder for ‘/nix/store/c7as6qpcysyl0s6820nzcjc0y9n9h3m9-zlib-1.2.8.drv’ failed with exit code 1

Unless I'm mistaken, find on Darwin doesn't support / form. See: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/find.1.html vs http://linux.die.net/man/1/find

Yet another duplicate of #9044. This is only resolved in the staging branch currently.


Reconfigure versioning to pass OBO Dashboard

We need to add an archive directory and reconfigure the versioning to pass OBO Dashboard.
See dashboard:
http://obo-dashboard-test.ontodev.com/ohd/dashboard.html

Comment on dashboard says:
Version IRI 'http://purl.obolibrary.org/obo/2016-06-27/ohd-inferred.owl' is not in recommended format


SSH ed25519 not supported

Cannot connect to remote host with ed25519 private key file.

handling ssh connection error.Error: Cannot parse privateKey: Unsupported key format

Hi @l0rda. Thanks for the issue. I'll try to repeat it on my side.

+1

+1

So, OpenSSL v1.1 should supports at Node v10
https://nodejs.org/en/blog/release/v10.0.0/
As soon as Electron will support Node v10, we'll make an update.

Whats your status on this issue? Electrum latest is on Node 10.11

Sorry, we still don't have ed25519 in used lib but I think in near time it will be solved.

Hi,
With ed25519, I have an error related to the passphrase.
Not sure if it's related to your previous message or something else. I tested the passphrase directly from another remote server.

Waiting this update with eagerness :-)

I'm still waiting for updates too...
Need to support the latest updates for crypto lib + support OpenSSL 1.1.1

Any update on this? I think crypto supports ed25519 now.

Hi guys! It happened!
BoringSSL (a fork of OpenSSL that uses at Electron) started support ED25519.
ed25519 will work at the next release!

still not fixed :(


Cubemap problems

Hi, im trying to put my own cubemaps, when i use the default cubemaps from webgl.org demo, works ok, when i used mine im getting a half black circle on top and bottom
The problem:
http://i.imgur.com/EE5eXjS.jpg
My cubemap if someone can verify.
http://i.imgur.com/bPKrt5R.jpg
thanks.

Hi Cristian:
Cubemaps could come in four forms,  an image in polar coordinates (the default one), an image with the 6 sides arranged vertically, a cross image, or a DDS cubemap.
The problem is that with 2d images (the three first ways) it is hard to detect just by having the image. So I came up with this strange way: if the image is 6 times higher than taller then its the second type, if the file has the string CUBECROSSL then its a cross leaning left. Otherwise a polar image is assumed.
In your image the width / 6  is not a integer number, so then it asumes its a polar image.
There is a tool in the Actions menu to create cubemaps from the scene or from files.
I have improved it so it gives more feedback when creating cubemaps, please update the webglstudio to the github.
I understand it is hard to deal with this problems, I will make tutorials soon.
Cheers!

Got it, thanks to reply. Im using this software Pano2VR, in my first test im converting HDR Irradiance (from NOEMITION website) to 6 sides arranged horizontaly. I will try to convert with vertically arrange. I will post my result if success here.


Control Flow obfuscation and Constant obfuscation donot work on my classes

Bozar version
[1.7.0]
Additional context
program cannot apply Control Flow obfuscation and Constant obfuscation on my classes
what about  low method capacity ??

Java does have a 65535 byte limit for each method.
When obfuscating heavily, the method can exceed that limit.
Bozar will ignore obfuscation on that method and your program should work fine.
Ignore these warnings unless it's unapplied on an important method.
Try lowering your (control flow/constant obfuscation) settings if you want obfuscation on all methods.


Added missing import

Argh, forgot the import yesterday, sigh.

+1 - please pull this, toastdriven!

Fixed in SHA: 7a358dc


Bug: Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "vaadin-lumo-styles" has already been used with this registry.

I use this package indirectly via @vaadin/vaadin-grid. Now imagine the usecase that an app which uses vaadin-grid needs to load a different app which uses vaadin-grid. The bundles are not shared, and so both apps will call:
customElements.define('vaadin-lumo-styles', Lumo);

One of them will throw an error. This could be easily solved in the package
customElements.get('vaadin-lumo-styles') || customElements.define('vaadin-lumo-styles', Lumo);

Thank you for the issue. This is a known limitation of web components: you can't register the same component twice.
So, if the bundles are not shared, you will face this problem.
Updating customElements.define here won't help if you have two versions of the grid in your page. There will be still an error thrown because we use Polymer and it defines some elements like dom-module.
One potential solution could be using webpack module federation to share code between different apps.
I'm closing this issue because there is nothing we can do at the moment to support this use case.

I made a temporary workaround if anyone might need it.
function safeDecorator(fn) {
  // eslint-disable-next-line func-names
  return function(...args) {
    try {
      return fn.apply(this, args);
    } catch (error) {
      if (
        error instanceof DOMException &&
        error.message.includes('has already been used with this registry')
      ) {
        return false;
      }
      throw error;
    }
  };
}

customElements.define = safeDecorator(customElements.define);


[Beast Rank] Showing colour code on tab

When you press tab in-game, if someone is Beast rank, their tag will show up incorrectly, displaying the colour code at the end.
Steps to reproduce the behavior:

Join Atlas, Orion or Titan
Press tab
If someone is Beast rank, you will see the error.

Issue is on all 3 servers

Fixed

Reopening this, still showing the color code on all servers for beast rank in tab menu.

This has been resolved.


install of packages

downloaded Atom today 04/26/2017, and I am trying to install packages but it just does the animation of  "installing" but keeps on going and going and going and going and going. (slightly annoyed right now).

Can't reproduce


operator project-quay (3.10.0-nightly.20230915)

Add 3.10.0-nightly.20230915 to community operators

/merge possible

/merge possible


In branch home-robot-ovmm-challenge2024, to train a new agent from example got error : handle = self._sim.receptacles[KeyError: 'feb130d3499f00724fa2263e3552d1c70dac6582_:0000|receptacle_mesh_feb130d3499f00724fa2263e3552d1c70dac6582.0000'

🐛 Bug
There might be some bug in the training process in ovmm readme at projects/habitat_ovmm/README.md?
The run script is outdated, should be changed (did this according to its hint), otherwise the training won't start:
old:
python -u -m habitat_baselines.run \
   --exp-config habitat-baselines/habitat_baselines/config/ovmm/rl_skill.yaml \
   --run-type train benchmark/ovmm=<skill_name> \
   habitat_baselines.checkpoint_folder=data/new_checkpoints/ovmm/<skill_name> -->

new:
python -u -m habitat_baselines.run\
    --config-name ovmm/rl_discrete_skill.yaml\
    habitat_baselines.evaluate=False  benchmark/ovmm=nav_to_obj\
    habitat_baselines.checkpoint_folder=data/new_checkpoints/ovmm/nav_to_obj

With new script, comes some errors about env receptables:
handle = self._sim.receptacles[KeyError: 'feb130d3499f00724fa2263e3552d1c70dac6582_:0000|receptacle_mesh_feb130d3499f00724fa2263e3552d1c70dac6582.0000, full log:
Traceback (most recent call last):
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 268, in _worker_env
    observations = env.reset()
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/gym/gym_env_episode_count_wrapper.py", line 61, in reset
    return self.env.reset(**kwargs)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/gym/gym_env_obs_dict_wrapper.py", line 36, in reset
    return self.env.reset(**kwargs)
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/gym/core.py", line 283, in reset
    return self.env.reset(**kwargs)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/gym/gym_wrapper.py", line 312, in reset
    obs = self.env.reset(*args, return_info=return_info, **kwargs)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/environments.py", line 62, in reset
    return super().reset(*args, return_info=return_info, **kwargs)
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/env.py", line 424, in reset
    observations = self._env.reset()
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/env.py", line 262, in reset
    observations = self.task.reset(episode=self.current_episode)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/tasks/ovmm/sub_tasks/nav_to_obj_task.py", line 53, in reset
    obs = super().reset(episode)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/tasks/rearrange/sub_tasks/nav_to_obj_task.py", line 294, in reset
    return self._get_observations(episode)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/tasks/rearrange/utils.py", line 632, in wrapper
    ret = f(self, *args, **kwargs)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/tasks/rearrange/rearrange_task.py", line 246, in _get_observations
    self.sensor_suite.get_observations(
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/simulator.py", line 237, in get_observations
    return Observations(self.sensors, *args, **kwargs)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/simulator.py", line 130, in __init__
    data.append((uuid, sensor.get_observation(*args, **kwargs)))
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/tasks/ovmm/sub_tasks/nav_to_obj_sensors.py", line 116, in get_observation
    obs[..., 1] = self._get_obs_channel(
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/tasks/ovmm/sub_tasks/nav_to_obj_sensors.py", line 85, in _get_obs_channel

# see the error here!
    handle = self._sim.receptacles[
KeyError: 'feb130d3499f00724fa2263e3552d1c70dac6582_:0000|receptacle_mesh_feb130d3499f00724fa2263e3552d1c70dac6582.0000'
Error executing job with overrides: ['habitat_baselines.evaluate=False', 'benchmark/ovmm=nav_to_obj', 'habitat_baselines.checkpoint_folder=data/new_checkpoints/ovmm/nav_to_obj']
Traceback (most recent call last):
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-baselines/habitat_baselines/run.py", line 77, in <module>
    main()
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/main.py", line 94, in decorated_main
    _run_hydra(
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/_internal/utils.py", line 394, in _run_hydra
    _run_app(
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/_internal/utils.py", line 457, in _run_app
    run_and_report(
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/_internal/utils.py", line 223, in run_and_report
    raise ex
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/_internal/utils.py", line 220, in run_and_report
    return func()
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/_internal/utils.py", line 458, in <lambda>
    lambda: hydra.run(
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/_internal/hydra.py", line 132, in run
    _ = ret.return_value
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/core/utils.py", line 260, in return_value
    raise self._return_value
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/site-packages/hydra/core/utils.py", line 186, in run_job
    ret.return_value = task_function(task_cfg)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-baselines/habitat_baselines/run.py", line 31, in main
    execute_exp(cfg, "eval" if cfg.habitat_baselines.evaluate else "train")
  File "/share/home-robot/src/third_party/habitat-lab/habitat-baselines/habitat_baselines/run.py", line 60, in execute_exp
    trainer.train()
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-baselines/habitat_baselines/rl/ppo/ppo_trainer.py", line 665, in train
    self._init_train(resume_state)
  File "/share/home-robot/src/third_party/habitat-lab/habitat-baselines/habitat_baselines/rl/ppo/ppo_trainer.py", line 282, in _init_train
    observations = self.envs.reset()
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 389, in reset
    results.append(read_fn())
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 110, in __call__
    res = self.read_fn()
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/utils/pickle5_multiprocessing.py", line 68, in recv
    buf = self.recv_bytes()
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/connection.py", line 216, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/connection.py", line 414, in _recv_bytes
    buf = self._recv(4)
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/connection.py", line 383, in _recv
    raise EOFError
EOFError
Exception ignored in: <function VectorEnv.__del__ at 0x7faaa757bf70>
Traceback (most recent call last):
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 615, in __del__
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 467, in close
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/core/vector_env.py", line 110, in __call__
  File "/share/home-robot/src/third_party/habitat-lab/habitat-lab/habitat/utils/pickle5_multiprocessing.py", line 68, in recv
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/connection.py", line 216, in recv_bytes
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/connection.py", line 414, in _recv_bytes
  File "/root/mambaforge/envs/habitat-sim/lib/python3.9/multiprocessing/connection.py", line 383, in _recv
EOFError:

Found this object at my_data_path/hssd-hab/objects/f/feb130d3499f00724fa2263e3552d1c70dac6582.glb, with the same object id.
I changed num_env to 2 (previously 20) at rl_discrete_skill.yaml and everything goes fine. Guess it could be a oom problem again...


Can't resolve 'styled-components/no-tags'

Upgrade styled-components to v4 and then keep this error. I don't know why, I can't find a similar answer.
Steps to reproduce
Expected Behavior
Actual Behavior

@xiaodoulidd01 Were you able to resolve this? Currently getting this error when trying to build using parcel-bundler.


Package request: fm

Project description
A terminal based file manager
Metadata

homepage URL: https://github.com/mistakenelf/fm
source URL: https://github.com/mistakenelf/fm
license: mit
platforms: unix, linux, darwin, ...

note this is distinct from the previously packaged fm package, also a file manager tho using GTK rather than using Bubbles

Let's play!


Gluster exporter errors

I am getting the following error when trying to use gluster exporter
An error has occurred during metrics gathering:
collected metric gluster_up gauge:<value:1 >  was collected before with the same name and label values
tried to execute [volume info] and got error: exit status 1" source="gluster_client.go:23
couldn't parse xml volume info: exit status 1" source="main.go:211
tried to execute [peer status] and got error: exit status 1" source="gluster_client.go:23
couldn't parse xml of peer status: exit status 1" source="main.go:248
tried to execute [volume status all detail] and got error: exit status 1" source="gluster_client.go:23
couldn't parse xml of peer status: exit status 1" source="main.go:305
Please help

Your exporter user does not have permission to gluster, you need to set gluster_exporter user as root.

Your exporter user does not have permission to gluster, you need to set gluster_exporter user as root.
Thanks, that was my problem, it's fixed now.


Maxed GPU usage on Dynamic Lights Many (100)

Describe the bug
Dynamic Lights Many (100) causes GPU usage to max out and slow down other aspects of the game
To Reproduce
Set Dynamic Lights to Many (100)
Expected behavior
Graphic setting not realistically usable, expect normal GPU usages within the settings. Possible unoptimized code or a bug from a change, don't recall the usage being this high before a recent patch.
Screenshots
After enabling Many (100)

Environment (please complete the following information):
Windows 10
Runelite 1.7.24

Having the same issue.

Works well for me on RTX 3080, if that's any helpful information to go off of :)

I pushed a change that may fix the issue. if one of you has the repo cloned, please try pulling the change and let me know if it improves your performance

Still quite taxing in Prif with Dynamic Lights: Many (100), however there is definitely a noticeable improvement in other areas.


Revert "Use new implementation of Maven version standard"

Reverts dependabot/dependabot-core#10558

@amazimbe ,
Smoke PR is approved. I think you can merge smoke tests and make this PR successfull then you can merge that.


[Feature Request]: Support for Digital Signatures

Hi Guys--here is a feature for your consideration...would really, really, love to have it!   I suspect it would not be too easy, but I figure I would ask.
This link provides high level information on digital signatures in pdf:
https://www.adobe.com/devnet-docs/acrobatetk/tools/DigSigDC/Acrobat_DigitalSignatures_in_PDF.pdf
This link provides samples including a pdf with attached signature:
https://uwaterloo.ca/onbase/help/sample-pdf-documents
You will notice when you open the attached document in adobe reader it shows the signature panel.
Let me know if you need anymore details.

Yes please, been trying to figure this out for weeks.

For a technical introduction to digital signatures and how they are implemented in iText please read
digitalsignatures20130304 2.pdf

I have same problem, when i draw new image to my pdf file, and submit it to server and sign, result file isn't signed, but when i don't add image, result my file is signed. Please help me !

Hello @kevin8479 @scottie-schneider @hotuy! Support for digital signatures is increasingly on my radar for pdf-lib. I've received many issues, comments, and emails asking about this. And they certainly aren't slowing down! They're increasing, in fact.
I'm going to be constructing a roadmap for pdf-lib in the coming days, and this will be on it in some shape/form. I think the highest priorities for the roadmap are support for encryption, AcroForms, and digital signatures (in no particular order). Although, AcroForm support and digital signatures are somewhat related, as signature fields are typically added as part of an AcroForm.
I'm not sure exactly how this will look. Whatever I end up doing, it will need to work in all JavaScript environments - not just NodeJS. Many of the questions I receive about digital signatures involve using pdf-lib in combination with node-signpdf to apply a signature to a new or existing document. So it may be that I'll just make some changes to pdf-lib that allow it to be used more easily with node-signpdf. Or perhaps I'll try to incorporate logic from node-signpdf directly into pdf-lib (though at the moment, this seems less likely). I'm not sure if node-signpdf has any native dependencies though. If it does, then it certainly can't be directly dropped into pdf-lib. Its name implies a native dependency, but after a brief overview of the code, I didn't actually spot any node-specific stuff.

Hi @Hopding,
But i don't want using node-signpdf to this pdf-lib, it's from client slide, i only want to talk that when i add image to my pdf from Angular client by pdf-lib, after that, i submit pdf bytes to server golang, finally golang server using unidoc to sign my file with cert on server. But not success. Because had problem with new files created by pdf-lib.
Thanks.

@hotuy This issue is tracking a feature request, so it's not a great place to discuss your problem. Would you please open a new issue describing your problem in detail? Please include the following:

A careful description of your problem and how it relates to pdf-lib.
The errors/stacktraces you are observing (either client or server side).
Sample documents that illustrate your problem.

ok @Hopding , i will open new issue, tks you.

This can be related with https://github.com/Hopding/pdf-lib/issues/371

having this would be awesome. is there anyway do help with a donation?

Sorry Andrew--I have not followed this issue and am a little late replying:).  I took a different path on signatures.  I used an existing pdf library written in C++ and compiled it to web assembly along with openssl crypto lib.  At this point I do have LTV signatures, without timestamps however.
These signatures do require an HSM so actual signing requests have to be fulfilled by a third party.  I forward the signing requests to google HSM.  A similar approach was taken (except with java) and documented in this article:  https://medium.com/google-developers/digital-signatures-how-sleek-leverages-cloud-hsm-to-guarantee-the-integrity-of-legal-documents-a7bd3b82faf6

Can we have an update regarding this? I'm having trouble signing a PDF that was created with pdf-lib with node-signpdf, so having this functionality built in to this library would be great.

Can we have an update regarding this? I'm having trouble signing a PDF that was created with pdf-lib with node-signpdf, so having this functionality built in to this library would be great.

Hi for those who want to implement pdf-lib with node-signpdf. I mention that I have created a fork of node-signpdf with some solutions from this library. But I have used pdf-lib to add the visible text in the pdf and it works for the first signature, but not for a second or more. I have noticed that pdf-lib does not meet the rules for incremental modification of PDF. I explain this in more detail in this issue.
Do you have any ideas to solve this problem? With this, I think the pdflib library is perfect to use with node-sign pdf

Hi, Any updates on this?
@therpobinski By any chance did you get it working using node-signpdf and pdf-lib

Hola para aquellos que quieran implementar pdf-libcon node-signpdf. He mencionado que he creado un tenedor de node-signpdfalgunas soluciones de esta biblioteca. Pero he usado pdf-libpara agregar el texto visible en el pdf y funciona para la primera firma, pero no para un segundo o más. He notado que pdf-libno cumple con las reglas para la modificación incremental de PDF. Explico esto con más detalle en este número .
¿Tiene alguna idea para solucionar este problema? Con esto, creo que la pdflibbiblioteca es perfecta para usar connode-sign pdf

Hi, you can update the node-signpdf branch to be able to do the process with a single signature, thanks

Added this to the roadmap for tracking: https://github.com/Hopding/pdf-lib/discussions/998.

Hi, Any updates on this?


Bisimulation

Test Sequence behavior by comparing it to that of the Buffer module.

Noted issue and fix for Buffer.append in base repo


Add Ioannis Tachydromidis to Before I Die

I am adding Ioannis Tachydromidis(me) to BeforeIDieAchievements with his profile and images.

Hello! Can you tell me what stage my request is at?Thanks.


[Feature] Allow video input instead of single image

This should (and could) be implemented as an effect I think

Fixed by 6412b7f97c30467f9541b6a1cc0c50caea8ac91b


UB in Either?

Consider the following code:
    impl<A, B> AsyncSeek for Either<A, B>
    where
        A: AsyncSeek,
        B: AsyncSeek,
    {
        fn poll_seek(
            self: Pin<&mut Self>,
            cx: &mut Context<'_>,
            pos: SeekFrom,
        ) -> Poll<Result<u64>> {
            unsafe {
                match self.get_unchecked_mut() {
                    Either::Left(x) => Pin::new_unchecked(x).poll_seek(cx, pos),
                    Either::Right(x) => Pin::new_unchecked(x).poll_seek(cx, pos),
                }
            }
        }
    }

Pin::new_unchecked docs:

By using this method, you are making a promise about the P::Deref and P::DerefMut implementations, if they exist. Most importantly, they must not move out of their self arguments: Pin::as_mut and Pin::as_ref will call DerefMut::deref_mut and Deref::deref on the pinned pointer and expect these methods to uphold the pinning invariants. Moreover, by calling this method you promise that the reference P dereferences to will not be moved out of again; in particular, it must not be possible to obtain a &mut P::Target and then move out of that reference (using, for example mem::swap).

Is it UB to call Pin::new_unchecked in this code, because Deref or DerefMut implementations may move a location in memory?

Just realised that Deref and DerefMut for references do not move data, nevermind.


[FEATURE] The lack of a method to receive some kind of messages at once in one call .

Is your feature request related to a problem? Please describe.
There is a lack of a way to receive some kind of message simultaneously in a call. For example, I want to retrieve a media group message in one call, but Telegram's webhook just makes many calls, which disrupts the functionality of my code.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response

That's how the Telegram Bot API works...
To handle this, you will need to check the 'media_group_id' property of the message type on each update.


I think it's because .. creates a different type of range than .... The latter is not inclusive, and the range object remembers this rather than simply subtracting 1 from the last value.

ranges are compared field by field: https://github.com/munificent/wren/blob/master/src/vm/wren_value.c#L1180

Of course, bjorn, that explain why but, without a key justification, this behavior is IMO not convenient nor logical, and more surprising than
(from..to) == (from...to-1)

minirop, how that explain the mentioned issue?
Thanks!

@horv, because (1..3) is equals to:
var from = 1
var to = 3
var isInclusive = true

while (1...4) is equals to
var from = 1
var to = 4
var isInclusive = false

a.from == b.from, but a.to != b.to and a.isInclusive != b.isInclusive. To make what you expect work, the code could be changed to something like:
aRange->to - (aRange->isInclusive ? 0 : 1) == bRange->to - (bRange->isInclusive ? 0 : 1)

Thanks for your effort, @minirop , but I tell you the same thing I told @bjorn : does not seem worthwhile. We have the isInclusive method and
aRange->to - (aRange->isInclusive ? 0 : 1) == bRange->to - (bRange->isInclusive ? 0 : 1)

instead
a == b

(not a completely fair comparison, but ...)

Summarizing: ... is nice and good syntactic sugar for ..to-1, but I think if
var a = (1..3)
var b = (1..3)
a == b // true

then
var a = (1..3)
var b = (1...4)
a == b // true

should also be.

aRange->to - (aRange->isInclusive ? 0 : 1) == bRange->to - (bRange->isInclusive ? 0 : 1)

is not to replace a == b, but a patch that could be proposed for the VM to make (1..3) == (1...4) return true. (see my first message)

This is a weird corner of ranges. The behavior is deliberate, but subtle and I'm not sure if it's ultimately that useful. The things to keep in mind are:

Ranges aren't limited to just integers.
They are a general-purpose data structure, like numbers, and not only for use for iterators.

So, for example, I might potentially want to use a range for something interval arithmetic. Or maybe I want a function that produces all the numbers inside a range, counting by 0.1:
decimals(range) {
  var result = []
  var i = range.start
  while (i <= range.end) {
    if (i == range.end && !range.isInclusive) break
    result.add(i)
    i = i + 0.1
  }
}

So ... really isn't ..to-1, it's more like ..to-epsilon. But it's clearer just to realize that isInclusive is a fundamental bit of data in the range and is part of its value.


UI: Navbar Mobile and Desktop

IMO, Ready for MVP!

add indicator on mobile that there's a Dropdown

Click on logo links to Homepage


Ignore sp_columns_100 in parallel jdbc mode

Description
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

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

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
46569

Relevant Lines:
62212

💛  - Coveralls


tweak headline shadows so they aren't cut off

resolves #325
(…also rearranges some media queries for legibility. i tested element by element to confirm my rearranging.)

some  screenshots:
320px

480px

800px

1440px

Did you test this on:

tag page
archive page
live blog / nested articles article

the only view this should be impacting is home, as it is namespaced to #home
also what is a tag page? is that the same thing as a category?

"should" is where developers get into trouble. Doesn't hurt to spot check test.
Tag pages are very similar to Categories.
https://crimethinc.com/categories/analysis
https://crimethinc.com/tags/j20

"should" as in i searched the entire codebase for the string home and the only place it's being applied as a css class is the body id on the home controller.


Boot rework

This is a complete overhaul of the startup process for LÖVR!  Some of the build system stuff isn't finished yet, but in the meantime I'm gonna write about it here since the design is somewhat stable.
The key points are:

The nogame screen is distributed as a fused zip instead of being embedded in the C code.
All CLI behavior is moved into a new file, arg.lua.  This is also in the fused zip.  It handles all argument parsing, including finding the project passed in on the command line, --help/--version, etc.

The impact of these changes are:

The nogame screen and argument handling can be removed entirely when creating a fused project.  This makes projects a little bit smaller and allows the nogame screen and CLI to be as big as they want without bloating every shipped app.
Fused projects will no longer respond to lovr's development CLI arguments.  It wasn't a huge deal, but it always kinda bothered me that you could do game.exe --help and see a weird message about lovr.
Because LÖVR will always be a zip, and that zip will always be mounted, you can do some interesting things:

You can edit the nogame screen.
You can add your own CLI behavior, and it will work for every app.
You can add libraries to the zip and use them in any project (!)

This is confirmed working on Windows and Linux.  macOS will probably need special handling for LOVR_BUILD_BUNDLED=ON builds, Android will definitely need special handling but it might be as simple as defaulting ANDROID_ASSETS to the etc/nogame folder and skipping the regular nogame exe packaging.

Ok, macOS and Android work as well now!
There might be one issue where the nogame's conf.lua affects projects that are missing a conf.lua of their own, need to test that but otherwise this is probably ready to merge?


Structure SQL file with missing APIs

Hello everything is fine? Thank you for providing the source code for this second version.
It is missing from config database the .env file
the connection to the database, and also the structure to create with the information from the apis. If you could add, I would be very grateful. thanks.

Do you mean that .env.sample is lacking some variables?

I'm using Linux and using Node V. 20.9.0 and I have this error:
(I used command: "npm install", then "npm run dev".)
root@saralapia:/home/ubuntu/Domination-Bot-V2/MIR4-Domination-v2# npm run dev

><EMAIL_ADDRESS>dev
> ts-node-esm src/Core.ts

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/ubuntu/Domination-Bot-V2/MIR4-Domination-v2/src/Core.ts
    at new NodeError (node:internal/errors:406:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:142:36)
    at defaultLoad (node:internal/modules/esm/load:120:20)
    at nextLoad (node:internal/modules/esm/hooks:833:28)
    at load (/home/ubuntu/Domination-Bot-V2/MIR4-Domination-v2/node_modules/ts-node/dist/child/child-loader.js:19:122)
    at nextLoad (node:internal/modules/esm/hooks:833:28)
    at Hooks.load (node:internal/modules/esm/hooks:416:26)
    at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

I tried to correct and use other versions of node like v.18 and made some changes and this error appeared:

about the variables that I'm seeing that are missing, in: /src/modules/core/database/Database.js:
			host: HDiscordConfig.loadEnv(`discord.database.host`),
			port: Number(HDiscordConfig.loadEnv(`discord.database.port`)),
			username: HDiscordConfig.loadEnv(`discord.database.username`),
			password: HDiscordConfig.loadEnv(`discord.database.password`),
			database: HDiscordConfig.loadEnv(`discord.database.name`)

Could you please help me fix these errors and make it work? I don't know what the problem is, I don't understand TS =/

I managed to get the bot to work, but the .env variables are actually different from V1, as you can see in the image below.
And also when trying to use the "check" button, it doesn't find the character, and I didn't find a configuration for the character search api in the code. Could you update, or tell me how to do it, please?

Download
https://www.mediafire.com/file/nyekc4ehyxg2ijy/fix.zip/file
In the installer menu, select "gcc."

Download
https://mega.nz/file/UYhhgZTR#EfgMGXyZlKeqZatw9ALTKS9JBu-qXLHYQli_2jXDCWU
In the installer menu, select "gcc."

Download
https://mega.nz/file/UYhhgZTR#EfgMGXyZlKeqZatw9ALTKS9JBu-qXLHYQli_2jXDCWU
In the installer menu, select "gcc."

Download
https://mega.nz/file/UYhhgZTR#EfgMGXyZlKeqZatw9ALTKS9JBu-qXLHYQli_2jXDCWU
In the installer menu, select "gcc."

Download
https://mega.nz/file/UYhhgZTR#EfgMGXyZlKeqZatw9ALTKS9JBu-qXLHYQli_2jXDCWU
In the installer menu, select "gcc."

Download
https://mega.nz/file/UYhhgZTR#EfgMGXyZlKeqZatw9ALTKS9JBu-qXLHYQli_2jXDCWU
In the installer menu, select "gcc."


Exactly equivalent to 17 optional? And license question

Hi, I'm seeking an optional implementation to include with my library, a C++14 reflective enum implementation. The library would automatically switch to std::optional if compiled with 17. I wanted to verify that a) this exactly mimics the optional that was standardized in terms of interface; the readme says it was the reference implementation during the proposal but I'm not sure if there were any further changes. And b) I wanted to verify that using optional in this way would be alright. Obviously would leave the license in place, my own library will probably be boost licensed too and of course would credit you appropriately. Considering either using this library or https://github.com/martinmoene/optional-lite, not sure what the difference is. Cheers.

I actually spoke to martinmoene, who mentioned there was a lot of constexpr missing. I also foud that several other implementations were not single header. So there's a good chance I'll use this implementation, if possible. How does this differ from std::optional? Does it allow optional<T&>?

Hi,
License-wise, If you retain the original copyright notice, you are fine. This implementation does allow optional references, but makes arbitrary decisions how to handle them. For instance assignment from T& to optional<T&> is disallowed.
Regarding the differences from std::optional, I can no longer tell as I am not tracking amendments applied after adopting te proposal. For instance std::optional has a conditionally converting constructor of optional<T> form U to optional<U>.


docs: fixed docs

Closes #XYZ
Summary of Changes

changed some docs in time series dataset and moving average plot.

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

v0.27.0
GitHub release

Your semantic-release bot :package::rocket:


Fixed issue for Pycom devices where decode("UTF-8") is unavailable

The decode command in the _unquote_decode function is not working on WiPy/LoPy devices.
Those devices will directly close the socket without any error (however no response will be send). I updated the function to use the str method instead.

Exactly !

Hello,
I released a fully new version (v2.0) of my web server here :
github.com/jczic/MicroWebSrv2.
Open source MIT, fully asynchronous, more robust, more fast and more
efficient!
It is delivered with a good documentation.
Thank you for your support and feedback. ☺
Jean-Christophe Bos
Le mer. 20 juin 2018 à 10:41, Jonathan<EMAIL_ADDRESS>a écrit :

The decode command in the _unquote_decode function is not working on
WiPy/LoPy devices.
Those devices will directly close the socket without any error (however no
response will be send). I updated the function to use the str method
instead.
You can view, comment on, or merge this pull request online at:
https://github.com/jczic/MicroWebSrv/pull/35
Commit Summary

fixed issue on wipy where decode(utf-8) is unavailable

File Changes

M microWebSrv.py
https://github.com/jczic/MicroWebSrv/pull/35/files#diff-0 (2)

Patch Links:

https://github.com/jczic/MicroWebSrv/pull/35.patch
https://github.com/jczic/MicroWebSrv/pull/35.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jczic/MicroWebSrv/pull/35, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAegLE9NQyQzNSL7m54Qo25m7JvUtgK7ks5t-gq9gaJpZM4Uu2FG
.

--
Sincèrement,


Fix permissions issues for Windows

The fs constants don't seem to work at all and files end up as read-only
which means we can't write any secrets. This solution is not perfect,
but should be OK for now.

Closing in favor of #138


Unable to start cluster after update

Describe the issue:
After updating to the latest U2 level the server couldn't start the cluster due to a ClassNotFoundException error:
WARN {com.hazelcast.spi.EventService} - [,]:[<IP_ADDRESS>]:5701 [cbsa.is.domain] [3.12.13] Error while logging processing event com.hazelcast.nio.serialization.HazelcastSerializationException: Problem while reading Externalizable class: org.wso2.carbon.core.clustering.hazelcast.IdempotentWrappedClusteringMessage, exception: java.lang.ClassNotFoundException: org.wso2.carbon.core.clustering.hazelcast.IdempotentWrappedClusteringMessage cannot be found by hazelcast_3.12.2.wso2v1
        at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$ExternalizableSerializer.read(JavaDefaultSerializers.java:159)
        at com.hazelcast.internal.serialization.impl.JavaDefaultSerializers$ExternalizableSerializer.read(JavaDefaultSerializers.java:135)
        at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48)
        at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:187)
        at com.hazelcast.topic.impl.DataAwareMessage.getMessageObject(DataAwareMessage.java:44)
        at org.wso2.carbon.hazelcast.HazelcastIdempotentClusterMessageListener.onMessage(HazelcastIdempotentClusterMessageListener.java:49)
        at com.hazelcast.topic.impl.TopicService.dispatchEvent(TopicService.java:138)
        at com.hazelcast.spi.impl.eventservice.impl.EventProcessor.process(EventProcessor.java:61)
        at com.hazelcast.spi.impl.eventservice.impl.RemoteEventProcessor.run(RemoteEventProcessor.java:47)
        at com.hazelcast.util.executor.StripedExecutor$Worker.process(StripedExecutor.java:244)
        at com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:227)

Class org.wso2.carbon.core.clustering.hazelcast.IdempotentWrappedClusteringMessage was renamed to org.wso2.carbon.hazelcast.IdempotentWrappedClusteringMessage according to [1] but it was not updated accordingly on the hazelcast_3.12.2.wso2v1 component.
[1] https://github.com/wso2/product-is/pull/18809/
How to reproduce:
Update from U2 level 216 (or below) to U2 level 271 (or above)
Expected behavior:
Clusters should start seamlessly after taking updates.
Environment information:

Product Version: IS 5.10.0

Hi @RushanNanayakkara / @Tiffany-silva
This setup involves WSO2 Identity Server KM 5.10.0. However, it cannot be reproduced exactly at the same U2 level. As per [1], the following changes were implemented [2]. In these changes, the package name was altered from org.wso2.carbon.core.clustering.hazelcast to org.wso2.carbon.hazelcast. Furthermore, the clustering membership scheme is unrelated, as Hazelcast is common across all clustering membership schemes. Because HazelcastClusteringAgent imports all the clustering schemas like AWS,WKA,Kubernetes etc. I was able to reproduce the scenario using two different U2 levels with the WKA membership scheme, while maintaining the following Hazelcast configurations.
[hazelcast]
hazelcast.shutdownhook.enabled = "false"
hazelcast.logging.type= "log4j2"
hazelcast.heartbeat.interval.seconds = 1
hazelcast.master.confirmation.interval.seconds = 5
hazelcast.max.no.heartbeat.seconds = 20
hazelcast.max.no.master.confirmation.seconds = 30
hazelcast.version.check.enabled = "false"
hazelcast.phone.home.enabled = "false"

[clustering]
membership_scheme = "wka"
local_member_host = "<IP_ADDRESS>"
local_member_port = "4001"
members = ["[<IP_ADDRESS>:4000](http://<IP_ADDRESS>:4000/)", "[<IP_ADDRESS>:4001](http://<IP_ADDRESS>:4001/)"]

However it is a must requirement to update the both nodes to same U2 level specially in a clustering environment.
[1] - https://github.com/wso2/product-is/pull/18809
[2] - https://github.com/wso2/carbon-kernel/pull/3697/files
Thanks

Closing the issue since as per the internal discussion, the issue is caused nodes having different versions.


How to port to Rollup?

Hi,
as mentioned in this comment I am interested in using this debugging approach with Rollup.
I'm not specifically asking for someone else to do the job ;) But I'd like to know the main steps to achieve it. I suppose that the rollup plugin should support svelte-dev-helper in the same way svelte-loader does?

The main thing is you will need a rollup plugin that will take the source code from the svelte compile step, and then replace export default ComponentName; with some extra code that registers the component with the dev-helper.
Here is the replace step in action: https://github.com/sveltejs/svelte-loader/blob/master/index.js#L30-L46


IGAPP-1013: Add build config obdach

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword IGAPP.

campaign logo and city not cooperating icon should be removed as well

still relevant, same for assets only used on native (if existent). Not that important though so I will approve to not block anything.


test(VulnerableCode): Improve the funTest template

Add assertions about severities reported by the NVD. See 1 for context.

Merging despite the unrelated test failures.


new dataframe tree traverser in to_json()

hasn't been extensively tested yet

Coverage decreased (-0.06%) to 76.161% when pulling 8269be358c1006c9e0e499525cfac3a397aab46f on gbordyugov:gb/results-to-json into a9e418deb8ad1c848116079de95b97cc4645987c on zalando:dev.


[CARBONDATA-1464] Fixed SparkSessionExample

Not able to create table from SparkSession because of missing tablePath. This PR generates tablePath from storelocation.

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/620/

LGTM


Fixes hclk miscalculation

Closes https://github.com/stm32-rs/stm32f1xx-hal/issues/84 .

This looks correct to me.
Though I would sort of rather use some kind of abstraction on top of HPREW instead, so instead of calculating hpre_bits, we would make a HPREW value and then have some function that converts a HPREW to a divisor which is then used to calculate the hclk.  Advantage of that would be that it's much easier to write the correct code that way, and make the correct code be obviously correct, than when manually calculating the bit patterns.
This should be possible to do with const functions, which would allow more compile-time validation of the values even, hm.

I don't think const-fn is there yet. I like the idea of improving readability to find mistakes more easily, but I am not sure if creating a function here is the best for now, since it took only 4 lines to fix the issue. Maybe when we get more flexibility in stable const-fn we can make some refactoring.
@TheZoq2, @therealprof, what do you think ? Can we merge this for now or try to improve ?

@thalesfragoso I think this is good for now.
One question out of curiosity, any reason why you didn't move out the common parts from the branches?
like
      let hclk = sysclk / (1 << hpre_bits - if hpre_bits >= 0b1100 { 0b0110 } else { 0b0111 });

@thalesfragoso I think this is good for now.
One question out of curiosity, any reason why you didn't move out the common parts from the branches?
like
      let hclk = sysclk / (1 << hpre_bits - if hpre_bits >= 0b1100 { 0b0110 } else { 0b0111 });

Not really, I guess I prefer the former aesthetics, but no strong feelings about that, I can change it to the oneliner if you prefer.

@thalesfragoso I don't care, just curious. ;)


Remove "exclude" field from WarpPolicy struct

This PR resolves #7 by removing "exclude" from the WarpPolicy struct (as it is not used elsewhere in the code).

LGTM


Fixed end pops of imported trimmed wav files

-Added trim limit constant at top of file, defining at which db trimming should occur (moved from being in the code itself)
-Added fade out frames constant at top of file, defining how many frames should have fade out applied (to avoid pops at the end of trim)
-Rewrote parts of the trimming logic to use an average of volume across all channels instead of any particular channel
-Added fade-out to trimming

@theisegeberg Why was this closed?


Add Script for Cleanup

Describe the solution you'd like
Add a script for cleanup of all resources after testing the environment.
$filter = 'prefix-'
Get-AzResourceGroup | ? ResourceGroupName -match $filter | Select-Object ResourceGroupName

$filter = 'prefix-'
Get-AzResourceGroup | ? ResourceGroupName -match $filter | Remove-AzResourceGroup -AsJob -Force

Added conversation to Discussions.


Vulnerability Roundup 14

Here are all the vulnerabilities from https://lwn.net/Vulnerabilities
since our last roundup
This roundup is different from previous' due to Christmas: http://lists.science.uu.nl/pipermail/nix-dev/2016-December/022367.html
I will update this issue tomorrow and Wednesday with new issues.
cc: @NeQuissimus @bachp @domenkozar @makefu.
Note: The list of people CC'd on this issue participated in the last
roundup. If you participate on this roundup, I'll cc you on the next
one. If you don't participate in the next one, you won't be CC'd on
the one after that. If you would like to be CC'd on the next roundup,
add a comment to the most recent vulnerability roundup.
If you would like to be CC'd on all roundups, leave a comment and
tell @grahamc so.
Permanent CC's: @joepie91, @phanimahesh, @NixOS/security-notifications
(if you no longer want to be CC'd, ask to be removed from this list)
Notes on the list

The reports have been roughly grouped by the package name. This
isn't perfect, but is intended to help identify if a whole group
of reports is resolved already.
Some issues will be duplicated, because it affects multiple
packages. For example, there are sometimes problems that impact
thunderbird, and firefox. LWN might report in one vulnerability
"thunderbird firefox". These names have been split to make sure
both packages get addressed.
By each issue is a link to code search for the package name, and
a Github search by filename. These are to help, but may not return
results when we do in fact package the software. If a search
doesn't turn up, please try altering the search criteria or
looking in nixpkgs manually before asserting we don't have it.
This issue is created by https://github.com/NixOS/security

Instructions:

Triage a report: If we don't have the software or our version isn't
vulnerable, tick the box or add a comment with the report number,
stating it isn't vulnerable.
Fix the issue: If we do have the software and it is vulnerable,
either leave a comment on this issue saying so, even open a pull
request with the fix. If you open a PR, make sure to tag this
issue so we can coordinate.
When an entire section is completed, move the section to the
"Triaged and Resolved Issues" details block below.

Upon Completion ...

[ ] Run the issue through reformat one last time
[ ] Review commits since last roundup for backport candidates
[ ] Send an update e-mail to<EMAIL_ADDRESS>[ ] Update the database at https://github.com/NixOS/security

Without further ado...
Assorted (10 issues)

[x] #709363 (search, files)  apport: three vulnerabilities
[x] #709149 (search, files)  apt: code execution
[x] #709669 (search, files)  kernel: out of bounds stack read
[ ] #709466 (search, files)  libupnp: code execution
[ ] #709664 (search, files)  most: command execution
[ ] #709666 (search, files)  nagios: two vulnerabilities
[ ] #709146 (search, files)  python-html5lib: cross-site scripting
[ ] #709661 (search, files)  samba: three vulnerabilities
[x] #709162 (search, files)  w3m: multiple vulnerabilities
[ ] #709670 (search, files)  xen: multiple vulnerabilities

firefox (3 issues)

[x] #709468 (search, files)  firefox: denial of service
[x] #709140 (search, files)  mozilla: multiple vulnerabilities
[x] #709141 (search, files)  mozilla: multiple vulnerabilities

game-music-emu (2 issues)

[x] #709663 (search, files)  game-music-emu: multiple vulnerabilities
[x] #709341 (search, files)  game-music-emu: code execution

tomcat (2 issues)

[x] #709662 (search, files)  tomcat: two vulnerabilities
[x] #709342 (search, files)  tomcat: denial of service

A fix for #709669 was included in 4.8.14

Commit https://github.com/NixOS/nixpkgs/commit/86cf682cda6c3fc6bfbf783d20d93b75773ec1b1 fixes  #709468 firefox: denial of service. Can be marked as done.

libupnp is actually pupnp and can be found here: http://pupnp.sourceforge.net/ where it says 1.6.21 is out, but the downloads are all for 1.6.20. If anyone wants to investigate that, please!

most needs updating to 5.0.0a and application of patches from debian, I think: https://security-tracker.debian.org/tracker/source-package/most

Looks like Xen needs more patches. Also, our Xen is running out of time. @michalpalka -- you seem to open issues about Xen, would you like to try upgrading Xen?

@grahamc My schedule is full for the next 2 days, but will look at it on Friday

That will be really helpful. Thank you so much, @michalpalka!

We should quite likely drop samba3.

../auth/kerberos/kerberos_pac.c: In function 'check_pac_checksum':
../auth/kerberos/kerberos_pac.c:46:7: error: 'CKSUMTYPE_HMAC_SHA1_96_AES_256' undeclared (first use in this function)
  case CKSUMTYPE_HMAC_SHA1_96_AES_256:
       ^
../auth/kerberos/kerberos_pac.c:46:7: note: each undeclared identifier is reported only once for each function it appears in
../auth/kerberos/kerberos_pac.c:52:7: error: 'CKSUMTYPE_HMAC_SHA1_96_AES_128' undeclared (first use in this function)
  case CKSUMTYPE_HMAC_SHA1_96_AES_128:
       ^
Waf: Leaving directory `/tmp/nix-build-samba-4.4.8.drv-0/samba-4.4.8/bin'
Build failed:  -> task failed (err #1):
	{task: cc kerberos_pac.c -> kerberos_pac_1.o}
make: *** [Makefile:8: all] Error 1

@abbradar, @wkennington any ideas on what is wrong with samba here?

@grahamc I've tried to update libkrb5 and Cyrus-SASL -- no luck so far. I'll spend more time on this later since this is a security issue but have no idea what happens. I left Samba 4.5.3 to build in the background but this is not an option for the release, isn't it?...

Thank you for looking, @abbradar. Unfortunately backporting an update to 4.5.x wouldn't be good. I definitely wouldn't mind seeing unstable updated though, especially before 17.03 goes stable ( @michalpalka -- that is when I'd like Xen to be upgraded at the latest, hopefully)

Samba, libkrb5 and Cyrus-SASL updates are in staging, because Cyrus-SASL is a systemd dependency. We now need to determine how to build new 4.4.* -- I'm on it but with no ideas currently.

I did some investigation on libupnp. There is a 1.6.21 tag available but no tarball.

@abbradar can you link each of those commits here to make it easier to keep track / ensure they get backported?

https://github.com/NixOS/nixpkgs/commit/b0a1028a1a18932aced53f36f0a80a3a213f91e4 covers Samba in staging. Others don't have a security issue assigned IIUC. I want to avoid having it backported as is now -- instead I'll try to have a maintenance release building.

16.09 is covered by b2e80a53cab7890024036f373a78ab8a560b4285

This might work for libupnp https://github.com/NixOS/nixpkgs/pull/21317.

Just updated the list with more vulnerabilities.

I suspect we need to apply patches to xen, see: https://xenbits.xen.org/xsa/advisory-200.html and: an enterprising contributor may go back through old advisories and see if we missed anything :)

We don't run debian's version of most, so we don't need patches.

I just push my roundup branch which contains fixes for everything but the html5lib, will merge shortly.

Merged and backported the branch. Just updated this issue with new vulnerabilities. :)

@the-kenny can you update flightgear?

Just pushed patches for zlib to staging, will push to 16.09 shortly.

@wkennington can you patch ceph? We're pretty old, I might mark it as broken otherwise.

@grahamc The libupnp tarball would be available now: https://sourceforge.net/projects/pupnp/files/

Thank you, @bachp I already switched to their github mirror since it already had a good tag.

Graham Christensen<EMAIL_ADDRESS>writes:

@the-kenny can you update flightgear?

will do!

Sorry, I couldn't get around to finishing the html5lib update, got busy with work-related issues.
It requires a few dependencies (webencodings, and others I don't recollect) that have to be added to nixpkgs. My schedule for today and tomorrow is chaotic, not sure if I'll be able to clean it up. If anyone can, please comment on the issue and pitch in. I'll get to it as soon as I can make some time for it.

Sorry it took so long. Holidays. Just pushed
bdc880e49df1515c92c2c9f4f2600d57ad7d686b to master.
I'm not sure if this should be backported to our current stable release
as we skipped quite a few major releases. Any other comments on this?
Cheers
Moritz
Moritz Ulrich<EMAIL_ADDRESS>writes:

Graham Christensen<EMAIL_ADDRESS>writes:

@the-kenny can you update flightgear?

will do!

--

@the-kenny does neither not look like a critical network-facing service to me nor a serious security issue (I would not expect that malicious Nasal scripts are sent as email attachments any time soon). On the other hand it does not look the typical application, where people would expect the version to be stable all the time. I think both approaches (upgrading or not upgrading) are fine.

The PR from f3287b0 needs to be backported.

Also, the html5lib changes would be good to backport.
@FRidh -- thank you for merging that!
@bjornfor -- I agree, I try really hard to test all my changes. Even still, a few mistakes come through. I always feel bad about it.

@grahamc the new html5lib has quite some extra dependencies. I'll have a look at it.

@bjornfor -- I agree, I try really hard to test all my changes. Even still, a few mistakes come through. I always feel bad about it.

It's frustrating when breakage happens, but I do appreciate the work you and everyone else put into keeping NixOS updated and secure :-)

We now have the latest html5lib in stable as well.

It seems like openssh has fallen through the cracks. I didn't manage to fully fix it (yet) 661b5a9875c.

@vcunat openssh hasn't fallen through the cracks, it hadn't been released yet when this was created. I just checked, it'll appear on next week's.

Oh, now I see the tarball timestamp is Dec.19; I originally misread it about a week earlier.

I'm going to close out what we have and let the remainders come back next run.

Good work, everyone - thank you all!


'Color' param to vector opcodes shouldn't lose formatting

Per the manual, the nicer way to set colour values for vector art parameters is using the $AARRGGBB hex notation, but it gets converted into (base10) integer format immediately, so it's not (AFAIK) possible to easily see and modify the original hex representation.
I'm not sure if this counts as a bug or feature, but either way it'd be nice if, when setting params using $hex notation, it remembers that when subsequently editing it.  Or have some keybind or UI control to toggle through the int/hex representations.
A side note, isn't it generally more common practice to use RRGGBBAA with the alpha channel last? It's a minor thing, but I initially misread and assumed the above, leading to some interesting results.

Yes, this is actually on my todo to have a toggle HEX mode.
As for the RRGGBBAA format, that's not something I control. That's just what Minecraft needs