Is there any way to get the container setting information of Web App for Containers?

Using .update() can update the setting, and how to get the container setting information of Web App for Containers

@jdneo What info are you looking for? You can call .linuxFxVersion() on the web app and get the container image and tag.


Allow code to mutate away loop in barcode if it is causing problems

Currently, if desired barcode contains a stem-loop a fix sequence is used for the loop. Currently when the program has problems finding a barcode that matches the desired structure it will

Reduce probability thresholds 3 times
After those three times, if there is a polyA hang will allow this to mutate

So far these two steps have solved our problems, but if there is a case were the loop sequence is interacting heavily with the sequence of interest we could add
3. After 2 more times, allow loop to mutate.

In fact some code already prepared and commented out for this purpose
# new_loop = _get_random_barcode(num_bp=0, num5hang=len(loop),loop='').seq
# uid = new_hang+uid[num5polyA:num5polyA+num_bp]+new_loop+uid[num5polyA+num_bp+len(loop):]


Need examples for benchmarking

Hi!
We're evaluating the performance of Tesla T4.  ODTK  seems not designed for hardware benchmarking.   The FPS numbers listed in README.md are way too low. I expect to see fps figures near the offical announcment
https://developer.nvidia.com/deep-learning-performance-training-inference
Can you add some odtk infer usage examples for benchmarking scenario?
Thanks

We already provide numbers for benchmarking in the odtk infer. What hardware benchmarking are you referring to?
The link that you provide and the results in that page are completely different from what this repository provides. RetinaNet is different object detection framework as compared to any SSD-MobileNet network in that page. Moreover, please check out the input size used in inference, large inputs have lower inference throughputs.


Fix SSL/TLS hostname-not-valid error

As I detailed in #1 I rewrote the HTTPRequest class using the native java.net.HttpsURLConnection because the Apache Http lib doesn't support SNI and because starting from Android 5.1 all the org.apache.http classes are being deprecated.
Not supporting SNI means that when your Zulip instance is hosted on a virtualhost the TLS auth fails even if the certificate is valid and trusted.

Automated message from Dropbox CLA bot
@ff-, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here and update the thread so we can consider merging your code.

I signed the CLA.

@ff-  Since we moved over to OKHttp, this patch is largely obsolete.  If it's still a problem, please open an issue.
Thanks for your work on this.


esxi/sysprep: invoke /bin/sh instead of /bin/bash

There is no ~spoon~ bash on the esxi installer... this breaks everything
Description
Reverts the sh -> bash
Why is this needed
2021/11/10 16:27:42 packer-builder-qemu plugin: [ERROR] Remote command exited with '127': chmod +x /tmp/script_513.sh; PACKER_BUILDER_TYPE='qemu' PACKER_BUILD_NAME='qemu' PACKER_HTTP_ADDR='<IP_ADDRESS>:8613' PACKER_HTTP_IP='<IP_ADDRESS>' PACKER_HTTP_PORT='8613'  /tmp/script_513.sh

Is the reported error 127 is when a command can't be found.
Fixes: #
How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:
I have:

[ ] updated the documentation and/or roadmap (if required)
[ ] added unit or e2e tests
[ ] provided instructions on how to upgrade

Closing as this is fixed in another PR.


integrity problem in published version net5.0

(index):1 Failed to find a valid digest in the 'integrity' attribute for resource 'http://**********/_framework/Serialize.Linq.dll' with computed SHA-256 integrity 'VsDG9v5hAIf37tRPnT1Nqbu2cE9gPYyP5czUixcnYl8='. The resource has been blocked.
Sometimes the Newtonsoft.Json has the same error.
Environment: WASM, host by httpsys as a windows service.
Only encountered in published version,
It's an old problem. I solve this problem by using the source code of this project. Change the targetframework to net5.0, and clean the solution, delete all the bin and obj directories. Update all the package. It works every time. Maybe it's the blazor problem. Before Blazor fix it, How about separate this project into net2.1 and net5.0 temporarily.

I have had this problem but very sporadically, also in other unrelated Blazor projects. I don't think this has anything to do with multitargeting, however possibly trimming.  Do you see it all the time? I've always solved it simply by flushing the application cache in chrome, but occasionally I have had to resolve to deleting bin/obj like you say.

I have had this problem but very sporadically, also in other unrelated Blazor projects. I don't think this has anything to do with multitargeting, however possibly trimming.  Do you see it all the time? I've always solved it simply by flushing the application cache in chrome, but occasionally I have had to resolve to deleting bin/obj like you say.

Yeah, each time I tried to use nutget, the same problem in published the version.Then solved the problem as I said. Currently It's about two packages,newtonsoft.json and serialize.linq. I would have the same issue if I don't update the version of serialize.linq. I'm not bothered right now,because this project is open source.And Blazor is improving, need more testings.

Yeah, each time I tried to use nutget, the same problem in published the version.Then solved the problem as I said. Currently It's about two packages,newtonsoft.json and serialize.linq. I would have the same issue if I don't update the version of serialize.linq. I'm not bothered right now,because this project is open source.And Blazor is improving, need more testings.

I'm closing this for now, feel free to open of there's anything to add to the discussion


Rename/Move the class representing RegExp

Bridge project currently contains two Regex classes:

System.Text.RegularExpressions.Regex

Bridge.Text.RegularExpressions.Regex

The 1st one (System.Text.RegularExpressions.Regex) covers .NET Regex class functionality, so it should be kept as is.
However, the 2nd class (Bridge.Text.RegularExpressions.Regex) represents JavaScript RegExp API and it'd better to rename it to avoid confusion between these two classes. Probably the location of Bridge.Text.RegularExpressions.Regex should be changed as well.
Expected
JavaScript RegExp is represented by the class named RegExp
Actual
JavaScript RegExp is represented by Regex class

The file Bridge.Text.RegularExpressions.Regex.cs should be moved to Bridge.Html5.RegExp.cs and that would also include moving into the Bridge.Html5 namespace.

@geoffreymcgill This means that users using Regex inside a Node application, would have to import (using) Bridge.Html5 which does not seem logical. I would suggest to add it to Bridge namespace since Regex is used both with browser and node

We have a Node specific package that will be available in conjunction with this Bridge 16.0 change, and the new package will not require Bridge.Html5.

@geoffreymcgill There is a Node package coming?! Thats awesome :)


[ZEPPELIN-5338]. Add logging prefix in interpreter.sh for easy diagnose

What is this PR for?
Currently, we have to change log4j.properties to get more output from script interpreter.sh in log4j output for diagnose. This PR is to add one trick: as long as the output is start with [INFO] in interpreter.sh, it will be redirected to log4j output.
What type of PR is it?
[ Improvement ]
Todos

[ ] - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-5338

How should this be tested?

CI pass

Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@cuspymd Any more comment ?

Will merge if no more comment


Trying to open dlangui/README.md leads to freeze

Opening (via example1) README.md file from dlangui repo leads to application freeze (it does not get re-rendered)
Linux with SDL2.

let me reproduce it

For me it's reproducible on Debian 8. Even if it's ok on the first run, the next trying leads to freeze.
This is console output before freeze:
2016-03-11 06:14:16.630 D  FileDialog.openDirectory(
2016-03-11 06:14:16.632 D  Creating SDL window
2016-03-11 06:14:16.632 I  Trying to create OpenGL
2016-03-11 06:14:16.634 I  Created successfully
2016-03-11 06:14:16.634 I  OpenGL is enabled
2016-03-11 06:14:16.634 D  SDLWindow.show()
2016-03-11 06:14:16.642 D  Loading image from file<EMAIL_ADDRESS>2016-03-11 06:14:16.643 D  Loading image from file<EMAIL_ADDRESS>2016-03-11 06:14:16.645 D  updateTexture for cache page - setting image
2016-03-11 06:14:16.748 D  updateTexture for cache page - setting image
2016-03-11 06:14:17.880 D  updateTexture for cache page - setting image
2016-03-11 06:14:18.391 D  updateTexture for cache page - setting image
2016-03-11 06:14:19.401 D  updateTexture for cache page - setting image
2016-03-11 06:14:20.415 D  FileDialog.onDialogResult:
2016-03-11 06:14:20.416 D  SDLWindow.close()
2016-03-11 06:14:20.417 I  Platform.closeWindow()
2016-03-11 06:14:20.434 I  windowMap.length=
2016-03-11 06:14:20.434 D  Destroying SDL window
2016-03-11 06:14:20.436 D  Destroying window
2016-03-11 06:14:20.437 W  SDL_WINDOWEVENT
2016-03-11 06:14:20.438 W  SDL_WINDOWEVENT
2016-03-11 06:14:20.439 W  SDL_WINDOWEVENT

I found that if I resize the window, the expected message box appears (FileOpen result). It seems like dialog is not drawn without resizing, but since it's modal, it makes parent window unresponsive.

Closing. Assuming it's fixed


i18n: #14359 - Added Croatian (hr) locale

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

@danijelh thanks for your pr. You also need update i18n.md in docs.

@ziyoung Yes of course. Sorry. I have pushed also doc changes.

问题依旧没解决。等想好之后再提吧。

@danijelh sorry for my fault.

@danijelh This branch has conflicts and please pull the latest code.


Image  does not appear on image cell until scrolled up

Hi ,
SDWebImageManager *manager = [SDWebImageManager sharedManager];
    [manager downloadImageWithURL:url1
                          options:0
                         progress:^(NSInteger receivedSize, NSInteger expectedSize) {
                             // progression tracking code
                         }
                        completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
                            if (image) {
                                // do something with image
                               msg.media= [NSData dataWithContentsOfURL:imageURL];
                            dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
                                 msg.thumbnail=image;
                                });
                            }else
                            {
                                msg.thumbnail=[UIImage imageNamed:@"user"];
                            }
                        }];

please help me.
Thank you..

try the demo project and let us know if you encounter the issue there.
maybe it has something to do with this?
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{

@mythodeia , Thank you for reply. In demo project working is fine. But here not working, actually we are developing chat app .whenever we have send image to user, its going with blank image and its shown after scrolling ..i don't know where i am mistake . please help me
Thank you

have you tried removing the custom global queue and using the main queue instead?
in order for everyone to provide assistance a demo project would be great if possible.


disconnecting without known identifier

Is it possible to disconnect from the device without an ID using cancelDeviceConnection? I just found out that while connected if I then wipe out all the app data on Android device and reopen the app the connection to the bluetooth device stays open and the only way to disconnect is to restart bluetooth device.

You can use manager.connectedDevices function call to get list of connected devices. Additionally when you define restoreStateIdentifier and restoreStateFunction inside BleManagerOptions, you can get list of connectied devices, when application launches.


Generated code for FromSqlRow, QueryId, AsExpression, SqlType derives creates clippy warning

clippy version: 0.0.212 (currently available with rustup on nightly)
warnings (for ruma-identifiers with --features diesel):
warning: this import is redundant
  --> src/event_id.rs:49:39
   |
49 | #[cfg_attr(feature = "diesel", derive(FromSqlRow, QueryId, AsExpression, SqlType))]
   |                                       ^^^^^^^^^^
   |
   = note: `#[warn(clippy::single_component_path_imports)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
   = note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

warning: this import is redundant
  --> src/event_id.rs:49:51
   |
49 | #[cfg_attr(feature = "diesel", derive(FromSqlRow, QueryId, AsExpression, SqlType))]
   |                                                   ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
   = note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

warning: this import is redundant
  --> src/event_id.rs:49:60
   |
49 | #[cfg_attr(feature = "diesel", derive(FromSqlRow, QueryId, AsExpression, SqlType))]
   |                                                            ^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
   = note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

warning: this import is redundant
  --> src/event_id.rs:49:74
   |
49 | #[cfg_attr(feature = "diesel", derive(FromSqlRow, QueryId, AsExpression, SqlType))]
   |                                                                          ^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
   = note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

[same thing for all other lines with these derive attributes...]

Checklist

[x] I have already looked over the issue tracker for similar issues.
[ ] This issue can be reproduced on Rust's stable channel. (but I really hope it will be looked at anyways)

As per our issue guide lines I'm closing this issue as this does not happen on stable rust. If this comes up there we may fix that in a future version, otherwise I don't see any priority in fixing that now. (Because that may break old supported rust version. That think is there for a reason if I remember correctly. On the other hand it could be that the currently minimal supported rust version does not need this any more).
That said: If someone submits a PR fixing this warnings we will not reject it.

Pretty sure only versions without the current import rules are affected, which should be around 1.33. I'll try to get a PR up soon.


Improve formatting and documentation

Hi, thanks for the good work on this crate!
I'm beginning with rust and was trying to achieve a simple command line tool to copy a string to the clipboard, and saw your clipboard crate.
I encountered a couple of errors when compiling, and using rustfmt seemed to fix these. This is what this PR mostly does.
After fixing the code format and running your example, I had another error:
error: the type of this value must be known in this context

This error was pointing to ctx.set_contents(some_string.to_owned());, and after a few tries I managed to have something that works, without really knowing if it's the right way of doing it. I did an example in examples/hello_world.rs.
Cheers!

Can you cherry-pick the last commit from https://github.com/aweinstock314/rust-clipboard/tree/patch-1 and push it to your patch-1 to update this PR? It looks like I had forgotten to implement ClipboardProvider for WindowsClipboardContext, and the example you added is now (correctly) exercising that failure on Appveyor CI.

Disregard that, I figured out how to merge both of our changes while keeping it within one PR.


Don't Merge! Regression PR perf testing with metadata validation

Docs Build status updates of commit 6b8460f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

developer/TestingPullRequest.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


push constants with a single type don't work

The following 3 tests all fail:

#[test]
fn push_constant_single_vulkan() {
    val_vulkan(
        r#"
#[derive(Copy, Clone)]
pub struct ShaderConstants {
    pub time: f32,
}
#[allow(unused_attributes)]
#[spirv(fragment)]
pub fn main(constants: PushConstant<ShaderConstants>) {
    let _constants = constants.load();
}
"#,
    );
}

thread 'test::basic::push_constant_single_vulkan' panicked at 'Vulkan validation failed:
invalid id:0:0 - PushConstant OpVariable <id> '2[%constants]' has illegal type.
From Vulkan spec, section 14.5.1:
Such variables must be typed as OpTypeStruct, or an array of this type
  %constants = OpVariable %_ptr_PushConstant_float PushConstant
', crates/spirv-builder/src/test/mod.rs:109:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d32c320d7eee56706486fef6be778495303afe9e/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/d32c320d7eee56706486fef6be778495303afe9e/library/std/src/panicking.rs:435:5
   2: spirv_builder::test::val_vulkan
             at ./src/test/mod.rs:109:9
   3: spirv_builder::test::basic::push_constant_single_vulkan
             at ./src/test/basic.rs:233:5
   4: spirv_builder::test::basic::push_constant_single_vulkan::{{closure}}
             at ./src/test/basic.rs:232:1
   5: core::ops::function::FnOnce::call_once
             at /home/ashley/.rustup/toolchains/nightly-2020-12-11-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
   6: core::ops::function::FnOnce::call_once
             at /rustc/d32c320d7eee56706486fef6be778495303afe9e/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

#[test]
fn push_constant_single_block_vulkan() {
    val_vulkan(
        r#"
#[derive(Copy, Clone)]
#[allow(unused_attributes)]
#[spirv(block)]
pub struct ShaderConstants {
    pub time: f32,
}
#[allow(unused_attributes)]
#[spirv(fragment)]
pub fn main(constants: PushConstant<ShaderConstants>) {
    let _constants = constants.load();
}
"#,
    );
}

error: `#[spirv(block)]` can only be used for `Sized` aggregates, but `ShaderConstants` has `Abi::Scalar(Scalar { value: F32, valid_range: 0..=4294967295 })`
   --> /home/ashley/projects/rust-gpu/crates/spirv-std/src/storage_class.rs:57:1
    |
57  | / storage_class! {
58  | |     /// Graphics uniform memory. OpenCL constant memory.
59  | |     ///
60  | |     /// Shared externally, visible across all functions in all invocations in
...   |
202 | |     #[spirv(physical_storage_buffer)] writeable storage_class PhysicalStorageBuffer;
203 | | }
    | |_^
    |
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

#[test]
fn push_constant_value_vulkan() {
    val_vulkan(
        r#"
#[allow(unused_attributes)]
#[spirv(fragment)]
pub fn main(constants: PushConstant<f32>) {
    let _constants = constants.load();
}
"#,
    );
}

---- test::basic::push_constant_value_vulkan stdout ----
thread 'test::basic::push_constant_value_vulkan' panicked at 'Vulkan validation failed:
invalid id:0:0 - PushConstant OpVariable <id> '2[%constants]' has illegal type.
From Vulkan spec, section 14.5.1:
Such variables must be typed as OpTypeStruct, or an array of this type
  %constants = OpVariable %_ptr_PushConstant_float PushConstant
', crates/spirv-builder/src/test/mod.rs:109:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d32c320d7eee56706486fef6be778495303afe9e/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/d32c320d7eee56706486fef6be778495303afe9e/library/std/src/panicking.rs:435:5
   2: spirv_builder::test::val_vulkan
             at ./src/test/mod.rs:109:9
   3: spirv_builder::test::basic::push_constant_value_vulkan
             at ./src/test/basic.rs:270:5
   4: spirv_builder::test::basic::push_constant_value_vulkan::{{closure}}
             at ./src/test/basic.rs:269:1
   5: core::ops::function::FnOnce::call_once
             at /home/ashley/.rustup/toolchains/nightly-2020-12-11-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
   6: core::ops::function::FnOnce::call_once
             at /rustc/d32c320d7eee56706486fef6be778495303afe9e/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I think it's alright for the 3rd one to fail, using PushConstants with primitives seems a little dodgy to me, but it'd be nice to fix either test 1 or 2.

Did you try #[repr(C)]? Yes, Rust will convert single and double field structs to scalar and scalar pairs.

Did you try #[repr(C)]? Yes, Rust will convert single and double field structs to scalar and scalar pairs.

If you add #[repr(C), you now get:
error: Cannot cast between pointer types
  --> src/lib.rs:17:22
   |
17 |     let _constants = constants.load();
   |                      ^^^^^^^^^^^^^^^^
   |
   = note: from: *{Function} struct ShaderConstants { time: f32 }
   = note: to: *{Function} u32

If you add #[repr(C), you now get:
error: Cannot cast between pointer types
  --> src/lib.rs:17:22
   |
17 |     let _constants = constants.load();
   |                      ^^^^^^^^^^^^^^^^
   |
   = note: from: *{Function} struct ShaderConstants { time: f32 }
   = note: to: *{Function} u32

I think this is a duplicate of #362 since you mention using Vulkan, and the original error is the same as what's mentioned there.

I think this is a duplicate of #362 since you mention using Vulkan, and the original error is the same as what's mentioned there.

Copying in some discussion from discord, the reason it goes from f32 to u32 in #[repr(C)] is that the call to load() has argument ABI PassMode::Cast. The fix is likely to create and hook a rustc query and revert the ABI back to PassMode::Direct or whatever.

Copying in some discussion from discord, the reason it goes from f32 to u32 in #[repr(C)] is that the call to load() has argument ABI PassMode::Cast. The fix is likely to create and hook a rustc query and revert the ABI back to PassMode::Direct or whatever.

Copying in some discussion from discord, the reason it goes from f32 to u32 in #[repr(C)] is that the call to load() has argument ABI PassMode::Cast. The fix is likely to create and hook a rustc query and revert the ABI back to PassMode::Direct or whatever.

Copying in some discussion from discord, the reason it goes from f32 to u32 in #[repr(C)] is that the call to load() has argument ABI PassMode::Cast. The fix is likely to create and hook a rustc query and revert the ABI back to PassMode::Direct or whatever.

Reported https://github.com/EmbarkStudios/rust-gpu/issues/373 for the failure about casting to u32, which is unrelated

Reported https://github.com/EmbarkStudios/rust-gpu/issues/373 for the failure about casting to u32, which is unrelated


It is possible to delete contribution payments that are payed via direct debit

Het is mogelijk contributie-betalingen van leden te verwijderen die via automatische incasso zijn betaald, terwijl dat eigenlijk via de streeplijst-incasso-frontend moet gebeuren.
It is possible to delete contribution payments that have been payed via direct debit, even though this should happen through the cookie-corner-direct-debit-frontend.

Removing a contribution-payment should only be possible if no withdrawal has been attempted or if all withdrawals of the contribution payment have been "reversed" (gestorneerd).


Add JDK11 to the build matrix mvn-verify-check at least for one spark version

Build matrix supports up to 256 jobs https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
We could make jdk version an official dimension in the build matrix or have some ad-hoc entry for just one spark version.
The point is to prevent regressions like #6692 with a short PR check

cc @YanxuanLiu to help w/ this one, thanks~
I think initially we do not have to run it for all versions (matrix), simply add one step to do a sanity check would be fine~

@sameerz if we were to cover only some shims for JDK11 which one should be prioritized for our users?

Let's test Spark 3.1.2 and 3.2.1.  If we can add one more, then let's test with Spark 3.3.1, when it is available.


Clarify documentation

Only mention singly linked list and that they may be used to implement
LIFO stacks. At this point there is no need to mention things like
persistent data structures and immutability.

This pull request is to be paired with exercism/xruby#252

Yes, much better! Thanks :)


using for_each instead of this module?

Hi,
I tried your module out and it helped me understand Terraform modules. So thank you.
As I got further along I realized I could just use for_each and locals instead.
Have you considered doing that? Perhaps I was using this module for a different purpose than you intended.
https://developer.hashicorp.com/terraform/language/meta-arguments/for_each
Here's my example of creating 2 containers using for_each with the out of the box bpg/proxmox provider:
terraform {
  required_providers {
    proxmox = {
      source = "bpg/proxmox"
    }
  }
}

locals {
  container_template_file     = "http://download.proxmox.com/images/system/debian-12-standard_12.2-1_amd64.tar.zst"
  container_template_checksum = "761b3b52ba296c3e396b79f89bdb30fed121d2353a641f84d633a87897ed6d19"
  container_distro            = "debian"
  network_bridge              = "vmbr0"
  node_name                   = "proxmox1"
  containers = {
    "test1" = {
      ram_MiB                 = 4096
      swap_MiB                = 512
      vm_id                   = 1000
      cpu_cores               = 2
      container_template_id   = proxmox_virtual_environment_file.container_template.id
    }
    "test2" = {
      ram_MiB                 = 8192
      swap_MiB                = 0
      vm_id                   = 1001
      cpu_cores               = 4
      container_template_id   = proxmox_virtual_environment_file.container_template.id
    }
  }
}

resource "proxmox_virtual_environment_file" "container_template" {
  content_type = "vztmpl"
  datastore_id = "local"
  node_name    = "proxmox1"
  source_file {
    path     = local.container_template_file
    insecure = true
    checksum = local.container_template_checksum
  }
}

resource "proxmox_virtual_environment_container" "proxmox_lxc" {
  description = "Managed by Terraform"
  for_each = local.containers

  node_name   = local.node_name
  vm_id       = each.value.vm_id
  unprivileged  = true

  initialization {
    hostname = each.key
    ip_config {
      ipv4 {
        address = "dhcp"
      }
    }

    user_account {
      keys = [
        trimspace(tls_private_key.lxc_container_key.public_key_openssh)
      ]
      password = random_password.lxc_password.result
    }
  }

  cpu {
    architecture = "amd64"
    cores        = each.value.cpu_cores
  }

  memory {
    dedicated = each.value.ram_MiB
    swap      = each.value.swap_MiB
  }

  disk {
    datastore_id = "local-zfs"
    size         = "10"
  }

  network_interface {
    name   = "veth0"
    bridge = local.network_bridge
  }

  operating_system {
    template_file_id = proxmox_virtual_environment_file.container_template.id
    type             = local.container_distro
  }
}

resource "random_password" "lxc_password" {
  length           = 16
  override_special = "_%@"
  special          = true
}

resource "tls_private_key" "lxc_container_key" {
  algorithm = "RSA"
  rsa_bits  = 2048
}

output "container_password" {
  value     = random_password.lxc_password.result
  sensitive = true
}

output "container_private_key" {
  value     = tls_private_key.lxc_container_key.private_key_pem
  sensitive = true
}

output "container_public_key" {
  value = tls_private_key.lxc_container_key.public_key_openssh
}

Hey, glad I could help!
I haven't revisited this in a long time - when I wrote this initially I probably didn't have a good grasp of counts and for_each at least compared to now.
What you've proposed works fine, however it retains the complexity where the user would need to write and maintain all of those resources themselves.
In my mind, a module is used to abstract all of the individual components and return to the user a sane-default resource, and I use the variable inputs extensively to validate the inputs that ProxMox is documented as having.
With modules, you can source it from multiple places, in one repo or many, without having to duplicate all the 7 or so resources. If you need to update something in one of the resources, instead of updating it everywhere you've copied the stack of resources, you'd just need to update the module at the source for all the usages to get the update.
So, with your way it works, especially if you need more control over specific resources, but if you had a simple use-case, you could call my module with just the 6 inputs.


lapack/gonum: add Dtgsy2 and its test

Seeking to solve #1651.
At the time of making this PR the NoTrans case passes only for n,m pairs: (1,1), (2,2),(3,1),(1,3). I've compared with the reference line-by-line a few times already and there is no detectable difference. Any guidance would be welcome.

@soypat Do you still need the generalized eigenvalue solver? If not, I'd prefer to close this PR, especially if you can't make the test pass with confidence.

@vladimir-ch @kortschak
I've debugged this DTGSY2 implementation side-by side with LAPACK's version for 1-dimensional matrices and am getting identical results for ijob=2 though the tests fail in gonum. I think that may be down to what ijob != 0 implies. According to documentation in  Dtgsy2:

Dtgsy2 also (ijob >= 1) contributes to the computation in Dtgsyl of an upper bound on the separation between to matrix pairs. Then the input (A, D), (B, E) are sub-pencils of the matrix pair in Dtgsyl. See Dtgsyl for details.

Maybe we should defer testing of ijob != 0 to Dtsyl's implementation?

So I've tried Dtgsyl  with matrix sizes of 4x4 and ijob==2 and I am getting identical results with LAPACK. Dtgsyl is calling Dtgsy2 in what test consider failure conditions, so I'm thinking maybe there's an implementation detail that we are not considering in tests.

Codecov Report
Patch coverage: 54.12% and project coverage change: -0.82% :warning:

Comparison is base (93223b4) 74.00% compared to head (5a55c3e) 73.19%.

:exclamation: Current head 5a55c3e differs from pull request most recent head b3e1f37. Consider uploading reports for the commit b3e1f37 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1741      +/-   ##
==========================================
- Coverage   74.00%   73.19%   -0.82%
==========================================
  Files         526      516      -10
  Lines       63210    61249    -1961
==========================================
- Hits        46778    44829    -1949
- Misses      13854    13905      +51
+ Partials     2578     2515      -63

Files Changed
Coverage Δ

lapack/gonum/dtgsy2.go
54.12% <54.12%> (ø)

... and 275 files with indirect coverage changes

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

Closing in favor of https://github.com/gonum/gonum/pull/1891


PARENT_NICK is not defined

LeanEngine: /Comment/afterSave: 500: ReferenceError: PARENT_NICK is not defined
STDERR
at eval (eval at  (/home/leanengine/app/utilities/send-mail.js:40:45), :1:385)
STDERR
at Object.exports.notice (/home/leanengine/app/utilities/send-mail.js:40:24)
STDERR
at sendNotification (/home/leanengine/app/cloud.js:10:14)
STDERR
at /home/leanengine/app/cloud.js:44:12
STDERR
at err (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:356:23)
STDERR
at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:354:10)
STDERR
at Promise (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:249:7)
STDERR
at callClassHook (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:237:10)
STDERR
at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:104:16)
STDERR
at err (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:356:23)
STDERR
at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:354:10)
STDERR
at /home/leanengine/app/node_modules/leanengine/lib/leanengine.js:86:5
STDERR
at call (/home/leanengine/app/node_modules/connect/index.js:239:7)
STDERR
at next (/home/leanengine/app/node_modules/connect/index.js:183:5)
STDERR
at next (/home/leanengine/app/node_modules/connect/index.js:161:14)
STDERR
at /home/leanengine/app/node_modules/leanengine/middleware/leancloud-headers.js:82:18

请问是否有自定义邮件通知模板？（MAIL_SUBJECT，MAIL_TEMPLATE等环境变量）

发现问题了，我在博主通知模板中用了PARENT_NICK等不可用变量。


Automatic message

When we phrase the first answer, we should inform the user that manual answers can take up to 24 to 72 hours and the user should come back to the chat in the next days.

This can be done with automatic Zammad responses with triggers.


Disable SSL certificate verification

How can I change guzzle options? I need set SSL certificate verify to false.

Sorry for taking sooooooo long to reply to this.
If you take a look at this method in the Guzzle client https://github.com/guzzle/guzzle/blob/master/src/Client.php#L158 you'll see you can set defaults.
So in your case you should be able to do something like:
new GuzzleRunner(new Client(['verify' => false]), new GuzzleUrlBuilder())

Hope that will help. Again sorry for the really late reply.


Restore CDN prefix functionality

Describe the solution you'd like
I would like to see the ability to customize URL prefixes restored, as it would make it easier to work with CDNs.
Type of feature
User Experience (UX)
Additional context
0.22.0

Maybe duplicated with https://github.com/usememos/memos/issues/3425


[stable/newrelic-infrastructure] add a conditional value for installing the privileged/unprivileged version

Signed-off-by: Daniel Fernandez<EMAIL_ADDRESS>
What this PR does / why we need it:
Add a 'privileged' value that allows installing the integration in privileged or unprivileged mode (as a standard user instead of root)
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/lgtm

/ok-to-test


Update to use Workers Sites

Been a while since this was updated! Updating it to use workers-site and we should put this in the template gallery :)

thanks!


When only one data point visible, graph appears empty

Preflight Checklist

[x] I have read the Contributing Guidelines for this project.
[x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Operating System:

Browser:

Expected Behavior

[ ] When there is data for the date range I have selected, I should see a visual indication of that data on the graph
Possible implementations:
Turn on dots/points when only one data point
Turn on dots/points for all data
if we cannot show dots/points, we can consider informing the user to select a larger range (default to existing error message)

Actual Behavior
I select a date range where there is only one available data point, and I see the graph but it appears empty. Once I hover (usually near the edges of the graph) I see tooltips with information on the data point.
Screenshots

Additional Information

© 2021 ThoughtWorks, Inc.

This card is done, but may not appear complete because a bug still exists with group by month https://github.com/cloud-carbon-footprint/cloud-carbon-footprint/issues/394


holder.min.js script is returning a 404 in all examples that use it

The example pages that use holder.min.js are returning a 404 for that script:
http://getbootstrap.com/examples/carousel/
http://getbootstrap.com/examples/dashboard/

Duplicate of #16699.


Improve handling of minimum deployment target

We have a bit of a muddled deployment target situation in 5.2:

anything declared by SwiftPM's own manifest defaulted to macOS 10.10,
but the toolchain doesn't actually work on macOS < 10.15 anymore
libPackageDescription was built with minimum deployment target of
10.15, but we were explicitly compiling the manifest for 10.10 minimum
support for running tests on macOS is aligned with Xcode (so 10.15
minimum), but we were not enforcing that

This change makes it more consistent for 5.3:

declare a 10.15 minimum in the manifest
build manifests without deployment target, defaulting to the host
always build tests for macOS with a minimum deployment target of 10.15

rdar://problem/62121806

@swift-ci please smoke test

Is there some way to do this without restricting client packages who want to continue using it conditionally with #available?

@SDGGiesbrecht you're specifically talking about the change to SwiftPM's package manifest and clients of libSwiftPM, right?

Yes. It’s just the platforms: [.macOS("10.15")] entry in the manifest that causes issues.

...and only when pulled in as a package dependency. Basing it on an environment variable like SWIFTPM_LLBUILD_FWK would be fine if it needs to be there for the toolchain build.

I think that sounds reasonable to me.

How about we leave it at a fixed 10.15 for now?

I think we can actually do the same thing you suggested for XCTest and use the deployment target of libPackageDescription.

error: the library 'SKSwiftPMWorkspace' requires macos 10.10, but depends on the product 'SwiftPM-auto' which requires macos 10.15; consider changing the library 'SKSwiftPMWorkspace' to require macos 10.15 or later, or the product 'SwiftPM-auto' to require macos 10.10 or earlier.

Another reason to only specify the deployment target when we're building SwiftPM for deployment in a toolchain.

How about we leave it at a fixed 10.15 for now?

I think we can actually do the same thing you suggested for XCTest and use the deployment target of libPackageDescription.

Hmm, yeah, that seems like a good idea!

@swift-ci please smoke test

/Users/buildnode/jenkins/workspace/swift-package-manager-PR-osx-smoke-test/branch-master/swiftpm/Tests/PackageLoadingTests/PackageBuilderTests.swift:1578: error: -[PackageLoadingTests.PackageBuilderTests testPlatforms] : XCTAssertEqual failed: ("["watchos": "2.0", "ios": "8.0", "macos": "10.15", "android": "0.0", "wasi": "0.0", "tvos": "9.0", "linux": "0.0"]") is not equal to ("["watchos": "2.0", "tvos": "9.0", "ios": "8.0", "linux": "0.0", "android": "0.0", "wasi": "0.0", "macos": "10.14"]")

makes sense, XCTest on CI still has a 10.14 minimum deployment target, the test should be using a dynamic value as well.

@swift-ci please smoke test

Failure is:

/home/buildnode/jenkins/workspace/swift-package-manager-self-hosted-Linux-smoke-test/branch-master/swiftpm/Tests/PackageLoadingTests/PackageBuilderTests.swift:1580: error: PackageBuilderTests.testPlatforms : XCTAssertEqual failed: ("["linux": "0.0", "watchos": "2.0", "ios": "8.0", "macos": "10.10", "wasi": "0.0", "tvos": "9.0", "android": "0.0"]") is not equal to ("["android": "0.0", "macos": "10.12", "watchos": "2.0", "linux": "0.0", "wasi": "0.0", "ios": "8.0", "tvos": "9.0"]") -

@swift-ci please smoke test

@swift-ci please smoke test


Make Timer Font Size Dynamic

When the window is resized on the question screen, the timer text is much larger than the bubble its in.

not sure if this still applies. it could be fixed as part of a larger effort to make sure hosting the game works on non-desktop screen devices, and playing the game works on non-mobile screen devices.


Flutter support

flutter is a great cross-platform framework. If you support flutter, it will make cross-platform extremely simple.

Yes, I'm planning to do this. But the topmost thing I'm doing now is the transfer from plain ASCII TeX to Unicode-math supported modern LaTeX. Anyway, the Flutter version is in the plan.

May I know the status for flutter support?

@thaminmg You may want to take a look at this link.
But you may need to patch this feature and re-compile your flutter engine to make it work.


Cranelift: Add egraph rule to rewrite x * C ==> x << log2(C) when C is a power of two

Draft because this is hitting an ISLE codegen bug where the generated Rust code doesn't pass the borrow checker:
error[E0382]: use of moved value: `v26`
   -->
    |
577 |                         let mut v26 = v26;
    |                             -------   --- this reinitialization might get skipped
    |                             |
    |                             move occurs because `v26` has type `<C as opts::generated_code::Context>::inst_data_etor_iter`, which does not implement the `Copy` trait
...
598 |                         while let Some(v35) = v34.next(ctx) {
    |                         -----------------------------------
    |                         |
    |                         inside of this loop
    |                         inside of this loop
...
606 |                                             let v26 = v26;
    |                                                       --- value moved here, in previous iteration of loop
...
679 |                                                 let v26 = v26;
    |                                                           --- value moved here, in previous iteration of loop
...
723 |                         let v26 = v26;
    |                                   ^^^ value used here after move

For more information about this error, try `rustc --explain E0382`.

cc @jameysharp, any idea what might be causing this ISLE codegen bug?

I think there's a codegen bug here that I should look into, but I don't think it's urgent because this bug can only happen with multi-terms, and I believe there's an easy workaround applicable to rules in any multi-constructor.
I think if you remove the priorities from these rules, everything will work. You've forced ISLE to evaluate two rules in a specific order, where both rules need to loop over the same inst_data multi-extractor result. By giving ISLE the freedom to schedule these rules in any order, you'll allow it to loop over that extractor only once, so it won't try to reuse an iterator that's already been consumed.
Since egraph simplifications are specified in a multi-constructor term, all matches will be returned, so you don't need to set rule priorities to ensure that the right rule wins. I don't believe there's any significant impact on elaboration results from the order that simplifications are returned in, either.

That fixed it! Thanks @jameysharp!


[stable/grafana] fix dashboard loading regression #12400

Fixing multiline indicator usage that was broken by PR #11997
that prevented custom prebuilt dashboards to be loaded from file on helm install.
Signed-off-by: Jannis Oeltjen<EMAIL_ADDRESS>
What this PR does / why we need it:
Fixes a regression for loading dashboards from file on helm install.
This was broken due to one of my previous PRs (#11997) that added the multiline indicator always, not keeping in mind that when adding from file the yaml conversion already adds such an indicator.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #12400

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign
/ok-to-test

/lgtm
Thanks a lot @jcoeltjen, nicely done!


String interpolation in SwiftUI Text doesn't work with system locale correctly

Text("Z-value: \(model.zValue.formatted(.measurement(width: .narrow).locale(Locale(identifier: "en-CA"))))")

Shows as "Z-value: 70m"
Text("Z-value: \(model.zValue, format: .measurement(width: .narrow).locale(Locale(identifier: "en-CA")))")

Shows as "Z-value: 230'"

I suspect it is because SwiftUI views get the locale from the environment. Does this show the expected value?
Text("Z-value: \(model.zValue, format: .measurement(width: .narrow))")
    .environment(\.locale, Locale(identifier: "en-CA"))

Does this show the expected value?

Yes it shows the correct unit as "Z-value: 70m". It kind of makes sense that the priority is measurement string formatting locale > environment locale > measurement value string interpolation format style locale, but still hard to remember.

I set the locale in Simulator as this - locale ID is still "en-US" while the measurement system is changed to Metric.
Using the older formatter API, the dimensions are correctly displayed as metric units, while the SwiftUI formatting style, or formatted() are displayed as imperial.
I'll keep digging to see if SwiftUI formatting style APIs support displaying a different measurement system than the locale's default.

On iOS 16 and newer there is Locale.measurementSystem, which sounds like what you want. It can be specified by creating a locale using Locale.init(components:):
var components = Locale.Components(locale: .current)
components.measurementSystem = .metric
let locale = Locale(components: components)

Thanks Phil. This definitely looks like the correct way to go. Though I tested in iOS 16, it doesn't behave as expected. I'll add this issue to iOS 16 and beyond column and take a look in the future.


python3Packages.influxdb-client: 1.19.0 -> 1.20.0

Motivation for this change
Update to latest upstream release 1.20.0
Change log: https://github.com/influxdata/influxdb-client-python/blob/master/CHANGELOG.md#1200-2021-08-20
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 135036 run on x86_64-linux 1

3 packages built:

home-assistant
python38Packages.influxdb-client
python39Packages.influxdb-client


Operator install rework and prometheus persistent storage config

Also includes changes to the cluster-monitoring-config
config to only apply changes using apply and also use
persistent storage.
Signed-off-by: Sai Sindhur Malleni<EMAIL_ADDRESS>

We need a small fix in file for the rename of localstorage.yml.j2 to local-storage.yml.j2

Hmm...I actually moved that file to roles/operators and renamed it. Do you think the local-storage role should instead maintain the operator install as well?


Schema - dict instead of property?

Any reason why you made the schema a dict instead of making the properties actual python properties and stored as a named tuple? So after the user can refer to resp.magic, not just resp['magic']?

Just to clarify, are you referring to the internal _swagger_object dict returned by get_swagger_doc?


Add OpenSearch Core Triage meeting for 1/31

Description
Adding event for OpenSearch Core Triage meeting for 1/31
Issues Resolved
N/A
Check List

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

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

@krisfreedain Could you take a quick look at this event? Assuming it follows what we are looking for I'll create events for the next couple of months.


Translate English into Japanese in event new page

Translate English into Japanese in event new page.

Thanks!


[ci] improve and run CUDA jobs for every commit and PR

Due to

It seems currently both azure pipeline and github actions cannot support the power-off/turn-on machines.
Even with the VM scale set in azure pipeline, it needs at least one machine stand by.
I know there are some external solutions, but they seems to require my Azure (Microsoft) account permission, which seems to violate our policy.
https://github.com/microsoft/LightGBM/pull/3424#issuecomment-701723558

machine with NVIDIA GPU is always turned on and I don't see any reasons to not run CUDA jobs on it for every PR in this case. Running CUDA jobs on a regular basis will make us sure that no one new PR breaks CUDA source code.
CUDA jobs cannot be run in parallel but the duration of all 3 jobs I set in this PR are about 20 min. Is it OK?

@jameslamb
I'm very surprised that even Dask tests are passed with CUDA version!

@jameslamb
I'm very surprised that even Dask tests are passed with CUDA version!

@jameslamb
I'm very surprised that even Dask tests are passed with CUDA version!

that's great! I'd be surprised if it actually took advantage of the GPU, but at least the tests passing there is good. At some point (maybe when investigating #3776 ), we should look again at why the Dask tests fail on non-CUDA GPU builds.

CUDA jobs cannot be run in parallel but the duration of all 3 jobs I set in this PR are about 20 min. Is it OK?

I think this is totally fine!
I looked at the most recent one and it took about 24 minutes to run (https://github.com/microsoft/LightGBM/actions/runs/506269302).

That's quicker than other collections of jobs, so I don't think it would have too big of an impact on the peak level of activity in this repo. Because it gives us extra coverage of a part of the codebase that is very new (in terms of how many times it has been modified in its lifetime), I think it is very worth it.

@jameslamb
I'm very surprised that even Dask tests are passed with CUDA version!

that's great! I'd be surprised if it actually took advantage of the GPU, but at least the tests passing there is good. At some point (maybe when investigating #3776 ), we should look again at why the Dask tests fail on non-CUDA GPU builds.

CUDA jobs cannot be run in parallel but the duration of all 3 jobs I set in this PR are about 20 min. Is it OK?

I think this is totally fine!
I looked at the most recent one and it took about 24 minutes to run (https://github.com/microsoft/LightGBM/actions/runs/506269302).

That's quicker than other collections of jobs, so I don't think it would have too big of an impact on the peak level of activity in this repo. Because it gives us extra coverage of a part of the codebase that is very new (in terms of how many times it has been modified in its lifetime), I think it is very worth it.

@guolinke Please take a look when have time.

@guolinke Please take a look when have time.


endpoint: Do not pass a function to WithFields

Logrus can not turn a function or a function pointer to a string, and will emit an error in the logs instead, like this:
time="2024-08-08T18:38:31Z" level=debug msg=applyPolicyMapChanges logrus_error="can not add field "identity", can not add field "identity", can not add field "identity"" containerID=2ba0422d7b datapathPolicyRevision=12 desiredPolicyRevision=13 endpointID=3752 identity=37644 ipv4=<IP_ADDRESS> ipv6="fd00:10:244::510d" k8sPodName=cilium-test-1/client3-7f986c467b-vjm5w subsys=endpoint
In this case the error is seen three times due to logrus accumulating them even if they originate from the same "field".
Pass the number instead of the function to fix this.

/test

Shall we backport this for convenience sake?

Shall we backport this for convenience sake?

Added needs-backport labels for v1.16 & v1.15, v1.14 seems to not be affected


Collaboration

Hello and Greetings,
I am a fellow developer who happens to be working on the same project as I see here.
More info can be found here. Furthermore, I am creating
a server on Discord to help people find the APIs related to Roblox. When I was creating mine,
I noticed that the general public lacked completed, stable APIs and documentation for Roblox.
Though the server is new and just created, I would love if you could join to help organize the
searching of user-made Roblox APIs.
Thanks, Sanjay

Sure what's the discord?

https://discordapp.com/invite/EDXNdAT


New file algo

These commits should fix the following issues:

typo issue for sha256
build issue with constexrp
improve speed for hashing big files

This is my first "pull request", I don't know if this is the proper way to do it.
In all cases, thanks for the good work!

Will review these commits later today. Thanks for the work.

Good structure that I was able to work with. Made the following changes:

Changed dangerous use of std::ios::eof in chunked hash while... block in hashpp::common::getHash(std::filesystem::path&) to correct use.
Added polymorphic structure described originally.
Added various const T& types in existing functions to replace unnecessary copying.
Added optional metrics class for users to benchmark their hashing performance.
Added chunked process described originally for hashing of all files.
Added operator== overload for type hashpp::hash restricted to all types convertible to std::string.

See file for other misc. changes.
Thanks for the help!


fixed exception error: not a whole number of frames in mic.py

My profile.yml:
sphinx
pocketsphinx:
fst_model: '/home/debian/Desktop/phonetisaurus/g014b2b.fst'
hmm_dir: '/usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/'
tts_engine: flite-tts
flite-tts:
voice: 'slt'
keyword: 'Jasmin'
language: 'en-US'
audio_engine: 'alsa'
output_device: 'default-card-s2'
input_device: 'default-card-s2'
audio:
input_samplerate: 48000
input_samplewidth: 16
input_channels: 1
input_chunksize: 1024
output_chunksize: 1024
output_padding: 'no'    # true, yes
Results in:
debian@beaglebone:~$ python /home/debian/Desktop/jasper-dev/Jasper.py

        JASPER - THE TALKING COMPUTER           *

(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

INFO:jasper.application:Using language 'en-US'
INFO:jasper.application:Using keyword 'Jasmin'
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
WARNING:jasper.mic:Restarted audio stream because of "error: not a whole number of frames" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['JASMIN']
INFO:jasper.mic:Keyword Jasmin has been uttered
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['PLUG IN']
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['PLUG IN']
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
WARNING:jasper.mic:Restarted audio stream because of "error: not a whole number of frames" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['JASMIN']
INFO:jasper.mic:Keyword Jasmin has been uttered
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: []
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
WARNING:jasper.mic:Restarted audio stream because of "error: not a whole number of frames" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['JASMIN']
INFO:jasper.mic:Keyword Jasmin has been uttered
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['PLUG']
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['UNPLUG']
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
WARNING:jasper.mic:Restarted audio stream because of "error: not a whole number of frames" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['JASMIN']
INFO:jasper.mic:Keyword Jasmin has been uttered
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: []
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: []
WARNING:jasper.mic:Restarted audio stream because of "4" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['IS OF']
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['JASMIN']
INFO:jasper.mic:Keyword Jasmin has been uttered
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['PLUG']
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['IN']
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['IT OF']
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: []
WARNING:jasper.mic:Restarted audio stream because of "error: not a whole number of frames" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['IT OF OF']
WARNING:jasper.mic:Restarted audio stream because of "error: not a whole number of frames" exception
INFO:jasper.mic:Waiting for keyword 'Jasmin'...
INFO:sphinx_1_0_0.sphinxplugin:Transcribed: ['IT']
As one can see on the Beaglebone Black the audio stream quite often randomly closes (as mentioned in #404 by G10DRAS and in #529 by dev0v36 ). I fixed this exception (error: not a whole number of frames) in mic.py in wait_for_keyword by catching it and deleting the frame from frames. I tried to restart the whole method/function but it took too long to setup the two threads and one gets a new frame_queue which results in a really bad hotword detection (basically none because the exception gets raised every 3 seconds or so).
I could not do a pull request so i pushed it here: https://github.com/vdm97/jasmin/blob/master/jasper/mic.py

Also i improved the calculation of frames in active_listening and added some more exception handling in mic.py

Doesn't look like you mic.py is available anymore?!

Hi, I just had the same problem. After hours of trying around I came to this solution:
I added following line in the mic.py (line 161):
if ((len(frame) % self._input_chunksize) == 0):
The line calculates the modulo of the framelength and the chucksize and performs the rest of the loop only if the framelength is an exact multiple of the chucksize (only then is it a complete frame).
Then I changed the
self._threshold = float(audioop.rms("".join(frames), 2))
in line 178 & 196 into
self._threshold = float(audioop.rms(b''.join(frames), int(self._input_bits/8)))
The second changes dont have to be made, but imo it's the nicer code.
Here the hole function “wait_for_keyword” in mic.py:
def wait_for_keyword(self, keyword=None):
        if not keyword:
            keyword = self._keyword
        frame_queue = queue.Queue()
        keyword_uttered = threading.Event()

        # FIXME: not configurable yet
        num_worker_threads = 2

        for i in range(num_worker_threads):
            t = threading.Thread(target=self.check_for_keyword,
                                 args=(frame_queue, keyword_uttered, keyword))
            t.daemon = True
            t.start()

        frames = collections.deque([], 30)
        recording = False
        recording_frames = []
        self._logger.info("Waiting for keyword '%s'...", keyword)
        for frame in self._input_device.record(self._input_chunksize,
                                               self._input_bits,
                                               self._input_channels,
                                               self._input_rate):
            if ((len(frame) % self._input_chunksize) == 0):
		    if keyword_uttered.is_set():
		        self._logger.info("Keyword %s has been uttered", keyword)
		        return
		    frames.append(frame)
		    if not recording:
			snr = self._snr([frame])
			if snr >= 10:  # 10dB
			    # Loudness is higher than normal, start recording and use
			    # the last 10 frames to start
			    self._logger.debug("Started recording on device '%s'",
			                       self._input_device.slug)
			    self._logger.debug("Triggered on SNR of %sdB", snr)
			    recording = True
			    recording_frames = list(frames)[-10:]
			elif len(frames) >= frames.maxlen:
			    # Threshold SNR not reached. Update threshold with
			    # background noise.
			    self._threshold = float(audioop.rms(b''.join(frames), int(self._input_bits/8)))
		    else:
		        # We're recording
		        recording_frames.append(frame)
		        if len(recording_frames) > 20:
		            # If we recorded at least 20 frames, check if we're below
		            # threshold again
		            last_snr = self._snr(recording_frames[-10:])
		            self._logger.debug(
		                "Recording's SNR dB: %f", last_snr)
		            if last_snr <= 3 or len(recording_frames) >= 60:
		                # The loudness of the sound is not at least as high as
		                # the the threshold, or we've been waiting too long
		                # we'll stop recording now
		                recording = False
		                self._logger.debug("Recorded %d frames",
		                                   len(recording_frames))
		                frame_queue.put(tuple(recording_frames))
		                self._threshold = float(audioop.rms(b''.join(frames), int(self._input_bits/8)))

I also got the same error. After applying the changes, the error disappeared. However, jasper now becomes deaf. It doesn't hear anything at all. It just stuck at this line:
INFO:jasper.mic:Waiting for keyword 'TIGER'...
If I put --debug, it stuck at these lines:
INFO:jasper.mic:Waiting for keyword 'TIGER'... DEBUG:alsa_1_0_0.alsaaudioengine:input stream opened on device 'plughw-card-device-dev-0' (16000 Hz, 1 channel, 16 bit)


Upstreaming internal development

Description
Upstreaming internal development improvements.
Updated format of service, client, and integ files.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Refactor (existing code being refactored)
[ ] This change includes a documentation update

Submission Checklist

[ ] CI dry-run passing
[ ] Integration tests passing locally
[ ] Change logs generated

Additional Notes:

This looks like a lot of formatting/non-functional changes. Is there anything functionally changing as a part of this PR? It's tough to look through 1200+ files.

This looks like a lot of formatting/non-functional changes. Is there anything functionally changing as a part of this PR? It's tough to look through 1200+ files.

The PR is broken into commits that represent chunks of work. However, this required some bundling of commits. I've updated the description with the high level view of the changes, but going through the pre-formatting commits is the best way to see what has changed.
Within the formatting commits, there are only minor changes to simplify or improve integration testing.
Thanks!


Add theme support to GLFW

Resolves #2257
This is a rough draft for theming support. You're welcome to make contributions. Win32, X11 and Wayland (libdecor (not yet merged)) platforms need a developer.
Comments on the API design is also useful.

Should the theming API include more goals?
Do you have anything specific in mind about future additions/enhancements/extensions to the theming API?
Is there anything in particular that the current design obstructs?
Are there any current or upcoming features of Cocoa, Win32, Wayland or X11 that should be supported?

The draft currently exposes only one main colour of themes. This may not be a good solution.
The API currently looks like this:
#define GLFW_THEME_DARK -1
#define GLFW_THEME_DEFAULT 0
#define GLFW_THEME_LIGHT 1

#define GLFW_THEME_ATTRIBUTE_HAS_COLOR 1
#define GLFW_THEME_ATTRIBUTE_HIGH_CONTRAST 2
#define GLFW_THEME_ATTRIBUTE_VIBRANT 4

typedef struct GLFWtheme GLFWtheme;

typedef void (* GLFWthemefun)(GLFWtheme* theme);

typedef struct _GLFWtheme
{
    int variation;
    int flags;
    float color[4];
} _GLFWtheme;

GLFWAPI GLFWtheme* glfwCreateTheme(void);
GLFWAPI void glfwDestroyTheme(GLFWtheme* theme);
GLFWAPI void glfwCopyTheme(const GLFWtheme* source, GLFWtheme* target);

GLFWAPI int glfwThemeGetVariation(const GLFWtheme* theme);
GLFWAPI void glfwThemeSetVariation(GLFWtheme* theme, int value);

GLFWAPI int glfwThemeGetAttribute(const GLFWtheme* theme, int attribute);
GLFWAPI void glfwThemeSetAttribute(GLFWtheme* theme, int attribute, int value);

GLFWAPI void glfwThemeGetColor(const GLFWtheme* theme, float* red, float* green, float* blue, float* alpha);
GLFWAPI void glfwThemeSetColor(GLFWtheme* theme, float red, float green, float blue, float alpha);

GLFWAPI GLFWthemefun glfwSetSystemThemeCallback(GLFWthemefun callback);
GLFWAPI void glfwSetTheme(GLFWwindow* handle, const GLFWtheme* theme);
GLFWAPI GLFWtheme* glfwGetTheme(GLFWwindow* handle);
GLFWAPI GLFWtheme* glfwGetSystemDefaultTheme();

If a window's theme is set to change automatically when the system theme changes, glfwGetTheme doesn't report this; instead, it reports the currently active theme, which is the system theme.

Having a struct may become an issue in the future as theming evolves. Functions for separate properties on the window or a separate opaque theme object may be more flexible.

Having a struct may become an issue in the future as theming evolves. Functions for separate properties on the window or a separate opaque theme object may be more flexible.

That's definitely true, but I wanted to keep it simple for now. There are workarounds for extending the current structures, but those are not necessarily as pretty. I was also thinking that by the time there's a need to extend it, GLFW 4 is upcoming.
Nonetheless, I agree, and I'll change this into an opaque object.

as theming evolves

Do you think the theming API should include more goals?
Do you have anything specific in mind about future additions/enhancements/extensions to the theming API?
Is there anything in particular that the current design obstructs?
The most likely change I can imagine, is adding more base themes, if "base themes" should even be a thing. The most simple change, is to make all light variations positive numbers, and all negative variations dark. As I'm writing this, I'm starting to believe a better change is to turn the theme struct into an opaque object, remove the notion of a "base theme" (at least for now), and replace it with a light/dark variation, and then extend this object with more functions in the future.
Gaussian blur
I also hope it's possible to support a gaussian blur of some sort, like NSVisualEffectView (I believe it is), like in this screenshot. It's not possible to implement this in Vulkan, or OpenGL (without hacks), or another API, as it requires reading the frame buffer content of everything behind the window. Whether or not it's the compositor or CSD GUI frameworks doing this on the different platforms is irrelevant, but GLFW clients cannot use this without tapping into the native APIs directly, circumventing GLFW, potentially even causing issues for the GLFW implementations. The fullscreen case is easier for clients, as it only requires the currently active desktop image, and its positioning and scaling, but GLFW doesn't provide facilities for this either.
I don't think this should be part of any theming API, but it is worth noting that the "vibrancy" appearances on MacOS use this, and that MacOS switches to the non-vibrant appearances when "reduce transparencies" is selected in the accessibility menu in the preferences application.
Even if this is included in the theming, it should not be a goal for initial theming support, and so should be on hold for now.

The GLFW_THEME_FLAG_HIGH_CONTRAST is about an accessibility feature more than a theming feature, and so may be a better fit for an accessibility API for GLFW, rather than theming, but I included it here, because the theming implementation for MacOS uses NSAppearance, which is where the high-contrast setting is reported, but it's possible to decouple these. The MacOS implementation can only report that the system is in high contrast mode or not, but not actually override that for the window.

Because themes are set for each window, rather than the whole application, on MacOS, this can have some unintended side effects. An example of this, is the "about application" window that's included in the default menu bar of the application. The theming API in this PR does not allow for setting the appearance of this window. It will always use the system appearance.

There's a few ways to add functionality for checking if a window's theme adapts automatically, or if the client has previously overridden this:

Simply rely on the client to be aware of their own actions.
Make GLFW_DONT_CARE valid input and output for glfwThemeGetAttribute and glfwThemeSetAttribute. Potentially replace GLFW_THEME_DEFAULT with GLFW_DONT_CARE. Potentially replace the theme variation with a new attribute: GLFW_THEME_ATTRIBUTE_VARIATION or ...BRIGHTNESS. Add a new 2nd parameter to glfwThemeGetColor and glfwThemeSetColor, which specifies which colour to get/set. Add new constant: GLFW_THEME_COLOR_MAIN. Make this a valid theme attribute and color specifier. Remove GLFW_THEME_ATTRIBUTE_HAS_COLOR.
Add a new function, glfwGetThemeState(GLFWwindow* handle) (or a similar name), which reports GLFW_TRUE for all theme properties that are specified by the client, and GLFW_FALSE for all properties that are inherited from the system theme.
Add a new function, glfwGetThemeState(GLFWtheme* theme, int attribute) which checks if a given attribute adapts automatically for the given theme, or if the theme contains a user-defined value for that attribute. This function must also accept checking for the variation/brightness and colour. It makes no sense to call this function for a theme retrieved from glfwGetSystemDefaultTheme.

The PR currently uses solution 1.
The least simple solution is number 2. This requires clients to additionally call glfwGetSystemDefaultTheme if they need a theme property of a window, and that window adapts automatically to the system theme.
Implementing solution 3 risks causing problems in the future.

I'm considering a redesign.
Add:
typedef struct GLFWcolor
{
    int flags;
    union
    {
        int[4] integers;
        float[4] floats;
    }
} GLFWcolor;

And either add this:
// Makes GLFW select the colors from the best match. For instance, if the parent theme
// defaults to DEFAULT variation, and there's a child with DARK variation, GLFW will use
// the colors in that child, when the system theme is dark. If the child lacks colors, the
// parent's colors for these cases will be used instead. If the system theme is light, and
// there is no child theme with LIGHT, GLFW will use the colors from the parent.
GLFWAPI void glfwThemeAddChild(const GLFWtheme* child);

GLFWAPI const GLFWtheme* const * glfwThemeGetChildren(int* count);

// or (I don't like this):

GLFWAPI void glfwThemeSetColor(GLFWtheme* theme, int specifier, int variation, GLFWcolor* color);
GLFWAPI void glfwThemeGetColor(GLFWtheme* theme, int specifier, int variation, GLFWcolor* color);

... or change the API to this:
#define GLFW_ACCESSIBILITY_HIGH_CONTRAST 1
#define GLFW_ACCESSIBILITY_REDUCE_TRANSPARENCY 2
#define GLFW_ACCESSIBILITY_REDUCE_MOTION 3

typedef void (* GLFWaccessibilityfun)(int attribute, int value);

GLFWAPI GLFWaccesibilityfun glfwSetAccessibilityCallback(GLFWaccesibilityfun* callback);
GLFWAPI int glfwGetAccessibilityAttribute(int attribute);

// GLFW_DONT_CARE
#define GLFW_THEME_LIGHT 0
#define GLFW_THEME_DARK 1

#define GLFW_THEME_COLOR_MAIN 1

typedef void (* GLFWthemefun)(int theme);
typedef void (* GLFWcolorfun)(int specifier, GLFWcolor* color);

GLFWAPI GLFWthemefun glfwSetThemeCallback(GLFWthemefun callback);
GLFWAPI GLFWcolorfun glfwSetColorCallback(GLFWcolorfun callback);

GLFWAPI int glfwGetTheme();
GLFWAPI void glfwGetColor(int specifier, GLFWcolor* color); // NULL if none available

GLFWAPI int glfwGetWindowTheme(GLFWwindow* window);
GLFWAPI void glfwSetWindowTheme(GLFWwindow* window, int theme);

GLFWAPI void glfwSetWindowColor(GLFWwindow* window, int specifier, GLFWcolor* color); // NULL to reset to default
GLFWAPI void glfwGetWindowColor(GLFWwindow* window, int specifier, GLFWcolor* color); // NULL if none available

The latter is easier to implement, easier to understand, but requires more work from the user for automation.
@elmindreda
Any chance of an opinion?


Glass and Mirror Replacements crash the Runtime.

Describe the bug
Interacting with replacements that are perfectly shiny or glass crashes remix and even the gpu driver

RTX Remix Version: RTX Remix from Portal RTX. (Though I think I did have this issue before I swapped from github builds to that version)
GPU: RTX 4090
Driver: 551.86
Game: Garry's Mod (Steam, March Update)

Logs, Launchscripts and Configs
GPU Crash Dump
Reproduceable with a single mod: https://xenthio.github.io/stuff/RTXMaterialTool-v1.zip
To Reproduce
Steps to reproduce the behavior using the mod above:

Open the game, load up a map.
Spawn in the prop using the 'Spawnmenu' (Hold Q)
In the toolbar on the right, select the 'Material' tool.
Select the models/shiny material (The icon is pure white)
Close the menu and then click on the prop to set the material (You'll need the mod above as well as RTX Remix Fixes (fixes the material tool) from the workshop for this to work)
If the game hasn't already crashed after step 6, Play with the prop by moving it with the 'Physics Gun' or by shooting it, the game should crash by now.

Video of the steps above: https://github.com/NVIDIAGameWorks/rtx-remix/assets/28588188/4a092023-fd8a-4619-b43d-a1bcff584a3b

This happens with any replacement and isnt specific to the usage of the material tool ingame. I just couldn't export a custom mod to reproduce this without it at the moment.

its working for me

REMIX-2963 for tracking.

Hello @Xenthio! Will you please test this on the latest release and let us know if the issue persists for you? Thanks!


In SilverStripe 4 if I save a campaign 3 times in a row it breaks

create new campaign.
Give it a name.
press Save 3 times.
Borked ):

Also there isn't much feedback on my first two successful saves.

Save it four times then?

Tested create 3 and it seems to work fine on chrome (the ticket browser) though the UX is a bit weird, you get a saved message but it doesn't prompt you to 'do' anything. @clarkepaul After creating a campaign I would have thought you would shown something useful?

Yeah we will probably take the user back to the list if the form doesn't grow too big once saved, this  wasn't seen as a priority as yet. If the "edit" screen grows in fields then we will keep them there with a better success message.


Got an error when training on CPU

I use this for training:
./train-local --config-file $(pwd)/models/MobileNet/config_mobilenet_technical.json --samples-file $(pwd)/data/TID2013/tid_labels_train.json --image-dir ~/Downloads/image-quality-assessment-master/training_data/distorted_images/
Got error message like:

Using TensorFlow backend.
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/src/trainer/train.py", line 6, in
from sklearn.model_selection import train_test_split
ModuleNotFoundError: No module named 'sklearn'

I am pretty sure sklearn installed and I can even run
>> from sklearn.model_selection import train_test_split  in python directly.
I tried both on MacOS and Ubuntu, got the same error.

Try to put scikit-learn in the requirements.txt file from the src directory before building the docker.

put scikit-learn in the requirements.txt solved the problem.


Enable flow strict

Allows downstream dependencies to enable the flow nonstrict-import rule

Official flow strict docs
Without this change, any package that depends on recompose won't be able to use strict imports.
I also made a similar change to immutable-js: https://github.com/facebook/immutable-js/pull/1580

Thanks


Double quote eval statements with $dir

Closes #403
:zap: Summary
Added double-quotes to eval statements that use $dir
:ballot_box_with_check: Checklist

[x] Check locally
[ ] Add tests

Hey! Wow, thank you a lot!


Windows Dark Mode is blurry

Attached, Dark Mode only changes the background and therefore the edges are very hard to see compared to the light mode.

Light mode is much better. Related to issue #290

Would brighter edges work? How much brighter?  Colors are in src/view-grapher.css. For example .edge-path is the color used for edges. There are three definitions for 1) light 2) browser dark mode 3) desktop dark mode.

I changed to 8c8c8c and it is now more visible
@media (prefers-color-scheme: dark) {

    .edge-label text { fill: #b2b2b2; }
    .edge-path { stroke: #8c8c8c; }

I will also try a few other params to see if this can get better


Blacklist LongTest.scala in FullOpt.

LongTest.scala uses optimizer-based generative programming to generate a lot of tests. Worse, the way it optimizes Longs turns that huge amount of test code into an insane amount of .js code within methods. Closure then completely loses it with that much code and all the intra-method optimizations it can do about it.
Blacklisting this test when compiling for FullOpt dramatically improves the time it takes to fully optimize the test suite (between 4x and 5x on my machine).

I have reactivated lampscalatst5 for this test. I believe this will solve our timeout issues for good.

Yup, passed on the first try, and no job had to use its retry :)

Filed #3312 to add some tests.


Expand docs with Alembic data migration example

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
-

Description
Alembic can be used for schema migrations. This is documented pretty well. Some migrations involve migrating data (e.g. when adding a column and filling it with data, maybe even from another column).
Although Alembic is not a data migration tool, it can be used as such in certain circumstances. I think it would be useful to add an example of how to do a data migration using Alembic, as this is a relatively common use case.
Wanted Solution
Expand docs with data migration example.
I'm willing to write this example.
Wanted Code
-

Alternatives
No response
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.62.0
Python Version
3.9.5
Additional Context
No response

hello
Since fastapi doesn't come with any ORM (such as sqlalchemy), make it work with alembic or another migration tool as all to do with your ORM/sql toolkit and nothing with fastapi. If you want to add migrations to your fastapi project you can simply folow your ORM and migration tool doc.
An example i use often: Kludex/fastapi-microservices

hello
Since fastapi doesn't come with any ORM (such as sqlalchemy), make it work with alembic or another migration tool as all to do with your ORM/sql toolkit and nothing with fastapi. If you want to add migrations to your fastapi project you can simply folow your ORM and migration tool doc.
An example i use often: Kludex/fastapi-microservices

I'm not sure I agree. Of course, FastAPI is ORM-independent - but there's plenty of documentation (e.g. at https://fastapi.tiangolo.com/advanced/async-sql-databases/?h=sqlalchemy#import-and-set-up-sqlalchemy) to get users started with general purpose tools such as SQLAlchemy. But maybe this issue is better suited for @tiangolo's boilerplate project.


Using install.sh to install Keras on the Game Servers

@brianvanleeuwen is attempting to do this.
Here is his current install.sh:
pip3 install keras h5py theano -t ./rm -rf numpy*
mkdir /scratch/.theano
chmod -R 777 /scratch/.theano

Already done:

Numpy doesn't seem to love local install over pip, so we added it to our sandbox
Need --nodeps flag added to locally install libraries without locally installing numpy

Now we get this error log on the game servers:
--- Init ---
Using Theano backend.
 --- Bot used 251 milliseconds ---
-----------------------------------------------------------------------------
 --- Frame #1 ---
Traceback (most recent call last):
 --- Bot used 0 milliseconds ---
ERRORED!
Response received (if any):
Traceback (most recent call last):
 --- Bot was killed. Below is the rest of its output (if any): ---
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/configdefaults.py", line 1615, in filter_compiledir
    os.makedirs(path, 0o770)  # read-write-execute for user and group
  File "/usr/lib/python3.5/os.py", line 231, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/Halite/worker/workingPath/1669/.theano'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "MyBot.py", line 39, in
configdefaults.py", line 1622, in filter_compiledir
    " '%s'. Check the permissions." % path)
    from keras.models import *
  File "/home/ubuntu/Halite/worker/workingPath/1669/keras/__init__.py", line 2, in
    from . import backend
  File "/home/ubuntu/Halite/worker/workingPath/1669/keras/backend/__init__.py", line 66, in
    from .theano_backend import *
  File "/home/ubuntu/Halite/worker/workingPath/1669/keras/backend/theano_backend.py", line 1, in
    import theano
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/__init__.py", line 63, in
    from theano.compile import (
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/compile/__init__.py", line 9, in
    from theano.compile.function_module import *
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/compile/function_module.py", line 22, in
    import theano.compile.mode
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/compile/mode.py", line 12, in
    import theano.gof.vm
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/gof/vm.py", line 638, in
    from . import lazylinker_c
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/gof/lazylinker_c.py", line 41, in
    location = os.path.join(config.compiledir, 'lazylinker_ext')
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/configparser.py", line 324, in __get__
    self.__set__(cls, val_str)
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/configparser.py", line 335, in __set__
    self.val = self.filter(val)
  File "/home/ubuntu/Halite/worker/workingPath/1669/theano/
ValueError: Unable to create the compiledir directory '/home/ubuntu/Halite/worker/workingPath/1669/.theano/compiledir_Linux-3.13--generic-x86_64-with-Ubuntu-16.04-xenial-x86_64-3.5.2-64'. Check the permissions.


Do not merge - bad children fix

Do not merge - A bad fix for Query.Children with lots of code copied and pasted from elm-html-query.  Makes tests from https://github.com/eeue56/elm-html-test/pull/11 pass. Demonstrates why https://github.com/eeue56/elm-html-query/pull/2 is needed.
cc - @rtfeldman

@brookeangel I don't follow what this PR is for? Should I close it? :)

@brookeangel I merged your other Pr - so whatever steps you want to do now, please do so :) I'm guessing you want to use getChildren in the tests instead

@eeue56 - Sorry for the confusion! This PR should indeed be closed. The code in this PR is mostly copied and pasted code from elm-html-query that makes it possible to correct Query.children - @rtfeldman suggested that I make this PR to demonstrate why https://github.com/eeue56/elm-html-query/pull/2 needs to expose getChildren. Once that happens, I will make a PR using getChildren that fixes Query.children in a concise manner.

@brookeangel A little confusing, but okay! In future, It think a simpler way would be bundle the PRs together - so then it's easy to see the "cause and effect", and not jump between a few of them :) Either way, thanks, I've merged your other PR!


can't display the image in my st terminal, but it works well in my urxvt

https://github.com/dylanaraps/neofetch/issues/1392


e2e: add multiple labels to node

update the e2e code to add multiple labels to the node at a time.
fixes: #4146

Can we do the same for deleteNodeLabel()?

Can we do the same for deleteNodeLabel() ?

i didnt noticed that earlier, Done same, PTAL

@mergifyio rebase

@mergifyio queue

/retest ci/centos/mini-e2e-helm/k8s-1.27

/retest ci/centos/mini-e2e-helm/k8s-1.27

not sure why it failed, e2e seems to report a panic logs

@mergifyio requeue


Demo Example Broken on Web

Package Version
The web demo at https://editor.superlist.com is broken.

Cannot enter spaces.
No toolbar with formatting controls popup when selecting text.
Cannot delete text after pasting text.

https://github.com/superlistapp/super_editor/assets/19896174/b2d8bb45-e974-453c-86bc-b3ae9d69abd2
Platform
Windows 11
Opera

Cannot delete text after pasting text.

@rayliverified Could you please give us more details about this specific issue?

To reproduce:
Paste text.
Delete no longer works and text cannot be deleted.

@rayliverified Would you mind sharing a video showing how you are triggering this issue?

I cannot delete or type new text after pasting.
https://github.com/superlistapp/super_editor/assets/19896174/24029d30-d53c-420e-85cb-03970bfa1620

Great, everything works now!


Gut HaskellDb down to primquery relation type

This compiles with stackage nightly-2017-03-30 with ghc-8.0.2, without any code changes except deletions. I didn't look into the ghc-8.0.1 build errors or try to fix them. (Issue #27)
If haskelldb is abandoned, it might make sense to publish this to hackage as haskelldb-primquery as a useful, simple starting point for future developers.
Feel free to close this if you disagree.

I might publish something like haskelldb-primquery to hackage myself, we'll see.

Would this provide much more benefit that Opaleye's PrimQuery type, which
itself is a tidied and extended version of HaskellDB's?

Not really, but if the choice is between people not using haskelldb at all because it has rotted or some part of it living on, I think it makes more sense to publish the part that hasn't rotted.
For Hackage as a whole, the most valuable action that aligns with what I need right now would be to split off Opaleye's primquery into its own library. I had very little time at work to get going, so I used PrimQuery because it took me no time to understand. I assume another hour or two, and I can move my work over to opaleye's primquery, but I will not be using Opaleye proper for quite a long time.
We have talked a bit on reddit. We left it off that you encouraged my writing a backend for mysql. I can contribute to pieces of that, but I can't produce a fully functioning backend for others to use.

Ah that's right, I remember.  Good luck with your project.

@tomjaguarpaw ready to attempt to convert to using opaleye's primquery. Would you be willing to break off opaleye-primquery as a separate hackage project? I will continue this discussion in opaleye repo.


chore(deps) bump lua-resty-worker-events to 0.3.2

This worker events release includes a fix in error handling, and improved stacktraces.

@Tieske Hey there,
When upgrading dependencies, please link to changelog and diff of the relevant versions, similar to: https://github.com/Kong/kong/pull/3341 (in which the changelog has a link to the diff (https://github.com/thibaultcha/lua-resty-mlcache/compare/1.0.1...2.0.0).
This will help us assess the risk of the bump and keep track of the fixes it offers.
Thanks!


fix recreate sts check for spec.volumeClaimTemplates

address https://github.com/VictoriaMetrics/operator/issues/507
statefulset should be recreated if any of the volumeClaimTemplate got changed

https://docs.victoriametrics.com/operator/CHANGELOG.html
fix some of the old changelog format.


[BUG]: Code Quality Improvement

What is the bug related to?
Registry Core
What went wrong?
Use ES Lint / ng Lint in your local setup and reduce the number of errors/warnings
What did you expect to see?

Additional Context
No response
Relevant logs/output (if any)
No response

Description:
The goal of this task is to enhance the code quality of the Education Core Registry (https://github.com/Sunbird-RC/sunbird-rc-ui) by implementing the ESLint library. ESLint is a powerful static analysis tool that helps identify and enforce coding standards, detect potential errors, and promote best practices within the codebase.
Expected Changes:
1. Installation of ESLint: The project's dependencies will be updated to include the ESLint library. This can be achieved by adding ESLint as a devDependency in the project's package.json file and running the necessary package manager commands (e.g., npm install or yarn install) to install the library.
2. Configuration File:  A configuration file named .eslintrc or .eslintrc.json will be added to the project's root directory. This file will define the ESLint rules and options specific to the project. The rules can be customized to align with the team's preferred coding style and quality guidelines.
3. Linting of Project Files: ESLint will be applied to the relevant files within the core registry repository. This includes TypeScript (.ts) files, Angular templates (.html), and other supported file formats. ESLint will analyze the code and provide warnings or errors for any violations of the defined rules.
4. Automated Code Fixes: ESLint can automatically fix certain issues, such as formatting inconsistencies or simple rule violations. This feature can be enabled within the ESLint configuration file to automatically apply fixes to the codebase, enhancing code quality and maintaining consistency.
5. Rule Customization: (Optional) The ESLint configuration file will be adjusted to include project-specific rules or extend existing rule sets based on the requirements. This step ensures that ESLint enforces the desired coding standards and practices for the Angular project.
By implementing ESLint, we aim to improve the overall code quality, maintain a consistent coding style, identify potential issues early on, and promote best practices throughout the registry code.


PBEggs are not being processed when semantics are given to symbols

When giving a semantic to a symbol in sketch that correlates to a PBEgg, the PBEgg is not being processed. There is no output for that specific symbol in the code generation phase.

Eddie How's this issue going? Do you need any help? 😉

I believe this is done, closing it out.


1.8.9 Server Crash

Hi,
I have made a minecraft 1.8.9 Server for my modpack and when i add RFTools the server crashes...
The mod works fine on Client side.
Here are the crash report:
http://pastebin.com/yG4s4DCW
and the fml log:
http://pastebin.com/FX2QyGKZ
I'll link  Buildcraft and Botania in a moment.
I hope you can help me.
Sincerly king05
Edit:
here is the Botania issue:
williewillus/Botania#77
and here is the Buildcraft issue:
https://github.com/AlexIIL/Buildcraft_1.8_Issues/issues/101
The crash report told me to contact you three authors...

ok i found the problem... it's because the server is running with java 7...
i just downloadet the server to try it on my local computer with java 8 and it works fine...


Can't type in Parametric Domain

Describe the bug
Fields appear (in red) when Parametric Domain is expanded and a new field is added (with the "ADD PARAMETER" button). I can click in the box and I can see the cursor, but cannot type.
Brave browser on Windows 10.

Refresh fixed!


Change var names of module peptidoform to peptide ion

this issue becomes a bit more urgent... Specially for the header in the intermediate file that is still "peptidoform" instead of "precursor ion"

Fixed in #177


ling --help

with no description and this limited title, I'm not 100% sure what you are asking. I suspect you want to know how to get help. It's this:
ceedling help


Async localized files generation and blob storage

@jeeyi FYI, big changes in this PR. We can now execute an async job and have an output for it, all tracked via PollableTask. This change has no impact on current tools. It will be used only if passing an option to the pull command. It has a default implementation backed by a database but to scale there is also a S3 implementation. That's what we're gonna use so the database implementation will be less tested.
As it proves stable though we can start using that more widely: making the default pull command async, TMXliff export could use that too, and more.


Authentication to the tips app for add tip/ edit

@orIsrael @Yoavsc129  Are you planning on implementing this to the Demo?


Material UI 3 + Typescript giving error with label props

After upgrading material ui to v3, it start to give the following errors
 Property 'label' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<DatePickerModalProps, any, any>> & Reado...'

The same problem with placeholder

Workaround until this library is updated:
// mui-date-picker.d.ts
declare module 'material-ui-pickers/DateTimePicker' {

  import { ComponentClass } from 'react';
  import { DateTimePickerModalProps } from 'material-ui-pickers/DateTimePicker/DateTimePickerModal';
  import { InputBaseProps } from '@material-ui/core/InputBase';

  const DateTimePickerModal: ComponentClass<DateTimePickerModalProps & { label: string; InputProps: InputBaseProps }>;

  export default DateTimePickerModal;
}

Closed


added aggregation example

Added example of how to use aggregations.
I moved the examples each into their own folder, so that there aren't multiple files in the package with main function

Awesome! Thank you for the contribution