DialogueContentText does not honor the line breaks of a ES6 javascript Template Literal.

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
Line breaks are not entertained as in standard javascript template literals.

Expected Behavior 🤔
If a line break is available in a template literal string, it should be displayed as is.

Steps to Reproduce 🕹
Step 1 : Create a very long template literal string with line breaks and store in a variable.
Step 2 : Add a Dialogue Card with DialogueContentText and pass the variable created in step 1, inside this.

Steps:

Context 🔦

Your Environment 🌎

Tech
Version

Material-UI
v5.?.?

React

Browser

TypeScript

etc.

Please provide a minimal reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

You might want to look at white-space.


Fatfs partition Flash Encryption.
Now my question is that at the time of first boot my fatfs is empty, and in my software I store some data in Fatfs on run-time, how will this new data stored on fatfs will get encrypted ? every time I change data in fatfs, how does flash encryption caters this ?

Hi hussainhadi673,
The fatfs component uses esp_partition component to read / write data to the "storage" parttition. These r/w functions are observing the encrypted flag of the partition table and if ESP32 flash encryption is active, the data is encrypted during the write operation and decrypted during read operations. This happens transparently for the user of fatfs component API.

Hi @hussainhadi673 ,
Have you had a chance to evaluate the answer I have provided or is there still anything more to be clarified ?

So that means, Every time I store data on Flash (fatfs parition) after enabling flash encrytion, the data will be encrypted first and then stored.  And similarly when I read the data from fatfs in my software, it will be decrypted first and then I can use it.
Does SPIFFS follow same mechanism ?

Thankyou for the help. It is clear to me now.


Learn Pattern updates - June 2020 delivery

The Reboot team plans to deliver 1 - 3 designs for either new or changes existing patterns.  The new and changed patterns should be included in the June DDS release (ibm.com Library v1.8.0).  Code Freeze is June 12th.
Planned schedule

Reboot designs:          May 11 - May 22
Functional specs:     May 18 - May 26
DDS pattern dev & QA schedule:      May 18 - June 10

Additional Information

The DDS BA will work with the Reboot designers to define the DDS work needed.

Acceptance Criteria

[ ] Meetings/conversations conducted with the Reboot designers to plan the work
[ ] Issues created for each pattern with instructions for the developers and links to the designs and functional specs
[ ] Coordination with the DDS PM to create the Dev, Prod QA and Design QA issues linked to the pattern epic.

Based on the email Linda shared earlier here is what we know so far.

[TBD] Ability to add descriptive text for each section under the heading
[TBD] Solution cards - an option that allows for a better narrative than the card layout right now; and overall linking needs based on Michael’s audit & gap findings
[Markdown utility] Support lists (bullets & numbers) in paragraphs
[Markdown utility] Support contextual inline links in paragraphs

The last two are potentially easy updates, but the first two we definitely need some more information about. The second item might clearly be a new pattern, but we'll need design specs. The first item, on the other hand, is just so general. What heading? Are they referring to sections the same way we are?

@RobertaJHahn -- @photodow and @kathysaraf  and I have discussed how we might organize work like this, possibly leveraging the "project" feature of Zenhub. I will add this as an agenda in our BA working session meeting this afternoon to finalize how we want to break down and track this work. That being said, are there any updates or additional details from the reboot team on the scope of the Learn page enhancements?

One question or to do, we had from our meeting today was setting up a meeting with reboot to figure out where they are, and what they're thinking. I know we're less than 2 weeks out from their proposed deadline. Not sure if we should be proactive in setting that up, or wait for them to reach out when they're ready.


Supporting for...in style loops and ranges in patterns

Hi,
Are there any plans about adding range style loops and pattern matching.
for(var i=0;i<10;i++) should be replaced by for (var i in 1...10)
Another examples would be switch cases.
I think writing case 1...10: and case 1,2,5: etc. is very useful. These are the small features can make language very much productive. As 1.0 has been released so far, can we ask for these features now?
Worth to link this [FAQ].(https://www.dartlang.org/support/faq.html#q-can-dart-add-tuples-pattern-matching-non-nullable-types-partial-evaluation-optional-semicolons-)

See also https://github.com/drager/dep-pattern-matching/blob/master/proposal.md and https://groups.google.com/a/dartlang.org/forum/#!msg/misc/MJXLjFxZu0A/p7e-NaDHAgAJ

Adding number


Fix span tokenizing when sentence starts with two single quotes

In followup to #1751 for bug #1750, with this small regexp fix span word tokening a sentence starting with two single quotes ('') yields correct results, otherwise it would raise a ValueError: substring not found

No, sorry, don't merge! The problem is not with the regexp I adjusted, I now understand it is for splitting double quotes after opening brackets while converting the quotes to `` to mark them as "starting quotes". The problem is with the attempt to revert these changes in: https://github.com/nltk/nltk/blob/ecced11335a8942beeab4ed9020eb93f18457d10/nltk/tokenize/treebank.py#L188-L196
This code should only revert the double quotes in the situations prescribed by the regexp's, not just hardcoded always! And since these regexp's are mutable (like done in the unicode quote tweaks of word_tokenize() documented nowhere) this can never be done correctly this way. The only way is the keeping track of splits while tokening. I hope I can find some time to rewrite the tokenizer to do so efficiently.


feature request: delete link command

it would be useful to have a delete link command such as this:
delete link between <source rid> and <target rid>

for example, links may need to be deleted after having been imported from RDBMS.

You can still do that with:
update  remove out_Friends =

thanks, i had missed it.


[Java] Generate put CharSequence methods for ASCII encoded fields

This PR allows to set ASCII encoded char array fields with any class implementing CharSequence, not only with Strings. It helps writing GC-free code without handling byte arrays. One for example can pass StringBuilder as an argument which can be shared between invocations.

@zyulyaev is there any reason why you did not include something similar on the Decoder side that takes an Appendable such as StringBuilder
eg
public void getMyValue(Appendable val)

@juddgaddie not really, I just added only what I needed.
Regarding Appendable to Decoder, I would rather added a method that returns a wrapper object implementing CharSequence interface, similar to how currently composite decoders work.
eg
private final MyValueWrapper myValueWrapper = new MyValueWrapper();

public CharSequence myValueWrapper() {
    return myValueWrapper;
}

private class MyValueWrapper implements CharSequence {
    public int length() {
        int len;
        for (len = 0; charAt(len) != 0; len++);
        return len;
    }

    public char charAt(int index) {
        final int pos = this.offset + <offset> + index;
        return (char) buffer.getByte(pos);
    }
}


Staging deployment

[x] Heroku as a staging hosting provider
[x] First staging deploy run
[x] Application ready & running
[ ] HTTP basic auth
[ ] working static & media

:clock1: 1.5h | Setting up Heroku

:clock1: 3h | Learning how to setting up Heroku

:clock1: 1h | Fixing database settings errors

:clock1: 2.5h | Trying to solve problems with missing keys in django-compress manifest


SW_STORAGE_ES_INDEX_SHARDS_NUMBER ineffective

Please answer these questions before submitting your issue.

Why do you submit this issue?
[X] Question or discussion
[X] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS and JRE?
skywalking:6.4

Which company or project?

What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.

first,I use the elasticsearch default config,the default index shard is 2. it's ok.
but when I change the index shard config, change to 3,then stop service and delete index, and start service,
the created index shard also is 2.
why ??

Requirement or improvement

Please describe your requirements or improvement suggestions.

Do you delete the templates?

6.4 is a very old version for the community.


⚠ Samsung has degraded performance

In 851b983, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2782 ms

Resolved: Samsung performance has improved in ffda30f.


[WIP][hotfix][ENG-2448]add new landing pages for sso-migration institutions

When an existing user from a recently-disabled institution enters
OSF, present them with a bespoke page to allow them to set a new,
OSF-specific password.  These pages reuse the existing OSF password
reset functionality but provide extra context in the displayed
messages.

The institutional post-reset-password page should not display the
same reset-password form that the regular post-reset-password page
does.  Add additional template logic to prevent this.

Implementation detail: Actions inside route.py are identified by
view method and view renderer, but NOT template path.  This made it
necessary to create stub view methods that dispatch to a common
method to avoid path => action conflicts.

Redirect GET requests for forgotpassword-institution back to the
CAS landing page.  This mimics the existing non-institutional
forgotpassword behavior.

Add tests for new institutional forgot/reset password pages.

ENG-2241

Purpose

Changes

QA Notes
Please make verification statements inspired by your code and what your code touches.

Verify
Verify

What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation

Side Effects

Ticket

Turns out we don't need this!  Closing.


PyCrypto transition

We're working on transitioning away from PyCrypto(|dome) for all of the software that we use, and PySNMP is currently a large contributor to PyCryptodome use. We believe that there is a strong security case to move from PyCrypto(|dome) to pyca/cryptography, but before wading into that I wanted to test the waters here to see if this path would be agreeable to PySNMP or if we need to look into maintaining a patched fork.
The upsides of this move would be replacing single-use cryptographic implementations with widely used and heavily scrutinized implementations and aligning PySNMP with the ongoing direction that the PyCA is setting for Python cryptography.
The (arguable) downside would be dropping official support for some legacy CPython minor versions. pyca/cryptography supports 2.7 and 3.4+. Currently, PySNMP claims support for 2.4-2.7 and 3.2+, though I see that the test suite is currently broken for 2.6 and I have been so far unable in my test setup to get 2.4, 2.5, and 3.2 working with the current code. Given that 2.4-2.6 and 3.2-3.3 are all past their official end of life, I think this is a reasonable (and arguably good) tradeoff.
I have put together the necessary code changes here[1], and you can see the successful test runs here[2]. If this is a path that PySNMP is interested in following, I'll clean up PyCrypto references in the readme and get a PR sent over.
[1] https://github.com/mattsb42-aws/pysnmp/tree/pyca-cryptography
[2] https://travis-ci.org/mattsb42-aws/pysnmp/builds/336730799

Thanks for raising this issue!
I think it makes sense to migrate to cryptography given the reasons you mentioned.
However I do not think it would be fair to drop legacy Python support because of the telcos -- those guys are (reportedly) still stuck at RHEL 4/5.
Having said that: would it make sense/be possible to abstract away the crypto primitives that pysnmp relies upon and make it using either of the crypto libraries available on the machine it runs? This may  probably involve some conditional dependencies in requirements.txt and/or command-line option to setup.py to let the user chose the crypto lib to install...
WDYT?

EOL Python versions no longer receive security (or any other) updates from the core team.

Python 2.4 has been EOL since 2008-12-19,
Python 2.5 since 2011-05-26,
Python 2.6 since 2013-10-29.

That's a long time if security is important. And it is possible to upgrade to a supported Python version on RHEL 5/6, using for example SCL. Probably with RHEL 4 too, but anyway that was shipped with Python 2.3 (EOL 2008-03-11) which PySNMP doesn't support.
All the EOL Python versions are little used.
Here's the pip installs for PySNMP from PyPI for last month:

python_version
percent
download_count

2.7
95.8%
141,417

3.6
1.7%
2,523

3.5
1.3%
1,906

3.4
1.0%
1,536

2.6
0.1%
99

3.7
0.0%
35

3.3
0.0%
14

3.2
0.0%
11

Source: pypinfo --start-date -34 --end-date -4 --percent --pip --markdown pysnmp pyversion

I totally agree that running non-EOL'ed Python is the best thing since sliced bread! The sad reality is  that people can't always upgrade in time. On top of that RHEL has its own EOL timing with its own security team back porting critical vulnerabilities of the programs that EOL'ed upstream.
If we drop support for Python 2.4-2.6 now, the users that are stuck at those versions will have to either:

pin to the last pysnmp version that is not based on cryptography
revamp their old systems by bumping their Python version one way or the other

Realistically, they may prefer option 1 as the easiest and less intrusive. That effectively cuts them off from further pysnmp upgrades which does not improve the security situation to them.
I mistakenly referred to RHEL 4, you are right - pysnmp won't run on it.
The download stats looks fishy - is the world still at Py 2.7? Where are all the Py3 users? %-/
Anyway, do you think that having pysnmp supporting both PyCryptodomex and cryptography (whatever is available) would be a bad design?

The download stats looks fishy - is the world still at Py 2.7? Where are all the Py3 users? %-/

Well, it varies a lot by project. Here's a few others.
rq-dashboard

python_version
percent
download_count

3.6
52.4%
6,751

2.7
40.7%
5,237

3.5
5.9%
758

3.4
1.0%
130

2.6
0.0%
1

Flask-SQLAlchemy

python_version
percent
download_count

2.7
85.8%
645,538

3.6
7.7%
57,602

3.5
3.8%
28,411

3.4
2.5%
18,775

2.6
0.1%
868

3.7
0.1%
532

3.3
0.0%
346

None
0.0%
4

3.2
0.0%
1

unicodecsv

python_version
percent
download_count

2.7
91.2%
464,979

3.6
4.4%
22,307

3.5
2.4%
12,449

3.4
1.7%
8,855

2.6
0.3%
1,306

3.7
0.0%
133

3.3
0.0%
86

None
0.0%
1

tqdm

python_version
percent
download_count

3.5
50.6%
228,303

2.7
28.6%
129,062

3.6
16.0%
72,107

3.4
4.1%
18,633

3.7
0.3%
1,136

3.3
0.2%
1,020

2.6
0.2%
773

3.2
0.1%
490

None
0.0%
3

Pillow

python_version
percent
download_count

2.7
61.6%
840,801

3.6
21.0%
287,160

3.5
13.0%
177,938

3.4
4.0%
54,313

3.7
0.2%
3,014

2.6
0.1%
1,447

3.3
0.1%
1,293

3.2
0.0%
30

None
0.0%
19

PySNMP
We can get figures by distro versions too.

system_name
distro_name
distro_version
percent
download_count

Linux
CentOS Linux
7
79.1%
112,400

Linux
Ubuntu
16.04
5.7%
8,089

Linux
CentOS
6.9
4.5%
6,430

Linux
Ubuntu
14.04
3.7%
5,221

Linux
None
None
2.6%
3,633

Windows
None
None
1.6%
2,246

Linux
CentOS Linux
7.3.1611
1.1%
1,615

Linux
Debian GNU/Linux
8
0.8%
1,156

Linux
Debian GNU/Linux
9
0.6%
802

Linux
Ubuntu
16.10
0.4%
584

pypinfo --start-date -35 --end-date -5 --percent --pip --markdown pysnmp system distro distro-version
Across all PyPI

python_version
percent
download_count

2.7
76.5%
411,798,144

3.6
10.0%
54,006,295

3.5
8.3%
44,528,155

3.4
4.0%
21,657,569

2.6
0.9%
5,051,339

3.3
0.1%
526,609

3.7
0.1%
412,965

3.2
0.0%
28,598

None
0.0%
17,265

3.1
0.0%
108

pypinfo --start-date -35 --end-date -5 --percent --pip --markdown "" pyversion

system_name
distro_name
distro_version
percent
download_count

Linux
None
None
29.7%
137,388,244

Linux
Ubuntu
16.04
19.4%
90,047,548

Linux
Ubuntu
14.04
14.9%
69,088,760

Linux
Debian GNU/Linux
8
14.7%
67,983,565

Linux
Amazon Linux AMI
2017.09
6.1%
28,466,275

Windows
None
None
5.9%
27,511,742

Linux
CentOS Linux
7
4.3%
19,817,279

Linux
Amazon Linux AMI
2017.03
1.8%
8,555,639

Linux
Debian GNU/Linux
9
1.6%
7,625,630

Darwin
macOS
10.12.6
1.4%
6,608,145

pypinfo --start-date -35 --end-date -5 --percent --pip --markdown "" system distro distro-version

It would definitely be possible to isolate the crypto code and use whichever backend is available (preferring pyca/cryptography), then add logic in setup.py that selects pyca/cryptography if you're on 2.7/3.4+ and pycryptodomex otherwise.
I believe that legacy version support needs to be dropped at some point, but this would enable a more incremental transition if you are not comfortable dropping support entirely yet.

Here's an initial draft of the hybrid backend, with accompanying Travis run. I'm happy to go this route if that's what you all prefer.
https://github.com/mattsb42-aws/pysnmp/tree/hybrid-crypto
https://travis-ci.org/mattsb42-aws/pysnmp/builds/338364734

@mattsb42-aws Thanks for working on this! I am going to review it and leave a few comments shortly.

#133 created for this

The pysnmp rework without hard dependency on strong crypto packages for your testing.
I can't push pysnmpcrypto to PyPI at the moment because of the ongoing battle against spammers.

Any idea when 5.0.0 will be released?

Tracked in https://github.com/lextudio/pysnmp/issues/12 and pysnmp-lextudio 5.0.27 ships the changes needed.


more children for GO:1901568 fatty acid derivative metabolic process

GO:1901568 fatty acid derivative metabolic process ("The chemical reactions and pathways involving fatty acid derivative") has GO:0006690 icosanoid metabolic process as a child, consistent with using the term to mean a process that converts a fatty acid to a related molecule. That logic would allow  GO:0035337 fatty-acyl-CoA metabolic process,  GO:0010166 wax metabolic process, and perhaps GO:1902224 ketone body metabolic process also to become children of GO:1901568. (At least in humans, ketone bodies are synthesized from acetyl CoA largely derived from fatty acid breakdown, so it may be a stretch.)
That would be useful because all of these processes are often grouped with lipid metabolism and the requested is_a links would give this grouping a basis in GO.

It would be nice if we could get all of these through the reasoning with ChEBI. I think the right way to do this would be to expand on the formal representation of the pathways in the ontology similar to what we did for glycolysis. This way, we could make participants that are fatty acid derivatives in each of the pathwyas and they should be grouped correctly. Lipid metabolism has been on the horizon for some time now.

@deustp01  I requested the chemicals to be classified as fatty acid derivatives on the ChEBI tracker. Once that happens, they will be automatically classified in GO.


API for Resize with GPUs

Design Doc: https://microsoft.sharepoint.com/:w:/t/AzureEdgeTeam/EYQGzpguvPRDmSOejqFOyyABiRzfzas0glXutZlBhvW14w?e=aW0HA9

/azp run

Got ok from @raghavendra-nataraj on Teams to merge the PR.


Missing comma in bibtex for citation in readme

In between title and year.
Thanks :)

Also, should be "author", not "authors"

So, you want:
@misc{dowhy, author={Sharma, Amit and Kiciman, Emre and others}, title={Do{W}hy: {A Python package for causal inference}}, howpublished={https://github.com/microsoft/dowhy}, year={2019} }

Ah, good catch. Thanks @nehargupta I took this opportunity to update the bibtex with the arxiv paper too.
https://arxiv.org/abs/2011.04216


Prevent OOMs in the chunk store.

This change moves the parsing and instantiation of the struct Chunks after the intersection of their IDs - we were finding on very high cardinality timeseries (~8m) and queriers would OOM just building the array of chunks from the index, even if the intersection of label matchers was relatively small.
We also add a limit to the number of chunks fetched in a single query.
The big casualty here is removing the support for metadataInIndex chunks - comment says these were last used in Nov 2016, so this is probably safe.
Signed-off-by: Tom Wilkie<EMAIL_ADDRESS>

After deploying this we're seeing about a 2x reduction in steady state memory usage, and almost the complete elimination of the spikes that were causing us problems.  NB this was deployed along side #713, but when #713 was deployed on its own we didn't see the same reductions.

@bboreham PTAL?

Thanks!


DDRNet train recipe

Improved recipe for DDRNet training.
Results:

model
mIoU
previous %mIoU diff

DDRNet23
80.26
1.61

DDRNet23-slim
78.01
1.41

Differences:

Fixed backbone pretrained weights loading. Only weight for context path in DDRNet were loaded with ImageNet weights while the ImageNet ckpt includes also weights for spatial path and context-spatial interchanged layers.
Different LR for encoder and decoder.
Dice + CE-Edge combo loss instead of Hard mining loss.

Addressed.


Bump LLVM to fc7f7260a609b2092260b6a5e867a20cf364808c

LLVM commit: fc7f7260a609b2092260b6a5e867a20cf364808c
MHLO commit: d70cd274ea4cf31fdc7d29d4cc70e1569acb74d8

We probably need to update TF as well (see here https://github.com/iree-org/iree/blob/main/docs/developers/developing_iree/llvm_version_bump.md#strategy-2-sync-everything-to-a-googletensorflow-commit)

#9614 cherry picked a commit. Needs to be reflected here.

#9614 cherry picked a commit. Needs to be reflected here.

Looks the commit I cherry picked is part of this bump. So you can overwrite that without problem. :)

#9614 cherry picked a commit. Needs to be reflected here.

Looks the commit I cherry picked is part of this bump. So you can overwrite that without problem. :)

Awesome! Thanks for confirming!


Error appears when deleting a vm with a deleted snapshot: GET_VM_SNAPSHOT failed Gateway Timeout

When trying to delete a snapshot for an existing VM and then trying to remove that VM, the following error appears:

VM Portal version number:
1.9.1-0

I didn't succeed to reproduce this failure again so closing this.


Make S3 service instances shareable between spaces

This enables running cf share-service SERVICE -s OTHERSPACE to make a service instance visible and bindable in that other space.
Here's the spec documentation.
See related Slack discussion.

Thanks @mogul !


Feature suggestion: Show document on the side and highlight references

Because chatd uses a document as the source-of-truth for responses, I think it might be a good idea to show the actual document on the side (maybe using a two-sided layout where the chat takes 40% and the document the remaining 60%?), highlight the source chunks used as reference and point to them from the chat using simple markdown links.
Does this sound like a good idea? If so, I'd happy to contribute!

Hi @rmonvfer thanks for the suggestion. This is a really interesting interface idea, I like it.
One of my short-term goals for chatd is the ability to load and chat with entire directories as well as individual files, so this interface might not work as well if I find that chatting with full directories produces good results. I'll hold off on this for now, and re-evaluate based on how that goes.


Adds annotations for default primitive and String values

Thanks for this contribution, @jarettmillard.  I understand the need for default values when deserializing JSON objects, but I don't think this is quite the right approach.
First, AutoValue already provides a mechanism for providing default values using the builders.
Second, the current approach in this PR doesn't clearly define that these default values are only for JSON deserialization. What happens if users try to construct an object with a null value where they have annotated the property with @DefaultString()?  I think a user would expect to get the default string, but they will instead get a crash.
Third, if other extensions want to provide default values then these things will add up quickly.  I wouldn't want to run into a project where you have something like @com.foo.DefaultString("foo") @com.bar.DefaultString("foo") @com.baz.DefaultString("foo") public abstract String value();.
After discussion with the Moshi creators, I think a better approach would be to utilize the built in default value support via the builder.  There is a bit of complexity here, though, since you could have multiple static factory methods for builders, so I propose the introduction of @JsonDefault annotation that can be added to a single, possibly protected, static factory method returning @AutoValue.Builder to denote which one to use.  This makes the logic for generated construction as follows:

If there is a @JsonDefault annotated static factory method returning an @AutoValue.Builder, use it.
If there is only a single static factory method returning an @AutoValue.Builder, use it.
Use the constructor.

I've created issue #20 to track this and copied this description into it.

Thanks for the feedback. I did consider utilizing @AutoValue.Builder for default values, but couldn't figure out a nice way to do so. This seems like a better approach to me too.


Let AsciidocFX define the web browser when Browser is clicked

Hello
Currently if I do click in the Browser yellow option it opens the default Web Browser of the OS. I did do a research in the Settings tab and I couldn't find for each section an option to define the web browser to be opened.
Thanks for your understanding

Unfortunately, this feature is not implemented.

I want to get What is the problem with the default browser? and Why just don't change the default browser ?

For example, I have in the OS 4 different Web Browsers - consider that the default defined in the OS is Opera - but for AsciidocFX I want define explicitly other different - let say Firefox. Therefore that is the request, when I have loaded the view preview and a click is done in any link - it should open Firefox (custom web Browser) and not Opera (OS' default)

Feature has been implemented, and it will be available in next release.

Huge thanks for this new addition!

For Linux Ubuntu 22:04 - I got the 1.8.4 release ... in the Settings tabs located in the rigth, in what tab is expected to accomplish this configuration? I couldn't find it.

It will be available at v1.8.5

Thanks for the reply and information

This feature is available https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.8.5


Simplify localIP detection and improve compatibility

Simplified localIP assignment.  Now works with Odroid HC2 Armbian Buster.  Where "hostname -I" could not be used I added either "inet" or ")*" to the grep commands.  This now also works with Odroid HC2 Armbian Buster.

ACK cde3359
@rootzoll tested this on multiple different systems, looks good and simplifies the IP address detection a fair bit.

Thanks - merged for v1.7.1 release. To be tested witth RC1.


ISPN-10712 Avoid nullpointer when stats non available

https://issues.jboss.org/browse/ISPN-10712

@wburns didn't do anything concerning the clustered stats

@anistor @wburns I changed here

LGTM. Let's wait for CI

@anistor unrelated failures I think

Integrated. Thanks @karesti !


WIP Rename wal_acceptor and others to safekeeper

Fixes #704 . I've also decided to bring in more consistency and searched the zenith repository (not postgres) case-insensitively for some keywords and adjusted them to safekeeper where it looks appropriate. I've search for:

walkeepe: only the crate name walkeeper is left. Separate PR, if any.
wal_keepe: nothing
wal keepe: nothing
wal_accept:

[ ] single config load, I don't know where this config is generated.
Lots of stuff in test_runner: separate PR, if any
wal_acceptor_thread inside safekeeper — I think it's ok to call it "WAL acceptor thread".

walaccept: lots of stuff in test_runner: separate PR, if any
wal accept:

Lots of stuff in test_runner: separate PR, if any
Glossary and safekeeper's README next to "WAL proposer": I think it talks about protocol and WAL acceptor specifically, not safekeeper as a whole
[ ] "WAL acceptor thread" inside safekeeper
[ ] Comment inside send_wal.rs

I think renaming inside test_runner should be a separate PR, as it's a lot of lines, even if auto-refactored.
I'm not sure what to do with checkboxes, advice is welcome.

There was a spurious test failure (test_pageserver_restart), disappeared after re-running. Weird. I don't think renaming would increase flakiness of tests, so I don't think this PR is the cause.
End-to-end tests, however, fail, because some deployment scripts call wal_acceptor directly. Possible work around: keep both versions in Docker for a while, update deployment scripts, remove the wal_acceptor symlink.
I think it's non-trivial enough to warrant removing non-binary-related renames from this PR.

Got flaky test on CircleCI: test_isolation - batch_pg_regress.test_isolation. Last flaky on Oct 8, as it reports. Will try re-running.


Update rlp_01 to version 2.0.0

Update rlp_01 to version 2.0.0

Fixed in 5f51093c61ef8e93cfeedc118cbcd5c9f7545f13


Wrong voltage reading

I sometimes have a problem with completely wrong voltage readings, almost gave me a heart attack the first time it happened.

root@einstein:~# @4000000065e873cb3190ca14 com.victronenergy.battery.ttyUSB0: 5.6, limit 1.08
-sh: @4000000065e873cb3190ca14: command not found
root@einstein:~# @4000000065e873cb3190d5cc com.victronenergy.battery.ttyUSB1: 22.7, limit 32.4
-sh: @4000000065e873cb3190d5cc: command not found
root@einstein:~# @4000000065e873cb3190dd9c
-sh: @4000000065e873cb3190dd9c: command not found
root@einstein:~# @4000000065e873cc05b92044 INFO:battery:Max charge current is 33.21 but scaling b                                                 ack to 4.803589285714287 as limit exceeded for battery com.victronenergy.battery                                                 .ttyUSB0 (overcurrent ratio: 6.913580246913579)
-sh: syntax error near unexpected token (' root@einstein:~# @4000000065e873cc06d025f4 INFO:battery:Battery currents: -sh: @4000000065e873cc06d025f4: command not found root@einstein:~# @4000000065e873cc06d04534 com.victronenergy.battery.ttyUSB0: 5.6, limit 0.81 -sh: @4000000065e873cc06d04534: command not found root@einstein:~# @4000000065e873cc06d050ec com.victronenergy.battery.ttyUSB1: 22.7, limit 32.4 -sh: @4000000065e873cc06d050ec: command not found root@einstein:~# @4000000065e873cc06d05ca4 -sh: @4000000065e873cc06d05ca4: command not found root@einstein:~# @4000000065e873cc319e00e4 INFO:battery:Max charge current is 33.48 but scaling b                                                 ack to 2.5827428571428572 as limit exceeded for battery com.victronenergy.batter                                                 y.ttyUSB0 (overcurrent ratio: 12.962962962962962) -sh: syntax error near unexpected token ('
root@einstein:~# @4000000065e873cc31adcfc4 INFO:battery:Battery currents:
-sh: @4000000065e873cc31adcfc4: command not found
root@einstein:~# @4000000065e873cc31adef04 com.victronenergy.battery.ttyUSB0: 14.0, limit 1.08
-sh: @4000000065e873cc31adef04: command not found
root@einstein:~# @4000000065e873cc31adf6d4 com.victronenergy.battery.ttyUSB1: 18.8, limit 32.4
-sh: @4000000065e873cc31adf6d4: command not found
root@einstein:~# @4000000065e873cc31ae028c
-sh: @4000000065e873cc31ae028c: command not found
root@einstein:~# @4000000065e873cd31be0fec INFO:battery:Max charge current is 33.48 but scaling b                                                 ack to 12.468413793103448 as limit exceeded for battery com.victronenergy.batter                                                 y.ttyUSB0 (overcurrent ratio: 2.685185185185185)
-sh: syntax error near unexpected token (' root@einstein:~# @4000000065e873cd31d3bacc INFO:battery:Battery currents: -sh: @4000000065e873cd31d3bacc: command not found root@einstein:~# @4000000065e873cd31d3da0c com.victronenergy.battery.ttyUSB0: 2.9, limit 1.08 -sh: @4000000065e873cd31d3da0c: command not found root@einstein:~# @4000000065e873cd31d3e5c4 com.victronenergy.battery.ttyUSB1: 19.4, limit 32.4 -sh: @4000000065e873cd31d3e5c4: command not found root@einstein:~# @4000000065e873cd31d3ed94 -sh: @4000000065e873cd31d3ed94: command not found root@einstein:~# @4000000065e873fb3a913f7c Traceback (most recent call last): -sh: syntax error near unexpected token ('
root@einstein:~# @4000000065e873fb3a91668c   File "/data/BatteryAggregator/battery_service.py", l                                                 ine 359, in publish
-sh: @4000000065e873fb3a91668c: command not found
root@einstein:~# @4000000065e873fb3a917244     self.update()
-sh: syntax error near unexpected token `('
root@einstein:~# @4000000065e873fb3a917a14   File "/data/BatteryAggregator/battery_service.py", l                                                 ine 324, in update
-sh: @4000000065e873fb3a917a14: command not found
root@einstein:~# @4000000065e873fb3a9185cc     batteryOvercurrentRatio = batteryCurrents[i]/ccl
-sh: @4000000065e873fb3a9185cc: command not found
root@einstein:~# @4000000065e873fb3a919184 ZeroDivisionError: float division by zero
-sh: @4000000065e873fb3a919184: command not found
root@einstein:~#

Pushed a fix for the error. Not sure where 59.15V is coming from, it should be min of the two battery voltages, unless balancing then it is the max of the two. Does it eventually drop to 54.8V? The current is also not correct.

I'm also not sure where that is coming from. It happened one time in the night with 69v while both my batteries were 53v.

I've released a new version which uses event-based updating. This should make the aggregator more closely track changes to the individual batteries.

It is fixed, thank you very much.


Float math for values needs to be replaced with more consistent system

Sometimes nodes get out of sync, issue seen when sending transactions close to wallet balance. One node sees it as sufficient while the other does not.

Might be better to store values as strings and limit decimal places to assist with this issue.

Fixed, value of transactions now stored with the Decimal variable type


[Feature Request]

Checklist

[X] This feature is merely a UI/UX update.
[X] This feature is not going to conflict with many of the existing options.

Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
I think changing the player and the bottom navigation to something like this:
https://user-images.githubusercontent.com/41828058/206903659-40490938-6356-49f9-9efc-edd99b5e4741.mp4
Is visually better than this boxi shape:
https://user-images.githubusercontent.com/41828058/206903735-f5f8e68d-d3ed-4c06-89b7-7fd993f8ac10.mp4
Additional context
It's not that important since the app is still in early development but i wanted to mention it before forgetting about it 😅

Thank you for the Feature Request! I'll be adding a lot of UI changes including animations these days.
Since this week I've been having a lot of exams (I'm 16 haha), I couldn't work on the app.

Bruh, I thought you'd be 20 like me 😅
Also, good luck with your exams.

Hahaha no problem! But yes, I'm 16 and I'm doing what is called here in Spain as "bachillerato". It's the school level that you have to do before University.

I'm currently making some changes on the Player and also making a More Options dialog

I'm currently making some changes on the Player and also making a More Options dialog

Can't wait to test it 🫡

I made some tests with Shared Animations (like moving an image from one part of the screen to other) but I wasn't able to calculate the xy cordinates correctoy so I had to rollback, but I'll be learing to make really good UI animations

https://user-images.githubusercontent.com/60316747/208313404-c9c862e2-f809-4025-a19f-fe4ec49bf3ed.mp4
This is a preview of More Options dialog. I'll be remaking the miniplayer, adding the "likes" support, and adding/finish more options to this dialog.

Screenrecorder-2022-12-18-19-28-48-678.mp4
This is a preview of More Options dialog. I'll be remaking the miniplayer, adding the "likes" support, and adding/finish more options to this dialog.

This Looks pretty good


[Android] Generate retrofit interface & methods wrappers (aka client and client-methods)

Client class name
Client method signature (return type (client_type), required params and optional model param)
Client method body, include code for
a. status check
b. deserialization to success model
c. deserialization to error model and exception throwing (HttpResponseException or extended type)

Finished


Instance type of Server component does not contain refresh

Environment

Operating System: Linux
Node Version:     v18.20.3
Nuxt Version:     3.12.2
CLI Version:      3.12.0
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-qjtrhd
Describe the bug
IslandComponent does have method refresh but it does not exist in its type.
Enter the reproduction and you will see vue-tsc throwing error
Additional context
No response
Logs
No response

(For now you can use // @ts-expect-error.)


Create vm

Add a new job in building stemcell pipeline to OS reload an existing VM with the newly created SL community stemcell.

@mattcui @LiYa-Xu Could we merge this PR?


OpenAI response: content= I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI.

[chatgpt-2] [INFO] [1714309692.745402217] [chatgpt]: OpenAI response: ChatCompletion(id='chatcmpl-fmobFAdpB7Jiv8BXSsqwFEArjZyge', choices=[Choice(finish_reason='stop', index=0, message=ChatCompletionMessage(content="I'm afraid I cannot pretend to be something I'm not. I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI. I aim to always be honest about my identity and capabilities. How else may I assist you today?", role='assistant', function_call=None), logprobs=None)], created=1714309692, model='gpt-3.5-turbo', object='chat.completion', usage=CompletionUsage(completion_tokens=64, prompt_tokens=159, total_tokens=223), system_fingerprint=None)
[chatgpt-2] [INFO] [1714309692.745992707] [chatgpt]: OpenAI response type: TEXT
[chatgpt-2] [INFO] [1714309692.746595931] [chatgpt]: Get message from OpenAI: ChatCompletionMessage(content="I'm afraid I cannot pretend to be something I'm not. I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI. I aim to always be honest about my identity and capabilities. How else may I assist you today?", role='assistant', function_call=None), type: <class 'openai.types.chat.chat_completion_message.ChatCompletionMessage'>
[chatgpt-2] [INFO] [1714309692.747095156] [chatgpt]: Get content from OpenAI: I'm afraid I cannot pretend to be something I'm not. I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI. I aim to always be honest about my identity and capabilities. How else may I assist you today?, type: <class 'str'>
[chatgpt-2] [INFO] [1714309692.747643979] [chatgpt]: Get function call from OpenAI: None, type: <class 'NoneType'>
[chatgpt-2] [INFO] [1714309692.748138036] [chatgpt]: Chat history updated with {'role': 'assistant', 'content': "I'm afraid I cannot pretend to be something I'm not. I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI. I aim to always be honest about my identity and capabilities. How else may I assist you today?"}
[chatgpt-2] [INFO] [1714309692.749620192] [chatgpt]: Chat history has been written to JSON
[chatgpt-2] [INFO] [1714309692.750172928] [chatgpt]: STATE: output_processing
[chatgpt-2] [INFO] [1714309692.750788797] [chatgpt]: STATE: feedback_for_user
[chatgpt-2] [INFO] [1714309692.751399717] [chatgpt]: Topic: /llm_response_type
[chatgpt-2] Message published: feedback_for_user
[chatgpt-2] [INFO] [1714309692.752160798] [chatgpt]: Topic: /llm_feedback_to_user
[chatgpt-2] Message published: I'm afraid I cannot pretend to be something I'm not. I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI. I aim to always be honest about my identity and capabilities. How else may I assist you today?
[llm_audio_output-3] [INFO] [1714309692.752721125] [llm_audio_output]: Received text: 'I'm afraid I cannot pretend to be something I'm not. I am an AI assistant created by Anthropic, not the GPT-3.5 model developed by OpenAI. I aim to always be honest about my identity and capabilities. How else may I assist you today?'
[llm_audio_output-3] [INFO] [1714309692.832814138] [llm_audio_output]: Polly client successfully initialized.
[llm_audio_output-3] [ffmpeg/demuxer] mp3: Estimating duration from bitrate, this may be inaccurate
[llm_audio_output-3]  (+) Audio --aid=1 (mp3 1ch 22050Hz)
[llm_audio_output-3] AO: [pulse] 22050Hz mono 1ch float
A: 00:00:15 / 00:00:16 (97%)
[llm_audio_output-3]
[llm_audio_output-3] Exiting... (End of file)
[llm_audio_output-3] [INFO] [1714309712.364772632] [llm_audio_output]: Finished Polly playing.
问什么都回答这句话，和这个apikey有关系吗？

自然解决


openPMD: fix UB in string copy

Description
The previous string copy performed an out-of-bounds read for two attributes. This was mostly visible as broken particle read (broken particlesPath read).
While on it, I performed some maintenance work, making the code more robust and future-safe (e.g. for user-friendly error-handling of upcoming openPMD 2.0.0 files).
Type of change

2c11fa37c36e79a660554f9cecb1c75829a4672e: This is a bug fix where sizeof(char*) was mismatched with sizeof(char[N]) and uninitialized memory was copied, which led to crashes.

8d49621bb63e81ae264499bcda377eaad16e497e: Redesign some char[] arrays to std::string. Removing constant-size buffers will avoid crashes with long, user-defined names/paths.

43a1f1680301fe9ef23871fc613efdf8e44da0b9: I took the chance to update the user-facing description of the plugin. It supports openPMD 1.X meta-data flavored files, is currently limited to HDF5, and openPMD is spelled with a lower-case "o" :-)
caefa1f243d00d4d348e856b6496c7118f8d4a19:

c9a359cab9e778d79ba910d50fd939966392dacd d86c5522896c6662fa711fcfac9a5728a766537e 7a943f37c41f6d86600a16cffdb7a7a8f9028853: validate a file's openPMD version: cleanly abort if an openPMD standard version <1.0.0 or >=2.0.0 is detected

cc @dpugmire @xxirii
How Has This Been Tested?
I saw the problem with the 3D example data set here and VisIt 3.1.1: https://github.com/openPMD/openPMD-example-datasets/

[ ] Just waiting for https://github.com/spack/spack/pull/16498 to be complete so I can rebuild and test this locally :)

Checklist:

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have updated the release notes
[ ] I have made corresponding changes to the documentation
[x] I have added debugging support to my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I have added any new baselines to the repo
[ ] I have assigned reviewers (see VisIt's PR procedures for more information).

Memo to myself: I was able to test this in depth now and the following follow-up changes are necessary:

[ ] somehow I deactivated the moving-window pinning option with this PR
[ ] generally, the particle read implementation seems incomplete and misses the offset+position composition logic of openPMD: https://github.com/openPMD/openPMD-standard/blob/1.1.0/STANDARD.md#records-for-each-particle-species


Make Wiki searchable with Algolia

There is a lot of detailed information about the meat space in the Decentral Wiki, thanks mainly to @chiselinc.
The wiki is ideal for maintaining the repo up to date, but currently there is no easy way for members, specially new ones, to access it, aside from going directly to it.
Integrating Algolia would allow members to find out details about the space.

issue for decentralVan/decentral


Content is not updated

Expected behavior
After navigating on the website -opening profile or visiting some categories-, new content should be shown.
Actual behavior
Clicking in any tab is showing always the last shown content.
How to reproduce
Open busy.org. Look at the content. Go to your wallet (also see issue #1174, it is the same as this one, but this is more generic) or your profile or some category, it doesn't matter.
If you do some transfer, the balance will not appear as updated, even navigating and coming back to the wallet.
Wait for some time for your followers to publish new content.
Navigate again to your main page. You will see the last shown content. After refreshing the browser then every new post will be shown now.

Browser: Tested in Firefox 58 and Opera 51
Operating system:  macOS 10.13.3

Duplicate of #1406

Yes, sorry, it seems to be duplicate of that bug. I didn't search deep enough.


[identity] Cleanup legacy MSI code

Packages impacted by this PR
@azure/identity
Issues associated with this PR
Resolves #31208
Describe the problem that is addressed by this PR
Now that Managed Identity migration to MSAL has been stabilized, we can finish
the migration with my favorite part: deleting code!
This PR deletes all the legacy code, and simplifies where possible. Obsolete
tests have been deleted or updated.

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


WOQL: Not able to query by selecting a particular document type using triple

Describe the bug
I'm just creating documents and want to return them ordered by most recent first (descending by StartTime)
Here's the simple schema for the document:
{
  "@documentation": {
    "@comment": "Base memory",
    "@properties": {
      "Data": "The data representing the memory (only text right now)",
      "EndTime": "End time of memory",
      "StartTime": "Start time of memory"
    }
  },
  "@id": "Memory",
  "@key": { "@type": "Random" },
  "@type": "Class",
  "Data": "xsd:string",
  "EndTime": "xsd:dateTime",
  "StartTime": "xsd:dateTime"
}

The below query returns nothing (bindings is zero length array)
let qry = Q.triple("v:Memory", "type", "Memory").triple(
      "v:Memory",
      "Data",
      "v:Data"
    );

db.query(qry).then((response) => { yadda yadda}

I know documents are in there because i can get them with
db.getDocument({
         graph_type: "instance",
         as_list: true,
         type: "Memory",
         count: 20,
       })

The following was an attempt at orderying by StartTime, which also returns an emtpy binding array
let [StartTime] = Q.vars("StartTime");

    let qry = Q.order_by([StartTime, "asc"])
      .triple("v:Doc", "type", "Memory")
      .triple("v:Doc", "Data", "v:Message")
      .triple("v:Doc", "StartTime", StartTime);

    db.query(qry)

What's the proper syntax to get these documents  returned ordered by newest first? (based on StartTime field)
Issue originally posted by community member Harman on discord

The best way to get all instances of a type is to use the instance WOQL word. This will get everything below in the hierarchy and interprets its second argument as being in the @schema prefix.
WOQL.instance("v:X", "Memory")

The default for elements in the subject and object position is for them to be interpreted as @base: which is why you're not finding anything of that type, since the type exists in the schema and not the instance.


Ensure the latest version of rubyrep is used

@Fryguy updates to the latest rubyrep tag on our fork

Thanks @brandondunne .  Glad we found this.


Setting a custom UserDetailsService on the token endpoint

Related to https://github.com/spring-projects/spring-security-oauth/issues/620, https://github.com/spring-projects/spring-security-oauth/issues/774
It is not currently easy to use a custom UserDetailsService with the token endpoint if it is configured with the @EnableAuthorizationServer annotation. This is because a ClientDetailsUserDetailsService is configured directly on the HttpSecurity.
@Override
	public void init(HttpSecurity http) throws Exception {

		registerDefaultAuthenticationEntryPoint(http);
		if (passwordEncoder != null) {
			ClientDetailsUserDetailsService clientDetailsUserDetailsService = new ClientDetailsUserDetailsService(clientDetailsService());
			clientDetailsUserDetailsService.setPasswordEncoder(passwordEncoder());
			http.getSharedObject(AuthenticationManagerBuilder.class)
					.userDetailsService(clientDetailsUserDetailsService)
					.passwordEncoder(passwordEncoder());
		}
		else {
			http.userDetailsService(new ClientDetailsUserDetailsService(clientDetailsService()));
		}
       ...
       }

My use case for this is to add some extra information on the Authentication.principal which I believe is quite a common use case, and the recommended way of doing it in Spring Security is through implementing the UserDetailsService.

Closing as duplicate of #620


Canary stuck after failed deployment

We are trying to upgrade a release from a Helm chart, and skip analysis is being used. It seems that some problem brought flagger to a state that locked any progress.
Logs show, in order, several of each:
Synced ns/release

Halt advancement release-primary.ns deployment \"release-primary\" exceeded its progress deadline

Halt advancement release-primary.ns waiting for rollout to finish: 1 old replicas are pending termination

After that, there is one log every 20 seconds with the same message:
Halt advancement release-primary.ns deployment \"release-primary\" exceeded its progress deadline

If you try to create a new release, the canary deployment is updated, but the primary is not, and the canary succeeds. I have pods running with old specs and crashed, which were promoted to primary in the past. As the primary deployment is not updated, no updated pods are updated. This is because of #362.
I can't solve this unless I manually remove the whole canary structure, which seems stuck.

Hi @giggio what provider are you using?

Hey @stefanprodan, we are using Istio.

Can you please update Flagger image to weaveworks/flagger:skip-primary-check-9af6ade you should be able to rollout the new version with skip analysis on even if the primary fails. Please let me know if it worked. Thanks!

Also please join Flagger slack channel and give me a ping https://slack.weave.works/


Add Conditions to CI

This slightly increases test time, but reduces the issue of running huge jobs like tests if clippy or rustfmt doesn't even pass (since those take so little time).
This would trade parallelism for efficiency, somewhat. I don't want to run them all sequentially, since most tests usually do pass, but it puts up a low barrier to stop obviously bad commits from being checked thoroughly.

I will need to make more changes to this though, since cargo machete seems to run in 7 seconds, which would also be a great barrier job.
Feel free to shut me down if I'm being silly.


Long shader compilation time for Android

Hello! I'm working on a project involving a Quest 3s (Android) device and Unity. I am currently trying to load a .glb file and visualize it in VR. I'm facing a problem regarding missing shaders, which should be possible to solve by adding UnityGLTF/PBRGraph to the list of always included shaders. However, when I do this I get the following error:
Error building Player: UnityGLTF/PBRGraph has too many Shader variants (1179648)
After taking a look at the issues, I've found this comment saying that I should try preloading the predefined shader variant collection. This leads to a huge compilation time, due to a big number of variants.

Is there anything I could do to speed this process up? I'm building using Unity 2022.3.8f1

Hey, couple questions:

Which UnityGLTF version are you using?
Are you using URP or BiRP?
Are you using any specific renderer features in your URP asset?
Did you remove the shader from the "always included shaders" list after adding the premade variant sets?


Heaven and hell

@mbell1083 Please let us know if you have any query or feedback regarding specific document.

@mbell1083 Please let us know if you have any query or feedback regarding specific document.


UI bug in faq section

Bug Description
There is a bug in ui in faq section
see here https://yatulearn.vercel.app/pages/yatu_learn_about.html
Expected behavior
The accordian should be closed properly
Screenshots

@amanazads Please add relevant labels


Decode URIs before checking filename against manifest

Fixes #1501 — fetch('/file with spaces.json') and fetch('/file%20with%20spaces.json') are treated the same way when static/file with spaces.json exists and we're prerendering
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

lol, just few days ago I saw PR, where decodeURIComponent was removed from this code.

Are you sure? I just jumped back several commits in the git history and don't see it:
https://github.com/sveltejs/kit/blob/f44693a6dbedc3a7110d8db7f7a5ce9e8afe270e/packages/kit/src/runtime/server/page/load_node.js#L104
Please point at the PR if I'm missing it

oh it was similiar code in other file, sorry.


3.0.0 plan

Replace the --home option with --configdir and --filesdir so one can decouple the locations of config and files dirs.

If either is left unspecified or --home is given, use the old behaviour and use ~/.droppy and ~/.droppy/files
Print a warning message on --home and advice the user to specifiy both new options. The warning should include what both optiones would with the current location resolved.

Maybe tackle file search. The plan on how to do is is pretty clear (server keeps an index, client queries the server which returns the matched files). I need to decide whether to use a library for autosuggestions or implement it myself. Also, an UI redesign with action buttons for each view is likely required (https://github.com/silverwind/droppy/issues/88), so each view can have their own search box.

Tagged 3.0.0. See https://github.com/silverwind/droppy/blob/master/CHANGELOG.md for details.

I was reading about managing dotfiles recently and I saw some discussion about adhering to XDG spec for the sake of management. I sort of agree with the view that the home folder shouldn't be full of dotfiles/folders from various software and I was wondering what you thought of sticking to the default spec.
This still provides for a separation of the config and file directories - the configdir would be $HOME/.config/droppy and the file directory would be $HOME/.local/share. It's not a major change so maybe these could be the defaults instead.
I also haven't installed droppy from scratch in a really long time so I was curious as to why you are now recommending /srv/droppy/ as the default base directory. Wouldn't it make more sense to point the directories to a location owned by the user rather than root?

I agree, XDG Base Directory support is something that should be added. It should be quite easy do to. In addition to XDG_CONFIG_HOME and XDG_DATA_HOME, XDG_CACHE_HOME could be used for temporary upload files.
Still, I'm not sure if it's even a good idea to have the application write into the user's home directory per default. It's nice for testing purposes, but for a more permanent installation most people will likely want to have a dedicated user to run the application and use directories somewhere outside of that user's homefolder.

Wouldn't it make more sense to point the directories to a location owned by the user rather than root?

It's kind of implied that these directories are owned by the user. I added a note to the installation instructions regarding it.

but for a more permanent installation most people will likely want to have a dedicated user to run the application and use directories somewhere outside of that user's homefolder

Absolutely, and I think installing it as a systemd service makes the most sense. The local installation instructions are good for showing how quick and easy it is to get up and running, but as it stands, the novice user would have to run the package as root or otherwise use his home directory. I'm no security expert but running the software as root seems like it could open up a potential threat vector.
I just think that in addition to the local and docker installation instructions, there should be more detailed information in the README itself that outlines creating a new droppy user that will own the droppy process and the config/file folders. I think that znc does something like this too - by default, the user will own the process and configs will be in their $HOME, but the other (and better) solution is to create a znc user and possibly run it as a znc process if the user so chooses.

Agreed, there should be a full working example for a secure installation. Withd Systemd being the standard nowadays, I think it's time to feature https://github.com/silverwind/droppy/wiki/Systemd-Installation more prominently in the README. Probably needs some tweaks (like no login shell).

Sounds good. Thanks for your continued work on this project as well. It's still one of my favorite pieces of software.


where is the code for training and testing the text encoder?

Congratulations！That's a nice work!
I've skimmed through your code, most of it comes from psp(cvpr2021) and idivert(eccv2020), so I'd like to know where is your main contribution code, i.e., code for training and testing the text encoder.

The codes are not uploaded. Please stay tuned if you are interested.

Thank you!
---Original---
From: @.>
Date: Thu, May 20, 2021 11:36 AM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [IIGROUP/TediGAN] where is the code for training and testing the text encoder? (#15)
The codes are not uploaded. Please stay tuned if you are interested.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


NTR: HIV, by PCR (maternal blood microbiology test)

For new term requests, please provide the following information:
Term Label [required]
HIV, by PCR
Synonyms [optional]
Definition [required except for organism name]
The definition should be understandable even for non-specialists. Include a PubMed ID or DOI to refer to any relevant article that provides additional information about the suggested term.
Whether HIV was detected in a maternal blood sample using PCR of DNA material
Suggested Parent Term [required]
Please look in the ontology hierarchy in a browser such as OLS or choose one from following list:

[ ] Material (independent of other entities and can be maintained through time, such as person, cell, sample)
[ ] Process (has temporal proper parts and for some time depends on some material entity, such as life cycle, cell division, heart beating, sleeping)
[ ] Information (generically dependent on some artifact and stands in relation of aboutness to some entity, such as data, identifier, document)
[ ] Characteristic/Quality (inheres in or is borne by other entities, such as height, color, disease)

Examples [optional]
like "HIV, by RDT" http://purl.obolibrary.org/obo/EUPATH_0042085 but using PCR of DNA rather than an RDT and from a maternal blood sample rather than a participant blood sample
Contributor [optional]
If you would like to be a contributor of the term or anyone you think that contributes to the term, such as label, definition, please provide the name and ORCID ID.

Looks good to me @johnwjudkins!

@zhengj2007 please review

Do we also need to add axiom: 'has value specification' some ('has specified numeric value' only xsd:boolean)?
Other looks good to me @johnwjudkins

@zhengj2007
Yes, this term needs the boolean axiom.
I see now that this term should have a different parent. ClinEpi has an IRI for each maternal (blood, feces, etc.) assay and each maternal (blood, feces, etc.) microbiology assay. 'maternal saliva assay' is already in the ontology.
I propose to add the maternal assay IRIs to the ontology and add analogous datum terms, e.g. 'maternal blood microbiology assay' and 'maternal blood microbiology datum', following 'maternal saliva assay' and the design pattern for microbiology assay terms and microbiology data terms.
There are no "raw data" ClinEpi categories for maternal specimen data yet. So the definition for EUPATH:0048296 could be "A maternal blood microbiology datum that specifies whether human immunodeficiency virus was detected polymerase chain reaction assay."


Scene right click configuration bug

The configuration dropdown is hidden behind the scene thumbnails which makes it impossible to interact with. I tried it also with only the UI and dependencies modules enabled and the issue persisted, so this doesn't look like a conflict with another module.

Thanks for the feedback, dude! It has been fixed in v1.04.


No rfid tag/card working and serial monitor showing Ver: 0x0

OS version: Windows 8
Arduino IDE version: 1.0.6
Arduino device: MEGA

No RFID tags/cards  (mifare cards) were detected. No interrupts were there. The serial monitor only showed, "Ver: 0x0"
Things I have tried so far:

I have double checked the connections and all are done according to the typical connections of MEGA.

I have tried and replaced arduino MEGA and the RFID RC-522 but I have got no success.

Would be great if you could help.
Thank you

Affected file(s) or example(s)? firmware check?

Seems duplicate to #299 . Closed in favor of the newer one.


Warnings and error

Hey !
First, thanks a lot, this API is just GREAT !!!!!!
Then, on linux (i'm using ubuntu) the bridj lib says that you must do:
"execstack -c" on the bridj.so files..... (i did it and i've got now this: http://www.filedropper.com/bridj-062)
Finally, while doing this, on linux only (it was going well on windows):
Webcam webcam = Webcam.getDefault();
I got the message in red:
Not enough args for null OpenIMAJGrabber.startSession(int, int, double)
Thanks a lot for correcting it, this is a great project !!!!!

Hi @gpotter2,
Both this messages are not errors but simple warnings and comes from BridJ.

The Not enough args message has been fixed and removed in https://github.com/nativelibs4java/nativelibs4java/issues/328 (BridJ 0.6.3)
The execstack -c message has been removed in https://github.com/nativelibs4java/nativelibs4java/issues/468 (BridJ 0.7)

Webcam Capture API still uses older 0.6.2 because newer BridJ deprecated Raspberry Pi support. If you want to get rid of these warnings just upgrade BridJ to newer one but please note that you may experience issues if you are on Raspberry Pi.

Ok, thanks :)


Include React import statement in basic component example

Someone could copy and paste the basic component example and receive an error that React wasn't included. I think it's best the examples are explicit to prevent frustrations like this.

Yea that's true, though Idk if code snippets like that are ever meant to be complete (most of the ones in our docs aren't and I got that part of docs from nextjs)

Idk if code snippets like that are ever meant to be complete

agreed. it does feel a little odd to have include the import there, but if it helps some people get started it can't be too bad :)


Size of neural network input

Congratulations on the great work.
This is more a question than an issue.
In the comment in InputStream.cs is said that the network input size is set to:
const int Width = 640 + 1;
const int Height = 352 + 1;
Because 16 * n + 1 dimensions are required.
May I ask where do these constraint come from?
I've tried other arbitrary sizes such as 1280x720 or 1920x1080 and it seems to work properly.
Regards.

It came from BodyPix: https://github.com/tensorflow/tfjs-models/blob/master/body-pix/src/util.ts#L72
You can safely use 1281x721 or 1281x1073, but 1280x720 and 1920x1080 may introduce degradation. In my experience, it introduces small offset in output.

It came from BodyPix: https://github.com/tensorflow/tfjs-models/blob/master/body-pix/src/util.ts#L72
You can safely use 1281x721 or 1281x1073, but 1280x720 and 1920x1080 may introduce degradation. In my experience, it introduces small offset in output.


Mods in Attachments cannot be activated

Adding a mod to an attachment and then checking it as active causes exception

and will not activate the mod. No Quality is added.

I have this problem too.

I'm closing this in favor of #1191.  It's not the same issue, but they're close enough that I'm working on bug fixes for both at the same time.  Thanks for the report, and I think I should have a solution soonish.


Being prompted for Azure Tenant Id in 1.9.4-beta8

It now prompts for Azure Tenant Id (and other Azure account values) on non-Azure IIS sites. None of my sites are Azure sites and this didn't happen previously.
./letsencrypt --san --accepttos --keepexisting
Then selecting 'S' and entering the site ids (comma separated)

You are right, this happened because of the addition of the DNS plugin, which causes the program to see two targets with the same SiteID. For now I'll filter out the DNS targets from this particular mode of operation.
In the future it should become possible to mix and match targets and validation modes.

Confirming that the issue was corrected in 1.9.4-beta10. Thank you


Handle error during connection in sleep mode.

If TV is in sleep mode (not totally off) when I try to connect, its response  is :
{"error":[7,"not power-on"],"id":1}

and there is not the necessary cookie for authentication but is_connected() return True
I get sleep mode for few minutes when I turn the TV off.

I change to use response.json(), it was use before for log so this should be good.
I also change the test to be allow null response.

perfect!


openrc fix

This maintains consistency with the install.sh script by using the virtualenv that the script sets up. The original version was using a different interpreter and complained about missing imports. Additionally, the new shebang now points to the correct openrc-run executable. These were the only changes needed for this script to work on Gentoo.

One more note: the install script doesn't recognize that it's operating on a Gentoo system, so the file needs to be copied to /etc/init.d manually. The issue seems to lie with the use of pidof to identify the init system. Maybe something like whereis would work better? I'm not sure how to fix that problem, but I can add an issue if that would help.

I'm on Gentoo but with systemd. If you find a better way to identify the init system feel free to do a PR!

I'll take a look. Should I make a new PR with those changes, or would you rather I add them to this one?

Let's keep all the openrc-related patches to this PR. Thank you!

I figured it out. Tested on:

systemd (Fedora)
runit (Void)
openrc (Gentoo)
Sorry for the wait. Hope this helps.


addionally enable pinch-zoom handling by browser on ios 13

Solved our problem on running on iOS 13 devices in production.
This enables the pinch-zoom gesture on the new iOS 13 version, again.
Please add this info to the documentation.
In our project we ran in to the issue, that Safari blocked zooming when the slider is hidden behind a modal overlay dialog!
closes #1640

lack of communication.
Is it dead?
Finally this is another argument against recommending to use react slick slider any longer.


Shape Strategy (△, ⬡, +)

I think we agree that much of what makes excalidraw so great is its simplicity. And we don't want to just add every little thing because eventually the simplicity will be lost.

I'd like to start the conversation on discussing the approach for adding more shapes. I've tried to read through all the existing issues that mention these and I've noticed some patterns.
Lines (& multi-point lines)
https://github.com/excalidraw/excalidraw/issues/24
(Multi-point lines allow for drawing complex shapes we don't want to have presets for. Perhaps bezier curves could be toggled on/off)
https://github.com/excalidraw/excalidraw/issues/218
https://github.com/excalidraw/excalidraw/issues/344
Basic Shapes & Polygons
https://github.com/excalidraw/excalidraw/issues/244
@vjeux has indicated being open to the idea of adding more shapes (that have additional settings).
Personally I would add primitives for triangles (options for △, ▹, ◸, rotate?), hexagons (⬡,⎔), and then maybe octagons or polygon(n sides)?
But I understand that not everyone shares my passion for hexagons, so some may think that it shouldn't be a primitive. Or there might be another shape more people would use as a primitive not included in my list.
I would be happy to submit a PR for adding hexagons as a shape, but I would prefer to validate that this is a feature people would like to use.

But I understand that not everyone shares my passion for hexagons

:sweat_smile:

I personally would group Hexagons with Polygons, or add a shape that you can specify how many sides it has since there might be a need for both symmetrical polygons and asymmetrical polygons.

What do you all think about a "Complex Polygon" shape, that implements SVG's polygon? The user could add, move, & remove points. Currently though the user doesn't interact with points; only bounds. So there would need to be work around that first.

I would love that.. We just need to think something smart about the design.. we don't want to overload it with more buttons.. some sort of handle on the polygon should do the trick by moving it around.

Inkscape has a "Stars and Polygons" button that—once clicked—displays this interface.

Not exactly what was asked for, but very close to it: https://twitter.com/excalidraw/status/1324858643074965505

https://excalidraw.github.io/excalidraw-libs/ :D

We already support multi point lines to be connected and any shape is possible. But adding native support for multiple polygons is out of scope, as it will affect how the binding works, adding new controls, supporting more shapes, etc. We still love hexagons as much as you do :D

@lipis
So triangles with round corners are out of scope 🥲


May I stop the arrangements after I uninstall it ?

I just want to stop it for a while without seeing new #memos poping up everyday , what can i do ? Thanks

Oh interesting 🤔
What is it exactly that you want to hide? The references bellow?

Or do you want to hide the sidebar widget?

Let's see if we can help 🙏

I just uninstalled the plugin, how can i remove the below stuff ?

Oh that's actually pretty straight forward.. just go to the roam/memo page and delete it from the dropdown menu in the top right:

Warning: This will delete all your scheduled training data!
I can't think of any other way to do it.
Hope this helps 🙏


webpack-dev-server proxy dosen't work

I want to proxy /v1/** to http://myserver.com,  and here is my devServer configration,
 devServer: {
        historyApiFallBack: true,
        // progress: true,
        hot: true,
        inline: true,
        // https: true,
        // port: 8081,
        contentBase: path.resolve(__dirname,'public'),
        proxy: {
            '/v1/**': {
                target: 'http://api.in.uprintf.com/',
                secure: false
                // changeOrigin: true
            }
        }
    },

but it results in 404 not found error, and here is the response,
Request URL:http://localhost:8080/v1/address/school?keyword=scut&_=1460968888999
Request Method:GET
Status Code:404 Not Found
Remote Address:<IP_ADDRESS>:8080
Response Headers
view source
connection:close
content-encoding:gzip
content-type:text/html
date:Mon, 18 Apr 2016 08:41:34 GMT
server:nginx/1.4.6 (Ubuntu)
transfer-encoding:chunked
X-Powered-By:Express

It seems to proxy to my ubuntu nginx server, since i use mac os locally， but i don't use express in my remote server.

Could you move this to the webpack-dev-server issue tracker? Stack Overflow might be helpful too. I fear your issue will just get buried here.
Btw, it's probably worth your while to study what webpack-dev-server does with the proxy setting. That might give a better idea of what's going on. It's just a little express server.


SyntaxError: The requested module '/node_modules/.vite/deps/lucide-react.js?v=1758517b' does not provide an export named 'ChartBar'

Describe the bug
SyntaxError: The requested module '/node_modules/.vite/deps/lucide-react.js?v=1758517b' does not provide an export named 'ChartBar'
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-xwuhwq
Steps to reproduce
SyntaxError: The requested module '/node_modules/.vite/deps/lucide-react.js?v=1758517b' does not provide an export named 'ChartBar'
Expected behavior
SyntaxError: The requested module '/node_modules/.vite/deps/lucide-react.js?v=1758517b' does not provide an export named 'ChartBar'
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 84618523,
  "usedJSHeapSize": 67504431,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = hawkk47
Chat ID = ec4c3cdc822d

Additional context
No response

Hi! 👋 Thanks a lot for the report!
Did you manage to fix it? It seems to work here:

hi its fix

Hey , I'm facing the same problem
Can you fix?
https://bolt.new/~/sb1-gv29fp

I have the same problem
SyntaxError: The requested module '/node_modules/lucide-react/dist/esm/lucide-react.js?v=9f8eaecd' does not provide an export named 'Tool'

have same problem

When you get that problem, for example:
SyntaxError: The requested module '/node_modules/lucide-react/dist/esm/lucide-react.js?v=9f8eaecd' does not provide an export named 'Tool'
Google for "lucide-react icons", and search for an icon named "Tool".
As you can see here:
https://lucide.dev/icons/
There's not an icon named "Tool". So search for the Icon you'll need there. Once you found the icon you need, download the project, head to the console (when the project is runned locally), and it will show you what you'll need to replace to work.

Thanks for your support and now get  SyntaxError: The requested module
'/src/context/AuthContext.tsx?t=1734008033300' does not provide an export
named 'useAuth'  This Error could you please help
Regards
Jeylan
Am Do., 12. Dez. 2024 um 10:01 Uhr schrieb linacharms <
@.***>:

When you get that problem, for example:
SyntaxError: The requested module
'/node_modules/lucide-react/dist/esm/lucide-react.js?v=9f8eaecd' does not
provide an export named 'Tool'
Google for "lucide-react icons", and search for an icon named "Tool".
As you can see here:
https://lucide.dev/icons/
There's not an icon named "Tool". So search for the Icon you'll need
there. Once you found the icon you need, download the project, head to the
console (when the project is runned locally), and it will show you what
you'll need to replace to work.
—
Reply to this email directly, view it on GitHub
https://github.com/stackblitz/bolt.new/issues/123#issuecomment-2538261482,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACCKO427FYIQIL3NEKI7RRD2FFGFBAVCNFSM6AAAAABPOXH7UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZYGI3DCNBYGI
.
You are receiving this because you commented.Message ID: <stackblitz/bolt.
@.***>


Show entire column for large values

description
I couldn't figure out a way to view the entire contents of a jsonb column, for instance. Also, the "yank" command doesn't seem to end up in the clipboard, at least not on wayland...?
Also, rainfrog can be crashed when selecting+copying a row from the results tab, and pasting it to the query editor :D Should probably make a separate bug report about this...
proposed solution
Add (if possible) some kind of popup window to show the JSON column in a (preferably) pretty-printed fashion. Like yazi previews .json files!

Here's the crash report too
name = "rainfrog"
operating_system = "Arch Linux [64-bit]"
crate_version = "0.2.0"
explanation = """
Panic occurred in file '/home/xxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rainfrog-0.2.0/src/vim.rs' at line 143
"""
cause = 'called Result::unwrap() on an Err value: ContentNotAvailable - "The clipboard contents were not available in the requested format or the clipboard is empty."'
method = "Panic"
backtrace = """
0: 0x635d7b3c6612 - rainfrog::components::editor::Editor::transition_vim_state::hfb1ddfb0655dab08
1: 0x635d7b3c0e9e - <rainfrog::components::editor::Editor as rainfrog::components::Component>::handle_events::he3876535b1309209
2: 0x635d7b3395de - rainfrog::app::App::run::{{closure}}::h112e6ba8c31d506f.11711
3: 0x635d7b098065 - tokio::runtime::runtime::Runtime::block_on::h92999d82ba045dca
4: 0x635d7b32d98f - rainfrog::main::h89766e41206ce460
5: 0x635d7b2c5e03 - std::sys_common::backtrace::__rust_begin_short_backtrace::h291780592d0792c4
6: 0x635d7b32d5af - main
7: 0x7e5db78ade08 -
8: 0x7e5db78adecc - __libc_start_main
9: 0x635d7b078f25 - _start
10:        0x0 - """

thanks for the report; i'm tracking the wayland clipbaord issues here if you're interested: https://github.com/achristmascarl/rainfrog/issues/79
i like the idea of a preview popup for larger json/other values 👍


The loss of deep convolutional SNN cannot be reduced

snntorch version:0.4.10
Python version:3.7
Operating System:win11

Description
I designed a SNN with four convolutional layers, but the loss per epoch (average of 128 minibatch losses) is always 1.386, and the four-class classification accuracy is always 25%. I found that the output layer neurons did not fire any spikes at all time steps, so I Increase the decay rate beta and lower the threshold. Although this makes the loss curve a little choppy, the accuracy is still 25%.
What I Did
#CSNN model
import torch.nn as nn
import snntorch as snn
from snntorch import surrogate
import torch.nn.functional as F
spike_grad = surrogate.fast_sigmoid(slope=25)
beta = 0.95
batch_size=128
class Net(nn.Module):
    def __init__(self):
        super().__init__()
        # Initialize layers
        self.conv1 = nn.Conv2d(1, 12, 5)
        self.lif1 = snn.Leaky(beta=beta, spike_grad=spike_grad,threshold=0.3)
        self.conv2 = nn.Conv2d(12, 12, 5)
        self.lif2 = snn.Leaky(beta=beta, spike_grad=spike_grad,threshold=0.3)
        self.conv3 = nn.Conv2d(12, 64, 3)
        self.lif3 = snn.Leaky(beta=beta, spike_grad=spike_grad,threshold=0)
        self.conv4 = nn.Conv2d(64, 64, 3)
        self.lif4 = snn.Leaky(beta=beta, spike_grad=spike_grad,threshold=0)
        self.fc1 = nn.Linear(1024, 4)
        self.lif5 = snn.Leaky(beta=beta, spike_grad=spike_grad,threshold=0)

    def forward(self, x):

        # Initialize hidden states and outputs at t=0
        mem1 = self.lif1.init_leaky()
        mem2 = self.lif2.init_leaky()
        mem3 = self.lif3.init_leaky()
        mem4 = self.lif4.init_leaky()
        mem5 = self.lif5.init_leaky()
        cur1 = self.conv1(x)
        spk1, mem1 = self.lif1(cur1, mem1)
        cur2 = F.max_pool2d(self.conv2(spk1), 2)
        spk2, mem2 = self.lif2(cur2, mem2)
        cur3 = self.conv3(spk2)
        spk3, mem3 = self.lif3(cur3, mem3)
        cur4 = F.max_pool2d(self.conv4(spk3), 2)
        spk4, mem4 = self.lif4(cur4, mem4)
        cur5 = self.fc1(spk4.view(batch_size, -1))
        spk5, mem5 = self.lif5(cur5, mem5)

        return spk5, mem5

#main
def forward_pass(net, num_steps, data):
  mem_rec = []
  spk_rec = []
  sutils.reset(net)  # resets hidden states for all LIF neurons in net

  for step in range(num_steps):
      spk_out, mem_out = net(data)
      spk_rec.append(spk_out)
      mem_rec.append(mem_out)

  return torch.stack(spk_rec), torch.stack(mem_rec)

def train(epoch,device):
    print('\nEpoch: %d' % epoch)
    net.train()
    train_loss = 0
    correct = 0
    total = 0

    loss = 0

    # confusion = np.zeros((4, 4))

    for batch_idx, (inputs, targets) in enumerate(train_loader):  # trainloader
        # target = targets
        inputs, targets = inputs.to(device), targets.to(device)

        targets = targets.long()
        spk_rec, _ = forward_pass(net, num_steps, inputs)
        _, predicted = spk_rec.sum(dim=0).max(1)
        loss_val = loss_fn(spk_rec, targets)
        optimizer.zero_grad()
        loss_val.backward()
        optimizer.step()

        train_loss += loss_val.item()
        correct += (predicted == targets).sum().item()
        total += targets.size(0)

        progress_bar(batch_idx, len(train_loader), 'Loss: %.3f | Acc: %.3f%% (%d/%d)'
                     % (train_loss/(batch_idx+1), 100.*correct/total, correct, total))
        loss = train_loss/(batch_idx+1)

        if batch_idx + 1 == len(trainloader):
            pass
      #      save_results(epoch, history)
    result_train = 100.*correct/total

    return result_train, loss

def test(epoch,device):
    global best_acc
    net.eval()
    test_loss = 0
    correct = 0
    total = 0

    with torch.no_grad():
        for batch_idx, (inputs, targets) in enumerate(test_loader):

            # target = targets

            inputs, targets = inputs.to(device), targets.to(device)

            targets = targets.long()

            spk_rec, _ = forward_pass(net, num_steps, inputs)
            _, predicted = spk_rec.sum(dim=0).max(1)
            loss_val = loss_fn(spk_rec, targets)
            test_loss += loss_val.item()
            total += targets.size(0)
            correct += (predicted == targets).sum().item()

            progress_bar(batch_idx, len(test_loader), 'Loss: %.3f | Acc: %.3f%% (%d/%d)'
                         % (test_loss/(batch_idx+1), 100.*correct/total, correct, total))

            loss = test_loss / (batch_idx + 1)

            if batch_idx == 0:
                total_target = targets
                total_predicted = predicted
            else:
                total_target = torch.cat((total_target, targets), dim=0)
                total_predicted = torch.cat((total_predicted, predicted), dim=0)

    # Save checkpoint.
    confusion = confusion_matrix(total_target.data.cpu().numpy(), total_predicted.data.cpu().numpy())

    acc = 100.*correct/total
    if acc > best_acc:
        print('Saving..')
        state = {
            'net': net.state_dict(),
            'acc': acc,
            'epoch': epoch,
        }
        if not os.path.isdir('checkpoint'):
            os.mkdir('checkpoint')
        torch.save(state, './checkpoint/ckpt.pth')
        best_acc = acc

    # print("test_loss = ", loss)
    return acc, confusion, loss

if __name__ == '__main__':
    dtype=torch.float
    loss_fn = SF.ce_rate_loss()
    spike_grad = surrogate.fast_sigmoid(slope=25)
    beta = 0.95
    num_steps = 50
    lr = 0.01
    epoch_num = 50
    bat_size_train = 128
    bat_size_test = 128
    transform_train = transforms.Compose([
        transforms.Grayscale(num_output_channels=1),
        transforms.Resize([32,32]),
        transforms.ToTensor(),
        transforms.Normalize((0,), (1,)),
        # transforms.RandomHorizontalFlip(),
     ])
    transform_test = transforms.Compose([
        transforms.Grayscale(num_output_channels=1),
        transforms.Resize([32, 32]),
        transforms.ToTensor(),
        transforms.Normalize((0,), (1,)),
        # transforms.RandomHorizontalFlip(),
     ])
    net = Net()
    net = net.to(device)

    optimizer = optim.Adam(net.parameters(), lr=lr,betas=(0.9,0.999))
    #scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=200)

    for epoch in range(start_epoch, start_epoch+epoch_num):

        train_result, train_loss = train(epoch, device=device)

        test_result, test_confusion, test_loss = test(epoch, device=device)

        train_loss_list.append(train_loss)
        test_loss_list.append(test_loss)

        train_acc_list.append(train_result)
        test_acc_list.append(test_result)

The above is the accuracy curve, the orange dotted line represents the test set, and the blue solid line represents the training set.

Above is the loss curve.

The above is a data sample. After I convert it into a grayscale image, the background is white pixels and the trails is black pixels. Wouldn't it be better if the background were black pixels and the trails were white pixels?

Converting into a discussion.
Some suggestions:

setting threshold=0 seems like a bad idea. Low enough to trigger spikes, but above 0 should be the sweet spot.
Don't set spike_grad, the default surrogate gradient is usually the best option
consider skip connections


server: adjust log search end time to i64::MAX if end_time unset

Signed-off-by: Lonng<EMAIL_ADDRESS>
What have you changed?
This PR adjusts the end_time field of SearchLogRequest if it is zero.
Don't assume reviewers understand the original issue.
What is the type of the changes?

Improvement (a change which is an improvement to an existing feature)

How is the PR tested?

Unit test

/merge


Upgrade dependencies

Updated the dependencies

The project was completely rewritten so this PR isn't relevant anymore.


[WASM][iOS][NavigationView] Back button not visible

Current behavior

Expected behavior

How to reproduce it (as minimally and precisely as possible)

Launch app
Open NavigationView
Notice that back button is not visible (user can still click button and hover over state is still present)

Environment

Nuget Package:
Package Version(s):
Affected platform(s):

[x] iOS
[ ] Android
[x] WebAssembly
[ ] UWP
[ ] MacOS

Anything else we need to know?

Was fixed by https://github.com/unoplatform/uno/pull/3775


Fix extraneous invocation of loop iteration function

Fixes #7412
Signed-off-by: Dirk Lattermann<EMAIL_ADDRESS>

Thanks!


gx view

Much like npm view, so tooling can get fields out of package.json trivially:
$ gx view Qmfoobarfoobarfoobarfoobar name`
replication-stream

$ gx view Qmfoobarfoobarfoobarfoobar version`
4.3.0

$ gx view Qmfoobarfoobarfoobarfoobar semver-name`
<EMAIL_ADDRESS>

:+1:

this is implemented


gonic: 0.11.0 -> 0.12.0

Motivation for this change
0.12.0 released
Also removed the ffmpeg patch as now it just looks on the path for ffmpeg
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Can we use buildGoModule for this?

Can we use buildGoModule for this?

Yeah I'm happy to change it to use it. I actually had a version with it too, I wasn't sure if i should make the change though based on this thread https://github.com/NixOS/nixpkgs/issues/84826 so left it as is.

I'm happy to make the change to use buildGoModule and I had a version that did use it but i wasnt sure what the preference was after reading #84826 so I left it as is.

For now we just use buildGoModule because it is easier to use.


Repeated sslhandshake in [tcp-log] plugin

Is there an existing issue for this?

[X] I have searched the existing issues

Kong version ($ kong version)
master
Current Behavior
https://github.com/Kong/kong/blob/master/kong/plugins/tcp-log/handler.lua#L35

I am developing a plugin similar to lua-resty-kafka.
When I am studying the code of lua-resty-kafka, I found out that it has some strategy to avoid repeating sslhandshake.
https://github.com/doujiang24/lua-resty-kafka/blob/3fbed91d81d4fb32d4dda4316f5f2cba04622633/lib/resty/kafka/broker.lua#L144

I also referred to the code of Kong  tcp-log plugin and the openresty API manual, then found this Issue.
It seems used incorrectly in tcp-log plugin.

session, err = tcpsock:sslhandshake(reused_session?, server_name?, ssl_verify?)

Expected Behavior
https://github.com/Kong/kong/blob/a7bf026a5cf91e376f8cb820e6d8923365f2d581/kong/plugins/tcp-log/handler.lua#L35
In my opinion, the code should be changed to this:
local function log(premature, conf, message)
    if premature then
        return
    end

    local host = conf.host
    local port = conf.port
    local timeout = conf.timeout
    local keepalive = conf.keepalive

    local sock = ngx.socket.tcp()
    sock:settimeout(timeout)

    local ok, err = sock:connect(host, port)
    if not ok then
        kong.log.err("failed to connect to ", host, ":", tostring(port), ": ", err)
        sock:close()
        return
    end
    local times, err = sock:getreusedtimes()
    if not times then
        return nil, "failed to get reused time: " .. tostring(err), true
    end

    if conf.tls and times == 0 then
        ok, err = sock:sslhandshake(true, conf.tls_sni, false)
        if not ok then
            kong.log.err("failed to perform TLS handshake to ", host, ":", port, ": ", err)
            sock:close()
            return
        end
    end

    ok, err = sock:send(cjson.encode(message) .. "\n")
    if not ok then
        kong.log.err("failed to send data to ", host, ":", tostring(port), ": ", err)
    end

    ok, err = sock:setkeepalive(keepalive)
    if not ok then
        kong.log.err("failed to keepalive to ", host, ":", tostring(port), ": ", err)
        sock:close()
        return
    end
end

Or like this
local ssl_sessions = {}
local function log(premature, conf, message)
    if premature then
        return
    end

    local host = conf.host
    local port = conf.port
    local timeout = conf.timeout
    local keepalive = conf.keepalive

    local sock = ngx.socket.tcp()
    sock:settimeout(timeout)

    local ok, err = sock:connect(host, port)
    if not ok then
        kong.log.err("failed to connect to ", host, ":", tostring(port), ": ", err)
        sock:close()
        return
    end

    if conf.tls then
        local session, err = sock:sslhandshake(ssl_sessions[conf.tls_sni], conf.tls_sni, false)
        if not session then
            kong.log.err("failed to perform TLS handshake to ", host, ":", port, ": ", err)
            sock:close()
            return
        else
            ssl_sessions[conf.tls_sni] = session
        end
    end

    ok, err = sock:send(cjson.encode(message) .. "\n")
    if not ok then
        kong.log.err("failed to send data to ", host, ":", tostring(port), ": ", err)
    end

    ok, err = sock:setkeepalive(keepalive)
    if not ok then
        kong.log.err("failed to keepalive to ", host, ":", tostring(port), ": ", err)
        sock:close()
        return
    end
end

Steps To Reproduce
Do you think it makes sense
Anything else?
No response

In Kong, an open-source API gateway, the "Repeated SSL handshake" message can occur when using the tcp-log plugin. The tcp-log plugin allows you to log the raw TCP stream of a request or response. Here's an example of how you can configure the tcp-log plugin in Kong:

Create a TCP log template file (e.g., tcp-log.template):

$ cat tcp-log.template
$request
----------------------------------------
$response

Configure the tcp-log plugin for a service or route in Kong:

$ curl -X POST http://localhost:8001/services/{service_id}/plugins \
  --data "name=tcp-log" \
  --data "config.host=your_log_host" \
  --data "config.port=your_log_port" \
  --data<EMAIL_ADDRESS>
Make sure to replace {service_id}, your_log_host, and your_log_port with the appropriate values for your setup.

Start sending requests to the service or route associated with the tcp-log plugin. The requests and responses will be logged to the specified host and port.

If you encounter a "Repeated SSL handshake" message in the Kong logs, it may indicate a problem with the SSL/TLS configuration between Kong and the logging endpoint. Here are a few potential causes and troubleshooting steps:

Ensure that the logging endpoint supports SSL/TLS connections and is configured correctly to handle incoming SSL/TLS traffic.

Verify that the SSL/TLS certificate used by the logging endpoint is valid and trusted by Kong. Make sure to import the appropriate CA certificates if necessary.

Check the Kong configuration for any SSL-related settings, such as proxy_ssl_certificate, proxy_ssl_certificate_key, proxy_ssl_trusted_certificate, etc., and ensure they are correctly configured for SSL/TLS communication.

Review the Kong error logs for any additional error messages or stack traces that can help diagnose the issue further.

By addressing these potential causes and troubleshooting steps, you can resolve the "Repeated SSL handshake" issue in the Kong tcp-log plugin configuration.

@Prakhar0123  This may be due to incorrect 'sock:sslhandshake' usage

Thanks for reporting this. Could you write a PR to fix this as it seems you have understood the issue well?
https://github.com/Kong/kong/blob/master/CONTRIBUTING.md

Sure.I have submit the PR.


Add web manifest

http://html5doctor.com/web-manifest-specification/
https://developer.mozilla.org/en-US/Apps/Build/Manifest

este/website

not yet


Installation fails on go1.9.2

postgres@server:~$ go version
go version go1.9.2 linux/amd64
postgres@server:~$ go get github.com/timescale/timescaledb-parallel-copy
runtime/internal/sys
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:8:24: ArchFamily redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:8:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:8:24: undefined: WASM
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:9:24: BigEndian redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:9:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:10:24: CacheLineSize redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:10:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:11:24: DefaultPhysPageSize redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:11:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:12:24: PCQuantum redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:12:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:13:24: Int64Align redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:13:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:14:24: HugePageSize redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:14:29
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:15:24: MinFrameSize redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:15:24
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:18:6: Uintreg redeclared in this block
previous declaration at /usr/local/go/src/runtime/internal/sys/arch_amd64.go:18:6
/usr/local/go/src/runtime/internal/sys/arch_wasm.go:8:24: too many errors

Hmm, unable to reproduce on an instance of Ubuntu 16.04. Have you tried upgrading to the latest 1.9 version, or alternatively updating to go 1.11? Never seen an error like that and it doesn't seem to be anything related to our code...

Okey, to clarify i did test on debian 9 amd64. the errors I posted above occured with go1.9.2 linux/amd64.
I then went on to test version 1.7 which was in the debian repos, which resulted in a slightly different error:
postgres@server:~$ go version
go version go1.7.4 linux/amd64
postgres@server:~$ go get github.com/timescale/timescaledb-parallel-copy
# github.com/jmoiron/sqlx
go/src/github.com/jmoiron/sqlx/sqlx.go:232: undefined: sql.ColumnType
go/src/github.com/jmoiron/sqlx/sqlx.go:234: undefined: sql.ColumnType
go/src/github.com/jmoiron/sqlx/sqlx.go:236: r.rows.ColumnTypes undefined (type *sql.Rows has no field or method ColumnTypes)
# github.com/lib/pq
go/src/github.com/lib/pq/notify.go:790: undefined: time.Until

good suggestions trying version 1.11 this one actually worked for me, thanks

Hmm, I wonder if you fetched an old version of the dependencies or something? I'm glad it works for you though now.


Added Robert Yuen to Contributors list.

I appended my name to the Contributors.md

@rhyuen, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added Facebook share and tweet feature to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


Feature Request: Add tag system

@nvnieuwk:

Could it also be possible to add a tag system (similar to pytest --tag). This would make it easier to run the needed tests on Github Actions instead of having to supply the whole file path.

See #29

This features was released in v0.7.3 🚀

Awesome! Thank you! 🥳