can't use github.com/elastic/go-elasticsearch/v7/_examples/fasthttp

go mod : require github.com/elastic/go-elasticsearch/v7 v7.6.0
import "github.com/elastic/go-elasticsearch/v7/_examples/fasthttp"
when i do this, i can't use the fasthttp package of _examples?

@c5433137 This is intended behavior, the examples in the repository might change in the future and you wouldn't want to rely on this code.
A better way would be to copy the example into your own codebase and probably adapt it to your use case.


Line Breaks - Copying & Pasting Line breaks does not work

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

Action Performed:
Pre- Condition: User has copied a line break previously

Access staging.new.expensify.com
Sign into any valid account
Click on any chat
Attempt to paste the line break in the chat box

Expected Result:
The user expects the line break to show correctly like:
"I'm a text with
line
breaks"
Actual Result:
The line break does not work and text displays as:
"I'm a text withlinebreaks"
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number:  v1.1.79-17
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/177868729-8cbb9308-91d5-4e5c-9270-55ef314984f5.mp4
Expensify/Expensify Issue URL:
Issue reported by:
Applause internal team
Slack conversation:
View all open jobs on GitHub

Duplicate https://github.com/Expensify/App/issues/9608


Message scheduling and sessions

Could you please describe how message scheduling feature affects processing of messages with sessions? Is the session "empty" until the first message in queue is ready to be picked up (effectively holding on processing of the session messages) or processing goes on and scheduled message pops into the session once it time comes?

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

ID: 0803fba3-53aa-0d6b-e692-81777f3f7641
Version Independent ID: fdc839f6-4986-89f2-5334-879559df8511
Content: Azure Service Bus message sessions - Azure Service Bus
Content Source: articles/service-bus-messaging/message-sessions.md
Service: service-bus-messaging
GitHub Login: @spelluru
Microsoft Alias: spelluru

@miqm
Thanks for your feedback! We will investigate and update as appropriate.

@miqm I believe the Sequencing vs. sessions & Message expiration sections implicitly touch on the distinction. Scheduling is a feature that pertains to message sequencing whereas the sessioning pertains to message processing. When both features are enabled and used together, I believe the following should be in consideration:

Scheduled messages don't materialize in the queue until the defined enqueue time. Therefore, for scheduled messages, you specify the enqueue time at which you want the message to materialize in the queue for retrieval. The time at which the message is sent to Service Bus is different from the time at which the message is enqueued. The message expiration time depends on the enqueued time, not on the time at which the message is sent to Service Bus. Therefore, the expires-at-utc is still enqueued time + time-to-live.
For session-enabled queues or topics' subscriptions, messages are locked at the session level. If the time-to-live (TTL) for any of the messages expires, all messages related to that session are either dropped or dead-lettered based on the dead-lettering enabled on messaging expiration setting on the entity.

As such, as long as the messages aren't fallen into the scenario described above based on how you fine-tune the values for enqueue time and TTL, you should be able to achieve in-order processing with sessions. For any follow-up questions, please consider opening a new post on the MS Q&A channel instead.
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Create LICENSE

Again, would be GPL a good choice for code that is supposed to be copy-pasted into other people new projects?

let's merge it. We could change it later if we want


Show role in institution-link-success screen

This issue is imported from pivotal
Also show the received role when returning from the link-institution, if the role is employee or student.

(Peter Havekes - Sep 9, 2024)

Please wait for the design of @edwinvandebospoort  (inesduits - Sep 10, 2024)

Dit is hoe het er in de app uitziet, iets vergelijkbaar voor de web flow is prima! (inesduits - Sep 10, 2024)

This is the design as following the mob design (inesduits - Sep 11, 2024)


Service does not distinguish master and slave nodes

Do you think we should create two services? One of them would point to the master node, and the other would point to the slave nodes. @jiayouxujin @git-hulk @tianshimoyi

@ColinChamber The connection uses the service ip of sentinel, so it is not necessary to create ip for both master and slaver


fix: set CharsetReader and Entity when reading pom.xml

https://github.com/google/osv-scanner/issues/1321
If non UTF-8 encoding is declared in pom.xml, we need to set CharsetReader to avoid the error.

Codecov Report
Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.28%. Comparing base (2e22ddd) to head (a5c77c2).
Report is 2 commits behind head on main.

Files with missing lines
Patch %
Lines

internal/resolution/manifest/maven.go
50.00%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1325      +/-   ##
==========================================
+ Coverage   68.48%   69.28%   +0.79%
==========================================
  Files         177      177
  Lines       17155    13389    -3766
==========================================
- Hits        11749     9276    -2473
+ Misses       4767     3471    -1296
- Partials      639      642       +3

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


WIP: use TRAVIS_SECURE_ENV_VARS instead to judge condition to run Sonar

This PR is made from the branch in the different repo. It should not run the SonarQube analysis.

confirmed that fork works as expected. I will merge #140 when oraclejdk related build becomes stable in Travis CI.


Restore video recording on Windows with DISABLE_VIDEO parameter

Description
Restore video recording on Windows with DISABLE_VIDEO parameter
Issues Resolved
Closes https://github.com/opensearch-project/opensearch-build/issues/4427
Check List

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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Since these 2PRs Windows now fully support ffmpeg, thus we can re-enable this feature and introduce a param for user to disable it if needed.

https://github.com/opensearch-project/opensearch-build/pull/4458
https://github.com/opensearch-project/opensearch-build/pull/4525

Thanks.


Is it possible to get per test coverage?

I have a test.js written in jasmine. I want to get code coverage per test in a single run of "istanbul cover test.js"
Is this possible to get in the current scenario? If not, is it possible to add such a feature in istanbul with minor changes to the code in istanbul?

I have a similar question.

I have the same question, but for Mocha.


It does not work with *.css.

Describe the bug
I may be setting it up wrong, but it didn't work with the CSS file.
To Reproduce
Steps to reproduce the behavior:

I have set the following in tailwind.config.js

/** @type {import('tailwindcss').Config} */

module.exports = {
  content: ['app/views/**/*.html.erb', 'app/frontend/**/*.css'],
  plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};

And in .vscode/setting.json

  "tailwind-raw-reorder.classRegex": {
    "css": "\\B@apply\\s+([\\._a-zA-Z0-9\\s\\-\\:\\/]+);"
  }

Save app/frontend/entrypoints/base.css

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

@layer components {
  .foobar {
    @apply right-0 absolute;
  }
}

But absolute did not move front.

The following *.html.erb file works fine and moves the absolute to the front.

<%= yield %>

Desktop (please complete the following information):
macOS 13.4 (22F66)
vscode
Version: 1.84.2 (Universal)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:33.687Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.5.0

Tailwind Raw Reorder v3.0.3

I am checking into this. I can't seem to replicate at this moment, going to borrow a mac and see if I am able to replicate the issue.

@gomo could you update to the latest version and try again?
If it does not happen automatically, could you trigger the Tailwind Raw Reorder: Sort Tailwind CSS Classes command from the command window when you have the css file open? That should let us know if the sorter is breaking on the css file itself or if it is running successfully but not recognizing the apply rule for some reason.
I have not had any luck replicating this issue as of yet

@Trapfether
Thanks for trying to reproduce my problem.
I tried again and the reordering still did not happen with the CSS file.
One thing I noticed is that when I open vscode settings from the menu and click Edit in settings.json under Css Regex section, the default settings are copied to .vscode/settings.json. When I save it, I get an error Tailwind Raw Reorder: Tailwind config not found. Even though the tailwind.config.js is in the root of the workspace and everything else is working fine.
If you cannot reproduce this, it may be a conflict with some other extension.
I am now sorting the CSS file classes by prettier-plugin-tailwindcss.
If I notice anything else, I will comment again, but I may not be able to reply much as I have been busy with work lately. It doesn't seem to be happening to anyone else, and if you can't reproduce it, you can close this ISSUE.


Only add new ut_pex peers when we're not seeding

Otherwise, we get into a loop of connect, get pex messages, disconnect
because they don't have pieces we need (because we're seeding), try
connecting to the pex peers, etc. etc.

cc @dcposch @mafintosh This seems to help the situation quite a bit!


[Synapse] Add release tag

Data Plane API - Pull Request

API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.

Link to engagement record issue:

Is this review for (select one):

[ ] a private preview
[ ] a public preview
[ ] GA release

Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified. Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.

Design Document:
Previous Open API Doc:
Updated paths:

❔Got questions? Need additional info?? We are here to help!

 Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

💬 Teams Channel
💌 email

Click here for links to tools, specs, guidelines & other good stuff
Tooling

Open API validation tools were run on this PR. Go here to see how to fix errors
Spectral Linting
Open API Hub

Guidelines & Specifications

Azure REST API Guidelines
OpenAPI Style Guidelines
Azure Breaking Change Policy

Helpful Links

Azure DevTools Wiki

Please review LintDiff CI errors.

@jianyexi If you have advice for service.
It seems hard to unify the definition of Endpoint without causing breaking.

I suggest go through the breaking change review

@pshao25 @msyyc @qiliao123 on whether your SDK require format: uri on Endpoint.
Java does not require (and should work with/without it), as we had String in core. https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core/src/main/java/com/azure/core/client/traits/EndpointTrait.java

python treat uri as string so it shall not break.

.NET override Endpoint to format=url https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md#make-endpoint-type-as-uri
Other SDK is not affected.

You might want to check if you need to suppress ModelValidation. Adding header (according to the rule) will be considered as breaking changes, that cannot happen without api-version upgrade.

You might want to check if you need to suppress "ModelValidation" on LRO headers. Adding header (according to the rule) will be considered as breaking changes, that cannot happen without api-version upgrade.

I think we can fix the ModelValidation in another PR? because it's not caused by my changes.

I think we can fix the ModelValidation in another PR? because it's not caused by my changes.

Sure. But at least I don't have permission to merge PR with failed required CI.

Approved because: In order to fix the LintDiff “AutoRest exception”: “Duplicated global non-identical parameter definitions”, I added “format”: “uri” to some parameter Endpoint. I have checked with all the SDK owners. It will not break SDK.


How does this tool relate to the jfrog CLI ?

The title says it all: I have been using the jfrog tool to interact with an artifactory instance, including deploying artifacts from build pipelines and thus generating build-related metadata.
Does this tool here supersede some of the functionality offered by jfrog ? Or is this merely offering an alternative interface ?

Hi @stefanseefeld, thank you for your question. build-info-go is a Go library and CLI for building buld-info. JFrog CLI uses it to build projects and their build-info. We created this library to let developers create build-info in their code easily, even if they don't use Artifactory.


[fix] parsing: nested parsing select

Motivation for changes:
When parsing plugin is used nested (from_task for example), or for example in a global template, the selection is cleared in on_task_exit, returning to the internal by default
Detailed changes:

added a nested control to the selection, so that it's only removes the running task config.

Config usage if relevant (new plugin or updated schema):
templates:
  global:
    parsing:
      movie: guessit
      series: guessit

tasks:
  task_input:
    disable:
      - remember_rejected
      - seen
      - retry_failed
      - seen_info_hash

    accept_all: yes

  get_guess_it:
    disable:
      - remember_rejected
      - seen
      - retry_failed
      - seen_info_hash

    mock:
      - { "title": "My.Series.S01E01.iNTERNAL.720p.x265-ZMNT" }

    configure_series:
      from:
        mock:
          - { "title": "My Series (2021)" }
      settings:
        parse_only: yes

LGTM, thanks!


enc: zero derived encryption key??

At this place; https://github.com/komuw/ong/blob/2c4db0654a96d2d78c1519f25c5f7c2af89329b5/enc/enc.go#L91
we should zero(from memory) the derivedKey
func zero(key []byte) {
	if key == nil {
		return
	}

	for i := 0; i < len(key)+1; i++ {
		key[i] ^= key[i]
	}
}

check what cryptographers recommend.

see: https://github.com/golang/go/issues/21865

also: https://github.com/awnumar/memguard

see this implementation; https://github.com/rfjakob/gocryptfs/blob/5ad9bda206e476fea866907e2f0545257f74e1f0/internal/cryptocore/cryptocore.go#L152-L173 and its use; https://github.com/rfjakob/gocryptfs/blob/5ad9bda206e476fea866907e2f0545257f74e1f0/mount.go#L131
and also its related issue: https://github.com/rfjakob/gocryptfs/issues/211

you can zero on GC right now with a finalizer:
type Secret struct {
    key [16]byte
}

s := &Secret{key: ...}
runtime.SetFinalizer(s, func(s *Secret) { s.key = [16]byte{} })

runtime.GC()

from https://github.com/golang/go/issues/21865#issuecomment-494054993

Maybe we should not even do this at all. It sounds like security theatre without the security.
See:

https://github.com/golang/go/issues/21865#issuecomment-494110001
https://twitter.com/FiloSottile/status/1122598383607341057
add basically the whole thread in https://github.com/golang/go/issues/21865

https://github.com/komuw/ong/pull/127 was too much work and we don't know if it is even working.
We'll instead wait for https://github.com/golang/go/issues/21865
This ticket now tracks that one.


[Snyk] Security upgrade jest-watch-typeahead from 0.4.2 to 0.6.0

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

696/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
Regular Expression Denial of Service (ReDoS) SNYK-JS-ANSIREGEX-1583908
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: jest-watch-typeahead
    The new version differs by 6 commits.

35f8d38 0.6.0
e256697 chore(breakng): upgrade Jest to v26 (#35)
cc1fd7c v0.5.0
aee1f93 chore: update dependencies
efd5a49 chore: fix link to jest logo in readme
7344853 chore: refresh lockfile

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Will update dependencies manually


Implementation of Time Zones

Hello,
I hope that this will meet with your approval!
Changes:
Added TUICalendarTimeZoneOption and TUITimeZone classes for serialization for time zones
Changed TUICalendarOptions property timezone to new time zone options class
Added TimeZones property to TUICalendarOptions for storing a list of TimeZoneInfo which will automatically populate the TUI time zones

@bbaileyHOM this is great. Thanks for putting this together!
I have some thoughts and maybe think we should just juggle some code around.
What do you think about moving all the functionality and logic for timezone out of CalendarOptions  and into of TUITimeZone class andor TUICalendarTimeZoneOption? This way there is only one "timezone" property to fill in the Options class. I think this is better for the user.
Seems like the TUICalendarTimeZoneOption class has some helpers/builders. My first thought was make 'ToTuiTimeZone'  a static method in TUITimeZone and rename.. For example:
public static TUITimeZone.FromTimeZoneInfo(TimeZoneInfo timeZone, func<...., func<...... )
I see how the helper funcs are useful, but do they need to be exposed as public properties? Would you mind sharing your usage example of the funcs in the sample project?
Lastly, timezone property needs this attribute:
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
Just some thoughts :) What do you think?

I removed the additional code from the main options class and put it most in the converter so it is tucked a bit more out of the way and I reduced the properties to just the one. I had those in there as simpler way for the serialization.
I also made the classes that serialize for the TUI Calendar private so that they aren't visible and are only for serialization.
The expression functions previously didn't need to be public, but now due as they are accessed by the JSON converter. I also put an example with the example project.
I added the conditional ignore attribute.
I'm not sure if I'm terribly happy with the JSON Converter as it seems unnecessarily complex. I had hoped to simply read in all the JSON and to just deserialize it as the private class, but I couldn't find a way to do that. I'm not sure there is really a case for deserializing anyway.

@bbaileyHOM Thanks. I agree...I would bring back the TUITimezone class so we don't need the custom serializer. Then we can convert a TimeZoneInfo into a TUITimeZone with a AddTimeZoneInfo helper method in TUICalendarTimeZoneOption

@bbaileyHOM I made some changes to the PR to match what I was thinking above. It's closer to your original commit. I'm inclined to merge. Do you have any thoughts?

I think adding a helper function to add an Ienumerable of TimeZoneInfo could be ok.
I prefer to keep the the connection between the two libraries clear. I know there are gaps like updating settings. In those cases, I think those should be added.
Also, I want it to be "easy" to use so I'm all for improvements.
I think implementing setOptions will be very easy to do. Want to create an issue for it and I can work it?

@bbaileyHOM  I'll merge this for now and we can continue to enhance the time zone options.


Setup Blocked

i download the SSMS 18.3.1 release from the officail link i got from google but i keep getting this error
This version of windows 10 or windiows server 2016 is not supported. Please upgrade to version 1607 or greater.
need direction on what to do

@datcodeboy -- it seems you need to update your operating system to a newer version.  You may also find an answer here:

Setup and Upgrade - MSDN Forum
Reddit - general discussion about SQL Server

I am closing this issue now.  You are welcome to @ mention me for any followup.
We hope to hear from you again.


Save the Embeddings from a Complete Triplet Loss Network

I am working on a Siamese Neural Network with custom Triplet Loss function. As far as I learned from the documentations, we will train a complete network but we want to save only the CNN that is used for embeddings extraction to use it later on with a classifier such as KNN or another.
Network Architeture:
Model: "model_2"
__________________________________________________________________________________________________
Layer (type)                    Output Shape         Param #     Connected to
==================================================================================================
input_9 (InputLayer)            [(None, 160, 160, 3) 0
__________________________________________________________________________________________________
input_10 (InputLayer)           [(None, 160, 160, 3) 0
__________________________________________________________________________________________________
input_11 (InputLayer)           [(None, 160, 160, 3) 0
__________________________________________________________________________________________________
sequential_2 (Sequential)       (None, 10)           51144970    input_9[0][0]
                                                                 input_10[0][0]
                                                                 input_11[0][0]
__________________________________________________________________________________________________
lambda_2 (Lambda)               (None,)              0           sequential_2[0][0]
                                                                 sequential_2[1][0]
                                                                 sequential_2[2][0]
==================================================================================================
Total params: 51,144,970
Trainable params: 51,144,970
Non-trainable params: 0
__________________________________________________________________________________________________

CNN Architecture that is used for embeddings extraction:
Model: "sequential_2"
_________________________________________________________________
Layer (type)                 Output Shape              Param #
=================================================================
conv2d_2 (Conv2D)            (None, 159, 159, 64)      832
_________________________________________________________________
conv2d_3 (Conv2D)            (None, 158, 158, 64)      16448
_________________________________________________________________
max_pooling2d_1 (MaxPooling2 (None, 79, 79, 64)        0
_________________________________________________________________
dropout_3 (Dropout)          (None, 79, 79, 64)        0
_________________________________________________________________
flatten_1 (Flatten)          (None, 399424)            0
_________________________________________________________________
dense_3 (Dense)              (None,<PHONE_NUMBER>0
_________________________________________________________________
dropout_4 (Dropout)          (None, 128)               0
_________________________________________________________________
dense_4 (Dense)              (None, 10)                1290
=================================================================
Total params: 51,144,970
Trainable params: 51,144,970
Non-trainable params: 0
_________________________________________________________________

I trained the whole network and used base_model.predict() to extract the embeddings. Now , I want to save only the base_model with its learned config during the training.
I came across a code on Kaggle through Github Issues that is used for this purpose, I used it and it worked just fine but it gave me a Warning that made me afraid a little bit:
[(https://www.kaggle.com/shanmukh05/embeddindgs-extraction-from-siamesemodel)]
[(https://github.com/keras-team/keras/issues/8748)]
def copyModel2Model(model_source,model_target,certain_layer="a"):
    i=0
    for tar,src in zip(model_target.layers,model_source.layers):
        if tar.name==certain_layer:
            break
        if i%2 !=0:
            print(model_source.layers[i].name,i)
            try:
                weights=src.get_weights()
                tar.set_weights(weights)
            except:
                i+=1
                continue
    i+=1
    print("model source was copied into model target")
    return model_target

embed_model = copyModel2Model(model,base_model)
embed_model.summary()

embed_model.save('/content/gdrive/MyDrive/RIOTU/projects/snn_upper_face_recognition/tensorflow/colab_outputs/riotu-upper-facenet-tiny.h5')
WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. model.compile_metrics will be empty until you train or evaluate the model.
When I load the model again with load_model I got this warning also:
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
Now is this ok or I am missing something while saving the model ? and what is the appropriate way to save a Triplet Loss Network ?
Full Network Code:
def identity_loss(y_true, y_pred):
    return K.mean(y_pred)

def triplet_loss(x, alpha = 0.2):
    # Triplet Loss function.
    anchor,positive,negative = x
    # distance between the anchor and the positive
    pos_dist = K.sum(K.square(anchor-positive),axis=1)
    # distance between the anchor and the negative
    neg_dist = K.sum(K.square(anchor-negative),axis=1)
    # compute loss
    basic_loss = pos_dist-neg_dist+alpha
    loss = K.maximum(basic_loss,0.0)
    return loss

def embedding_model():
  # Simple convolutional model
  # used for the embedding model.
  model = Sequential()

  model.add(Convolution2D(64, (2, 2), activation='relu',
                        input_shape=(160,160,3)))

  model.add(Convolution2D(64, (2, 2), activation='relu'))
  model.add(MaxPooling2D(pool_size=(2,2)))
  model.add(Dropout(0.25))

  model.add(Flatten())

  model.add(Dense(128, activation='relu'))
  model.add(Dropout(0.5))
  model.add(Dense(10))

  return model

def complete_model(base_model):
    # Create the complete model with three
    # embedding models and minimize the loss
    # between their output embeddings
    input_1 = Input((imsize, imsize, 3))
    input_2 = Input((imsize, imsize, 3))
    input_3 = Input((imsize, imsize, 3))

    A = base_model(input_1)
    P = base_model(input_2)
    N = base_model(input_3)

    loss = Lambda(triplet_loss)([A, P, N])
    model = Model(inputs=[input_1, input_2, input_3], outputs=loss)
    model.compile(loss=identity_loss, optimizer=Adam(LR))
    return model

@mohammed-ab99 You can actually save the entire siamese model and load it and extract the layer with desired trained layers and create a new model with a new input layer and the extracted layer. Please take a look at this explanation here. Thanks!


perl-Software-License: 0.103010 -> 0.103011

Hi @pSub, is this OK for merge?

OH, thanks for reminding me about this PR. Sorry for the delay!

No problems. Thanks for the merge!


Allow outputting into yaml

Hello, I'd like to be able to output any manifests that would normally get applied to a kubernetes cluster into a local file in order to deploy functions following GitOps principals. Is this something that is feasible or already exists? (I didn't see if when searching through issues)

Hi @SelfhostedPro  - first - sorry for the latency in responding! You should track this PR where this feature has been proposed https://github.com/knative-sandbox/kn-plugin-func/pull/898

There has been discussion around this in a couple of different areas - on cluster builds, service deployment, etc. Let's use this issue as a place to discuss what's needed, and to collate any new issues or PRs that get created as a result.
Currently, I am leaning towards the idea of a --dry-run flag for func deploy to generate yaml files.


Removes postgres pachd init-containers

Removes init-containers used to wait until postgres is ready; pachd now gracefully waits for postgres to come up.
Merge after #6974

Awesome. IMHO the 'db not ready' log should be at least info, not debug. when we were troubleshooting a db connection issue w a customer, the only way we noticed it was the pg bouncer logs. The regularly deployed pachd logs were just silent.


[Question | Feature Request] Force redirect to login on all routes that are not declared in resources

Hi!
Here's the scenario:
You have resources like "posts" and "users". When you visit the /posts or the /users urls and you are not authenticated you are redirected to the login screen. That's shiny.
But when you visit other urls, like /asd or something, the complete app is shown and the user is not redirected to the login screen, and nor your AuthClient nor the RestClient (why would it?) are called so you don't have a way to check credentials or redirect manually. Also note, that since these routes won't trigger any rest communication, your server can't send a 401 or 403 either.
I don't really see a security concern here, but visually and in terms of UX I think we should redirect the user somehow to the login page when this occures.
Any opinion or suggestions how to accomplish this?
To test how this looks you can just visit the demo site, logout if your logged in and append a custom url to it, like https://marmelab.com/admin-on-rest-demo/#/asdasd

You can use a custom saga and listen to the route change action

This is solved by #824 in 1.3.0


Wrong fairy ring map icon in Ancient Cavern

Description
In Ancient Cavern lower level map you can see a fairy ring icon BJQ what does not exist in OSRS.

Solved with this


Feature Request: Power Usage stats for CZ-TACG1

Requesting this functionality which is available in the cloud based comfort cloud integration. Monitoring and having automations etc will assist in better managing energy usage.

I'd like to propose packet 29 as being the current wattage used by the unit (or at least involved with it).
 You can see the values increase significantly, then drop off.
In the off state, it still shows to draw around 30-40 watts, however I've just learned that this is most likely the crankcase heater since it is quite cold here at the moment. (Never knew about this, so I'll be turning the main breaker off when I go away).
I'm running my other unit still connected to comfort cloud in the same manner to compare wattages but the sensor takes ages to update, so I'll post when it comes through.
If it were implemented as a sensor, it should probably have some sort of averaging included over say 10 or so packets to avoid spikes or dips.
70 20 00 2E 80 A0 10 04 00 40 00 00 00 2E 00 00 00 00 10 08 FF 10 08 FF 80 80 FF 80 1F 00 01 80 85 71 5D
70 20 00 2E 80 A0 10 04 00 40 00 00 00 2E 00 00 00 00 10 08 FF 10 08 FF 80 80 FF 80 1F 00 01 C1 38 14 C6
70 20 00 2E 80 A0 10 04 00 40 00 00 00 2E 00 00 00 00 10 08 FF 10 08 FF 80 80 FF 80 1F 00 01 C0 00 00 13
70 20 00 2E 80 A0 10 04 00 40 00 00 00 2E 00 00 00 00 10 08 FF 10 08 FF 80 80 FF 80 29 00 01 C1 38 14 BC
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 10 08 FF 10 08 FF 80 80 FF 80 7D 00 04 C0 00 00 18
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 14 08 FF 16 08 FF 80 80 FF 80 9F 02 0F 80 85 71 29
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 14 08 FF 16 08 FF 80 80 FF 80 0E 03 11 C0 00 00 6D
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 14 08 FF 17 08 FF 80 80 FF 80 2D 03 12 C1 38 14 FF
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 14 08 FF 17 08 FF 80 80 FF 80 4E 03 13 C0 00 00 2A
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 16 09 FF 19 09 FF 80 80 FF 80 CA 03 16 C1 38 14 58
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 15 09 FF 18 09 FF 80 80 FF 80 BA 03 15 80 85 71 02
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 13 09 FF 16 09 FF 80 80 FF 80 EB 03 16 C0 00 00 8A
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 13 09 FF 16 09 FF 80 80 FF 80 D9 03 16 80 85 71 E6
70 20 44 2E 80 A0 10 02 00 40 00 00 4C 3A 00 00 00 00 13 09 FF 16 09 FF 80 80 FF 80 EB 03 16 C0 00 00 8A
70 20 40 2E 80 A0 10 00 00 40 00 00 00 2E 00 00 00 00 13 09 FF 16 09 FF 80 80 FF 80 0B 00 00 C1 38 14 94
70 20 40 2E 80 A0 10 00 00 40 00 00 00 2E 00 00 00 00 14 09 FF 17 09 FF 80 80 FF 80 0B 00 00 C0 00 00 DF
70 20 40 2E 80 A0 10 00 00 40 00 00 00 2E 00 00 00 00 17 09 FF 19 09 FF 80 80 FF 80 0B 00 00 80 85 71 24

@DomiStyle from memory you said you had a separate method for measuring the energy use, perhaps you could compare that data against this packet?

@brywithawhy Doubtful, the AC is probably not measuring the power usage as accurately as my smart meter.
The correct method would be checking what Comfort Cloud displays and what is sent by the normal wifi module via serial. That way you can compare numbers.

Is there a way I can connect both at the same time?
Also is there an easy way I could make the 29th packet a sensor in HA so I can graph its data?
The problem is the comfort cloud app takes ages to display usage so if i could record it in HA and then compare with CC after a period of time that would help

Nope, needs to be done with a logic analyzer and the Panasonic module.
I can create a test branch with a sensor exposed for byte 29 once everything is merged into master.

I've just built an energy sensor and clipped it around my aircons power. After some further research into this and I think I have it figured out.
Byte 28 and 29 (zero indexed) are responsible for energy calculations.
Byte 28 is a temperature value
Byte 29 is how many times the temperature exceeds 255 watts
With my aircon at idle, it burns around 38 watts, and bytes 28 and 29 are [26 00]
I powered up my air con on heat and powerful mode and watch as the power usage ramps up.
251 Watts recorded as E0 00
497 Watts recorded as D7 01
873 Watts recorded as 56 03
These hex values don't completely agree with what the CT sensor recorded but they were within around 20-30 watts which I put down to noise/error on the CT clamp I'm using as no load jumps around from 5 to 15 watts.
Keen for others to try and hopefully implement this as a sensor!

@brywithawhy
i just tested your suggestion by using byte 28 and 29, but with that its showing extra 30W if compared with my ct clamp. I noticed that byte 30 also changes, so this is what i did, by doing this, the output is around +-4W if compared with CT clamp. byte_30 is some sort of offset, i cant be sure
(byte_28 + (byte_29*255)) - byte_30
Could you try this?

@brywithawhy
I've implement the calculation and exposed it as a sensor. It's available in my fork.
https://github.com/blacklizard/esphome-panasonic-ac/tree/experimental/power_consumption
You just need to enable it in the config file under climate. Please test
climate:
  - platform: panasonic_ac
    ...
    current_power_consumption:
      name: Panasonic AC Power Consumption
    ...

Hi @blacklizard,
Thanks for looking into that. I need to get a more accurate CT sensor to test this properly. The one I have is a home made kit I use to send data to HA and it isn't accurate enough yet, reading about 20 watts with no load.
I've ordered a clamp meter and will report back in a few days unless someone else can test in the mean time.

I installed your branch on my unit and it shows 9W idle and 42W in fan only mode. Seems a tad bit high for fan only but I didn't measure yet.

@DomiStyle Mine was 6W idle, but it is inconsistence. As of now, based on my tested the error rate is not linear, using my multimeter and clamp meter, the error rate jumps between -+ 4W to +-20W. Currently I'm quite caught up with work, will measure again when I have the time

@DomiStyle @brywithawhy
I've spend past days to figure out the value, but it seems the values return by the AC is just an estimation. Sometimes the returned value has error up to 50% at day time if compared to night time. I validated this against reading from SDM230 meter. To monitor the usage, Its just wise to use a proper kwh meter.
I also came across this.

But, the estimation is close enough to measurement from SDM with variation of +-50W. Here is the comparison graph. Blue is from AC, orange is from SDM

@blacklizard that is pretty darn close. For me, I want to create automations when power usage is high so this is accurate enough for my liking,.
I haven't tested your branch yet as I'm still waiting for my meter to arrive. We are in lockdown here with so many delays so who knows when.

Finally received the clamp meter today and installed @blacklizard 's fork.
Can confirm the data is relatively close, within 10-20 watts. I put this down to the power factor and voltage fluctuations under load. On Powerful heat mode the sensor reported 864w. I was drawing 4.04 amps off the clamp meter. Another sensor that reports voltage showed 236vac at the time. With a power factor of say 0.9 for an air con, this gives the following:
Air con sensor 864W / 236v / 0.9 = 4.06A (0.02A difference)
236v * 4.04A * 0.9 = 858W (6W difference)
There's also minute differences between two identical ac units

As we have a silly demand usage tariff which charges you an extra daily rate against your highest half hourly usage, my use case is to have automations avoid the concurrent use of high energy devices. This sensor is very much accurate enough for me.

@blacklizard Feel free to put in a pull request if you think this feature is ready.

@DomiStyle created the PR. Please check

@blacklizard Thanks!
Closed via https://github.com/DomiStyle/esphome-panasonic-ac/pull/29


Fix TestAccUsageDownload by increasing HTTP timeout

Changes
The test consistently timed out. The API for the billing download API states it can take up to multiple minutes, so I increased the HTTP timeout from 1 minute -> 5 minutes.
Tests
The test now passes.

looking at the test failure


What do I do if the AMI i am using has an encrypted root volume?

I tried to use this for a module but everytime I ran terraform apply through CircleCI I get:
StatusMessage: "Instance became unhealthy while waiting for instance to be in InService state. Termination Reason: Client.InternalError: Client error on launch

hi @pmanninja - please feel free to re-open when you are able to provide a bit more context


Improve the slots pattern and implementation

Summary
This PR contains a number of changes and improvements to the 'slots' pattern (createSlots) to fix performance issues, reduce complexity, and improve the API:
Closes https://github.com/github/primer/issues/1224
Remove context prop from Slots
The ability to pass custom non-slots-related contexts through the slots API is problematic:

It is not typesafe (types are any going in and coming out)
It breaks memoization - the slots context and components cannot be memoized if a custom context object that changes on every render is passed
It is a violation of single-responsibility principle - slots should manage slots and nothing else
It increases complexity in the already-complex createSlots function

Because of these issues, particularly the memoization problem, I removed the custom context capabilities altogether. The missing functionality is easily solved by creating new contexts using React.createContext, which follows the single-responsibility principle and is typesafe.
Use normal React state to manage slots
Currently we are storing the slots object in a ref and forcing updates every time it changes. The idea behind this is that we can avoid extra renders on mount, when a number of slots are registering all at once. In reality this actually drastically hurt performance because React cannot batch these updates. By moving the store into normal state, we can simply update state and let React decide when to render.
This looks slightly different from normal useState because I'm using the slightly more low-level useReducer to clean up the code. useReducer also helps us avoid passing an object (which would have to be memoized) to SlotsContext.
Now that there is only one function being passed to SlotsContext (and that function is guaranteed to never change because it's a reducer), SlotsContext will never change - this means fewer extra renders!
Memoize the Slot component
Even with the context value never changing, we still see extra renders in the Slots components themselves. This is because React re-renders the entire subtree when state changes, and Slots change state when they render - causing them to render again. We can easily fix this by memoizing the Slot component with memo. Now it will not re-render unless its children change - that's only once per 'real' render.
Split apart the register & unregister effects
We are currently unnecessarily unregistering each slot before we register it. This is not needed because slots just overwrite the store entry. We do still need to unregister on dismount, but that can have a smaller dependency list - thus fewer state updates!
This actually has no practical effect now that we are using state to store the slots; previously it had a major impact because we were forcing a render on unregister and on register. But now React would just batch the state updates anyway. However, I don't think we should rely on React batching things under the hood - we should still avoid unnecessary updates.
Change to a hook-based API
Currently we generate a Slots provider component with createSlots, which provides the slots through a render function. This render function is hard to read, and more importantly it doesn't provide access to the slots record at the top-level. We often want to access this object to make decisions based on whether a slot exists or not, so this is a very cumbersome API:
const {Slots, Slot} = createSlots<"One" | "Two">();
export const ItemSlot = Slot;

export const Item = ({children}) => {
  return (
    <Slots>
      {(slots) => {
        const oneExists = slots.One !== undefined;

        return (
          <>
            {oneExists ? "One Exists" : null}
            {slots.One}

            {children}
            {slots.Two}
          </>
        );
      }}
    </Slots>
  );
};

To improve this, I've changed the API to generate a useSlots hook instead. When called inside a component, that hook returns the slots record and a SlotsProvider component, which acts like a normal context provider (but with no props). In practice, this looks like this:
const {useSlots, Slot} = createSlots<"One" | "Two">();
export const ItemSlot = Slot;

export const Item = ({children}) => {
  const {SlotsProvider, slots} = useSlots();

  const oneExists = slots.One !== undefined;

  return (
    <SlotsProvider>
      {oneExists ? "One Exists" : null}
      {slots.One}

      {children}
      {slots.Two}
    </SlotsProvider>
  );
};

This should have no performance impact, but I think it's much more readable and ergonomic.
Screenshots
Here's a quick demo showing how many fewer renders we are seeing now vs before:
Before: Screen recording of a console logging every Slot render and every top-level Slots provider render in the MarkdownEditor component. Everything renders three times on initial mount, then each time the value of the input changes, everything renders twice.
https://user-images.githubusercontent.com/2294248/185676730-6876e905-6bb9-4b1f-bc16-e401e3b2ddd9.mov
After: A similar recording, after the changes have been made. Each Slot renders once on initial mount and once per change. The top-level provider renders twice on mount and twice per change.
https://user-images.githubusercontent.com/2294248/185678092-05efbc68-8078-44ab-8f79-aa4016316b15.mov
Of course, number of renders alone is not a good indicator of performance, but it does show that we've been able to simplify the event cycle here which should help resolve the edge cases we've seen. And at the same time, we've been able to improve the API, so it's a win-win.
Merge checklist

[ ] Added/updated tests
[ ] Added/updated documentation
[ ] Tested in Chrome
[ ] Tested in Firefox
[ ] Tested in Safari
[ ] Tested in Edge

Looks like some components (but not all 🤔) using slots are failing to render due to infinite update depth. Not sure what's going on there.

Hi @iansan5653!
We discussed this in the engineering sync and heads up, it might be a while! We have decided to slow down and do some explorations before committing to a solution

Converting this into a draft, purely for logistics 😅

@siddharthkp should we just let this close? I still think this change would solve a lot of headaches and fix performance issues. Is it worth the effort to review and try it out?


Is there a way to attach the picker to a certain container rather than  ??

i am facing an issue that my picker is attached to body while i have the trigger in a container inside with overflow. the picker gets its x and y positions on initialization and position itself according to body but not the container that i need. so once i scroll down, the picker looks like it's fixed but it is actually absolute.

Currently not possible to set custom offset based on the parent container, but you can set custom pane container this way:
picker.on("fit", function() {
    this.enter(document.querySelector('aside'));
});

For now, you can update the color picker pane offset during scroll event this way:
aside.addEventListener("scroll", function() {
    if (picker.visible) {
        picker.picker.style.top = the_top_value;
        picker.picker.style.left = the_left_value;
    }
}, false);

Currently not possible to set custom offset based on the parent container, but you can set custom pane container this way:
picker.on("fit", function() {
    this.enter(document.querySelector('aside'));
});

For now, you can update the color picker pane offset during scroll event this way:
aside.addEventListener("scroll", function() {
    if (picker.visible) {
        picker.picker.style.top = the_top_value;
        picker.picker.style.left = the_left_value;
    }
}, false);

See this quick fix → https://tovic.github.io/color-picker/color-picker.scroll.html


NIFI-7483:Remove description about 'Rolling strategy' in TailFile's docs

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
'Rolling strategy' has be removed alreadly, But in TailFile's doc, "Lookup frequency" and "Maximum age" Property and additionalDetails.html, I see sth about 'Rolling strategy'.We should remove that.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically master)?

[ ] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Merged to master, thanks @KuKuDeCheng

Merged to master, thanks @KuKuDeCheng

It’s my pleasure. I have the other two PR (#4266 and #4243 ),Could you help me to review them?Thanks.


To break the loop when found in search_test.go

To break the loop when found in search_test.go

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "masterFound" git@github.com:lixiaobing10051267/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "masterFound" git@github.com:lixiaobing10051267/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.


[test] Dictionary: Skip a failing index validation test

Values.MutationDoesNotInvalidateIndices.Bridged is currently failing in optimized builds. Apparently it crashes before it could print that it expects to crash.
rdar://problem/47973577

@swift-ci smoke test and merge

@swift-ci smoke test and merge


Is it possible to add Unity 3D specific methods to Intellisense?

Hello, I'm still trying to configure an IDE like C# editor to have a comfortable programming environment for Unity 3D C# scripts.
So this plugin is amazing, when it comes to C# .Net Scripting. But can I add some of the Unity 3D Custom Classes for the auto completion in Intellisense?
Kind regards,

My apologies. Somehow I have missed your post.
Yes it is possible. You just need to add the references to the Unity 3D libraries (like assembly reference in VS) and the IntelliSense should work right away. Providing Unity assemblies are compatible with .NET Core.
Addig references is as simple as adding //css_ref my_assembly.dll on the top of your script. You can find more details here: https://www.csscript.net/help/Directives.html


Change treebank tokenizer to handle chevron quote brackets.

Chevron brackets such as the Guillemet in French weren't being
tokenized.  Tokenizer regexs were changed to recognize the brackets.
See: #1434
However, it seems that the brackets point outward according to other examples,
so I changed the regexs with that in mind, i.e. «text», not »text«

I think it's good to fix the lack in the PTB tokenizer, but this might break the comparison between NLTK version of the PTB tokenizer vs Robert McIntyre's sed version from http://www.cis.upenn.edu/~treebank/tokenizer.sed.

Okay, your duck-typed method seems to be a better way to make the change.  When you make the commit though, I do still think that you should have a punctuation regex to catch punctuation (see: my line note above).

Would it be alright if you make the changes to your branch with the duck-type instead? Otherwise it might be that I am only free on the weekends to work on this.

Yeah, okay.

@matthewmc: do you have time to wrap this up in the coming days please so we can include it in the next release?

@alvations: I think it is fine to add new quote marks even though this breaks the comparison with the original (created before the unicode era).

Superseded by https://github.com/nltk/nltk/pull/1682


On Trip page when tracking 2+ cars, the Battery Level graph is mixed up between the cars.

Describe the bug
On Trip page when tracking 2+ cars, the Battery Level & Range graph is a mixed up between the cars.

Expected behavior
The battery level graph for each car should match the graph on the Charge Level page.

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

Have 2+ cars in a Tesla account.
Go to the Trip page.
Check the Battery Level & Range graph.

Relevant entries from the logs

paste logs here

Screenshots
The battery levels of my 2 cars are correct on the graphs on the Charge Level page, where car # 1's charge level was between 72-84% and car # 2's between 34-43%:

But on the Trip page, the Battery Level & Range graph looks like the graphs for both cars mixed up together. The graphs for both car # 1 and car # 2 are always the same -- even when there is no data for one car (only one car was driven for that day with date range set to "today so far"):

Looking closer, the Battery Level & Range graph started off at 74% (car # 2) then dropped to 40% (car # 1) and later jumps back up to 82% (car # 2:)

Data

Environment

TeslaMate version: 1.19.4
Type of installation: Docker
OS TeslaMate is installed on: Docker
User OS & Browser: Fedora Linux 32, Google Chrome Version 85.0.4183.121 (Official Build) (64-bit)
Others:

Fixed with #843


Checkpoint logging and doc fixes

Includes more verbose logging for checkpoint saving + loading. Addresses #234
Minor fixes to docstrings
Minor change to trainer logger setup to print log level info

Example of checkpoint loading:
INFO:composer.cli.launcher:Starting DDP on local node for global_rank(0-0)
/mnt/cota/ajay/composer/composer/cli/launcher.py:105: UserWarning: AutoSelectPortWarning: The DDP port was auto-selected. This may lead to race conditions when launching multiple training processes simultaneously. To eliminate this race condition, explicitely specify a port with --master_port PORT_NUMBER
  warnings.warn("AutoSelectPortWarning: The DDP port was auto-selected. "
INFO:composer.cli.launcher:DDP Store: tcp://<IP_ADDRESS>:59695
INFO:composer.cli.launcher:Launching process for local_rank(0), global_rank(0)
UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at  ../torch/csrc/utils/tensor_numpy.cpp:180.) (source: /usr/local/lib/python3.8/dist-packages/torchvision/datasets/mnist.py:498)
Config
------------------------------
algorithms: []
callbacks: []
compute_training_metrics: false
datadir: null
dataloader:
  num_workers: 8
  persistent_workers: true
  pin_memory: true
  prefetch_factor: 2
  timeout: 0.0
ddp_sync_strategy: null
deepspeed: null
deterministic_mode: false
device:
  gpu: {}
dist_timeout: 15.0
eval_batch_size: 1000
eval_subset_num_batches: null
grad_accum: 1
grad_clip_norm: null
load_checkpoint:
  checkpoint: mosaic_states.pt
  chunk_size: 1048576
  load_weights_only: false
  object_store: null
  progress_bar: true
  strict_model_weights: false
log_level: INFO
loggers:
- tqdm: {}
max_duration: 10ep
model:
  mnist_classifier:
    initializers:
    - KAIMING_NORMAL
    - BN_UNIFORM
    num_classes: 10
optimizer:
  sgd:
    dampening: 0.0
    lr: 0.1
    momentum: 0.9
    nesterov: false
    weight_decay: 0.0001
precision: AMP
profiler: null
save_checkpoint: null
schedulers:
- cosine_decay:
    T_max: 10ep
    eta_min: 0.0
    interval: epoch
    verbose: false
seed: 17
train_batch_size: 2048
train_dataset:
  mnist:
    datadir: /datasets/mnist
    download: true
    drop_last: true
    is_train: true
    shuffle: true
    synthetic_device: cpu
    synthetic_memory_format: CONTIGUOUS_FORMAT
    synthetic_num_unique_samples: 100
    use_synthetic: false
train_subset_num_batches: null
val_dataset:
  mnist:
    datadir: /datasets/mnist
    download: true
    drop_last: false
    is_train: false
    shuffle: false
    synthetic_device: cpu
    synthetic_memory_format: CONTIGUOUS_FORMAT
    synthetic_num_unique_samples: 100
    use_synthetic: false
validate_every_n_batches: -1
validate_every_n_epochs: 1
------------------------------

INFO:composer.trainer.checkpoint:Trainer checkpoint loaded from mosaic_states.pt.

Example when saving a checkpoint:
INFO:composer.cli.launcher:Starting DDP on local node for global_rank(0-0)
/mnt/cota/ajay/composer/composer/cli/launcher.py:105: UserWarning: AutoSelectPortWarning: The DDP port was auto-selected. This may lead to race conditions when launching multiple training processes simultaneously. To eliminate this race condition, explicitely specify a port with --master_port PORT_NUMBER
  warnings.warn("AutoSelectPortWarning: The DDP port was auto-selected. "
INFO:composer.cli.launcher:DDP Store: tcp://<IP_ADDRESS>:53247
INFO:composer.cli.launcher:Launching process for local_rank(0), global_rank(0)
UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at  ../torch/csrc/utils/tensor_numpy.cpp:180.) (source: /usr/local/lib/python3.8/dist-packages/torchvision/datasets/mnist.py:498)
Config
------------------------------
algorithms: []
callbacks: []
compute_training_metrics: false
datadir: null
dataloader:
  num_workers: 8
  persistent_workers: true
  pin_memory: true
  prefetch_factor: 2
  timeout: 0.0
ddp_sync_strategy: null
deepspeed: null
deterministic_mode: false
device:
  gpu: {}
dist_timeout: 15.0
eval_batch_size: 1000
eval_subset_num_batches: null
grad_accum: 1
grad_clip_norm: null
load_checkpoint: null
log_level: INFO
loggers:
- tqdm: {}
max_duration: 10ep
model:
  mnist_classifier:
    initializers:
    - KAIMING_NORMAL
    - BN_UNIFORM
    num_classes: 10
optimizer:
  sgd:
    dampening: 0.0
    lr: 0.1
    momentum: 0.9
    nesterov: false
    weight_decay: 0.0001
precision: AMP
profiler: null
save_checkpoint:
  folder: checkpoints
  interval: 10
  interval_unit: ep
schedulers:
- cosine_decay:
    T_max: 10ep
    eta_min: 0.0
    interval: epoch
    verbose: false
seed: 17
train_batch_size: 2048
train_dataset:
  mnist:
    datadir: /datasets/mnist
    download: true
    drop_last: true
    is_train: true
    shuffle: true
    synthetic_device: cpu
    synthetic_memory_format: CONTIGUOUS_FORMAT
    synthetic_num_unique_samples: 100
    use_synthetic: false
train_subset_num_batches: null
val_dataset:
  mnist:
    datadir: /datasets/mnist
    download: true
    drop_last: false
    is_train: false
    shuffle: false
    synthetic_device: cpu
    synthetic_memory_format: CONTIGUOUS_FORMAT
    synthetic_num_unique_samples: 100
    use_synthetic: false
validate_every_n_batches: -1
validate_every_n_epochs: 1
------------------------------

Epoch 0: 100%|██████████| 29/29 [00:01<00:00, 21.93it/s, loss/train=0.2796]
Epoch 1, Batch 29 (val): 100%|██████████| 10/10 [00:00<00:00, 78.61it/s, accuracy/val=0.9089]
Epoch 1: 100%|██████████| 29/29 [00:00<00:00, 45.42it/s, loss/train=0.1645]
Epoch 2, Batch 58 (val): 100%|██████████| 10/10 [00:00<00:00, 80.64it/s, accuracy/val=0.9538]
Epoch 2: 100%|██████████| 29/29 [00:00<00:00, 47.89it/s, loss/train=0.0957]
Epoch 3, Batch 87 (val): 100%|██████████| 10/10 [00:00<00:00, 81.33it/s, accuracy/val=0.9708]
Epoch 3: 100%|██████████| 29/29 [00:00<00:00, 46.96it/s, loss/train=0.1058]
Epoch 4, Batch 116 (val): 100%|██████████| 10/10 [00:00<00:00, 81.68it/s, accuracy/val=0.9760]
Epoch 4: 100%|██████████| 29/29 [00:00<00:00, 47.22it/s, loss/train=0.0686]
Epoch 5, Batch 145 (val): 100%|██████████| 10/10 [00:00<00:00, 80.40it/s, accuracy/val=0.9803]
Epoch 5: 100%|██████████| 29/29 [00:00<00:00, 46.34it/s, loss/train=0.0852]
Epoch 6, Batch 174 (val): 100%|██████████| 10/10 [00:00<00:00, 81.10it/s, accuracy/val=0.9816]
Epoch 6: 100%|██████████| 29/29 [00:00<00:00, 46.63it/s, loss/train=0.0660]
Epoch 7, Batch 203 (val): 100%|██████████| 10/10 [00:00<00:00, 81.81it/s, accuracy/val=0.9815]
Epoch 7: 100%|██████████| 29/29 [00:00<00:00, 47.10it/s, loss/train=0.0535]
Epoch 8, Batch 232 (val): 100%|██████████| 10/10 [00:00<00:00, 78.34it/s, accuracy/val=0.9823]
Epoch 8: 100%|██████████| 29/29 [00:00<00:00, 46.71it/s, loss/train=0.0646]
Epoch 9, Batch 261 (val): 100%|██████████| 10/10 [00:00<00:00, 81.50it/s, accuracy/val=0.9837]
Epoch 9: 100%|██████████| 29/29 [00:00<00:00, 46.53it/s, loss/train=0.0490]
Epoch 10, Batch 290 (val): 100%|██████████| 10/10 [00:00<00:00, 80.95it/s, accuracy/val=0.9829]
INFO:composer.trainer.checkpoint:Trainer checkpoint saved to /mnt/cota/ajay/composer/runs/2022-01-26T00:42:24.243183/rank_0/checkpoints/ep10.tar

Could you perhaps link to a w&b run so we can see the logging with the new log.INFO default?

Could you perhaps link to a w&b run so we can see the logging with the new log.INFO default?

I included output in the description. It seems like checkpointing is really broken when saving checkpoints locally (

Could you perhaps link to a w&b run so we can see the logging with the new log.INFO default?

I included the console output of training when both saving and loading a checkpoint above.
I wasn't able to get a full training run working when loading a checkpoint from a local file, but that seems like a bug and is definitely unrelated to these extra logging statements. I filed an issue to track it here and can investigate further later: #276 .


Version up 0.2 to 0.2.1

I want to get newest version from CocoaPods because I like SwiftMoment :smiley:

:+1:

Thanks!

Thank you :stuck_out_tongue_closed_eyes:


Scale issue using Composed Chart

Describe the bug
Scale of Composed chart using ComposedChartEntryModelProducer looks wrong
Module

[ ] compose
[ ] views
[ ] compose-m2
[x] compose-m3
[ ] core (select if none of the above apply)

To reproduce
I'm trying to create a composed chart using 2 ChartEntryModelProducer using this code, but the scale look different than if I create 2 different charts with each model producer
Chart(
        chart = lineChart(
            axisValuesOverrider = AxisValuesOverrider.adaptiveYValues(yFraction = 1f, round = true)
        ),
        chartModelProducer = chartModelProducer1 + chartModelProducer2,
        endAxis = endAxis(
            valueFormatter = { x, _ -> x.toInt().toString() },
            horizontalLabelPosition = VerticalAxis.HorizontalLabelPosition.Inside,
            maxLabelCount = 5
        ),
        chartScrollSpec = rememberChartScrollSpec(isScrollEnabled = false)
    )

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Here a screenshot of what I have:

I expect to have the result of both of these charts, with same scale:

Android versions
Android 12
Additional context
Maybe it is not an issue but something I'm doing wrong?

Hello! This is expected. The two data sets have different ranges of y values (595 to 692 vs. 217 to 295), and so the lines are being scaled accordingly. In the two-line chart, the axis applies to both lines equally.


File Not Found error

I was training ATL on my own dataset. I stopped training midway and tried restarting it again.
But, I am getting the below error:
Traceback (most recent call last):
File "affordance/HOI-CL/tools/Train_ATL_HICO.py", line 210, in
sw.train_model(sess, args.max_iters)
File "affordance/HOI-CL/tools/../lib/models/train_Solver_HICO_MultiBatch.py", line 144, in train_model
self.from_snapshot(sess)
File "affordance/HOI-CL/tools/../lib/models/train_Solver_HICO.py", line 174, in from_snapshot
saver.restore(sess, self.switch_checkpoint_path(ckpt.model_checkpoint_path))
tensorflow.python.framework.errors_impl.NotFoundError: affordance/HOI-CL/Data/Weights/ATL_union_batch1_semi_l2_def4_vloss2_rew2_aug5_3_x5new_coco_res101;

Dear anjugopinath,
switch_checkpoint_path is just for my local env because I have trained the model in different machines and the path is different. You can remove it according to you environment.
Yes, res101_faster_rcnn_iter_1190000.ckpt is download as follow,
mkdir Weights/
python lib/ult/Download_data.py 1IbR4kiWgLF8seaKjOMmwaHs0Bfwl5Dq1 Weights/res50_faster_rcnn_iter_1190000.ckpt.data-00000-of-00001
python lib/ult/Download_data.py 1-DbfEloN4c2JaCEMnexaWAsSc4MDlZJx Weights/res50_faster_rcnn_iter_1190000.ckpt.index
python lib/ult/Download_data.py 1vc5d3OwCtMtRgXq3Pj4_twpK4x3kjgT0 Weights/res50_faster_rcnn_iter_1190000.ckpt.meta

#
python lib/ult/Download_data.py 0B1_fAEgxdnvJR1N3c1FYRGo1S1U Weights/coco_900-1190k.tgz

cd Weights
tar -xvf coco_900-1190k.tgz
mv coco_2014_train+coco_2014_valminusminival/res101* ./
cd ../


Oauth: Preselecting user during authentication stopped working

Describe the bug
When re authenticating the desktop client, we pass the username for the account that requires authentication.
https://ocis.ocis-traefik.latest.owncloud.works/signin/v1/identifier?client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69&code_challenge=l24oTnpkqaqjEFbNCPtFrvE37hPpmYZmvqFRUmHDX8U&code_challenge_method=S256&flow=oidc&login_hint=einstein&prompt=select_account+consent&redirect_uri=http%3A%2F%2F<IP_ADDRESS>%3A62130&response_type=code&scope=openid+offline_access+email+profile&state=PNx9VUd7T4aHxxj1sqqnbei73EBWB4Gav8TZdJ3eSVo%3D&user=einstein

In the past, that user was preselected in the login ui.
It seems this is no longer the case.
Steps to reproduce
Steps to reproduce the behavior:

Register an account with the desktop client
Log out
Log in

Expected behavior
The user is preselected.
Actual behavior

Setup
https://ocis.ocis-traefik.latest.owncloud.works/

Same on the remote instance
https://ocis.ocis-traefik.latest.owncloud.works/signin/v1/chooseaccount?client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69&code_challenge=46FJTRSPaUk9QdjXRdY6wrMUrElU2HI0u9s7mUpIQsE&code_challenge_method=S256&flow=oidc&login_hint=marie&prompt=select_account+consent&redirect_uri=http%3A%2F%2F<IP_ADDRESS>%3A52718&response_type=code&scope=openid+offline_access+email+profile&state=5bTgc5Nwayx8b9NlidwmhJ6osL-YwGTkp2msgS3sdwc%3D&user=marie
```

![1645177440325](https://user-images.githubusercontent.com/4378513/154657928-8957dd11-b15e-4e8b-9900-1e78568842a5.png)

Thats your logged in account, if you are logged in as einstein and try to relogin with marie, it will only suggest einstein.

I haven't used ocis for a couple of month.
@IljaN you where involved the first time it was fixed, I think.
Any idea?

@IljaN ^

ping

Added the bug label which should stop the stale-bot from trying to close the issue

@TheOneRing @IljaN did this really ever work with ocis? I have some doubts.
Apart from that I think it's better if clients send the the desired username via the login_hint parameter. This is actually specified in the OIDC standards (even if optional). I don't know the history of the  user parameter, but it seems somewhat specific to ownCloud classic.
Unfortunately login_hint currently isn't supported by our builtin minimal IDP :disappointed: not sure how must effort it would be to  add it. But it works e.g. with keycloak and others.

The desktop client uses both, login_hint (oidc) and user (owncloud 10).
Where early setups of ocis using a different IDP?

according to @pmaier1 there are no plans to implement that in LibreConnect.


Bug: Root SRD folder keeps being created after duplication or deletion.

I moved all the SRD stuff into a seperate folder along with module stuff because I dont really use it at all. With 2.3, the folder is created as a new root folder in my world, and when I move it- it gets remade upon world launch. I've tried a suggestion by:
In the system.json - Deleting line 166, removing the comma on line 165, and adding the space after folders like MaxPat asked, but it still ends up making a new one.

I think this might be a core bug, the top level folders seem to always be created on world launch/reset for both the system and for modules with packFolders, if they have been moved/removed
https://github.com/foundryvtt/dnd5e/assets/86370342/1d0dd5b0-e26b-4f39-8a95-8ccf20eb4098

Almost certainly a core issue. We're not doing anything special with packFolders in dnd5e as far as I know.


The argument of call: is a closure, not a name

This PR introduce a non-backward compatible change: call: f must now be written call: ${ f }.


[regression?] Need for Speed: Hot Pursuit → glitches

with d9vk #807

with d9vk 0.13f

System information

GPU: Nvidia GT 730M
Driver: 435-17 (beta)
Wine version: Proton 4.11
DXVK version: #807 & 0.13f

Apitrace file(s)
https://mega.nz/#!n6w0zYxb!Q3CnPSZKZPZoUGgQewpMSq82VGVXtrcpLGd03LnL5YA
Log files
steam-47870-d3d9.log
steam-47870-d9vk.log

Hm, the issue is baked into the trace...
I spent way too long investigating this to find that out, doh!
Any chance you'd be able to bisect and find out what version broke it? You can use the builds on git.froggi.es

From #705 exactly (yes, it's old now!)

Can you rename this to dxvk.conf (Github is being an asshole) and see if that fixes the issue? Thanks.
dxvk.conf.txt

It has no effect (or maybe I'm doing something wrong)

Can you try this build?
d3d9.zip

Yes, totally fixed!
(and visibly I don't know how to use a dxvk.conf)

d3d9_a.zip

Can you try this and see if it is still fixed?

No, the glitches are back.

blegh ok

d3d9_b.zip
Does this fix the issue? Sorry to be a pita.

Nope, still here!

Sorry to be a pita.

Don't worry (I just hate EA for this intro we can't skip :angry: )

Have you tried deleting the file for it -- that works in some games.

Only a partial fix: https://pcgamingwiki.com/wiki/Need_for_Speed:_Hot_Pursuit#Partial_skip_intro_fix
But it's not really useful.

d3d9_c.zip
Can you try this change? 😄

Still here :/

Last thing I'll ask of you today:
d3d9.zip

Still here, unfortunately :confused:

With #845, all the glitches are gone! :tada:


Depend on puppetlabs/puppetserver_gem instead of including it

It would likely be better to just depend on https://forge.puppet.com/puppetlabs/puppetserver_gem instead of vendoring it or shipping our own version of it.

However, it should be possible to install puppetserver with hiera-eyaml and deep_merge in one run (lazy eval of the confine via feature: => ).


 I think the up axis was different and inverted, and blender has W as the first value, where gltf has it at the end.
2nd commit adds the parent child relations based on the info from the gltf.
I've never written this much python before, so of course feel free to clean it up if you want!
Thanks for starting this project!

Thanks, this would also have worked, but I just spotted your request as I pushed my local changes including similar quaternion and object relation fixes into the newly created experimental branch.

No worries!


Update aws-lambda-deployments.md

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

UI label name change

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Error in Consumer Key or Consumer Secret

Code:
import tweepy

consumer_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
consumer_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
access_token=xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
access_token_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

auth=tweepy.OAuthHandler(consumer_key,consumer_secret)

auth.set_access_token(access_token, access_token_secret)
client=tweepy.API(auth)
client.update_status("Its a new day")

I first got the error name xxxxxx not defined, referring to the consumer_key
I regenerated the consumer key and tried.
Then I got the error invalid syntax (referring to the consumer key).
I regenerated them again.
And the first error came back.
How do i get this to work?

Double check that you are placing quotes around your keys and secrets, since they are strings.
I ran your code without quotes and got the same result, a syntax error. Once I added the quotes around the keys, your code worked and posted a status update: "Its a new day".

Also check that there are no spaces in the string. If you are double clicking the key/secret from the apps.twitter.com website, you may be introducing a space at the beginning/end of the string.

from twython import Twython
twitter = Twython(
consumer_key,
consumer_secret,
access_token,
access_token_secret
)
And am getting this error
NameError                                 Traceback (most recent call last)
 in
1 from twython import Twython
2 twitter = Twython(
----> 3     consumer_key,
4     consumer_secret,
5     access_token,
NameError: name 'consumer_key' is not defined


question: To be an actor it should support...

according to https://en.wikipedia.org/wiki/Actor_model

spawning new actors
sending messages

The current implementation of your actor behaves as a receiver only (with a message queue as an input). Am I missing something?

In this version of hollywood, you can spawn new actors, and send messages to the actor you've spawned.
To have look, I suggest;

examples folder.
Youtube Videos

Introduction To The Actor Paradigm In Golang
How To Build A TCP Server With Actors In Golang
Microservices with Actors In Golang
LMAX queue implementation Actors messagin internals
Building A Chat Server And Client With Actors In Golang

Note: There is much more on the youtube channel
I hope, these can help your questions.

Thanks for the answer.
So why did you name it "actor" if it doesn't implement the basic stuff of the actor behaviour?

You can do the sending messages and spawning actor as you mention.

Could you please point me to the example? I couldn't find these features


GitHub pages doesn't like typedoc

I've built the typedocs into docs and told GitHub Pages to load them. It doesn't like any page but the index, for some reason.
Help appreciated; I'll look into this more too (but will go to sleep for now :D)

You need to put an empty file named .nojekyll in the docs directory. It took me ages to figure that out when I tried setting up the docks for my fork.

Did that; still doesn't like the docs
Good catch though I remember reading the GitHub pages documentation like "never going to need .nojekyll"

It looks like it's working to me.

Ah yes. It just needed a few more minutes (or days ^^)
Thanks!


QMK/Arduino compatibility ?

QMK is an opensource keyboard firmware for AVR/ARM  that has some support for mouse coordinates, can this library run on the limited memory and processor capacity of such boards ?

I don't know the limitations of QMK, but because this is a quite simple C implementation, it will probably run on these boards (especially if the list would be optimized)


rv-checked is not updated after deleting values from rv-each array

https://jsfiddle.net/kv4f623e/
If i press del button, checked attribute is stay connected to the array index,
rv-checked is not updated.

You better manage setting the "selectedColor" for the user when it is deleted.


Question: Installation issue on Mac M1 silicone

Hi.  I have problem in installing AlphaFold2 locally in my MacBook Pro (M1 silicone)
Computational environment

OS: macOS 13.2.1

To Reproduce
I am novice to AlphaFold2 or Unix system. I believe I exactly followed the instruction and get the following message.  It appears that I have a x86_64 version of "tree".  But even after I removed all softwares installed by Homebrew and reinstalled AlphaFold2, the situation does not change.
Thanks.

(base) Epinephrine3:localcolabfold yasunorihayashi$ colabfold_batch --amber --templates --num-recycle 3 inputfile outputdir/
Traceback (most recent call last):
File "/Users/yasunorihayashi/localcolabfold/colabfold-conda/bin/colabfold_batch", line 5, in
from colabfold.batch import main
File "/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/colabfold/batch.py", line 38, in
from alphafold.common import protein, residue_constants
File "/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/alphafold/common/protein.py", line 19, in
from alphafold.common import residue_constants
File "/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/alphafold/common/residue_constants.py", line 23, in
import tree
File "/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/tree/init.py", line 23, in
from .sequence import _is_attrs
File "/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/tree/sequence.py", line 19, in
from tree import _tree
ImportError: dlopen(/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/tree/_tree.cpython-39-darwin.so, 0x0002): tried: '/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/tree/_tree.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/tree/_tree.cpython-39-darwin.so' (no such file), '/Users/yasunorihayashi/localcolabfold/colabfold-conda/lib/python3.9/site-packages/tree/_tree.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

According to the previous thread,
https://github.com/YoshitakaMo/localcolabfold/issues/103
I removed /usr/local/ folder, uninstall anything installed by Homebrew, and re-installed Colabfold.  I got warnings saying some components are missing but I managed install them by Homebrew, PIP or Conda.  Now Colabfold seems to be working.
Thanks.


Add service worker to generators

We should add a service worker to the lit-element app starter in create

Add a _sw.js with console.warn('⚙ Service worker is disabled during development and will be generated during build time.');
Add service worker registration to index.html:

<script>
  if ('serviceWorker' in navigator) {
    window.addEventListener('load', () => {
      navigator.serviceWorker.register('./sw.js');
    });
  }
</script>

My guess is that we need to overwrite the default index.html from inside the building-rollup generator with an index.html that already has this service worker registration. Maybe @daKmoR has some other thoughts about how to handle this?

Can I work on this?

For sure :)
Theres some things to iron out though:

building-rollup will now generate a service worker for you by default
If we add the _sw.js to the app generator, and we add the service worker registration to the index.html, but the user doesnt opt into using building-rollup when using npm init @open-wc, the user now has a service worker that doesn't do anything. How do we go about that? Just accept it?

@Chethan2k1 If you're interested, maybe in the meanwhile you could take a stab at https://github.com/open-wc/open-wc/issues/853 ?
cc @LarsDenBakker @daKmoR

has been implemented 👍


Switch to Spring CorsFilter

@chirino @gashcrumb This works for me and seems a bit simpler.

Codecov Report

Merging #113 into master will decrease coverage by -1.64%.
The diff coverage is 46.15%.

@@             Coverage Diff              @@
##             master     #113      +/-   ##
============================================
- Coverage     46.63%   44.99%   -1.64%
  Complexity       82       82
============================================
  Files            63       62       -1
  Lines           549      529      -20
  Branches         48       44       -4
============================================
- Hits            256      238      -18
  Misses          269      269
+ Partials         24       22       -2

Impacted Files
Coverage Δ
Complexity Δ

...n/java/com/redhat/ipaas/rest/v1/V1Application.java
0% <ø> (ø)
0 <ø> (ø)
:x:

...ipaas/rest/v1/controller/SwaggerConfiguration.java
0% <ø> (ø)
0 <ø> (ø)
:x:

...m/redhat/ipaas/runtime/IPaaSCorsConfiguration.java
50% <50%> (ø)
0 <ø> (?)

Continue to review full report at Codecov.

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

Don't think it fully works.  If you run:
$ curl http://localhost:8080/api/v1/swagger.json -H "Origin: http://localhost:8080" -I
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json
Content-Length: 16351
X-Application-Context: application
Date: Tue, 21 Feb 2017 22:13:41 GMT

Notice you don't get CORS headers.

@chirino That isn't a valid CORS request. Your Origin matches the URL hostname...
$ curl http://localhost:8080/api/v1/swagger.json -H "Origin: http://remotehost:8080" -I

HTTP/1.1 200 OK
Expires: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
X-XSS-Protection: 1; mode=block
Pragma: no-cache
X-Frame-Options: DENY
Date: Wed, 22 Feb 2017 08:32:31 GMT
Connection: keep-alive
Access-Control-Allow-Origin: http://remotehost:8080
Vary: Origin
Access-Control-Allow-Credentials: true
X-Content-Type-Options: nosniff
Content-Type: application/json
Content-Length: 16351
X-Application-Context: application:keycloak

BTW because swagger.{json,yaml} requests are simple requests, I don't expect them to require preflight requests at all. I think it's prudent for us to be explicit in open access to the swagger definitions though just to be safe.

[merge]


[GHSA-2jv5-9r88-3w3p] python-multipart  vulnerable to Content-Type Header ReDoS

Updates

Affected products

Comments
Vulnerability advisory

Hi there @Kludex! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

What's this?

Hi @justinjabo250, we can't accept this contribution because no suggested changes appear to have been made to GHSA-2jv5-9r88-3w3p. If you wish to make a change to GHSA-2jv5-9r88-3w3p, please open a new pull request with suggested changes included.


Allow users to enable/disable unit tests without having to reload VS Code

We have some code in VSC that disposes a singleton (test manager) when tests are disabled.
Users might have to reload VSC to get unit tests working if the feature is enabled once again within the same session.
            // TODO: Why are we disposing, what happens when tests are enabled.
            this.workspaceTestManagerService.dispose();
            return;

@DonJayamanne  I don't see this issue anymore, do you?

If we can't let's close this.


Fix/Reenable some RBL tests

Fixes #11137
The same-cell test just needs to be adjusted for new behavior in debugpy 1.6.3, which is actually better.
The second test seems fine and I'll investigate if it's flaky
The third wasn't checking outputs correctly, and needs a slower timeout when stepping, that is fixed
And i also launch tests with a fixed extensions-dir, which is helpful when debugging, otherwise it uses my real code-insiders extensions dir

Codecov Report

Merging #11163 (d081a5e) into main (bc5b95c) will increase coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##            main   #11163   +/-   ##
======================================
  Coverage     63%      63%
======================================
  Files        485      485
  Lines      34100    34118   +18
  Branches    5561     5563    +2
======================================
+ Hits       21586    21642   +56
+ Misses     10452    10411   -41
- Partials    2062     2065    +3

Impacted Files
Coverage Δ

src/platform/common/platform/fileSystem.node.ts
70% <100%> (ø)

src/platform/common/cancellation.ts
62% <0%> (-10%)
:arrow_down:

src/kernels/jupyter/launcher/notebookProvider.ts
71% <0%> (-4%)
:arrow_down:

src/kernels/jupyter/baseKernelConnectionWrapper.ts
35% <0%> (-3%)
:arrow_down:

src/kernels/jupyter/jupyterKernelService.node.ts
74% <0%> (-2%)
:arrow_down:

src/kernels/kernelDependencyService.node.ts
83% <0%> (-2%)
:arrow_down:

.../notebooks/controllers/vscodeNotebookController.ts
80% <0%> (-2%)
:arrow_down:

src/kernels/kernel.ts
82% <0%> (-1%)
:arrow_down:

src/platform/telemetry/index.ts
82% <0%> (ø)

src/kernels/execution/kernelExecution.ts
71% <0%> (ø)

... and 21 more


brew cu  has nothing display.

run brew cu , has nothing results display
==> Finding outdated apps
====================================================
No.  Name  Cask  Current  Latest  Auto-Update  State
====================================================
====================================================

brew cask list

What does this command give you?

brew cask list command as follows
cheatsheet    font-hack     geany         keycastr      ksdiff        launchrocket  postman

I'm running into the same problem. My brew cask list:
[~] brew cask list
Warning: Calling `brew cask` with the `--caskroom` flag is deprecated and will be disabled on 2017-10-31!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/options.rb:53:in `call'

airparrot                  diffmerge                  mono-mdk                   spotify-notifications
alfred                     discord                    ngrok                      steam
appcleaner                 disk-inventory-x           notion                     the-unarchiver
balsamiq-mockups           dropbox                    phpstorm                   transmission
bettertouchtool            flux                       pinta                      virtualbox
boom                       gimp                       postman                    visual-studio-code
chicken                    google-chrome              sequel-pro                 vlc
colloquy                   inkscape                   skype                      vlc-nightly
colour-contrast-analyser   inssider                   slack                      xquartz
commander-one              kdiff3                     spectacle
deluge                     keyboard-maestro           spotify

I can tell that some of the packages do have newer versions by using brew cask info:
[~] brew cask info gimp
Warning: Calling `brew cask` with the `--caskroom` flag is deprecated and will be disabled on 2017-10-31!
There is no replacement.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/options.rb:53:in `call'

gimp: 2.8.22
https://www.gimp.org/
/opt/homebrew-cask/Caskroom/gimp/2.8.20-x86_64 (68B)
From: https://github.com/caskroom/homebrew-cask/blob/master/Casks/gimp.rb
==> Name
GIMP
==> Artifacts
GIMP.app (app)

Note that the most recent version is 2.8.22, but the installed version is 2.8.20. Some apps auto-update themselves, so it's not a problem in those cases, but some apps don't auto-update (e.g. gimp).

Yes, my cask is also outdated

@ryb73 @JikkuJose  Could you guys please post the result of brew cu ? For me everything works fine so not sure where is the issue.

@ondrejfuhrer
[~] brew cu
==> Options
Include auto-update (-a): false
Include latest (-f): false
==> Updating Homebrew
Already up-to-date.
==> Finding outdated apps
  Cask  Current  Latest  A/U  Result

Let me know if there's more info I can provide

@ryb73  That looks suspicious. What I would suggest is to take a look on the ENV variables. What seems suspicious to me is that deprecation message. Do you have somewhere defined a different then default --caskroom ? Because there is no --caskroom definition in your command, but the brew is still complaining.
That could cause the issue, becuase I think it could happen that cu script is looking into a different caskroom then the brew cask list script

@ryb73  I would also suggest to run brew cask doctor to see if there are any issues

@ryb73  Me again 🙂  I just tested my theory and it is right. The problem here is, that you are using a deprecated option --caskroom, which you have set to /opt/homebrew-cask/Caskroom which you can see in the brew cask info output.
By default the caskroom should be /usr/local/Caskroom/ (so you also don't have any issues with permissions).
The cu script don't take into an account the --caskroom setup so it tried to get the installed casks from the /usr/local directory, but yours are in /opt.
Since the option is already deprecated and will be removed in few days, I suggest following:

you remove the --caskroom setup (probably in your .profile, .zshrc or similar
move all the installed casks from /opt/homebrew-cask/Caskroom to /usr/local/Caskroom (mv /opt/homebrew-cask/Caskroom/* /usr/local/Caskroom).

I'm not 100% sure that everything will be 100% working, if not, you will need to reinstall those casks that are not working.
Then after running brew cu you should get the result there 🙂
Let me know if that worked.

@gatspy  ad @JikkuJose  Can you guys please share an update, how it works for you?


Animations not loading on TTY (Arch, 6.8.2-arch2-1, Ly version v0.6.0.r0.g1c2be47)

I'm able to get animations (PSX Doom fire, CMatrix) to display if I run ly-dm in a terminal in an active session, but those animations will not display on my TTY.

WM (though doubtful of relevance) is sway 1.9
Distribution and kernel version in the title
Ly version in the title

This has been an issue since I started using ly (about a year ago). I'd really like to have these animations working.

I'm experiencing the same issue on Artix with Sway 1.9 with version ly v0.6.0, released on Jun 15, 2023. I see this issue was closed, but will a new release be happening soon to fix this "Animations not loading on TTY" issue?

I'm experiencing the same issue on Artix with Sway 1.9 with version ly v0.6.0, released on Jun 15, 2023. I see this issue was closed, but will a new release be happening soon to fix this "Animations not loading on TTY" issue?

I would recommend building from source (here) or installing the aur package ly-git

@jahway603 Yes, a new release is planned very soon!


uno: Eeprom example  fixes #410

This is just a fast fix. So users can avoid experiencing a bug at first place.

This patch does not solve related #406


Add a "Coding with Shards" Chapter to the Primer

[ ] Go through the basics of coding
[ ] Brief introduction to the Shards syntax

Hey team! Please add your planning poker estimate with Zenhub @ChelseaChX @ShahFragcolor


Apple Mail html part not recognized by getHtmlPart() / getHtmlStream()

Apple Mail creates a very complex, nested structure for HTML e-mail that MailMimeParser is not able to recognize correctly. Example sent as attachment directly.

Hi @postme --
This one's a bit of a funny one, the 'html' alternative part actually has multiple HTML parts within it in the example you sent (the signature is in the second, and there are some empty ones after).  I've fixed this by returning the first one by default, and by allowing you to get at multiple parts if they exist as well in the latest version.
$message->getHtmlPart() would return the first one if multiple parts exist.
$message->getAllPartsByMimeType('text/html'); returns an array, and could have more than one.
I hope this helps.  I've improved the writing process quite a bit as well, so please give it some testing if you can also and let me know how it goes.
All the best!

Hi Zaahid, the modifications work as advertised, thank you!
However a new issue pops up, as as soon as I apply removeTextPart() to the message all MIME parts are removed, including any attachments. I've created a specific anonymized test case and added it to this message.
apple-mail-test.zip
Apple for sure are the Microsoft of this decade, why on earth is Apple Mail adding multiple html or text bodies to a message? It just blows my mind anybody would contemplate such a silliness.

BTW Apple Mail madness ensues with another example of multiple bodies, this time for text/plain. I know the standard allows multiple bodies but I'm stumped why anybody would want to do this.
[54]-apple-mail-multiple-text-bodies.zip
I think your approach with getAllPartsByMimeType() is the right course of action. The trick is the removal of certain Mime Parts within the message. Maybe a crude but effective way could be to remove the text part by using the ordering in the list created by getAllPartsByMimeType()? i.e. removeHtmlPart(0) removes the first text/html part from the total list of available text/html parts? If you want to remove them all then iterate through all the available text/html parts and call removeHtmlPart($iter)?

Hmmmm... thanks @postme I'll have a think over next week when I'm back but that sounds pretty reasonable to me.  Might be worth having a removelByMimeType too?

Whoop should say removeAllByMimeType

Hi @postme
I've released another imperfect update to address this.  I've tested with removeTextPart and removeHtmlPart and added some relevant test code.  Currently if one of the alternative parts is a multipart, it considers it either an HTML or a text part... meaning if there are multiple HTML parts and attachments included in a mixed or "related" multipart, the entire block is removed.
Hopefully this is good enough for now.  The code for this part needs some cleanup to better handle it so I can create removeHtmlPart(0), etc...
Hope it helps :) if it misses something important for you now let me know.  Otherwise I'm working on a much cleaner v1.0 to address a lot of this stuff.
All the best,
Zaahid

Hi @postme -
I've just release 0.4.2 which will hopefully do this issue justice.
In addition to having the removeHtmlPart/removeTextPart with an optional index to remove a specific one, there is now removeAllTextParts, removeAllHtmlParts.  The removeAll* functions will try to remove all inline content parts of that type, and optionally remove any associated inlined parts that are common to an alternative part... consider:
multipart/alternative message
 --- text/plain part
 --- multipart/related part
      --- text/html part
      --- image/png part (with Content-Disposition: inline)

Passing true to removeAllHtmlParts would result in a text/plain message, and all other parts removed.
The default behaviour moves the image/png part to be on the message, so the message becomes a multipart/mixed message with a text/plain part and an inline image/png part.
Hopefully this finally addresses everything related to these types of messages :)
Please let me know if you notice anything else!
Thanks,
Zaahid

Works as advertised, thanks Zaahid!
Order seems to be of some importance, i.,e. first do $message->removeTextPart() before $message->removeAllHtmlParts(true); for the desired result.


Layout bug for datepicker page

Describe the bug
Datepicker layout bug
When you go to the page from sidebar menu.
Reproduction
N/A
Flowbite version and System Info
N/A

Added rel external to fix the but.


OTA to <IP_ADDRESS> breaks MMS

OTA to latest breaks MMS (see: my post on forum.sailfishos.org).
It doesn't seem isolated to just this release, as it shows up on other devices/ports. I just wanted to post here in the event it helps someone else.
A fresh flash to <IP_ADDRESS> doesn't suffer from this problem. Confirmed everything works (including MMS and camera!) with a fresh <IP_ADDRESS> flash on my Xperia XZ2.

Thanks for reporting. As it is general SFOS issue, let's close it over here. I would expect here only port-specific issues that we can and should fix.


makeStyles.js  dynamic values background: props => props

For generation unique classnames and reuse and reuse on between server request its needed to pass for dynamic properties the props for generation unique classes.
const dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, {
      link: true,
     props, <----------- This is needed for generation unique classnames if you are using a sheetsCache
      ...options,
    });

or maybe a second parameter with name key for determinisc every dynamic classes

@joacub Could you follow our issue template? I don't understand what's going on here.

@oliviertassinari sorry for the bad explain, is very simple, when have a class with dynamic value is needed pass the props to the generator because is needed for create a unique class name and not based on counter

@joacub It makes more sense. Thanks for the details. I'm trying to rely on react-jss in #16180. It should probably happen in https://github.com/cssinjs/jss/blob/329a8bcf7d5524f69af8ad37147d5ea7531b6a9f/packages/react-jss/src/utils/sheets.js#L69.
cc @kof

I still don't understand it 🤷♂

@kof for generator class names is needed some Parma’s for create a unique dynamic classnames is very simple when the class name hace some prop with function this create a link class with numeric auto increment but this logic not work with cache so is needed to know the props or other for create unique class name and no colisions

I'm closing, it's not something we will try to solve here in the long run.

The solution is very simple, pass the props in the param options...

@joacub The long term plan is to rely on react-jss and have style adapters for styled-components, etc. I believe that this change would be better applied on react-jss.