SSH can‘t Connect to WSL2 from another machine

Version
<IP_ADDRESS>
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Ubuntu20.04
Other Software
No response
Repro Steps
In the wsl version( <IP_ADDRESS>), I can perform the following operations to achieve the purpose of accessing wsl2 through ssh

Change your OpenSSH shell
SSH to your Windows host (SSH Server must be installed in Windows Features)
ssh user@windowshost
Start Powershell
powershell
Run this command to switch SSH from CMD to WSL
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\WINDOWS\System32\bash.exe" -PropertyType String -Force
You should now see WSL2 instead of CMD
ssh user@windowshost

But now that I have upgraded to version(<IP_ADDRESS>), this operation no longer connects to wsl2
[12:52:03.686] SSH Resolver called for "ssh-remote+<IP_ADDRESS>", attempt 5, (Reconnection)
[12:52:03.687] SSH Resolver called for host: <IP_ADDRESS>
[12:52:03.688] Setting up SSH remote "<IP_ADDRESS>"
[12:52:03.689] Using commit id "fad3a77833b9249158dfd88477114a06435e46a2" and quality "insider" for server
[12:52:03.691] Install and start server if needed
[12:52:07.269] Running script with connection command: ssh -T -D 58369 "<IP_ADDRESS>" bash
[12:52:07.271] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[12:52:08.399] ><EMAIL_ADDRESS>password:�]0;C:\WINDOWS\System32\cmd.exe�
[12:52:08.399] Got some output, clearing connection timeout
[12:52:08.400] Showing password prompt

I thought I set bash as the default shell, but I found that setting bash as the default shell is no longer valid after the updated version
Expected Behavior
I was referring to this link for the purpose I wanted
VSCode Remote: Connect to WSL2 from another machine
Actual Behavior
Now that I have upgraded to version(<IP_ADDRESS>), this operation no longer connects to wsl2
Diagnostic Logs
C:\Users\mems>ssh -v<EMAIL_ADDRESS>OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Reading configuration data C:\\Users\\mems/.ssh/config
debug1: C:\\Users\\mems/.ssh/config line 1: Applying options for <IP_ADDRESS>
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\mems/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\mems/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\mems/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\mems/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ed25519_sk type -1
debug1: identity file C:\\Users\\mems/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\\Users\\mems/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\mems/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_8.6
debug1: compat_banner: match: OpenSSH_for_Windows_8.6 pat OpenSSH* compat 0x04000000
debug1: Authenticating to <IP_ADDRESS>:22 as 'mems'
debug1: load_hostkeys: fopen C:\\Users\\mems/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: kex: client->server cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:9YTeeXvvXZv+IRjWZ5VFdzJ9R4NkEeXbqrJWe6lnEQo
debug1: load_hostkeys: fopen C:\\Users\\mems/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: Host '<IP_ADDRESS>' is known and matches the ED25519 host key.
debug1: Found key in C:\\Users\\mems/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_ecdsa_sk
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_ed25519_sk
debug1: Will attempt key: C:\\Users\\mems/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256<EMAIL_ADDRESS>debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\mems/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\mems/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\mems/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\mems/.ssh/id_ecdsa_sk
debug1: Trying private key: C:\\Users\\mems/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\mems/.ssh/id_ed25519_sk
debug1: Trying private key: C:\\Users\\mems/.ssh/id_xmss
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
<EMAIL_ADDRESS>password:
debug1: Authentication succeeded (password).
Authenticated to <IP_ADDRESS> ([<IP_ADDRESS>]:22).
debug1: channel 0: new [client-session]
debug1: Requesting<EMAIL_ADDRESS>debug1: Entering interactive session.
debug1: pledge: filesystem full
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
debug1: client_input_global_request: rtype<EMAIL_ADDRESS>want_reply 0
debug1: client_input_hostkeys: searching C:\\Users\\mems/.ssh/known_hosts for <IP_ADDRESS> / (none)
debug1: client_input_hostkeys: searching C:\\Users\\mems/.ssh/known_hosts2 for <IP_ADDRESS> / (none)
debug1: client_input_hostkeys: hostkeys file C:\\Users\\mems/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: no new or deprecated keys from server
debug1: ssh_get_authentication_socket: No such file or directory
The file cannot be accessed by the system.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype<EMAIL_ADDRESS>reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to <IP_ADDRESS> closed.
Transferred: sent 2032, received 2688 bytes, in 0.1 seconds
Bytes per second: sent 25999.3, received 34392.8
debug1: Exit status 0

Thank you for reporting this @awohaoa.
Unfortunately, this is a known limitation of store WSL. At the moment it's not possible to access wsl from session 0 (which is where the Windows OpenSSH server run).

@OneBlue
Why did the previous version(<IP_ADDRESS>) work, and will this access be supported in the future?

Related:
https://github.com/microsoft/WSL/issues/9059
https://github.com/microsoft/WSL/issues/8907

Why did the previous version(<IP_ADDRESS>) work?

This has actually been "broken" (a.k.a. a known limitation) in every Store release since they first started doing them back in October of last year with <IP_ADDRESS> and was noted in the initial Devblog announcement.
I just uninstall 0.70.5 to test, since you said 0.66.2 was working.

After uninstalling 0.70.5 and returning to the "in box" version of WSL on Windows 11, ssh into WSL worked.
Installing 0.66.2 immediately caused it to stop working again.

Is it possible that you didn't actually have 0.66.2 installed when it was working?  You might want to retest yourself -- It's an easy to switch around versions at will without even needing to reboot.  Just make sure you verify the release with wsl --version and/or wsl --status.

will this access be supported in the future?

Dang, I sure hope so -- This was an incredibly useful capability, and WSL feels a bit hampered without it.  I've been assuming this is a Windows limitation with the way that Store apps are launched, which had me thinking that Windows 11 22H2 would provide a solution for it.  But alas, no -- It's still not working on 22H2.

+1, it's strange that we take one step forward and one step back.
I was excited to get this: https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
Yet baffled that this was real + my experience as well: https://superuser.com/questions/1714736/cannot-run-wsl2-over-ssh-on-windows-11

@NotTheDr01ds How do you switch around versions? The --rollback option doesn't seem to exist anymore. If I uninstall and then reinstall a different version of WSL2, will my existing distributions be deleted?

@NotTheDr01ds

As a workaround for now it is possible to install and run a second OpenSSH server (using a different port) in your WSL instance.
This can then be combined with using the  ProxyJump directive to transparently connect to the second OpenSSH server running in the wsl instance by jumping through the win32 OpenSSH server. The directive can be added to the remote system's ~/.ssh/config:
Host openssh_win32
    Hostname your_computer.local
    User windows_username

Host openssh_wsl
   ProxyJump openssh_win32
   User wsl_username
   HostName localhost
   Port 2222

The above example assumes that the second OpenSSH server in wsl is running on port 2222.
Using this configuration it is then possible to connect to the wsl instance via the hostname openssh_wsl:
ssh openssh_wsl

As always, YMMV.

Does joes work around only work if have WSL instance already running?

@carljwhite3
It would require the wsl instance to be running prior to connecting to it. This workaround  would not be able to start the wsl instance.

Launching a instance of WSL remotely worked previously and was very convenient.  Bascily, you would have the Windows Open SSH instance running and then you could jump into a WSL instance from there.

Is there any update on this?


fix: 修复匹配不到换行的setup  --bug=#154

Description
修复匹配不到换行的setup

Linked Issues
#154
Additional context

no

Can you add some unit test for it?


Hide lane arrow

I've realised I can hide lane arrows, but only if there's no custom lane connections at the node. Also, if I'm not mistaken, hiding the arrow also means no connections from that lane at the junction/node?
For detailing and general beautification of roads (particularly at transitions between ground, elevated, bridge, etc.) it would be really useful if I could simply "hide" individual lane arrows without affecting connections. And (nice to have) a keyboard modifier (Alt+Click?) on the "hide" button to toggle visibility of all lane arrows for selected segment(s).
There could perhaps be an extra button to toggle visibility of the lane arrow, which would work even if there are custom lane connections for that lane?
Possible icon for button: eye

There are mods that purpose:
https://steamcommunity.com/workshop/browse/?appid=255710&searchtext=remove+arrow&childpublishedfileid=0&browsesort=textsearch&section=home

Yes, I am aware of these mods. So far, the only mod I've seen that allows me to remove individual lane arrows is TM:PE. In addition, even with things such as ploppable asphalt, I am often not able to remove the existing arrows without creating floating patches of tarmac.
For example, if I want to close a single lane of a motorway between two junctions (exit and entry), I only want the single arrow removing. I don't want to remove all arrows across all roads and then spend ages manually recreating them just to remove the arrows from that single lane of motorway between the two junctions.

I believe it's impossible to prevent individual lane arrows from being rendered at specific road segments.

On the lane arrow changer tool in TM:PE, you get three buttons for each arrow. If I "unselect" each button no arrow is shown. I was just wondering if it was possible to have a "hide" button that has the same effect, but while leaving the lane connections in place?

Ok, that's possible of course. +1 I would have to create a new data structure that holds the lane arrows and decouple routing decisions from the base game's arrows

moved


Numpy stats

Not really ready to merge
Banking some work in progress from today:

vectorisation and efficiency sections from @marqh
a start on the "Stats + Masking" section from @pp-mo

Not really ready to merge

I disagree, i think this represents good progress towards our goal and is targeting a feature branch.
As such, merging is cheap and no changes are made to master.  I am adopting this as a point to work from
thank you @pp-mo


co?

@suluke could you have a look at this, when you have a time?
https://github.com/cognitom/express-middleware-rollup/blob/co/lib/express-rollup.js
My attempt with co. I realized that it might make the logic simple, without promise hell.
If you like it I'll be pleased send a PR, though the main purpose why I started this refactoring was for just code-reading for myself 😄
For example:
*writeBundle(code, map, dest) {
  try {
    const stats = yield fsp.stat(dirname(dest));
    if (!stats.isDirectory()) {
      throw new Error('Directory to write to does not exist (not a directory)');
    }
    yield fsp.writeFile(dest, code);
    if (map) {
      yield fsp.writeFile(`${dest}.map`, map);
    }
  } catch (err) {
    throw err;
  }
}

Hi! Thank you for your suggestions.
Unfortunately, I don't have any practical experience with generators. My knowledge is only theoretical, so it will take me some time to wrap my head around how Co makes use of them. From what I have seen so far the code doesn't really look more concise and (from my current position) certainly not easier to understand. But give me a week or so to look at generators and Co again and I might have changed my mind. Right now I would stick with using promises. The current code structure isn't all that bad in my opinion.

Thank you for your considering. Never mind. I think keeping using promise is also fine.
I understood every line now, so it doesn't matter promises or generators 😉
Let's move on to implement new features!

Great! I'm looking forward to seeing PRs from you :) Maybe I will find some time this week to do something on my own. At least I will try to be there if you have any questions so I can answer in a timely manner.
I will close this issue then.


Remove leading and trailing white spaces

Remove leading and trailing white spaces that can cause the playlist to not parse due to wrong formatting of playlist

Codecov Report
Base: 98.59% // Head: 98.59% // No change to project coverage :thumbsup:

Coverage data is based on head (62c7066) compared to base (3cb025e).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #16   +/-   ##
=======================================
  Coverage   98.59%   98.59%
=======================================
  Files           4        4
  Lines         284      284
=======================================
  Hits          280      280
  Misses          4        4

Impacted Files
Coverage Δ

Sources/M3UKit/PlaylistParser.swift
98.12% <100.00%> (ø)

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


feat!: update node support matrix (only support node 16-20)

This will be a breaking change.  My intention is to release uuid@10 release with RFC9562 support, so this is a good opportunity to update the CI matrix.

Github settings for the main branch also still need to be updated.


Feature/fdk 642 integrasjonstester

Changes Unknown when pulling da98c35fb54d3090ddcf877111e4c7c83cf20e01 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 1c158ebce8edb09e5c4260a45537700f7cf5be41 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling b80c0abe92d4c21923c82ac97e5842714322d801 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling e3a731eb7efdf55d54870f7d2c22af442d21a8d9 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling bc739fc7b251dab8b8051661b963b68aae0a67cf on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling f139f55db6e4bb58edf36d6bb0ff8d289b088ce5 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 3afbe434fe0396a8613b4696cfda913475f6d8fe on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 4fbc896f38af00d2884592218dec46a875ba2310 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 50dc6c06e93d8fbf28e23109d4f23ec19b3fa0fb on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 50dc6c06e93d8fbf28e23109d4f23ec19b3fa0fb on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 797f64ee6a0911ce2cb50e5dc15b8247535e0a18 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 64054efbdad42b52c2a355c9556c7fb1d97c3afd on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling e5e8404dd685461e2d989e0f71f596982b69d8f8 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling e5e8404dd685461e2d989e0f71f596982b69d8f8 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 6b8ce4be38841fc409b5a0593d2981346a99ea73 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 6b8ce4be38841fc409b5a0593d2981346a99ea73 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling af44adfe362c980b6e0acdc9206f076ae8f33251 on feature/FDK-642_integrasjonstester into ** on develop**.

Changes Unknown when pulling 9ad8390ab34e7d298c0b832a778c55a591d4e399 on feature/FDK-642_integrasjonstester into ** on develop**.


In the umpleonline simulator, display the type of the available arguments to methods

Originally reported on Google Code with ID 64

Currently the arguments are named, but the user of the simulator can't readily tell
what type they are.
getName() is being used successfully to get the name of the parameter.
I expected to be able to use getType(), which returns a ReflectionClass object, and
then getName() to get the parameter type. But this fails with error:
Fatal error: Call to a member function getName() on a non-object.
As an alternative, I tried using PHP's gettype(), is_object() and get_class(), but
this always returns "ReflectionParameter".
Anyone have other ideas?

Reported by @umple on 2011-06-23 21:18:24

The simulator has not been maintained, and doesn't even appear any more in Umpleonline it would seem.


Add option link an Mastodon account to an collective profile

User story
On the profile page of an collective you can set your twitter account but not an Fediverse one.
for example as part of "woodpecker-ci" we do have https://mastodon.technology/@WoodpeckerCI but will never have an twitter account.
Best solution for this problem
Simplest option would be to add a new field for mastodon accounts.
A better option to add lets say up to 5 "custom fields" user can put links into it, specify a category and upload icons for it.
MVP
What should be possibly built to demonstrate the solution?
well just look how at the twitter link option
Metrics
What metrics will be used to measure impact?
to validate the metrics, create an mastodon account and see how much momentum you can get!
the audience is different sure - but in a better way :+1:
Documentation
The goal of the documentation should be to make it easier for others to do this
?

I'm not sure If I should open a new issue, but a "open collective - mastodon" account would be a nice idea too!
I think cross-post from mastodon to twitter is possible so not much more work should occur.

Thanks for documenting this issue @6543! I made a proposal in https://github.com/opencollective/opencollective/issues/4588#issuecomment-906974550 to have a general "Custom links" approach for people to put whatever they want in there. I'm going to consolidate everything in a new issue.

Closing in favor of a more generic approach: https://github.com/opencollective/opencollective/issues/5097


perf(core): Performance fixes in GameProfilingSystem and ChromeTracingProfileWriter

PR Details
I took another look at the profiler changes I made, as @manio143 mentioned a perf issue.
I misunderstood how Utf8JsonWriter works - it won't flush to the underlying stream automatically, so there were constant reallocations. And in GameProfilingSystem checking if it is time to update the output turned into a busy-wait while not subscribed to the Profiler.
Description

Fix busy-wait in GameProfilingSystem and make surrounding code clearer.
Add manual flushing to the JsonWriter, so the internal buffer doesn't grow indefinitely and put it on the fast path by skipping validation.

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

GameProfilingSystem - Would it be possible to separate receiving messages and updating strings into two separate, concurrent loops?
With semaphore slim for synchronization.
I feel like there's a lot of complexity in reading the update method because it behaves one way in Fps mode, and differently in the other modes. containMarks can be made into a field, then we have two loops:
while (!cancellation) {
  await Delay(Refresh)
  await lock
  update strings
  release lock
}

await foreach (var event) {
  await lock
  update state with new event
  release lock
}

I don't think semaphore slim will add too much overhead on top of async here, but of course would be good to verify it doesn't change the perf much.

Adding the semaphore adds about 80ns (~400ns -> ~480 ns) per event for me, I guess that would be okay?
Alternatively, how about splitting into one task for fps display and a second task for detailed stats and then changing the active task depending on the active state.
UpdateFpsStats:
while (!cancellation) {
  await Delay(Refresh)
  update strings if needed
}

UpdateDetailedStats:
while (!cancellation) {
  await foreach (var event) {
    update state with new event
    update strings if needed
  }
}

That way the complexity in the update method is also removed from the update method and we don't have to worry about synchronization. But I'm fine with your suggestion too, if you prefer it.

I want it to be readable most of all (you're suggestion is ok).
Maybe having two tasks makes more sense and you can switch between them when switching the display type?

Continued in #2050


[WIP] Add Unet blocks for consistency models

Adding Unet model and conversion scripts, part of https://github.com/huggingface/diffusers/pull/3492
To-do

[x] Add building blocks needed for the original repo Unet implementation
[x] Conversion script for weights into diffusers + load pretrained weights into diffusers
[x] Check if forward passes into pretrained model give same results as original repo

Was able to convert the Unet into diffusers, load pretrained checkpoints and get same outputs from forward passes:
ckpt : https://huggingface.co/ayushtues/consistency_models/tree/main
unet = UNet2DModel.from_pretrained("ayushtues/consistency_models", subfolder="diffusers_cd_imagenet64_l2")

Had to add two new blocks to unet_2d_blocks - AttnDownsampleBlock2D & AttnUpsampleBlock2D, because I needed a resnet based down/upsampler along with resnet, and the existing AttnDownBlock2D &AttnUpBlock2D just used a simple conv downsampler.
Open to suggestions on how to design this better

Sorry, didn't get a chance to look at this until now.

Had to add two new blocks to unet_2d_blocks - AttnDownsampleBlock2D & AttnUpsampleBlock2D, because I needed a resnet based down/upsampler along with attention, and the existing AttnDownBlock2D &AttnUpBlock2D just used a simple conv downsampler.
Open to suggestions on how to design this better

The new blocks look fine to me. I guess I'm not the most knowledgeable about unet_2d_blocks so it might be worth it to ask the maintainers directly about the design.
Also, I have a quick question: does the conversion script support class-conditional models? I see for example in the consistency model scripts that there are some examples of training and sampling from them.

I took a closer look at the unet block implementations and it looks like SimpleCrossAttnDownBlock2D/SimpleCrossAttnUpBlock2D are pretty similar to AttnDownsampleBlock2D/AttnUpsampleBlock2D in having a ResnetBlock2D/Attention/ResnetBlock2D downsampler/upsampler pattern. Might it be possible to leverage some or all of the SimpleCrossAttnDownBlock2D/SimpleCrossAttnUpBlock2D implementation?

Test

I took a closer look at the unet block implementations and it looks like SimpleCrossAttnDownBlock2D/SimpleCrossAttnUpBlock2D are pretty similar to AttnDownsampleBlock2D/AttnUpsampleBlock2D in having a ResnetBlock2D/Attention/ResnetBlock2D downsampler/upsampler pattern. Might it be possible to leverage some or all of the SimpleCrossAttnDownBlock2D/SimpleCrossAttnUpBlock2D implementation?

These blocks use AttnAddedKVProcessor, which has a different Attention implementation, and would have been non-trivial to convert it into what we need without changing the Attention Processor

Makes sense, looks good to me then :).


docker deployment:  alpin, slim not supported

sanic cannot be installed when using python-alpine or python-slim
3.6.6-slim-stretch, 3.6-slim-stretch, 3.6.6-slim
I can install sanic using python:3.6.6

I have it running on python:3.6.4-alpine
Can you explain why you are unable to deploy it on docker? What are you experiencing?

You might need gcc to get libuv to compile.
FROM python:3.6-alpine
COPY ./ctrl_api /ctrl_api
WORKDIR /ctrl_api/
RUN ls
RUN apk add --update --no-cache build-base python3-dev libffi-dev openssl-dev
RUN pip install virtualenv
RUN virtualenv -p python3.6 venv
RUN source venv/bin/activate
RUN pip install -r dev_requirements.txt

I have it running on python:3.6.4-alpine
FROM python:3.6.4-alpine

RUN apk update \
    && apk add build-base

Can you explain why you are unable to deploy it on docker? What are you experiencing?

I want this to be executed successfully
FROM python:3.6.6-slim-stretch

ADD . /app

WORKDIR /app

RUN pip install sanic

EXPOSE 7000

CMD ["python", "src/app.py"]

The error is
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./python -I./lib -I/usr/local/include/python3.6m -c ./python/ujson.c -o build/temp.linux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

@liulwx Alpine linux is not based on gcc but musl.
You need to install gcc first.
Hence RUN apk add --update --no-cache build-base

@liulwx I am not familiar with slim-stretch. If its ubuntu based you need to install gcc first.
apt-get install build-essential gcc

@liulwx Alpine linux is not based on gcc but musl.
You need to install gcc first.
Hence RUN apk add --update --no-cache build-base

Thank you for you solving my problem.
Can you provide a basic docker image in docker hub. Then we can deploy sanic in docker-alpine like flask. When using flask, I have no need to manually install gcc in alpine or slim

I've actually been working on this... Later this week I plan on uploading both a sanic alpine base image and one with sanic-jwt.
I'm closing this for now. Feel free to continue discussing if need be.

Hello. Is it nice to have  RUN apk del build-base after the installation of sanic to reduce the docker image size?


Release?

Hey @FynnBe,
didn't we draft a release yesterday?
Looks like this didn't quite work. Can you look into this?

yeah.. we just didn't merge it: https://github.com/bioimage-io/spec-bioimage-io/pull/479
(merged now)


Add support of Class.getInterfaces()

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.11%. Comparing base (51a3ae9) to head (e3a147d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #154      +/-   ##
==========================================
+ Coverage   79.48%   84.11%   +4.63%
==========================================
  Files          54       53       -1
  Lines        3236     2902     -334
==========================================
- Hits         2572     2441     -131
+ Misses        664      461     -203

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


Twitter Blast CLI

What

rough idea for CLI version for twitter-export

you could roll your own SQL code instead of the ORM or you can just use sqlalchemy to decrease the # of dependencies.

@fangherk yea I was thinking ahead cuz I was thinking of using flask for the hosted version of the app


[HDInsight] KafkaRestProperties should not require groupName given groupId has been specified

The ClientGroupInfo property already accept a groupId in request body, based on which service should be able to deduce the groupName. This issue suggest to remove the groupName from the model as an input property.

Hi @magodo , This is by design, This property not only as input but also as output. Please see here, This property will return to customer  when they call Get cluster API.

Hi @magodo , This is by design, This property not only as input but also as output. Please see here, This property will return to customer when they call Get cluster API.

Returning group name is more readable for customer.
Could you please share more about this issue? For example, what's the impact on you?

As the API consumer, it is more handy to provide the least amout of input in request. In this case, groupName can be deduced from groupId, which seems redundent to ask users to also specify. Otherwise, making groupName as output only (readOnly) might be a better choice here.
Specifically, I'm working on this feature in Terraform azurerm provider. Look at this comment: https://github.com/terraform-providers/terraform-provider-azurerm/pull/8064#discussion_r480079072

@magodo : Thanks for the feedback. We have opened a work item and plan to address it in a future release.

@magodo : Can we close this request, we have a work item and this change will be rolled out with a new API version.

@deshriva Thank you for the update, can we wait until the Swagger PR for that new API version is merged?

Thanks for the feedback. We have opened a work item and plan to address it in a future release.

on going

on going

on going

on going

on going


Rewrite considerations

I've been thinking for a while now on rewriting this library from ground-up and replace any auto-generated code with hand crafted code, to avoid the issues we see with the changes and weird behaviors of JanePHP.
I'd like to gauge interest/opinions around this, specially from users who have been interacting by submitting issues and PRs.
Shall we start a new library or keep things as they are?

cc @rodrigoaguilera @Rid

Is it really janePHP's problems or that the docker api spec doesn't reflect the actual api?
janePHP seems like a well-maintained project despite the problems it created for docker-php.
From my point of view dropping janePHP's "help" will also mean to keep up with future updates of the docker api manually. I'm thinking new enpdoints and parameters/options to existing endpoints. I don't have much experience with janePHP.
Another project on my radar is https://github.com/clue/reactphp-docker but I don't really need to do any async stuff and the seem to handcraft the API integration. The consequence is that they don't cover all the endpoints in the API. I think is one of the wins of docker-php.
Thanks for pinging for discussion.

The thing with Jane is that every now and then they change how things are generated (compare the results of generated code throughout 7.x releases and you'll see that it changes quite a bit even though they are at the same major version), and that usually breaks signatures on docker-php (as it extends docker-php-api).
I haven't used all of the API to have a strong opinion/argument about it being or not the source of issues to be honest, so you could be 100% right that handcrafting the integration is a poor decision/choice.
Maybe automating/modernizing the whole thing and improving the test suite would be enough to make this more sustainable.

@flavioheleno Thanks for bringing up this important topic for discussion. I totally understand the frustration that comes with some of the issues and weird behaviours we've encountered while using JanePHP. The idea of rewriting the library with hand-crafted code is certainly tempting and could offer more control over the codebase.
However, I'd like to advocate for sticking with JanePHP for a couple of reasons:
API Coverage: JanePHP has the advantage of covering the entire API. I, personally, rely heavily on this wide range of API features, and replicating this in a new library could be a massive effort.
Development Time: Reaching feature parity with the current version would be a significant undertaking. The effort required to write, test, and maintain hand-crafted code for the entire API could be considerable and may divert our attention from other valuable tasks.
Maintenance: I'm committed to maintaining the current version and updating JanePHP when needed, which should mitigate some of the issues we've been experiencing.
While a rewrite might give us more control, it could also open the door to new bugs and require extensive testing to ensure we're not introducing new issues. I think it would be more efficient to fix the JanePHP issues as they come up, rather than undertaking the huge task of a complete rewrite.

Thanks for chiming in @Rid!
I think the API Coverage topic is a concern for both you and @rodrigoaguilera, which was neglected by myself when thinking about the rewrite.
In terms of Development Time and Maintenance, you are 100% right that there is a lot more effort to write from scratch than trying to work with/around JanePHP, but I did consider this when I thought about the rewrite (probably too lightly though).
I'd say it's settled that we should keep working with what we have and look for ways to improve and modernize it.
I've given both of you write access to beluga-php/* so we can work together and make this happen.
I'll open a discussion on the organization so we can outline some plans moving forward.
Thank you both for all the effort and time you've put in helping out, it's very much appreciated! :)


Handle the attribute value as an array properly in SAMLResponse

Let's support an additional parameter called flattenArray which will concatenate the vales with a ,

@devkiran Added flattenArray option and tests


investigate how to test github actions

I've seen tools coming out like act where you can simulate an event payload to test your github actions locally. To prevent cases like #108, it'd be great to describe a good workflow for testing out your changes to an action and document it as part of the developer guide.
Opening this mainly for my own benefit, but hopefully providing some guidance may assist others looking to add new features to our workflows (as well as provide others a way to test changes being made to the workflow)

meh


Is it possible to link items?

I'd like to show several items in a group as linked.
I have a repeating event that I'd like to be able to style to show those events are linked.
Awesome module, thanks!

Hi, when you say "linked", what do you mean? Something similar to this image?

Unfortunately there's currently no way to do this, but it should be possible. What kind of use case do you have, and how do you expect the API for this to look like?

@gavmck I'm working on the component to have a multiple items dragging (will have next week time to finish it). this would help at least with the part of the interaction with a whole bunch of items. In theory you could also play with the itemrenderer. This would not draw it as nice as in the screenshot of @mariusandra but you could at least visually (thickness, color, ...) group them. Would be cool if you can work on such a project with us.


Improve instructions on how to run example

This is related to #92
Note: taken as it is from the root Readme

Thank you for sending a PR, very appreciated btw. :+1:

Sure! Thanks for providing such exciting tools. Looking forward to be using them for my project and I will look for other opportunities to contribute to back (such as https://github.com/mjackson/expect/pull/20) ;)


turbo stuck when running build, and the terminal has no outputs

What version of Turborepo are you using?
1.10.7
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
The project is a monorepo's. I ran the turbo build in root dir, it just stuck, and no outputs. I also ran  clean and dev, it also stuck
Expected Behavior
I hope that maintainers can provide me with some debug commands
thanks so much
To Reproduce
none
Reproduction Repo
No response

@chris-olszewski  hi , the project is private in gitlab and it's a company project, so I'm sorry that I can't provide a reproduction. I use the -vvv command(thanks for your help, it works), the terminal finally outputs like this:
turborepo_lib::shim: Global turbo version: 1.10.7
turborepo_lib::shim: No local turbo binary found at: /node_modules/turbo-darwin-64/bin/turbo
turborepo_lib::shim: No local turbo binary found at: /node_modules/turbo/node_modules/turbo-darwin-64/bin/turbo
turborepo_lib::shim: Local turbo path<EMAIL_ADDRESS>turborepo_lib::shim: Local turbo version: 1.10.7
turborepo_lib::shim: Repository Root: /Users/luodanmei/Documents/projects/designer
turborepo_lib::shim: Running local turbo binary in<EMAIL_ADDRESS>And last, it has the same behavior with 1.10.6

It turns out to to be a git-version problem, I updated my git from 2.15.0 to 2.41.1, and then it solved


Update taimen.conf

fixed goole to google
Description
[Description of the changes you are submitting]
Checklist

[x] Have you tested the change you are submitting?
[x] Is the commits history nice and clean?

ok


Conditional routing between several network services

Hello.
I have a question that I did not find an answer for and I would love for an explanation.
I have a use case, where I want 1 nsc to be connected to 2 network endpoints behind 2 different network services.
I want to conditionally route to the network endpoints based on the destination address.
Let's say when dst is inside a specific internal network, like 10.x.x.x/24, I want to go to service S1, otherwise I want to default to S2.
I made up a network service definition of what I have in mind. Is something like this possible?

Thanks!

@yuraxdrumz
Short answer: Yes
Long answer: Not quite the way you are thinking :)
In Network Service Mesh, and NSE can specify the ConnectionContext in the Connection it returns.  This includes an IPContext which includes, among other things:

The IP addresses to assign to both ends of the vWire
The routes to be created in the NSC that should point to that vWire

So to take your example, NSE-1 can simply return the route <IP_ADDRESS>/24 in its ConnectionContext and NSM (presuming no conflict with excluded prefixes like the cluster prefixes) will program them into the NSC.
Your 'else dst is x.x.x.x/x'  would just be a route returned by NSE-1.
Does that make sense?

@edwarnicke
Yes, I assume you meant NSE-2 in the last sentence.
Thanks

@yuraxdrumz Thanks for catching that typo, I've fixed it now :)


SAM0: Inability to configure ADC for internal temperature sensor

Describe the bug
Controller: SamL21 (samr34j18b)
Problem:
Following this condition in SAM0 ADC driver (https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/adc/adc_sam0.c#L462) we can initialize ADC driver only with the corresponding controller's pins.
However, internal ADC temperature measurement in SUPC isn't provided with any controller's pins.
Hence, we can't use this ADC driver for reading ADC values with internal temperature measurements.
Testing:
A simple and direct solution - to comment out this condition (pinctrl checking) - made a success, so it means that it is redundant for this particular case...
Expected behavior
It seems that the structure of ADC driver should be made in such a way, that we can optionally check providing of pinctrl structure.
For example, we can check for specific channels, where there is no need in any pins for adc.
Impact
Without dealing with this problem I can't implement temperature measurement in a device, what is critical feature for functionality.
Environment (please complete the following information):

OS: Linux
Toolchain: Zephyr SDK
Commit SHA: c69986da4caa0a05b46435b119d58a26d7518138

Additional context
Link to SAM documentation about internal temperature sensor (page 947, "Device Temperature Measurement"):
https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_L21_Family_DataSheet_DS60001477C.pdf

You should be able to achieve what you want with a channel definition and setting the input-positive property to the correct (internal) channel, don't you?
&adc {
// ....
channel@0 {
		reg = <0>;
		zephyr,gain = "ADC_GAIN_1";
		zephyr,reference = "ADC_REF_INTERNAL";
		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
		zephyr,resolution = <12>;
		zephyr,input-positive = <0x18>;
	};
};

You should be able to achieve what you want with a channel definition and setting the input-positive property to the correct (internal) channel, don't you?
&adc {
// ....
channel@0 {
		reg = <0>;
		zephyr,gain = "ADC_GAIN_1";
		zephyr,reference = "ADC_REF_INTERNAL";
		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
		zephyr,resolution = <12>;
		zephyr,input-positive = <0x18>;
	};
};

Thank you for your answer!
This didn't help, unfortunately
But I dealt with this in another way:
To avoid triggering this condition you can just create empty pinctrl definition.
For example:
pinctrl.dtsi
adc_pins_default: adc_pins_default {
    };

overlay.dts
&adc {
	label = "ADC_TEMP";
	status = "okay";
	pinctrl-0 = <&adc_pins_default>;
	pinctrl-names = "default";
};


Spending too much gas on accumulationStore by denom as time goes

Code to debug gas consume
	fmt.Println("step2", ctx.GasMeter().GasConsumed()-lastSpent)
	lastSpent = ctx.GasMeter().GasConsumed()
	for _, coin := range lock.Coins {
		k.accumulationStore(ctx, coin.Denom).Set(accumulationKey(lock.Duration, lock.ID), coin.Amount)
	}

	fmt.Println("step3", ctx.GasMeter().GasConsumed()-lastSpent)
	lastSpent = ctx.GasMeter().GasConsumed()

func (suite *KeeperTestSuite) TestLockTokensAlot() {
	addr1 := sdk.AccAddress([]byte("addr1---------------"))
	coins := sdk.Coins{sdk.NewInt64Coin("stake", 10)}
	skipLogsFor := 9000
	for i := 0; i < skipLogsFor; i++ {
		// addr1 := sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address())
		suite.LockTokens(addr1, coins, time.Second)
	}
	for i := 0; i < 1000; i++ {
		alreadySpent := suite.ctx.GasMeter().GasConsumed()
		// addr1 := sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address())
		suite.LockTokens(addr1, coins, time.Second)
		newSpent := suite.ctx.GasMeter().GasConsumed()
		spentNow := newSpent - alreadySpent
		fmt.Println("sum up - consumed gas", i+skipLogsFor, spentNow)
	}
	panic(1)
}

Log
step1 17071
step2 25920
step3 343617
sum up - consumed gas 9999 391082

When user lock tokens 10000 times, his/her gas spending for locking tokens take around 400K, it's quite large and we definitely need to reduce it.

Which branch is this debug code is on?

func (node *node) children() (res children) {
   bz := node.tree.store.Get(node.tree.nodeKey(node.level, node.key))
   if bz != nil {
     json.Unmarshal(bz, &res)
   }
   return
 }

 func (node *node) set(children children) {
   bz, err := json.Marshal(children)
   if err != nil {
     panic(err)
   }
   node.tree.store.Set(node.tree.nodeKey(node.level, node.key), bz)
 }

acc store uses json internally and this might be a problem

Which branch is this debug code is on?

https://github.com/osmosis-labs/osmosis/pull/336

Moving to protobuf reduces around 60% of the gas cost, however, the main problem on the gas consumption looks like the redundant update on the children. I used the children size per node m=10, which makes a large size of writing operation = high gas cost. I'll try multiple selections of the constant m to find out which is the most efficient one.

test condition: 100 locks average gas consumption after 5000 skiplogs

m=4: 212205
m=5: 221630
m=6: 183883
m=7: 190484
m=8: 174843
m=9: 176548
m=10: 172368
Turns out that was not the problem.

After all the work in the accumulation store, this should have been significantly mitigated. Using the benchmark of #442 with 10000 locks, and averaging after 5000 of them, I got:
test deets: begin average at 5000 total locks created 10000
average: 177891
max gas / lock: 312705

Assuming Eugen's numbers for step 1 and step 2 are constant (would need to check), this implies that the accumulation store is taking around 130k gas on main on average, which is really reasonable! Theres probably some I/O reads that can be optimized, but that certainly seems like diminishing returns imo, especially in the face of options to just reduce the number of locks there are.
The worst case behavior isn't great (but much better than before). We probably eventually need to do a bit of thinking around worst case behaviour, and potentially lowering reads/write amounts in the future, but for now I think it is fine. We may have to visit this in terms of just figuring out how much gas to be using front-end side though, so users don't get random tx fails due to out of gas.
We should close this issue after we make an issue to investigate if theres I/O performance opportunities. (Though I think we should let external contributors try to tackle this one or our future selves when this becomes more problematic, while we focus more on our core innovations)

Very much fixed in main, with a variety of problems underneath in the SDK resolved

After joon's PR for making everything with the same duration use the same leaf, its now:
test deets: total locks created 10000, begin average at 1000
average gas / lock: 64027
max gas / lock: 64028


Release 0.17.0

Fixes #372

Coverage remained the same at 86.53% when pulling 78134e1694d8d9d3b393430e88cf1961bee849db on philipc:release into e2529c0bf06b4197df3ddbc76bda5adf2cc0659f on gimli-rs:master.


Not Purging JS Comments

Hello, thank you for your library.  I built a minifier module for Deno and this library has worked great until I realized this problem.  When I try to minify the following js code:
// hello

const x = 23;

for (let i = 0; i < 23; i++) {
  console.log(x);
}

I am getting the following:
// hello const x = 23; for (let i = 0; i < 23; i++) { console.log(x); }

However, this should be purging the comments, instead.
I am able to reproduce this behavior with the following rust code:
pub fn minify_html(code: String, minify_css: bool, minify_js: bool) -> String {
  String::from(
    std::str::from_utf8(
      minify_html::copy(
        code.as_bytes(),
        &minify_html::Cfg {
          minify_css,
          minify_js,
        },
      )
      .unwrap()
      .as_slice(),
    )
    .unwrap(),
  )
}

pub fn main() {
  let minified = minify_html(
    String::from(
      r##"// hello

const x = 23;

for (let i = 0; i < 23; i++) {
  console.log(x);
}"##,
    ),
    false,
    true,
  );
  println!("{}", minified);
}

Is there something that I am doing wrong, or is this a problem with the library?  Thanks

The script code is being interpreted as HTML text, which is why it didn't remove the comment or spaces around identifiers. You can place the JS in a <script> tag to see the JS minification, but there's no way to directly minify JS as this is a HTML minification library. It uses esbuild-rs so that can be used for JS minification if desired.

The script code is being interpreted as HTML text, which is why it didn't remove the comment or spaces around identifiers. You can place the JS in a <script> tag to see the JS minification, but there's no way to directly minify JS as this is a HTML minification library. It uses esbuild-rs so that can be used for JS minification if desired.

The script code is being interpreted as HTML text, which is why it didn't remove the comment or spaces around identifiers. You can place the JS in a <script> tag to see the JS minification, but there's no way to directly minify JS as this is an HTML minification library. It uses esbuild-rs so that can be used for JS minification if desired.

Oh, lol.  Sorry for bothering you.  I thought that it had automatically inferred the language as either HTML, CSS, or JS.  Thanks

The script code is being interpreted as HTML text, which is why it didn't remove the comment or spaces around identifiers. You can place the JS in a <script> tag to see the JS minification, but there's no way to directly minify JS as this is an HTML minification library. It uses esbuild-rs so that can be used for JS minification if desired.

Oh, lol.  Sorry for bothering you.  I thought that it had automatically inferred the language as either HTML, CSS, or JS.  Thanks

@wilsonzlin Would it not be better if it left script and link tags alone just like the pre and code tags?

@wilsonzlin Would it not be better if it left script and link tags alone just like the pre and code tags?


unable to turn on hotspot after the upgrade on kali linux

The hotspot is working properly before I used the "apt-get dist-upgrade". After the process I can't turn on my hotspot anymore. I restarted the laptop but it wouldn't work.
Can someone please help me. I really need a hotspot for I am only using LAN.

@KaiserEd Quite possible that your "dist-upgrade" had interfered with the dnsmasq settings or your wifi driver. Raise this issue at your distro forum or bug-tracker as they will understand the changes to the system better.

Closing as there has been no activity.


dim error when run train_ggcnn.py

Hi, I forked the repository from branch RSS2018
I already completed the step 1, 2 and 3  in Training, which is described in readme.md
But it was an error when I run python3 train_ggcnn.py
Using TensorFlow backend.
Traceback (most recent call last):
File "train_ggcnn.py", line 92, in
x = Conv2D(no_filters[0], kernel_size=filter_sizes[0], strides=(3, 3), padding='same', activation='relu')(input_layer)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 575, in call
self.assert_input_compatibility(inputs)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 474, in assert_input_compatibility
str(K.ndim(x)))
ValueError: Input 0 is incompatible with layer conv2d_1: expected ndim=4, found ndim=2
Can you tell me how to solve the problem?

Hello,
I just ran through all of the scripts and was unable to reproduce this.  The issue is that the depth image that you are passing into the network for training is not the correct size.
First up, to make sure the dataset was created correctly, can you please print out x_train.shape in train_ggcnn.py and make sure that it is (N, 300, 300, 1), where N is the size of the dataset.

Hi, thanks for your quick reply
I just regenerated dataset by run python3 generate_dataset.py  and I found it was an error below
Traceback (most recent call last):
File "generate_dataset.py", line 151, in
f.create_dataset('%s/%s' % (tt_name, ds_name), data=np.array(dataset[tt_name][ds_name]))
MemoryError
It seems that the problem is RAM out of memory.
Are you have any idea to solve this problem ?
by the way, my pc's memory are below:
iarc@titan:~/yc/ggcnn/ggcnn$ free -g
total        used        free      shared  buff/cache   available
Mem:             15           1          13           0           0          13
Swap:            15           0          15

Hi,
If you are having issues with generating the dataset, I would strongly recommend using the master branch which contains a much more user-friendly and more up-to-date implementation.
The network and training data is the same, but one of the major improvements was removing the need to pre-generate a large dataset. Instead, the data is read from disk as required.

ok, I got it, thank you very much for your help.


Change to a context-sensitive button

Right now the add-on's button shows all the time, even on pages where it can't work. That was okay for testing/early development where taking the easy route was preferred, but the context-sensitive buttons that appear in the URL bar would be more appropriate long-term.

I'm not sure how much work it will be, it isn't breaking, and the users are getting impatient, so deferring it until later for now.
Also, what happens when the button starts opening up its own page? Should the user be forced to go to Facebook just to bounce off to somewhere else?


CSS

CSS
User Story
As a bootcamp student
I want the rework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a rework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

Fun to do.


Robotcode blocks Python

When Robotcode is enabled, it creates multiple Python threads and blocks any further command of Python.
This video demonstrate what happens while Robotcode is enabled or disabled.
At the beginning, I disable it and no Python thread is found in Task Manager.
But after I enable it, it creates several Python threads. Those threads stay there even after I close VS Code.
I couldn't execute any Python command before I end those threads manually.
I'm using Python 3.8.10.
My colleague has quite the same problem. Could you have a check of the code?
Is is our problem of setup or the bug Robotcode?
Thank you in advance.
https://user-images.githubusercontent.com/36666942/183657382-c220833b-65d2-49a6-8d38-e39710d56b06.mp4

RobotCode starts a few worker processes (i.e) other python instances mainly for library doc generation and for some completion and analysing tasks, mainly for separating the language server and  executing real robot/robot library code, and to speed up things.  So that is normal. But normally, the python processes are exited if you close VSCode.
What happens if you start other python commands. Is there an error message or whatever?
what version of RobotCode do you use?

Other Python commands couldn't be executed (inside or outside of VS Code).
They are just waiting there until I kill all those Python instances from Task Manager.
RobotCode version is v0.12.1.

What type of commands?
can you make a video?

Can you execute the robot tests in VSCode? i.e. by clicking the play button before a testcase?

In this video there are 4 instances created by RobotCode. After executing my own test, one more Python instance is created.
But it is stuck there. I've waited long time. It didn't move on.
https://user-images.githubusercontent.com/36666942/183696353-6dfe9b46-7633-4be6-b838-b7af77012287.mp4

looks strange...
Can you execute a simple command like:
python -c "print('Hello')"

Yes it's possible. I've executed simple Python command which works well.
I guess it's robotframework that is blocked.

I think, it is more a library that you use.
Please create a simple robot test suite like:
file: simple.robot
*** Test Cases ***
first
    Log    hello

and then try to run this from command line like:
robot -d results tests/simple.robot

what happens?

And can you execute this test in VSCode with the play button left beside the test case definition?

All those simple tests work very well.
So I guess it's not the problem of Python or Robot Framework.
I used also Squish which requires a specific version of Python.
I guess that's where things are messed up.
It's not so possible to create a simple test case.
I decide to downgrade VSCode to get Robot Framework Intelligence back.
Thank you for all your help.

that's a pity.
If I remember correctly, there were some things you need to do to run Squish with another python interpreter.
https://kb.froglogic.com/squish/howto/changing-python-installation-used-squish-binary-packages/
https://kb.froglogic.com/squish/howto/using-squish-module-python-scripts-applications/#setup
I don't know if it's interesting to you, but it might help.
I'm currently working on a version of RobotCode where the Robot/Python libraries are cached better and so you don't have to start so many subprocesses. Maybe this is the solution, because Squish can only be started once or so.
You can already try a first version if you activate the preview mode for RobotCode in VSCode.


[Event Hubs] Move receive batch API to master

This PR is to move the "receive batch" api to master. This API was previously released as beta and will be GA in the next release.

/check-enforcer evaluate


URL in description and README broken

The URL in the repository description and README are pointing to githubschool's copy of the game instead of yours.
Please fix both so they point to your copy of the game at https://githubschool.github.io/github-games-lyle-ascn/

fixed


The simulator is not localized

The simulator does not have an implementation that gives the possibility to support several languages, like in PXT.
Because of that, the ARIA attributes for the screen readers might be only in English.

Simulator is now localizable and correctly loads translations


Parameters aren't handled correctly when there are quotes in the SQL query

When using parameters in a query, if there are quotes before the parameters, the query will fail due to incorrect SQL being generated.
With the current code this test will pass:
[TestMethod]
public void TestParametersWithQuotes()
{
    using (var connection = new MonetDbConnection(TestConnectionString))
    {
        connection.Open();

        using (var command = connection.CreateCommand())
        {
            command.CommandText = $"SELECT @param1 as m, 'q \"q' as n";

            var param = command.CreateParameter();
            param.ParameterName = "@param1";
            param.Value = 1;
            command.Parameters.Add(param);

            using (var reader = command.ExecuteReader())
            {
                while (reader.Read())
                {
                    Assert.AreEqual(1, reader.GetInt32(0));
                    Assert.AreEqual("q \"q", reader.GetString(1));
                }
            }
        }
    }
}

as it correctly generates the SQL SELECT 1 as m, 'q "q' as n
However, swapping the quoted string with the parameter causes the test to fail:
[TestMethod]
public void TestParametersWithQuotes2()
{
    using (var connection = new MonetDbConnection(TestConnectionString))
    {
        connection.Open();

        using (var command = connection.CreateCommand())
        {
            command.CommandText = $"SELECT 'q \"q' as n, @param1 as m";

            var param = command.CreateParameter();
            param.ParameterName = "@param1";
            param.DbType = DbType.Int32;
            param.Value = 1;
            command.Parameters.Add(param);

            using (var reader = command.ExecuteReader())
            {
                while (reader.Read())
                {
                    Assert.AreEqual("q \"q", reader.GetString(0));
                    Assert.AreEqual(1, reader.GetInt32(1));
                }
            }
        }
    }
}

This generates the incorrect SQL SELECT 'q "q' as n, @param1 as m which leads to an error in Monet of

!ERROR: ParseException:SQLparser:42000!syntax error, unexpected AT in: "select 'q "q' as n, @"

Note that this scenario isn't as unlikely as it seems due to dates being replaced with quoted strings. This means a query such as
select x from y where someDate >= @startDate and someDate < @endDate
ends up being sent to Monet as
select x from y where someDate >= '1970-01-01 00:00:00' and someDate<@endDate
which will fail.
I believe the bug is in the handling of quotes in the ApplyParameter method in MonetDbCommand.cs.

Hi,
Nice find! I've added your example as a unit test, and committed a patch which resolves it.
Let me know if you have more bugs to fix 👍 .

That's brilliant, thanks @MitchellWeg.


Memory management

Hi,
I've tried this library for some image processing and it worked like a charm, but after processing 100 or so images I receive "Out Of Memory" exception. I've  tried to dispose compiler between each image, but than didn't helped at all. Is it possible to clear memory somehow?
Another question - is it possible to use local OpenCL memory using your library or will it come in the future?
Thank you.

Thanks. Could you please share me your code so that I can try to fix the memory issue

Here is simplified case showing the issue (I'm running it in 32 bit mode as in 64 bit mode exception happens after ~300 iterations, but noticeable slowdown appears)
`
class Kernels : OpenCLFunctions
{
[OpenCLKernel]
void FillI2F([Global]int[] sourceImage, [Global]float[] resultImage)
{
int i = get_global_id(0);
resultImage[i] = (float)sourceImage[i] / 255.0f;
}
}
class Program
{
    static void Main(string[] args)
    {
        int pixelCount = 8000000;
        int imageCount = 100;

        int[] imageInt;
        float[] imageFloat;

        var compiler = InitCompiler();
        var exec = compiler.GetExec();

        // Loop to imitate function call on many images
        for (int i = 0; i < imageCount; i++)
        {
            //var compiler = InitCompiler();
            //var exec = compiler.GetExec();

            imageInt = new int[pixelCount];
            imageFloat = new float[pixelCount];

            exec.FillI2F(imageInt, imageFloat);

            // Perfectly I would clear memory here

            //compiler.Dispose();
            Console.WriteLine($"Pass: {i + 1}");
        }

        compiler.Dispose();
        Console.ReadLine();
    }

    static OpenCLCompiler InitCompiler()
    {
        var compiler = new OpenCLCompiler();
        compiler.UseDevice(0);
        compiler.CompileKernel(typeof(Kernels));
        return compiler;
    }

`

Thanks heaps for the sample code
On Thu, Aug 22, 2019 at 11:44 PM andrius-v<EMAIL_ADDRESS>wrote:

Here is simplified case showing the issue (I'm running it in 32 bit mode
as in 64 bit mode exception happens after ~300 iterations, but noticeable
slowdown appears)
`
class Kernels : OpenCLFunctions
{
[OpenCLKernel]
void FillI2F([Global]int[] sourceImage, [Global]float[] resultImage)
{
int i = get_global_id(0);
resultImage[i] = (float)sourceImage[i] / 255.0f;
}
}
class Program
{
static void Main(string[] args)
{
int pixelCount = 8000000;
int imageCount = 100;
    int[] imageInt;
    float[] imageFloat;

    var compiler = InitCompiler();
    var exec = compiler.GetExec();

    // Loop to imitate function call on many images
    for (int i = 0; i < imageCount; i++)
    {
        //var compiler = InitCompiler();
        //var exec = compiler.GetExec();

        imageInt = new int[pixelCount];
        imageFloat = new float[pixelCount];

        exec.FillI2F(imageInt, imageFloat);

        // Perfectly I would clear memory here

        //compiler.Dispose();
        Console.WriteLine($"Pass: {i + 1}");
    }

    compiler.Dispose();
    Console.ReadLine();
}

static OpenCLCompiler InitCompiler()
{
    var compiler = new OpenCLCompiler();
    compiler.UseDevice(0);
    compiler.CompileKernel(typeof(Kernels));
    return compiler;
}

`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tech-quantum/Amplifier.NET/issues/3?email_source=notifications&email_token=ABQJAKN265TBTJ7OFVUNRWDQF2NLPA5CNFSM4IOGA5KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45HKQY#issuecomment-523924803,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQJAKKDCMDXU7QCHJWUD23QF2NLPANCNFSM4IOGA5KA
.

--
Regards,
Deepak

I looked into this issue and it does not appear to be related to Amplifier.NET.
It appears to be related to Garbage Collection (GC) and the Large Object Heap (LOH).
The imageInt and imageFloat arrays are freed when they are re-initialized.
imageInt = new int[pixelCount];   imageFloat = new float[pixelCount];
BUT by default the GC does not compress the freed space, so it continues to grow. I reached 20 GB of RAM used before killing the program.
With the above change I was able to run 1000 passes with a peak RAM usage of 670 MB.

Here is the code I used for testing, just a couple of differences from whats posted above.
So the best solution for this issue is to choose a reasonably large int[] size and just clear it between runs.
`public void Execute()
{
int pixelCount = 8000000;
int imageCount = 1000;

int[] imageInt = new int[pixelCount];
float[] imageFloat = new float[pixelCount];

var compiler = InitCompiler();
var exec = compiler.GetExec();

// Loop to imitate function call on many images
for (int i = 0; i < imageCount; i++)
{
    Array.Clear(imageInt, 0, imageInt.Length);
    Array.Clear(imageFloat, 0, imageFloat.Length);
    //imageInt = new int[pixelCount];
    //imageFloat = new float[pixelCount];

    exec.FillI2F(imageInt, imageFloat);

    Console.WriteLine($"Pass: {i + 1}");
}
compiler.Dispose();

}`


Lazy V Model

Describe the feature
I am using your component for Price filter in our ecommerce system. Unfortunately, the component updates his value so many times which causes sending so many filters requests.
Describe the solution you'd like
It would be nice to add some props or just support .lazy v-model modifier to emit only the last value. Like in inpuit's onBlur event.

:lazy="true"
https://nightcatsama.github.io/vue-slider-component/#/basics/simple?hash=lazy

Damn, indeed. Somehow I missed it, thanks a lot!


Port useful functionality from #277

Currently, the test framework only works for very simple scripts. In #277 in addition to async support I added mocking for a few core API calls (getting history, channels, members) that allowed for more complicated scripts to be tested. Since that PR will be closed due to #292, the important functionality within it needs to be ported.
This is more of a reminder to myself than anything :^)

Closing as I have kept the PR and made changes within.


There should be no Eszett in Swiss German

The Swiss German (de-CH) dictionaries should not include Eszett (ß) characters. In Swiss German this special character is replaced by ss as described here.

dictionaries are not maintained here


chore(deps): update dependencies

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Blog App: Validations and specs #3

Added the following validations:

[ ] For the User model:

Name must not be blank.

PostsCounter must be an integer greater than or equal to zero.

[ ] For the Post model:

Title must not be blank.

Title must not exceed 250 characters.

CommentsCounter must be an integer greater than or equal to zero.

LikesCounter must be an integer greater than or equal to zero.

[ ] Add unit specs for all of the models' methods and validations.

Sorry i forgot to push the spec folder with all the test files inside it, i am pushing them now

Please go through the above screenshot, i have run all the tests and all my tests passed successfully, i didnt found any error

Made the exact change asked for in the user_spec.rb
it 'posts_counter must be an integer greater than or equal to zero.' do
subject.posts_counter = -1
expect(subject).to_not be_valid
end


NEXT-40009 - Improve click area for arrow button in flow trigger comp…

…onent to avoid misclicks, fix nextTick method in JavaScript, and resolve issue where the first item was only selectable on the second component opening.

1. Why is this change necessary?
2. What does this change do, exactly?
3. Describe each step to reproduce the issue or behaviour.
4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[ ] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[ ] I have read the contribution requirements and fulfill them.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Trying to load a saved project crashed the app

I was logged in already and had saved a project yesterday. I tried loading it and the whole browser window went white. Closing the tab and reopening or refreshing the page does nothing to fix the issue.
Not sure if any of this is useful, as I already refreshed the page before checking console.

The account is<EMAIL_ADDRESS>and the project is the only one saved there.
I had an account registered to<EMAIL_ADDRESS>but per the other reported bug, I couldn't reset the password and access it :D

there was 2 individual bug here. one was the missing keys in the persisted store, that got solved by introducing a migration scripts, that runs before every rehydration, and adds the missing keys, if needed.
the other was caused by saving a wrongly formatted prompter into the database. this got fixed on the backend. ready to be tested.


Add AVIF support

Hey there,
AVIF support would be great! I will edit this issue later to include more information, if you wish.
Cheers,
S1SYPHOS

I’d love to see this too. Support would first have to be added to the GD library and then adopted by PHP, so I would first check there to make sure this has been requested upstream as well.

True, see the related topics over at libgd & Intervention.

@claviska seems like it has made it into libgd now: https://github.com/libgd/libgd/releases/tag/gd-2.3.2
And if this is accurate PHP included support from 8.1 upwards: https://php.watch/versions/8.1/gd-avif

I would accept a PR that provides this as long as it's backwards compatible with 7.x as well.


unneccessary parentheses removed

Coverage remained the same at 95.008% when pulling a5c9c397e6f9548fb30ae1934be8017aa3c62fb9 on verhas:functions-vp-20200203-1 into 3ce3b27dbd579a918e97e1fb09e9b0153cc71a60 on apache:master.

This kind of change for this class has been applied in a different commit.


Improves status handling for jupyter-controller

Following the standard for status handling, this PR introduces a couple of changes in the charm code to improve how unit status are managed.

Code looks LGTM, but please fix the linting errors.


default cycles argument should be 0

From #1022 , @mnwhite says:

Yeah, cycles=1 should be removed as a default argument. I think I wrote
that in the very earliest versions (late summer / early fall 2015) and it's
never come off.

In AgentType subclasses, there should be no default. This is something we
want to be in the parameter dictionary. I'm indifferent about what our
example dictionaries have, but this default shouldn't exist at all.
On Fri, Jun 25, 2021 at 3:56 PM Sebastian Benthall @.***>
wrote:

From #1022 https://github.com/econ-ark/HARK/issues/1022 , @mnwhite
https://github.com/mnwhite says:
Yeah, cycles=1 should be removed as a default argument. I think I wrote
that in the very earliest versions (late summer / early fall 2015) and it's
never come off.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/1030, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFIJURMO3OJ5RT6G5GDTUTNOZANCNFSM47KPF4BQ
.

Oh, I see. I'll correct that in the title of this issue.
This is what I'll work on next as it will make #1022 easier.


Format of 'User ID' in external user management table

Description:
As an external Admin user, I want to see a meaningful user friendly unique user identifier in the "User ID" column  instead of the uuid.

Acceptance Criteria:
Given
When
Then
Notes:
Dependencies

Blocked by
Blocking

Re: Refinement
@dleard suggested removing the column from external view since it brings no value to industry users.
@hannavovk suggested allowing searching by name to help with locating the proper record.

@andrea-williams will refine this.

Awesome, thanks @marcellmueller


Invalid dev dependency

[x] I am on the latest Poetry version.
[x] I have searched the issues of this repo and believe that this is not a duplicate.
[x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

OS version and name: Ubuntu 18.04
Poetry version: Poetry 0.11.5
Link of a Gist with the contents of your pyproject.toml file: None

Issue

Doing the following:
git clone https://github.com/sdispater/poetry && cd poetry
poetry install

Poetry fails to install black 18.6b4 with this error using -vvv:
Installing dependencies from lock file

Package operations: 8 installs, 0 updates, 1 removal, 53 skipped

  - Skipping six (1.11.0) Already installed
  - Skipping atomicwrites (1.2.1) Already installed
  - Skipping attrs (18.2.0) Already installed
  - Skipping certifi (2018.8.24) Already installed
  - Skipping chardet (3.0.4) Already installed
  - Skipping colorama (0.3.9) Not needed for the current platform
  - Skipping idna (2.7) Already installed
  - Skipping markupsafe (1.0) Already installed
  - Skipping more-itertools (4.3.0) Already installed
  - Skipping pluggy (0.7.1) Already installed
  - Skipping py (1.6.0) Already installed
  - Skipping pyyaml (3.13) Already installed
  - Skipping tornado (5.1) Already installed
  - Skipping urllib3 (1.23) Already installed
  - Skipping appdirs (1.4.3) Already installed
  - Skipping aspy.yaml (1.1.1) Already installed
  - Skipping cached-property (1.5.1) Already installed
  - Skipping cfgv (1.1.0) Already installed
  - Skipping click (6.7) Already installed
  - Skipping coverage (4.5.1) Already installed
  - Skipping identify (1.1.5) Already installed
  - Skipping jinja2 (2.10) Already installed
  - Skipping livereload (2.5.2) Already installed
  - Skipping lockfile (0.12.2) Already installed
  - Skipping markdown (2.6.11) Already installed
  - Skipping msgpack (0.5.6) Already installed
  - Skipping nodeenv (1.3.2) Already installed
  - Skipping pastel (0.1.0) Already installed
  - Skipping pygments (2.2.0) Already installed
  - Skipping pylev (1.3.0) Already installed
  - Skipping pytest (3.8.0) Already installed
  - Skipping requests (2.19.1) Already installed
  - Skipping toml (0.9.6) Already installed
  - Skipping virtualenv (16.0.0) Already installed
  - Skipping webencodings (0.5.1) Already installed
  - Installing black (18.6b4)

[VenvCommandError]
Command ['pip', 'install', '--no-deps', 'black==18.6b4'] errored with the following output:
Collecting black==18.6b4
  Could not find a version that satisfies the requirement black==18.6b4 (from versions: )
No matching distribution found for black==18.6b4

Exception trace:
 /home/dimitris/.local/lib/python3.6/site-packages/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /home/dimitris/.local/lib/python3.6/site-packages/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /home/dimitris/.local/lib/python3.6/site-packages/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /home/dimitris/.local/lib/python3.6/site-packages/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/console/commands/install.py in handle() at line 50
   return installer.run()
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/installation/installer.py in run() at line 76
   self._do_install(local_repo)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/installation/installer.py in _do_install() at line 286
   self._execute(op)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/installation/installer.py in _execute() at line 294
   getattr(self, "_execute_{}".format(method))(operation)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/installation/installer.py in _execute_install() at line 319
   self._installer.install(operation.package)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/installation/pip_installer.py in install() at line 76
   self.run(*args)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/installation/pip_installer.py in run() at line 91
   return self._venv.run("pip", *args, **kwargs)
 /home/dimitris/.local/lib/python3.6/site-packages/poetry/utils/venv.py in run() at line 274
   raise VenvCommandError(e)

The issue is that pip2 doesn't find the version 18.6b4
/usr/bin/pip2 install -U black==18.6b4
Collecting black==18.6b4
  Could not find a version that satisfies the requirement black==18.6b4 (from versions: )
No matching distribution found for black==18.6b4

Pip3 does find the version:
 /usr/bin/pip3 install -U black==18.6b4                                                             1 master
Collecting black==18.6b4
  Using cached https://files.pythonhosted.org/packages/4e/b5/575cdaabf1f98ebe50c0ee85b202fcce3b8df1f21d6ed02708bc539674c3/black-18.6b4-py36-none-any.whl
Collecting toml>=0.9.4 (from black==18.6b4)
  Using cached https://files.pythonhosted.org/packages/c7/19/76c3cb84949a0593767b32b9be83a604d8a68c3580ff5d0ee64856b39ade/toml-0.9.6-py2.py3-none-any.whl
Collecting attrs>=17.4.0 (from black==18.6b4)
  Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Collecting appdirs (from black==18.6b4)
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting click>=6.5 (from black==18.6b4)
  Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Installing collected packages: toml, attrs, appdirs, click, black
Successfully installed appdirs-1.4.3 attrs-18.2.0 black-18.6b4 click-6.7 toml-0.9.6

What is the output of poetry debug:info?

dimitris@foobar ~/poetry> poetry debug:info                                                              1 master

Poetry
======

 * Version: 0.11.5
 * Python:  3.6.5

Virtualenv
==========

 * Python:         3.6.5
 * Implementation: CPython
 * Path:           /home/dimitris/.cache/pypoetry/virtualenvs/poetry-py3.6

System
======

 * Platform: linux
 * OS:       posix

Alright, I have figured it out. Simply calling /usr/bin/pip or pip doesn't guarantee that pip3 will run and is very dependent on the distribution and Os.
To test the hypothesis, I created a symbolic link as such:
sudo ln -s /usr/bin/pip3 /usr/bin/pip
Then run poetry install and it has successfully installed all dependencies.
Perhaps a note somewhere in documentation or say calling pip3 instead of pip can prevent this from happening again.

I've also hit the same problem installing black:
$ poetry add --dev black

[ValueError]
Could not find a matching version of package black

(That's from inside a 3.6 pyenv virtualenv.)

Black doesn't have a stable release. You need to install it with:
poetry add --dev --allow-prereleases black

Corresponding ticket in Black https://github.com/python/black/issues/517.


MAX32672 (me21): Timer 1 appears on different pins

In C, TMR1 appears on P0.0 and P0.9. In white sheets, id does not appear there for both packages.
https://github.com/analogdevicesinc/msdk/blob/main/Libraries/PeriphDrivers/Source/SYS/pins_me21.c#L140


feat(certmanager): use caBundle when certmanager is disabled

Hello! Thank you for the contribution! Looks great.
Could you please add a small description entry to CHANGELOG.md for the update?

Done :)

Awesome!


Add needed space within the README document

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


[refurb] - add fstring-number-format with sometimes-autofix (FURB116)

Summary
Adds FURB116
See #1348
Test Plan
cargo test

Not too sure how I'd reliably be able to support expressions that can include strings, such as calls, like in my int(f"{num}") test, for example. Please advise if that can be better! 😄


How can you use Stacey with a local model instead of Openai?

I saw a comment from Dave on Youtube that ACE_Framework can be used with local models but it appears the Stacey demo is not capable yet of running on a local-llm.
How can you use Stacey with a local model instead of Openai?
I have already setup https://github.com/Josh-XT/Local-LLM/
Local-LLM is a llama.cpp server in Docker with OpenAI Style Endpoints.
Instead of it going online to OpenAI how can you make it go to http://localhost:8091/v1 ?
Or is there an easier way of making it work with local models?

+1
unfortunately, the following is not yet true :(
Exclusively Local Hardware
No cloud or SaaS providers. This constrains the project to run locally on servers, desktops, laptops, smart home, and portable devices.

I think a good starting compromise is to use OS model SaaS endpoints, like https://www.anyscale.com/endpoints

the thing is more about, how to configure stacey to not use api.openai.com and instead use local/other API-endpoints.
It is possible to set WEAVIATE_URL=http://localhost:8080 in .env, but not the  API_BASE_URL
@thehunmonkgroup, thanks for the tipp with anyscale.com, I didn't knew them - yet.

This looks to me a very good starting point: https://localai.io/features/openai-functions/
LocalAI supports running OpenAI functions with llama.cpp compatible models.

I think a good starting compromise is to use OS model SaaS endpoints, like https://www.anyscale.com/endpoints

No because then it still is not running locally and it costs money. I just posted a suggestion that can run locally with ggml and gguf models. The whole idea behind the ACE Framework is that you can run it completely locally (Exclusively local hardware).
https://localai.io/features/openai-functions/
LocalAI supports running OpenAI functions with llama.cpp compatible models.
OpenAI functions are available only with ggml or gguf models compatible with llama.cpp.
You don’t need to do anything specific - just use ggml or gguf models.

if you have not already, i recommend you check our Ollama's framework for serving local models from their library or from pre-trained local (Ollama.ai, https://github.com/jmorganca/ollama). I have a linux/wsl2 cli app repo that I just published here (https://github.com/3JulietAI/chat3j) with some pretty cool features and methods. Happy to submit my project to contribute here, hopefully there is something in there that would be useful to someone.

hello @thehunmonkgroup ,
is that project still allive?
and any working answer for this issue?

It's an open source project, you're welcome to submit a PR to add the functionality you're wanting.


Leadership: Fault tolerant Leader Election mechanism

Makes the leader Election process resilient to failures of the backend storage (on Consul and etcd, zookeeper already allowed that naturally by keeping the leader information) using an error channel.
Fixes #982 #983 #1025
Signed-off-by: Alexandre Beslic<EMAIL_ADDRESS>

@aluzzardi PTAL, removed the label. Tested on the 3 KV backends. Will add integration tests in a separate PR (I don't need configurable Leader TTL for this and this will take less time than for the Leader test).

ping @aluzzardi

@aluzzardi PTAL

@abronan Hi, will this be able to make it to 0.4 or will be in for 0.5?

Hi @ahmetalpbalkan, this will be in 0.4 ;)

@abronan thanks!


Quarantine is available in Microsoft 365 operated by 21Vianet.

In the Quarantined messages FAQ document,
https://learn.microsoft.com/microsoft-365/security/office-365-security/quarantine-faq
it says "Quarantine isn't available in Microsoft 365 operated by 21Vianet." which is wrong. Please remove it.

@jinhan2023, it said that in several different places. I removed that statement everywhere.
Thanks for the feedback.
Closing


Remove hjson filetype detection

This isn't worth having in the base install for a couple of reasons:

This filetype doesn't have an associated syntax file; the only way to get syntax rules is via external plugin.
The official plugin, https://github.com/hjson/vim-hjson, comes with its own ftdetect/hjson.vim, so having this in vanilla Vim isn't even necessary to support the plugin.

I don't think this undoes any change I've made, might've mentioned the wrong person 😅

What's the harm in leaving this in? There are a number of such filetypes that are there so users can rely on them for their own syntax or ftplugin scripts, and having them here makes sure that there are no conflicts with other detected filetypes (possibly added later). This way, everybody wins.

I'm the one who made this change. This is ultimately up to the Vim project if they want it or not, but I personally don't think this is an improvement for the reasons @clason mention.
For your second point: shouldn't the plugin delete their own ftdetect instead since this functionality is already upstreamed to Vim? In fact, if hjson doesn't have a syntax file in Vim I think vim-hjson should upstream their syntax file to Vim and be a maintainer for the file so that hjson users get the benefit automatically.

I'm the one who made this change. This is ultimately up to the Vim
project if they want it or not, but I personally don't think this is
an improvement for the reasons @clason mention.
For your second point: shouldn't the plugin delete their own ftdetect
instead since this functionality is already upstreamed to Vim? In
fact, if hjson doesn't have a syntax file in Vim I think vim-hjson
should upstream their syntax file to Vim and be a maintainer for the
file so that hjson users get the benefit automatically.

If we would drop the .hjson detection, I don't see how it would be
better.  It doesn't fall back to another filetype.
With the existing detection it's easier to add a syntax or indent file.
--
The startling truth finally became apparent, and it was this: Numbers
written on restaurant checks within the confines of restaurants do not follow
the same mathematical laws as numbers written on any other pieces of paper in
any other parts of the Universe.  This single statement took the scientific
world by storm.  So many mathematical conferences got held in such good
restaurants that many of the finest minds of a generation died of obesity and
heart failure, and the science of mathematics was put back by years.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Let's keep it, I don't see how it does any harm currently


label-mail is useless to me because go mail header parsing is weak

I'm waiting for this to be resolved
https://github.com/emersion/go-message/issues/110
I could monkey patch that or do some sort of catch/release system on extra long headers, but there's active work on this issue, so I'm hoping it will be resolved soon. I will continue to use my old label-mail program until that's fixed or I become impatient again.

The problem in go-message has been corrected. I have tried out my mail with code on master. The behavior previously seen was that any header longer than 4000 bytes would silently cause the rest of the message to cease being parsed. This is no longer the case with latest go-message master.
However, I now have a new problem. The RFC 5322 date parsing in Go's built-ins is unacceptably unforgiving. In particularly, it does not implement the obsolete time zone handling of that RFC at all. I need to rewrite my date handling to intercept the ambiguous and awful error from ParseDate(), "mail: header could not be parsed", and add a more forgiving fallback date parser in those cases.

I built my own module to fix the problem.


Allow specifying config and cache directory via environment variables.

This allows users to specify the location of the configuration and cache directory via the RESTISH_CONFIG_DIR and RESTISH_CACHE_DIR environment variables. As an example, this aids in a use case where we want to ship different API configurations for different products, let them manage the configuration, and invoke restish as needed.
If not specified the existing default paths are used.

Thanks for this PR I will take a look at this soon!

I messed up a rebase, and can't seem to get it fixed. Will reopen a fresh PR.


Mitigate task failure due to ephemeral dpkg locks

Linux integration tests sometimes spuriously fail with errors like the following:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

This can occur when running the target setup script, in particular. See libfuzzer qemu_user.
Retries are enabled by default in newer versions of apt, but apt-get needs manual option-passing, and the retry is not available on_ our default 18.04 images.
A few ways we could mitigate this:

Ship a manual bounded-retry wrapper
Allow setting a retry for the setup script generally (which must then be assumed-idempotent!)
Enable heuristic checks for common sources of races, in a "quirks mode" way. This could, for example, disable apt background tasks and check for the absence of a lock file before running a user setup script.

Note that we already have bounded retries in our generic (non-user) Linux node setup script.
AB#39993964

It sounds like as of apt 2.3.3 (package version, not apt version), retries are enabled by default in Ubuntu.