Just not working :)

Library is not working with actual Next version.
If you setting session in API handler, it will set. And it can be obtained in API handler. But if you will try to work with session in getServerSideProps(), there will be a conflict, and session will reset (rewrite). "Common" session in API handlers and in pages is not common actually.
How to reproduce:

Run following command:

yarn create next-app

with all defaults.
Result in package.json is:
...
"next": "12.0.7",
...

yarn add next-connect next-session

Result in package.json is:
...
"next-connect": "^0.11.0",
"next-session": "^4.0.4",
...

lib/get-session.js

import nextSession from "next-session";
export const getSession = nextSession();

Replace pages/api/hello.js code with following one:

import { getSession } from "../../lib/get-session.js";

export default async function handler(req, res) {
  const session = await getSession(req, res);
  session.views = session.views ? session.views + 1 : 1;
  // Also available under req.session:
  // req.session.views = req.session.views ? req.session.views + 1 : 1;
  res.send(
    `In this session, you have visited this website ${session.views} time(s).`
  );
}

In pages/index.js add:

import { getSession } from "../lib/get-session.js";

And also in pages/index.js, at bottom, add:

export async function getServerSideProps({ req, res }) {
  const session = await getSession(req, res);
  session.views = session.views ? session.views + 1 : 1;
  // Also available under req.session:
  // req.session.views = req.session.views ? req.session.views + 1 : 1;
  console.log('VIEWS-SSP', session.views);
  return {
    props: {
      views: session.views,
    },
  };
}

Run it!

yarn run dev

Visit in browser 3 times: http://localhost:3000/api/hello
Output is "In this session, you have visited this website 3 time(s)."

Now visit http://localhost:3000.

Expected server log:
VIEWS-SSP 4

Actual server log:
VIEWS-SSP 1
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res
warn  - You should not access 'res' after getServerSideProps resolves.
Read more: https://nextjs.org/docs/messages/gssp-no-mutating-res

9.1. Also, now visit http://localhost:3000/api/hello again.
Expected result: "In this session, you have visited this website 5 time(s)."
Actual result: "In this session, you have visited this website 1 time(s)."
So session just resets when we access it from getServerSideProps().

Also tried autoCommit: false. Now there are no couples of warns when I access page, but session still resetting.

Did you try it with an actual session store (backed by Redis, MongoDB). I do not understand Next.js architecture properly but perhaps there are different instances that are spinned up, causing two different MemoryStore instance. In that case, the only fix is to use a store that is backed by Redis, MongoDB, etc.

@hoangvvo

Did you try it with an actual session store (backed by Redis, MongoDB)?

No. I need MemoryStore. So I used iron-session instead.

Had similar experience with the MemoryStore yesterday. Session was randomly lost due to lost cookie on the server.
I didn't have much time to experiment. Just letting know.
I switched to cookies-next as I needed only a peristent visitor id instead session functionality.

Unfortunately, MemoryStore is meant to be used for testing and not for production used as stated in the README

Warning The default session store (if options?.store is undefined), MemoryStore, DOES NOT work in production or serverless environment. You must use a Session Store.

This is the same case with express-session. If you are looking for something to have sessions without using a store iron-session is a better solution.

@david-benes thanks, I was trying this, and iron-session either they are working.


feat: wrap an existing error into message with macro constructor

So this simplifies wrapping an error as message, rather than wrapping it as source. Isn't the latter considered a better practice?

You're correct, but that will be very similar to the practices of anyhow. I assume this is mostly used for the leaft errors, and the error we call to_report_string on does not contain a deep stack of sources.

The wrapping error is obviously not leaf, while the wrapped error would appear the same under to_string() and to_report_string() when it is the leaf.
The difference from anyhow is that, the macro here allow constructing different concrete error structs / enums while anyhow has a single error type.
Anyways there is ContextInto for wrapping an error as source.


Upgrade to Kotlin 1.6

Requirements

[ ] Check if dependencies support the 1.6 version of Kotlin.

Checklist

[ ] Upgrade.
[ ] Test.
[ ] Refactor.
[ ] Update Work in progress section in changelog.

Turn into a discussion for the moment (see #32 ).


Feature: possibility to set ticks / values manually

... so the distance - mSeekBlockLength - may vary.
The API could be like this:
... .setMax(200).setMin(0).addTick(0).addTick(10).addTick(50).addTick(190) ...
This could be used in union with setTickNum()

hi @akidee ,So sorry , not suport this , I hope this library is used in some comom situation.


Do not show default types in function and closure return values

Avoid things like

I actually like that it shows up the default types

Do you know any other cases when they are displayed? I'll gladly remove those too 😄
I personally don't think we should display the default generics at all, since they bloat the hints significantly with no immediate bonus to the reader.
Additionally, hover can display those already:

If you still want to display those in the hints, I think we'd better come up with a separate issue and good design due to the following reasons:

https://github.com/rust-analyzer/rust-analyzer/issues/1946 — a number of people have an opposite opinion and don't want extra hints displayed
this particular PR only polishes the work that had started on omitting the default types: https://github.com/rust-analyzer/rust-analyzer/pull/2594, https://github.com/rust-analyzer/rust-analyzer/pull/2894, https://github.com/rust-analyzer/rust-analyzer/pull/2657 and changing it back would require some effort
ideally, we should discuss other display option: display type aliases or types, shorten iterator types like Flatten<Chain<Chain<Once<Map<{unknown}, fn to_string<{unknown}>(&{unknown}) -> String>>, {unknown}>, Once<Option<String>>>> into impl Iterator<Item = String> or not, display closure parameters or not, etc., etc., etc.

I personally don't think we should display the default generics at all, since they bloat the hints significantly with no immediate bonus to the reader.

Yeah, agree with that, that it should not show them in the inlay hints, the way it was put made me thing not show then at all in any form of hints, hover or inlay

bors r+


Open TSC Meeting, Thursday April 2nd 2020

NOTE: This meeting is on Thursday at 9am - 10am PT
Zoom Meeting link: https://zoom.us/j/975841675
In order to give some more visibility into the topics we cover in the TSC meetings here is the planned agenda for the next meeting.  Hopefully this will allow people to plan to attend meetings for topics that they have an interest in.  And for folks who cannot attend they can comment on this issue prior to the meeting.  Feel free to suggest other potential agenda topics.
*Please submit comments below for topics or proposals that you wish to present in the TSC meeting

Topic
Owner
Decision/NextStep

$schema in Schema Object
Someone

ReadOnly / WriteOnly
TSC

Continue: discriminator (Live or Die)?
TSC

/cc @OAI/tsc Please suggest items for inclusion

FYI discriminator is part of ~JSON Schema Language~ ~JSON Data Definition Format~ JSON Type Definition: https://github.com/jsontypedef and has caused confusion for one StackOverflow user this week: https://stackoverflow.com/questions/60959556/using-discriminator-keyword-in-json-schema?noredirect=1#comment107861479_60959556

Notes from meeting:

We should add text to identify the schema as using the OpenAPI vocabulary with URI as the Id.  The Id could be,  https://spec.openapis.org/oas/3.1/schema-object   This conversation can continue in the spec channel.
Schema objects should be assumed to identify as using the $schema of the id defined in the last bullet point.
For external tools to process the JSON Schema as using an OpenAPI vocabulary users would need to include this id in the schema.

Discussed readOnly/writeOnly.  Acknowledged that to be compatible with JSON Schema we do need to make what could be considered a breaking change.  We need to investigate the impact of this change as we believe it would primarily affect people who use request payload validators that are OAS aware.  We are not sure they actually exist.


Changes to turn scrcpy into a library and hook into video frames.

You asked me to switch to "dev" branch. I have now done so.
This is continuation of work started on: https://github.com/Genymobile/scrcpy/pull/2591

Ok, just in case you want to see how this is used, you can take a look here:
https://github.com/TeofilisMartisius/scrcpy-java


how to load files in alternative to using libpd?

@funkyfourier I've gotten a bit bogged down trying to get libPD binding working with Dart FFI, specifically binding to ALSA, so I realised an easier way for my case of wanting to just run on Linux would be to just send in network messages to a running headless (-nogui) instance of standard pd.
I found an existing OSC library for Dart so I've started using that as a mechanism for sending/receiving messges from spitback, just by adding a PD patch to spitback that acts as a bridge for OSC messages to PD's internal send/receive so as not to need to modify any of the existing spitback PD files except to add this single file to main.pd.
So far I've got the basics working: I can send the libpdhost-tick message out via OSC to my external application and receive simple message that can do a [send] to set bpm so all good there.
But I'm bit confused as to how to load sample/drum wave files. I had a look at how the drumcontrolsui patch works, as I want to avoid trying to send the wav data and just have PD read the files just like the samples do and it looks like doing [send drum0-filename] with a path to a wav file should work but it doesn't seem to so I wanted to ask if I'm on the wrong track here?
Here is what I have so far in my "oschandler" patch in case it better helps explains what I'm trying to do (the [route] in this patch is intended for future use to allow me to send different combinations of messages with differing sets of parameters):

I am not 100% sure what you are doing with regards to OSC, but it seems like you have got that down. As far as I can comprehend it seems like it should work.
With regards to loading wavs in drum slots you should send [filename slot] to the receiver called [drumplayerid-filename]. In the case of the default Spitback patch, you should send the list [something.wav 0] to receiver [testdrumplayer-filename], to load something.wav to slot 0 in testdrumplayer.
Do tell if you do not figure it out, then I'll make another attempt at explaining :)

Ok, I think I discovered something here. You also have to send the samplerate to the receiver [drumplayerid-samplerate-slot]. In the following example I have made a drumplayer called "maksdrums". I can then load the wav "../../wavs/drums/kick.wav" to slot 0, and play it by sending "35 127" to "maksdrums-noteon". BUT: I also have to send the sample rate to the receiver [drumplayerid-samplerate-slot].

Sending the sample rate is probably done in the java-code of Sputter when drum-instruments are loaded, and I did not realize this had to be done in Spitback too. I'll see if I can fix that. Please leave the issue open until then. It might also be that it needs the sample rate of the wav-file, in order to play it at the right pitch. I'll look into it.

@funkyfourier thank you so much for looking at this so quickly!
That was spot on - it all works well for me now! Thanks! 👍🏻
I realise now that I didn't properly understand that I needed to add a drumplayer object with a name parameter (eg. maksdrums) and also I didn't realise I needed to send a list with the "wav-file-path" and a second list item with the slot number - I was only sending the file path.
And the Readme does mention the need to send a message to [track-id]-samplerate to set the sample rate, but I had (incorrectly) assumed I didn't need to do that if I was having PD load the wave file instead of data from the libpd host and the Readme doesn't mention that need to append -slot to the end of that receiver name, but of course it makes sense, as the rate is per wav file.
It would be nice to have to worry about sending the samplerate, but for my project this is really easy to set now I understand how to do it, so I'd say this is a very low priority issue from my point of view.
Its very exciting to have my Dart code now playing back samples out of Spitback!
Thank you again!


pgstmt: handle raw

Codecov Report

Merging #26 (a1f8cbb) into master (26d9674) will decrease coverage by 0.86%.
The diff coverage is 54.54%.

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   79.39%   78.52%   -0.87%
==========================================
  Files          19       19
  Lines         723      731       +8
==========================================
  Hits          574      574
- Misses        131      139       +8
  Partials       18       18

Impacted Files
Coverage Δ

pgstmt/build.go
79.03% <37.50%> (-8.47%)
:arrow_down:

pgstmt/arg.go
75.00% <100.00%> (-10.72%)
:arrow_down:

pgstmt/cond.go
74.22% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[secrets/template/extra-vars.yml] set meaningful postgres_host

This template is actually used when testing packit-service in Zuul.

Merging, I need this for https://github.com/packit/packit-service/pull/805

Shouldn't testing update these values with something meaningful, instead of hard-coding values here?
I think it will be confusing to someone at some point that they modify a—what they think is a—template and suddenly break testing.

@csomh is https://github.com/packit/packit-service/issues/807 what you're suggesting?

Yes. Thanks!


Linear Combination of Embeddings

Does the linear combination of embeddings mainly work due to skip connections / highway layers in the model? Without these, the embeddings from different layers will be in different vector spaces and addition does not make sense.
If the BiLM is trained without the skip/highway connections, I'd expect ELMo to either given bad results or the linear combination will have all its weight on the most informative embedding layer, while the weights for other layers will be zero. Is this intuition correct?

Yes, that is my intuition too, but I'm not sure that's the case.  We had some preliminary results using a biLM without residual connections and still found the scalar weighting to help.  We never ran any follow up experiments with the model w/o residual connections to do a careful ablation of the impact with scalar weighting, as the model w/ residual connections that we released performed better.

@matt-peters first of all thanks a lot for publishing your code, it is great to have a practical medium of your research work. I'm  currently translating your BILM code into Keras and I had a question in relation to @mihirkale815  point.

Why your group selected to not use a residual connection between the initial token embeddings and the 1st LSTM layers?  I'm talking about line 380 in bilm-tf/bilm/training.py

Based on the fact that your final goal is to produce an ELMO embedding as the weighted average of both the LSTM outputs and the initial token embedding, as it is described in your paper; wouldn't this initial residual connection "force" the network to keep the dimensions aligned? Is it not possible that after training the BILM, there will be no correlation between the initial embedding and the latter LSTM outputs, in order for the addition (weighted average) to make sense? I mean the transformation happening inside the LSTM cell has not such guaranties.

I have also some more questions with respect to the implementation that I would really want to discuss with you. Is the issues' environment the right place to add more questions or would you recommend another alternative?

We didn't start the ELMo project planning to use the linear combination of layers, that was something we discovered along way though experimentation.  As a result, the biLM architecture evolved independently of the linear combination use case (and e.g. using just the top layer is a perfectly sensible thing to do).  The details of the residual connection between just the LSTM layers was borrowed from Melis et al, "On the State of the Art of Evaluation in Neural Language Models", https://arxiv.org/abs/1707.05589 (in particular, see Figure 1 in v1 of the paper, which was the version available when we ran the experiments and wrote the paper; v2 appeared later).


[GOBBLIN-1783] Initialize scheduler with batch gets instead of individual get per flow

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[X] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1783

Description

[X] Here are some details about my PR, including screenshots (if applicable):
We seek to improve initialization time of the GobblinServiceJobScheduler upon restart or new leadership change by batching the mysql queries to get flow specs. Instead of making 1 mysql get call for each flow execution id, which scales extremely poorly with number of flows, we should group them to reduce number of calls and downtime. The entirety of the flow catalog is too large to load into memory for the GobblinServiceJobScheduler, so we use this batch functionality.

This implementation updates the getSpecsAll(int start, int count) method in the SpecStore interface that we use to achieve the batching to follow the implementation paradigm other methods of the interface follow. It also completes the method implementation for the FSSpecStore derived class of the SpecStore. This allows any consumer of the parent class SpecStore to use this functionality without caring about the specific implementation of the SpecStore used (as GobblinServiceJobScheduler does).
Tests

[X] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Update and passes existing paginated gets functionality.
The main testing for this functionality will be empirical testing to determine the batch size which results in decreasing the time needed for all the gets above. In general, the time should go down with a larger batch size but there may be an inflection point where we see diminishing returns or the memory required to store a large batch is excessive. I propose testing with batch size 100, 250, and 750 incrementally and using the time metrics emitted to settle on an appropriate size.

Commits

[X] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3640 (80d0bce) into master (13faea4) will decrease coverage by 2.77%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3640      +/-   ##
============================================
- Coverage     46.58%   43.81%   -2.77%
+ Complexity    10681     2066    -8615
============================================
  Files          2133      409    -1724
  Lines         83573    17639   -65934
  Branches       9295     2152    -7143
============================================
- Hits          38931     7729   -31202
+ Misses        41076     9052   -32024
+ Partials       3566      858    -2708

Impacted Files
Coverage Δ

...pache/gobblin/configuration/ConfigurationKeys.java

...che/gobblin/runtime/api/InstrumentedSpecStore.java

...java/org/apache/gobblin/runtime/api/SpecStore.java

...apache/gobblin/runtime/metrics/RuntimeMetrics.java

...ache/gobblin/runtime/spec_catalog/FlowCatalog.java

...apache/gobblin/runtime/spec_store/FSSpecStore.java

...gobblin/runtime/spec_store/MysqlBaseSpecStore.java

.../modules/scheduler/GobblinServiceJobScheduler.java

...etention/policy/predicates/WhitelistPredicate.java

...gobblin/runtime/commit/DatasetStateCommitStep.java

... and 1719 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Current implementation, adds scheduler then the specConsumer to list of services. I considered switching order but scheduler needs to be initialized before consuming specs and trying to add to scheduler. Need to confirm if services are initialized in that other or done concurrently. specConsumer starts consuming from the latestOffset so this should not miss any specs. The offset won't move along unless service is up and able to accept requests and our consumer is processing.

The problem can come up if we are loading flowSpecA from old value and while processing that batch there's API request to update flow and consumer calls onAdd with a newer value first, then scheduler calls with old value. It's very rare but we may want to add modified timestamp to avoid. This technically could have happened in previous case although much more rare chance with the individual gets that in between get and add spec the consumer processed a newer spec version. If we want to use modification time, need to make bigger change to store modified time with spec in DagManager or Scheduler itself perhaps.

service test looks flakey with a timeout, they pass locally. Fixed checkstyle (core tests), working on the module ones

Seems there is no change for spec monitor, I think for spec monitor, you also need to get modification time in the spec?

Good catch, I changed the getSpec function for a single URI in SpecStore to also use modification time

Minor comments, also we seems to change all the get method return modification time in the flow spec as well. Hopefully you verified that this is a backward compatible change

Tests pass (other than when you compare user generated spec to retrieved one which requires some change). Logically this should be backwards compatible, since we added a property not removed. Other Specs should also be able to add properties as needed to the Config.


Add AI Boost

It's not related to this repo, however you can introduce it on Awesome AI Tools , Find AI Tools on Reddit and Altern


Update button allows for multiple clicks...

The main 'Update' button allows a user to double/triple/etc -click the button, seemingly starting multiple update processes, as the status text on the right is doubled/tripled.

I wonder if this is related to #57; perhaps those users are double-clicking and not realizing or stating such?

Is this still happening with v1.5.7?

I can confirm that this no longer happens as of v1.5.7 on the same Windows 10 system where it was previously encountered.

OOPS, spoke too soon.  With a triple click, it seems like it behaved differently, but I was seeing DOUBLE log entries, but then also a triple "No updates found" dialog at the end (had to click OK 3 times).
I'm unsure why I was seeing double log entries as opposed to triple, unless the 'timing' was off and I just didn't notice.
Ending of my log looks as follows, after what I assume was registered as a triple click of "Update" to the Current Directory (an SD card):
-------------
-------------
Checking Core: Spiritualized.Megaduck
Checking Core: Spiritualized.Megaduck
1.0.2 is the most recent release, checking local core...
1.0.2 is the most recent release, checking local core...
local core found: 1.0.2
local core found: 1.0.2
Looking for Assets
Looking for Assets
Up to date. Skipping core
Up to date.  Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.Odyssey2
Checking Core: Spiritualized.Odyssey2
1.0.2 is the most recent release, checking local core...
1.0.2 is the most recent release, checking local core...
local core found: 1.0.2
local core found: 1.0.2
Looking for Assets
Looking for Assets
Already installed: o2bios.bin
Already installed: o2bios.bin
Already installed: SP128_03.BIN
Already installed: SP128_03.BIN
Already installed: SP128_04.BIN
Already installed: SP128_04.BIN
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.SG-1000
Checking Core: Spiritualized.SG-1000
1.2.0 is the most recent release, checking local core...
1.2.0 is the most recent release, checking local core...
local core found: 1.2.0
local core found: 1.2.0
Looking for Assets
Looking for Assets
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.SMS
Checking Core: Spiritualized.SMS
1.2.0 is the most recent release, checking local core...
1.2.0 is the most recent release, checking local core...
local core found: 1.2.0
local core found: 1.2.0
Looking for Assets
Looking for Assets
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.Studio2
Checking Core: Spiritualized.Studio2
1.0.2 is the most recent release, checking local core...
1.0.2 is the most recent release, checking local core...
local core found: 1.0.2
local core found: 1.0.2
Looking for Assets
Looking for Assets
Already installed: rca2bios.bin
Already installed: rca2bios.bin
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.SuperGB
Checking Core: Spiritualized.SuperGB
1.0.3 is the most recent release, checking local core...
1.0.3 is the most recent release, checking local core...
local core found: 1.0.3
local core found: 1.0.3
Looking for Assets
Looking for Assets
Already installed: sgb_snes.smc
Already installed: sgb_snes.smc
Already installed: sgb_boot.bin
Already installed: sgb_boot.bin
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.Supervision
Checking Core: Spiritualized.Supervision
1.0.0 is the most recent release, checking local core...
1.0.0 is the most recent release, checking local core...
local core found: 1.0.0
local core found: 1.0.0
Looking for Assets
Looking for Assets
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------
Checking Core: Spiritualized.VideoBrain
Checking Core: Spiritualized.VideoBrain
1.0.0 is the most recent release, checking local core...
1.0.0 is the most recent release, checking local core...
local core found: 1.0.0
local core found: 1.0.0
Looking for Assets
Looking for Assets
Already installed: uvres1.bin
Already installed: uvres1.bin
Already installed: uvres2.bin
Already installed: uvres2.bin
Up to date. Skipping core
Up to date. Skipping core
-------------
-------------

I have the same issue. updates were slow to start the other day and I clicked the button a couple more times. Every command was repeated a total of 3 times.

The PR here  should hopefully address it if it gets merged.

@DiskJunky Thanks for doing that! Please check and see if the issue is resolved with v1.5.8

v1.5.8 has fixed this issue for me.
I could reproduce the problem consistently on v1.5.7 and cannot force it to happen at all in v1.5.8.

@RetroDriven, confirmed addressed in v1.5.8


Docs - Docker 0.13.1 upgrade instructions

Describe your changes :

I worked on the ..... because ...

Type of change :

[x] Bug fix
[x] Improvement
[x] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

I left a few comments. Should we also add that users should first perform these upgrade steps in their staging environment to valid everthing is ok.

Thanks for proof reading @TeddyCr. Updated a few things based on your comments. Let me know your thoughts.


Migration to Workflow (and Adaptive Cards) for Laravel Notifications

This package is wonderful (congrats)! How much would you be willing to collaborate with the semi-official channels package(s) for MS Teams? https://github.com/laravel-notification-channels/microsoft-teams

Hello Peter,
Thank you for the kind words! I'm glad you find the package useful. I would
be more than willing to collaborate with the semi-official channels package
for Microsoft Teams. I believe this could bring great value to the Laravel
community, and I'm excited about the possibilities. Please let me know how
we can get started!
On Mon, 26 Aug 2024, 12:13 am Peter Thomson, @.***>
wrote:

This package is wonderful (congrats)! How much would you be willing to
collaborate with the semi-official channels package(s) for MS Teams?
https://github.com/laravel-notification-channels/microsoft-teams
—
Reply to this email directly, view it on GitHub
https://github.com/osa-eg/laravel-teams-notification/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ASHGDO7GB4YVKTV2BJTXU7LZTJCG5AVCNFSM6AAAAABNC3RWOOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DKNBWG4YDANQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Is this collab happening soon?


Multiple compile errors when running the React test project

Describe the bug
I downloaded the react example app. And when running it I get the following errors.
How can I fix this?
To Reproduce
Steps to reproduce the behavior:

Download the react example app
npm install
npm start

Screenshots

Desktop (please complete the following information):

MacOs

Fixed by using npm link


Insert svg Title component in layers

Current Behaviour
Title component is an html element
Desired Outcome
Title can be inserted as an svg element in layers

Solved by using a separate Title component in PR Title component with nivo ResponsiveWrapper #115.


Update go bindings to support YAML ref tests

This updates the go bindings. Not expected to work unless the old tests are replaced with the new yaml ones.

Great work!


Keybindings continuation

Why the change to bool? I can see you are using"

null for when no key is bound
false for when key is bound but no action was taken (e.g. right)

But to me it seems like those are both the same things (i.e. carry on with ProcessKey method as normal).  I can see you have changed it so now when it returns false then the ProcessKey method exits early? Is that the only reason? is there a control where it wasn't working before with just the bool return?

I can see you have changed it so now when it returns false then the ProcessKey method exits early?

Yes, was the principal reason.

Is that the only reason? is there a control where it wasn't working before with just the bool return?

No. If I had had this idea before maybe I had made the changes to TextView differently in relation to tracks. I felt the lack of being able to return early if the function returns false. In these cases I would use functions that would return null after its execution and would continue to run forward.
But if you don't like this change I can undo it.

Ah I think I understand now.  Lets keep the change.


Add Gregrox's Multi Color Suit Pack 2.0 from SpaceDock

This pull request was automatically generated by SpaceDock on behalf of GregroxMun, to add Gregrox's Multi Color Suit Pack 2.0 to CKAN.
Mod details:
name = /mod/2030/Gregrox%27s%20Multi%20Color%20Suit%20Pack%202.0
author = GregroxMun
abstract = Update of my IVA/EVA colored suits pack for the new 1.5 suit models.
license = CC BY-SA 4.0
Homepage =
description = The spiritual successor to GregroxMun's Colored IVA/EVA Suits, the Multi Color Suit Pack is a stockalike set of space suit textures for TextureReplacer which adds recolored versions of the space suits which match the Veteran space suit texture.
The new version also includes white variants, which use the default white and pale blue space suits as their basis.
Included texture colors (with their intended class) in the default version are:

Orange (Veteran)
Yellow (Pilot/Engineer)
Red (Engineer/Pilot)
Blue (Scientist)
Green (Commander)

The extras folder also includes:

Black (Secret Agent)
Very Black (Ninja?)
Grey (Cadet or Tourist)
Pink (Token Female Cartoon Character?)
Turqoise (Medic)
White (Cadet or VIP)
Green+GreenHelmet (Christmas Elf)
Red+RedHelmet (Santa Claus)

I included the christmas variants in this download in case I don't get around to updating Winter Kerbol for 2018.
For the full-color variants, the EVA suits use the EVA gloves and boots, as my old suit pack did. Feel free to replace the eva texture with the iva texture if you don't like it.
Images:
Album: https://imgur.com/a/vCcmQsU
EVA Lineup:

Yellow

Blue

Orange

Green

Red

EVA Lineup 2

If there is sufficient interest, I might decide to make variants of the Orange Veteran suit with the different basic colors, since that was a feature in the old version.
This texture pack shares some similarities with Gordon's Coloured EVA and IVA Suits for KSP 1.5, because both packs are based upon my original texture pack for pre-1.5. My main reason for updating the pack was that I didn't like the stripe colors on the helmets in his version. His version has a few other differences, and may be worth a look as an alternative. However, despite the similarities, these textures are based upon the stock textures.
Please direct questions about this pull request to GregroxMun.

This was added in #6960.


Update Modernizr to newest release

The Modernizr team released the long-awaited version 3.0. We should look into updating our build process when grunt-modernizr is officially updated, and also using official versions of tests that we had previously manually included, like the CSS3 :checked selector test.

Oh, here's another one that's been done. 🎯 Closing!

YAIS @DFurnes 👏


python-pygame for all Ubuntu versions

pygame is necessary for korg_nanokontrol, and it's the same dependency name on all versions of Ubuntu.
squish

+1


Investigate

Codecov Report
Attention: Patch coverage is 76.71233% with 17 lines in your changes missing coverage. Please review.

Project coverage is 72.20%. Comparing base (5b93f3a) to head (50abf90).
Report is 1 commits behind head on main.

Files with missing lines
Patch %
Lines

...mental_experiment/torch_interpreter/interpreter.py
72.00%
14 Missing :warning:

experimental_experiment/xbuilder/graph_builder.py
90.00%
2 Missing :warning:

...al_experiment/torch_interpreter/_aten_functions.py
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #292      +/-   ##
==========================================
- Coverage   72.73%   72.20%   -0.54%
==========================================
  Files         170      174       +4
  Lines       27548    28196     +648
==========================================
+ Hits        20038    20359     +321
- Misses       7510     7837     +327

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


TYPO: In README

The package title is misspelled in the README in one of the instance.

@jadKhoury1 can I create a PR to fix this?


Add Radiant MLHub Models API tutorial

Adds a tutorial for accessing model metadata available in the Radiant MLHub API.
Sorry, @TomAugspurger, I meant to put this in the before the holidays, but it slipped my mind with everything else going on.

Thanks @duckontheweb, looks good. Can you run the linter / formatter to get CI passing? https://github.com/microsoft/PlanetaryComputerExamples/blob/main/CONTRIBUTING.md should get you set up.

Thanks @duckontheweb, looks good. Can you run the linter / formatter to get CI passing? https://github.com/microsoft/PlanetaryComputerExamples/blob/main/CONTRIBUTING.md should get you set up.

Sorry about that, I should probably set up the pre-commit hooks...
Fixed these issues in the latest commit.

Thanks!


Replace mcuboot flash_map by zephyr flash_map module

zephyr has now compatible flash _map module - should be us instead of mcuboot one. It will also help with serve external flash for zephyr targets.

@nvlsianpu could you take a look at this this week?

OK, will look at this.

Issue was resolved by #268.

@utzig Can you close this?


feat: use TypeScript types exports map

See https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing and https://github.com/dotansimha/graphql-yoga/issues/1217
Related

https://github.com/kamilkisiela/bob/issues/39

Bob needs to be updated

Closed in favor of https://github.com/dotansimha/graphql-yoga/pull/1306


Output name in genome annotation confuses users

We have had a user put the specific strain identifier in the output name, and not in Organism name.  There she just used genus and species, and thus lost her strain designation.  What is the excellent reason for making the users write the name twice into two separate boxes on the same input box?

closed as duplicate of #307


Applying Only Channel Gating

Hi,
Thanks for the code of your work.
Could you please suggest how can I perform the ablation study of applying only channel gating. I commented out all the lines here but I am getting constant ratio of real flops and ori flops despite setting the target density between 0.3 to 0.7. I am unable to understand if I am making any errors regarding this. Please help.
Thanks

You can first remove all modules and variables related to the spatial mask in the model, and then modify the FLOSs statistics in the model and the losses in regularization.py.

Thank you.


Preview contains unexpected 'Space' terms with Combine mappings

Related to ENTESB-14981

Unreproducible. Initial problem due to bad mapping file.


Error installing in macos

Command used to install:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/boxart-buddy/boxart-buddy/main/install.sh)"

Error gived:

I was able to resolve the bug editing the line 33 of install.sh file
elif [[ "$ID" == "rhel" || "$ID" == "centos" || "$ID" == "fedora" || "$ID" == "almalinux" || "$ID" == "rocky" ]]; then

can you change to resolve for other users?

Thanks for this report. I'll push a fix for this tomorrow.


SEPA: cancel

Add cancel operation to pay and credit

Coverage remained the same at 100.0% when pulling e2d80cdca0fa70e2f5f25491490b6dad0d703e36 on Trimnosh:59-sepa into 6af70271b541139bc24d0c91a40be0e826958dcd on wirecard:59-sepa.

Coverage remained the same at 100.0% when pulling bf3acad0b9fe7b26daa7dda1914fd4d4a6cad08e on Trimnosh:59-sepa into 6af70271b541139bc24d0c91a40be0e826958dcd on wirecard:59-sepa.

Coverage remained the same at 100.0% when pulling 421178d75a183b97478c500227831b9c01df42a8 on Trimnosh:59-sepa into 6af70271b541139bc24d0c91a40be0e826958dcd on wirecard:59-sepa.

Coverage remained the same at 100.0% when pulling 54ddcb2dd9491366b84ad221f725c000d8ab6068 on Trimnosh:59-sepa into 6af70271b541139bc24d0c91a40be0e826958dcd on wirecard:59-sepa.

Coverage remained the same at 100.0% when pulling f1dcfba3d6d75b7fee005687f7d8c21852db1c39 on Trimnosh:59-sepa into 6af70271b541139bc24d0c91a40be0e826958dcd on wirecard:59-sepa.


Fixing log message when secret not found

Description of changes:
Logger panics because error key was not specified.
2024-04-29T17:11:34.682Z	PackageBundleController	odd number of arguments passed as key-value pairs for logging	{"ignored key": "Secret \"registry-mirror-secret\" not found"}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


added gimbal

The Pull Request resolves Issue #[Issue-Number]
Description:
Added the word gimbal

Mistakenly deleted a directry


Writer does not have any virtual methods

What steps will reproduce the problem?
1.  Create a PrettyWriter
2.  Pass PrettyWriter into a method which takes a Writer

What is the expected output? What do you see instead?
I would expect that since PrettyWriter is a subclass of Writer, methods with
the same name would be called on PrettyWriter.  But since Writer has no virtual
methods, the Writer methods are called instead of the PrettyWriter

What version of the product are you using? On what operating system?
0_11

Please provide any additional information below.
Examples that should be virtual in Writer.h:
  StartObject()
  WriteObject()
  String()
  StartArray()
  EndArray()

ext.  Any method in PrettyWriter that is a duplicate of Writer.  This seems
like it would even generate a warning the in the compiler.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 8 Aug 2013 at 6:10

Original comment by<EMAIL_ADDRESS>on 20 Jun 2014 at 11:20

Changed state: WontFix

The design of rapidjson prevents polymorphism due to performance consideration.

However, if you would like to, you can create a base class with virtual
functions and wrap the current writer/prettywriter classes as its derived
classes.

The accept function should still work.

Original comment by<EMAIL_ADDRESS>on 12 Aug 2013 at 8:52


Update farm reload after farm creation

Changes

added previously removed event emitter in create farm
added prop change listener and changer in parent that emits reload farms in child

Related Issues
#3471
Tested Scenarios

created a farm, waited for reload then created another farm and waited for reload
need to wait 30seconds after farm creation for reload
tested it after page refresh

Checklist

[x] Screenshots/Video attached (needed for UI changes)
https://www.loom.com/share/1a0590819e504839b53fb95f59b4a758?sid=ef2a05d8-fd91-4688-b000-e80dd8263b0e

So, there's no reload bar? I think we still need it, as the user doesn't know how much time he should wait.

So, there's no reload bar? I think we still need it, as the user doesn't know how much time he should wait. @AhmedHanafy725 what do you think ?

if we add a reload bar it wont be consistent with the behavior of other tables in the dashboard. so best to leave it as it is.


JUnit/XUnit Integration

Issue Template
Issue Type

[ ] Bug
[x] Enhancement

Description

Does any of the integrations in use allow the import of a JUnit/XUnit test case file?
Is this kind of integration planned?

Best regards
Janosch

Hello @Phylu, would you mind providing some more detail? Would you like the file attached to the engagement for a security engineer to use or something else?

Hello @aaronweaver, sure!
I would like to use a JUnit file as an import for the scan results similar to the other integrations. If a security scanner gives the output as JUnit XML file states certain tests and their status.
I was thinking about it being imported as an engagement or into an engagement where each test described in the XML file will be a test in DefectDojo and any failed test will show up the issues that failed as findings.
Does that clarify the question?

@Phylu thanks that makes sense. Would you have a couple sample files that you could attach so that I could gauge the effort?

@aaronweaver Sorry for the delay. Here are some sample files containing failures (where a vulnerability was found), scans that did not find anything and errors (where a vulnerability scan could not be conducted).
<?xml version="1.0" ?>
<testsuites disabled="0" errors="1" failures="6" tests="10" time="9842.0">
        <testsuite disabled="0" errors="1" failures="6" name="Crashtest Security Suite" skipped="0" tests="10" time="0">
                <testcase classname="example.org" name="Fingerprinting (1)">
                        <failure message="The webserver is running Apache 2.4.7" type="medium"/>
                </testcase>
                <testcase classname="example.org" name="Fingerprinting (2)">
                        <failure message="Found PHP running in version 5.5.9-1ubuntu4.14." type="medium"/>
                </testcase>
                <testcase classname="example.org" name="CVE-2015-8867">
                        <failure message="The openssl_random_pseudo_bytes function in ext/openssl/openssl.c in PHP before 5.4.44,5.5.x before 5.5.28, and 5.6.x before 5.6.12 incorrectly relies on the deprecated RAND_pseudo_bytes function, which makes it easier for remote attackers to defeat crypt" type="medium"/>
                </testcase>
                <testcase classname="example.org" name="SSL/TLS (1)">
                        <failure message="SSLv3 is offered by the server." type="high"/>
                </testcase>
                <testcase classname="example.org" name="SQL Injection (1)"/>
                <testcase classname="example.org/vulnerabilities/xss_r/" name="XSS (1)">
                        <failure message="Found possible XSS vulnerability on site https://example.org/vulnerabilities/xss_r/. The parameter 'name' seems vulnerable for payload '<svg "ons>'" type="high"/>
                </testcase>
                <testcase classname="example.org/vulnerabilities/xss_r/" name="XSS (2)">
                        <failure message="Found possible XSS vulnerability on site https://example.org/vulnerabilities/xss_s/. The parameter 'mtxMessage' seems vulnerable for payload '<svg "ons>'" type="high"/>
                </testcase>
                <testcase classname="example.org" name="CSRF (1)"/>
                <testcase classname="example.org" name="File Inclusion (1)"/>
                <testcase classname="example.org" name="Command Injection (1)">
                        <error message="Could not connect to application" type="error"/>
                </testcase>
        </testsuite>
</testsuites>

<?xml version="1.0" ?>
<testsuites disabled="1" errors="0" failures="0" tests="7" time="1423.0">
        <testsuite disabled="0" errors="0" failures="0" name="Crashtest Security Suite" skipped="1" tests="7" time="0">
                <testcase classname="example.org" name="Fingerprinting" />
                <testcase classname="example.org" name="SSL/TLS" />
                <testcase classname="example.org" name="SQL Injection (1)">
                        <skipped message="Skipped as won't fix" type="skipped"/>
                </testcase>
                <testcase classname="example.org/vulnerabilities/xss_r/" name="XSS" />
                <testcase classname="example.org" name="CSRF"/>
                <testcase classname="example.org" name="File Inclusion"/>
                <testcase classname="example.org" name="Command Injection" />
        </testsuite>
</testsuites>

A description of the XML format is found here: http://llg.cubic.org/docs/junit/
Does that help? Do you need anymore information?

@aaronweaver Is there any way, I could help with this issue? Is there some documentation about how to write such a plugin?

@Phylu certainly, take a look at this short wiki link: https://github.com/DefectDojo/django-DefectDojo/wiki/Creating-a-new-importer-(scanner) Let me know if you have any questions.

I just started working on this issue here: https://github.com/Phylu/django-DefectDojo


Test analysis my router

Hi Zerbea I hope everything goes well your advice is always precious to me, in these days I have carried out several tests for study and analysis, but I have noticed that in some tests I have not received PMKID but I still received the four-way handshake
Question: in the handshake I acquired can I continue with hashcat or do I have to trash it ?
In the acquired file obviously I have the final WARNING message but I still have a handshake
Warning: missing frames!
This dump file does not contain undirected proberequest frames.
An undirected proberequest may contain information about the PSK.
It always happens if the capture file was cleaned or
it could happen if filter options are used during capturing.
That makes it hard to recover the PSK.
hcxpcapngtool vector1.pcapng
reading from vector1.pcapng...
summary capture file
file name................................     : vector1.pcapng
version (pcapng).........................: 1.0
operating system.........................: Linux 5.9.0-kali2-amd64
application..............................     : hcxdumptool 6.1.4-1-g9c03887
interface name...........................  : wlan1
interface vendor.........................  : 20f41b
openSSL version..........................: 1.1
weak candidate........................... : 12345678
MAC ACCESS POINT..................: 7ce4aabd3b0a (incremented on every new client)
MAC CLIENT...............................: e804106e21f4
REPLAYCOUNT...........................: 62670
ANONCE..................................   .: 896350968c5b2e60ba4cf3f2e337b25b4caff1833ed8990e4ba53edfb4b096a3
SNONCE...................................   : cdf333e678d93b2292d063219c0ffe3c3e9c467e5e6cb8545b3f982218670d62
timestamp minimum (GMT)..........: 05.12.2020 20:31:52
timestamp maximum (GMT)..........: 05.12.2020 20:35:35
used capture interfaces.................: 1
link layer header type................... : DLT_IEEE802_11_RADIO (127)
endianess (capture system)......... : little endian
packets inside...........................     : 300
BEACON (total)...........................   : 1
PROBERESPONSE...................... : 1
AUTHENTICATION (total)..............: 3
AUTHENTICATION (OPEN SYSTEM)......: 3
ASSOCIATIONREQUEST (total)...............: 2
ASSOCIATIONREQUEST (PSK).............  : 2
EAPOL messages (total)...................        : 291
EAPOL RSN messages.......................      : 291
ESSID (total unique)....................              .: 1
EAPOLTIME gap (measured maximum usec)....: 81437
EAPOL ANONCE error corrections (NC)......: not detected
REPLAYCOUNT gap (measured maximum).......: 18
EAPOL M1 messages (total)................: 279
EAPOL M2 messages (total)................: 4
EAPOL M3 messages (total)................: 4
EAPOL M4 messages (total)................: 4
EAPOL pairs (total)......................: 10
EAPOL pairs (best).......................: 2
EAPOL M32E2 (authorized).................: 2
Information: no hashes written to hash files
Warning: missing frames!
This dump file does not contain undirected proberequest frames.
An undirected proberequest may contain information about the PSK.
It always happens if the capture file was cleaned or
it could happen if filter options are used during capturing.
That makes it hard to recover the PSK.
session summary
processed pcapng files................: 1
Thanks Zerbea always a hug for your advice ....

I assume you used filter options when capturing. So the warning is absolutely normal, because some frames are filtered out by options. Some APs doesn't calculate a PMKID. In this case, you have to use the EAPOL message pair.
Running
$ hcxpcapngtool -o test.22000 vector1.pcapng
will convert convert the EAPOL message to hashcat 22000 format.
Now run
$ hashcat -m 22000 test.22000 your_wordlist
to recover the PSK.
To get some information about the converted hash file run
$ hcxhashtool -i test.22000 --info=stdout
Closed this, because it isn't an issue, but you can still ask your questions, here.

Thanks Zerbea for the answer, yes I used filter options same commands as the messages posted in days back using  --bpfc= I needed to understand and now I have confirmation thanks to your answers I continue my study analysis test thanks a hug

You should know that most of the APs are hardened and most of the CLIENTs are weak. Regarding this, you will get much more information from a CLIENT than from an AP. That include EAPOL messages (unencrypted EAPOL M2 from a CLIENT), a PMKID (if used by the CLIENT) and possible a PSK in  the clear (in PROBEREQUEST and or EAP-ID).
In other words: to recover the PSK for a network you don't need to attack an AP. You don't need to be in range of an AP. You can retrieve all information (and more) from a CLIENT. That is called an AP-LESS attack and hcxdumptool will show you M1M2ROGUE.
Get an example from here:
https://github.com/evilsocket/pwnagotchi/issues/835#issuecomment-598597214
From this EAPOL messages we are able to recover the PSK:
M1M2ROGUE = hcxdumptool request M2 (CHALLENGE) from a CLIENT
PMKIDROGUE = hcxdumptool REQUEST PMKID from an AP
M1M2 = hcxdumptool captured M1 from the AP and M2 (CHALLENGE) from the CLIENT
M2M3 = hcxdumptool captured M3 the AP and M3 from the CLIENT
M3M4 = hcxdumptool captured M3 the AP and M4 from the CLIENT
M1M4 = hcxdumptool captured M1 from the AP and M4 from the CLIENT
EAPOL M1 and M2 are unencrypted, while EAPOL M3 and M4 are encrypted.
From this messages we are not able to recover the PSK, because the SNONCE of the CLIENT is zeroed
M3M4ZEROED = hcxdumptool captured M3 the AP and M4 from the CLIENT
M1M4ZEROED = hcxdumptool captured M1 from the AP and M4 from the CLIENT

Hi Zerbea sorry if I still answer now due to work shifts, yes now I am focusing only on client-side acquisition using two modes
General client:   (with bpf protect)
hcxdumptool -i wlan1 -o client.pcapng --tot=1440 --bpfc=protect.bpf --disable_deauthentication --disable_ap_attacks --active_beacon -c 1,2,3,4,5,6,7,8,9,10,11,12,13 -t 3600 --enable_status=15
Single AP client:  (with bpf attack)
hcxdumptool -i wlan1 -o client.pcapng --tot=1440 --bpfc=attack.bpf --disable_deauthentication --disable_ap_attacks --active_beacon -c 1,2,3,4,5,6,7,8,9,10,11,12,13 -t 3600 --enable_status=15
I hope that with these commands I should have the highest number of packet capture, if you have to suggest or refine these commands help me to add more filters.
Now a question if possible in your opinion attacking a single client with the same command as above putting in bpf MAC_Client and not MAC_AP in bpf ATTACK mode I have the same acquisition result as when I attack AP with bpf ATTACK I explain better with the commands:
Single AP client: client acquisition on AP (with bpf attack MAC_AP)
hcxdumptool -i wlan1 -o client.pcapng --tot=1440 --bpfc=attack.bpf --disable_deauthentication --disable_ap_attacks --active_beacon -c 1,2,3,4,5,6,7,8,9,10,11,12,13 -t 3600 --enable_status=15
Single client:  acquisition directly on the client (with bpf attack MAC_Client)
hcxdumptool -i wlan1 -o client.pcapng --tot=1440 --bpfc=attack.bpf --disable_deauthentication --disable_ap_attacks --active_beacon -c 1,2,3,4,5,6,7,8,9,10,11,12,13 -t 3600 --enable_status=15
of course on MAC_Client not random but with static MAC
Thanks always for your great advice I owe my results to you thanks ..

If you are targeting CLIENTs, I recommend a smaller channel list (-c 1,9,6,3,11).
You can be sure that  every CLIENT will find hcxdumptool.

I was convinced to enter all channels to have a total acquisition on all channels thanks for this suggestion ...

You commands doing nearly the same. In your case, both of them are targeting a connection between the CLIENT and the AP.

so if i want a single client with static MAC i shouldn't put it in bpf attack

A CLIENT will scan all channels for "his" AP. So you can simply wait for him until he arrived on hcxdumptool channel. We use three crowded channels (1,6,11) and two less crowded channels (3 and 9) to give him the chance to connect to us.

Most (nearly all) of the CLIENTs use MAC randomization, when sending PROBEREQUESTs. Adding a static MAC of a CLIENT to an attack filter will reduce the chance that the CLIENT find hcxdumptool by 100%!

ok on the channels now I understand well, for the rest I think that filters are fine or should I add other filters to have an accurate acquisition ?

You should notic, that hcxdumptool stops to respond to a CLIENT if it retrieved his M2 or his PMKID. You can control this behavior with stop_client_m2_attacks.
--stop_client_m2_attacks=<digit>   : stop attacks against CLIENTS after 10 M2 frames received
                                     affected: ap-less (EAPOL 2/4 - M2) attack
                                     require hcxpcangtool --all option

Please notice:
A CLIENT can have more than one AP in his wpa-supplicant.conf!

well thanks for this last tip i will go with general client bpf protect

Filters make sense if you attack a single AP. They always make sense to protect your own devices.
But they never make sense when attacking a CLIENT!

the day before yesterday I was trying to understand well in the guide --stop_client_m2_attacks =
in fact it is excellent as an addition

thanks now I understand the client side, my in-depth study is largely due to your teaching thank you very much

now I disconnect and continue with the tests thanks again for the help .... a hug

Glad that I could help.

BTW. why bpf and not whitelist/blacklist?

The BPF is written in a special code which is based on logical and comparison operators.
So, working as whitelist or blacklist depend on the code (eg.: and, not, or, ...).
Read more here:
https://biot.com/capstats/bpf.html
BTW:
hcxdumptool doesn't have a BPF compiler build in and therefor it use the BPF compiler from tcpdump.

Hello Zerbea, a question about a test.pcapng captured file if you would like to review the waterfall screen at a later time you can review this screen example:
8:10:28   6 ffffffffffff 101xxxxfc479 AP [BEACON]
8:10:43   5 507xxxx1d6dd 008xxxx35459 AP [ROGUE PROBERESPONSE]
8:11:28   6 4c1xxxxdd479 101xxxxfc479 AP [EAPOL:M1M2 EAPOLTIME:3320 RC:4 KDV:2]
8:11:28   6 4c1xxxxdd479 101xxxxfc479 AP [EAPOL:M2M3 EAPOLTIME:8947 RC:5 KDV:2]
8:11:28   6 4c1xxxxdd479 101xxxxfc479 AP [EAPOL:M3M4ZEROED EAPOLTIME:2836 RC:5 KDV:2]
8:11:29   6 4c1xxxxdd479 008xxxx3545a AP [ROGUE PROBERESPONSE]
8:11:29   6 4c1xxxxdd479 101xxxxfc479 AP [PROBERESPONSE]
8:11:30   6 4c1xxxxdd479 101xxxxfc479 AP [AUTHENTICATION]]
8:12:08   6 4c1xxxxdd479 101xxxxfc479 AP [EAPOL:M1M2 EAPOLTIME:3807 RC:3 KDV:2]
8:12:08   6 4c1xxxxdd479 101xxxxfc479 AP [EAPOL:M2M3 EAPOLTIME:7494 RC:4 KDV:2]
8:12:08   6 4c1xxxxdd479 101xxxxfc479 AP [EAPOL:M3M4ZEROED EAPOLTIME:3408 RC:4 KDV:2]
I don't remember the command for redisplaying on an already acquired file
thank you always for your patience on me ....

There is no command to redisplay the waterfall output in hcxtools, because tshark and Wireshark will do the job.
This is the simplest example to display the waterfall:
$ tshark -r test.pcapng
There are many, many filter options to filter the waterfall on what ever you want, e.g.:
$ tshark -r test.pcapng -T fields -e frame.number -e frame.time -e wlan.sa -e wlan.da
$ tshark -r test.pcapng -T fields -e wlan.ta -e wlan.ssid -e wps.device_name -e wps.serial_number

Please read more here:
https://www.wireshark.org/docs/man-pages/tshark.html
To view the converted content in hcxtools, convert it using hcxpcapngtool -o -e -i -u options and take a look inside the files.
For the hash file (-o output of hcxpcapngtool) use hcxhashtool or a text editor (e.g. geany)
For the other files (-e -i-u output of hcxpcapngtool) use text editor (e.g. geany).

Thank you very much Zerbea I was looking for these commands thanks ....

The BPF is written in a special code which is based on logical and comparison operators.
So, working as whitelist or blacklist depend on the code (eg.: and, not, or, ...).
Read more here:
$ man bpf
or here:
https://biot.com/capstats/bpf.html
BTW:
hcxdumptool doesn't have a BPF compiler build in and therefor it use the BPF compiler from tcpdump.

I mean.. I know what's BPF, I'm asking why should we use BPF filtering and not hcxdump's whitelist/blacklist feature itself.

The BPF is part of the kernel and extreme fast, while the filter list is running in user space. It will take some CPU cycles.
Additional, the BPF is working as a display filter, too.

Hi Zerbea I just wanted to wish you a good day before I go to work, the study and analysis continue with excellent results I will never stop thanking you for the great development work for these tools with attention to the smallest details ... hugs.

You're welcome.
I worked in this fields (signals analysis and crypto analysis) for more than 35 years and immensely enjoyed this work.
And I'm still learning.

Hi Zerbea, as always I am reading the info manual and I would say well done with attention to detail, but reading I focused on a note that you make if you use the --all command while converting the file just acquired  *** .pcapng** I prefer the command --all all hashes, but you noted this
--all  : convert all possible hashes instead of only the
best one that can lead to much overhead hashes
need hashcat --nonce-error-corrections >= 8
so advice for those who use the --all command to use in hashcat  --nonce-error-corrections=8
the question is: do I have to use --nonce-error-corrections=8 every time I use --all or you refer to conversions of scanned files from other programs not belonging to your toolkit and advice in that case to use --nonce -error-corrections=8 ?
and then how do I understand that in the converted file example test.22000 there are overhead hashes where I should see the errors in this command hcxhashtool -i test.22000 and here it should show any errors ?
Thanks as always...

First you have to understand how nonce-error-corrections is working.
Usually an AP increment replaycount on evvery EAPOL 4way handshake. That looks like this:
M1 RC 0
M2 RC 0
M3 RC 1
M4 RC 1
If the EAPOL timer is not resetted, next 4 way looks like this:
M1 RC 2
M2 RC 2
M3 RC 3
M4 RC 4
Some APs don't do this. Instead the increment their ANONCE:
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb7
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb8
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb9
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbba
To calculate a valid message pair, we need this ANONCE (comming from an AP) and matching SNONCE (comming from a CLIENT). Running a passive dumper, it can happen that some of the EAPOL packets get lost and we are not able to find a matching pair.
nonce-error corrections is able to compensate this and will pick up all ANONCES in range to calculate a valid message pair.
e.g.: NC = 2 will pick up this ANONCES
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb7
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb8
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb9
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbba
NC = 8 will try this ones:
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb1
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb2
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb3
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb4
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb5
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb6
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb7
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb8
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbb9
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbba
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbbb
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbbc
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbbd
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbbe
f234f3ed8a9809958579bec6f87b04eadba43cebdabc389ea9904d7fda53cbbf
Running hcxdumptool in active attack mode, you don't need to set NC, because this will be done by automatic. There should be no packet loss to be compensated by NC.
hcxhastool will show you this.
AP attack vector:
KEY VERSION: WPA2
REPLAYCOUNT: 1
RC INFO....: NC not required
MP M2M3 E2.: authorized

CLIENT attack vector:
KEY VERSION: WPA2
REPLAYCOUNT: 64164
RC INFO....: NC not required
RC INFO....: ROGUE attack / NC not required
MP M1M2 E2.: challenge

Perfect excellent explanation as always I treasure it and study baggage of your explanations now everything is clear to me thanks ...

The automatic is close to 100% to detect a valid PMKID and/or a valid EAPOL message pair.
hcxdumptool -> hcxpcangtool -> hashcat
But it is only close to 100% and sometimes it require manual action (hcxdumptool passive mode, target at the edge of RF range, signal reflection). In this case we have to expand the workflow:
hcxdumptool -> hcxpcapngtool (--all) -> hcxhastool -> hashcat

target at the edge of RF range, signal reflection) is one of many reasons why I prefer --all thanks...


revert back to pass only request block in inputMap

The protocol between applications and PSAMA is that everything needs to be verified except token should be in request field. Need to comment it in the code and record this protocol in documentation.

looks OK


[QUESTION]

Note: This repository is ONLY used to solve issues related to DOCS.
For other issues, please move to other repositories.

Before submitting your question, make sure you have:

Googled your question.
Searched the GitHub issues.
Read the documentation

"What is your question?"

Close this issue.


Qr based mpo

A few notes to discuss later in person;

[ ] Should we do a separate class that has the common code between QR-based TEBD and QR-based apply MPO?

Signature of use_eig_based_svd

[ ] I dont like that the forms we use depend on use_eig_based_svd. It is not intuitive at all and it makes debugging harder. I think we should change the return format of decompose_theta_qr_based. Maybe let it always return A_L, Th_L, S, Th_R, B_R, and some of them may be None?
[ ] The names of the return values are not in tenpy convention: use capital single letters for tensors, e.g. T_L.
[ ] return docstring: use same formatting as parameters. after the : should follow only the type, maybe with legs, shape info etc, but no text
[ ] i dont like the names get_left_side and need_other_side. Mostly because the second params name does not make sense on its own. Maybe change to compute_t_L and compute_t_R ? Slightly different meanings. Depending on what we do about the return values, something again slightly different may be sensible here

[ ] It looks like QRBasedTEBDEngine does not consider the form of the tensors returned by use_eig_based_svd. It worries me that the tests dont detect this?

[ ] dedicated test for decompose_theta_qr_based ? checking isometric properties, checking that the original is recovered, etc.

[ ] In QRBasedVariationalApplyMPO. update_new_psi, I think reading out the old_B_L for decompose_theta_qr_based always in B form is not ideal. During the left sweep, we have them in A form, no?

@MartinHefel What is actually missing here? (feel free to edit this message)
Remaining open points

[ ] can we compute the error in the same convention as svd_theta?
[ ] include #437 ?


Memory leak in PIXI v3

It seems that the InteractionManager plugin leaks memory as soon as a new renderer is being created.
Is there a clean way to disable the InteractionManager?

Hi there! A little more info on the leak would be ace, do you have an example we could test? Cheers!

This code tested on nwjs v0.12.3-win-32 shows a steady increase of memory usage
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <script src="pixi_3.js"></script>

        <script>
            var renderer = new PIXI.WebGLRenderer(800, 600);
            document.body.appendChild(renderer.view);
        </script>
    </body>
</html>

Deleting the Interaction Manager seems to fix that problem.
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <script src="pixi_3.js"></script>

        <script>
            delete PIXI.WebGLRenderer.__plugins['interaction'];

            var renderer = new PIXI.WebGLRenderer(800, 600);
            document.body.appendChild(renderer.view);
        </script>
    </body>
</html>

Hi, had a look into this today and I can't seem to see any leaks in interaction manager - is this not a natural gc thing?
does this actually slow down and affect your app?


Hidden models are still showing in Settings/Interface for selecting default model.

Bug Report
Installation Method

Clone the repo.
Run npm run dev for front-end, and run ./dev.sh for back-end.

Environment

Open WebUI Version: v0.3.32

Ollama (if applicable): does not apply.

Operating System: macOS Sonoma 14.6.1

Browser (if applicable): does not apply.

Confirmation:

[x] I have read and followed all the instructions provided in the README.md.
[x] I am on the latest version of both Open WebUI and Ollama.
[ ] I have included the browser console logs.
[ ] I have included the Docker container logs.
[x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:
Those models which are opted as hidden should not be presented to users at any place.
Actual Behavior:
Those models which are hidden by admin in Workplace are still presenting in Settings/Interface when selecting the default model.
Description
Bug Summary:
Those models which are opted as hidden should not be presented to users at any place.
Reproduction Details
Steps to Reproduce:

Logged in as admin, go to Workspace and hide some of your ollama models.
Go to User Settings -> Interface -> Select a Model.
Those hidden models are still seeable to users.

Logs and Screenshots
Screenshots/Screen Recordings (if applicable):

Mark two models as hidden

These two models are still presenting to users when selecting a default model.

These two models are hidden in the home chat view, which is considered as expected.
Additional Information
I'll raise a PR to resolve the issue, please help review, thank you!

This is an expected behaviour, they're only hidden from the selector and they're still usable for the admins.


MySql

Does it have MySql support ?

Not yet, but the Tower.Store api was setup to make implementing custom database drivers straightforward.  See these for examples:

https://github.com/viatropos/tower/blob/master/src/tower/store/mongodb.coffee
https://github.com/viatropos/tower/blob/master/src/tower/store/memory.coffee

Don't plan on personally implementing a MySQL store for a little while, but I would love to merge a pull request with this feature if you or anyone are up to it!  Even if it's only partially implemented that's a start.


Added JavaScript functionality: Make the next song play automatically…

… after the current one stops
PR #3

Yes, it's working @lyallemma.
Thanks for your efforts.


[Storage Manager] Memory-Mapped Storage Manager Mode

The storage manager should be able to run in a memory-mapped mode.
Storage Manager Responsibility
The storage manager takes over the responsibility of storing data. Previously, this was given to the segments, but not anymore.
Data from the storage manager should be written to ./storage.

[ ]  Users / Benchmarks can provide a different path than ./storage.

Data Management

[ ] Define how a storage manager will manage different files and segments.
[ ] Define a mechanism, when data is allowed to be read and when not.

Loading Data

[ ]  On Startup ("when the storage manager is initiated"), the storage manager should load data from ./$db_path/storage.json. TODO: What does "listed" mean? Is the data or the location listed?
[ ] For each file, the storage manager holds a mmap pointer.
[ ] For mmap segments, the storage manager holds a unique_ptr per mapped file. Segments are created from this file by calling the segment's constructor with a pointer to the segment’s data + the size of this data (the storage manager does not need to know how to handle segment data). TODO: I have no idea what this paragraph tries to say.

@rrcomtech , are some points still unclear? Or did the Google Doc discussion clear up everything?

@Bouncner Currently not, thank you! :)

What's the status on the storage manager?

We are transferring methods from the playground to the storage manager. This is still WIP.


[FLINK-18820] SourceOperator should send MAX_WATERMARK to downstream operator when closed

What is the purpose of the change
This pull request make the SourceOperator send the Watermark.MAX_VALUE to the downstream when closing.
Brief change log

*Send the Watermark.MAX_VALUE in the close method of SourceOperator

Verifying this change
This change added tests and can be verified as follows:

Added test that validates that Watermark.MAX_VALUE is sent when closing

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

Yes, what @dawidwys sounds correct! Please go for it.

I have made the change accordingly. @dawidwys Please have another look.

The changes look good. However there are some related test failures. Do you mind having a look at them @Sxnan ?


RBAC: add checks for when request is from Anonymous User

This fixes opeanapi schema issues in EDA when the /v1/docs/ endpoint is called from unauthenticated requests. With these changes in place the schema seems to get generated mostly correctly and we are down to the following warnings from DAB
eda-api-1                      | /app/venv/lib64/python3.11/site-packages/ansible_base/lib/routers/association_resource_router.py: Warning [RelatedRoleTeamAssignmentViewSet]: could not derive type of path parameter "team_assignments" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. <int:team_assignments>) or annotating the parameter type with @extend_schema. Defaulting to "string".
eda-api-1                      | /app/venv/lib64/python3.11/site-packages/ansible_base/lib/routers/association_resource_router.py: Warning [RelatedRoleUserAssignmentViewSet]: could not derive type of path parameter "user_assignments" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. <int:user_assignments>) or annotating the parameter type with @extend_schema. Defaulting to "string".
eda-api-1                      | /app/venv/lib64/python3.11/site-packages/ansible_base/rbac/api/views.py: Warning [RoleTeamAssignmentViewSet]: could not derive type of path parameter "id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. <int:id>) or annotating the parameter type with @extend_schema. Defaulting to "string".
eda-default-worker-2           | 2024-05-16 15:52:44,664 rq.worker INFO     default: aap_eda.tasks.orchestrator.monitor_rulebook_processes() (16a00e39-cdac-4b4a-9e8b-cd89be21662a)
eda-api-1                      | /app/venv/lib64/python3.11/site-packages/ansible_base/rbac/api/views.py: Warning [RoleUserAssignmentViewSet]: could not derive type of path parameter "id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. <int:id>) or annotating the parameter type with @extend_schema. Defaulting to "string".

There is still some schema data that doesn't follow the expected behavior which probably results from these warnings
        "/role_definitions/{id}/user_assignments/": {
            "get": {
                "operationId": "role_definitions_user_assignments_retrieve",

VS

        "/role_definitions/{id}/user_assignments/{user_assignments}/": {
            "get": {
                "operationId": "role_definitions_user_assignments_retrieve_2",

My only concern is that there is a known issue that a user passed in may be a SimpleLazyObject from Django... in which case isinstance checks won't work correctly. This is generally why I've favored the _meta attribute. But if we can't count on the meta... and we can't count on type checking... and we don't know what the user model will be. I just don't know what options they're giving us.


editing a value in tree mode causes collapse

I'm trying to track down a weird behavior where typing into the value of a field causes the "tree" mode to collapse and leaves me unable to see the field where I'm typing.  Has anyone seen this or does anyone understand what might cause this ? This does not happen in "text" mode.
I'm pretty sure this is related to the "timeout" value in the options. If I set that to say 1000mS  then the collapse doesn't occur until after 1000ms.

Hi @solmetricchris,
Do you have an examplecode / github repo or something?
Do you use the latest jsoneditor version?
I personally never experienced something like this.

I am getting a similar behavior. I have implemented your directive in an Angular + Electron app getting it's json file from Firebase and all is working well. My issue happens when I update a value that the entire tree collapses, which makes editing a seriously difficult endeavor.
I am using the form mode, and every time I edit a value the data is sent to Firebase, where I see that only the corresponding value is updated, however once this happens the form in the app is collapsed. Any advice on how to get around this would be appreciated.


How to parameterize a circuit with an absolute Parameter ?

Informations

Qiskit version: 0.20.2
Python version: 3.10.5 (v3.10.5:f377153967, Jun  6 2022, 12:36:10) [Clang 13.0.0 (clang-13<IP_ADDRESS>)]
Operating system: Darwin 21.5.0

What is the current behavior?
I want to use np.abs() on a Parameter instance but got:
TypeError: bad operand type for abs(): 'Parameter'
However, I can do:
np.exp(Parameter instance)
So I think I should also be able to use Parameter as the input of np.abs().
If it is the problem with Numpy, then is there an another way to add an absolute Parameter to a circuit?
Steps to reproduce the problem
from qiskit import QuantumCircuit
from qiskit.circuit import Parameter
qc = QuantumCircuit(2)
theta = Parameter('theta')
qc.rz(np.abs(theta),0)
What is the expected behavior?
Parameterize a circuit with an absolute parameter.
Suggested solutions
Add a new class method Parameter.abs() that returns the absolute value of Parameter.

Closing as #9309 added abs() to ParameterExpression


[New Sample] Alternate symbols with class break renderer

New PR here. Closing this one since both samples are using the wrong template.


Question about MBAR/parallel-tempering-2dpmf example

1 - Plotting free energy estimation seems to me a huge deltaG(target temp=302K), ~5000.  Is it as a result from method or is it just a statistical estimation?
2 - I couldn't to reproduce the PMF graph (fig 1. in LONG-TIME PROTEIN FOLDING DYNAMICS FROM SHORT-TIME MOLECULAR DYNAMICS SIMULATIONS) in region (phi=60,psi=...). is it due to different methods (WHAMxMBAR) ?
3 - why k in line: indices = timeseries.subsampleCorrelatedData(U_kt[k,:], g = g)?
Seems to me the last k value in last last looping (k=39).
4 - Is it take any possibility about PMF, like Rg x RMSD, number of HB x a-helix percentage..right?
5 - Im working with lysozyme in glycerol. The parameters of glycerol give rise positive potential energy, then, the free energy x temperature decrease to negative values with the augment of temperature. If I calculating differences I  didnt expect this behaviour. Do you have some explanation? Thanks.

1 - Plotting free energy estimation seems to me a huge deltaG(target temp=302K), ~5000. Is it as a result from method or is it just a statistical estimation?

Is this with a data set of yours?  Without knowing what the data set looks like, it's impossible to day.

2 - I couldn't to reproduce the PMF graph (fig 1. in LONG-TIME PROTEIN FOLDING DYNAMICS FROM SHORT-TIME MOLECULAR DYNAMICS SIMULATIONS) in region (phi=60,psi=...). is it due to different methods (WHAMxMBAR) ?

Is there a link to this?  It's not quite clear what you are talking about.

3 - why k in line: indices = timeseries.subsampleCorrelatedData(U_kt[k,:], g = g)?
Seems to me the last k value in last last looping (k=39).

k=39 sounds like a description of your dataset, but the code is general, so I'm not sure what you are asking.

4 - Is it take any possibility about PMF, like Rg x RMSD, number of HB x a-helix percentage..right?

I think you need to phrase this more precisely -- I'm not sure what you are asking.

5 - Im working with lysozyme in glycerol. The parameters of glycerol give rise positive potential energy, then, the free energy x temperature decrease to negative values with the augment of temperature. If I calculating differences I didnt expect this behaviour. Do you have some explanation? Thanks.

Again, you haven't specified what free energy you are talking about, so I'm not really sure what the issues is.  And we definitely don't know that.

Its all about of MBAR/parallel-tempering-2dpmf example.
figures : https://drive.google.com/drive/folders/0B3Vqft6lxmmCc01wODR1SDRMb2c?usp=sharing
1 - Plot off final dimensionless free energies x temperature (figure 1 link).
2 - figure 2 link
3 - MBAR/parallel-tempering-2dpmf.py example
5 - figure 5 link
Thanks.


Neutron Standard

Please consider following https://github.com/Automattic/phpcs-neutron-ruleset
WPCS is very PHP5-centric.

We're using our own standards: https://packagist.org/packages/infinum/coding-standards-wp
I was starting to work in the PSR-4 ruleset, but since PSR-12 is out, I'll probably rework them to follow modified PSR-12 + WPCS standards 🙂
I looked at neutron standards and they have some interesting rulesets that can be ignored. It's on my radar 😄


Digital outputs multiple pin, same topic

There is any change to turn on/off multiple pin with the same mqtt topic?
RPi.GPIO module should be able to manage it
chan_list = [11,12]    # add as many channels as you want!                        # you can tuples instead i.e.:                        #   chan_list = (11,12) GPIO.setup(chan_list, GPIO.OUT)

I've made a PR in order to fix schema check.
RPi.GPIO  are already capable to manage lists, so the problem was only in the config check.
`digital_outputs:

name: fireplace
module: raspberrypi
pin:

17
27
22
5
`

Hi, thanks for your work on this. It's a good idea, but as far as I'm aware, your PR would break compatibility with all of the other output modules, such as pcf8574 which has a set_pin() implementation of:
    def set_pin(self, pin, value):
        self.io.port[pin] = value

As you can see, the pin value can not be a list in this example.
In order to implement this, we'd need to establish which modules' underlying libraries are able to take lists of pins and set them all at once, then enable this functionality on just these modules.
As it stands, this is a relatively low priority for me compared to some of the other things on my list, so I wouldn't work on it any time soon, but pull requests to the effect are welcome.
I'll close the existing PR as it stands, but keep this issue open to track any progress.


304 replace json.stringify with safe stable stringify

I replaced all occurrences of JSON.stringify() with safe-stable-stringify. Note that i just did it within the lib package not within backend or react because those packages are using JSON.stringify() not for hashing the user object but for simpler things like storing a an object in the cache.
Hence using safe-stable-stringify wouldn't bring much benefits and just adds another dependency.
However if you think it make sense to use safe-stable-stringify in the other packages as-well, i'll add them.

During testing I noticed that profiles created prior this pr are no longer compatible because their signature was created using JSON.stringify instead of save-stringify. Hence i think it breaks the app for all existing users. We need to think about how this can be solved.


Lost in thoughts all alone

Currently working on upgrading parts of the codebase with the end goal of adding in a tab for a U-Map visualization.
Breaking the modernization into chunks, this first PR has no functionality changes as it just introduces a simple package.json with the code run through prettier to establish a baseline format.
cc @npgauth

Do you have write access to merge this in, @sacdallago ?
Tagging @rocreguant just in case!

I do -- should I? Who is @npgauth? :D :D

If you wouldn't mind! ;)
@npgauth is Nick !

Hi Nick @npgauth I see the gauth now, makes sense :)
Merged by the power of Greyskull

Thank you!
https://31.media.tumblr.com/tumblr_m9jmrvGatD1qlvd4eo1_250.gif


SOLVED: Incorrect CSS import order

EDIT SOLUTION: It's simply because the base styling is imported after routes in the main.js file and therefore overrides the css imported with the components.
Hi, it seems that the css is being built in the wrong order. My understanding would be that base.css should be at the top of the stylesheet and then any other css in the components would be at the bottom, overriding the top. Any easy way to test this is to add this line to style.css in the login folder
h1{
    color: #00FF00;
}

It should override to the new color, but it actually stays its original color.
We can see that this style has been applied to the heading, but the css in base.css has overriden it. I had this issue in my project when trying to import bootstrap, and everything was in reverse order of where I wanted it to be. I found this issue had always been in the project by going back to an empty essential-react project.
I have spent many hours trying to debug this while also trying to learn webpack.
Edit: The below issues were different and led me on the wrong path to trying to fix it
I have seen this issue in many places, but have not been able to fix it from these, despite trying to disable extract-text-webpack, etc.
https://github.com/webpack/extract-text-webpack-plugin/issues/57
https://github.com/webpack/webpack/issues/215

How did you solve it?

I solved it by simply moving the import statement for the base styling import './common/base.css'; BEFORE the import statement for Routes import Routes from './common/components/Routes';.

thanks!

good catch, btw feel free to create pull requests when you spot things that could be fixed / improved :)

an another specification :  you also need use import instead of require() statement
thanks so much!


DWORD, LPVOID missing from Windows::Win32::Foundation

Was just looking at whether I would be able to use this instead of winapi. However, DWORD and LPVOID are missing from the Foundation module. I'm unsure if this is an oversight or there is a good reason for this.

Those are C typedefs for primitive types that the win32 metadata does not define. Instead it simply uses the underlying types directly. So u32 instead of DWORD and so on.
But in many cases, the win32 metadata is in fact far richer than the original C-style definitions. For example, compare the CreateFileA docs with the definition in Rust.

I see, thank you. So the options are to create a type alias or simply use the underlying type right?

Yep!

Great, thanks again.

While it is clear for DWORD, what is the Rust type that should be used for LPVOID?

@lostmsu *const c_void or *mut c_void ideally. isize in a pinch. May I ask what API you're working with?

@riverar just needed a signature for DllMain


Adding Colorful rain animation effect using HTML,CSS,JS

Project title
Colorful rain animation effect using HTML,CSS,JS
Project Description
A site that shows amazing colorful rain animation effect.
GSSoC'22
Stack:
And in order to tick the check box just but x inside them for example - [x] like this. Please delete options that are not relevant.

[x] Html
[x] CSS
[x] JavaScript
[ ] ReactJS

/assign


Xcode 14: Folders are not expandable

I haven't been able to make a minimal reproducible SwiftUI example for this bug. But strangely, disabling selection in the list fixes this: https://github.com/bummoblizard/codeapp/commit/4ee80f95e8dca4764898eeea5e994cb9eda6a0d2.
Further investigation is needed but I'll disable selection for now.

We should revisit this.


The error was: expected /etc/letsencrypt/live/npm-2/cert.pem to be a symlink

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?

Yes

Are you sure you're not using someone else's docker image?

Yes

Have you searched for similar issues (both open and closed)?

Yes

Describe the bug

Nginx Proxy Manager Version

To Reproduce
Steps to reproduce the behavior:
I really dont know. Was working everythime before. Just after moving from old system to new (files wasnt moved, completly new config) the error occures at every renewalphase.
I fixed with deleting all files and create everything new from zero.  Any luck?

The work around for this issue is to simply delete the certs from the interface and then renable ssl on the hosts...
You can rebuild the cert structure manually but ideally this would be handled automatically. It's not unreasonable for these symlinks to get copied as files as part of a backup/migration solution and graceful handling would be nice.

I was in the same situation. In my case this issue arrised after migrating NPM from a Linux container to a new docker instance.
I've copied all cert.pem/chain.pem/fullchain.pem/privkey.pem from each proxy host to the docker instance.
This messed up the symlinks. I've then created all the needed symlink manually and can now renew the certs without any issues.
For a proxy host npm-4 you need the following:
# ls -lhaF live/npm-4/ | grep ^l
lrwxrwxrwx 1 root root  30 Jun  1 09:28 cert.pem -> ../../archive/npm-4/cert11.pem
lrwxrwxrwx 1 root root  31 Jun  1 09:28 chain.pem -> ../../archive/npm-4/chain11.pem
lrwxrwxrwx 1 root root  35 Jun  1 09:28 fullchain.pem -> ../../archive/npm-4/fullchain11.pem
lrwxrwxrwx 1 root root  33 Jun  1 09:28 privkey.pem -> ../../archive/npm-4/privkey11.pem

The destination files names must contain a number (eg. cert11.pem)! If the symlink points to a file without the number, the renewal will not work.


[REFACTOR][IR] Migrate IRModule ObjectRef to not-null

Refer #5318
@tqchen : Please help review, Thanks!

There are 2 approaches followed here to solve Optional issue in exposed APIs.
A0: Using Optional way as mentioned in the reference link. (Ref src/relay/analysis/feature.cc)
A1: Making API user provide Empty IRModule. (Ref python/tvm/relay/transform/transform.py)
Please let me know, if we should follow only A0 strictly. TIA!

Thanks @ANSHUMAN87 @jroesch !


remove (unused) log dependency

There was a warning as I built this crate that the #[macro_use] on the log crate was not used. It seems the log macros are no longer used at all, so futures can now have 0 dependencies.

👍


NIFI-6647 - Upgrading Apache Ignite version to 2.8.0

Description of PR
The version of Apache Ignite is currently set to 1.6.0 which is now over 3 years old. Upgrading to the latest version, that is 2.8.0.
For all changes:

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

[X] 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.

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

[X] 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:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[X] Have you written or updated unit tests to verify your changes?
[X] Have you verified that the full build is successful on both JDK 8 and JDK 11?

@jtstorck could you please review this by any chance? Saw you had other PRs related to Apache Ignite.

@matthew-formosa-gig can you find out what is creating
Untracked files:
(use "git add ..." to include in what will be committed)
nifi-nar-bundles/nifi-ignite-bundle/nifi-ignite-processors/ignite/
It should create directories under target so it is cleanly handled during the build process and properly ignored in terms of source/etc..
otherwise this looks ready to roll.  I could build fine on java8 and java 11 and the travis issues weren't related to this PR so otherwise it is ready

@matthew-formosa-gig the ignite folks leave a quite nice readme in there
This is Apache Ignite working directory that contains information that
Ignite nodes need in order to function normally.
Don't delete it unless you're sure you know what you're doing.
You can change the location of working directory with
igniteConfiguration.setWorkingDirectory(location) or
 in IgniteConfiguration .
README.txt (END)

Thanks for your feedback. Successfully redirected work directory to target folder.

@joewitt It's been a while :) Upgraded to Apache Ignite 2.8.0. Tests are successful locally, not sure why some seem to be failing on ci-workflow.

#4278


Corrupted file

I downloaded v0.0.4 unx.zip but when I try to extract it with WinRar, it says the archive is corrupted.

Try opening it in 7zip. Others have mentioned the same about the built in windows client and winrar, but it worked fine for me (though it did complain) with 7zip. Another on the forum thread mentioned he or she had luck with upgrading WinRar.

This has been fixed


Migrate to new Spring Boot auto configuration introduced in spring bo…

…ot 2.7. The existing spring.factories support will be removed in spring boot 3 so this will make sure that the autoconfiguration will still work in when upgrading to spring boot 3.

Hi @aspan, you mentioned that this new mechanism was introduced in Spring Boot 2.7, which was released only 3 months ago...
Will this new mechanism work with older versions of Spring (2.6.x and earlier)?
Is there any way to be compatible with both Spring 3.x and Spring 2.6.x and earlier?

I don't think there is a way to be backwards compatible with spring boot 2.6. The support has not been removed yet in spring boot 3 so it still works there. See. #29699 and #29698. So I think that there needs to be a separate module for spring 3 if your aim is to be backwards compatible with spring boot 2.6.

I prefer not to have separate modules for Spring 2.6 and 2.7/3.x...
Would it be possible to support both mechanisms?
So, we don't remove picocli-spring-boot-starter/src/main/resources/META-INF/spring.factories --> this will allow it to work with Spring 2.6 and earlier
And we add picocli-spring-boot-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports --> this will allow it to work with Spring 2.7 and later
Can I ask you to test whether that approach would allow us to support both Spring 2.6 and 2.7/3.x?

We've had a similar request (registering the auto-configuration in both META-INF/spring.factories and the new location so that it works in both 2.x and 3.x. Picocli might be a good candidate as it relies on a small part of the Spring Boot API. Let me take that back to the team and I'll report back. Thanks!

Awesome, thank you @snicoll! 🙏😊

@aspan Will you be able to make these changes?

I'll make the changes today.

Merged. Thank you for the pull request!


Update git-in-here.yml file

PR Type: _Docs update

Affiliation: N/A

Ticket: N/A

Checklist:

[ X] I've read Contributing Guidelines
[ X] I agree to follow the Code of Conduct

Hiya @Apratim
When you submit your PR, don't forget to make sure the template is filled in properly (replace [ X] with [X] to check the box), and select Type: Name addition. I've fixed your syntax error in the YAML file, and will merge it shortly.
Don't forget to ⭐ the repo too :)


🐞 dag.Secret($name) yields to "secret not found"

What is the issue?
fetching a secret by its name seems not to be possible
Dagger version
v0.13.4-2928b54059e25c7fd275bdc537ea85ecd76a8968
Steps to reproduce
func (m *Lala) Test(ctx context.Context) (string, error) {
	dag.SetSecret("foo", "bar")
	return dag.Secret("foo").Plaintext(ctx)

}

Log output
✘ Lala.test: String! 0.2s
! call function "Test": process "/runtime" did not complete successfully: exit code: 2
┃ invoke: input: secret.plaintext resolve: secret not found: xxh3:41026853058daa5f
  ✘ Secret.plaintext: String! 0.0s
  ! secret not found: xxh3:41026853058daa5f

Full trace at https://dagger.cloud/marcos-test/traces/292166383dd92cdfc064cdf02c8ade08

Error: response from query: input: lala.test resolve: call function "Test": process "/runtime" did not complete successfully: exit code: 2

Stdout:
invoke: input: secret.plaintext resolve: secret not found: xxh3:41026853058daa5f

Ahhh we should just get rid of this API - this is actually "working as intended", but it's terribly confusing.
SetSecret returns a Secret - but is doing so lazily - note how it doesn't take a context arg, so actually this isn't being sent to the engine, so the secret is never actually set.
You can force the SetSecret side effect by calling ID on the secret (or any other method that forces evaluation).
The issue here is really the global state, which we just shouldn't have (or at least, shouldn't be exposed to the user).

SetSecret returns a Secret - but is doing so lazily - note how it doesn't take a context arg, so actually this isn't being sent to the engine, so the secret is never actually set.

right, the laziness thing bit me once again :grimacing: .

Ahhh we should just get rid of this API - this is actually "working as intended", but it's terribly confusing.

Agree, hopefully we can fix this "the right way" with secrets providers. Shall we close this Justin?

@jedevc funny enough, I've updated my repro to use Id(ctx) to unlazy the function call and the issue still persists. I've just updated my initial code snippet to reflect this accordingly.

Hm, okay, yeah you're right :thinking: cc @sipsma
We don't have tests for this case, so not hugely surprising that it's broken. Will glance into this at some point, but IMO I think this is pretty non-urgent given we want to remove this API from the user-facing codegen eventually.