Windows Support

Support Windows via the Linux subsystem

When you say "via WSL", do you mean the end user would install alacritty inside of Ubuntu and use it from there?

I want it for cmd.exe and powershell too please not just linux subsystem

I'd think it'd be like ConEmu right and be able to run any shell you want (cygwin, mingw, cmd.exe, powershell, wsl)

Getting graphics rendering out of the WSL would be pretty tricky. Microsoft will not support anything X11 based, you need to run an X11 server and forward out of WSL.

At the moment building on Windows bails out at servo-fontconfig-sys - should I open an issue for this?

@voltagex I opened #177 about building on Windows

I managed to build this on WSL/bash, but as expected it bails on exec:
alacritty$ ./target/release/alacritty
Alacritty encountered an unrecoverable error:

        Error creating glutin::Window; No backend is available

This is mostly (as stated below) connected to WSL not exposing any GPU support (Microsoft/BashOnWindows#829), which in the end leads to the inability to support modern Linux graphics subsystem architectures (like Wayland or Mir, see Microsoft/BashOnWindows#938).

Well yeah, it'd be better to target native Windows if at all possible
On 8 January 2017 at 21:18, István Szmozsánszky<EMAIL_ADDRESS>wrote:

I managed to build this on WSL/bash, but as expected it bails on exec:
alacritty$ ./target/release/alacritty
Alacritty encountered an unrecoverable error:
    Error creating glutin::Window; No backend is available

This is mostly (as stated below) connected to WSL not exposing any GPU
support (Microsoft/BashOnWindows#829
https://github.com/Microsoft/BashOnWindows/issues/829), which in the
end leads to the inability to support modern Linux graphics subsystem
architectures (like Wayland or Mir, see Microsoft/BashOnWindows#938
https://github.com/Microsoft/BashOnWindows/issues/938).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jwilm/alacritty/issues/28#issuecomment-271142121, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAJvTw8uq0fLEcpyGZ9RFyrrXSDPOXtFks5rQLgMgaJpZM4LP0lZ
.

Relevant resources on Windows font rendering in Rust:
https://github.com/servo/servo/pull/14153
https://github.com/vvuk/dwrote-rs

The easiest solution I see is Alacritty built as a Windows-native application and using wslbridge for WSL support, allowing for any of WSL, Cygwin, PowerShell, or plain ol' cmd.exe in Alacritty.

Hey guys. I'm attempting to implement a working windows build in my spare time. I'm a Rust n00b, so excuse the roughness...
https://github.com/rayman22201/alacritty/commit/dab775a9feddffcf61cb817f5a0bd72643826d73
Using the links @rigtorp posted, and a bit of digging, I think that I have font rendering working for windows. But I have other problems that prevent me from testing it:
You seem to be pegged to a particular commit of @jwilm's fork of Glutin. This fork does not compile on windows. It does not implement the clear_current function of the glContext trait. (A function that doesn't even exist in later commits, btw)
Why are you pegged to an old commit of your Glutin fork @jwilm ?
Bumping up to the latest commit of the Glutin fork successfully compiles on windows, but then the config.rs goes looking for a glutin::{mods, Mods} and fails to find them.
It looks like the Glutin event system has totally changed in later commits.
Any thoughts on getting Glutin to work on the windows build?
Is the correct action to implement clear_window for this pegged commit?
Or is the correct action to bump up to the latest Glutin and fix the issues with the event handling?
There is also a whole bunch of unix specific stuff that the code goes looking for, which obviously fail to compile, but that seems more straightforward to fix, or at least I consider that to be a battle for another day lol.
Here is a Gist with the Rust Compiler Outputs for reference:
(Shows the output for both the old and the new revisions of Glutin)
https://gist.github.com/rayman22201/6672e595277c8077472d2ac66a065099

If you check the branch some changes have been added in his fork.
Modifier keys have been added to key events and some function added to the graphics part such as clear_current which clears the current context.
Implementing clear_current isn't hard but i got stuck getting the modifier keys on Windows
You can just put None for now but modifiers won't work
Wish I hadn't rage deleted my commits now :(

@rayman22201 @dten I'm working on upstreaming the necessary changes to glutin/winit: https://github.com/tomaka/winit/pull/112. Unfortunately upstream seems hesitant making these changes.

This should definitely not be solved via the Linux Subsystem.

As pointed out earlier in the thread, WSL has no graphics backend
WSL terminals cannot interact with the Windows host, so you cannot launch Windows programs from it. You are basically locked out of your normal workflow. For example, you cannot launch any Windows-based text editor from a WSL terminal.

(I think the second point is no longer true, as of a recent Insiders build, but I can't agree with the sentiment of the comment more strongly. The first point alone should put the Native vs WSL question to rest.)

You can definitely get graphics working in WSL (via a custom X Server), but that's not the point. You'd need a terminal in the first place to be able to launch any WSL app. A native Windows binary is the way to go here.

https://github.com/tomaka/winit/pull/112 is merged!

Any movement on this? I'd love to try Alacritty on Windows.

I'm also having a go at getting things working under Windows. Also a rust noob. Have a look here to see how far I've gotten.  https://github.com/dparnell/alacritty/tree/windows-patches
I've taken the work done by @rayman22201 as my starting point. It still doesn't quite compile, but I think it is getting close.

@dparnell Glad you are having a go. As is so common these days, I got sidetracked with other projects and never found the time to get back to this one. 👍

@rayman22201 I know what that's like! I've got so many little side projects going on at the moment. I really want a fast terminal for Windows. I'm running iTerm2 on my Macs and something like that on WIndows would make working there a lot less painful.

How is this going? I just took some time to try and get winpty working in rust. Have made some progress (nothing outward facing yet). Might be something worth looking into so we don't have to reinvent the wheel? Would require distributing the winpty binaries with the windows builds, a bunch of other terminal emulators do it including VS Code and hyper, so it might be viable. Any thoughts?

@Kethku I've not had much time to play with the code lately.

It might be useful to look at winpty for the ability to support all the possible shell backends (cmd, powershell, WSL). It's what the VSCode guys use to interface their integrated terminal frontend with the actual shells. (Technically they use nodepty, which wraps winpty on windows).

Is there an echo in here?

@dgriffen I did a little work trying to interact with wsl through ffi, but I'm super new to rust. Would you be interested in collaborating on this with me?

This should be natively supported, not via WSL.

@binary132 I meant winpty. Dont know why I typed wsl

I'm in the progress of porting it at the moment.
I'm currently adding rusttype for font rendering and rust-font-loader for fetching fonts.
I'm in an awkward position because rusttype does a lot more than FreeType does, such as providing a gpu-based cache, and working it into the existing renderer is going to be a decent amount of work.

Update: I managed to get around having to modify the renderer (yet) and I'm on to replacing the various libc calls with windows equivalents.

C:\Users\$USERNAME\AppData\Roaming\alacritty\alacritty.yml is the way to go, I would think.

Also known as %APPDATA%\alacritty\alacritty.yml
Please do use the right env variable :D

I've finished clipboard support and I'm now working on the pty code.
It looks like the easiest way is going to be to use winpty which provides a layer that translates unix-style pty commands into WINAPI commands.
Does anyone here have experience linking c++ code into rust? I've got the dll but I'm not sure where to go from here.

Just FYI winpty has an annoying bug where Ctrl-C doesn't work at all. There's a workaround for GUI programs on Win8+, but I'm waiting to see if MS's OpenSSH team can solve that issue before I think about forking winpty.
As far as linking goes - are you using winpty.dll? If so, you don't have to link anything - just use LoadLibrary/GetProcAddress. If you're trying to link statically, you probably need to build winpty with the same toolchain you use for Rust's linker, and make sure it includes the C++ rtlib. I think most people load winpty dynamically though. I guess you could try using an import library - I've never tried that with Rust, but I think you'd just need to declare everything as function pointers called __imp_<exported name> and pass the import lib to the linker.

@zacps I made some partial progress toward interacting with winpty from rust a while back. I've pushed what I got to https://github.com/Kethku/RustConsoleEmulator. I may do some looking at it further later tonight if I get around to it. Maybe this will help?
I basically got just built some simple bindings for the winpty dll and stopped there.

@parkovski I feel like the VT220 terminal mode line in https://github.com/PowerShell/Win32-OpenSSH/wiki/Project-Scope means that the MS team probably wont be super helpful. Maybe I'm misunderstanding? Would be awesome if MS could bring their console story into the present day... Writing console emulators on windows is unnecessarily hard.

I was referring to this - reliably triggering a Ctrl-C event in another process on Windows seems to be somewhere between impossible and "probably need to hook a bunch of APIs", but I'm waiting to see what MS themselves do. I've tried everything I could think of, and I've disassembled cmd and conhost, and yet somehow they always know it's a fake event and ignore it.
VT emulation is actually something I've been working on for PSReadLine, but that will only work on Windows 10, and possibly only PowerShell 6. But once that's complete, supporting that would be really easy - just pipe the input and output to and from PowerShell, no Windows APIs or winpty necessary.

Thanks for the link @Kethku, I've already finished winpty bindings though. I'm currently planning on statically linking it.
winpty isn't ideal in a number of ways but it's by far the simplest to get some level of support working. After I've got an initial version merged I'm going to look at ConEmu's approach (Injecting a DLL into the process) which is partially explained here.

@parkovski Thats awesome. Mind sharing a link for what you have so far for that? Sounds really cool

@parkovski I'll try and simplify the PTY interface so that integrating additional methods will be relatively simple. I assume it'll provide two named, overlapped pipes?

Would it be easier to gain windows support via a built in ssh client?
Example use case:
i don't want to work with windows subsystem, but with this I could ssh into the subsystem and work with it if need be. I would also be able to use the terminal emulator on remote hosts.
Would this be out of the scope of the project?

@DebugXYZ Are you looking for an ssh server for Windows? Microsoft is porting OpenSSH here. If you're thinking of something like PuTTY, I don't think I'd consider that "supporting Windows" since you'd want a terminal emulator to run a shell on the host platform.
@Kethku The first half of it was recently merged. I'm hoping to have the rest of it done soon. Unfortunately it looks like that's not going to make into a PowerShell release for a while, so you'd have to upgrade PSReadLine yourself.
@zacps Yeah, that should work. Just make two anonymous pipes and start the shell process hidden with those pipes for its input and output handles. PowerShell and cmd can both handle this scenario right now, but the editing experience is not good. You'll have to install PowerShell 6 / PSReadLine 2 yourself for now to get a decent shell experience (once I finish my changes).

@parkovski What's the install process for PSReadLine? Could we inject/start it if we were told to run PowerShell without requiring a separate install?

Hmm, possibly. Personally I just replace my copy with the new one. There's a PSModulePath env variable, but you'd have to be careful. PSReadLine 2 works fine on the new open source PowerShell, but if I point Windows PowerShell (PS5) to that folder, it spews a bunch of errors and can't resolve some DLL I think. It would at least take some experimenting.

So I've been using alacritty on Linux with tmux, and I'm thinking the biggest issue people have with the Windows console is the lack of tabs, which alacritty also doesn't have. But the stuff I've been doing with PSReadLine was with the intention to use tmux with PowerShell on Windows anyways, and recent insider builds are enabling WSL processes to outlive the console, which means tmux will work like it's supposed to.
Basically, I'm thinking the people this would appeal to most are the ones like me, who would want to use tmux on Windows. To make this work, what I think is needed is:

Alacritty needs to build on Windows but can use anonymous pipes as the tty.
A small linux program that intercepts signals and translates relevant ones by writing to stdout, because currently sending SIGINT to a Windows process started from WSL just gives you an unreachable zombie process that you have to kill by looking up the Windows pid.
I need to finish redirected input for PSReadLine. PowerShell will work right now, but the editing experience is really bad. Cmd's editing experience is always bad and it's just as mediocre as it always has been with redirected input, so nothing needs to be done there.

Right now, your tmux session will be lost when the console ends, but after the next major Windows update or if you're running an insider build, this should more or less work like a terminal is supposed to.
The console APIs don't really support non-conhost terminals, which is why you have winpty and why ConEmu and others hook APIs, and they still give an inconsistent experience. Personally at this point I would just support shells that understand ANSI - MS has said that's the new console API, and even Win7 users can install the new PowerShell and use it this way.
I'll update this thread when I finish PSReadLine support.

I now have alacritty compiling!
There's still going to be a lot of work before the build works, and after that I'll have to go back and fix the code for other platforms that I've clobbered but a lot of progress has been made.
I'll update this comment with a link to the repo shortly, keep in mind that this is my first 'real work' in rust and there is a lot of ugly code especially in the event_loop/tty parts which I'll clean up once everything is working.

Hey that's great! One thing I'm anticipating - there's no terminfo on Windows. Vim handles this by having it hard-coded, and Ubuntu's tmux-256color seems to work best for me on the Windows console in Linux vim. Since I've been doing a lot of work with Windows' ANSI support, if you want, I wouldn't mind generating that piece and the default input mapping and making sure it's accurate.

I thought I'd update this thread just so people know I'm still working on it.
I'm currently blocked on gl-rs#443 which might not be a quick problem to solve.

There's a list of small issues that someone could jump on under the help-wanted label.

I am up for doing some beta testing when it is ready! :),
Also I might have a look into the issues but have very limited rust experience so don't know how much help I can be.
Thanks for all you work

That looks really good! Is it supposed to be able to accept user input yet as when I run it I'm not able to do anything.

I am currently running in to build problems on winpty-sys v1.0.0
Compiling winpty-sys v1.0.0 (https://github.com/zacps/winpty?branch=rust#546cfcdc) error: failed to run custom build command for `winpty-sys v1.0.0 (https://github.com/zacps/winpty?branch=rust#546cfcdc)` process didn't exit successfully: `E:\Development\alacritty\target\release\build\winpty-sys-98171d98a448a96d\build-script-build` (exit code: 101)
I installed Cygwin and the packages that were listed as necessary on the winpty GitHub.
Any help would be appreciated.

@dparnell Not quite, I'll hopefully have that fixed today/tomorrow.
@gavinhow Cygwin isn't actually required as we're just using the dll (built statically) and winpty-agent build with msbuild.
Could you find out where in the build.rs it's failing?
I have a suspicion I might have worked around the GenVersion file on my machine.
Did you install the dependencies for bindgen?

@dparnell Input issue is now fixed.
I'm happy for people to come and do some testing now as basic functionality seems to work, maybe call this an alpha.

@zacps Doesn't build for me too. Here is the full error. https://pastebin.com/1zSM6RJK

WinptyVersion.cc
src/shared/WinptyVersion.cc(31): fatal error C1083: Cannot open include file: 'GenVersion.h': No such file or directory
exit code: 2

Would be more than happy to try out the compiled binary if someone can share it or might be have it available in the release page of github.

@prabirshrestha Should be fixed by e4bab56.
Releases are a good idea, I'd like to get appveyor building them from the start rather than manually building them though.

@zacps Thanks for your help. I managed to get it to build. It was to do with the GenVersion.h file and was fixed with a Cargo Update.
Now however I am getting a different error when I try to run alactritty.exe.
stack backtrace:
   0: std::panicking::default_hook::{{closure}}
             at C:\projects\rust\src\libstd\panicking.rs:386
   1: std::panicking::rust_panic_with_hook
             at C:\projects\rust\src\libstd\panicking.rs:563
   2: std::panicking::begin_panic<str*>
             at C:\projects\rust\src\libstd\panicking.rs:538
   3: alacritty::gl::missing_fn_panic
             at .\build\alacritty-aabf91f3f7e36563\out\gl_bindings.rs:20617
   4: alacritty::main
             at E:\Development\alacritty\src\main.rs:45
   5: std::rt::lang_start::{{closure}}<()>
             at C:\projects\rust\src\libstd\rt.rs:74
   6: main
   7: __scrt_common_main_seh
             at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283
   8: BaseThreadInitThunk

@gavinhow Moved discussion to https://github.com/zacps/alacritty/issues/12.

I'm having a little trouble getting the reworked tty interface working on linux. Currently it does not respond to input because the fd is never marked as readable for some reason.
I'd appreciate if anyone who has a little more experience with mio could give it a look on the windows-linux branch.

Oh, appveyor is also building binaries (both debug and release).
Go to https://ci.appveyor.com/project/zacps/alacritty, click the job for your artitecture, go to artifacts, and download alacritty.exe AND winpty-agent.exe.

Microsoft console team and open source terminal emulator developers are discussing about pty api for cmd here: https://github.com/Microsoft/console/issues/57 the people at this thread may be interested.

Noob question but would directx or opengl fit into the build somewhere?

Alacritty uses opengl for rendering, my build doesn't change that.
Switching to directx would be a lot of work for little gain.
On Sat, 14 Apr 2018, 5:35 AM CardSnap<EMAIL_ADDRESS>wrote:

Noob question but would directx or opengl fit into the build somewhere?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jwilm/alacritty/issues/28#issuecomment-381208032, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJX1cIDwDzBp9S7_e3Rfm8sSN9aKKHCXks5toOHjgaJpZM4LP0lZ
.

Recently I tried Alacritty on Linux,its amazing. Any news regarding support on Windows? Would love this on Windows.

See my comments above, I haven't tried approaching that issue since mostly because I have no idea where to start. Windows builds work for the most part but it's quite far behind master now.
I'd still very much appreciate any help anyone is able to give to get it across the line.

@zacps Thanks for the builds and yes it would be nice if someone active with Alacritty development would help you on that.

A little bit more work is in this branch: https://github.com/dparnell/alacritty/tree/windows
I have verified that it builds and runs on both Windows and MacOS.
It works on my machine

@dparnell I can't get a build env. working on windows atm. - would you care to upload some binaries ? :)

To get the build working you'll need to install Microsoft Visual Studio 2017. Make sure you install the command line tools. Once they are installed look for x64 Native Tools Command Prompt for VS 2017 in your Start menu to open a command prompt with the path all set up correctly. You will also need Rust installed and in your path. Then you should be able to run cargo build to get a nicely compiled EXE. Before it will run correctly you'll need to make sure to copy the winpty-agent.exe from assets\windows\x86_64 to target\debug and install the windows version of the config file into your home folder.

@dparnell  Well I'm getting build error particular on glutin.

@gurpreetshanky which version of the Rust compiler are you using? I'm building it successfully here with rustc 1.26.2 (594fb253c 2018-06-01)

this is on the windows branch right?

I've put a preview build up here: https://github.com/dparnell/alacritty/releases/tag/preview-build

Yes it was on the windows.Thanks for the build.

Pull request is up https://github.com/jwilm/alacritty/pull/1374

I've been assuming that this will work on a Windows system with only https://rustup.rs/ installed, is that correct?

You'll also need a C/C++ compiler of some sort. I 'm using Microsoft Visual Studio 2017 as described above

@parkovski @dparnell Did some related work here. I don't have multiple monitors so I can't test it myself.
If you create an issue on my repository it'll be moved into the main one if it's unresolved when it gets merged.

Yeah, that part tells windows to do its part of per monitor v2, which works. The problem seems to be that the underlying window library, either glutin or winit isn't handling WM_DPICHANGED (except I linked to where it does...) or the scaling factor isn't getting passed on to alacritty. I'll open a more detailed issue in your repo though.

Oh, um, nevermind. I see winit implemented HiDPI support 17 hours ago, so I'm guessing it'll work fine in future builds.

The manifest entry actually has no impact on functionality, though it's quite important for anyone using something like DPI Awareness Enabler, as otherwise the application will be erroneously detected as DPI unaware (I had to disable it for winit testing, and now my legacy applications have blurry text...)
Also, @zacps, you don't need multiple monitors to test that. You can just change the display scale factor, assuming you're on 8.1 or newer.
Once HiDPI support makes its way downstream, everything should work automagically (assuming the new types are properly integrated and any necessary HiDpiFactorChanged handling is done). There's very little I have to do before releasing winit 0.16.0, and then I can cut a glutin release right afterwards.
Anyway, Windows support is pretty exciting. I'll admit I don't actually use Alacritty, but the ability to use the same terminal across all platforms might just sell me on it.

It is pretty exciting. I've been using wsl tmux on insider builds when it's not broken. Win32-WSL PTY interop is getting there. Console team is doing an awesome job, but they also have to support business apps from the 90s so progress is slow. A terminal with modern rendering will be a great addition to Windows dev land. Now if we could just get a sudo without UAC popups...

Great to see the progress. Should mouse be working? I've tried vim and tmux with each one's mouse support enabled but alacritty seems to use its native text selection instead of passing the events onward.

@jasonparekh Does it work in cmd/powershell? If so please create an issue on my fork.

I know its not very polite to write such to open pr, but guys, is there any build link or description how to build on windows so I can try out? Know very little about rust, please dont judje)

@sandric Builds are linked above: https://github.com/jwilm/alacritty/issues/28#issuecomment-371980015

@zacps thanks a lot, it indeed works, and alacritty.exe is show up, the problem is all letters in it rendered as white rectangles for some reason. If I select them and copy paste to say notepad - its valid symbols, like that one string "(c) 2018 Microsoft Corporation. All rights reserved.". Anyone knows what that might be?

@sandric As I have said previously in this issue please create an issue on my fork rather than notifying all 33 participants on this issue.
https://github.com/zacps/alacritty/issues

Sure, you right.

To anyone implementing native integration with Windows, you may find this article interesting (I’m not sure if it would be helpful):
https://blogs.msdn.microsoft.com/commandline/2018/07/10/windows-command-line-inside-the-windows-console/

@matttproud I'm definitely interested in adding support for this. It won't happen immediately though, partly because the API is currently undocumented and in alpha state. And secondly because I run business channel on my desktop, so I won't have access to the APIs for a while.
If anyone else is interested in trying to add support you should just need to create another implementation of the EventedRW trait in src/tty/mod.rs.

I would much rather see this targetting cygwin than WSL. WSL will reach a much smaller audience as it doesn't support Windows 8 or 7 (still a majority user base) or the only remotely user-controllable and privacy-respecting versions of Windows 10 like LTSB 2016 or anyone who has no interest in using Windows Store where WSL platforms are exclusively distributed.

It’s not targeting either, the current implementation is a regular windows console using winpty which is about as good as it gets before the current in progress win10 release.
The new PTY stuff isn’t documented yet, but you can see how it’s done here.

It looks like the first versions of the API are going out now in Windows 10. An announcement can be found here:
https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/

@chrisduerr I just came here to post that same thing. Exciting stuff! I glanced through the doc pretty quickly, but it looks like they've got something like winpty internally now. Using the new ConPTY interface, it's possible to write code like this:
// Input "echo Hello, World!", press enter to have cmd process the command,
//  input an up arrow (to get the previous command), and enter again to execute.
std::string helloWorld = "echo Hello, World!\n\x1b[A\n";
DWORD dwWritten;
WriteFile(hIn, helloWorld.c_str(), (DWORD)helloWorld.length(), &dwWritten, nullptr);

The part that jumps out to me here is the \x1b[A which is 100% VT protocol :smile:. This is a nice path going forward, but we'll still need winpty support if we care at all about older versions.

Issue tracking ConPTY support on my repo: https://github.com/zacps/alacritty/issues/25

I would like a replacement for putty. It's being maintained the old school way. The authors don't like common features of modern terminal emulators. But, plink + alacritty should be a great match! We don't even have to implement terminal protocols for cmd.exe or powershell. The only thing needed is a gui.


Connection reuse in sparse index is not working

Describe the bug
When using tame_index::index::AsyncRemoteSparseIndex::krates or ...::krates_blocking, there is no connection reuse. A separate connection is created for fetching each crate. There is also a separate DNS lookup for every crate.
This is causing issues for cargo audit because some DNS servers are unhappy about getting 300 requests for the same domain at once and reject some of them, causing crate information download to fail.
To Reproduce
Steps to reproduce the behavior:

Run cargo audit on a project
Observe the threads being spawned for DNS lookups either with strace or by profiling it with samply

Additional context
It should be possible to mitigate this by making just one request, waiting for it to complete, and only then issuing all the other requests. They should reuse the existing connection in this case.

Thanks a lot for the swift fix!


Add count to admin bookings listings

Show at-a-glance how many bookings there are each day

added count per day to admin bookings list - any ideas on sprucing it up @Jumee-LDN , @danielrbradley  ? :


pywrap

Issue type
Support
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.15
Custom code
Yes
OS platform and distribution
windows 11 64 biit
Mobile device
windows 11
Python version
3.9
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Standalone code to reproduce the issue
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
from tensorflow.python import pywrap_tensorflow
from tensorflow.keras import layers
from tensorflow.keras.preprocessing.image import ImageDataGenerator

# Load the pre-trained model
base_model = tf.keras.applications.InceptionV3(include_top=False, weights='imagenet')

# Freeze the initial layers of the pre-trained model
for layer in base_model.layers:
    layer.trainable = False

# Add new layers for fine-tuning
x = base_model.output
x = layers.GlobalAveragePooling2D()(x)
x = layers.Dense(128, activation='relu')(x)
x = layers.Dense(64, activation='relu')(x)
predictions = layers.Dense(3, activation='softmax')(x)

# Create the fine-tuned model
model = tf.keras.Model(inputs=base_model.input, outputs=predictions)

# Compile the model
model.compile(optimizer='adam',
              loss='categorical_crossentropy',
              metrics=['accuracy'])

# Prepare the data generators
train_datagen = ImageDataGenerator(rescale=1./255, shear_range=0.2, zoom_range=0.2, horizontal_flip=True)
val_datagen = ImageDataGenerator(rescale=1./255)

train_generator = train_datagen.flow_from_directory(
    'training_data',
    target_size=(224, 224),
    batch_size=32,
    class_mode='categorical')

validation_generator = val_datagen.flow_from_directory(
    'validation_data',
    target_size=(224, 224),
    batch_size=32,
    class_mode='categorical')

# Train the model
history = model.fit(
    train_generator,
    steps_per_epoch=len(train_generator),
    epochs=10,
    validation_data=validation_generator,
    validation_steps=len(validation_generator))

# Save the trained model
model.save('ceramic_classifier.h5')

Relevant log output
Traceback (most recent call last):

  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\IPython\core\interactiveshell.py:3550 in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  Cell In[8], line 3
    import tensorflow as tf

  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\__init__.py:24
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import

  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\__init__.py:49
    from tensorflow.python import pywrap_tensorflow

  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\pywrap_tensorflow.py:58
    from tensorflow.python.pywrap_tensorflow_internal import *

  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py:114
    def TFE_ContextOptionsSetAsync(arg1, async):
                                         ^
SyntaxError: invalid syntax

it always show when i run the code

In order to expedite the trouble-shooting process, please provide all the dependencies to reproduce the issue reported here. I have faced a different issue for replicating the same as reported,please have a look. Thank you!


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/channel-wg-leads
/assign knative-sandbox/channel-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/eventing 74d711b...0cb7873:
  > 0cb7873 ./hack/update-deps.sh --upgrade (# 5545)
  > 95b4275 upgrade to latest dependencies (# 5540)
bumping knative.dev/reconciler-test b155197...88c8473:
  > 88c8473 Fix eventshub race (# 218) (# 220)

/lgtm
/approve


Add info about Sapient Guardian MySQL provider

cc @how02 in case you have any feedback on the content

Looks good to me, @SapientGuardian anything to add ?

I wouldn't say "Sapient Guardian Project", SapientGuardian is really just my handle. You could say that it's a companion to SapientGuardian's MySQL connector (https://github.com/SapientGuardian/mysql-connector-net-netstandard) if you wanted, or just leave that part out entirely. I'm fine with either.

Closing this as we are porting the docs to a new system. Will push changes in the new format once the port is complete.

Added in https://github.com/aspnet/EntityFramework.Docs/commit/61423f87981232ed5f7ae220312b07d149ed3b50


edits to readme

Updated the readme - but i couldn't get it to work with these instructinos. Can anyone help?

The idea isn't to run bacalhau itself inside ignite VMs: bacalhau starts ignite VMs. The requirements in the readme say that you need a x86_64 Linux host.

I think this is out of date, devstack and the docker backend make it pretty easy to run anywhere now.


feat: create pull request template

Changes
Created a pull request template.
Closes #19
Implementation details
The file name and location follows the guide in https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository.

This repo was created initially with the idea to share the github-actions through different projects. Should we think how to optimize this kind of resources to be able to share it through those projects too?

Seems like we can share files in a Qiskit/.github repository:
https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file
But it will be shared in all repositories of the organization.
I'm not sure if we can afford that right now... Since there are many repositories that are not ours.

@Tansito, exactly, that was one of my thoughts too! But I'm afraid that, as @abdonrd points out, this would also apply to the other organisation repos.
At the moment I think that this is our best take at it.


[Feature] A way to rename and delete tags

Is your feature request related to a problem? Please describe.
Hi, I'm a great fan of Weights & Biases. Thank you for developing this amazing system.
I found one not-yet-supported feature which would make Weights & Biases even better: a way to rename and delete tags.
Tags can currently only be created but they cannot be renamed or deleted. Because of this, the list of tags gets really messy as users create more and more tags.
(This issue is closely related to https://github.com/wandb/client/issues/1439, but I opened a new issue because the old issue remained stale for a long time.)
Describe the solution you'd like
I think the way Notion lets the users manage the tags can be a plausible solution.
Each tag has a dropdown menu as well as the x button, and in the dropdown menu, users can rename the tag, delete it or change the color of the tag.

I think a similar UI can be adopted to Weights & Biases by creating a dropdown menu button next to the tags as marked in the screenshot below.

Indeed, such a feature is already supported in weights & biases for the runs. It would be really great if tags can also be managed in the same way.

Hey @soheeyang this is a great feature request we hope to implement.  if you give me a project and the list of tags you would like to remove or rename I can do it manually.  Feel free to email<EMAIL_ADDRESS>

Tags are a bit of a pitfall without this feature. Is it still not possible to delete tags? Even through the API?

any update on this? I am using tags but regretting it due to missing features (renaming, changing color, deleting, etc)

I want this not just with tags but the logged metrics. Over time I renamed the metrics to log but I'm unable to rename the old logged metrics in the runs table.

+1 to all the above!! sorry to beat a dead horse but renaming tags would be amazing to have!


Add Content Cards to home page

We want to be able to have some up to date videos and images on the front-page of the site, as seen in the mobile mockup here
Card for an announcement image up top

For the scope of this issue, we just want to add a single new component to the top of the home page, which receives data from sanity.
This will require adding a new schema to the sanity schema types, adding a query for fetching the image, generating new typescript types for the schema and query

(As per the guide, the commands 'npx sanity@latest schema extract' and 'npx sanity@latest typegen generate' create (or update) the schema.json and sanity.types.ts files which are then used to type components that fetch from sanity.)
See PR https://github.com/hminsky2002/WNYU/pull/41 for more details

And then implementing a new component, say "Announcement", which ingests the image from sanity.
For the schema specifications, it should at minimum have a field for the image being uploaded, and a field for a caption for the image.

Boy this is an out of date description. In actuality, what we now want are content embed links to youtube videos,
as depicted below:

Actually, since these are explicitly videos and not any other type of media, we should rename these to video cards. Content cards could reasonably be links to articles, shows, or podcasts in the future.


Ben/default viewer build option

This adds a build option for defaultViewerOptions
To overwrite the options on build, run the following command (this one disables the layer dialog):
npm run build-min -- --define OVERWRITE_DEFAULT_VIEWER_OPTIONS="'showLayerDialog: false, resetStateWhenEmpty: true'"
Thanks @xgui3783 for your example, which I modified slightly to make the declaration inside viewer.ts as well as handle builds which don't specify the default viewer options.
The syntax I'm using to check if it's undefined is a bit ugly -- happy to change to something else if you prefer.
Related to issue https://github.com/google/neuroglancer/issues/147

This is great, thanks.  My only suggestion is to rename to NEUROGLANCER_OVERRIDE_DEFAULT_VIEWER_OPTIONS

Thanks!


Swift 3 compatibility

Ticket for Swift 3 compatibility

I think the best swift3 migration is by @opwoco here. He has added a few FIXME's related to comparison operators.

Hey thanks @neoneye, I'll check it out

As of 4229aa559cc9edc3a09f281bd0c606194bc594ba Version supports Swift 3.2, while 94293e424b5645f2873f83cd28061427c6bcccf4 improves the readability & maintainability of the version parser and 751b1580fce0198c1ec8db0a8b1d7ce4ec66d421 fixes a bug in the comparison logic.
(Having been added as a collaborator recently I will try to keep Version up-to-date in a more timely manner)

Great job @regexident


[BUG] Unity + MRTK3 + Hololens 2 Low Framerate

Describe the bug
I just created a simple Unity project just to check MRTK3 performances, once build and running on Hololens 2 a simple scene containing a slate and a cube to manipulate runs at 20 FPS.
So i tried the sample scenes provided on the github  and once build, scenes are running at 15 fps.
I did follow all MRTK's and Unity advice to optimize the performances, but I should be missing something somewhere...
To reproduce
Steps to reproduce the behavior:

Clone Github Scene Examples (MRTKDevTemplate)
Run Unity project using 2021.3.21 LTS version
Build project with VS 2022
Run on up to date Hololens 2

Expected behavior
In order to provide users a nice experience, simple scenes should run close to 60 FPS.
Screenshots
Your setup (please complete the following information)

Unity Version 2021.3.21f1
MRTK v3.0.0 GA

Target platform (please complete the following information)

HoloLens 2

Additional context

@FelixLenainInod please verify that all the mesh renderers are using the Shaders from MRTK's Graphics Toolkit.
Also, what flavor of the project are you building Debug, Release, or Master?
Also, can you have changed any of the sample project settings?  Please provide the project settings you are using.
Note, we cannot reproduce this issue.

@FelixLenainInod Are you using the built in render pipeline?

Hi guys,
@AMollis Thanks for the advices, my mistake was to build in Debug mode after building in Master mode the performances are here, 60 FPS with no problem. Thank you
@shaynie Yes i'm using the Built-in pipeline.


unable to build json v1.8.1 with ruby 2.2.x

Hi,
I tried to build the app on ruby 2.2.x and it gave me json 1.8.1 error which is resolved by updating Gemfile.lock file with Json pointing to v1.8.2 (https://github.com/flori/json/issues/229).
Installed ruby-devel to compile gems with native extensions.
Thanks.

closing this issue


Improve Hover Layout on Dashboard Entries

When users hover over a dashboard entry, the current layout causes some visual issues. Specifically:

Portions of the text beneath the buttons (e.g., "Created Time" and "Modified Time") are partially hidden by the buttons, creating a cluttered interface.
The buttons themselves aren't clearly distinguished when hovered over, making it difficult for users to see or interact with them.

The solutions may be:

Completely hide the "Created Time" and "Modified Time" text when the user hovers the mouse over the entry to declutter the layout.
Add a visible rectangle or border around the buttons to clearly indicate their presence and improve user interaction during the hover state.

Ok, I will solve this problem.


"Check Team Availability" flow missing

Hi, documentation states that there should be at least two flows after importing .zip file, but all I'm getting is single flow named "Team Request Approval". Where should I get "check team availability" flow from?
Docu:
Step 4: Set up Power Automate
Repeat the above process for the Check Team Availability flow. Update the SharePoint site address for steps

I have the same question that is here, I do not see a CHECK TEAM AVAILABILITY FLOW. I see this issue is closed. Where is that flow? Or is the documentation just out dated and there is no CHECK TEAM AVAILABILITY FLOW?

@aimarpl  Have you found it? Where?


Sync fork

Changes:

update the badges and links to point to this fork,
bump the crate version, once this is merged @noot could publish it to crates.io

Closes https://github.com/ChainSafe/forest/issues/1722

sorry for the noise!


upgrade java compiler source to 1.8 and add a type annotations for Re…

To justify the use of response.close() which people often use, we need to specify NotNull for Response, so I added a type annotation. It failed with an error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project tchannel-core: Compilation failure
[ERROR] /home/henry/share/company/uber/tchannel-java/tchannel-core/src/main/java/com/uber/tchannel/api/SubChannel.java:[245,27] type annotations are not supported in -source 1.7
[ERROR]   (use -source 8 or higher to enable type annotations)
[ERROR]

This conflicts with the comment in pom.xml:
<!-- store method parameter names in the bytecode (java 8+) -->

It seems we forgot to specify java 8. So I modified it. That is how this diff comes.

 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.

The Travis CI build failed because it is still using Java 1.7. Could anybody in charge of this project please upgrade it to 1.8? Thanks.


chore: bdd-spring-1576594094 to 0.0.1

chore: Promote bdd-spring-1576594094 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Use cache for database schema in get_schema()

CRUD will use DDL schema to obtain a sharding key using get_schema(). However, on every get_schema() call DDL module scan spaces to build the current database schema. Need to cache a database schema.

Sadly, we have no public API for tracking a database schema version (without it there is no way to invalidate the cache, when some space or index is changed).
There is box.internal.schema_version(), which is obviously internal and has no guarantee that it'll exist in a future. It exists since 1.7.3-660-gcbfc235ee. We can take risks, use the internal function, file issue to expose it publicly (should be easy to implement and unlikely someone will be against). When it'll be exposed publicly, use the public function and fallback to the internal one if the public one does not exist.


excluded MDM-deferred updates from enforcement

excluded MDM-deferred updates from enforcement #94
added macOS Monterey-specific workaround for macOS Ventura updates not properly labeled as deferred

Confirmed in #94 that this prevents Ventura updates from being advertised when running on Monterey Macs.


standalone jmeter running on my windows pc - the connection was reset during the write operation (payload size 2.2Mb)

Expected behavior
simple test plan for HTTP sampler for writing operation. with one thread (and one iteration) but the json request body size 2.2 Mb.
expected to run successfully specially if the same test plan configuration but with smaller payload size work successfully
Actual behavior
the connection was reset during the write operation, it's likely that the server closed the connection while JMeter was trying to send the request body (payload) with a size of 2,354,584 bytes.
this is part of jmeter log response :
2023-07-21 11:48:07,654 DEBUG o.a.h.wire: http-outgoing-0 >> "[write] I/O error: Software caused connection abort: socket write error"
2023-07-21 11:48:07,654 DEBUG o.a.h.i.c.DefaultManagedHttpClientConnection: http-outgoing-0: Shutdown connection
2023-07-21 11:48:07,654 DEBUG o.a.h.i.e.MainClientExec: Connection discarded
2023-07-21 11:48:07,655 DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager: Connection released: [id: 0][route: {}->http://sp-dev-qua-01.psi-mt.de:22503][total available: 0; route allocated: 0 of 2; total allocated: 0 of 20]
2023-07-21 11:48:07,655 DEBUG o.a.j.p.h.s.HTTPHC4Impl: IOException
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110) ~[?:?]
at java.net.SocketOutputStream.write(SocketOutputStream.java:150) ~[?:?]
at org.apache.http.impl.conn.LoggingOutputStream.write(LoggingOutputStream.java:74) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:124) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.impl.io.SessionOutputBufferImpl.flushBuffer(SessionOutputBufferImpl.java:136) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.impl.io.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:167) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:113) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:113) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:152) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$2.doSendRequest(HTTPHC4Impl.java:463) ~[ApacheJMeter_http.jar:5.6.1]
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) ~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.14.jar:4.5.14]
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:940) ~[ApacheJMeter_http.jar:5.6.1]
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:651) [ApacheJMeter_http.jar:5.6.1]
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66) [ApacheJMeter_http.jar:5.6.1]
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1311) [ApacheJMeter_http.jar:5.6.1]
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1300) [ApacheJMeter_http.jar:5.6.1]
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) [ApacheJMeter_core.jar:5.6.1]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) [ApacheJMeter_core.jar:5.6.1]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) [ApacheJMeter_core.jar:5.6.1]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) [ApacheJMeter_core.jar:5.6.1]
at java.lang.Thread.run(Thread.java:829) [?:?]
2023-07-21 11:48:07,662 DEBUG o.a.j.p.h.s.HTTPHC4Impl: Overwriting request old headers:
2023-07-21 11:48:07,663 DEBUG o.a.j.a.ResponseAssertion: Test Type Info: contains=true, notTest=false, orTest=false
2023-07-21 11:48:07,663 DEBUG o.a.j.a.ResponseAssertion: Failed: 200
2023-07-21 11:48:07,674 DEBUG o.a.j.c.GenericController: Calling next on: class org.apache.jmeter.control.GenericController
2023-07-21 11:48:07,674 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2023-07-21 11:48:07,674 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1
2023-07-21 11:48:07,674 DEBUG o.a.j.p.h.s.HTTPHC4Impl: Thread Finished
2023-07-21 11:48:07,674 DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager: Connection manager is shutting down
2023-07-21 11:48:07,675 DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager: Connection manager shut down
2023-07-21 11:48:07,675 DEBUG o.a.j.t.ThreadGroup: Ending thread Thread Group 1-1
2023-07-21 11:48:07,675 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2023-07-21 11:48:07,675 DEBUG o.a.j.r.ResultCollector: Closing: C:\Tools\apache-jmeter-5.6.1\bin\07212023_1.jtl
2023-07-21 11:48:07,675 DEBUG o.a.j.r.ResultCollector: Closing: C:\Tools\apache-jmeter-5.6.1\bin\07212023_1
2023-07-21 11:48:07,676 DEBUG o.a.j.r.ResultCollector: Closing: C:\Tools\apache-jmeter-5.6.1\bin\log.itl
2023-07-21 11:48:07,676 INFO o.a.j.r.Summariser: summary =      1 in 00:00:02 =    0.6/s Avg:   565 Min:   565 Max:   565 Err:     1 (100.00%)
2023-07-21 11:48:07,677 DEBUG o.a.j.JMeter: jmeter.exit.check.pause is <= 0, JMeter won't check for unterminated non-daemon threads
Steps to reproduce the problem
increase the json payload size of http reuest to size >2 Mb
how to solve the issue of that payload can be that big size
JMeter Version
5.6
Java Version
11
OS Version
windows 10

Hi Aziza, It is likely a limit on the server. You may have to check it in
the server config what the default max body size is and or it is manually
restricted.
For example for Nginx *default is 1MB *you can increase it via
http {
...
client_max_body_size 100M;
}
On Fri, Jul 21, 2023 at 12:17 PM Aziza Abdelsalam @.***>
wrote:

Expected behavior
simple test plan for HTTP sampler for writing operation. with one thread
(and one iteration) but the json request body size 2.2 Mb.
expected to run successfully specially if the same test plan configuration
but with smaller payload size work successfully
Actual behavior
the connection was reset during the write operation, it's likely that the
server closed the connection while JMeter was trying to send the request
body (payload) with a size of 2,354,584 bytes.
this is part of jmeter log response :
2023-07-21 11:48:07,654 DEBUG o.a.h.wire: http-outgoing-0 >> "[write] I/O
error: Software caused connection abort: socket write error"
2023-07-21 11:48:07,654 DEBUG
o.a.h.i.c.DefaultManagedHttpClientConnection: http-outgoing-0: Shutdown
connection
2023-07-21 11:48:07,654 DEBUG o.a.h.i.e.MainClientExec: Connection
discarded
2023-07-21 11:48:07,655 DEBUG
o.a.h.i.c.PoolingHttpClientConnectionManager: Connection released: [id:
0][route: {}->http://sp-dev-qua-01.psi-mt.de:22503][total available: 0;
route allocated: 0 of 2; total allocated: 0 of 20]
2023-07-21 11:48:07,655 DEBUG o.a.j.p.h.s.HTTPHC4Impl: IOException
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
~[?:?]
at java.net.SocketOutputStream.write(SocketOutputStream.java:150) ~[?:?]
at
org.apache.http.impl.conn.LoggingOutputStream.write(LoggingOutputStream.java:74)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:124)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.http.impl.io.SessionOutputBufferImpl.flushBuffer(SessionOutputBufferImpl.java:136)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.http.impl.io.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:167)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:113)
~[httpcore-4.4.16.jar:4.4.16]
at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:113)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:152)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$2.doSendRequest(HTTPHC4Impl.java:463)
~[ApacheJMeter_http.jar:5.6.1]
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
~[httpcore-4.4.16.jar:4.4.16]
at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
~[httpclient-4.5.14.jar:4.5.14]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
~[httpclient-4.5.14.jar:4.5.14]
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:940)
~[ApacheJMeter_http.jar:5.6.1]
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:651)
[ApacheJMeter_http.jar:5.6.1]
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
[ApacheJMeter_http.jar:5.6.1]
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1311)
[ApacheJMeter_http.jar:5.6.1]
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1300)
[ApacheJMeter_http.jar:5.6.1]
at
org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
[ApacheJMeter_core.jar:5.6.1]
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
[ApacheJMeter_core.jar:5.6.1]
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
[ApacheJMeter_core.jar:5.6.1]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
[ApacheJMeter_core.jar:5.6.1]
at java.lang.Thread.run(Thread.java:829) [?:?]
2023-07-21 11:48:07,662 DEBUG o.a.j.p.h.s.HTTPHC4Impl: Overwriting request
old headers:
2023-07-21 11:48:07,663 DEBUG o.a.j.a.ResponseAssertion: Test Type Info:
contains=true, notTest=false, orTest=false
2023-07-21 11:48:07,663 DEBUG o.a.j.a.ResponseAssertion: Failed: 200
2023-07-21 11:48:07,674 DEBUG o.a.j.c.GenericController: Calling next on:
class org.apache.jmeter.control.GenericController
2023-07-21 11:48:07,674 INFO o.a.j.t.JMeterThread: Thread is done: Thread
Group 1-1
2023-07-21 11:48:07,674 INFO o.a.j.t.JMeterThread: Thread finished: Thread
Group 1-1
2023-07-21 11:48:07,674 DEBUG o.a.j.p.h.s.HTTPHC4Impl: Thread Finished
2023-07-21 11:48:07,674 DEBUG
o.a.h.i.c.PoolingHttpClientConnectionManager: Connection manager is
shutting down
2023-07-21 11:48:07,675 DEBUG
o.a.h.i.c.PoolingHttpClientConnectionManager: Connection manager shut down
2023-07-21 11:48:07,675 DEBUG o.a.j.t.ThreadGroup: Ending thread Thread
Group 1-1
2023-07-21 11:48:07,675 INFO o.a.j.e.StandardJMeterEngine: Notifying test
listeners of end of test
2023-07-21 11:48:07,675 DEBUG o.a.j.r.ResultCollector: Closing:
C:\Tools\apache-jmeter-5.6.1\bin\07212023_1.jtl
2023-07-21 11:48:07,675 DEBUG o.a.j.r.ResultCollector: Closing:
C:\Tools\apache-jmeter-5.6.1\bin\07212023_1
2023-07-21 11:48:07,676 DEBUG o.a.j.r.ResultCollector: Closing:
C:\Tools\apache-jmeter-5.6.1\bin\log.itl
2023-07-21 11:48:07,676 INFO o.a.j.r.Summariser: summary = 1 in 00:00:02 =
0.6/s Avg: 565 Min: 565 Max: 565 Err: 1 (100.00%)
2023-07-21 11:48:07,677 DEBUG o.a.j.JMeter: jmeter.exit.check.pause is <=
0, JMeter won't check for unterminated non-daemon threads
Steps to reproduce the problem
increase the json payload size of http reuest to size >2 Mb
how to solve the issue of that payload can be that big size
JMeter Version
5.6
Java Version
11
OS Version
windows 10
—
Reply to this email directly, view it on GitHub
https://github.com/apache/jmeter/issues/6054, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALLNIG7KBH3FH32PNSDBDTXRJJKPANCNFSM6AAAAAA2SULWT4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi Ravi,
Thank you for the reply.
Kindly i am quite new in jmeter.
How can i set this configuration for increasing max request size in the test plan.


Save the layout of a model within the model and use it on re-import

When a model is created and downloaded we want the layout information contained in the download.  Then on import, if layout information is present, use it to layout the model instead of the auto layout.
The idea is to use one annotation tied to a deployment within the model.  This is necessary as the model has objects that don't have K8s objects, e.g. host path volumes.

We decided against annotations since a change to an annotation can result in a redeployment of the containing object.  Seems bad to re-deploy a controller due to a modified yipee layout.
Instead, layout data is stored in a "special" ConfigMap named "yipee-layout-data".  The ConfigMap is included in a download and processed/removed on import.


Sitename for lower rake ?

Hey i will add the feature for Steamname + Sitename = lower commission.
    if (personaname, "yourdomain.com")){
		if ($keepPercentage + $itemPercentage > 0.0) {
			array_push($itemsToGive, $item);
			$give = true;
			continue;
		}

		if ($keepPercentage + $itemPercentage >= 0.0 && $keepPercentage < 0.0) {
			array_push($itemsToKeep, $item);
			$give = true;
			continue;
		}

		array_push($itemsToKeep, $item);
		$keepPercentage += $itemPercentage;
		}

is this the right way ?

just leaving a comment here..

What file did you modify?

@TarantelTM I think it's good but the way you are using now will cause none commision. Not sure if that's the desired effect.

no commission was a test


Broken verbose table

Will be fixed by https://github.com/oven-sh/bun/pull/7966

As it's now merged, ollamamodelupdater will require Bun >=1.0.22 once it's released


Allow array as html attribute

Hi,
Currently, attributes only allow single string value, which force developer to manually generate string value from array, for example for dynamic classes generation.
<% @classes = %i[foo bar] %>
<%= image_tag 'foo.png', class: @classes.join(' ') %>

This patch allows to use array of strings or symbols for attributes values, as in Ruby on Rails.
<% @classes = %i[foo bar] %>
<%= image_tag 'foo.png', class: @classes %>

Seems failure are mostly not caused by this patch. Disk quota problem, a test on padrino-mailer…
I just fix the compatibility trouble with ruby 1.9 and array notation.

Dope!

escape_value seems that this is actually used to escape attribute values.
Although there is an example like the srcset attribute, basically this function will be conveniently usable.
Thanks for the patch.


ci: switch to GitHub Actions

Description of change

This PR switches test builds from Travis to GitHub Actions.
cc @rvagg @cclauss
Checklist

[ ] npm install && npm test passes
[x] commit message follows commit guidelines

Not 100% sure why the windows tests are failing 🤔 i copied pretty directly from the travis file.

Just use the same code that you use for the real operating systems.  That should work.

On Windows you should be able to use python or maybe py or maybe py3 to get to Python 3.

https://github.com/microsoft/setup-msbuild


stateless policy enforcement model with bidirectional flow processing

https://github.com/smartxworks/ofnet/pull/19


OStree based images add the ssh key for the root user to the wrong HOME

When you create an Edge type of image (or any ostree based image) and you add a ssh key for the root user, osbuild puts the key in the wrong directory.
Here is an example of the content of an image created with osbuild-composer, but looking at the code, it should have the same issue building directly with the osbuild:
[root@vm ~]# echo $HOME
/root
[root@vm ~]# pwd
/root
[root@vm ~]# ls -a
.  ..  .cache
[root@vm ~]# ls -l /
total 20
lrwxrwxrwx.   2 root root    7 Oct  4 16:41 bin -> usr/bin
drwxr-xr-x.   6 root root   86 Oct  4 16:42 boot
drwxr-xr-x.  16 root root 2720 Oct  4 20:00 dev
drwxr-xr-x. 104 root root 8192 Oct  4 20:00 etc
lrwxrwxrwx.   2 root root    8 Oct  4 16:41 home -> var/home
lrwxrwxrwx.   3 root root    7 Oct  4 16:41 lib -> usr/lib
lrwxrwxrwx.   3 root root    9 Oct  4 16:41 lib64 -> usr/lib64
lrwxrwxrwx.   2 root root    9 Oct  4 16:41 media -> run/media
lrwxrwxrwx.   2 root root    7 Oct  4 16:41 mnt -> var/mnt
lrwxrwxrwx.   2 root root    7 Oct  4 16:41 opt -> var/opt
lrwxrwxrwx.   2 root root   14 Oct  4 16:41 ostree -> sysroot/ostree
dr-xr-xr-x. 129 root root    0 Dec 31  1969 proc
lrwxrwxrwx.   2 root root   12 Oct  4 16:41 root -> var/roothome
drwxr-xr-x.  34 root root  840 Oct  4 20:00 run
lrwxrwxrwx.   2 root root    8 Oct  4 16:41 sbin -> usr/sbin
lrwxrwxrwx.   2 root root    7 Oct  4 16:41 srv -> var/srv
dr-xr-xr-x.  12 root root    0 Oct  4 20:00 sys
drwxr-xr-x.   5 root root   43 Oct  4 16:42 sysroot
drwxrwxrwt.  11 root root 4096 Oct  4 20:01 tmp
drwxr-xr-x.  12 root root  155 Dec 31  1969 usr
drwxr-xr-x.  24 root root 4096 Oct  4 19:26 var
[root@vm ~]# ls -l /var/home/root/.ssh/authorized_keys
-rw-r--r--. 1 root root 381 Oct  4 19:26 /var/home/root/.ssh/authorized_keys

At the OSTree based images, the root's HOME is at /root, which is a link to /var/roothome, but the osbuild adds the key to a directory called root inside the directory where the normal users are: /var/home/.
Here is the blueprint used for this image: https://gitlab.com/redhat/edge/ci-cd/manifests/-/blob/composer-with-raw-image/ci/files/blueprint.toml#L239

@gicmo could you have a look to this, please? This will affect to all the images for automotive :disappointed:
Thanks!


What are the recommended way to do sinks?

We have a little info on using redux.getState and createRedux(stores, initialState) for rehydrating the data from server,  but it would be great to also document the recommended way to do sinks.
For example, one might want to sink a certain store's state to the localStorage, and have that be read on start. In classic Flux, this would be managed by the Store, but in Redux, there is only one Store, and the Reducers are stateless, so they don't seem to be the right place to do it.
I'd say a small doc section showing how you can sink a part of the state tree to some external storage, and read it on startup, would help here.

Could be done with... store middleware? This requires the init action to be exposed, but there are other ways I'm sure.
import { INIT_ACTION } from 'redux';

function storageMiddleware(store, key) {
  return function(state, action) {
    if (action === INIT_ACTION) {
      const sessionState = sessionStorage.getItem(key);
      // merge sessionState with state somehow
    }
    const nextState = store(state, action);
    // serialize nextState somehow
    sessionStorage.setItem(key, serializedState);
    return nextState;
  };
}

@HeyImAlex Stores are assumed to have no side-effects. Moreover, there's no guarantee of a 1 to 1 correspondence between store calls and change events. E.g. a dev tool may keep track of actions and send them through the store multiple times (reduce them), and only emit a single change event at the end.
The proper way to do side effects is via a subscribed listener. (I'd argue this is best practice in normal Flux, too, though I see people do it all the time.)

The proper way to do side effects is via a subscribed listener.

:+1:

Maybe if the user is able to change how way the final state is handled, this problem could be solved more elegantly, and this could give new capabilities to Redux by deciding how to handle state modification/persistence in a global level inside the application (e.g. local and remote persistence/synchronization of state, debugging, state recording/replay, ImmutableJS on the whole atom).
I believe this already can be implemented by monkey-patching the get/setState by anyone, but... my guess is that it's a bit invasive.
Also, maybe some of these features already can be achieved by using getState()... but I can't imagine how the "time travel" feature could capture all states without using a middleware (where I believe it's not where we should find out if the state was changed).
Anyway... wouldn't a setStateHandler() be an elegant way to modify state persistance (and related things)?
I'm totally new to this library anyway, maybe I'm just talking shit :yum:

It looks like you are already looking for some modifications on the API on #113... just saw it now.

Yeah, time travel pretty much works locally for me, I'm going to show it off on React Europe conf in about two weeks, stay tuned.

@acdlite How about this?
https://gist.github.com/HeyImAlex/0f5ee73e581f64b6c290
It's similar what I use with flummox. Plus you get cross-window/tab syncing. Working off of the Redux described  in #113.

Closing, as not a real issue. We might want to devote a section on this as part of #140.

Here is my approach: https://github.com/rt2zz/redux-persist-store
It is working well in my current app, but I would be interested in other approaches. Serialization can be expensive, it would be interesting to experiment with web workers or other delayed processing.


Support Elevation

Please check if the current library supports elevation of the view. Thanks.

Have you tried out? :-)

I placed it inside a FrameLayout container instead, it worked. ;)

👍


No cluster address?

There doesn't seem to be a cluster_address option for the listener. And as such when I try to set the node attribute, I get the following error:
     NoMethodError:
       undefined method `cluster_address' for VaultCookbook::Resource::VaultConfig
     # /var/folders/5y/2xp1l2t158g3_c33zyz6slvr0000gn/T/d20170131-13941-1dc3mak/cookbooks/hashicorp-vault/recipes/default.rb:23:in `block (2 levels) in from_file'
     # /var/folders/5y/2xp1l2t158g3_c33zyz6slvr0000gn/T/d20170131-13941-1dc3mak/cookbooks/hashicorp-vault/recipes/default.rb:23:in `each_pair'
     # /var/folders/5y/2xp1l2t158g3_c33zyz6slvr0000gn/T/d20170131-13941-1dc3mak/cookbooks/hashicorp-vault/recipes/default.rb:23:in `block in from_file'
     # /var/folders/5y/2xp1l2t158g3_c33zyz6slvr0000gn/T/d20170131-13941-1dc3mak/cookbooks/hashicorp-vault/recipes/default.rb:18:in `from_file'

I'm going ahead and adding it to my fork, but wanted the issue here to reference.

Realized cluster address is in master just not the latest Supermarket release.


Simplify issue comment URL

Feature Description
See Benjamin_Loison/pdfsam/issues/1#issue-748800.
Maybe it is a comment id among the global Gitea instance but a given issue comment id would not make more sense? Maybe not that much in order to have independent ids but at least from a end-user point of view could have 2 links.
Related to Improve_websites_thanks_to_open_source/issues/700 and Benjamin_Loison/gitlab/issues/23.
+37
Screenshots
No response

Related to Improve_websites_thanks_to_open_source/issues/890.

So I am looking for an anchor alias or setting 2 anchors to a given element. However, this means having 2 ids which is forbidden, no?

Related to Improve_websites_thanks_to_open_source/issues/935.

Alternatively can set own anchor with the Stack Overflow answer 7335259.

Note that ids do not have to move, so if a comment is deleted, then its id won't be ever used again.

Would ease referring to first comment of an issue, hence would help Benjamin-Loison/uBlock-issues/issues/25.

Until any possible merge, I could deploy it on my Gitea instance.


WebRTC doesn't accept the ICE Candidate from the client

Hello there,
I'm using the Go2RTC within Frigate for WebRTC streaming and using the AWS Kinesis Video Streaming for TURN server.
It works well when I set the TURN server information within the Frigate configuration.
However, due to the short-lived credentials (5 minutes) of AWS Kinesis Video Streaming, I want to move towards requesting ICE Candidates (including TURN servers) from the client.
Issue
It seems the ICE Candidate request from the client wasn't accepted.
I observe that Go2RTC attempts to request the ICE candidate to its own ports (8555 and 48076). And the video streaming is not working (keep loading)
Since I prefer to avoid port forwarding, I'm seeking guidance on how to configure Go2RTC to utilize the ICE Candidates (including TURN servers) provided by the client.
Question
Could you please point me to any relevant documentation or provide specific configuration examples that demonstrate how to utilize client-provided ICE Candidates within Go2RTC?
Thank you for your time and assistance. :heart:

I don't understand what it means to "provided by client". If you have the ability to modify the client code (browser html), just specify the TURN server there.
go2rtc supports getting TURN settings when the stream starts. This works with Home Assistant. Of course if you are ready to write a custom client to support it.


Model Extension

Hi Devs,
Can I extend the models and inject instead of using the default model.
Explanation:
For example the customer model has 10 properties, I want 5 from the existing model and add my own new properties into model.
Is that possible in EasyData.
thanks and regards.

Hi,
Yes, it is possible. You can hide properties that you do not want to show/edit etc using such an attribute:
  [MetaEntityAttr(Editable = false, ShowOnView = false, ShowInLookup = false)]
  public DateTime DateCreated { get; set;}

About adding other properties. Yes, you can do it using ModelTuner. For example:
 endpoints.MapEasyData(options => {
     options.Endpoint = "/api/super-easy-crud";
     options.UseDbContext<ApplicationDbContext>();

     options.UseModelTuner(model =>
      {
          var customerEntity = model.EntityRoot.FindSubEntity("Customer");
          var attr = model.CreateEntityAttr(new EasyData.MetaEntityAttrDescriptor() {
              Parent = customerEntity,
              Caption = "CustomProperty",
              DataType = EasyData.DataType.String,
              Kind = EasyData.EntityAttrKind.Virtual
          });
          customerEntity.Attributes.Add(attr);
      });
});

But if you add a property, that won't have representation in DbContext entity, it won't be processed, or even an error is possible.
It would be better if you could describe the scenario you are trying to implement.

The idea is simple, don't know if this product was designed to according to that.
I have my own models, but I am looking for tools that can do CRUD boiler plate code for me.
I reached at this code base and before committing I wanted to get things cleared. Probably if there is any documentation that is there so that I can look into it.

It depends on what you call a "model". In the current implementation of EasyData a "data model" equals to DbContext. In any case, it's all tied to the structure of the underlying database.
EasyData architecture allows working with any database but it requires a special implementation of EasyDataManager class to support a particular DB. As for now, we have implementation only for Entity Framework Core.
So, if you describe what exactly you are trying to achieve, we will possibly be able to suggest a solution.

I was wondering if we could use proxy models (API-only) that have 2 way mappers. For example, Person vs APIPerson. It would work just 1-to-1 not to overcomplicate things.
Perhaps the author wants the same thing but I'm not sure. I'd gladly create a more detailed issue if that's not the case and the maintainers would be interested.

Still not quite clear. "if we could use proxy models" - for what?
If you think that EasyData has some kind of API representation for each model class, it's not correct. Instead, it has a Metadata object that contains information about all models (entities) and all attributes (properties) in those entities together with some other necessary information. This Metadata object is converted to its JSON representation and sent to the client on a "GetMetadata" request (usually the first one).
So, if you have your own representation of your DB (not a DbContext), you will need to write a so-called "model loader" that fills the Metadata object by your DB representation.

I'll close due to inactivity


PostGISClient driver not found

Reopening as the underlying cause has potentially been identified. The version of the PostGIS library is quite old as they changed the groupId for the next version and  didn't notice. This older version depends on an old version of the Postgres driver library, which also has since changed groupId. This change in groupId for the Postgres driver meant that both it and the newer version are getting loaded with the code randomly picking one to use at runtime.

Tested the proposed solution but does not work


adding code to unlock mount script and adding encrypt format all

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

additional changes we should make would be adding tests to validate if the disk unlock has been done successfully. where it would be added to the file azext_vm_repair/tests/latest/test_repair_commands.py


Removing min/max check for Retry-After

Currently in ClientRuntime, ARM dictates to have min/max for Retry-After to be 10 sec and 10 mins.
We want to remove that check on insistence of ARM.

Fixed


LTNManager crashes on load

Describe the bug
Crash on load
Save file
Upload the save file where the bug occured. If the file is too large for GitHub, use a file service such as Google Drive or Dropbox. If these aren't available, PM me (Raiguard) on the Factorio forums, or on Discord (Raiguard#7402).
If you can consistently reproduce the error from a new save, please upload the original save anyways, just in case.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

This is actually a bug with LTN Combinator, not LTN Manager.


Clean up DG

Codecov Report

Merging #144 (ddcbf2d) into master (2e2ebf7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #144   +/-   ##
=========================================
  Coverage     75.08%   75.08%
  Complexity      858      858
=========================================
  Files           110      110
  Lines          2444     2444
  Branches        310      310
=========================================
  Hits           1835     1835
  Misses          518      518
  Partials         91       91

Continue to review full report at Codecov.

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


Expand the agent functionality

[x]  Remove forceReceiveLocal function
[ ]  Implement forceUpdateSlippage function
[ ]  Implement revert
[ ]  Ensure execute and reconcile cannot happen once a transaction has been reverted
[ ] Rename agent because nobody likes my names :(

Must close #1878 before this can be closed

Closing in favor of #1878 -- which is blocked by #1735


Issue with ortho projection on Vulkan

I'm sure I'm doing something wrong but I can't figure out what.  I have an orthographic projection like this
m_AspectRatio = (float)width / (float)height;
float orthoLeft = 0.0f;
float orthoRight = (float)m_OrthographicHeight * m_AspectRatio * m_Zoom;
float orthoTop = (float)m_OrthographicHeight * m_Zoom;
float orthoBottom = 0.0f;

m_Projection = glm::ortho(orthoLeft, orthoRight, orthoBottom, orthoTop, (float)m_OrthographicNear, (float)m_OrthographicFar);

glm::mat4 transformationMatrix = glm::translate(glm::mat4(1.0f), m_Position);

m_View = glm::inverse(transformationMatrix);

The camera doesn't rotate and stays at z = 10 but the y axis for the guizmo is inverted.  It is pointing the wrong direction and drags in the wrong direction.

m_AspectRatio = (float)width / (float)height;

If I create another matrix where the top and bottom are swapped like this
glm::ortho(orthoLeft, orthoRight, orthoTop, orthoBottom, (float)m_OrthographicNear, (float)m_OrthographicFar);
Then it works

It also works if I swap the projection matrices around.  So the top and bottom for ImGuizmo has to be the opposite of what's used for the engine.


Different tensor contexts in nlp.optimizer.lamb

Description
In the update() function in lamb.py:
# preprocess grad
   grad *= self.rescale_grad
   if self.clip_gradient is not None:
       grad = clip(grad, -self.clip_gradient, self.clip_gradient)

The rescale_grad should be as_in_context(grad.context)? Otherwise it will raise illegal memory access in multi-gpu training
Error Message
(Paste the complete error message, including stack trace.)
To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
(Paste the commands you ran that produced the error.)

What have you tried to solve it?

Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python

# paste outputs here

Since mxnet has lamb optimizer available in 1.6, we shall just reuse that one and remove the one in gluonnlp.

Related: https://github.com/dmlc/gluon-nlp/issues/1019


Double click a username in chat to reply to him in chat

Make it so you can double click a user in chat to reply.
Scenario:
Double click Arnold
Make chat enter "@Arnold, "type stuff here""

each method described here so far works, but the one mentioned by 23rd is the one closest to your feature request. so I will assume this already satisfies your needs. if not, please feel free to open another issue describing what's lacking in the right-click feature.

Ah, sorry. My lack of knowledge.


Add high school Amal Shakim Nahariya

Institution/School Name
Amal Shakim Nahariya
Instiution/School Website
http://nb.amalnet.k12.il/
Email Users
Please place an x between the square brackets if yes
[ x] Students
[ x] Academic/Teaching Staff
Other/Support Staff
Alumni
Education Levels
Please place an x between the square brackets if yes
Post-graduate research
Graduate School
[] College (University) or Undergraduate School or equivalent
Community College or equivalent
[ x] High School or equivalent
Elementary School or equivalent

@OfirIsakov Pull request merged. Thank you!
On the side note I would suggest your school administration to modify a content of its presumably English homepage. Otherwise, it looks odd: http://nb.amalnet.k12.il/דף-אנגלית/


[Event Request] Application “Tests-ERM”, Codeunit 134395 "ERM Document Totals UT"

[Event Request] Application “Tests-ERM”, 134395 "ERM Document Totals UT"
Could you please insert the OnTestInitialize Event at the beginning of the procedure PurchaseUpdateTotalsControlsRecalculatesIfTheRecordIsChanged?

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Invalid URL 'view_html': No schema supplied. Perhaps you meant http://view_html?

When i try to list infos from a specific course i get the following error
Traceback (most recent call last):
File "./udemy-dl.py", line 892, in
main()
File "./udemy-dl.py", line 657, in main
udemy.ListDown()
File "./udemy-dl.py", line 258, in ListDown
sz,in_MB    = self.get_filsize(url)
File "./udemy-dl.py", line 182, in get_filsize
req             = get(url, stream=True)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 494, in request
prep = self.prepare_request(req)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 437, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/models.py", line 305, in prepare
self.prepare_url(url, params)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/models.py", line 379, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'view_html': No schema supplied. Perhaps you meant http://view_html?
i have this configuration file:
{
"username" 		: "[my account]",
"password" 		: "[my password]",
"resolution" 		: "1080",
"output" 		: ""
}
script execution:
python3 ./udemy-dl.py  -l https://www.udemy.com/mastering-ansible/learn/v4/

@wkremser good catch will fix it ASAP 👍


Updated README to include docker binary as per youtube video.

Noticed the Youtube video described mounting in the docker binary into the container, without this step I was not able to start/stop or create containers.

This is an old video, we should do a new one.
It should not be necessary to mount the docker binary anymore, the binary is added in the Dockerfile:
ADD ./docker_linux_x64/docker /bin/docker
It's far from being perfect though, this binary will work if you have the last version of Docker (1.9) installed on your host. We have to check other cases, and install the right binary.
But what you're describing works also, because it overrides the binary.
The path won't always work though, depending on your environment the binary may be elsewhere.
With Docker machine, I used to do something like:
-v machine ssh $(machine active) which docker:/usr/local/bin/docker

This makes sense, I am running Docker 1.8.2.
Should the documentation present 2 different (version depending) run arguments, with and without the binary mount?

To make it easier, we could GET /version from /var/run/docker.sock and install the right client in start.sh, depending on the answer.

This PR will be rejected, because we don't think that mounting the docker binary from the host is a good solution. (as you saw in the video, we used to do that, though)
We will keep the latest docker binary in the docker image, but prefix the API calls with the version of the daemon, as it is supported now.
I am creating an issue. :)

#21 has been created to address this. Closing PR, thanks @chrisdaish!


About Waymo's pose

After visualize the waymo's training pose, here we can see, y axis is the car driving direction. If  in my dataset  z axis is the car driving direction, do I need transform the pose same as waymo training pose?

Thanks for your attention. If you are an expert on NeRF, you only need to keep the following setups consistent:
(1) Loading the camera poses.
(2) Parse the poses to rays.
(3) Set render poses.
But in my point of view, the car should run in the xy plane because normally z-axis is pointing to the sky. This is only a convention.

Thanks a lot. You are right, the car actually drives in x axis direction. But the transformed training dataset is in y axis. Anyway, we need keep the pose and ray consistent.


Bypass segfaults by importing psi4 last

This builds a lib with this linkage:
quantum_python/core/core.cpython-35m-darwin.so:
	@rpath/libmkl_rt.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libiomp5.dylib (compatibility version 5.0.0, current version 5.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
	@rpath/./libstdc++.6.dylib (compatibility version 7.0.0, current version 7.21.0)
	/Users/loriab/linux/miniconda3/envs/idp35gcc52p4/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

Its finding the libs it needs even w/o an rpath set, so I've left that alone. But if there are problems, one can be added.

Codecov Report

Merging #1 into master will decrease coverage by 0.89%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master       #1     +/-   ##
=========================================
- Coverage    85.1%   84.21%   -0.9%
=========================================
  Files           8        8
  Lines         282      285      +3
=========================================
  Hits          240      240
- Misses         42       45      +3

Impacted Files
Coverage Δ

setup.py
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Anchor Regions (Hierarchical anchors)

Allow hierarchical anchor structures by defining anchor regions.
Thoughts:

"Region anchors" would act nearly identical to regular anchors, however they will require an end tag
Would act like a collapsible list in the sidebar
Defined like any other anchor, except they will use an additional boolean property

The presence of this property would require another property to define the "end tag"

(Inspired by VS Marketplace Review by Post Bologny)

Working demo


migrate to voxpupuli

I'm unsure what to do with the author string.  Should it be updated to or left as it was when the module was donated?

I think we can document this in the readme, see for example:
https://github.com/voxpupuli/puppet-logstash/pull/420/files

I'm unsure what to do with the author string. Should it be updated to or left as it was when the module was donated?

I'd change it to Vox as a sign it is owned by the whole community.


More Types Added

I've added more types. I did run into an issue with the std::sync::Arc type. It passes the unit test, but I get this error when I try to run my tests:
error[E0599]: no function or associated item named `type_name` found for type `std::sync::Arc<i32>` in the current scope
   --> src/lib.rs:405:25
    |
405 |             Arc::<i32>::type_name();
    |             ------------^^^^^^^^^
    |             |
    |             function or associated item not found in `std::sync::Arc<i32>`
    |
    = note: the method `type_name` exists but the following trait bounds were not satisfied:
            `&mut std::sync::Arc<i32> : typename::TypeName`
            `&std::sync::Arc<i32> : typename::TypeName`

This is a runtime error.
I'm reporting this here because it didn't seem to make sense to open an issue for code the repo didn't have.

Could you share a complete code snippet which produces this error? I cannot reproduce it with your fork, the code in this PR seems fine.

Here is a link to my code. On line 496 I have a comment out test. If you uncomment and run it, it will fail.

Thanks, I was able to reproduce it. The issue seems to be an outdated Cargo.lock in your repository. It is still using an older commit a974111 for your typename fork which does not contain the Arc impl.
Should be fixed once you run cargo update -p typename to update your Cargo.lock - or by pinning the newer commit manually in your Cargo.toml with rev = "26c0c8f5" instead of branch = "master".
Other than that, it seems to work without issues now, I'm going ahead and will merge this. Thank you! :)


Check viability of overriding lifespan dependencies

I'm not sure if this should be a separate issue or not, but non-lifespan dependencies can't be overridden either (if a lifespan dependency is using them).


Add SNMP Corecheck Autodiscovery e2e tests

What does this PR do?
Add SNMP Corecheck Autodiscovery e2e tests
Motivation
https://github.com/DataDog/datadog-agent/pull/8996
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

/azp PR Changes

/azp run PR Changes

/azp run PR Changes


Fails on windows-2019 runners

When I do runs-on: windows-latest it works, but I'm working on a project (realm-js) that builds on windows-2019. The ccache action fails there with:
Error: Unable to locate executable file: sudo. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
I think it's not detecting that it's on a windows platform, and thinks it's on linux.
I made a small demo of the issue at https://github.com/amtep/nonogram-qt/runs/7838787691

Thanks for the report. Can you try to contribute a fix?

No sorry, I'm stumped. I think it's that process.platform call, but I'm not sure and I have no idea why it would return the wrong thing anyway. I also have zero experience with TypeScript.

If I run with the latest (untagged) commit of this action, it works :)
So no code change is needed, just a new release.

Related to this, if I use<EMAIL_ADDRESS>i can build on windows 2019.
However, if i use hendrikmuhs/ccache-action@v1, i cant.
This makes me think something isn't set up with how github does version checks for "major releases".

Not working: https://github.com/TheOpenSpaceProgram/osp-magnum/runs/8295052947
Working: https://github.com/TheOpenSpaceProgram/osp-magnum/runs/8295308784


Will this one day be updated for Node 20?

I have forked this project and made it work on Node 22.1.
My version has significant differences (and is not retro-compatible). It uses YAML instead of XML, the CSS was tweaked quite a bit and most of the frontend js is gone.
You might want to check it out, it's over there if you are interested: https://github.com/Tsukumogami-Software/milou

I will give a look 😄


Xam.Plugin.Geolocator making application crash on Android version 7

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin:4.0.1
Device Tested On: Google nexus
Simulator Tested On:
Version of VS: 7.1
Version of Xamarin:
Versions of other things you are using:
Steps to reproduce the Behavior
This plugin works smoothly upto android version 6 but for 7 it is making the app to crashing stating a task was cancelled.I am checking for all the relevant permissions beforehand.
Expected Behavior
Actual Behavior
Code snippet
var locator = CrossGeolocator.Current;
		locator.DesiredAccuracy = 50;
		var position = await locator.GetPositionAsync(TimeSpan.FromSeconds(3));

		if (position == null)
		{
			UserDialogs.Instance.Alert("App needs location to enabled to proceed further", "Alert", "Ok");

			return;
		}

Screenshotst

Did you put this in a try catch? it is possible it throws an exception.


Check if vega package, mimes are used in execution

For #10812
Helps determine whether users only open notebooks that have Vega Notebook Widgets or whether they actually try to run such code and expect the outputs to work.

Codecov Report

Merging #11401 (2186b64) into main (ca9824a) will increase coverage by 0%.
The diff coverage is 97%.

@@          Coverage Diff           @@
##            main   #11401   +/-   ##
======================================
  Coverage     63%      63%
======================================
  Files        476      476
  Lines      33950    33942    -8
  Branches    5500     5500
======================================
+ Hits       21533    21540    +7
+ Misses     10361    10347   -14
+ Partials    2056     2055    -1

Impacted Files
Coverage Δ

src/telemetry.ts
6% <ø> (ø)

src/standalone/import-export/importTracker.node.ts
87% <96%> (+1%)
:arrow_up:

...s/jupyter/jupyterCellOutputMimeTypeTracker.node.ts
90% <100%> (+<1%)
:arrow_up:

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

src/platform/common/utils.ts
79% <0%> (-2%)
:arrow_down:

src/standalone/api/kernelApi.ts
75% <0%> (-2%)
:arrow_down:

src/notebooks/controllers/kernelRanking/helpers.ts
58% <0%> (-1%)
:arrow_down:

src/platform/msrCrypto/msrCrypto.js
19% <0%> (+<1%)
:arrow_up:

src/kernels/raw/launcher/kernelProcess.node.ts
73% <0%> (+<1%)
:arrow_up:

... and 5 more


Fix the state bug of cluster driver when active it.

Problem:
After I activate the cloud driver, the status of the driver becomes
Active immediately while the driver's binary is still downloading. It
should show the Downloading status instead of Active.
Solution:
Update the status of kontainer driver when download the bin file.
Issue:
https://github.com/rancher/rancher/issues/18211

Closing this PR in favor of https://github.com/rancher/rancher/pull/18258


Add handshake between toolkit and app

Make sure that toolkit verifies that the CDK version the app is used is compatible with the toolkit. This should probably be just some version metadata information emitted as output

This is done


ats-metadata/A.22.IR33.IR34.ds.access.use

The check if the element is not empty is missing. In the test method add “If so, check if it is not an empty characterstring”.

Resolved by commit 01a52ee6fb99162e451e2e314a133f3248aac481


Websocket on Windows

Does curl-impersonate support websocket on Windows?

Would love to know if anyone got this to build on win.  All the previous other githubs seem abandoned.  Don't mind throw some bucks to someone.

Here, we have windows build for both amd64 and i686, with websocket and latest chrome versions.

This is excellent @yifeikong .
Is there anyway to send data through the websocket?  I need to send 2 messages to "auth".

It's pretty standard curl stuff, see the docs for detailed explanation.
If you are using python, we have a dedicated binding for curl-impersonate.

I’m actually using C#.  Using cmd to start the process then read the results.  Is there anyway to do that?
On Feb 2, 2024, at 9:15 PM, Yifei Kong @.***> wrote:

It's pretty standard curl stuff, see the docshttps://everything.curl.dev/helpers/ws for detailed explanation.
If you are using python, we have a dedicated bindinghttps://github.com/yifeikong/curl_cffi/tree/main/examples/websockets for curl-impersonate.
—
Reply to this email directly, view it on GitHubhttps://github.com/lwthiker/curl-impersonate/issues/208#issuecomment-1925022610, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF6S7HOGDUNLCYYRT7LJ5H3YRWMT7AVCNFSM6AAAAAA7MBU2KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGAZDENRRGA.
You are receiving this because you commented.Message ID: @.***>

I'm not sure how to do it via calling the curl command, but you can definitely do this with a c# libcurl binding.


[Feature Request][python]: Better typing support for TimestampedValue

What would you like to happen?
Currently transforms that return a TimestampedValue need to be typed as plain "TimestampedValue" rather than generic "TimestampedValue[T]" so all underlying information about what type is being wrapped is lost.
Issue Priority
Priority: 3
Issue Component
Component: sdk-py-core

Sorry - yes that is a good rephrasing.

.take-issue