[BUG] Error while trying to publish events using Event Grid's publishCloudEvent (sync) and using jar 4.17.0-beta.1

Describe the bug
The following root cause exception is thrown when attempting to publish an event using Event Grid's synchronous EventGridClient.publishCloudEvent in a SpringBoot 2.7.3 application:
java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-epoll-2
Note: the same code works as expected using a project with just the azure-messaging-eventgrid and azure-core dependencies.
Exception or Stack Trace
Stack trace is too long. I have attached it.
To Reproduce
Create a Spring Boot application version 2.7.3 that uses Event Grid's 4.17.0-beta.1 jar. Then use code like in the coming section.
Code Snippet
public static final String TOPICNAME = "jfgTpc1";
public static final String EVENT_SUBSCRIPTION_NAME = "evtsub1";
public static final String ENDPOINT = "";  // namespace endpoint
public static final AzureKeyCredential CREDENTIAL = new AzureKeyCredential("");
public void publishCloudEventSync() {
EventGridClient client = buildClient();
PublishResult publishResult = client.publishCloudEvent(TOPICNAME, getCloudEvent());
}
EventGridClient buildClient() {
    return buildClientBuilder().buildClient();
}

EventGridAsyncClient buildAsyncClient() {
    return buildClientBuilder().buildAsyncClient();
}

EventGridClientBuilder buildClientBuilder() {
    return new EventGridClientBuilder()
            .httpClient(HttpClient.createDefault())
            .endpoint(ENDPOINT)
            .serviceVersion(EventGridMessagingServiceVersion.V2023_06_01_PREVIEW)
            .credential(CREDENTIAL);
}

private static CloudEvent getCloudEvent() {
    return new CloudEvent("/events/testEvent", "Microsoft.MockPublisher.TestEvent",
            BinaryData.fromObject(new HashMap<String, String>() {
                {
                    put("Field1", "Value1");
                    put("Field2", "Value2");
                    put("Field3", "Value3");
                }
            }), CloudEventDataFormat.JSON, "application/json")
            .setSubject("Test")
            .setTime(OffsetDateTime.now());
}

Expected behavior
The code should send 1 event to the namespace topic configured. You should be able to see on the namespace's metrics (Azure portal and on the namespace overview page) that event(s) have been published successfully.
Screenshots
N/A
Setup (please complete the following information):

OS: Ubuntu jammy (Ubuntu 22.04.3 LTS)

IDE:IntelliJ IDEA 2023.2.2     Build #IC-232.9921.47, built on September 12, 2023

Library/Libraries:
com.azure:azure-sdk-bom:1.2.16
com.azure:azure-messaging-eventgrid:4.17.0-beta.1
org.projectlombok:lombok:1.18.28
org.springframework.boot:spring-boot-starter-actuator
org.springframework.boot:spring-boot-starter-webflux
org.assertj:assertj-core
org.junit.jupiter:junit-jupiter-api

Java version: 1.8

App Server/Environment: Embeded web server in Spring Boot. That embded server should be Reactor Netty because I am using org.springframework.boot:spring-boot-starter-webflux

Frameworks: Spring Boot 2.7.3

Additional context
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[X ] Bug Description Added
[ ] Repro Steps Added
[ ] Setup information Added

You may tag me by also using @jfggdl (I am the Event Grid Product Manager).

stack trace.txt

simple-project-that-works-left-vs-my-project-dependencies-right.pdf

I have added a comparison report that shows the dependencies of a simple project that depends only on the messaging.eventgrid jar, which it works as expected, vs my project's dependencies. There are minor version changes between the two set of dependencies where they have common jars.

@saragluna FYI - I will take a first look but if you see something that jumps out please speak up! :)

@billwert - Just sharing some thoughts. One possibility is, the call site of publishCloudEventSync() happens to run on Netty-IO thread. For example, if call site is a callback that Netty-Server calls upon the arrival HTTP request (mapped to some REST Path).
If the SDK sync API (sync over async) underneath blocks the current thread and given the current thread is IO Thread, setup may emit this error.
If that’s the case, I wonder in general if Spring has some way / annotation to set a block-able worker Thread to run the publishCloudEventSync() or configure that Netty callback runs on block-able worker Thread. @saragluna

@1-javier-fernandez I am wondering how is the publishCloudEventSync() method called in your project? Do you have the codesnippet for that?

@saragluna It is exactly the code pasted on the top when I created the issue. Thanks for looking into this.

Hi @jfggdl, but the publishCloudEventSync needs to be called, maybe by a controller?

Correct. It is a simple call to the publishCloudEventSync() from a controller method.

@saragluna do we have an ETA as to when this issue should be mitigated? Thanks. This is Javier from Event Grid, by the way. You may want to ping me in Teams to get my attention immediately.


[2.7] Resolve conflicts in .github/workflows/test.yaml

Summary
This merges release-2.7 into release-2.7.patch1 in an effort to resolve merge conflicts found in .github/workflows/test.yaml^1 while attempting to merge in the other direction.
Checklist

[x] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
[x] The PR has a Milestone
[x] The PR template has been filled out
[x] The PR has been self reviewed
[x] The PR has a reviewer assigned
[x] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
[x] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

Closing the PR. Opting for a different approach in order to protect content under .github/workflows in release-2.7


pkgs.foobar has no nativeDrv in nixos modules

When using packages from the pkgs arguments of NixOS modules, that package won't have any nativeDrv or crossDrv (it is not spliced). This has the implication that the following won't work inside NixOS modules when cross compiling:
  let customizedFoobar = pkgs.foobar.override { hello = config.mymodule.hello-package };

If I set mymodule.hello-package = pkgs.hello when using the module, that'll break cross compilation since foobar will then get a non-spliced hello as argument (thus nativeBuildInputs are not working correctly anymore). In some cases it is possible to work around this by directly using buildPackages but that seems ugly. Is there a better solution? Should we make pkgs be the spliced pkgs in NixOS modules at least?

This is a similar issue to #49526

I don't think the relevant code has changed.

Perhaps we can combine #49526 as it's the same underlying issue?

Ah, I think that's fair. Closed in favor us  #49526.


tensorflow installation fails when building from dockerfile

Specs

OS Platform and Distribution: Windows 11 - Building Ubuntu 18.04 bionic
Programming Language and version: Default - python 3.6.9
MediaPipe version: main branch - HEAD

The problem
Dockerfile fails on a message:
protobuf requires Python '>=3.7' but the running Python is 3.6.9
this is caused because the tensorflow 1.14.0 requires protobuf>=3.6.1, instead of protobuf==3.6.1. Because of that, by default, it tries to install the latest protobuf (now 4.21.0) which requires python>=3.7.
Reproduction
Execute build from the Dockerfile:
$ docker build .
Logs:
Collecting protobuf>=3.6.1 (from tensorflow==1.14.0)
  Downloading https://files.pythonhosted.org/packages/6c/be/4e32d02bf08b8f76bf6e59f2a531690c1e4264530404501f3489ca975d9a/protobuf-4.21.0-py2.py3-none-any.whl (164kB)
    100% |################################| 174kB 8.1MB/s
protobuf requires Python '>=3.7' but the running Python is 3.6.9

Proposed solution
adding a line 53 in Dockerfile:
RUN pip3 install protobuf==3.6.1
will solve it. I'll create a pull request with this change.

Fixed by #3473

I solved this by simply
pip install protobuf==3.6.1


[docs] [ISSUE 11625] Update the intro of Messaging doc

Fixes #11625

@Huanli-Meng @Jennifer88huang Please help review the changes. If more information should be provided, please leave a comment. Thank you.

@Huanli-Meng Thanks for your comments. Updated. PTAL.


[SP-6300] Backport of PPP-4827 - Vulnerable Component: Spring Securit…

…y - CVE-2022-31692 (9.3 Suite)
Original PR: pentaho-kettle#8799
@bcostahitachivantara @renato-s @andreramos89

:white_check_mark: Build finished in 8m 13s
Build command:
mvn clean verify -B -e -Daudit -amd -pl plugins/pur/core

:exclamation: No tests found!
:information_source:  This is an automatic message


Create: 1888-minimum-number-of-flips-to-make-the-binary-string-alternating

File(s) Modified:
1888-minimum-number-of-flips-to-make-the-binary-string-alternating.js
1888-minimum-number-of-flips-to-make-the-binary-string-alternating.ts
Language(s) Used: javascript, typescript
Submission URL:
https://leetcode.com/problems/minimum-number-of-flips-to-make-the-binary-string-alternating/submissions/911483735/
https://leetcode.com/problems/minimum-number-of-flips-to-make-the-binary-string-alternating/submissions/911480755/

Hi @a93a can you take a look?

Looks good! Thanks for your contribution!


Server http cookie Max-Age=0 RFC6265; EID3430

Expected behavior
When using strict mode of ServerCookieEncoder, Max-Age=0 should not be part of the encoded header value as per https://www.rfc-editor.org/errata/eid3430
Actual behavior
Max-Age=0 added even in strict mode.
Steps to reproduce

create cookie, set max-age to 0
encode it using strict server cookie encoder

Minimal yet complete reproducer code (or URL to code)
Cookie cookie = new DefaultCookie("foo", "bar");
cookie.setMaxAge(0);
ServerCookieEncoder.STRICT.encode(cookie);

Netty version
4.1.49
JVM version (e.g. java -version)
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10)
OpenJDK 64-Bit Server VM (build 11.0.6+10, mixed mode)
OS version (e.g. uname -a)
Linux T480 5.6.4-arch1-1 #1 SMP PREEMPT Mon, 13 Apr 2020 12:21:19 +0000 x86_64 GNU/Linux

@slandelle can you have a look ?

Status of errata Errata 3430 is Rejected.

I really wonder about this.
AFAIK, sending a Set-Cookie header with a max-age <=0 or an expires date in the past is a very common way for servers to have the user-agent forcefully revoke cookies, typically on graceful log out.

Errata itself is rejected because it proposes to change format from

non-zero-digit = [1-9]
max-age-av = "Max-Age=" non-zero-digit *DIGIT

to

max-age-av = "Max-Age=" 1 *DIGIT

Which is not correct, as it makes impossible to send, say Max-Age=5.
But still, underlying RFC states Max-Age as starting from non-zero digit, and note in mentioned errata highlights that, also reminding  to be strict when sending and permissive when receiving.
The fact most user agents (receivers) are permitting zero-value Max-Age and treat it same as Expires set in the past, does not excuse server (sender) operating laxly.

Besides, Max-Age=0 even with Expires set in the past can cause issues with at least for some of chromium builds as per old bug https://bugs.chromium.org/p/chromium/issues/detail?id=416800 and this matrix https://inikulin.github.io/cookie-compat/

The fact most user agents (receivers) are permitting zero-value Max-Age and treat it same as Expires set in the past, does not excuse server (sender) operating laxly.

When it comes to cookies, browsers first implement things, and then new behavior becomes official and turned into an RFC update. RFC6265 sadly lags behind, see for example how things happened for SameSite.
Your compatibility matrix shows forcefully expiring a cookie with a max-age <=0 is a feature supported in Safari 9 (current is 13), Chrome 49 (current is 81) and FireFox 44 (current is 75).
The bug you mentioned concludes that this feature works and the bug couldn't be reproduced.
In short, this is an intended feature and IMHO, it would be a bad idea to stop supporting it by default.

@slandelle so just to ensure I did get it... you say all is good and we should just close this one ?

@normanmaurer Yes

ok lets close it then...


i want to change prayer time and add some more city

i want to change prayer time and add some more city
how ?

What exactly do you mean by changing prayer times and adding more cities?

my city not in list i want add my city to app and add prayer time for my city?

It is not possible to add a new city to Muezzin. It only serves data from Presidency of Religious Affairs website www.diyanet.gov.tr.

i want to change data and this site
i want app just have my city time and i want type all of the address

can i set data from sqlite brose program
please help me

Muezzin gets its data from https://github.com/mehmetakiftutuncu/MuezzinAPI. There's no other way to add data at the moment.

So what can I do?

can you help me step by step please

Feel free to fork the project and modify the code on your own. Or you can try other applications on Play Store. I don't have a plan for further development of Muezzin at the moment.

i want just shows my city time not show more city or countary
thats good work for muslims people so plese help

i want add offline data from sqlite

can i make web site like this and run app on this site
https://muezzin-staging.herokuapp.com.

I already told you, there is no support for addition of data at the moment. If you can, modify the code on your own. If you can't, use some other application.
I'm closing the issue.

thanks


What powershell prints on end of command to show a PROMPT.

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Hey there,
I am trying to mimic user input in expect style for powershell. Via sending commands to pwsh's stdin.
And I don't understand how I actually can be sure that command is done.
But now exactly I am trying to understand what I need to send powershel to be able to run a next command.
I see that pwsh expects that some byte sequences will be given to it as an indication that command is done.
And they different from time to time.
\u{1b}[11;68R
\u{1b}[11;59R
\u{1b}[11;19R
As I guess a line-disciple does this or this is done via your means?
To see what I mean you can use
https://github.com/zhiburt/expectrl/pull/14
and run
cargo run --example interact

Expected behavior
A prompt printed after typing command + `\r`

Actual behavior
A prompt isn't printed on sending `\r` as `ENTER`

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.1.4
PSEdition                      Core
GitCommitId                    7.1.4
OS                             Linux 5.12.14-300.fc34.x86_64 #1 SMP Wed Jun 30 18:30:21 UTC 2021
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

### Visuals

_No response_

https://github.com/zhiburt/expectrl/issues/10

Note: the behavior on windows seems to be different


New users unable to deposit ATOM/Osmosis to staking

Overview
When users click on either ATOM or Osmosis staking through earn they are given a dimmed screen but no modal pops up if they have nothing staked. No errors in the console screen, just seems to not be step up properly.
Recreation Steps:

Login with a new account with no ATOM or Osmosis staked
Attempt to click on the earn opportunity
Notice the dimmed screen but no modal

References and additional details
N/A
Acceptance Criteria
New users should be able to deposit ATOM and Osmosis. They should be greeted with the deposit screen
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

@tshifty this has been fixed in https://github.com/shapeshift/web/pull/3840 and will be released in https://github.com/shapeshift/web/pull/3855 - please close after testing release

@tshifty can you please retest and close?

Fixed


Created COLOVARIA: a random color palette generator using javascript

Title and Issue number

Created a random color palette generator using javascript
Close #1617

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md

Hi, @Saurabh-kumar09 please check the issue https://github.com/pranjay-poddar/Dev-Geeks/issues/1617 and merge the PR


Fetch real time GitHub data and put into SettingsPopover

find a way insert the commit hash of the build itself into the app.

fixed here


make data dense to work around XGB's sparse bug only when an error is thrown.

this is an ugly bug in XGBoost's source code, but we worked our way around it. We are forcibly adding a column of 1's to the end of our data during both fit and predict. this way XGBoost's validation recognizes that the columns go all the way to the end, even if the real final column of data is full of only 0's.


Token signature with ES512 is invalid

Hi Guys,
i'm currently implementing a test app that creates JWT for testing purposes. I want to use ES512 algorithm and a given private key and certChain from my "counterpart" for first testing. This key has a size of 521 bits as it is the standard for ES512.
My Problem
The problem is, that JWT.sign() constantly returns tokens with invalid signatures according to jwt.io and also (in perhaps 3 out of 4 cases) according to JWT.verify(). I checked multiple times that the key and certChain are a valid pair and the header and payload are handed over correctly.
My Analysis
I took a closer look at the difference between the signatures and the first thing i noticed was that the signature from jwt.io is constantly 176 characters long while the signature from my app had only 174 characters. After taking a closer look into the implementation of the ECDSAAlgorithm's sign function in algorithms.dart, i noticed that the signature get's "cut" to privateKey.size*2 bytes

(in this case 130 bytes), although it should be 132 bytes (at least that's how it worked fine). I guess this is because the size of the key is actually 65.125 bytes so the S and R part of the signature that's returned by signer.generateSignature() can have a length of 66 bytes (that can be observed by using different payloads), but i'm really not an expert at this topic ;)
My Fix
I set the size of my bytes list to 132 (using (privateKey.key.parameters!.curve.fieldSize/8).ceil()*2, probably not the best way but it worked out for me). Because the bigInts that are returned by signer.generateSignature() can have a length of 65 or 66 bytes after converting them into Uint8Lists, i filled the byte-List like that:

This way i got signatures with always the same length that are simply filled with 0 at the first (or middle) position if the rBytes or sBytes isn't long enough. The created tokens are always valid according to jwt.io and jwt.verify() now.
I hope i provided you enough information to understand my problem :)
Unfortunately i could really not use the library with my key to get valid tokens so maybe this issue is relevant for other people as well

Hi @nassbe,
Thank you for your detailed analysis. I have reviewed your findings, and your approach seems to work well. In fact, 3 years ago when implementing the signature process to follow the RFC 7519, I realized that I forgot to implement the padding required for keys that are not a multiply of 8.
I will publish a new patch with your fix soon. Once the patch is deployed, please feel free to test it on your end and let me know if everything is working as expected.

And this is the new published version: https://pub.dev/packages/dart_jsonwebtoken/versions/2.13.0


Requirements for Node.js 14

Hi! I got an error when I exec next build

This is what I got when I install 1.8.0 version

According to this,

I downgrade to 1.3.0, and it worked!
so I thought the document should update for Node.js 14

Dependencies:

node v14.21.3
react 18.2.0
next 12.3.4
isomorphic-dompurify 1.8.0

Thank you @JayDing . I've just updated the README accordingly. Please review https://github.com/kkomelin/isomorphic-dompurify#requirements


Ahtisham/inf 876

Description:
Thir PR adds new  signal USER_NOTIFICATION It will be used to create notifications for users.
ISSUE: Link to GitHub issue
https://2u-internal.atlassian.net/browse/INF-876
Reviewers:

[ ] tag reviewer
[ ] tag reviewer

Merge checklist:

[ ] All reviewers approved
[ ] CI build is green
[x] Version bumped
[x] Changelog record added
[ ] Commits are squashed

Post merge:

[ ] Create a tag
[ ] Check new version is pushed to PyPI after tag-triggered build is
finished.
[ ] Delete working branch (if not needed anymore)

Is this ready for our review? can you please fill in the PR cover letter? Thanks!

@mariajgrimaldi The PR is ready for review


New Element: Counter

Fixes #67
Counter
The Counter element produces a sequence of binary numbers, from zero to a specified maximum value.
Properties

bitWidth: controls the number of bits of the Value and MaxValue pins.

Inputs

MaxValue: if connected, defines the inclusive maximum Value; otherwise the maximum Value is determined by bitWidth.
Clock: on the transition from 0 to 1, Value is either incremented or set to 0.
Reset: when set to 1, Value is set to 0.

Outputs

Value: the current value of the counter.
Zero: a flag that indicates when Value is zero and Clock is 1. This can be used to chain Counters together, much like a ripple counter built from flip-flops.

Screenshots:
This diagram illustrates the pins in the Counter component (highlighted):

This is an example of building some sort of "digital clock" using the Counter component:

The first two counters on top are counting "minutes", the first goes from 0 to 9, the second from 0 to 5, so together they count from 0 to 59, and their outputs directly drive the HexDisplays.
The bottom counters are counting the hours; the 3rd counts from 0 to 9 when the 4th is zero or 1, and from 0 to 3 when the 4th is 2, so together they count from 0 to 23.
Review Notes
The Counter can be found under the "Inputs" group.

One can make an argument that it should be in the Sequential Elements group, since the corresponding circuitry would be mostly based on flip-flops. I chose Inputs because the Counter ends up working more like a source of numbers, like other elements in Inputs do, in particular the Random number generator.

A corresponding 3-bit, 0-7 counter looks like this:

Note I'm not including the MaxValue circuitry in the example above.
Samples with MaxValue can be seen in this project: https://circuitverse.org/users/1935/projects/4801

This PR is amazing, thanks @fpintos. I would wait for @satu0king to review this :)

It's perfect! Thanks!

Awesome! Thanks.


Weird highlighting for neo-tree

Im getting this weird highlighting behaviour for neo tree (both floating window and non floating)

I will look into this some time this week... but first I need some more details (I don't use neo-tree).
I am assuming you mean the selected text bg not being highlighted?

If not that, what's the weird highlight?
Also, is the issue new or has it been like that long as you have been using it?

Hi thanks for the quick response! yes correct, theres some strange interaction with text not being highlighted, however if the text has a different colour it doesnt happen

It should be fixed on the neotree_highlights branch in #152 which will be merged into dev and then main with the next release.
Thanks for the report ;)

amazing thanks !

Apologies for delaying.  Should be fixed in the new release #144.

has it been fixed yet?

Dev got merged :)


 These changes hopefully fix the following cachito error:
The command "go list -m" failed with: go: inconsistent vendoring in /var/lib/cachito/bundles/temp/165341/app:
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

As there was some skew between the go.sum and vendor directory.
Signed-off-by: timflannagan<EMAIL_ADDRESS>

/backport-risk-assessed

/label backport-risk-assessed

/label backport-risk-assessed

Note: I need to still create this BZ to get this pushed through.

Manually adding the CPA label after Peter's ACK.
/label cherry-pick-approved

Overriding the valid-bug label as this is a one-off to help ART onboard to the cachito pipeline.


unusually high cpu and energy usage while in background

App is being reported as "using significant energy."

@Parth is experiencing a much higher amount of energy usage than my device.

possibly addressed by #3231


kazoo.exceptions.NodeExistsError with PyKafka

apache-storm-1.0.2
hbase-1.2.1
kafka_2.10-<IP_ADDRESS>
zookeeper-3.4.9
python 3.5.2
pykafka==2.5.0
kazoo==2.2.1

ops:
zkServer.sh start
$KAFKA_HOME/bin/kafka-server-start.sh $KAFKA_HOME/config/server.properties &!
$KAFKA_HOME/bin/kafka-topics.sh --zookeeper localhost:2181 --create --replication-factor 1 --partitions 4 --topic trivver

$KAFKA_HOME/bin/kafka-topics.sh --zookeeper localhost:2181 --list

    __consumer_offsets
    logons
    metrics
    notifications
    ticks
    trivver

$KAFKA_HOME/bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic trivver

Topic:trivver   PartitionCount:4        ReplicationFactor:1     Configs:
        Topic: trivver  Partition: 0    Leader: 0       Replicas: 0     Isr: 0
        Topic: trivver  Partition: 1    Leader: 0       Replicas: 0     Isr: 0
        Topic: trivver  Partition: 2    Leader: 0       Replicas: 0     Isr: 0
        Topic: trivver  Partition: 3    Leader: 0       Replicas: 0     Isr: 0

zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /home/dmitry/Development/zookeeper/bin/../conf/zoo.cfg
Mode: standalone

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

uname -a
Linux dmitry.npb.io 4.9.13-200.fc25.x86_64

Now I run the following python code in two different tmux panels:
ffrom pykafka import KafkaClient, SslConfig
from pykafka.exceptions import ConsumerStoppedException, PartitionOwnedError

client = KafkaClient(hosts="<IP_ADDRESS>:9092")
topic = client.topics[b'trivver']

try:
    messages = topic.get_balanced_consumer(
        consumer_group=b'trivver_bigtable',
        zookeeper_connect='localhost:2181')
except (ConsumerStoppedException, PartitionOwnedError):
    print('No connection')
    messages.stop()
    messages.start()

print('Connected')

for message in messages:
    if message is not None:
        print(message.offset, message.value)

first run - no problem
second run in a different panel or window or terminal
I'm getting the following traceback:
python consumer.py
Failed to acquire partition <pykafka.partition.Partition at 0x7fb8cb9b3cf8 (id=3)> after 4 retries.
Stopping consumer in response to error
Traceback (most recent call last):
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 633, in _add_partitions
    ephemeral=True
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/kazoo/client.py", line 834, in create
    sequence=sequence, makepath=makepath).get()
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/kazoo/handlers/utils.py", line 78, in get
    raise self._exception
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/kazoo/handlers/utils.py", line 206, in captured_function
    return function(*args, **kwargs)
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/kazoo/handlers/utils.py", line 224, in captured_function
    value = function(*args, **kwargs)
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/kazoo/client.py", line 889, in create_completion
    return self.unchroot(result.get())
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/kazoo/handlers/utils.py", line 72, in get
    raise self._exception
kazoo.exceptions.NodeExistsError: ((), {})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 306, in start
    self._rebalance()
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 603, in _rebalance
    self._update_member_assignment()
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 577, in _update_member_assignment
    self._add_partitions(new_partitions - current_zk_parts)
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 636, in _add_partitions
    raise PartitionOwnedError(p)
pykafka.exceptions.PartitionOwnedError
Connected
Traceback (most recent call last):
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 731, in consume
    message = self._consumer.consume(block=block)
AttributeError: 'NoneType' object has no attribute 'consume'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "consumer.py", line 18, in <module>
    for message in messages:
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 745, in __iter__
    message = self.consume(block=True)
  File "/home/dmitry/Projects/trivver/storm/.venv/storm/lib/python3.5/site-packages/pykafka/balancedconsumer.py", line 734, in consume
    raise ConsumerStoppedException
pykafka.exceptions.ConsumerStoppedException

my virtual environment requirements.txt
my kafka server.properties
my zookeeper zoo.cfg

I'm using Fedora 25 / Python 3.5.2
So this is my screenshot: http://pasteboard.co/N6Gai2T8A.jpg
It seems that first run of the script and balancedconsumer - gets all partitions managed. The second run doesn't spawn rebalancing for partitions and when I submit simple producer - all messages displayed by a connected consumer.
If however I use a different GROUP name - then both instances of the script continue to run and display exactly the same messages as shown here

This sounds like a pykafka bug rather than a kazoo bug.
As an aside, since you are using Kafka >= 0.9, I strongly recommend switching to using a kafka client that leverages Kafka's built-in consumer group APIs rather than Zookeeper for consumer group coordination. For pykafka, that'd be the ManagedBalancedConsumer rather than the BalancedConsumer that you're using. In kafka-python, that'd be the new KafkaConsumer rather than the old SimpleConsumer.


Getting error about KeyError: 'fuelType'

Hi Yannik,
I'm glad someone picked up the efforts of getting ryd into HA.
I've installed your addon through HACS, configured in Yaml and am now getting this error thread:
Error while setting up ryd platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 200, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ryd/sensor.py", line 42, in setup_platform
fetch()
File "/config/custom_components/ryd/sensor.py", line 40, in fetch
ryd_adapter.update()
File "/config/custom_components/ryd/sensor.py", line 71, in update
self.ryd.fetch()
File "/usr/local/lib/python3.8/site-packages/pyryd/pyryd.py", line 103, in fetch
self._ref_data = self._refactored_data(self._raw_data)
File "/usr/local/lib/python3.8/site-packages/pyryd/pyryd.py", line 108, in _refactored_data
return {
File "/usr/local/lib/python3.8/site-packages/pyryd/pyryd.py", line 109, in
key: {"value": val(data), "unit": uni}
File "/usr/local/lib/python3.8/site-packages/pyryd/pyryd.py", line 15, in
"fuel_type": (lambda x: x["fuelType"], None),
KeyError: 'fuelType'
The set fuel type in the app is "Benzin Super".
Do you know, what's wrong?
thanks
Ralph

Hi Ralph,
please install https://github.com/Yannik25/pyryd locally and try running the example code (example.py) and post it here (anonymized, you car plate might be in that data). Probably the field "fuelType" does not exist in your returned data, we might need to check whether it appears elsewhere or just has to be ignored.

Thanks fort he quick answer.
Tried it locally, but still same error comes back:
@.***D72BB6.923BE500]
Ralph
Von: Niels Mündler @.>
Gesendet: Mittwoch, 7. April 2021 09:24
An: Yannik25/ha-ryd @.>
Cc: surfer2100 @.>; Author @.>
Betreff: Re: [Yannik25/ha-ryd] Getting error about KeyError: 'fuelType' (#2)
Hi Ralph,
please install https://github.com/Yannik25/pyrydhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FYannik25%2Fpyryd&data=04|01||dd03382e0cba45d97c5708d8f9961826|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637533770337031551|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=xrvQm3DJ35akGjebropjWd3gQkRSImx32C9SqD8FsXs%3D&reserved=0 locally and try running the example code (example.py) and post it here (anonymized, you car plate might be in that data). Probably the field "fuelType" does not exist in your returned data, we might need to check whether it appears elsewhere or just has to be ignored.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FYannik25%2Fha-ryd%2Fissues%2F2%23issuecomment-814671815&data=04|01||dd03382e0cba45d97c5708d8f9961826|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637533770337031551|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=jr8SybEjVQXD8h99IfFXEk2q7xOyhJdXXQouomZMmo0%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJUVD43VPP26OJT6YKQNHDTTHQCAPANCNFSM42QGLYQA&data=04|01||dd03382e0cba45d97c5708d8f9961826|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637533770337041543|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=c6ENH8QSoAyTV4tKkKLTe1d9E02gIKbfb6Qzc93ecYI%3D&reserved=0.

Ok, stripped out a line on the pyryd.py:
REFACTOR_DICT = {
#    "fuel_type": (lambda x: x["fuelType"], None),
Result (anonymized):
{'examinationDate': '2021-03-01T00:00:00.000Z',
'lastFuelTopUpTimestamp': '2020-02-11T20:50:41.633Z',
'batteryLevelMV': 12403,
'batteryLevelPercent': 69,
'batteryLevelTimeStamp': '2021-04-07T09:14:54.000Z',
'recurrences': [],
'carOdometer':
{'initialSyncDone': True,
'syncRequestReason': None,
'syncTimestamp': '2021-03-26T07:48:19.090Z',
'syncRequired': False,
'timestamp': '2021-04-07T06:08:54.994Z',
'distanceM': 44891288,
'source': 'MEAS'},
'openDtcs':
{'sampleTime': '2021-04-07T06:00:58.000Z',
'countOfOpenDtcs': 0,
'last': None},
'fuel':
{'consumption': {'USER': {'consumedL':<PHONE_NUMBER>8964845,
'distanceM': 19671661,
'endTime': '2021-04-04T10:30:52.001Z',
'lastConsumedL': 53.51,
'lastDistanceM': 1413577,
'startTime': '2020-01-25T09:43:34.351Z'},
'OBD_DONGLE_MAF':
{'consumedL': 1.6,
'distanceM': 19192093,
'endTime': '2021-04-07T06:05:40.000Z',
'lastConsumedL': 0,
'lastDistanceM': 156,
'startTime': '2020-02-11T20:52:30.000Z'},
'MEAS':
{'consumedL': 1.6,
'distanceM': 19192093,
'endTime': '2021-04-07T06:05:40.000Z',
'lastConsumedL': 0,
'lastDistanceM': 156,
'startTime': '2020-02-11T20:52:30.000Z'}},
'level':
{'OBD_FUELLEVEL': {'l': 50.65,
'percent': 84.42,
'timestamp': '2021-04-07T06:08:53.000Z'},
'USER': {'timestamp': '2021-04-07T06:05:40.000Z',
'percent': 89, 'l': 53.6570939},
'MEAS': {'l': 50.65,
'percent': 84.42,
'timestamp': '2021-04-07T06:08:53.000Z'}}},
'score': {'ecoScore': None},
'reportedFuelTotal': {'modificationTimestamp': '2021-04-04T10:55:46.405Z',
'fuelL': 344.14,
'measurementPeriod': '2019-03-20T16:02:10.000Z',
'measurementDistanceM': 19839020,
'lifetimeConsumption': 0.017346622968271618},
'incognito': False,
'batteryHealth': 'good',
'estimates': {'estimates': {'current': {'fuel': 0, 'time': 412169, 'distance': 5653338},
'estimated': {'fuel': 0, 'time': 1562807, 'distance': 22352999},
'estimationPeriod': 'currentYear'},
'yearToDate': {'startDate': '2020-12-31T23:00:00.000Z',
'speedStats': {'timeAbove': {'0': 56966, '10': 19521, '20': 45143, '30': 61794, '40': 60646, '50': 32203, '60': 21773, '70': 23337, '80': 37257, '90': 15386, '100': 10238, '110': 10670, '120': 9752, '130': 3812, '140': 1851, '150': 1140, '160': 454, '170': 227, '180': 0, '190': 0, '200': 0, '210': 0, '220': 0, '230': 0, '240': 0},
'distanceAbove': {'0': 30582, '10': 81862, '20': 314892, '30': 589020, '40': 747389, '50': 477754, '60': 387804, '70': 484225, '80': 873365, '90': 399230, '100': 297110, '110': 339124, '120': 335117, '130': 141171, '140': 74149, '150': 49115, '160': 20592, '170': 10838, '180': 0, '190': 0, '200': 0, '210': 0, '220': 0, '230': 0, '240': 0}},
'tripCount': 294, 'time': 412169, 'distance': 5653338, 'fuelConsumed': 0, 'accelerations': 58, 'hardBreaks': 46, 'averageSpeed': 49, 'maxSpeed': 179, 'dayTime': 294591, 'dayDistance': 4021099, 'nightTime': 117578, 'nightDistance': 1632239, 'engineStarts': 0, 'engineOffDuration': 56936, 'longStops': 635, 'maxRpm': 5356, 'maxAccelerationMS2': 4.676860346585117, 'maxDecelerationMS2': 6.784913353720693, 'maxThrottlePercent': 8509, 'maxEngineCoolantTemp': 106, 'maxObdSpd': 176, 'longestStraightDrivingDistanceM': 33744.3431372549, 'gpsClimbM': 55551, 'gpsDeclineM': 56076, 'distanceFor60daysM': 3738730},
'startDate': '2020-12-31T23:00:00.000Z', 'sampleTime': '2021-04-07T11:58:26.384Z'},
'pointsEarned': 0, 'state': 'PARKING', 'parkingLocation': {'address': {'zip': 'xxxxx', 'street': 'xxxxx', 'houseNumber': 'xxxxx', 'deviationM': 22, 'countryCode': 'de', 'city': 'xxxxx'},
'timestamp': '2021-04-07T06:05:40.000Z', 'loc': [9.xxxxx, 48.xxxxx], 'addressString': ''},
'curLocation': {'timestamp': '2021-04-07T06:05:40.000Z', 'loc': [9.xxxxx, 48.xxxxx]},
'fuelTankSizeL': 60, 'distanceSinceLastTopUpM': 0, 'odoTtM': 19839020, 'odoCarM': 44891288, 'licensePlate': 'XXXXX'}
{'examination_date': {'value': datetime.datetime(2021, 3, 1, 0, 0), 'unit': None},
'last_fuel_top_up': {'value': datetime.datetime(2020, 2, 11, 20, 50, 41, 633000), 'unit': None},
'battery_voltage': {'value': 12.403, 'unit': 'V'},
'battery_percentage': {'value': 69, 'unit': '%'}, 'overall_distance': {'value': 44891.288, 'unit': 'km'}}

Hi, thanks for the addition! I will fix the code to handle missing keys, this should handle the issue. Appearently the tool does not return a fuel type in your case...

Great deal, Niels.
Your help is much appreciated. Let me know, how I can help, once it's published.
Ralph
Von: Niels Mündler @.>
Gesendet: Mittwoch, 7. April 2021 17:17
An: Yannik25/ha-ryd @.>
Cc: surfer2100 @.>; Author @.>
Betreff: Re: [Yannik25/ha-ryd] Getting error about KeyError: 'fuelType' (#2)
Hi, thanks for the addition! I will fix the code to handle missing keys, this should handle the issue. Appearently the tool does not return a fuel type in your case...

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FYannik25%2Fha-ryd%2Fissues%2F2%23issuecomment-814999298&data=04|01||b458757c80b149ff09e208d8f9d83327|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637534054258217697|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=p3wVL9SJc%2FA61x58KMhcXH%2B%2F9%2FpTuj7NVJJFz0o8h2g%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJUVD42RIO7ZPXTOPGBFNP3THRZO7ANCNFSM42QGLYQA&data=04|01||b458757c80b149ff09e208d8f9d83327|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637534054258217697|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=3gl3SUeMBwgkDjCIoU1RCFSQ9eud%2B%2F%2Bpzx8Gc0clgD0%3D&reserved=0.

Hi Ralph,
Please try updating ha-ryd with HACS and try again.

Thanks Yannik,
works as expected.
Any chance, you'll let the user define which values are needed in the config.yaml? I'd be interested in importing current location for instance.
Ralph
Von: Yannik25 @.>
Gesendet: Mittwoch, 7. April 2021 19:08
An: Yannik25/ha-ryd @.>
Cc: surfer2100 @.>; Author @.>
Betreff: Re: [Yannik25/ha-ryd] Getting error about KeyError: 'fuelType' (#2)
Hi Ralph,
Please try updating ha-ryd with HACS and try again.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FYannik25%2Fha-ryd%2Fissues%2F2%23issuecomment-815078474&data=04|01||4d434217536c4835b59108d8f9e7b846|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637534120905364988|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=H5aESwGUt2XWlig5S4pND6YQe4w5j2jlTTc%2BDlcoqys%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJUVD42YYRSWBYWEW46IC4DTHSGPTANCNFSM42QGLYQA&data=04|01||4d434217536c4835b59108d8f9e7b846|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637534120905374985|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=CN1McSmc88uTWPg6CaEG4F%2FCu5ovB%2FrQp9EoEnruAEA%3D&reserved=0.

The usual approach to this is to simply import everything that would make sense to import by the component. The user will then select what to display when configuring the front-end. Hence, it is planned to extend the PyRyd component in order to provide more data. If you are familiar with some basics of python, feel free to join! :)

closing this issue as there is already a proposal by nielstron for the device tracker


update logo: "ZF2" to general "ZF"

in favor of https://github.com/zendframework/ZendSkeletonApplication/pull/329#issuecomment-213469920

@weierophinney  I've updated ZF2 -> ZF3 wordings and various link fixes as well ;)

would be interesting to use a var/const for version label? - keep in mind that this will change again in the future

the version usage already in https://github.com/samsonasik/ZendSkeletonApplication/blob/150ef951e8c2f8d6134fc163cea2714c367c5ce5/module/Application/view/application/index/index.phtml#L3 for specific X.Y.Z version, other than it is a big major one, we may have different template for ZF4 imo :)


Short solution needed: "How to get file extension" (nodejs)

Please help us write most modern and shortest code solution for this issue:
How to get file extension (technology: nodejs)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to get file extension


Decompiler sometimes fails to highlight matching braces

Describe the bug
In certain situations the decompiler window will fail to highlight braces and will throw an exception, however it only happens when clicking the opening one. I think it has to do with goto labels being placed inside pairs of braces (but not always).
I attach two .asm files, one that triggers the bug after viewing decompilation, and one that doesn't, which has 3 instructions removed.
I tried to make them as minimal as possible, but I was able to remove only so much lines, removing more makes decompiler realise it can simplify the code further and the broken braces disappear.
To Reproduce
Steps to reproduce the behavior:

Decompile provided example (function _breaks)
Go to line 24 and click on the else opening bracket, above lab1

Expected behavior
Java exception window appears with java.util.EmptyStackException
(Clicking on the bottom bracket works, and succesfully highlights the top one)
Screenshots

Attachments
Here's two asm files (plus a basic .c file with weird batch script to build a complete .exe), it might be easier to just run the decompiler on the .asm file directly somehow.
example.zip
Here's a final exe too if that's acceptable, it has debug information from gcc (function _breaks at 0x00401511)
program.zip
Environment (please complete the following information):

OS: Windows 10
Java Version: 17.0.2
Ghidra Version: 10.1.5
Ghidra Origin: official Github

Additional context
Full error log
java.util.EmptyStackException
	at java.base/java.util.Stack.peek(Stack.java:101)
	at java.base/java.util.Stack.pop(Stack.java:83)
	at ghidra.app.decompiler.component.DecompilerUtils.getMatchingBrace(DecompilerUtils.java:592)
	at ghidra.app.decompiler.component.ClangHighlightController.highlightBrace(ClangHighlightController.java:377)
	at ghidra.app.decompiler.component.ClangHighlightController.addHighlightBrace(ClangHighlightController.java:370)
	at ghidra.app.decompiler.component.LocationClangHighlightController.fieldLocationChanged(LocationClangHighlightController.java:53)
	at ghidra.app.decompiler.component.DecompilerPanel$PendingHighlightUpdate.doUpdate(DecompilerPanel.java:1216)
	at ghidra.app.decompiler.component.DecompilerPanel.lambda$new$0(DecompilerPanel.java:80)
	at ghidra.util.task.SwingUpdateManager.swingDoWork(SwingUpdateManager.java:108)
	at ghidra.util.task.AbstractSwingUpdateManager.swingExecutePendingWork(AbstractSwingUpdateManager.java:338)
	at ghidra.util.task.AbstractSwingUpdateManager.checkForWork(AbstractSwingUpdateManager.java:278)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

This may have something to do with thelabel: in that section of code being displayed.

duplicate of #4242 ?

duplicate of #4242 ?

I think it has been fixed.  I will close the ticket.  If this is found again in the next release or in the current master branch, then we can reopen.

@dragonmacher just checking, did you see that last comment I made in the other thread

I did see the comment.  I was unable to reproduce the issue, so it must be very output dependent.


C# Proxy generator doesn't correctly handle List

When generating a proxy for a method that has a return type of "List" the result is "List`1"

This should be resolved with the following commit of version 0.3.0: bd46c7dcde7e69cf6ead48a6b8e2f0ef838a5465


RAM usage is shooting up when pumping huge amount of data.

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
Influxdb is running as a pod in k8s environment.

Push some 0.6 million series(every day) to one database.
Do kubectl top pods command  to see memory usage .

Every 16h, memory consumption/usage is increasing to 1gb.
Expected behavior:
Memory shouldn't increase that much.
Actual behavior:
Memory is shooting up .
We’ve a retention policy of 7d1h.
Analysis:
1)Wal file is created for each shard group, and then segment file is created(in each shard dir) when there is a write to influxdb …wal file gets appended and size increases, and When the segments hit the max segment size (10mb), they are closed and a new segment is opened.
And tsm file will be created based on cache-snapshot-memory-size which is 26214400(26m), but seeing tsm file is creating when wal dir(_tmp files) size is 15m only. why it is happening like that?
2)when tsm files are created and move to disk, then why in-memory size is increasing(could see wal directory not much data into that)?
Environment info:

System info: Linux 4.19.81-OpenNetworkLinux x86_64
InfluxDB version: InfluxDB v1.7.3 (git: 1.7 698dbc789aff13c2678357a6b93ff73dd7136571)
Other relevant environment details: Container runtime, disk info, etc
demo@localhost:~$ free -mh
total        used        free      shared  buff/cache   available
Mem:            29G        8.8G        1.4G        1.5G         19G         19G
Swap:            0B          0B          0B

demo@localhost:~/testing$ kubectl top pods
influxdb-55b8899b45-8trvx                106m         1165Mi
Copy any non-default config values here or attach the full config as a gist or file.
reporting-disabled = false
bind-address = ":8088"

[meta]
  dir = "/var/lib/influxdb/meta"
  retention-autocreate = true
  logging-enabled = true

[data]
  dir = "/var/lib/influxdb/data"
  wal-dir = "/var/lib/influxdb/wal"
  query-log-enabled = true
  cache-max-memory-size =<PHONE_NUMBER>
  cache-snapshot-memory-size = 26214400
  cache-snapshot-write-cold-duration = "10m0s"
  compact-full-write-cold-duration = "4h0m0s"
  max-series-per-database = 1000000
  max-values-per-tag = 100000
  trace-logging-enabled = false

[coordinator]
  write-timeout = "10s"
  max-concurrent-queries = 0
  query-timeout = "0s"
  log-queries-after = "0s"
  max-select-point = 0
  max-select-series = 0
  max-select-buckets = 0

[retention]
  enabled = true
  check-interval = "30m0s"

[shard-precreation]
  enabled = true
  check-interval = "10m0s"
  advance-period = "30m0s"

[admin]
  enabled = false
  bind-address = ":8083"
  https-enabled = false
  https-certificate = "/etc/ssl/influxdb.pem"

[monitor]
  store-enabled = true
  store-database = "_internal"
  store-interval = "10s"

[subscriber]
  enabled = true
  http-timeout = "30s"
  insecure-skip-verify = false
  ca-certs = ""
  write-concurrency = 40
  write-buffer-size = 1000

[http]
  enabled = true
  bind-address = ":8086"
  auth-enabled = false
  log-enabled = true
  write-tracing = false
  pprof-enabled = true
  https-enabled = false
  https-certificate = "/etc/ssl/influxdb.pem"
  https-private-key = ""
  max-row-limit = 10000
  max-connection-limit = 0
  shared-secret = "beetlejuicebeetlejuicebeetlejuice"
  realm = "InfluxDB"
  unix-socket-enabled = false
  bind-socket = "/var/run/influxdb.sock"

# TODO: allow multiple graphite listeners

[[graphite]]
  enabled = false
  bind-address = ":2003"
  database = "graphite"
  retention-policy = "autogen"
  protocol = "tcp"
  batch-size = 5000
  batch-pending = 10
  batch-timeout = "1s"
  consistency-level = "one"
  separator = "."
  udp-read-buffer = 0

# TODO: allow multiple collectd listeners with templates

[[collectd]]
  enabled = false
  bind-address = ":25826"
  database = "collectd"
  retention-policy = "autogen"
  batch-size = 5000
  batch-pending = 10
  batch-timeout = "10s"
  read-buffer = 0
  typesdb = "/usr/share/collectd/types.db"
  security-level = "none"
  auth-file = "/etc/collectd/auth_file"

# TODO: allow multiple opentsdb listeners with templates

[[opentsdb]]
  enabled = false
  bind-address = ":4242"
  database = "opentsdb"
  retention-policy = "autogen"
  consistency-level = "one"
  tls-enabled = false
  certificate = "/etc/ssl/influxdb.pem"
  batch-size = 1000
  batch-pending = 5
  batch-timeout = "1s"
  log-point-errors = true

# TODO: allow multiple udp listeners with templates

[[udp]]
  enabled = false
  bind-address = ":8089"
  database = "udp"
  retention-policy = "autogen"
  batch-size = 5000
  batch-pending = 10
  read-buffer = 0
  batch-timeout = "1s"
  precision = "ns"

[continuous_queries]
  log-enabled = true
  enabled = true
  run-interval = "1s"

[logging]
  format =  "auto"
  level =  "info"
  supress-logo = false

Logs:
Include snippet of errors in log.
Performance:
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.
# Commands should be run when the bug is actively happening.
# Note: This command will run for at least 30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=true"
curl -o vars.txt "http://localhost:8086/debug/vars"

[vars.txt](https://github.com/influxdata/influxdb/files/5457645/vars.txt
profile.tar.gz
iostat.txt

I have a similar problem but with way less data. I have an 8gb instance and tried to push some data with a simple node script.
      const point = new Point('price')
        .tag('id', coin.id)
        .tag('symbol', coin.symbol)
        .stringField('name', coin.name)
        .floatField('price', histItem.price)
        .intField('volume_24h', histItem.volume_24h)
        .intField('market_cap', histItem.market_cap)
        .timestamp(new Date(histItem.timestamp).getTime()/1000)
      writeApi.writePoint(point);

This runs in a loop and fails after a few minutes due to memory. The process isn't running as fast as there are some api calls in between which slows it down. But I would not have expected that this would end in an influxdb crash.
It does not only happen on write but also on read. When launching the docker container it takes already 3gb for influxdb.

Hi @psteinbachs ,
can you please update on above issue?, we are blocked because of this.

@akshaysharama is there a reason you aren't running 1.8.x? It includes multiple performance improvements especially around memory utilization.
Second, how are your metrics getting piped in? What does the batch look like? example, is it consistent, or do you dump a million metrics in 30 seconds every hour?
Also, I see you said We’ve a retention policy of 7d1h. What is your shard duration set to?

@Esity Shard duration is set to 1hr and retention to 7days.
For testing, we are dumping some 12500 data every 30minute.
Just for info.
Series cardinality is 13952.
we've been testing  things with influx 1.7.x , in future will upgrade if things will not work properly with 1.7.x.
Is 1.8.x is highly recommended or 1.7.x really has the memory issue?

Hi @russorat  @psteinbachs  @Esity ,
can you please update on above issue?, we are blocked because of this.

@russorat  commented here  that v2.0 can handle it much better
Though I don't see any difference from v1.8

I wonder if #20814 might help with this


#163964899 User registration

What does this PR do?

Creates the user registration route.
Description of Task to be completed?

[x] Setup the database table
[x] Write tests for user registration model endpoint
[x] Add the user DTO
[x] Register user blueprint

How should this be manually tested?
After cloning the repository to your local machine - check README.md for instructions. checkout to ft-user-registration-163964899 branch. Install the requirements and launch the flask server check here for instructions.Using Postman  create a POST /api/v2/auth/signup request with this header Key Content-Type: application/json:
Example json body on request:
{
    "firstname": "peter",
    "lastname": "john",
    "othername": "simon",
    "email"<EMAIL_ADDRESS>    "phonenumber": "23903-39920-221",
    "password": "some_passowrd",
    "passportUrl": "https://tyrie.cn.com",
    "isAdmin": "False",
    "isPolitician": "False"
}

What are the relevant pivotal tracker stories?
#163964899
Screenshots (if appropriate)
POST /api/v2/auth/signup

Coverage remained the same at 100.0% when pulling d06178ddb5480fdae0e1455b3c0adcd84aded4c8 on ft-user-registration-163964899 into fc7401f4041cbcab47ae9b8ad4871bd1f4052801 on develop.


Query by keys won't work in certain cases

From @mvysny on December 22, 2016 11:13
When searching for documents indexed by a composite key (a list of strings), the view in some cases finds no documents. I am attaching a sample project to demonstrate the issue, just run it with ./gradlew - it will run the test and the test should fail (at least it fails for me, on Ubuntu 16.10 x86-64 java 8).
Copied from original issue: couchbase/couchbase-lite-core#42

From @mvysny on December 22, 2016 11:14
cblbug.zip
I'm using CouchBase Lite 1.3.1 with ForestDB

From @mvysny on December 22, 2016 11:16
When I switch to SQLite the test case succeeds, so this looks like a ForestDB issue.

Duplicated: https://github.com/couchbase/couchbase-lite-java-core/issues/1536


[Enhancement] adding page for monster

I would like to suggest that adding some pages for monster data will be helped in documenting. it's the same as NPC or items but focusing on monsters.

Thank you for your suggestion!
I usually use npcs for monsters but with a different template. Using a folder to organize your monsters you can then have a dedicated folder for monsters and maybe add a tag in the template like "Monster".
Does this work for you as well or can you elaborate on why monsters should have a special sections?

Thank you for your suggestion!
I usually use npcs for monsters but with a different template. Using a folder to organize your monsters you can then have a dedicated folder for monsters and maybe add a tag in the template like "Monster".
Does this work for you as well or can you elaborate on why monsters should have a special sections?

"Does this work for you as well or can you elaborate on why monsters should have a special section?"
based on this question, I think the monster page will become a special section. Because I need some documentation about the mechanic stage by a monster and wiki can have a monster's section because it should be on the different section if someone read the wiki.
It's my opinion about the monster section that I hope it will be a new feature.

"Does this work for you as well or can you elaborate on why monsters should have a special section?"
based on this question, I think the monster page will become a special section. Because I need some documentation about the mechanic stage by a monster and wiki can have a monster's section because it should be on the different section if someone read the wiki.
It's my opinion about the monster section that I hope it will be a new feature.

With mechanic state you mean the behaviour and so on? Because for this I am currently extending the npcs that you can also define a state machine for the npcs. So maybe the original approach I suggested might work.
I dont see the big benefit of having a specialized monster section if its the same as npcs to be honest. This would mainly add more items in the navigation without providing a new features. Using folders you should be able to organize the npcs for humans and monsters.

With mechanic state you mean the behaviour and so on? Because for this I am currently extending the npcs that you can also define a state machine for the npcs. So maybe the original approach I suggested might work.
I dont see the big benefit of having a specialized monster section if its the same as npcs to be honest. This would mainly add more items in the navigation without providing a new features. Using folders you should be able to organize the npcs for humans and monsters.

Closed due to inactivity


pf2e broken links

When added to a game with the Pathfinder Second Edition System in V12 (i only noticed it in this version) it breaks the links on the player sheets, under class. This happens if it is the only module as well, after testing with a brand new pf2e system install and a new world with only this module selected.

Can you be more specific on how you reproduce the behavior? Do you mean the links to the class journals inside the class' item?

I added pictures for clarity. Its simple, if i have the advanced macros installed, when i add a class to the character sheet, the link to the class gets broken, if i disable the link works fine.
To replicate, make a new character. Click the hourglass to add a class, then click the 3 dots (...) and click edit item. With advanced macros installed the link to the class is broken, without advanced macros the link works fine.

I am not having these issues on a new world. Are you on the latest Advanced Macros version (v2.2.1)?
Also, are there any errors on the console?

There where no issues in the console, but manually downloading the repository and overwriting it in the modules seems to have fixed the issue.
I re-downloaded it from the foundry addons page before i posted the issue so my limited knowledge would tell me maybe something was left behind from a previous version and didn't update properly. Thank you for the help.

Hm, that's odd, but I'm glad everything worked out for you in the end.


eth scripts: add basic sanity check for each hack

Please could you explain this one more, @anthony-cros?   Thanks!

in a similar way as with https://github.com/doublethinkco/webthree-umbrella-cross/issues/6#issuecomment-157902701, the idea is to ensure that each hacks have had the expected effect (it's easy to write an awk script with an unmet condition and that doesn't do its job)
some of the hacks already do that though, see https://github.com/doublethinkco/webthree-umbrella/blob/develop/cross-build/ethereum/boost.sh#L27 for instance

Right - thanks.


add support for decoding integers from NUMERIC data

Fixes https://github.com/vapor/fluent-postgresql/issues/92

Hey @tanner0101, you just merged a pull request, have a coin!
You now have 879 coins.


Design kit access request

Thanks for your interest in the IBM.com Design kits!
We are in a closed adoption phase at the moment. Please answer the following questions to help us better understand your interest. Someone from Carbon for IBM.com will reach out to you soon regarding your request for access.

Which team are you on?
Corporate marketing

What experience are you designing for?
ibm.com and ibm.com/smart

What platform is your experience on? (ie. Drupal, Wordpress, etc)
Hand-coded

Please list a point of contact for:
Offering manager: Lance Tappana
Design lead: I am a design lead, Irina Lubenskaya
Development lead: Ryan Sebade

Any additional information you'd like to share about your project

@oliviaflory Please go ahead and provide Irina with access to the Design kits.  Thanks!

Added!


[BUG]

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
我只添加了windows监控，打开监控首页最上方的监控。跳转过去是linux监控。
用f12查看a标签，跳转 href=“”/monitors?app=linux“”。路径是被写死了。
Expected Behavior
No response
Steps To Reproduce
No response
Environment
HertzBeat version(s):1.4.0

Debug logs
No response
Anything else?
No response

repeat  https://github.com/dromara/hertzbeat/issues/1076

@tonywen1990 和tom老哥讨论了一下，监控总览可以稳定的跳转，所以把上面四个homepage的a标签删了，上面只是展示不做跳转

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿

@tonywen1990 Discussed with brother tom, the monitoring overview can jump stably, so I deleted the a tags of the above four homepages, and the above just showed that there is no jump


H/preprocessing for anntest

Waiting for Pavel's test

@hansely can we add some readme on how to use this functionality?

Sure. I'll add it.


Update README.md

The ![ created a broken link to an image. I replaced the ! with an emoji ( :exclamation: )

thanks @Nickduino


flutter web freezes on iphone browser, but not on ipad or desktop when hosted on firebase.

Flutter web program hosted on firebase does not react to user input on browser for iphone. (i.e. it works properly on ios ipad)
I tried a variety of things to figure out where the problem lies:
downgraded flutter channel master -> dev + stable (currently using dev, but first noticed on master)
created numerous projects on firebase to host these site.
reinstalled firebase-tool CLI
tested on a variety of devices
recreating the issue:
I created the the following website using flutter and firebase hosting:
hostingweirdness.firebaseapp.com
To do this, I did:
"flutter create",
"firebase init" and then creating a new project
"firebase deploy"
What I'm seeing is that the site works perfectly for:
desktop browsers (chrome,firefox)
android browsers (chrome),
ipad safari (ipad chrome intermittent)
However, the blue "+" button is unresponsive for:
iphone (safari and chrome)
ipad chrome (intermittent)
I'd also like to note that I'm able to see the same thing using the iphone simulator for Xcode: works for ipad, not for iphone.

Duplicate of #54269


Upgrade lmdeploy cli

Motivation
Upgrade lmdeploy cli

[x] docs

[x] lmdeploy cli

[x] list
[x] check_env
[x] convert
[x] chat

[x] torch
[x] turbomind

[x] lite

[x] auto_awq
[x] calibrate
[x] kv_qparams

[x] serve

[x] gradio
[x] api_server
[x] api_client
[x] triton_client

[ ] benchmark

Modification
Please briefly describe what modification is made in this PR.
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
The documentation has been modified accordingly, like docstring or example tutorials.

lmdeploy lite auto_awq --work-dir 不认 --work-dir

lmdeploy lite auto_awq --work-dir 不认 --work-dir

lmdeploy lite auto_awq --work-dir 不认 --work-dir

@lvhan028 work_dir是必填参数https://github.com/InternLM/lmdeploy/blob/0283bf6f6fb5f2407966669bb62dfa88f7cf770e/lmdeploy/lite/apis/auto_awq.py#L31


add liquibase hints to graalvm config

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.32%. Comparing base (498e970) to head (3e8f168).
Report is 1 commits behind head on master.

Files with missing lines
Patch %
Lines

...l/realworld/infrastructure/config/GraalConfig.java
0.00%
3 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #51      +/-   ##
============================================
- Coverage     70.62%   70.32%   -0.31%
  Complexity      113      113
============================================
  Files            54       54
  Lines           463      465       +2
  Branches         30       30
============================================
  Hits            327      327
- Misses          115      117       +2
  Partials         21       21

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


Implement duckduckgo search

Codecov Report

Merging #15 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #15   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines            2         4    +2
=========================================
+ Hits             2         4    +2

Impacted Files
Coverage Δ

dorkgen.go
100.00% <100.00%> (ø)

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 9d1d5db...b9916a0. Read the comment docs.


Checkbox style menu with keyboard support

Checkboxes that can be navigated and selected using the keyboard. It would allow creation of a menu system similar to Yeoman (see gif below for an idea on keyboard support and bottom screenshot for checkbox style)
I'm not sure if that's even possible with C# console apps, never came across one on the wild

Id be happy to put some leg work in on this but not sure where to even start in terms of how the menu/checkbox list would be created in a C# console app ?

Id be happy to put some leg work in on this but not sure where to even start in terms of how the menu/checkbox list would be created in a C# console app ?

@stevenknox I'm going to take a look at this tonight.

@stevenknox I'm going to take a look at this tonight.

Let me know if I can help in any way

Let me know if I can help in any way


[doc]Link to the github page project

What?
Bootstrap their project with command npx create-reat-saga my-project and run the project. There is no link to the original documentation site i.e https://sprakash57.github.io/create-react-saga.
Expected:
It would be nice to have a link to website somewhere on the bootstrapped project.

 Create React Saga v1.x


BigNumber() constructor must be called with new

I think the omission of new was probably deliberate as it is optional if BigNumber.set({ERRORS: false}).

Okay. It was confusing to see the constructor must be called with new error and without new working in Usage. I've changed the PR to add the right information.

I'd prefer just the commit which adds the 'new'.

I've added the missing 'new'. Thanks for the report.


latest version update, incremental deployment no longer works

Hello, I would like to know if after the latest version update, incremental deployment no longer works? Before this latest update, my deployment took about 14 minutes, now it takes 29.30 minutes.
I thank you in advance.

It works but in a different way. You must configure a storage to keep deployment state file.
Check out the documentation: Incremental Deployment


Inconsistent layout of success / error screens.

Inconsistent layout of success / error screens.
Consider using same layout for all.
FWIW I prefer the layout of the centered screens but prefer the icon treatment of the first one (left aligned).

We have updated these content states to be more consistent between CLI & Stripe Apps stand-alone pages.


1406 | Stone Game III | C++

Title - Stone Game III
What will change - Add new leetcode problem in the C++ folder with C++ solution
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

Please assign this issue to me.


Fixes

Learn Build status updates of commit ca0e4ed:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/installation/email-troubleshooting-guide.md
:white_check_mark:Succeeded
View

dynamics-gp/resources.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Build with only montgomery curves

Fix compile-time checks to allow building with ECP enabled, but no short Weierstrass curve (i.e. with only Montgomery curves: Curve25519 or Curve448). Fix #941, #1412.
I wasn't sure how to frame a non-regression test. scripts/curves.pl didn't catch this because it tries building with all-curves-but-one. This is the right way to do what this script was designed to do, which is to catch test cases that are missing a dependency on a curve, including tests that depend on multiple curves. Maybe we should also try building with a single curve, for each curve?
What I've done in this PR is to add a new reference configuration with only “DJB” crypto and NIST hashes: SHA-256, SHA-512, HMAC_DRBG, Chacha/Poly, and ECDH/ECDSA with Curve25519. I'm not sure if that configuration makes sense for the time being though, since we don't fully support Curve25519 for ECDSA and TLS. Suggestions welcome.

I like the approach to testing this by adding a new configuration with "only 'DJB' crypto and NIST hashes".

For several reasons, I've changed my mind as to how to test this.

Defining an ad hoc configuration lets us test one specific configuration that is of some interest. However, the configuration in question is of limited interest, because you can't use Montgomery curves for anything directly useful yet: the ECDH and ECDSA module don't support them, and they can't be used in TLS at all.
We normally keep supporting the sample configurations for a long time. The configuration in config-montgomery.h is fairly ad hoc and is likely to evolve as our support for Montgomery curves improves.
The limited configuration in config-montgomery.h didn't catch that the ECP self-test was failing since it didn't include MBEDTLS_SELF_TEST. This may happen with other options as well.

I think I'll switch to my other idea: modify curves.pl to test each single-curve configuration in addition to testing each all-curves-but-one configuration.

Superseded by #2019.
#2019 doesn't have "Support HMAC_DRBG in the TLS test programs". I'll make a separate PR for that.


Do we support Gallery View of Albums?

Do we have support of Gallery View in Albums like Apple native, secondly if not, How can I open gallery list as View loads, I tried to make method but it didn't work fine, due to loading in thread. So whats right and proper way to do so.
            if let rootVC = self.viewControllers.first as? DKAssetGroupDetailVC {
                rootVC.collectionView.reloadData()
                rootVC.showGroupSelector()
            }

This picker can't implement this style in a simple way :(


MissingSecretError

Using this config I get the error below:
version: "3"
services:
  server:
    image: docker.io/kyoheiudev/leaf-server:0.3.7
    container_name: server
    volumes:
      - ./server/databases:/var/leaf/databases
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 9000:8000
  client:
    image: docker.io/kyoheiudev/leaf-client:0.3.7
    container_name: client
    volumes:
      - ./client/.env.production:/app/.env.production
    ports:
      - 4000:3000

server    | 2023-04-05T09:22:48.314930Z  INFO tantivy::directory::file_watcher: Meta file "/var/leaf/databases/.search/meta.json" was modified
client    | yarn run v1.22.19
client    | $ next start
client    | ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
client    | warn  - You have enabled experimental feature (scrollRestoration) in next.config.js.
client    | warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
client    |
client    | [next-auth][error][NO_SECRET]
client    | https://next-auth.js.org/errors#no_secret
client    | [next-auth][error][NO_SECRET]
client    | https://next-auth.js.org/errors#no_secret Please define a `secret` in production. MissingSecret [MissingSecretError]: Please define a `secret` in production.
client    |     at assertConfig (/app/node_modules/next-auth/core/lib/assert.js:42:12)
client    |     at AuthHandler (/app/node_modules/next-auth/core/index.js:70:52)
client    |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
client    |     at async NextAuthHandler (/app/node_modules/next-auth/next/index.js:24:19)
client    |     at async /app/node_modules/next-auth/next/index.js:60:32
client    |     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:372:9)
client    |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:514:9)
client    |     at async Object.fn (/app/node_modules/next/dist/server/next-server.js:828:35)
client    |     at async Router.execute (/app/node_modules/next/dist/server/router.js:243:32)
client    |     at async NextNodeServer.runImpl (/app/node_modules/next/dist/server/base-server.js:432:29) {
client    |   code: 'NO_SECRET'
client    | }

Is there something I need to change?

Did you set NEXTAUTH_SECRET in your .env.production file?

Doh! I should have re-checked, thanks and sorry for wasting your time.


Crazy unresolved import (all files are there)

I have the weirdest error ever:
error[E0432]: unresolved import `crate::sys_common::net::LookupHost`
  --> ....\std\src\net\addr.rs:15:5
   |
15 | use crate::sys_common::net::LookupHost;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LookupHost` in `sys::windows::net`

(Many more errors like this one)

To put in context I copied rust std crates (std, backtrace and unwind), and tried to build then using xargo, my intent is to have a fork of the std library, with some custom functions.

I didin't modify anything from the std library.
The type crate::sys_common::net::LookupHost exist.
Why the module sys::windows::net is in this error? I don't know

The issue was that I changed my target and target_os, to be different from "windows". To fix it I had to update the std/build.rs file


Missing conigure-ability

This thing needs a .env file or similar to configure the host, port, optional storage, etc. It's actually getting random traffic here and there, so with tags, a release, and a dockerfile it might be enough to put on hackernews or something

Fixed in #4


Display mission control version

The problem faced currently?
It's difficult to find out which version of Mission Control we are using. This becomes a problem especially when we upgrade Space Cloud, but Mission Control remains cached in the browser and there's no way to find out if this is the case.
If we could display the version of Mission Control in the Mission Control, it will be helpful in finding out if we are working on the right Mission Control or not and take necessary steps.
How can we solve it?
We are already displaying the version of Space Cloud in the Mission Control's side nav. We can show the version of Mission Control there itself as  UI version.

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you.
👍

Done. Coming in v0.19.0


Swift 3 latest compatibility

Please add compatibility with the latest version of Swift 3 :)

Here I am attaching Updated Code.
Source.zip


animateToPage and _animatePreviousPage not working in ScrollView

animateToPage and _animatePreviousPage not working in ScrollView in iPhone 6Plus and iPhone 7.
<Carousel
          delay             = {2000}
          style             = {this.state.size}
          autoplay          = {false}
          isLooped          = {false}
          pageInfo          = {false}
          bullets           = {true}
          bulletStyle       = {{backgroundColor:'#BFBFBF', borderWidth:0}}
          chosenBulletStyle = {{backgroundColor:'#717171', borderWidth:0}}
          onAnimateNextPage = {(p) => console.log(p)}
          currentPage       = {this.state.currentPageNo}
          ref               = {(ref) => { this._carousel = ref; }}>
              <View style={[{ backgroundColor: '#BADA55', paddingTop:50 }, this.state.size]}>
                <Text>1</Text><Text onPress={() => {this._carousel._animateNextPage()}}>onpress</Text>
              </View>
              <View style={[{ backgroundColor: 'red', paddingTop:50 }, this.state.size]}>
                <Text>22</Text><Text onPress={() => {this._carousel._animatePreviousPage()}}>onpress-Prev</Text>
                <ScrollView style={{flex:1, backgroundColor: 'yellow'}}>
                  <Text>21</Text><Text onPress={() => {this._carousel._animatePreviousPage()}}>onpress-in-between</Text>
                </ScrollView>
              </View>
              <View style={[{ backgroundColor: 'blue', paddingTop:50 }, this.state.size]}>
                <Text>3</Text><Text onPress={() => {this._carousel.animateToPage(0)}}>onpress</Text>
              </View>
     </Carousel>

When we put page content in between ScrollView and call that function from there then the function is not working in the release build, but in debug build it's working fine.
Can anyone please suggest any solution how to solve the problem?? We need it urgently because we are implementing it in the live project.

Is there any solution for above problem?
We are stuck here for that issue. Need any solution.


RFC: V3: Oxc resolver

Maintaining our own Nodejs resolver is quite difficult, error prone and increases the maintenance/testing surface of Atlapack. This RFC is about replacing our native resolver with an oxc based resolver and supplies a reference for testing.
Using our benchmarks, oxc is 10% faster (though the actual plugin is doing less so YMMV), would like to test this against JFE to see if it resolves the tsconfig issues we are seeing
To use this just add @atlaspack/resolver-oxc to the .parcelrc file

FYI, I made Parcel's resolver a lot faster recently (basically rewrote the whole cache): https://github.com/parcel-bundler/parcel/pull/9984
Benchmarked a bunch of resolver crates including OXC: https://github.com/parcel-bundler/parcel/blob/v2/crates/parcel-resolver/benches/benchmark.rs
With caching:
cached/parcel_resolver  time:   [1.8614 µs 1.8661 µs 1.8716 µs]
cached/oxc_resolver     time:   [6.4001 µs 6.4171 µs 6.4362 µs]
cached/rspack_resolver  time:   [6.3623 µs 6.3738 µs 6.3856 µs]
cached/deno             time:   [81.661 µs 82.007 µs 82.467 µs]

Without caching (creating a fresh cache on each iteration):
uncached/parcel_resolver time:   [109.29 µs 109.70 µs 110.13 µs]
uncached/oxc_resolver    time:   [162.42 µs 163.24 µs 164.28 µs]
uncached/rspack_resolver time:   [165.43 µs 166.10 µs 167.01 µs]
uncached/deno            time:   [157.49 µs 157.66 µs 157.88 µs]

Published it on crates.io as well in case you want to use it. https://docs.rs/parcel-resolver/

FYI, I made Parcel's resolver a lot faster recently (basically rewrote the whole cache): parcel-bundler/parcel#9984
Benchmarked a bunch of resolver crates including OXC: https://github.com/parcel-bundler/parcel/blob/v2/crates/parcel-resolver/benches/benchmark.rs
With caching:
cached/parcel_resolver  time:   [1.8614 µs 1.8661 µs 1.8716 µs]
cached/oxc_resolver     time:   [6.4001 µs 6.4171 µs 6.4362 µs]
cached/rspack_resolver  time:   [6.3623 µs 6.3738 µs 6.3856 µs]
cached/deno             time:   [81.661 µs 82.007 µs 82.467 µs]

Without caching (creating a fresh cache on each iteration):
uncached/parcel_resolver time:   [109.29 µs 109.70 µs 110.13 µs]
uncached/oxc_resolver    time:   [162.42 µs 163.24 µs 164.28 µs]
uncached/rspack_resolver time:   [165.43 µs 166.10 µs 167.01 µs]
uncached/deno            time:   [157.49 µs 157.66 µs 157.88 µs]

Published it on crates.io as well in case you want to use it. https://docs.rs/parcel-resolver/

https://x.com/devongovett/status/1855443732654702725?s=46&t=SqAn_WFH4gORgiw6KZBoMw， wow， glad to see that you could optimize the performance in such a short time.

Here is the data in Ubuntu 22.04, SSD, cpu 5950x
uncached

cached

I ran the benchmark myself and the difference doesn't seem to be this significant:
M2 Pro Macbook Pro
Uncached
uncached/parcel_resolver
                        time:   [41.279 µs 41.466 µs 41.758 µs]
Found 10 outliers among 100 measurements (10.00%)
  3 (3.00%) low mild
  4 (4.00%) high mild
  3 (3.00%) high severe

uncached/oxc_resolver   time:   [51.383 µs 51.610 µs 51.859 µs]
Found 12 outliers among 100 measurements (12.00%)
  4 (4.00%) high mild
  8 (8.00%) high severe

uncached/rspack_resolver
                        time:   [51.416 µs 51.687 µs 51.992 µs]
Found 14 outliers among 100 measurements (14.00%)
  7 (7.00%) high mild
  7 (7.00%) high severe

uncached/deno           time:   [60.985 µs 61.015 µs 61.050 µs]
Found 15 outliers among 100 measurements (15.00%)
  5 (5.00%) low mild
  5 (5.00%) high mild
  5 (5.00%) high severe

Cached
cached/parcel_resolver  time:   [1.7027 µs 1.7062 µs 1.7105 µs]
Found 6 outliers among 100 measurements (6.00%)
  2 (2.00%) high mild
  4 (4.00%) high severe

cached/oxc_resolver     time:   [2.5719 µs 2.5753 µs 2.5803 µs]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) low mild
  3 (3.00%) high severe

cached/rspack_resolver  time:   [2.5542 µs 2.5672 µs 2.5908 µs]
Found 8 outliers among 100 measurements (8.00%)
  2 (2.00%) high mild
  6 (6.00%) high severe

cached/deno             time:   [50.357 µs 50.459 µs 50.591 µs]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) high mild
  2 (2.00%) high severe

Linux Ubuntu 22.04 LTS

CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 64 GB

I think it does make sense to maintain a resolver because we would rather have no resolver plugins.
Instead, we'd add the few patches we are currently using on resolver plugins to the main rust code.

@devongovett we can't use parcel resolver because it depends on dashmap which we have now validated was causing segmentation faults on our developers machines. There were hundreds of native crashes every day, which are completely fixed by https://github.com/atlassian-labs/atlaspack/pull/10.
That is, there is some unsoundness in the dashmap crate which leads to memory corruption and then crashes under a certain workload, which we started to hit. Developers were unable to start the server and make a few builds without a crash prior to this change.

Regarding benchmark, while it is good to micro-benchmark, it's better to measure a real workload.
We have an internal benchmark, which replays all imports in our application.
On that benchmark, the current master branch of this repository performs as well as the parcel master branch before cache optimisation ; the cache optimisation changes made parcel resolution slower by a non-negligible amount (10%+).
Most importantly, the absolute times to resolve all imports in the repository are very low when they are executed concurrently (a few seconds to resolve all the imports with multi-threading).
I think that if resolution is a build time bottle-neck today, it is only because the builds are based on crawling the module tree, and it'll be much more efficient to crawl the directory tree directly to parse and discover imports, then run resolution as a second time.

Note that despite around 30% slower resolver (at the moment) in the master branch, and previously we had a 3x slower resolver than parcel master https://github.com/atlassian-labs/atlaspack/pull/156, the actual build times for this repository are 2x faster to build jira than what is in mainline parcel due to a few optimisations on packaging/optimisation phases.
There is currently some degradation in perf. of the master branch resolver, when running new experimental code for building the asset graph in rust. This might be related to removal of Cow on certain resolver parts. I am unconvinced it is a performance bottle-neck, but there are other fixes to it.

FWIW, oxc_resolver also uses dashmap. Dashmap v6 was recently released as well. Maybe that fixed some issues you saw.

I was hoping that was the case too, but I had looked at the diff between those dashmap versions and there did not seem to be significant changes that could fix the crashes.
What we have now (thread local caches) performs really close to the concurrent dashmap but has much less surface area for unsoundness and is easier to understand.
It'd be nice to review this at some point but we were having serious unreliability issues related to crashes (they were common, and certain engineers would experience crashes on every single run of certain builds).

Will continue this discussion after I get back


fix the ui of pet new page

want to fix the ui of pet new page . Instead of long lines , I want to make it look attractive with some short para while diving the page into 2-3 with some effects like hovering, shadowing, etc

The issue is to fix the the ui of the pet news page, instead of long and unorganised lines, i will make the ui look attractive my adding some cards to it. This will eventually improve the ui and also, will change the bg of the page as it doesn't goes with the home page of website.
Regards,
Archita Sugandh.
Gssoc '24 Contributor.


cannot set element.style.cssProperty to null

🔎 Search Terms
style css property null CSSStyleDeclaration
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about "style css property null CSSStyleDeclaration".

⏯ Playground Link
https://www.typescriptlang.org/play/?#code/CYewxgrgtgpgdgFwHQCMTAJ5IM4IwGxlQEMwBrAcwCcQI5gBhEfEKgAgF42ByKmYbgG4AUKEixEqdFlwEiKUpRp1GzVpzZwI+fIKA
💻 Code
document.body.style.backgroundColor = null;

🙁 Actual behavior
Errors in code
Type 'null' is not assignable to type 'string'.

🙂 Expected behavior
No error is expected.
Additional information about the issue
This can be fixed by updating the lib.dom.d.ts as follows:
interface CSSStyleDeclaration {
// ...
-    backgroundColor: string;
+    get backgroundColor(): string;
+    set backgroundColor(value: string|null);
// ...
}

Same change has to applied to other CSS properties.

This is intentional. Just use an empty string. See also: https://github.com/microsoft/TypeScript/issues/33749#issuecomment-537615677

Not sure what the problem with getter and setter was back in 2019 but updating lib.dom.d.ts with getter and setter does work in the TypeScript 5.6.2 .
So, why not update lib.dom.d.ts and let developer use the API allowed by the standard?

Why add it when it serves no purpose? It's just being coerced to string, so you can be explicit and just use string. "The standard" is a poor argument, the standard lets you do all kind of nonsensical kinky stuff like adding an object to an array, things TypeScript aims to prevent. And allowing null could potentially introduce bugs in user code, where they want to differentiate between "have no value, do nothing" and "have a value, assign it".
I'm no member of the team so I have no say, but I absolutely can't see this change happening.

IMO, TypeScript should not impose restriction on usage of standard APIs (whenever possible).
Yeah, there are some quirks in standard APIs but TypeScript should expose them instead of hiding them and let developer decide which approach to take regarding API consumption.
The types in lib.dom.d.ts may have been like this due to limitation of TypeScript at some point in time but that is no longer the case and so, it is better to fix the definition file.

@sudo-barun imho "expose them instead of hiding them" is exactly what typescript is doing here by not allowing null without explicitly telling the compiler i know what i am doing.


Warning: Performing scalar operations on GPU arrays when running the test suite

When I run Pkg.test("GemmKernels"), I get the following warning:
julia> Pkg.test("GemmKernels")
    Testing GemmKernels
┌ Warning: Performing scalar operations on GPU arrays: This is very slow, consider disallowing these operations with `allowscalar(false)`
└ @ GPUArrays ~/.julia/packages/GPUArrays/WV76E/src/host/indexing.jl:43
Test Summary:  | Pass  Total
GemmKernels.jl |  208    208
    Testing GemmKernels tests passed

The tests still pass despite the warning.
Is this something to be concerned about?

Should be fixed by #65.
@DilumAluthge Can you reopen #63?

Should be fixed by #65.
@DilumAluthge Can you reopen #63?


Block copy/paste no working with clipboard=unnamedplus (macOS)

Actual behaviour
start with this text, cursor top-left position
abcd
abcd

type C-v j k y P
result is:
ab
ab
abcd
abcd

Expected behaviour
result should be:
ababcd
ababcd

I saw a fix for neovim neovim/neovim#1822, but it's still a issue here.
Version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 29 2017 18:09:39)
MacOS X (unix) version
Included patches: 1-586
Compiled by Homebrew

clipboard=unnamedplus

Are you sure that you're on X11?   If not, unnamedplus should be unnamed.

type C-v j k y P

You actually meant "type C-v j l y P", didn't you?  With this key sequence, I got the expected result.

I saw a fix for neovim neovim/neovim#1822, but it's still a issue here.

Hmm, but it looks to me that the issue there is still open...

Are you sure that you're on X11? If not, unnamedplus should be unnamed.

Yes, I'm sure. I have XQuartz installed, and X11 enabled. Actually, I cannot share the clipboard between system and vim if it is unnamed set.

You actually meant "type C-v j l y P", didn't you? With this key sequence, I got the expected result.

Ahh you're right. But I can reproduce this issue with vim -N -u NONE and set clipboard=unnamedplus. Maybe it only happens in macOS? Can anyone test with macOS to confirm it?

Hmm, but it looks to me that the issue there is still open...

Forget the issue...it is still open because of lack of proper solution to macOS.

Yes, I'm sure. I have XQuartz installed, and X11 enabled. Actually, I cannot share the clipboard between system and vim if it is unnamed set.

Since your vim comes from HoveBrew,  it is highly likely to be made macOS' clipboard enabled but not X11's clipboard, and, as is explained in :help 'clipboard', unnamedplus is for the latter, not for the former.   The point of my previous comment is: Use 'set clipboard=unnamed' for macOS's.

Forget the issue...it is still open because of lack of proper solution to macOS.

Since they seemingly uses external programs to have their vim do copy & paste, the issue you're talking about cannot be made relevant to ours.

Since there has been neither reply from the OP nor follow-up from anyone for these 46 hours, allow me to add a comment to my previous one successively.
@frankyjuang
Would you tell us what value your Vim echoes when you do:

:echo has('clipboard')
:echo has('macunix')
:echo has('X11')

@nuko8 all of them gives 1.

@frankyjuang
Then, would you tell us what do you have with
$ otool -L /your/path/to/vim

Plus, would you tell us how your Vim was configured?   IOW, do you have src/auto/config.log?

Output of otool
/usr/local/bin/vim:
        /opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
        /opt/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0)
        /opt/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 22.0.0)
        /usr/local/opt/lua/lib/liblua.5.2.dylib (compatibility version 5.2.0, current version 5.2.4)
        /usr/local/opt/perl/lib/perl5/5.24.1/darwin-thread-multi-2level/CORE/libperl.dylib (compatibility version 5.24.0, current version 5.24.1)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.51.1)
        /usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
        /usr/local/opt/ruby/lib/libruby.2.4.1.dylib (compatibility version 2.4.0, current version 2.4.1)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
        /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1504.82.104)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1349.65.0)
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 775.19.0)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1349.64.0)

As I said above, I can reproduce it with pure vim -N -u NONE with only set clipboard=unnamedplus.
Here is my src/auto/config.log. Thanks a lot.
config.log.txt

(Excerpt from config.log.txt)

$ auto/configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0596/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-luainterp --enable-python3interp --enable-perlinterp --enable-rubyinterp --disable-nls --enable-gui=no --with-x --enable-luainterp --srcdir=. --cache-file=auto/config.cache

Among the options, I see --with-x.   Since you used --enable-gui=no, it looks to me that --with-x was apparently superfluous.  Did you have any reason to include --with-x into the set of options?   If you actually don't need it, I recommend not including it.   Note that Vim can work fully on xterm as well as on Terminal.app/iTerm.app even if it is not liked against any of X11-related libraries.
If you will, try re-configuring Vim with the same options except --with-x and re-builing it.   Then, the resultant Vim should work fine even if you don't set clipboard to any value (Rather, I recommend doing nothing with it).

Thanks a lot.

Don't mention it :)

It works! Finally I understand how all these factors affect each other. Thanks @nuko8 !