ERR_INVALID_HTTP_TOKEN - h3 events

don't know if this belong in vinxi or soild-start
I upgraded to latest vinxi (0.1.7) /solid-start (0.4.11), and now I get a lot of this when i start my dev server and go to a page:
> dev
> vinxi dev

vinxi 0.1.7
vinxi Found vite.config.js with app config
vinxi starting dev server

  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

[h3] [unhandled] TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token ["{
  request: [Request],
  clientAddress: '::1',
  locals: {},
  [Symbol(h3Event)]: [H3Event]
}"]
    at ServerResponse.setHeader (node:_http_outgoing:705:3)
    ... 12 lines matching cause stack trace ...
    at async Server.toNodeHandle (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1907:7) {
  cause: TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token ["{
    request: [Request],
    clientAddress: '::1',
    locals: {},
    [Symbol(h3Event)]: [H3Event]
  }"]
      at ServerResponse.setHeader (node:_http_outgoing:705:3)
      at setResponseHeader (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:747:18)
      at Module.eval (/Users/admin/repos/project/docs/node_modules/vinxi/runtime/server.js:146:12)
      at Module.createPageEvent (/Users/admin/repos/project/docs/node_modules/@solidjs/start/server/page-event.tsx:27:25)
      at eval (/Users/admin/repos/project/docs/node_modules/@solidjs/start/entry/index.ts:35:53)
      at AsyncLocalStorage.run (node:async_hooks:346:14)
      at Proxy.provideRequestEvent (file:///Users/admin/repos/project/docs/node_modules/solid-js/web/dist/storage.js:7:14)
      at handler (/Users/admin/repos/project/docs/node_modules/@solidjs/start/entry/index.ts:23:36)
      at _callHandler (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1563:22)
      at _handler (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1547:12)
      at Object.handler (/Users/admin/repos/project/docs/node_modules/vinxi/lib/router-modes.js:268:18)
      at async file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1697:19
      at async Object.callAsync (/Users/admin/repos/project/docs/node_modules/unctx/dist/index.cjs:74:16)
      at async Server.toNodeHandle (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1907:7) {
    code: 'ERR_INVALID_HTTP_TOKEN'
  },
  statusCode: 500,
  fatal: false,
  unhandled: true,
  statusMessage: undefined,
  data: undefined
}

I can work on a repro if needed.

Oops this is a impendence mismatch between when we made a certain change and solid-start was able to reflect that change. Let me fix this quickly on our end and release it.

try v0.1.8, this should be fixed

I actually still see something similar:
vinxi 0.1.8
vinxi Found vite.config.js with app config
vinxi starting dev server

  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

[h3] [unhandled] TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token ["{
  request: [Request],
  clientAddress: '::1',
  locals: {},
  [Symbol(h3Event)]: [H3Event]
}"]
    at ServerResponse.setHeader (node:_http_outgoing:705:3)
    ... 12 lines matching cause stack trace ...
    at async Server.toNodeHandle (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1907:7) {
  cause: TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token ["{
    request: [Request],
    clientAddress: '::1',
    locals: {},
    [Symbol(h3Event)]: [H3Event]
  }"]
      at ServerResponse.setHeader (node:_http_outgoing:705:3)
      at setResponseHeader (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:747:18)
      at Module.eval (/Users/admin/repos/project/docs/node_modules/vinxi/runtime/server.js:147:12)
      at Module.createPageEvent (/Users/admin/repos/project/docs/node_modules/@solidjs/start/server/page-event.tsx:27:25)
      at eval (/Users/admin/repos/project/docs/node_modules/@solidjs/start/entry/index.ts:35:53)
      at AsyncLocalStorage.run (node:async_hooks:346:14)
      at Proxy.provideRequestEvent (file:///Users/admin/repos/project/docs/node_modules/solid-js/web/dist/storage.js:7:14)
      at handler (/Users/admin/repos/project/docs/node_modules/@solidjs/start/entry/index.ts:23:36)
      at _callHandler (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1563:22)
      at _handler (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1547:12)
      at Object.handler (/Users/admin/repos/project/docs/node_modules/vinxi/lib/router-modes.js:268:18)
      at async file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1697:19
      at async Object.callAsync (/Users/admin/repos/project/docs/node_modules/unctx/dist/index.cjs:74:16)
      at async Server.toNodeHandle (file:///Users/admin/repos/project/docs/node_modules/h3/dist/index.mjs:1907:7) {
    code: 'ERR_INVALID_HTTP_TOKEN'
  },
  statusCode: 500,
  fatal: false,
  unhandled: true,
  statusMessage: undefined,
  data: undefined
}

sorry i meant 0.1.9

wait no should have been fixed in v0.1.8, can I see a repro by any chance?

I believe this should be fixed in vinxi 0.1.10

That did the trick! Thanks!


Dragon Survival Compatibility broken

this mod breaks the Dagon survival mod when the Coldsweat mod is active
crash-2024-08-06_03.16.48-fml.txt

use the latest version
(currently https://www.curseforge.com/minecraft/mc-mods/cold-sweat/files/5553199)


"servers" empty in http://localhost/iaf/api/webservices/openapi.json?uri=/service1a

With F!F 7.8:

8.1.0-20240228.042318:

URLs to verify/test
http://localhost/iaf-test/iaf/api/webservices/openapi.json?uri=/exception
http://localhost/iaf-test/api/openapi.json

Feels a bit stilly to say 'this works as intended', but right now we cannot do much about this behavior.
There are some limitations on when and where we can retrieve the server info.
If you call the webservices endpoint directly it still works (as described by @jkosternl).
For our frank-cloud module we can try to determine the service endpoint (by reading the docker/k8s API), and provide more accurate information, when the OpenApi spec is retrieved through the frontend module.

Duplicate of #6373


Comet compare for multiple systems.

Hi,
I would like to propose to modify compare.py to allow comparing more than 2 systems at once.  The main changes are that we need to accept possibly more than 2 systems, perform bootstrap resampling, in parallel on all systems and calculate pairwise T-tests.
Doing pairwise T-test for multiple systems can be expensive as there is a substantial over head when we start the script to load the imported modules.  Also, calculating comet scores needs only to be done once per systems.  The actual T-test is quite fast.

I will I will! I have a few local tests for the CLI with multiple systems from last year's WMT shared task.

@SamuelLarkin I had a chance to test this and I have found that the results between the previous implementation and the new one are not exactly the same.
I used the following files for testing:
reference.txt
source.txt
system-1.txt
system-2.txt
System-1 has a COMET score of 0.6515 while system-2 has a score of 0.6604. In the current implementation, these two systems are statistically "tied" with a p-value of 0.1808. In this new implementation, system-2 is significantly better...

Also, since we are now having multiple systems and not just systems x and y I would like to propose a small change to your CLI.
Instead of systems we could use the -t/--translations flag similar to the comet-score command.  The resulting CLI would work as follows:
comet-compare -s data/test_samples/source.txt -r data/test_samples/reference.txt -t data/test_samples/system-1.txt data/test_samples/system-2.txt

or
comet-compare -d wmt20:de-en -t data/test_samples/system-1.txt data/test_samples/system-2.txt

In the display, we could also avoid having repeated results between system-1 -> system-2 and then system-2 -> system-1. This is very minor but it seems redundant to keep both.
Possible improvement: Can we present the results in the end in a matrix format? like a summary of the results?

Thanks @ricardorei for your feedbacks.
I'll work on your propose changes.
Note that I came across a scenario where, using the original comet-compare if I scored system1 against system2 they came up as a tie but if I compare system2 against system1, I simply reversed their order, then one of them was better but I can't recall which one.
I'm not too surprised that the new scores are not equal to the previous scores as I had to change the bootstrap resampling and probably the new method is not picking the same samples but it is worth checking.

@ricardorei
I would appreciate if you could provide me with an example of what you want in the final table.  By that I mean, to you want a single value per cell aka statistic or a cell that contains x-mean, y-mean, ties, x_wins, y_wins, statistic & p_value?

Documentation: Different Scores
Comparing previous code with new code, the comet scores are slightly different.
Generate comet Scores
#!/bin/bash

function new {
   mkdir -p new
   ../comet-compare.py \
      --to_json new/info.json \
      --num_splits 3 \
      --sample_ratio 0.6 \
      --gpus 0 \
      --model "wmt20-comet-da" \
      -s source.txt \
      -r reference.txt \
      -t system-?.txt \
      > new/t_test.results \
      2> new/t_test.log
}

function old {
   mkdir -p old
   ../orig/comet-compare-orig.py \
      --to_json old/info.json \
      --num_splits 3 \
      --sample_ratio 0.6 \
      --gpus 0 \
      --model "wmt20-comet-da" \
      -s source.txt \
      -r reference.txt \
      -x system-1.txt \
      -y system-2.txt \
      > old/t_test.results \
      2> old/t_test.log
}

new
old

Compare Scores
Comparing scores for system X
vimdiff \
   <(jq .translations[0].scores[] new/info.json) \
   <(jq '.[1:]|.[].system_x.score' old/info.json)

@ricardorei I would appreciate if you could provide me with an example of what you want in the final table. By that I mean, to you want a single value per cell aka statistic or a cell that contains x-mean, y-mean, ties, x_wins, y_wins, statistic & p_value?

I was thinking of something simple just with a True/False from the null hypothesis.

COMET scores can have some very small differences because of in-batch layer normalization (#32)m but it should not have a huge effect on statistical significance especially with stats.ttest_rel.

The difference I observed was that with the old command the Paired T-test result had a statistic of -1.3394 and a p-value of 0.18 between system-1 and system-2 while the new command had a statistic result of 14.1933 and a p-value of 0.000

@ricardorei
About the different scores.  I tried running the original code and the new code with --disable_length_batching and now the output scores are almost identical.  The only different score is for the last sentence.  In the new code, instead of scoring system_x then scoring system_y, I change that and now pool all examples from all systems into one sample set then I call model.predict() only once for all systems.  This could explain the issue #66  about not getting the same scores if you use gpu vs cpu.  Clearly, batching by length changes the output.

@ricardorei
I've added a summary table.  Let me know what you think about it.

I tested everything with and without lengh_caching and everything looks fine for me.  There are tiny score changes (expected because of mini-batch embeddings normalization). This does not change statistical significance testing!
Example:

....

Both systems have equal averages.

When I run your code I get something also in line with these scores:
x_name: data/system-1.txt
y_name: data/system-2.txt

Bootstrap Resampling Results:
x-mean: 0.6511
y-mean: 0.6600
ties (%):       0.0433
x_wins (%):     0.1867
y_wins (%):     0.7700

Paired T-Test Results:
statistic:      -14.1481
p_value:        0.0000

The only difference is the p_value (close to 0) and the statistic (-14.1481)... Then I found the problem!

The stats.ttest_rel function should be called with the sentence-level scores and not with the mean scores over each fold!
There is the difference...  basically for ttest you just need to take the seg_scores, split it into systems and call the function. The ttest does not have to do with bootstrap. They are independent.

In any case, all the rest seems good and I like the table at the end! Thanks for doing this @SamuelLarkin !

Meanwhile, I had some time and fixed this issue. Now it's 100% consistent with the last implementation and supports the multiple system comparison!
Thanks for your contribution @SamuelLarkin ! This was a feature that was requested before and that its very useful!


it seems a bug in align_two_reconstruction

It seems a bug here:
def align_two_reconstruction(r1, r2, common_tracks, threshold):
"""Estimate similarity transform between two reconstructions."""
t1, t2 = r1.points, r2.points
if len(common_tracks) > 6:

<<<<<<<<<<<<<
p1 = np.array([t1[t[0]].coordinates for t in common_tracks])
p2 = np.array([t2[t[1]].coordinates for t in common_tracks])
<<<<<<<<<<<<<

I think it should be:
p1 = np.array([t1[t].coordinates for t in common_tracks])
p2 = np.array([t2[t].coordinates for t in common_tracks])
here, t stands for the common shot id

    # 3 samples / 100 trials / 50% outliers = 0.99 probability
    # with probability = 1-(1-(1-outlier)^model)^trial
    T, inliers = multiview.fit_similarity_transform(
        p1, p2, max_iterations=100, threshold=threshold)
    if len(inliers) > 0:
        return True, T, inliers
return False, None, None

Hi @gaosanyuan , this is a bug that we're going to address, thank you for reporting.

Has this bug been addressed?


Alerts

Hello,
It would be great if you could create alert with notifications when something exceeds a threshold.
I would actually pay for that.
Cheers,
Sakis

That would be good option!!


Shopping cart

Seems good. For formatting your features when it comes to nested Given, When and Then indent the And that is nested so it's much cleaner to see.
So when I say:
Given
   And ...
When
   And ...
Then
   And ...

It's easier to note that the end here is still part of the Given or whatever prefix you are using.

I feel like you're missing more tests but I can't split screen right now because my dog ate my monitors. :crying_cat_face:

Yes. I still have a few features remaining. I commit as I go. Continuous
Integration! :)
On Tue, Apr 7, 2015 at 10:22 PM, Kareem Gan<EMAIL_ADDRESS>wrote:

I feel like you're missing more tests but I can't split screen right now
because my dog ate my monitors. [image: :crying_cat_face:]
—
Reply to this email directly or view it on GitHub
https://github.com/jmmastey/level_up_exercises/pull/595#issuecomment-90792565
.

Tai nuostabu. :dancer:
It means that's awesome. Let me know when you feel you're all done and I'll review it some more.

An additional note:  never use the word "should" in your test descriptions.  It isn't confident.
# Not confident:
Then I should no longer see item 'x' in cart

# Confident:
Then I do not see item 'x' in cart

What about in the Feature description? When I describe what the role is
On Wed, Apr 8, 2015 at 11:00 AM, Dan Kotowski<EMAIL_ADDRESS>wrote:

An additional note: never use the word "should" in your test descriptions.
It isn't confident.
Not confident:Then I should no longer see item 'x' in cart
Confident:Then I do not see item 'x' in cart
—
Reply to this email directly or view it on GitHub
https://github.com/jmmastey/level_up_exercises/pull/595#issuecomment-90959688
.

Feature description should be a description of what it does, no scenarios or what not.
Like I mentioned above,
Feature: Authentication
Feature: Registration
Feature: Shipping Estimation
Feature: Creating an Address
Feature: Editing an Address
Feature: Deleting an Address

etc..

Don't use it there.  Also, I recommend including the reason behind the desired feature.
As a <role>
I want to <feature>
In order to <reason>

It will help organize your features and, in production projects, help determine if the way you're implementing the feature is helpful and fulfilling the requirements.


parameter ‘redirect’ in middleware js file

hey!  in this repo, i see parameter 'redirect' in anonymous.js, and i think
redirect('/') is go to new page, in my own nuxt.js project, when i add this 'redirect' parameter, like
export default function( { context, redirect} ){}... , it will say "Cannot read property 'route' of undefined",Where is wrong? How do I do page jumps in middleware?
and sorry my for my poor english.

well,this problem has been solved


Is requiring permissions for each hook in config.json helpful?

This feature was originally intended to allow admins to review what a module would be doing before enabling it (like reviewing app permissions on a phone).  However, I'm not sure how helpful it actually is in practice.  We could remove the requirement for permissions, assuming there wouldn't be any issues (like a performance hit) from switching to method_exists() instead for triggering hooks

I don't think it adds much value given that there is a 'pre-review' step before release to the repo.  We could instead have an optional 'activation disclaimer' tag in the config json that would display the text in the tag and add an 'i understand' checkbox.
An example might be an EM that does some sort of tracking and reports utilization to a third party address.  By offering a disclaimer, this absolves Vandy from having to 'determine' what is permissible and what isn't.  It creates a wider set of allowing functionality provided the end-user understands the implications.
Another example could be a module that writes to the database in an unsupported way.  During the review process you could offer feedback to the developer to add something to the disclaimer prior to approval...
Maybe?
"disclaimers": [
  {
     "type": "system",
     "text": "This module does A",
     "require-approval": true
   },
   {
      "type": "project",
      "text": "Before you can use this on your project, you must send $10000000 to this paypal account :-)",
       "require-approval": false
    }
]

or perhaps break out into project-enable-disclaimer and system-enable-disclaimer and make it only a single block:
"system-enable-disclaimer":
  {
     "text": "This module does A",
     "require-approval": true
   },
"project-enable-disclaimer":
   {
      "text": "Before you can use this on your project, you must send $10000000 to this paypal account :-)",
       "require-approval": false
    }

Thanks for the input @123andy.  A disclaimer configuration seems more useful to me too.  If that existed today, would you add disclaimers to any of your current modules?

In Shazam we have some fancy logic around how javascript is handled to prevent end-users from modifying anything with JS.
  That might be another candidate if it were ever to be released externally...
All that said, it might just be a CYA sort of thing...
-A
—
Andrew Martin, PhD
Stanford University School of Medicine
On Nov 28, 2018, at 2:10 PM, Mark McEver <notifications<EMAIL_ADDRESS>wrote:
Thanks for the input @123andyhttps://github.com/123andy. A disclaimer configuration seems more useful to me too. If that existed today, would you add disclaimers to any of your current modules?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/vanderbilt/redcap-external-modules/issues/147#issuecomment-442624354, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHHasQIAnQLrQM65hL6BB2WjRPEbZJwsks5uzwnugaJpZM4Y4VK5.


Update README list indentation in lib/index.js

Updated in code also. Should have checked for multiple occurrences 😄

:grin:
No worries. Actually, the README.md file is generated from the code. This is how I do it. :rocket:

@IonicaBizau oh cool Ill check it out thanks 👍


ParaTimes fail to load on MacOS

On MacOS, I'm unable to load Emerald ParaTime in the Oasis browser extension wallet.
Error: "No Runtime Found"
MacOS version: 11 (Big Sur)
Browser: Brave 1.34.81 Chromium: 97.0.4692.99
However, it loads fine on a Windows PC (running on the same Wifi network) and I am able to transfer from Emerald to the Consensus.
Screenshot comparing the ParaTimes tab in MacOS and Windows:

The browser console shows that the following resources fail to load:
https://grpc.oasis.dev/oasis-core.Registry/GetRuntimes
https://grpc.oasis.dev/oasis-core.Staking/Account
https://grpc.oasis.dev/oasis-core.Consensus/GetSignerNonce

Timeout issue? MacOS application firewall? This seems like a bug.

Yeah, that does look like a network issue. Try to find out what's going wrong with your DNS when it tries to resolve grpc.oasis.dev.

Thanks, you're right @pro-wh. It's a DNS config issue: macOS blocking .dev domains.
.dev TLDs are usually used for local development, so it may be safer to serve these public resources from a .com or .net domain?
This resolved my issue (if anyone else encounters it): https://superuser.com/a/1413487

Nice find! Thanks for looking into this.


Resume the development for 1.11

/override “style / suggester / shell

/test eventing-upgrade-tests

/override “style / suggester / shell"

override "style / suggester / shell"

override "style / suggester / shell"

/override "style / suggester / shell"


Alfa AWUS036H compatibility with 0.4.0

The Alfa AWUS036H wifi adapter was working with HSMM-Pi that I cloned back in July, and was able to work with Linksys and Ubiquiti nodes. I recenly did a fresh install after upgrading Linksys and Ubiquiti nodes to BBHN v3. The new install works fine with a wifi adapter from Adafruit, but the Alfa unit now doesn't work. It seems to have trouble setting to Ad Hoc mode. When I try to reset the wlan0 interface, I get a message "Device or Resource busy."
I tried going back to HSMM-Pi v0.3.0
-the Alfa adapter works, sees and is seen by the other nodes, but
-can't actually communicate (services on other nodes don't work, RasPi node services don't work on other nodes)
I tried installing with tags/v0.4.0
-initially the Alfa would not function
-after adding "auto eth0" to /etc/network/interfaces and restarting the networking service, the Alfa adapter works (sees/is seen by other nodes)
-after a reboot, however, the Alfa adapter again fails. If I take out "auto eth0", restart networking, the add "auto eth0" back, and again restart the networking service, it works.
- I haven't had time yet to determine if mesh services work between nodes with the v0.4.0 node working.
Any thoughts?

I've found a workaround posted by +Jon A on the Google+ community. Run this script at startup:
#!/bin/bash
service ifplugd stop
ifconfig wlan0 down
iwconfig wlan0 txpower 30 #if you want to use 1W of power
iwconfig wlan0 mode Ad-Hoc
iwconfig wlan0 essid BroadbandHamnet-20-v3 #or whatever the SSID for your mesh is
ifconfig wlan0 up
service ifplugd start
Now the RasPi nodes start and connect to each other and to Linksys and Ubiquiti nodes without any trouble.

Try with the latest hsmm-pi. I modified the install script to remove ifplugd, which was interfering with olsrd.

Closing, as this was most likely fixed by https://github.com/urlgrey/hsmm-pi/pull/42.


Centralize provider commonalities

CLA check is stalled -- there are no new files which require a license header in this commit, and existing files have not had their license headers removed. There is no content which is licensed differently.


Do you know any algorithm in Shell or Bash?

Hi, everyone!

Do you know any algorithm implementation in any language, that you wanna share with us?

Open a pull request in any of the programming languages available, or in Shell or Bash this case

I am in.


Add a console

With the new changes in #23 we have a better designed and abstracted system. I think the next step forward to get an amazing developer experience is added a console similar to Rails' console. I did some initial work and it seems like hot-reloading works which is something even Rails doesn't support.
As of right now, the only use case that can come to mind is messing around with models so a good first step is to have a console command that starts a REPL with hot swapping and load all models under models.*.

:tada: This issue has been resolved in version 1.3.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Reevaluate activity icons

Consider replacing the current activity icons with another set from iconfinder.com or a similar site. Having more activity icons would allow us to display a more diverse list of Rhode Island recreation activities. See activity icon sites listed in the wiki.

I found activity icons for walking, running, swimming, biking, hiking, and paddling by combining the following two sets of activity icons on Iconfinder:

Sports. Android L (Lollipop) Icon Pack. (paddling, running, biking)
Sport 2. Android L (Lollipop) Icon Pack. (walking, swimming, hiking)

No longer expanding list of activities.


mypy: Add annotations to api/integrations/basecamp/zulip_basecamp_mirror

Automated message from Dropbox CLA bot
@540KJ, it looks like you've already signed the Dropbox CLA. Thanks!

@540KJ it looks like there are some mypy errors here; have you investigated?

Should be ok now.

Merged, thanks @540KJ!


Why is this code illegal?

My understanding of this crate was that it ought to make this sort of thing legal:
use std::ptr::addr_of_mut;
use aliasable::boxed::AliasableBox;

fn main() {
    let mut b = AliasableBox::from_unique(Box::new(1usize));
    let p = addr_of_mut!(*b);
    *b = 2;
    assert_eq!(unsafe { p.read() }, 2);
}

It does seem to run fine, even if I hide various pieces of it inside #[inline(never)] functions. However, miri complains about it:
error: Undefined Behavior: attempting a read access using <2514> at alloc1093[0x0], but that tag does not exist in the borrow stack for this location
 --> src/main.rs:8:25
  |
8 |     assert_eq!(unsafe { p.read() }, 2);
  |                         ^^^^^^^^
  |                         |
  |                         attempting a read access using <2514> at alloc1093[0x0], but that tag does not exist in the borrow stack for this location
  |                         this error occurs as part of an access at alloc1093[0x0..0x8]
  |
  = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
  = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
help: <2514> was created by a SharedReadWrite retag at offsets [0x0..0x8]
 --> src/main.rs:6:13
  |
6 |     let p = addr_of_mut!(*b);
  |             ^^^^^^^^^^^^^^^^
help: <2514> was later invalidated at offsets [0x0..0x8] by a Unique retag
 --> src/main.rs:7:5
  |
7 |     *b = 2;
  |     ^^
  = note: BACKTRACE (of the first span):
  = note: inside `main` at src/main.rs:8:25: 8:33
  = note: this error originates in the macro `addr_of_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to 1 previous error

Is this a bug in miri, a bug in aliasable, or a bug in my understanding?

After more investigation, I think everything is working as designed, and that this is just a horrible landmine arising from the design of stacked borrow semantics. Just to convince myself that this has nothing particularly to do with std::boxed::Box or with AliasableBox, I wrote my own trivial box implementation which doesn't use core::ptr::Unique or even NonNull:
use std::{
    alloc::{Layout,alloc,dealloc},
    ops::{Deref,DerefMut}
};

struct MyBox<T>(*mut T);

impl <T> MyBox<T> {
    fn new(val: T) -> MyBox<T> {
        unsafe {
            let p : *mut T = alloc(Layout::new::<T>()).cast();
            assert!(!p.is_null());
            p.write(val);
            MyBox(p)
        }
    }
}

impl <T> Deref for MyBox<T> {
    type Target = T;

    fn deref(&self) -> &T {
        unsafe { self.0.as_ref().unwrap() }
    }
}

impl <T> DerefMut for MyBox<T> {
    fn deref_mut(&mut self) -> &mut T {
        unsafe { self.0.as_mut().unwrap() }
    }
}

impl <T> Drop for MyBox<T> {
    fn drop(&mut self) {
        unsafe { dealloc(self.0.cast(), Layout::new::<T>()); }
    }
}

Now, the following triggers UB in MIRI:
fn main() {
    let mut b = MyBox::new(1);
    let p = std::ptr::addr_of_mut!(*b);
    *b = 2;
    assert_eq!( unsafe { p.read() }, 2);
}

But if I subtly change how I construct p, there's no UB any more:
fn main() {
    let mut b = MyBox::new(1);
    let p = b.0;
    *b = 2;
    assert_eq!( unsafe { p.read() }, 2);
}

Just by momentarily going through <MyBox as DerefMut>::deref_mut which returns a &mut T and casting to a *mut T, instead of directly obtaining a *mut T, my pointer becomes infected with stacked-borrow cooties and writing to *b invalidates it.

I filed a rust issue about this: https://github.com/rust-lang/rust/issues/128803. Closing this to push discussion over to that.


Code highlighting not applied when navigating through angular's router

Select one ...  (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior
Navigating to a component via a route should result in the same code highlighting as refreshing the page on that route.
Actual behavior
Code highlighting is only applied if the component is refreshed.
Reproduction of behavior
Load this page.  Code highlighting is applied. Next, navigate to a different route, then either hit the back button or navigate back.  Code highlighting is not correctly applied.
Environment details

Angular version: 2.1.0

Clarity version: 0.7.0

OS and version: Win8.1 x64

Browser: Seen in Chrome 54 and Firefox 48 & 50.  Code highlighting does not work at all in Edge, probably unrelated.

Hi @amellnik, this is a good catch. A quick investigation reveals that when hitting back, Prism is run on the <code> element before the example is interpolated in.
Our code highlight component was initially meant for our static website demos, and listening to changes to its inner text requires quite the refactor. I will raise this to the team and we will see how we can fix it and when.
In the meantime, we do have a wrapper component that we have been using for more complex demos: example.ts
It is slightly more dynamic, you don't have to worry about escaping brackets since you use interpolation (just like you've been doing in your demo app), and is slightly easier to use. That said, it still doesn't listen to example code changes, but that's as easy as using a setter on the input:
private _code: string;
public get code() {
    return this._code;
}
@Input("clrCode") public set code(raw: string) {
    this._code = raw;
    this.codeHighlight.redraw();
}

I hope this helps.

@youdz I found there is a problem in the demo code (maybe a defect for CodeHighlight component). When the @Input("clrCode") public code: string; changed in the parent component, the code highlight block is still the old value. The component variable code is changed, but the rendered DOM is not changed.

@CrisLi: Thanks for the bug report, we will look at it and probably fix it as part of a more general refactor of the code highlight component, because at the moment it really doesn't support anything dynamic.

One further thought -- once it can handle dynamic content it would be nice to have an easy way to enable code highlighting on a text or textarea input, specifying the language and possibly even the refresh rate (ie, wait for 1 second without changes to re-color).

The link to the example.ts file is broken.

It got moved here: https://github.com/vmware/clarity/blob/master/src/app/_utils/code-example.ts

Code highlight component is targeted for removal in 0.12.

Would it make sense to add a note to the top of the code highlight documentation saying that it will be removed in the future?

We will when we officially deprecate it in the next release.

Deprecation notice provided.


camingo-code: init at 1.0

Motivation for this change
Added the camingo code font
Things done

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

[ ] NixOS
[ ] OS X
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Please squash when you're ready to merge :)

Squashed

Thanks!


Update config.json

We would like to propose that the framework version be updated to 8.  I don't know how to run the test suite but I'm hoping this has minor impact.

Günther,  If you say that this will not affect the CSRF token deployed by the forms stopwatch is embedded in then I believe you.  I just don't have PHP experience to judge that.

@jlund-ctsi-bmic - Yes, this feature is meant for plugin pages provided by modules. Stopwatch does not have such pages.
But I have it on my todo to update the module with regard to have the action tags show up in the action tag list. When I get around to to this, I will up the framework version.

Thank you for the update.

@jlund-ctsi-bmic - https://github.com/grezniczek/stopwatch/releases/tag/v1.1.0 is now available.


Unable to quantize GlobalAveragePooling2D due to missing attribute

Hello,
When I quantize a tensorflow 2 model with a global average pooling layer, I get the following error.

File "quantize.py", line 67, in
main()
File "quantize.py", line 64, in main
quantize(conf)
File "quantize.py", line 23, in quantize
quantized_model = quantizer.quantize_model(calib_dataset=dataset)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 578, in quantize_model
calib_steps)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 271, in _calibrate_without_loss
mode='QCB')
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 745, in create_quantize_model
quantize_strategy, mode)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 802, in quantize_apply
quantize_strategy.get_quantize_registry(), mode)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/eight_bit/vitis_8bit_transforms_pipeline.py", line 168, in apply
layer_metadata)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/eight_bit/vitis_8bit_transforms_pipeline.py", line 50, in _apply_availables
layer_metadata).recursive_transform()
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/graph_transformations/model_transformer.py", line 738, in recursive_transform
self.layer_metadata).transform()
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/graph_transformations/model_transformer.py", line 696, in transform
transformed_model = keras.Model.from_config(self._config, custom_objects)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/training.py", line 2397, in from_config
functional.reconstruct_from_config(config, custom_objects))
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/functional.py", line 1283, in reconstruct_from_config
process_node(layer, node_data)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/functional.py", line 1231, in process_node
output_tensors = layer(input_tensors, **kwargs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 977, in call
input_list)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 1115, in _functional_construction_call
inputs, input_masks, args, kwargs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 848, in _keras_tensor_symbolic_call
return self._infer_output_signature(inputs, args, kwargs, input_masks)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 886, in _infer_output_signature
self._maybe_build(inputs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 2659, in _maybe_build
self.build(input_shapes)  # pylint:disable=not-callable
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/layers/vitis_pooling.py", line 104, in build
if self._is_global_pooling(input_shape):
AttributeError: 'VitisGlobalAveragePooling2D' object has no attribute '_is_global_pooling'

When I look at the source code of vitis_pooling.py, it seems that the function '_is_global_pooling' is only implemented for the normal average pooling layer and missing for the global average pooling layer.

Hello,
When I quantize a tensorflow 2 model with a global average pooling layer, I get the following error.

File "quantize.py", line 67, in
main()
File "quantize.py", line 64, in main
quantize(conf)
File "quantize.py", line 23, in quantize
quantized_model = quantizer.quantize_model(calib_dataset=dataset)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 578, in quantize_model
calib_steps)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 271, in _calibrate_without_loss
mode='QCB')
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 745, in create_quantize_model
quantize_strategy, mode)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/vitis_quantize.py", line 802, in quantize_apply
quantize_strategy.get_quantize_registry(), mode)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/eight_bit/vitis_8bit_transforms_pipeline.py", line 168, in apply
layer_metadata)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/eight_bit/vitis_8bit_transforms_pipeline.py", line 50, in _apply_availables
layer_metadata).recursive_transform()
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/graph_transformations/model_transformer.py", line 738, in recursive_transform
self.layer_metadata).transform()
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/graph_transformations/model_transformer.py", line 696, in transform
transformed_model = keras.Model.from_config(self._config, custom_objects)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/training.py", line 2397, in from_config
functional.reconstruct_from_config(config, custom_objects))
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/functional.py", line 1283, in reconstruct_from_config
process_node(layer, node_data)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/functional.py", line 1231, in process_node
output_tensors = layer(input_tensors, **kwargs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 977, in call
input_list)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 1115, in _functional_construction_call
inputs, input_masks, args, kwargs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 848, in _keras_tensor_symbolic_call
return self._infer_output_signature(inputs, args, kwargs, input_masks)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 886, in _infer_output_signature
self._maybe_build(inputs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/keras/engine/base_layer.py", line 2659, in _maybe_build
self.build(input_shapes)  # pylint:disable=not-callable
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.7/site-packages/tensorflow_model_optimization/python/core/quantization/keras/vitis/layers/vitis_pooling.py", line 104, in build
if self._is_global_pooling(input_shape):
AttributeError: 'VitisGlobalAveragePooling2D' object has no attribute '_is_global_pooling'

When I look at the source code of vitis_pooling.py, it seems that the function '_is_global_pooling' is only implemented for the normal average pooling layer and missing for the global average pooling layer.

hi, i try to open the source code of vitis_pooling.py, but it shows 404 not found. In addition, vai2.5 version has been released, which contains the global average pooling layer, you can try it.

Hello,
Indeed, the url is no longer valid.
This is an updated link to branch 2.0.
It also looks like the bug is fixed in Vitis AI 2.5 so I will close this issue.


Genome build

Hi,
Which genome genome build do the positions correspond to?

The genome build is GRCh37, documented on the FAQ page: https://gnomad.broadinstitute.org/faq


chore: sample apps for testing push behavior

helps: https://github.com/customerio/issues/issues/10830
Changes
Added feature to help test push behavior as described in linked ticket

Introduced option to modify the push notification configuration from settings screen in both Java and Kotlin sample
Added events to activities for easier lifecycle observation

Note
This PR is mainly to help generate desired builds and may be closed without merging if not needed

Closing this as testing is complete for the feature and we planned not to merge it in main for now


Finish checksum.sh sentence

Finishes a comment in checksum.sh describing why the file hashes are sorted.

@manuelvicnt This is a bit awkward, it looks like this doesn't end up running any checks since it just changed a script, so I can't merge it. Can that be done manually somehow?

Had to manually merge it! Thank you


Automated cherry pick of #12647: fix(webconsole): host ssh use cloudroot user error

Cherry pick of #12647 on release/3.7.
#12647: fix(webconsole): host ssh use cloudroot user error

/lgtm
/approve


Update to arrow 27.0.0

Which issue does this PR close?

re https://github.com/apache/arrow-rs/issues/3045
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

I plan to merge this once I get it green -- there is a huge PR backlog that I would like to clear

🎉


Exported PDF files are corrupted if markdown filename includes special characters (such as umlaut)

I noticed this bug using the latest release (1.8.3) using pandoc 3.1.4 on macOS. When a special character is used for the filename, the resulting PDF can't be viewed with Apple Preview (refuses to open), while Adobe Acrobat Reader can open, but not save them (Error: The document could not be saved. Bad parameter.) This happens without supplying any extra user arguments. Could this be an error in this plugin or maybe I am missing something? It's not a big deal, as I can rename my files after export, adding the special characters back in again.

What's your special characters?
Could you switch off auto open exported file? and export again, If it still happens, it maybe an issue with pandoc itself.


Configurable retries

Fixes #2723

@jdoliner Are there any docs for this? I don't even see it in the basic pipeline spec docs

Doesn't look like there are unfortunately, oops. Do you min adding them?

@jdoliner  @JoeyZwicker  I did add in this PR but still outstanding https://github.com/pachyderm/pachyderm/pull/3133

Ah perfect. Thanks Suneeta. Sorry that PR slipped through the cracks. We're on it


Trouble getting this working

Hi i'm having some trouble getting this working.
I have a colour picker component I want that changes the colour of the app.
I have a footer component I want to take that animation value and assign it as the background colour.
However it only works on first render, is this library still maintained. I would love to connect?

hey it’s not really maintained tbh. at this point you’d be best off just passing an animated value around your app using React Context

Yeah the only issue is that I need to update that value from a nested child. I think i'm finding either the value from the hook is not causing a rerender to the footer or i'm unable to update the value properly. For example, i'm calling newValue from inside useDerivedValue in reanimated 2.


fix(bip-32): Updated bip-32 library to improve vulns

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


neovim-qt: 0.2.10 -> 0.2.11

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/neovim-qt/versions.
meta.description for neovim-qt is: '"Neovim client library and GUI, in Qt5"'.
Release on GitHub
Compare changes on GitHub

Checks done (click to expand)

built on NixOS
/nix/store/5px78by6gh5a50hjlllbx15qsaib0cbf-neovim-qt-0.2.11/bin/nvim-qt passed the binary check.
/nix/store/5px78by6gh5a50hjlllbx15qsaib0cbf-neovim-qt-0.2.11/bin/.nvim-qt-wrapped passed the binary check.
2 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 0.2.11 with grep in /nix/store/5px78by6gh5a50hjlllbx15qsaib0cbf-neovim-qt-0.2.11
directory tree listing: https://gist.github.com/e172e31a53fd7f30b00174c90105c22e
du listing: https://gist.github.com/6a0a8fe80f9972fc86346607ac288dd3

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
neovim-qt

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5px78by6gh5a50hjlllbx15qsaib0cbf-neovim-qt-0.2.11 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A neovim-qt https://github.com/r-ryantm/nixpkgs/archive/4c3e1114d8994d5787fad964a93011430b4ef717.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5px78by6gh5a50hjlllbx15qsaib0cbf-neovim-qt-0.2.11
ls -la /nix/store/5px78by6gh5a50hjlllbx15qsaib0cbf-neovim-qt-0.2.11/bin

cc @peterhoeg for testing.

aarch64 is broken on master as neovim doesn't build on aarch64 currently, so the error is nto related to this package.
see also https://hydra.nixos.org/job/nixos/unstable-aarch64/nixpkgs.neovim-qt.aarch64-linux


Random addition of channel during training when input data is all 1 channel

System information
Have I written custom code [posted below]:
Done on google colab using TF 2.x
Currently during training, somehow my training data gets a surprising second channel. I think this has something to do with datatype changing that happens during the fit function, but is not resolved when forcing dtype prior to entering training. This messes with the concatenation of my Dense-Net like structures. Looking at the warning below, I don't understand how its being called with a shape of  512,512, 1, 1, as the overall shape of image_list is 1540, 512,512, 1. Where each image slice is 512, 512, 1. (HWC)
Traceback is:
WARNING:tensorflow:Model was constructed with shape (None, 512, 512, 1) for input Tensor("input_2:0", shape=(None, 512, 512, 1), dtype=float32), but it was called on an input with incompatible shape (512, 512, 1, 1).
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-17-b77dae276c25> in <module>()
      1
----> 2 model.fit(dataset, epochs=1 )

10 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py in _method_wrapper(self, *args, **kwargs)
    106   def _method_wrapper(self, *args, **kwargs):
    107     if not self._in_multi_worker_mode():  # pylint: disable=protected-access
--> 108       return method(self, *args, **kwargs)
    109
    110     # Running inside `run_distribute_coordinator` already.

/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
   1096                 batch_size=batch_size):
   1097               callbacks.on_train_batch_begin(step)
-> 1098               tmp_logs = train_function(iterator)
   1099               if data_handler.should_sync:
   1100                 context.async_wait()

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds)
    778       else:
    779         compiler = "nonXla"
--> 780         result = self._call(*args, **kwds)
    781
    782       new_tracing_count = self._get_tracing_count()

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds)
    821       # This is the first call of __call__, so we have to initialize.
    822       initializers = []
--> 823       self._initialize(args, kwds, add_initializers_to=initializers)
    824     finally:
    825       # At this point we know that the initialization is complete (or less

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py in _initialize(self, args, kwds, add_initializers_to)
    695     self._concrete_stateful_fn = (
    696         self._stateful_fn._get_concrete_function_internal_garbage_collected(  # pylint: disable=protected-access
--> 697             *args, **kwds))
    698
    699     def invalid_creator_scope(*unused_args, **unused_kwds):

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/function.py in _get_concrete_function_internal_garbage_collected(self, *args, **kwargs)
   2853       args, kwargs = None, None
   2854     with self._lock:
-> 2855       graph_function, _, _ = self._maybe_define_function(args, kwargs)
   2856     return graph_function
   2857

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/function.py in _maybe_define_function(self, args, kwargs)
   3211
   3212       self._function_cache.missed.add(call_context_key)
-> 3213       graph_function = self._create_graph_function(args, kwargs)
   3214       self._function_cache.primary[cache_key] = graph_function
   3215       return graph_function, args, kwargs

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/function.py in _create_graph_function(self, args, kwargs, override_flat_arg_shapes)
   3073             arg_names=arg_names,
   3074             override_flat_arg_shapes=override_flat_arg_shapes,
-> 3075             capture_by_value=self._capture_by_value),
   3076         self._function_attributes,
   3077         function_spec=self.function_spec,

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/func_graph.py in func_graph_from_py_func(name, python_func, args, kwargs, signature, func_graph, autograph, autograph_options, add_control_dependencies, arg_names, op_return_value, collections, capture_by_value, override_flat_arg_shapes)
    984         _, original_func = tf_decorator.unwrap(python_func)
    985
--> 986       func_outputs = python_func(*func_args, **func_kwargs)
    987
    988       # invariant: `func_outputs` contains only Tensors, CompositeTensors,

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py in wrapped_fn(*args, **kwds)
    598         # __wrapped__ allows AutoGraph to swap in a converted function. We give
    599         # the function a weak reference to itself to avoid a reference cycle.
--> 600         return weak_wrapped_fn().__wrapped__(*args, **kwds)
    601     weak_wrapped_fn = weakref.ref(wrapped_fn)
    602

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs)
    971           except Exception as e:  # pylint:disable=broad-except
    972             if hasattr(e, "ag_error_metadata"):
--> 973               raise e.ag_error_metadata.to_exception(e)
    974             else:
    975               raise

ValueError: in user code:

    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:806 train_function  *
        return step_function(self, iterator)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:796 step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute_lib.py:1211 run
        return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute_lib.py:2585 call_for_each_replica
        return self._call_for_each_replica(fn, args, kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute_lib.py:2945 _call_for_each_replica
        return fn(*args, **kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:789 run_step  **
        outputs = model.train_step(data)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:747 train_step
        y_pred = self(x, training=True)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer.py:985 __call__
        outputs = call_fn(inputs, *args, **kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/functional.py:386 call
        inputs, training=training, mask=mask)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/functional.py:508 _run_internal_graph
        outputs = node.layer(*args, **kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer.py:985 __call__
        outputs = call_fn(inputs, *args, **kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/merge.py:183 call
        return self._merge_function(inputs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/merge.py:522 _merge_function
        return K.concatenate(inputs, axis=self.axis)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/util/dispatch.py:201 wrapper
        return target(*args, **kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/backend.py:2881 concatenate
        return array_ops.concat([to_dense(x) for x in tensors], axis)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/util/dispatch.py:201 wrapper
        return target(*args, **kwargs)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/array_ops.py:1654 concat
        return gen_array_ops.concat_v2(values=values, axis=axis, name=name)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gen_array_ops.py:1222 concat_v2
        "ConcatV2", values=values, axis=axis, name=name)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:744 _apply_op_helper
        attrs=attr_protos, op_def=op_def)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/func_graph.py:593 _create_op_internal
        compute_device)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py:3485 _create_op_internal
        op_def=op_def)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py:1975 __init__
        control_input_ops, op_def)
    /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py:1815 _create_c_op
        raise ValueError(str(e))

    ValueError: Dimension 2 in both shapes must be equal, but are 2 and 1. Shapes are [512,32,2] and [512,32,1]. for '{{node functional_3/concatenate_60/concat}} = ConcatV2[N=2, T=DT_FLOAT, Tidx=DT_INT32](functional_3/leaky_re_lu_84/LeakyRelu, functional_3/concatenate_55/concat, functional_3/concatenate_60/concat/axis)' with input shapes: [512,32,2,86], [512,32,1,172], [] and with computed input tensors: input[2] = <3>.

Link to colab: https://colab.research.google.com/drive/1FwuS2Wa589CvbiqOgAznqqnbKruez9Nj?usp=sharing
link to sample dataset:

@zhilothebest
I ran the code shared on colab for 2.2 as shared ans 2.3 and do not face any error, please find gist here.

With respect to the error shared, please refer to below links:
linklink1

@Saduf2019 ahh I hadn't responded to this and closed it when I figured out the solution last night. My apologies. I was able to fix my problem by using:tf.convert_to_tensor() on my image list and mask list.

@Saduf2019 ahh I hadn't responded to this and closed it when I figured out the solution last night. My apologies. I was able to fix my problem by using:tf.convert_to_tensor() on my image list and mask list.

@Saduf2019 ahh I hadn't responded to this and closed it when I figured out the solution last night. My apologies. I was able to fix my problem by using:tf.convert_to_tensor() on my image list and mask list.

can u please elaborate by giving the exact statement

I was having the same error but  the problem I had was regarding me using a wrong class mode.
It Worked after I've changed to binary:
train_it = datagen_train.flow_from_directory(train_directory, class_mode='binary', ..)

Sometimes this problem arises in the colab/notebook when you run the tesnordataset.batch() cell twice. as tensors are already batched; running the same cell again batches it again and ends up adding an extra dimension. just clear the variable and you will be fine

hello sir
i new gys in deep learning

i have the same problem
ValueError: Dimension 2 in both shapes must be equal, but are 2 and 1. Shapes are [256,128,2] and [256,128,1]. for '{{node model/concatenate/concat}} = ConcatV2[N=2, T=DT_FLOAT, Tidx=DT_INT32](model/conv2d_transpose/BiasAdd, model/conv2d_3/Relu, model/concatenate/concat/axis)' with input shapes: [256,128,2,32], [256,128,1,32], [] and with computed input tensors: input[2] = <3>.
i tried to solve it with tf.convert_to_tensor() but nothing is changed, what should I do to tackle this problem? please I need help

concatenate on axis=2 as the third is unequal. 1 and 2. So the resultant
shape would be (x,x,3)
On Sun, 28 Nov 2021, 4:39 pm ayoubk34, @.***> wrote:

i have the same problem
ValueError: Dimension 2 in both shapes must be equal, but are 2 and 1.
Shapes are [256,128,2] and [256,128,1]. for '{{node
model/concatenate/concat}} = ConcatV2[N=2, T=DT_FLOAT,
Tidx=DT_INT32](model/conv2d_transpose/BiasAdd, model/conv2d_3/Relu,
model/concatenate/concat/axis)' with input shapes: [256,128,2,32],
[256,128,1,32], [] and with computed input tensors: input[2] = <3>.
i tried to solve it with tf.convert_to_tensor() but nothing is changed,
what should I do to tackle this problem? please I need help
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/42037#issuecomment-981070062,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTHGS63CIQH63JIHYDX25LUOIIIXANCNFSM4PUVA75Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

256, 128, 3, 32
On Sun, 28 Nov 2021, 5:26 pm Murad Mansoor, @.***>
wrote:

concatenate on axis=2 as the third is unequal. 1 and 2. So the resultant
shape would be (x,x,3)
On Sun, 28 Nov 2021, 4:39 pm ayoubk34, @.***> wrote:

i have the same problem
ValueError: Dimension 2 in both shapes must be equal, but are 2 and 1.
Shapes are [256,128,2] and [256,128,1]. for '{{node
model/concatenate/concat}} = ConcatV2[N=2, T=DT_FLOAT,
Tidx=DT_INT32](model/conv2d_transpose/BiasAdd, model/conv2d_3/Relu,
model/concatenate/concat/axis)' with input shapes: [256,128,2,32],
[256,128,1,32], [] and with computed input tensors: input[2] = <3>.
i tried to solve it with tf.convert_to_tensor() but nothing is changed,
what should I do to tackle this problem? please I need help
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/42037#issuecomment-981070062,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTHGS63CIQH63JIHYDX25LUOIIIXANCNFSM4PUVA75Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


When i try to connect and download files from my remote server, i receive to following warning followed by a bunch of errors. --- [08-14 09:31:59] [warn] ENOENT: no such file or directory, open 'C:\Users\MY-PC.ssh\config' load C:\Users\MY-PC.ssh\config failed

Do you read the FAQ?

[x] Yes.
[ ] I am going to read now.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Create a sftp.json file
press F1 then select project from the SFTP: List All
Choose project folder
See error

Expected behavior
Project is supposed to be downloaded from remote server to local workspace
Screenshots
N/A
Desktop (please complete the following information):

OS: Win
VSCode Version 1.37.0
Extension Version 1.12.8

Extension Logs from Startup - required
[08-14 09:31:46] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts"
[08-14 09:31:46] [debug] register command "Config" from "./commandConfig.ts"
[08-14 09:31:46] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts"
[08-14 09:31:46] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts"
[08-14 09:31:46] [debug] register command "Set Profile" from "./commandSetProfile.ts"
[08-14 09:31:46] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts"
[08-14 09:31:46] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts"
[08-14 09:31:46] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts"
[08-14 09:31:46] [debug] register command "Diff" from "./fileCommandDiff.ts"
[08-14 09:31:46] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts"
[08-14 09:31:46] [debug] register command "Download" from "./fileCommandDownload.ts"
[08-14 09:31:46] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts"
[08-14 09:31:46] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts"
[08-14 09:31:46] [debug] register command "Download File" from "./fileCommandDownloadFile.ts"
[08-14 09:31:46] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts"
[08-14 09:31:46] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts"
[08-14 09:31:46] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts"
[08-14 09:31:46] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts"
[08-14 09:31:46] [debug] register command "List" from "./fileCommandList.ts"
[08-14 09:31:46] [debug] register command "List All" from "./fileCommandListAll.ts"
[08-14 09:31:46] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts"
[08-14 09:31:46] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts"
[08-14 09:31:46] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts"
[08-14 09:31:46] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts"
[08-14 09:31:46] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts"
[08-14 09:31:46] [debug] register command "Upload" from "./fileCommandUpload.ts"
[08-14 09:31:46] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts"
[08-14 09:31:46] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts"
[08-14 09:31:46] [debug] register command "Upload File" from "./fileCommandUploadFile.ts"
[08-14 09:31:46] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts"
[08-14 09:31:46] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts"
[08-14 09:31:46] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts"
[08-14 09:31:46] [info] config at d:\Workspace\My App Dev {"remotePath":"/var/app/current","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"My App Dev","host":"ec2-ip.compute-1.amazonaws.com","port":22,"username":"******","privateKeyPath":"C:\Users\My-PC\.ssh\ssh-k072319"}
[08-14 09:31:59] [trace] run command 'List All'
[08-14 09:31:59] [warn] ENOENT: no such file or directory, open 'C:\Users\My-PC.ssh\config' load C:\Users\My-PC.ssh\config failed
[08-14 09:32:05] [debug] Local ident: 'SSH-2.0-ssh2js0.4.2'
[08-14 09:32:05] [debug] Client: Trying ec2-ip.compute-1.amazonaws.com on port 22 ...
[08-14 09:32:05] [debug] Client: Connected
[08-14 09:32:05] [debug] Remote ident: 'SSH-2.0-OpenSSH_7.4'
[08-14 09:32:05] [debug] Outgoing: Writing KEXINIT
[08-14 09:32:05] [debug] DEBUG: Comparing KEXINITs ...
[08-14 09:32:05] [debug] (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
[08-14 09:32:05] [debug] (remote) KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
[08-14 09:32:05] [debug] KEX algorithm: ecdh-sha2-nistp256
[08-14 09:32:05] [debug] (local) Host key formats: ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
[08-14 09:32:05] [debug] (remote) Host key formats: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
[08-14 09:32:05] [debug] Host key format: ssh-rsa
[08-14 09:32:05] [debug] (local) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm<EMAIL_ADDRESS>[08-14 09:32:05] [debug] (remote) Client->Server ciphers: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
[08-14 09:32:05] [debug] Client->Server Cipher: aes128-ctr
[08-14 09:32:05] [debug] (local) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm<EMAIL_ADDRESS>[08-14 09:32:05] [debug] (remote) Server->Client ciphers: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
[08-14 09:32:05] [debug] Server->Client Cipher: aes128-ctr
[08-14 09:32:05] [debug] (local) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1
[08-14 09:32:05] [debug] (remote) Client->Server HMAC algorithms: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[08-14 09:32:05] [debug] Client->Server HMAC algorithm: hmac-sha2-256
[08-14 09:32:05] [debug] (local) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1
[08-14 09:32:05] [debug] (remote) Server->Client HMAC algorithms: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[08-14 09:32:05] [debug] Server->Client HMAC algorithm: hmac-sha2-256
[08-14 09:32:05] [debug] (local) Client->Server compression algorithms: none,zlib@openssh.com,zlib
[08-14 09:32:05] [debug] (remote) Client->Server compression algorithms<EMAIL_ADDRESS>[08-14 09:32:05] [debug] Client->Server compression algorithm: none
[08-14 09:32:05] [debug] (local) Server->Client compression algorithms: none,zlib@openssh.com,zlib
[08-14 09:32:05] [debug] (remote) Server->Client compression algorithms<EMAIL_ADDRESS>[08-14 09:32:05] [debug] Server->Client compression algorithm: none
[08-14 09:32:05] [debug] Outgoing: Writing KEXECDH_INIT
[08-14 09:32:05] [debug] DEBUG: Checking host key format
[08-14 09:32:05] [debug] DEBUG: Checking signature format
[08-14 09:32:05] [debug] DEBUG: Verifying host fingerprint
[08-14 09:32:05] [debug] DEBUG: Host accepted by default (no verification)
[08-14 09:32:05] [debug] DEBUG: Verifying signature
[08-14 09:32:05] [debug] Outgoing: Writing NEWKEYS
[08-14 09:32:05] [debug] Outgoing: Writing SERVICE_REQUEST (ssh-userauth)
[08-14 09:32:05] [debug] Outgoing: Writing USERAUTH_REQUEST (none)
[08-14 09:32:05] [debug] Client: none auth failed
[08-14 09:32:05] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey -- check)
[08-14 09:32:05] [debug] Outgoing: Writing USERAUTH_REQUEST (publickey)
[08-14 09:32:05] [debug] Outgoing: Writing CHANNEL_OPEN (0, session)
[08-14 09:32:05] [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp)
[08-14 09:32:05] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:05] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:05] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:06] [debug] Outgoing: Writing READDIR
[08-14 09:32:06] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:06] [debug] Outgoing: Writing READDIR
[08-14 09:32:06] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:06] [debug] Outgoing: Writing CLOSE
[08-14 09:32:06] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing LSTAT
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [trace] handle download folder for d:\Workspace\My App Dev
[08-14 09:32:08] [debug] Outgoing: Writing LSTAT
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing CLOSE
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing OPENDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:08] [debug] Outgoing: Writing READDIR
[08-14 09:32:08] [debug] Outgoing: Writing CHANNEL_DATA (0)
[ ..................]
[08-14 09:32:10] [debug] Outgoing: Writing READDIR
[08-14 09:32:10] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:10] [error] Error: Failure
at SFTPStream._transform (C:\Users\My-PC.vscode\extensions\liximomo.sftp-1.12.8\node_modules\ssh2-streams\lib\sftp.js:412:27)
at SFTPStream.Transform._read (_stream_transform.js:190:10)
at SFTPStream._read (C:\Users\My-PC.vscode\extensions\liximomo.sftp-1.12.8\node_modules\ssh2-streams\lib\sftp.js:183:15)
at SFTPStream.Transform._write (_stream_transform.js:178:12)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)
at SFTPStream.Writable.write (_stream_writable.js:294:11)
at Channel.ondata (_stream_readable.js:666:20)
at Channel.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Channel.Readable.push (_stream_readable.js:219:10)
at SSH2Stream. (C:\Users\My-PC.vscode\extensions\liximomo.sftp-1.12.8\node_modules\ssh2\lib\Channel.js:167:15)
at SSH2Stream.emit (events.js:182:13)
at parsePacket (C:\Users\My-PC.vscode\extensions\liximomo.sftp-1.12.8\node_modules\ssh2-streams\lib\ssh.js:3295:10)
at SSH2Stream._transform (C:\Users\My-PC.vscode\extensions\liximomo.sftp-1.12.8\node_modules\ssh2-streams\lib\ssh.js:693:13)
at SSH2Stream.Transform._read (_stream_transform.js:190:10)
at SSH2Stream._read (C:\Users\My-PC.vscode\extensions\liximomo.sftp-1.12.8\node_modules\ssh2-streams\lib\ssh.js:252:15)
at SSH2Stream.Transform._write (_stream_transform.js:178:12)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)
at SSH2Stream.Writable.write (_stream_writable.js:294:11)
at Socket.ondata (_stream_readable.js:666:20)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
[08-14 09:32:10] [debug] Outgoing: Writing READDIR
[08-14 09:32:10] [debug] Outgoing: Writing CHANNEL_DATA (0)
[08-14 09:32:10] [debug] Outgoing: Writing READDIR
[08-14 09:32:10] [debug] Outgoing: Writing CHANNEL_DATA (0)
[ ..................]

I have the same error.

This happened to me too. Installed the extension. Set up ssh with key file and it doesn't connect ?!?

This issue is full of details and logs by @ykeita, then closed for "needs-more-info". Okay.
However, it's happen also to me, but it's just a warning, SFTP still working fine.


NIFI-13378: Adds Version State as filterable option in Process Groups tab in Summary

Summary
NIFI-13378
Adds Version State as filterable option in Process Groups tab in Summary similar to Status filter.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[ ] Build completed using mvn clean install -P contrib-check

[x] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

will review

@rfellows Thanks so much for reviewing!


Firmware Updates fail if also trying to do other network stuff (like scanning because bluetooth is connected)

This has been fixed by having switched over to Nimble. Closing.


Unable to generate client

When using Local Development, and already in the web page, when I Generate the client, an error pops up:
Failed building client binary. exit status 2:# github.com/tiagorlampert/CHAOS/client/app/handler app/handler/handler.go:68:28: undefined: any note: module requires Go 1.18
Any solutions??

Looks like you are running a old golang version.
Make sure to run go 1.18 or greater.
To check your version run on terminal:
go version


Publish for Scala 2.12.18, please?

2.12.18 JARs are on Maven Central, as per https://contributors.scala-lang.org/t/scala-2-12-18-release-planning/6089/9

Created tag 0.3.7. Publishing is in process: https://github.com/com-lihaoyi/acyclic/actions/runs/5152509790


Expand TerminalProcess API surface to mirror Process

Inspecting memory usage, threads, modules, etc is useful for diagnostic purposes.

Most of this is done. Just need to check how many of the memory-related properties on Process make sense to expose.

Just need to check how many of the memory-related properties on Process make sense to expose.

I'll leave this alone for now. Turns out barely any of them return non-zero values on Linux/macOS anyway.


Add binary-search exercise

@dalexj Done, thank you for reviewing the code.

@bernardoamc thanks for this! We probably need a test for an unsorted list. Perhaps raise an ArgumentError. Also, what about al list with duplicates? I'm not sure if that should raise or just return the index of the first one found. Probably the later, but we should still have the test I think. @dalexj thoughts?

looking at the ruby exercism, there's an ArgumentError for unsorted lists, and nothing regarding duplicates in the list.
duplicates are a little strange as they would return the first number that falls on a length/2^n index instead of the first one in the list. example: [2, 2, 2] would return index 1 since it looks at the middle first

@parkerl No problem, glad to help! I think it would be unexpected to raise in case of duplicates since the search will work as expected. I have mixed feelings regarding enforcing that the list should be sorted, but since the ruby exercise has this maybe we should implement it.
Something like: raise ArgumentError, "expected list to be sorted"

@parkerl @dalexj I implemented the check for unsorted lists, suggestions are welcome. :)

Thanks @bernardoamc. I'm good with this s it is. @dalexj any other comments?

:+1: looks good to me


Insertion in Singly Linked List

Fixed #6

Some Part of code is copied from https://www.geeksforgeeks.org/linked-list-set-1-introduction/ (Main and print function)


@vitejs/plugin-react-refresh doesn't work with generic react functional components

Describe the bug

Generic typescript react functional components cannot be transformed using plugin-react-refresh.
This works with the typescript compiler.

Reproduction
interface MyProps<T> {
  readonly  example: T;
}
export const MyComponent = <T,>({example}: MyProps<T>) => {
  return null;
}

System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
  System:
    OS: macOS 11.0.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 833.76 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.3.0 - /usr/local/bin/node
    npm: 7.0.14 - /usr/local/bin/npm
  Browsers:
    Chrome: 89.0.4389.90
    Edge: 89.0.774.57
    Firefox: 86.0
    Safari: 14.0.1
  npmPackages:
    vite: ^2.1.3 => 2.1.3

Used package manager:
Logs

10:22:21 AM [vite] hmr update /src/web/components/common/AutoComplete.tsx (x4)
10:22:21 AM [vite] Internal server error: Transform failed with 1 error:
<redacted> 25:6: error: Expected "}" but found ";"
  Plugin: vite:esbuild
  File: <redacted>

  Expected "}" but found ";"
  23 |    example
  24 |  }: MyProps<T>) => {
  25 |    _s();
     |        ^
  26 |

Before submitting the issue, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the docs.
[x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[x] Provide a description in this issue that describes the bug.
[x] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[x] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Could you provide a codesandbox-repro or a repro-repo? That would help to jump more quickly into the problem for helping contributors.

@Shinigami92 here is a repo with an example: https://github.com/rockwotj/vite-example

I'm going to explore the problem and see if I can solve it.

Is it an esbuild problem and not react-refresh plugin?

Is it esbuild problem and not vite react-refresh plugin?
[plugin:vite:esbuild] Transform failed with 1 error:
/home/bagher/vite-example/src/App.tsx:12:2: error: Unexpected "return"
/home/bagher/vite-example/src/App.tsx:12:2
Unexpected "return"
10 |
11 |  const ExampleComponent = <T>(_props: ExampleProps<T>) => {
12 |    return null;
   |    ^
13 |  };
14 |
    at failureErrorWithLog (/home/bagher/vite-example/node_modules/esbuild/lib/main.js:1224:15)

One issue here is that it should be <T,> not . Something is modifying that into invalid syntax.

@rockwotj this is an issue with babel TSX parser: https://github.com/babel/babel/issues/12978
It was also reported before here https://github.com/vitejs/vite/issues/2295
There is a workaround for this problem here https://github.com/microsoft/TypeScript/issues/15713#issuecomment-300545248
This is a limitation cased by the use of  for generic type parameter declarations. combined with JSX grammar, it makes such components ambiguous to parse.

The workaround is to use a function expression instead:

// Basic example
const paramArray = function <T>(param1: T, param2: T) { return [param1, param2] };

// React specific example
type Component<T> = React.ComponentClass<T> | React.StatelessComponent<T>;
const decorator = function<T>(Component: Component<T>) : Component<T> { return (props) => <Component {...props} /> };

Thank you @patak-js !


refactor: match identifers as they appear in data when limiting proteins

Related to #7
Description
Previously, the limit_proteins function (endpoint to all of the proteomics integration) was expecting the identifiers in the model to be prot_ID, where "ID" is the identifier provided in the measurements data. This was very lacking because models like ecYeast do not use prot_ prefixes.
Implementation
Match protein identifiers as they appear in the data, without any modifications.

Tests and docs were updated.
limit_proteins correctly hints for a pd.Series instead of a pd.DataFrame.

@cplong90 This should be the behavior for limit_proteins that we discussed on #7, shall I merge it?

This works for me!

Hi @carrascomj , sorry I missed this. I haven't had a chance to test but trust you and @HossFir to make the call if it's working well on your end for both the E. coli and S. cerevisiae models. I can follow up post-merge if I notice any issues.

Awesome, thanks you both! I'll be merging it, then.


Is run_start actually required for a resource?

If not, why not?

Good question. The answer is no, because:
(1) Until recently, Resources didn't even have a run_start field.
(2) We want to maintain the possibility that you might have data you generally care about  and want to track outside of the context of any specific "run".
Please reopen the issue if you think the decision needs to be discussed more or revisited.

Hmm ok, I was hoping that there was a way to find a resource without having the datum in hand.


Remove legend

No real need for a legend in this case. Would like it removed

Legend removed via pull request #24


Update image location

Motivation

Solution

PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Updated the changelog

Codecov Report

Merging #117 (00ae926) into master (34e6902) will increase coverage by 0.00%.
The diff coverage is n/a.

:exclamation: Current head 00ae926 differs from pull request most recent head 16658c9. Consider uploading reports for the commit 16658c9 to get more accurate results

Additional details and impacted files

@@           Coverage Diff           @@
##           master     #117   +/-   ##
=======================================
  Coverage   56.38%   56.39%
=======================================
  Files          46       46
  Lines       10296    10296
=======================================
+ Hits         5805     5806    +1
+ Misses       4491     4490    -1

Flag
Coverage Δ

test
56.39% <ø> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/storage.rs
55.08% <0.00%> (+0.84%)
:arrow_up:

Continue to review full report at Codecov.

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


Add ned2ecef and ned2lla coordiante conversions

Note: the ned2ecef method does not transform into absolute coordinates.  This may be a source of confusion, but notes were added to the docstring to minimize problems.

Just wondering on when you think this PR will be approved. Great functionality here!

Thanks for the reminder!  Will get reviewed shortly.

I have merged this PR. Thanks for this clarification in the docstring.


Can not install last release

I'm using this plugin to build led . I've noticed that you've released v1.0.0 and v2.0.0 recently. I've got the following error

Building native extensions.  This could take a while...
ERROR:  Error installing fluent-plugin-concat:
	ERROR: Failed to build gem native extension.

    current directory: /root/.gem/ruby/2.3.0/gems/msgpack-1.0.0/ext/msgpack
/usr/bin/ruby -r ./siteconf20161007-13-147n85y.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /root/.gem/ruby/2.3.0/gems/msgpack-1.0.0 for inspection.
Results logged to /root/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/msgpack-1.0.0/gem_make.out

I've resolved the error by sticking with version 0.6.2 like this
gem install fluent-plugin-concat -v 0.6.2
Any ideas ?
Thank.

How to set up your environment?
Did you install gems by gem install?
Could you copy and paste commands you've executed?
The log said /usr/lib/ruby/include/ruby.h is missing while building msgpack-ruby 1.0.0.
So, I think fluent-plugin-concat is not related to your issue.
BTW, I recommend bundler.
You can lock your gem versions via Gemfile and Gemfile.lock.

I've found the error , in fact your plugin fluent-plugin-concat in version 2.0.0 required at least fluentd v0.14.0
I'm usind fluentd version 0.12.28


Create new range - OCA Range - Kutaisi

Now with the inclusion of the Mirage Squadron, I have recived a request for a range for conducting OCA operations (Offensive Counter Air).
I will create a new range (with complete Range order) over Kutaisi airfield.
As such, I will also move the current tankers to surrounding airfields, to make Kutaisi deactive as a airfield, and to be working as a range

rgr. If red defanged red CAP is desired (misile trainer + no guns), Im happy to implement it as Ive been working with the CAP script on MOOSE before. It needs some more tweaking but I put it completely on hold until I hear if you want it or not, so let me know and I get it done

Thanks, No, I don't think I want to implement RED CAP here. However, on the Standard Combat mission, then there is need for several RED CAP zones. Once I get the a flow from Etcher, I will post the standard combat mission on github.

:+1:

I will start working on the training mission tomorrow, and I will create a OCA range at Kutaisi, I will also add a couple more ranges in the general Kutaisi area (NORTHEAST of Kutaisi).
Anyone have any objections? Or inputs on how to do it? if not, I will do as before with a general range airspace, put out some static targets, and some targets at a "storage" that can be moved around to support the training objectives at that certain area.
PLus I will also add in JTAC's as appropriate.

Here is how the new range at KUTAISI looks like. It is intended for OCA strikes.
Questions, commentsm concerns?

Range is now created in "my" branch, and ready for merge into develop/master


add hyperscript-attribute-to-property

For some context, this patch means you won't need to
hx`<div className="whatever"></div>`

you can simply do:
hx`<div class="whatever"></div>`

Package readme is here: https://github.com/feross/hyperscript-attribute-to-property

I bumped the major because some libs like deku (which is in the hyperx examples) don't (yet) alias className to class.


(3.0.50) Lost ability to view methods from superclasses in browser?

I thought that was a useful feature ... and was momentatily befuddled by the fact that it had disappeared ... category and package visibility is useful  ... but I miss being able to view methods from superclasses ...

I'm closing this, seeing as the feature has been gone for so long.  Presumably the improvements in the hierarchy tab has been sufficient.

Just because it has been gone a long time doesn't mean that it isn't still missed ... it was and still would be a useful feature ...

Retitling since it's a new feature now, since that pane over the method list was re-purposed and was a bit buggy, as I recall. Dale, since this is something you want, please adjust priority.


Create python package to hit this API

Detailed Description
Create a python package for this api
Context

Makes it easier for clients using python

Possible Implementation

create a python package to hit each end point.
might want to do this in a new repo, or do this here, and make sure it matched

Have coded this module... needs to be generalised a bit so you can add support for all endpoints but hopefully will be useful...
ocf_quartz_api.zip
Example Use Case
Download all forecasts covering a given period that were created during a given period
Example Usage
from datetime import datetime, time, timedelta
import pytz

from ocf_quartz_api import OCFQuartz

GSP_IDS= [0, 1, 2]
START = pytz.utc.localize(datetime.combine(date.today(), time(0, 30)))
END = pytz.utc.localize(datetime.combine(date.today()+ timedelta(days=1), time(0)))
FORECAST_START = START - timedelta(days=1)

# N.B. `ocf_creds` could also be a Path to YAML file containing these params
ocf_creds = {
    "username": "REDACTED",
    "password": "REDACTED"
}

quartz = OCFQuartz(
    credentials=ocf_creds,
    proxies=None
)

ocf_forecasts = quartz.get_forecasts(
    forecast_start=FORECAST_START ,
    forecast_end=END,
    target_start=START,
    target_end=END,
    forecast_base_times=None,
    gsp_ids=GSP_IDS
)


Tut 16: InitializeProgram() tries to re-use deleted vertex-shader

Originally reported by: Christian Forfang (Bitbucket: cforfang, GitHub: cforfang)

Framework::CreateProgram(shaderList) deletes all the shaders in the list, so when InitializeProgram() tries to re-use the vertex-shader (by keeping it in the list) on line 35 it doesn't work.
The obvious fix is of course to recreate the shader. I attached a diff which changes GammaRamp.cpp to do this.
That aside, thanks for writing the guide! It's been great learning from it. :)

Bitbucket: https://bitbucket.org/alfonse/gltut/issue/84

fixed by #1


[SPARK-21548] [SQL] Support insert into serial columns of table

What changes were proposed in this pull request?
When we use the 'insert into ...' statement we can only insert all the columns into table.But int some cases,our table has many columns and we are only interest in some of them.So we want to support the statement "insert into table tbl (column1, column2,...) values (value1, value2, value3,...)".
How was this patch tested?
manual tests
Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?


⚠ ClamAV has degraded performance

In 9a7c6c8, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 181 ms

Resolved: ClamAV performance has improved in f51d249.