Question: What is a proper way to deal with OpenFileDialog etc?

Currently I use something like this:
Button.create [
    Button.content "Some text"

    Button.onClick (fun _ ->
        let ctx = System.Threading.SynchronizationContext()
        async {
            let ofd = OpenFolderDialog()
            let window = getWindow()
            let! path =
                ofd.ShowAsync(window)
                |> Async.AwaitTask
            do! Async.SwitchToContext ctx
            path
            |> Msgs.SomeMsg
            |> dispatch
        } |> Async.Start
    )
]

but I'm not sure whether this is a good approach or not.

Using the avalonia dispatcher should be a bit simpler.
Other than that it might be cool to include helpers for certain things.

Using the avalonia dispatcher should be a bit simpler.

Like this?
Button.onClick (fun _ ->
    let t =
        Avalonia.Threading.Dispatcher.UIThread.InvokeAsync<string>(
                System.Func<System.Threading.Tasks.Task<string>>(
                    fun () ->
                        let ofd = OpenFolderDialog()
                        let window = getWindow()
                        ofd.ShowAsync(window)
                    )
    )
    async {
        let! path = t |> Async.AwaitTask
        path
        |> Msgs.SomeMsg
        |> dispatch
    } |> Async.Start
)

Yes. Maybe even consider Task.ContiueWith and Task.Start to get rid of the async block completely

Thanks, got it. Closing the issue then.

you can also pass the window as part of the update function and use the elmish Cmd.ofAsync.* commands
module Main =
    type State = { ...}
    type Msg =
        | OpenWindow
        | OpenWindowSuccess of string
        | OpenWindowError of exn
   let init () = ...
   let update  (msg : Msg) (state: State) (window: HostWindow) =
       match msg with
       |  OpenWindow ->
            let ofd = OpenFolderDialog()

            state, Cmd.ofAsync.either ofd.ShowAsync window OpenWindowSuccess OpenWindowError
       | OpenWindowSuccess path -> { state with path = path }, Cmd.none
       | OpenWindowError ex -> { state with error = Some ex.Message }, Cmd.none

type MainWindow() as this =
    inherit HostWindow()
   do
      this.AttachDevTools(KeyGesture(Key.F12))

     let updateWithServices msg state =
       update msg state this

      Program.mkProgram init updateWithServices view
      |> Program.withHost this
      |> Program.withConsoleTrace
      |> Program.run

you can also pass the window as part of the update function and use the Elmish Cmd.ofAsync.* commands

I suppose this approach breaks MVU pattern ? I expect that update function/part will be totally independent from View side.
I.e. in case if I later decide to use Fabulous or Elmish.WPF or anything else then I can switch to it easily. Well, at least in theory.
Buf if I pass Window to the update function then I will be sticked to Avalonia.
Though, this is the first time I use Elmish for my app so I might be wrong :-)

I see, yeah I agree it could couple you to a specific implementation
But you can always fallback to use an interface instead of a concrete class (like my example) to make it agnostic to your update function
let update  (msg : Msg) (state: State) (dialogService: IMyDialogService) =
       match msg with
       |  OpenWindow ->
            state, Cmd.ofAsync.either dialogService.OpenFolderDialog () OpenFolderSuccess OpenFolderError
       | OpenWindowSuccess path -> { state with path = path }, Cmd.none
       | OpenWindowError ex -> { state with error = Some ex.Message }, Cmd.none


fixed version check

Fixed rake method for getting version.

Coverage decreased (-0.25%) to 97.79% when pulling d71a44fc68d95ec917d078a3eb8df02d87c98997 on fix-rake-errors into 877c68886dc011eb794224064828cb05eeff6708 on master.


Throw on contract compilation errors

My yarn prepare script was passing, even when contracts weren't compiling due to an incorrect solidity version. This PR throws on compile error rather than logging.

A good example where monads might be helpful.


Debian 11 mdns broken

Hello all,
I am not sure if this is the right place for my question, but maybe you have an idea.
We've recently updated our OS from Debian 9 (avahi 0.6.32) to Debian 11 (avahi 0.8) and encountered some issues with the avahi mdns in combination with the nmos-cpp.
Right now we are not able to detect an nmos-registry via mdns. Even though avahi-discover shows the nmos-registry and other services correctly. Other services are working as expected, like NDI.
I've compared the configuration on both systems and it looks fine as far as I can tell (mainly /etc/nsswitch.conf and /etc/avahi/avahi-daemon.conf).
Since it works on other applications, my question is if there is anything specific that I've to take care of for nmos-cpp?
Thanks in advance
Tobias

Hi Tobias. I'm not sure what the problem could be. I've been using Avahi 0.8 locally for some time and the GitHub Actions has an Ubuntu 22.04 runner that is using Avahi 0.8 and seems to be passing all tests in mDNS mode.

Hello Gareth,
sorry for the late reply, we had public holiday in germany. I will try to do some more tests and gather some information and keep you updated.
Thanks,
Tobias

Hello Gareth,
after a lot of google and try and error I finally resolved my issue at least on my local workstation here.
Basically this https://unix.stackexchange.com/questions/352237/avahi-daemon-and-local-domain-issues discussion over here had the solution that made it finally work.
First I've  changed the nsswitch.conf file (replaced the mdns4_minimal with mdns4), the issue was still there. Than I've added /etc/mdns.allow with the two entries .local and .local. and the applications immediately found the registry after restarting the avahi-daemon. Both changes are mandatory it seems, I've tried both file changes without the other, but it never worked.
I am not really familiar with mdns or avahi, so I don't really know exactly why this resolved the issues I had. The weird thing is that my configuration on Debian 9 didn't have the mdns.allow file nor the changes of the nsswitch.conf.
I have to test it tomorrow on the target machines as well, but I think this should resolve it the same way.
Thanks,
Tobias

That's a good investigation and a really helpful link. Thanks!
Do you know if your local network has a local unicast domain maybe??
@lo-simon I suggest reopening this and adding the Documentation label.

That's a good investigation and a really helpful link. Thanks!
Do you know if your local network has a local unicast domain maybe??
@lo-simon I suggest reopening this and adding the Documentation label.

The domain specified in the resolv.conf is not local if this answers your question, sorry I am not so familiar with this topic.


Update MapBox tile graphics

When we have more unified graphics design, update Vizicities tile visuals.
I created free account to Mapbox and successfully changed the tilemap.
https://www.dropbox.com/s/snttaby1cooxz3d/darker_style.png?dl=0

Map box theme is no changed.


fix: (Drupal) switch to sendmail transport always

The Issue
When you have other default transport than sendmail, DDEV doesn't switch correctly Drupal config to use Mailpit
How This PR Solves The Issue
It also sets the default transport as sendmail, besides changing the sendmail transport configuration.
Manual Testing Instructions
Configure another transport in Drupal Symfony Mailer and test that it is correctly overriden by DDEV to use Mailpit.

Thanks @doradovictor - Could you please update the OP to show what your situation was and why you ran into this? Thanks!

Thanks @doradovictor - Could you please update the OP to show what your situation was and why you ran into this? Thanks

I tried to explain it better! 😊

Sorry for the conflict here @doradovictor but there was a phpcs-based refactor that went in before yours,

https://github.com/ddev/ddev/pull/6217

Would you mind rebasing this (or just recreating it if that's easier)?

@rfay I followed Github instructions and merged master with my branch, resolving conflicts. Is it ok now? :)


inference on single image

Hello
How are you?
Thanks for contributing to this project.
I am going to do super-resolution of an image (with RGB-3 channels)of which size is 320x320.
python -m ssr.infer -opt ssr/options/infer_example.yml
I used the following options in the "infer_example.yml":
name: infer_example
model_type: SSRESRGANModel
scale: 4
num_gpu: auto
manual_seed: 0
data_dir: images/320/
n_lr_images: 1
save_path: testing_infer/
network_g:
type: SSR_RRDBNet
num_in_ch: 3  # number of Sentinel2 images * 3 channels (RGB)
num_out_ch: 3
num_feat: 64
num_block: 23
num_grow_ch: 32
path:
pretrain_network_g: weights/esrgan_1S2.pth
param_key_g: params_ema
strict_load_g: true
The inference script worked but I'm not sure if the outputted images are normal.
original low-resolution image (320x320 pixels in size)

lr.png (32x32 pixels in size)

sr.png (128x128 pixels in size)

I want to get 4x upscaled image (1280x1280 pixels in size) from original image.

Hi, thanks for you interest in our work!
Few things:

Looks like the modality of your low-res image is from google imagery? Our pretrained models will be expecting Sentinel-2.
I am unable to open your images to get a closer look, but want to make sure your low-res data input is in the shape [number_lr_images * 32, 32, 3]?
To get a super-resolved 1280x1280px image from the 320x320px image, I would l recommend chunking the 320x320 image into 32x32px chunks and feeding each chunk through inference individually, and then stitch these chunks together. This is because the model was trained on these small 32x32 chunks and might not do well with larger input.

Hi @piperwolters
Thanks for your reply.
Yes. the original low quality image is from google maps.
its shape is 320x320x3.
So all the trained model in this repo were trained on 32x32 pixel size of images, Right?
if so, should I apply the model "esrgan_1S2.pth" for inference on each 32x32px size of image chunk?
If the original image size is 640x640px, should I run the model 20x20=400 times?

Hi @rose-jinyang ,
As @piperwolters highlighted earlier, that the image size should be 32x32. Yes, as you guessed correctly that the model needs to run on each chunk of 32x32.
However, for larger images you can use something like gdal_retile (https://gdal.org/en/latest/programs/gdal_retile.html) to tiles the large image into size of 32x32 and after applying you can try something like gdal_merge (https://gdal.org/en/latest/programs/gdal_merge.html).
NOTE: gdal_merge might not work as expected as the images will lose all the geo-spatial information, once the set of images (LR) have been passed through the model, to make them SR.

Thank you @lokeshsk

Thanks @lokeshsk !
@rose-jinyang let me know if you have more questions.


empty string with "" quote

request.as_reader() convert empty string to with quoted ones ""

these screenshots will show how i countered this issue by order

as it shown by SS its added double quote to empty string

What is in request headers?
I'm pretty sure your client is sending a json string "", because there is no valid json without any body.


Update Tiberius to Latest Version (Fix Conversion Error)

What language are you using?
Rust
What version are you using?
0.3.3
What database are you using?
MSSQL
What dataframe are you using?
Arrow
Can you describe your bug?
There is a conversion error occurring on the tiberius side. Specifically, it returns an Err when attempting to convert f64(12.945). Fortunately, this issue has been fixed in newer versions of tiberius. Currently, Connector-X uses version 0.5.16 (from July 26, 2021), while the latest version is 0.12.3 (as of July 19, 2024).
Database setup if the error only happens on specific data or data type
I haven't extensively tested with different database setups, but the error occurs when attempting to convert f64(Some(12.945)).
Example query / code
My query is quite simple:
select a, b from X..Y where a in (42,45,50,85,151,160) and b >= '010124' and b < '300824'
fn build_sql_connector() -> SourceConn {
    let uri = format!("mssql://{username}:{password}@{server}:/{database}");
    SourceConn::try_from(uri.as_str()).expect("Uri read failed")
}

fn do_queries(
    queries: Vec<String>,
    sql_connection: SourceConn,
) -> Result<Vec<RecordBatch>, ArrowDestinationError> {
    let mut converted_queries = Vec::new();
    for query in queries {
        converted_queries.push(CXQuery::from(&query));
    }
    let destination =
        get_arrow(&sql_connection, None, &converted_queries).expect("Failed to do the query");

    destination.arrow()
}

fn convert_batch_to_dataframe(arrow_array: Vec<RecordBatch>) -> Vec<DataFrame> {
    let mut dataframe: Vec<DataFrame> = Vec::new();
    for batch in arrow_array.into_iter() {
        dataframe.push(record_batch_to_dataframe(&batch).unwrap_or_else(|error| {
            panic!("Error when converting from arrow to polars: {}", error);
        }));
    }

    dataframe
}

fn record_batch_to_dataframe(batch: &RecordBatch) -> Result<DataFrame, PolarsError> {
    let schema = batch.schema();
    let mut columns = Vec::with_capacity(batch.num_columns());
    for (i, column) in batch.columns().iter().enumerate() {
        let polars_array = Box::<dyn polars_array>::from(&**column);

        columns.push(Series::from_arrow(
            schema.fields().get(i).unwrap().name(),
            polars_array,
        )?);
    }
    Ok(DataFrame::from_iter(columns))
}

What is the error?
thread '' panicked at C:\Users\victor.reial.cargo\registry\src\index.crates.io-6f17d22bba15001f\tiberius-0.5.16\src\row.rs:370:27:
called Result::unwrap() on an Err value: Conversion("cannot interpret F64(Some(12.945)) as an Decimal value")

This would also fix issues with SQL Server pre login token not supported in 0.5 that were fixed in 0.9


Repo-cleanup

General repo cleanup

removed unused deps
moved source code into src directory
other things of that nature (see commits)

@FaBjE @gameguy682 If one of you guys could take a gander and give this a quick approval i'd like to try and release a new patch version of the extension today.
Production branch was in a pretty rough state and this PR should address that (besides my code ;))

@gameguy682


ConfigurationProvider.GetChildKeys returning earlierKeys

The summary of this method says:

Returns the list of keys that this provider has

But the code itself concats earlierKeys, so basically it returns not only keys that this particular provider has, but also the keys of all previous providers. What is the reason for this? I find it very confusing.

What are you trying to accomplish with the earlier keys

Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


How to distinguish a inline katex element from a block katex element?

Both generate the same html code.
How can I add a class or sth to the generate code?

Why do you want to know the difference? They do have different tokens so you could use walkTokens and look for inlineKatex or blockKatex token types.


Roll Plugins from 0609adb457fd to ec2041f82584 (6 revisions)

https://github.com/flutter/plugins/compare/0609adb457fd...ec2041f82584
2022-12-13<EMAIL_ADDRESS>Roll Flutter from bd0791be3ff2 to 15af81782e19 (27 revisions) (flutter/plugins#6837)
2022-12-13<EMAIL_ADDRESS>Update FlutterFire link (flutter/plugins#6835)
2022-12-12<EMAIL_ADDRESS>Reland "[google_maps_flutter] ios: re-enable test with popup #5312" (flutter/plugins#6783)
2022-12-12<EMAIL_ADDRESS>Roll Flutter from eefbe85c8bd4 to bd0791be3ff2 (25 revisions) (flutter/plugins#6832)
2022-12-12<EMAIL_ADDRESS>[google_maps_flutter] Modified README.md to fix minor syntax issues (flutter/plugins#6631)
2022-12-12<EMAIL_ADDRESS>[camera] Attempt to fix flaky new Android test (flutter/plugins#6831)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


deno bundle doesn't work on mod.ts

tried deno 1.5.1 all the way down to 1.0.0 - no luck
getting rid of _deps.ts and putting decodeString and encodeToString directly from deno encoding lib for each module _signature.ts and mod.ts make the bundle work fine

I don't think this is an issue for this library. I think it would be great if you would open this issue in the deno repo.

Currently djwt can not be bundled. Libraries bundling is a common and widely used Deno feature. I agree it might not be an issue with the djwt library itself, but an easy work around can be implemented, see the suggested fix above.
I think bundle doesn't work well with circular dependencies. I will definitely submit an issue with Deno itself.
But just food for thought, is _deps.ts really needed for djwt? If you strongly believe that it does, I'd like to understands what are the benefits so the broken Deno bundle of djwt library can be justified.

Deno bundle command doesn't error out but the bundled code doesn't contain the implementation for convertUint8ArrayToHex
which is essentially encodeToString function from<EMAIL_ADDRESS>that's how issue manifests itself:
ReferenceError: convertUint8ArrayToHex is not defined
    at file:///Users/agalushka/Documents/repos/test_djwt/djwt.js:2825:17
    at Array.map (<anonymous>)
    at decode4 (file:///Users/agalushka/Documents/repos/test_djwt/djwt.js:2815:62)
    at verify (file:///Users/agalushka/Documents/repos/test_djwt/djwt.js:2856:47)
    at main (file:///Users/agalushka/Documents/repos/test_djwt/main.js:55:41)

Just started with Deno, so not sure if I can provide much insight, but I am receiving the error:

An unsupported media type was attempted to be imported as a module.
Specifier<EMAIL_ADDRESS>MediaType: Unknown

when running import { create } from<EMAIL_ADDRESS>which seems related to this.

What exactly do I have to do to replicate this?

@timonson I've put together a quick test, follow the readme steps to reproduce https://github.com/alexanderGalushka/djwt_test

What exactly do I have to do in order to replicate this?
For me it occurs any try to import it, even if it is the only thing in the file.

i.e.
test.ts
import { create } from<EMAIL_ADDRESS>
Then running
deno run test.ts

results in the error

error: An unsupported media type was attempted to be imported as a module.
Specifier<EMAIL_ADDRESS>MediaType: Unknown

@bicarlsen it seems you are using a wrong url. Try this one<EMAIL_ADDRESS>

Great! That resolved the loading issue. Just a heads up, that URL was copied from the README on the deno.land page.

@timonson were you be able to reproduce deno bundle issue?

Yes, it seems to be a bundler bug. I would suggest that we wait a couple of more days and see if this https://github.com/swc-project/swc/pull/1212 will fix it. Are you OK with that?

totally

warning: Compiled module not found<EMAIL_ADDRESS>From: file:///home/bayo/Work/themeforest/Insight/controllers/authController.ts
If the source module contains only types, use import type and export type to import it instead.
error: Uncaught SyntaxError: The requested module<EMAIL_ADDRESS>does not provide an export named 'create

Hi @BayoKwendo , this seems to be a deno issue as well. Please take a look at this issue here https://github.com/timonson/djwt/issues/37

Hi @alexanderGalushka , I believe this issue has been fixed now or am I wrong?

I've just upgrade to deno v1.5.4, would like to test it out
deno bundle<EMAIL_ADDRESS>djwt.js

getting the following error:
Bundle<EMAIL_ADDRESS>Check<EMAIL_ADDRESS>error: No such file or directory (os error 2)

@timonson can u please try to bundle command as well to confirm

I tried your test out before I asked the question and it worked for me.
The single command deno bundle<EMAIL_ADDRESS>djwt.js works without error on my linux machine, too. Maybe try the --reload option?

@timonson seems to be working


add 500 server error test

Codecov Report

Merging #45 (eb81c29) into master (16803e1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #45   +/-   ##
=======================================
  Coverage   96.97%   96.97%
=======================================
  Files           7        7
  Lines         331      331
=======================================
  Hits          321      321
  Misses         10       10

Continue to review full report at Codecov.

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


Move srv.Handling selection to init()

Move this code to the server's init function to get it out of the
hotpath.

Codecov Report

Merging #931 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #931      +/-   ##
==========================================
- Coverage   54.99%   54.98%   -0.02%
==========================================
  Files          41       41
  Lines       10017    10016       -1
==========================================
- Hits         5509     5507       -2
- Misses       3481     3482       +1
  Partials     1027     1027

Impacted Files
Coverage Δ

server.go
63.85% <100%> (-0.36%)
:arrow_down:

Continue to review full report at Codecov.

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


heatmap visualization of the whole picture

Thanks for your brilliant work!
How can I get a heatmap visualization of the whole picture? Please don't just visualize the box part?

Maybe just change this line
https://github.com/pooya-mohammadi/yolov5-gradcam/blob/8ae1f5801b27e0ddcdc9f527cb308d7e4793cf2a/main.py#L31
in this way:
n_heatmat = (heatmap / 255).astype(np.float32)


Update Kubernetes dependencies to fix printing "unable to load initial CA bundle for" warning

Specifically to include https://github.com/kubernetes/kubernetes/commit/413960e49bea4b5558ea4dda3d18137eceaf7f16#diff-cede7efa8beef64baa0651bd73b39e27ad9508763719b48b4d88483a61964c89, as currently following warning is being printed for no reason:
W1203 10:38:04.249751       1 configmap_cafile_content.go:102] unable to load initial CA bundle for: "client-ca::kube-system::extension-apiserver-authentication::client-ca-file" due to: configmap "extension-apiserver-authentication" not found
W1203 10:38:04.249802       1 configmap_cafile_content.go:102] unable to load initial CA bundle for: "client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file" due to: configmap "extension-apiserver-authentication" not found

I'm currently attempting to update the dependencies, wish me luck :joy:

Good luck! :smile: Maybe you find https://github.com/kubernetes-sigs/clientgofix useful? I never used it, but found it some time ago.


No internet without homebridge running

Expected Behavior
If homebridge is not running my Pi is still able to ping google.com or other sites
Current Behavior
Without homebridge running my Pi can't ping google.com or other sites, this is the case with homebridge running on startup using systemd, but if thats disabled the Pi stops being connected until one of the users (with varying homebridge setups and permissions) runs the "homebridge" command.
Versions

Homebridge: 0.4.44
Node:       v10.8.0
OS:         the most recent version of dietpi, based on Stretch.

It turned out to be an issue with my unbound DNS running on the same Raspberry Pi. Changing the port in unbound gave me internet access regardless of homebridge running or not.


The link to download scrcpy 64 bit not giving me the software.

Hi Rom1v, I have been trying to download SCRCPY by clicking 64 bit link, but it keeps showing me ''This site can’t be reached''

For me it works: https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-win64-v2.1.1.zip
Did you use that URL?

Yes, i used the url. Infact, i got it from one of my favorites
youtuber(Kevin Stratvert) His is one of the sincere youtuber i had ever
seen. Could you please send me the scrcpy through mail? Thank you
On Fri., 1 Sep. 2023, 1:50 pm Romain Vimont, @.***>
wrote:

For me it works:
https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-win64-v2.1.1.zip
Did you use that URL?
—
Reply to this email directly, view it on GitHub
https://github.com/Genymobile/scrcpy/issues/4273#issuecomment-1702696393,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXM225RF7GIPSY2AFLN2LPLXYHKYXANCNFSM6AAAAAA4HQRHYI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Are you living in India by any chance?

No, I am not.
On Wed., 6 Sep. 2023, 2:06 pm Sebi, @.***> wrote:

Are you living in India by any chance?
—
Reply to this email directly, view it on GitHub
https://github.com/Genymobile/scrcpy/issues/4273#issuecomment-1708323896,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXM225SQ4L6BSV65RJYRB6LXZBYNFANCNFSM6AAAAAA4HQRHYI
.
You are receiving this because you authored the thread.Message ID:
@.***>

The link https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-win64-v2.1.1.zip is the official URL. If it does not work for you, you should report to github.

Thanks, I will!
On Tue., 12 Sep. 2023, 9:49 am Romain Vimont, @.***>
wrote:

The link
https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-win64-v2.1.1.zip
is the official URL. If it does not work for you, you should report to
github.
—
Reply to this email directly, view it on GitHub
https://github.com/Genymobile/scrcpy/issues/4273#issuecomment-1715282900,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXM225R3525NBORAJCHXFFTX2AOYBANCNFSM6AAAAAA4HQRHYI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Use a vpn

The same error now


[Tables] Fix AttributeError while reprocessing error

Resolves: https://github.com/Azure/azure-sdk-for-python/issues/27410
This PR fixes AttributeError when processing HttpResponseError in SDK level. We were using error_code property value to decode how to process, but error_code property doesn't exist like the error got when failed to authenticate the client. We should raise the original error when AttributeError occurs.

API change check
API changes are not detected in this pull request.


Issue with lib1 postbuild for GasProject2

There seems to be an issue during the postbuild for GasProject2.  The script in package.json is as follows:
"postbuild-project2": "copyfiles -u 2 build/common-components/lib1.js build/gas/GasProject2"
Nothing is actually copied because there is no lib1.js file in the common-components library. Is that supposed to be copying the entire lib1 folder, just lib1/index.js, or should tsconfig.json be configured to generate a lib1.js file?
Thanks,
Shay

@shaycapehart thanks for pointing it out. It should now be fixed.


sketchybar: 2.18.0 -> 2.19.1

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 266760 run on aarch64-darwin 1

1 package built:

sketchybar

Diff looks good to me<EMAIL_ADDRESS>It would be nice to review it if you could attach a diff or changelog.

Sounds good, will do in future.


Added dom doesn't disappear after returning to previous page

For example, when I use the single view demo, within the framework7 package, under dist/index.html.
When I get into about page and type this in console,
$$('.list-block ul').append('
hi
')
a row of hi will be added,
But when I click the back button and return to index, the column would not disappear.

Why should it disappear? Previous page is kept in DOM

Ok, I see.


Some intermediate files seem missing

for example

Thanks for pointing this out! I'm looking into it and hope to have an update in the next few days.

I think this issue is more related to the naacl-2022 project. I created a PR there that I plan on merging later today: https://github.com/nd-hal/naacl-2022/pull/1
I added a new file to the plotting_data folder that can be used with the generate_plots.R file to generate the plots and tables from the paper.
The Jupyter notebook is more for demonstration, if you have your own model outputs and want to calculate performance and fairness (it's still quite messy :)  )

I see. Thank you John!


[WIP] Get build information from Travis and Appveyor

Whenever Github tells us that a build for the auto branch has finished, we make an API call to Travis or Appveyor to grab the timing information.
Each build matrix entry gets its own database rows (although they share a build number), so for each commit we should get ~50 rows inserted.
I've tested that this works that  authenticated_handler works by manually triggering it, but it's possible that some plumbing with the webhooks is still wrong.
Closes #131

This isn't quite ready yet -- I still need to figure out how to map the Travis / Appveyor build information to a human-readable human name.
For Travis, I have the operating systems and the list of environment variables (e.g. linux and IMAGE=arm-android).
For Appveyor, I have the build name (e.g. Environment: MSYS_BITS=64, RUST_CONFIGURE_ARGS=--build=x86_64-pc-windows-msvc --enable-extended, SCRIPT=python x.py dist, DEPLOY_ALT=1).
@brson @dikaiosune @alexcrichton -- any thoughts on what the mapping should look like?

Also, both the Travis and Appveyor APIs let you attach an authentication token, but everything seems to work fine without them (probably because we're only GETting publicly available information). Should I add the authentication mechanism, or is leaving it out fine for now?

@alanhdu the mapping of env vars to "human readable" name changes over time, so I'd recommend not changing it at all when inserting into the db. Instead I'd rely on postprocessing later when loading from the db to generate a more human-readable name

I think there's probably a middle ground with the database structure that keeps things relatively structured but also doesn't lock us into any particular meaning for environment variables. We could do this a few ways. I think we probably want something roughly like:

a build table with a foreign key to a build_os table
a build_os table with only a few entries
a build_env table with individual key/value pairs
a build_build_env table for the build <-> build_env many-to-many association

Ideally this could be set up with diesel's newer associations feature (which I haven't tried yet)?

Also, maybe we want some way to define how the env var -> source/dest platform triple changes over time?

So I decided to just add more columns to the builds table and to convert the build information to a readable name on the JS side. I originally tried pulling out a builds_env table and adding a foreign key to builds like @dikaiosune suggested ... but making that change required much more invasive changes in the code base (and TBH I found diesel's associations pretty cumbersome to use).
Anyways, I think this is finally ready to merge!

So with backfilling, I think the answer is kind of.
With the Github API, we can get the statuses of any commit -- the problem is that I can't think of a good way to actually find all merge commits that we'd want to test. By going through @bors's commits on master, we could get all the successful builds, but failing builds are AFAICT force-pushed over in auto and there's no good way to find them from Github.
I suppose one option is to repeatedly poll the HEAD of the auto branch, which always holds the commit currently being tested -- the problem here is that auto only ever holds the commit while the build is taking place, so we'd need a way of waiting for builds to finish before storing the build information.
An alternative is that we write scrapers against the Travis and Appveyor APIs directly here. In some ways, this would be nicer because Travis and Appveyor are really the sources-of-truth here.

Makes sense. Webhooks have been pretty reliable overall. If we find in practice that we're missing a lot of builds, seems reasonable to revisit then.

Also... do we gain much from even using webhooks here if we end up using scrapers anyways? Webhooks for Github makes some sense, because we get updates relatively frequently and probably don't want to wait for the scrapers to update.
But with builds, we only really get a new build like once an hour (if that), so being like ten minutes behind or whatever doesn't seem like a big deal.

Ideally we'd set up webhooks from Travis/AppVeyor (I believe they both have support for them in their notification systems) and do scraping, but the solution you've PR'd seems like a good Pareto point to me, at least for now.

New commits look great to me. Want to merge?


@CheckReturnValue-style test for equals()

Internal CL 80471493 has some matches. Some of them are examples of issue 238. Many others appear to be intended to be assertions/verification checks (assertTrue(foo.equals(bar), which ideally we would rewrite the whole way to assertEquals). I see at least one like this:
boolean valid =
    a.equals(b);
    c.equals(d);

@kluever points out that we should probably do hashCode() and toString(), too.
(We're also having some discussion of constructors, but that's probably messier, since some constructors do work. Ideally we would make them do @CanIgnoreReturnValue, but this would require a bunch of cleanup.)

This happened long ago: https://github.com/google/error-prone/blob/03dc33879a9b3fdefbcea4c0082365abd5fe4a42/core/src/main/java/com/google/errorprone/bugpatterns/ReturnValueIgnored.java#L348


reference mapping

i am following https://docs.scvi-tools.org/en/stable/tutorials/notebooks/scrna/scarches_scvi_tools.html#reference-mapping-with-scanvi

import os
import tempfile
import anndata
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scanpy as sc
import scrublet as scr
import scvi
import seaborn as sns
import torch

scvi_model = SCVI(adata, **arches_params)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'SCVI' is not defined

Oh, I think we have a typo in that code block. It should be:
scvi_model = scvi.model.SCVI(adata, **arches_params)

Thanks for bringing this up!

Hi, this is because scVI and scANVI expect the input to be raw counts. This is necessary because the generative portions of the models use distributions that only support non-negative integers (Poisson and negative binomial).


create tables for database

The general layout of the database tables and their respective values.

`CREATE TABLE COFFEE_SHOP
(
shop_id    int             NOT NULL,
shop_name  varchar(50)     NOT NULL,
city       varchar(50)     NOT NULL,
state      char(2)         NOT NULL,
PRIMARY KEY (shop_id)
);
commit;
CREATE TABLE SUPPLIER
(
supplier_id          int            NOT NULL,
company_name         varchar(50)    NOT NULL,
country              varchar(30)    NOT NULL,
sales_contact_name   varchar(60)    NOT NULL,
email                varchar(50)    NOT NULL,
PRIMARY KEY (supplier_id)
);
commit;

CREATE TABLE COFFEE
(
coffee_id           int           NOT NULL,
shop_id             int           NOT NULL,
supplier_id         int           NOT NULL,
coffee_name         varchar(30)   NOT NULL,
price_per_pound     numeric(5,2)  NOT NULL,
PRIMARY KEY (coffee_id),
FOREIGN KEY (shop_id) REFERENCES COFFEE_SHOP (shop_id),
FOREIGN KEY (supplier_id) REFERENCES SUPPLIER (supplier_id)
);
commit;

CREATE TABLE EMPLOYEE
(
employee_id          int           NOT NULL,
first_name           varchar(30)   NOT NULL,
last_name            varchar(30)   NOT NULL,
hire_date            date          NOT NULL,
job_title            varchar(30)   NOT NULL,
shop_id              integer       NOT NULL,
PRIMARY KEY (employee_id),
FOREIGN KEY (shop_id) REFERENCES COFFEE_SHOP (shop_id)
);
commit;

`


RouteHandler::queryParams can be null

request.queryParams can return null, which throws a runtime error since the return type of RouteHandler.queryParams is set as a non-nullable String:
fun queryParams(key: String): String {
return request.queryParams(key)
}
There are probably other methods with the same problem (contentType?)

Same problem here, "solved it" by creating a wrapper function with a nullable return type:
fun Request.queryParamsNullable(queryParam: String): String? {
    return this.queryParams(queryParam)
}


Enhancement: Extend contenttype field remove & set with ContentTypeName

We try to align the options a bit with the other commands available within this command group. For the group contenttype field and for the commands remove & set I would suggest we add the option contentTypeName. That way contentTypeId & contentTypeName appear across all the contenttype commads.
Options

Option
Description

-n, --contentTypeName [contentTypeName]
The name of the content type for which to list fields. Specify either contentTypeId or contentTypeName.

Be sure to also update the description for contentTypeId and to make it optional.

Let's also make sure that we implement prompting when more than 1 content type with the specified name was found.

Looks good to me @Jwaegebaert 👍


The topologyKey can be any legal label value.

fixed #3968

This change is

/cc @kevin-wangzefeng

@fleeto Hope this is the last comment, please squash the commits to one commit, you can follow here https://stackoverflow.com/questions/5189560/squash-my-last-x-commits-together-using-git to squash ;-)

@gyliu513 Squashed

Why did you have ten commits now? @fleeto

just know five or six git command, too hard to me .

Another option for you is drop this PR and create another one. @fleeto

OK I'll try to open another PR

@fleeto @gyliu513 I can always squash the commits into one when I merge the PR. You don't have to open another PR.

Ah, thanks @chenopis , good to know!
@fleeto if you have not create a new PR, just open this one so that @chenopis can help you merge this ;-)

Thanks @gyliu513 .
I'd opened a new PR #4105, and  had made some changes to follow @chenopis 's advise.

alright, post a lgtm and want to get the lgtm label from @kevin-wangzefeng , thanks @fleeto


Placeholder styling

Describe the Feature Request
There is no way to change the style of the placeholder in inputs.
Describe Preferred Solution
I haven't found a solution to this problem yet.

You can do this in your code also.
input::placeholder {
  font-weight: bold;
  opacity: 0.5;
  color: red;
}

Here is the output and css

You can learn more from here:

I've seen this method, but how do this without css file ?

You cannot pass inline css to pseudo elements.


March 14, 2022 Community Meeting

Please add a topic in this thread and add a link to the GitHub issue associated with the topic.
Please make sure you give folks enough time to review/discuss the topic offline on GitHub before coming into the meeting
(optional) Paste the image of an animal smile_cat

shipwright-io/image issues https://github.com/shipwright-io/image/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement-proposal-request

Issues in image repository

Looks like issues to address findings in SHIP review

Next steps for the Shipwright runbook

Enrique will look at the feedback
TBD: When will we start, how will the calendar look (there would be a Google calendar instance for the shipwright-admin) ?

1Password for open source communities: https://github.com/1Password/1password-teams-open-source
Adam: Otávio is working on a proposal about triggers
Adam: Otávio has a PoC for a Tekton custom task implementation backed by a Shipwright BuildRun
Rolfe: will start editing the Shipwright documentation
/close


The Reorder component references theme tokens for styling.

Which package has an issue?
@yamada-ui/react
Package Version
1.2.8
Description
Yamada UI allows you to use components without applying a theme. It is a mistake to use theme tokens inside components.
const {
  className,
  orientation = "vertical",
  gap = "md",
  onChange,
  onCompleteChange,
  children,
  ...rest
} = omitThemeProps(mergedProps)

Link to Reproduction
No response
Steps to Reproduce

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

Browser
None
Operating System

[ ] macOS
[ ] Windows
[ ] Linux

Do you know how to fix the issue?
None
Are you willing to participate in fixing this issue and create a pull request with the fix?
None
Additional Information
No response

I've opened PR #940 for this issue!


Official Docker Image Error Response

Official Druid Docker Image:
https://hub.docker.com/r/apache/incubator-druid
Running default command produces error:
$>docker pull apache/incubator-druid
Using default tag: latest
Error response from daemon: manifest for apache/druid:latest not found"

not exactly  the fix but you can try to get  a specific version, that works.

Hi,
still having the same issue when trying to pull docker image

docker pull apache/druid
Using default tag: latest
Error response from daemon: manifest for apache/druid:latest not found: manifest unknown: manifest unknown


Use gem 'toml-rb' instead of 'toml'

Development of the toml gem has not been active in a while, despite bugs (see https://github.com/jm/toml/issues/41).
I've had good experiences with toml-rb. The latest release was on 6/12. Have you considered using it instead?

Hey @alvaromorales, sounds like it'd be a good idea to switch to toml-rb. If you'd PR it we'd be very grateful :)

Thanks! Lmk what you think.

:+1: please! :)

happy to merge the PR if it can be de-conflicted.

Great, see #98


Myrtille machines need to be rebooted after a certain amount of usage?

So, we've been experimenting with Myrtille in two of our services (both services use it in completely different ways), but in both cases, it just stops working at some point until the server is rebooted -- the servers aren't running out of memory, and the CPU utilization is usually around 40% or lower.
On the service that uses Myrtille more heavily (like thousands of connections a day), it needs to be rebooted a couple of times a day to keep Myrtille chugging along; but on the user facing one (which probably does about a hundred a day), it appears to only needs to be rebooted every couple of days or so...
Since memory isn't what's running out, it makes me wonder if there is some other unmanaged resource that Myrtille is using which is sometimes not being properly deallocated? -- I'm unsure what resource that might be, but rebooting the server which is experiencing the issue always fixes the problem.
Can you shed any light on anything we could do to make our Myrtille deployments more stable? (Other than scheduled reboots?)

Nice to hear that Myrtille can handle thousand of connections! :) I tried to make as much load tests as possible, but it's not always easy.
Could you be more accurate about the problem (need for reboot)? if the RAM and CPU are fine, what are the symptoms? (slowness of the web application, or the remote access ?)
When it happens, could you check the system resources (RAM, CPU, network, disk; you can use the resources monitor with windows 10 or performance monitor (aka perflogs) to identify the weakening resource) and the windows event logs (system and application, mostly regarding ASP.NET). You can also check the myrtille logs (located into the myrtille install path, "log" folder).
The FreeRDP C code, and the Myrtille C++ code into FreeRDP, are indeed allocating unmanaged resources, but I tried hard to deallocate everyone of them. There could be some memory leaks (I will recheck that), but if the memory isn't running out, it shouldn't be that.
I'm thinking more of a problem with the application pool ("MyrtilleAppPool") recycling. Did you changed something about that into IIS ? could you try to reduce the recycling interval? default is 1740mn (29 hours), you could try 360mn (6 hours), or based on specific hours.

And also, which version of Myrtille are you using?

Any news ?

Sorry, I've been busy -- (looks like you've been busy too, with new releases) -- I can try to figure out which version each service is using in the next couple of days and get back to you.
Right now I've got them on an automated reboot process to prevent the issue from occurring -- but they're definitely not maxing out CPU or memory -- they just fail to send back images from RDP connections at some point.
I think it might be instances of FreeRDP stacking up that weren't closed gracefully? -- Does the service detect old sessions that haven't had activity and close them automatically? Because I think the IIS service might just be leaving them hanging around a bit too long and forgetting about them or something.
I can work to get you more details in the next week.  Thanks for the response & sorry for the delay. :)

I don't think instances of FreeRDP are stacking up, unless you disabled the idle timeout for the rdp sessions and the myrtille application pool is recycled while some rdp sessions are active.
There are 3 securities by default:

if the browser is closed without disconnecting first, the FreeRDP instance is closed and thus the rdp session is disconnected after 1mn.
if there is no user activity (no inputs), the rdp server disconnects the rdp session after 20mn (idle timeout) and thus the FreeRDP instance is closed.
the .NET garbage collector is overloaded to disconnect and close the communication pipes (between the FreeRDP instance and the myrtille gateway) prior to releasing them. This have the effect to close the FreeRDP instance (as it loses the ability to read the inputs pipe) and thus disconnect the rdp session.

The problem with the application pool recycling is that it kills the w3wp.exe process (related to the application), which have the effect to free all the related resources (including the pipes handles), but without calling the garbage collector, thus without disconnecting the pipes first.
This can have some unexpected side effects, but shouldn't prevent myrtille from working (as new pipes are created for each new session).
Did you checked if you have something useful into into the windows event logs (system and application, regarding ASP.NET in particular)? also when the problem occurs, have a look to the tasks manager to see if there are unexpected FreeRDP instances (wfreerdp.exe).
You should also enable the myrtille logs (https://github.com/cedrozor/myrtille/blob/master/DOCUMENTATION.md#configuration--performance-tweaks--debug), RemoteSessionLog key; don't forget to restart the myrtille service.

I rechecked what happens when some rdp sessions are active and the applications pool is recycled.
The sessions are not disconnected as long the users don't reload their page (F5); if they do, the sessions are disconnected because the related http sessions don't exist anymore. It's not ideal but not bad either.
I think I will disable recycling in the next versions because there is already the garbage collector anyway, which is properly overloaded.
In the meantime, you can disable the recycling of "MyrtilleAppPool" in IIS by following these instructions: https://serverfault.com/questions/333907/what-should-i-do-to-make-sure-that-iis-does-not-recycle-my-application/333948#333948
Please tell me if that fixes the problem (you will need to disable the scheduled reboot to check that).

Thanks, I can give that a try. -- Apologies on the slowness of information coming out of my end.

Did you tried to disable the application pool recycling?

Hi , not sure if to open a new thread or to response here ,
I have this issue also , after a few days of usage , it stops working and I need to restart the service(not the server) in order for it to work again.
It happened on older version 1.6.1 and now I updated to 2.0.1 and still the same issue , on Windows Server 2012. Is this known issue ?I'll try to disable application pool recycling but , but still , something feels off.

I am also facing the same problem. I'll do the same test

@MrZakos Thanks for your feedback, it's important because it pinpoints the issue to the myrtille services instead of web application.
It looks like there is something (idle timeout, concurrent connections limit, unhandled crash, etc ?) that make some or all of the WCF services or callbacks to malfunction (after some time, load or situation) and the way to fix it is to restart Myrtille.Services (and thus the self-hosted WCF services).
It it's a timeout issue, extend it (and eventually set it infinite).
If it's something related to the load (@BrainSlugs83 mentioned thousand of connections), increase the quotas or limits or perhaps change the binding type.
Otherwise, there may be something into the logs. Always check Myrtille.Services.log and the other logs into the myrtille log folder.
If you know what you are doing, you can tweak bin\Myrtille.Services.exe.config and Web.config accordingly.
I will take a closer look at this issue asap.

Hi , did you find the root cause ?
I don't see anything helpful in Myrtille.Services.log file  , how can I send you the log file ?
Tweaking and playing with WCF configuration can be tricky and complicated without finding root cause , like shooting in the dark.
We are currently running a script which restarting the service every day.

Hi, sorry didn't had the time to investigate further.
Could you tell me if you use myrtille in default or enterprise mode? do you have something in the logs (Myrtille.Web.log and Myrille.Services.log more specifically, into the myrtille log folder). Do you have something in the windows event logs (application and system?).
Thanks!

Hi,
We use default mode ,
didn't find anything in windows events logs ,how can I contact your for sending files ?

You can attach them in a comment for this issue

This is normally fixed into version 2.3.0.
For all those facing (or having faced) this problem, could you check if all is ok now? (and reply in this thread).

Fixed


Make demo Pi's

In progress. Blocked by https://github.com/byuoitav/av-api/issues/99.

Just gotta put the Pi's in the database in the correct rooms.


Minor fix grib.py

Minor fix, since the .reshape (line 325) messes up the values of the times and members the np.swapaxes method reverses the axes without scrambling the values

Minor fix, since the .reshape (line 325) messes up the values of the times and members the np.swapaxes method reverses the axes without scrambling the values

Vitor Can you tell me which model / file did you try to open? What structure of data, multiple members and times?


Multi-pages with layout?

how to replace main content while navigate through router

You can nest functions like this:
const app = choo()

app.router((route) => [
  route('/foo', common(fooView)),
  route('/bar', common(barView))
])

function common (mainView) {
  return function (params, state, send) {
    return html`
      sidebar content
      ${mainView(params, state, send)}
    `
  }
}

function fooView (params, state, send) {
  return html`<div>foo</div>`
}

function barView (params, state, send) {
  return html`<div>bar</div>`
}

The morphdom algorithm should do the work to ensure these transitions happen as smooth as possible. Does this answer your question?

@yoshuawuyts I think that should be view` instead of html`.

@hew oh, I nowadays usually do const html = choo.view to have parity with const css = require('sheetify') from sheetify
Using css and html as var names makes stuff pretty straight forward I've found :sparkles:

@yoshuawuyts That makes sense. 👍🏽

I'm going to assume this solves your issue. Thanks for opening! :sparkles:


Link Overlay does not support url nesting yet

Our Link Overlay only returns the urlname. It should also return the url levels if url nesting is enabled

It is not such a big issue. The page gets redirected to nested url and url nesting is disabled by default anyways. So I will clear the milestone.


⚠ Fortnite has degraded performance

In 05bde51, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1694 ms

Resolved: Fortnite performance has improved in 6b07a93.


Add option to exclude properties from the insert and/or update portions in BulkInsertOrUpdate method.

Add option to exclude properties from the insert and/or update portions in BulkInsertOrUpdate method.
Let's say we have CreationDate/CreationBy properties - it should be inserted but never updated. We also have UpdateDate/UpdateBy properties - It should update when the row is updated but not because those values were updated. The four new properties PropertiesToIncludeOnCompare, PropertiesToExcludeOnCompare, PropertiesToIncludeOnUpdate, and PropertiesToExcludeOnUpdate allow for those columns to be specified. An added benefit of these new features is that even if they are not explicitly implimented by the user, MERGE performance is greatly improved. One of the slowest operations on a database is writing. The EXISTS / EXCEPT clause on the MERGE command will now only update rows that have changes instead of all records that have a match in the temp table.

Thx for contrib.

Nice except this is wrong:
        bool AreSpecifiedPropertiesToIncludeOnUpdate = BulkConfig.PropertiesToExcludeOnUpdate?.Count() > 0;
            bool AreSpecifiedPropertiesToExcludeOnUpdate = BulkConfig.PropertiesToIncludeOnUpdate?.Count() > 0;

should be

    bool AreSpecifiedPropertiesToIncludeOnUpdate = BulkConfig.PropertiesToIncludeOnUpdate?.Count() > 0;
        bool AreSpecifiedPropertiesToExcludeOnUpdate = BulkConfig.PropertiesToExcludeOnUpdate?.Count() > 0;

@jr01  Fixed 👍

This config is not default, it is opt-in, so no need to opt-out, just don't set it.

@borisdj
Nope, it is enabled by default. Quoting the OP:
An added benefit of these new features is that even if they are not explicitly implimented by the user, MERGE performance is greatly improved. One of the slowest operations on a database is writing. The EXISTS / EXCEPT clause on the MERGE command will now only update rows that have changes instead of all records that have a match in the temp table.
Looking at the code, the only way to disable this is to have a spatial column in the table:
https://github.com/borisdj/EFCore.BulkExtensions/blob/f69b6d034d89df5fb5fb7fdb229ab9e10ac6671c/EFCore.BulkExtensions/SqlQueryBuilder.cs#L191-L196

I thought you only meant about new configs Properties-ToInclude/ToExclude-OnCompare/OnUpdate which are empty by default, but are referring to sql EXCEPT code. I'll add config for disabling this segment.

Added with v3.4.5

SkipClauseExistsExcept is renamed to OmitClauseExistsExcept with v3.5.6


rkt: refactor fetch, add tests

Unfortunately the recent fetch refactoring inverted the logic from what it
should be; we want to first check if the supplied image name is a valid URL,
and, if so, we should just pass it through. Otherwise, newDiscoveryApp will
return bogus results because discovery.NewAppFromString does not expect to get
URLs.
Also adds a few test cases for NewDiscoveryApp.

LGTM


Running Detox on a real Android device - supported?

I'm trying to run my tests on a real device or in a Genymotion cloud AWS instance.
I've tried with a local Android emulator as device type android.emulator and a local Genymotion emulator as android.attached; both work correctly.  When I try to run android.attached with a real device ID, things start to go wrong.  The application builds and installs successfully, and it even launches successfully as well.   But then nothing ever happens until the Jest tests timeout with errors about device and element not being defined.
Looking at the log files, it seems like the test can't connect to the Detox server but I'm not sure if I'm reading things correctly.

Detox: 9.0.4
React Native: 0.56
Node: 10.5
Device: Google Pixel / ZTE Z983 / Genymotion AWS 8.0 image
Xcode: n/a
macOS: High Sierra

Here's my configuration...
        "android.wallet.device": {
                "binaryPath": "android/app/build/outputs/apk/flexwallet/release/app-flexwallet-release.apk",
                "build": "cd android && ./gradlew assembleFlexwalletRelease assembleAndroidTest -DtestBuildType=release && cd ..",
                "type": "android.attached",
                "name": "9802d885"
            },

...and I launch it like so....
detox test --configuration=android.wallet.device --runner-config=test/detox-jest.json --specs=e2e/ --artifacts-location=./.e2e/flexmobile --loglevel=trace --record-logs=all

... and I get these logs: detox_pid_87613.log and test.log

I read through the source code and it looks like running detox run-server and adding:
"session": {
            "sessionId": "manualsession",
            "server": "ws://<IP_ADDRESS>:8099" #output from detox run-server
        },```

to my Detox config that gets passed to init() was what I needed to do.

Is this documented somewhere I missed?

I'm interested in this as well. I'm surprised that this issue is new. For iOS #95 is the second oldest open issue.

Upon further research, it seems that running adb reverse tcp:8099 tcp:8099 and running the detox server on 8099 every time is the best solution.


Add -o --output-dir option

this is helpful for

defining the output directory for extracted control plane
configuration in general
as well as to run the tool in the loop against various target
control planes and save the output in a respective directories

Signed-off-by: Anton Arapov<EMAIL_ADDRESS>

for instance this makes possible to run something like this in shell:
for i in configs/.yaml; do
go run ../cpma.go --config $i -o $(basename ${i%.})
done;


Track Shard-Snapshot Index Generation at Repository Root

Summary of the changes / Why this improves CrateDB
Based on https://github.com/elastic/elasticsearch/pull/46250
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

retest this please

retest this please

@mkleen Do you intend to squash this to a single commit or are there several that you'd like to keep? If so - could you squash first into as many commits as you'd like to keep in the end?

@mkleen Do you intend to squash this to a single commit or are there several that you'd like to keep? If so - could you squash first into as many commits as you'd like to keep in the end?

This is suppose to be one single commit.


Incorrect behavior for daemon restart

Camera board id: any (hi3518cv100)
OpenIPC version: <IP_ADDRESS>-lite

Something wrong with majestic daemonization.
Steps to reproduce:

Log in (ssh) to system
do majestic restart
log out

Expectations: daemons continues to work.
Real life: daemon exits, logread line:
Jan 11 16:38:49 XXX-openipc authpriv.info dropbear[15099]: Exit (root) from <<IP_ADDRESS>:57134>: Keepalive timeout

is this still relevant?


Limit Tracking Update

Adding support to limited tracking
@dmitrig01 @derrickstaten

The iOS version is https://github.com/BranchMetrics/ios-branch-deep-linking/pull/754

I can't give a great review, but it looks fine to me

Test steps

Add Branch.getInstance().setLimitFacebookTracking(true) in MainActivity#onCreate() method.
Open application and create few v1 and v2 api calls
Expected result
For v1 requests there should be limit_facebook_tracking added to the request body
For v2 requests there should be limit_facebook_tracking added to the user_data.
There should not be  limit_facebook_tracking added to the request  if setLimitFacebookTracking() not called


Query: Entra ID Local Device Join Information and Transport Key Registry Keys Access

Describe the bug
Query fails to run as a Sentinel Hunting Query or a Sentinel Analytics. The query does work in Log Analytics Workspace
To Reproduce
Steps to reproduce the behavior:

Go to  'Sentinel click on Analytics
Click on 'create schedle alert'
Scroll down to 'add query to query section
Server Error, view query results works fine, but cannot save alert rule

Expected behavior
Rule should save, query should function
Screenshots
If applicable, add screenshots to help explain your problem.
The server encountered a temporary error and could not complete your request.
Desktop (please complete the following information):

OS: [e.g. iOS] Windows 10
Browser [e.g. chrome, safari] Edge
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Azure Gov Environment

Hi @rogfleming ,Could you please share more details  with screen shot,Which solution,Which query you are facing the issue?

Hi @rogfleming, Gentle Reminder: We are waiting for your response on this issue. If you still need to keep this issue active, please respond to it in the next 2 days. If we don't receive a response by 13-02-2023 date, we will be closing this issue.
Thanks!

ince we have not received a response in the last 5 days, we are closing your issue (https://github.com/Azure/Azure-Sentinel/issues/9874) as per our standard operating procedures. If you still need support for this issue, feel free to re-open at any time. Thank you for your co-operation!


[TITS-5262] Properly color boilerplate links

Oh yeah, I was wondering why the title says "headings" 😄


Tutorial "Simple Extensions" shows code in hints(Chinese(Simplified))

Describe the bug
Tutorial "Simple Extensions" shows code in hints(Chinese(Simplified))
Steps to reproduce the behavior

Navigate to https://arcade.makecode.com/beta#editor
Click "More..." -> "Language" -> choose "Chinese (Simplified)"
Back to home page and open tutorial "Simple Extensions"
Click "hint" on each step and observe

Expect behavior
Hint should show blocks
Actual behavior
Tutorial "Simple Extensions" shows code in hints(Chinese(Simplified))

Additional context

OS: Windows(this bug repro on each browser)
Machine build: 17763.1.amd64fre.rs5_release.180914-1434
arcade version: 0.12.12
Microsoft MakeCode version: 5.17.25

Corgi not decompiling in the tutorial?

Looks like package isn't loading, I think because tutorial has the package snippet translated here: https://crowdin.com/translate/kindscript/3803/en-zhcn#231217 don't think I have the ability to delete those

@ganicke Can you fix this translation?

Yea, just had to approve @jwunderl 's change back to corgio. Those are tricky since the translators might not know that it's a package label.

Back in action...

Looks like set tile needs an updated translation though.


How can I pause and resume the stream?

I'm looking for functionality to pause and resume the stream. I'm using node-record-lpcm16 with Sonus and Snowboy. The problem is that the provided pause() and resume() are not working with node-record-lpcm16.
https://github.com/evancohen/sonus/issues/48#issuecomment-306634719
I tried to use https://www.npmjs.com/package/mic but ran into issues...

Closing because this is a duplicate issue. Please see the other thread.


[v3-beta][types] Improve types

PR for topic

improve type of generic chart type
improve type for the Chart update method arguments
allow to set/overwrite data an existing Chart instance
added plugins argument for the chart configuration

I am getting
ERROR: .../node_modules/chart.js/helpers/chunks/index.d.ts:1285:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
I fixed it by adding declare.


pypi Availability

Any chance you'll add this to pypi? I'd love to be able to use it without having to copy the code into a project.

Added to pypi: https://pypi.python.org/pypi/LFUCache
Can you please test.

Thanks, looks good :+1:


string fragments don't get defaults

//my-fragment.js
titles: DS.hasManyFragments()

//my-parent-fragment.js
myFragment: hasOneFragment('my-fragment', {
  defaultValue: {
    titles: ['a', 'b']
  }
})

The default values are never set.

Have went through the source/console and could find no way to get those defaults..

Not sure what the context of each of those snippets is... or what exactly is the issue. Here's how default values work:
// app/models/thing.js
export default DS.ModelFragment.extend({
  titles: DS.hasManyFragments(null, { defaultValue: [ 'a', 'b' ] })
});

var thing = this.get('store').createFragment('thing');

thing.get('titles') // [ 'a', 'b' ]

Note that default values are only set on newly created records.

@slindberg sorry for being vague. I've updated my example above.

Ah, I see now. This likely has to do with setting a default value for a nested fragment array. I'll look into this when I have some spare cycles.

@knownasilya I added a test case that covers this behavior. If you are able to reproduce this in a test, jsbin, etc. feel free to reopen.

@knownasilya If this is not working for you, let's make it work. I just couldn't seem to reproduce the behavior you are seeing in a test. Can you take a look at the passing test case I linked to above and see if it is testing what you're trying to do?


support cocoapods

support cocoapods

Thank you for your interest! Unfortunately somebody has already claimed the name 'UTMConversion' on CocoaPods. That means that we can't publish right now. But I've filed a form with CocoaPods explaining that the name (and framework) actually belongs to me, so hopefully they will give me ownership of the name.

@peterringset that's great. for now i'll put the address of your repo in my Podfile and check back in a little while to see if cocoapods approved the transfer. Thanks!

CocoaPods actually got back to me yesterday, so you can install (version 1.2.1) through normal CocoaPods integration.


Route parameters

Functionality to have a route with a dynamic parameter. Example:
test.com/posts/1
1 would be the dynamic parameter.

Included in version:
https://github.com/byr0n3/react-even-better-router-dom/releases/tag/0.0.2


Hitting enter at end does not break out

No matter what I do, I cannot get it to break out of unordered or ordered lists by hitting enter an extra time at the end. It just doesn't work.
I have other plugins but I have disabled them all and it still doesn't work.
I'm using 2.0.0-beta9 of the plugins editor. I'm on OSX.

You have to defer the setting of the editor state in the handleReturn check.
defer(() => {setEditorState(editorState)});

I can reproduce this issue, and the proposed fix does work.

#8 is a better fix for this.

Closed in https://github.com/icelab/draft-js-autolist-plugin/pull/8


Error installing setup-envtest

Describe the bug
All Makefile targets that depend on envtest fails because  of https://github.com/kubernetes-sigs/controller-runtime/issues/2720

[!TIP]
Vote this issue reacting with :+1: or :-1:

Fixed by https://github.com/artemiscloud/activemq-artemis-operator/commit/f1d9e36e9964a9a3fbb5dd3bb68c4dcd25d49d07


[Bug] Assert not waiting until assertion succeeds

chainsaw version Version
v0.2.8
Description
Hey there,
just moving from KUTTL to chainsaw (thanks for the great tool!).
I am not completely sure, if my issue is really a bug or a conceptional misunderstanding.
I am creating resources in a step and then trying to check the status of the resources for the expected attributes.
The tests sometimes succeeds, but often are failing due to assertions raising errors due to not matching my expectations.
I think it is, because the fields which are tested are not yet in the status auf the resources.
My understanding was, that the assert parts are retried until the timeout is reached. Am I wrong?
Steps to reproduce
I have the following test:
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
  name: pstest-simple
spec:
  bindings:
    - name: test_name
      value: (join('-',['docint', random('[a-z]{5}')]))
  catch:
    - command:
        entrypoint: kubectl
        args:
          - "get"
          - "-o"
          - "yaml"
          - "-n"
          - "default"
          - "MyResource"
  steps:
    - try:
        - apply:
            file: 00-install.yaml
        - assert:
            file: 00-assert.yaml
            timeout: 10m

The install file (00-install.yaml):
# 00-install.yaml
apiVersion: my.resources.com/v1alpha1
kind: MyResource
metadata:
  name: ($test_name)
spec: { }

And the assertion:
apiVersion: my.resources.com/v1alpha1
kind: MyResource
metadata:
  name: ($test_name)
spec: { }
status:
  (conditions[?type == 'Ready']):
    - status: "True"
  (regex_match('[\d\w]{4}', randomSuffix)): true
  privateEndpoint:
    (regex_match('^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$', privateIpAddress)): true

The resource to be checked:
apiVersion: my.resources.com/v1alpha1
kind: MyResource
metadata:
  finalizers:
  - finalizer.apiextensions.crossplane.io
  name: pstest
  namespace: default
spec:
  compositeDeletePolicy: Background
  compositionRef:
    name: crossplane-composition
  compositionRevisionRef:
    name: crossplane-composition-fad1551
  compositionUpdatePolicy: Automatic
  resourceRef:
    apiVersion: my.resources.com/v1alpha1
    kind: MyResource
    name: pstest
status:
  conditions:
  - lastTransitionTime: "2024-08-01T18:15:33Z"
    reason: ReconcileSuccess
    status: "True"
    type: Synced
  - lastTransitionTime: "2024-08-01T18:17:53Z"
    reason: Creating
    status: "False"
    type: Ready
#  privateEndpoint:
#    conditions:
#    - lastTransitionTime: "2024-08-01T18:17:29Z"
#      reason: Available
#      status: "True"
#      type: Ready
#    - lastTransitionTime: "2024-08-01T18:16:44Z"
#      reason: ReconcileSuccess
#      status: "True"
#      type: Synced
#    - lastTransitionTime: "2024-08-01T18:17:27Z"
#      reason: Success
#      status: "True"
#      type: LastAsyncOperation
#    privateIpAddress: <IP_ADDRESS>
  randomSuffix: vpjm

The part with the comments is not available directly, only after crossplane created the corresponding resources and copied the attributes to the status.
Expected behavior
I would expect the assert being retried, until it success completely or the timeout of 10 minutes is reached.
Screenshots
No response
Logs
| 16:31:10 | pstest-simple | step-1    | ASSERT    | RUN   | my.resources.com/v1alpha1/MyResource @ default/docint-oxefb
    | 16:32:20 | pstest-simple | step-1    | ASSERT    | ERROR | my.resources.com/v1alpha1/MyResource @ default/docint-oxefb
        === ERROR
        -----------------------------------------------------------------------------------------
        my.resources.com/v1alpha1/MyResource/default/docint-oxefb
        -----------------------------------------------------------------------------------------
        * status.(conditions[?type == 'Ready'])[0].status: Invalid value: "False": Expected value: "True"
        * status.privateEndpoint: Required value: field not found in the input object

        --- expected
        +++ actual
        @@ -4,10 +4,5 @@
           name: docint-oxefb
           namespace: default
         spec: {}
        -status:
        -  (conditions[?type == 'Ready']):
        -  - status: "True"
        -  (regex_match('[\d\w]{4}', randomSuffix)): true
        -  privateEndpoint:
        -    (regex_match('^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$', privateIpAddress)): true
        +status: {}

Slack discussion
No response
Troubleshooting

[X] I have searched other issues in this repository and mine is not recorded.

I would expect the assert being retried, until it success completely or the timeout of 10 minutes is reached.

This is the expected behaviour.
From your logs it looks like the failure happens after 1m10s 🤔
   | 16:31:10 | pstest-simple | step-1    | ASSERT    | RUN   | my.resources.com/v1alpha1/MyResource @ default/docint-oxefb
   | 16:32:20 | pstest-simple | step-1    | ASSERT    | ERROR | my.resources.com/v1alpha1/MyResource @ default/docint-oxefb

Hmm, i tried to reproduce with something similar but the 10m timeout was correctly honoured.
Are you using v0.2.8 ?

Hmm, i tried to reproduce with something similar but the 10m timeout was correctly honoured.
Are you using v0.2.8 ?

Thanks for trying!
Yes,  I am using v0.2.8 (started with v0.2.7  which behaved the same).
What irritates me: Sometimes the whole tests succeeds after 0,5seconds, which is completely impossible.
I will try to create a repository with the complete example

What irritates me: Sometimes the whole tests succeeds after 0,5seconds, which is completely impossible.

There's something mysterious. I'm not sure how to help you but right now i couldn't map your issue to a bug in chainsaw.

I will try to create a repository with the complete example

Sure, that may help.

Thanks for your time.
I made the smallest example I can think of. You can find it here: https://github.com/patst/chainsaw-assertion-issue
I patch the status and would expect the assertion being retried (until the timeout hits)

Not an expect, but maybe it is related to the different treatment of errors ( https://github.com/kyverno/chainsaw/blob/f2cc745f608afb40bc0805acaae59677029c7802/pkg/runner/operations/assert/operation.go#L103 ).
In my example the assertion fails because the expression cannot be evaluated because the required keys are missing (because they are created at a later point).
This seems to lead to an 'real' error, instead of an entry in the errorList( see https://github.com/kyverno/kyverno-json/blob/aade3d42fc0e41e924489209dd44a8fd5974fd9e/pkg/engine/assert/parse.go#L90 ).

Now that's interesting:
        status.(regex_match('[\d\w]{4}', randomSuffix)): Internal error: invalid type for: <nil>, expected: []functions.JpType{"string", "number"}

Try with:
  (regex_match('[\d\w]{4}', randomSuffix || '')): true

Or:
randomSuffix:
  (regex_match('[\d\w]{4}', @)): true

Or:
randomSuffix:
  (regex_match('[\d\w]{4}', @)): true

I used that option and it did work very fine.
Thank you for the awesome and super fast support!

Glad it is now fixed!

BTW, if you are a happy chainsaw adopter and want to tell the world feel free to open a PR https://github.com/kyverno/chainsaw/blob/main/ADOPTERS.md =)


update: perfect translation

Some modification of the traditional Chinese characters

Thanks!

I am honored to be able to participate in this project :)


Added Two Games Developed In C

PR accepted @Paramhans-Singh
Successfully merged to HacktoberFest_22  repo.
Need to Star this repo incase not done.
🚀🚀👍


 Please update the label and/or status accordingly.

Nagging Assignee @andrehentz: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrehentz: It has been 45 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Endorse.

Nagging Assignee @andrehentz: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrehentz: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

I see pow in r1.10 and I have a way to get rid of the SquaredDifference in moments so yeah!

@gbildson Thx, you inspired me!
In my situation , I changed the tensorflow code and fix it!
change the code in tensorflow/python/ops/nn_impl.py
math_ops.squared_difference(y, array_ops.stop_gradient(mean)),
to
'math_ops.square(math_ops.subtract(y, array_ops.stop_gradient(mean))),'
which is in mements def.

Nagging Assignee @andrehentz: It has been 17 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Is SquaredDifference being used in your training graph or eval graph. Right now you should only try to convert an eval graph which should probably not have the squared difference operation (commonly used in the loss). So create a separate eval graph and freeze the training checkpoint into that.
If SquaredDifference is needed in your eval graph, ignore my above comment. And I have tracked your ask of squared difference in the aggregation issue above.

I'm using InstanceNormalization in a trained Image Transformation Network.  This uses tf.moments to do it's thing so I do need it.  My realization and workaround was that I can replace the squared_difference in tf.moments with a tf.subtraction and tf.multiply to do the same.  This appears to work although may not be as performant.
Thanks-greg
On Saturday, August 18, 2018, 8:39:36 PM EDT, Suharsh Sivakumar<EMAIL_ADDRESS>wrote:
Is SquaredDifference being used in your training graph or eval graph. Right now you should only try to convert an eval graph which should probably not have the squared difference operation (commonly used in the loss). So create a separate eval graph and freeze the training checkpoint into that.
If SquaredDifference is needed in your eval graph, ignore my above comment. And I have tracked your ask of squared difference in the aggregation issue above.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

dear gbildson,
Can you please explain how did you bypassed the usage of tf.moments (in order to calculate the var and then var^0.5 for the instance normalization )?
Thanks

Let me try that more cleanly ...
I went into the tf.moments source and changed it to use supported methods:
    diff = math_ops.subtract(y, array_ops.stop_gradient(mean))     variance = math_ops.reduce_mean(         #math_ops.squared_difference(y, array_ops.stop_gradient(mean)),         math_ops.multiply(diff,diff),         axes,         keepdims=True,         name="variance")
and in recent tflite versions, pow is supported so this works in instance normalization:
           normalized = (inputs - mu) / (sigma_sq + EPSILON) ** .5

Now I'm just wondering about the performance and memory overhead of that manual squared_difference.

Thanks @gbildson ,
I can try to benchmark the model with those changes, and I will try to update. My last solution did use a lot of memory to perform Square operations:
2018-10-24 15:35:10.255607: I tensorflow/core/util/stat_summarizer.cc:85] ============================== Summary by node type ==============================
2018-10-24 15:35:10.255611: I tensorflow/core/util/stat_summarizer.cc:85]                    [Node type]          [count]         [avg ms]         [avg %]          [cdf %]       [mem KB]      [times called]
2018-10-24 15:35:10.255616: I tensorflow/core/util/stat_summarizer.cc:85]                         Conv2D               14         5227.149         76.688%          76.688%     1152921.625            14
2018-10-24 15:35:10.255620: I tensorflow/core/util/stat_summarizer.cc:85]            Conv2DBackpropInput                2          614.725          9.019%          85.707%     1293926.375             2
2018-10-24 15:35:10.255625: I tensorflow/core/util/stat_summarizer.cc:85]                           Mean               64          283.185          4.155%          89.861%       7431.704             64
2018-10-24 15:35:10.255629: I tensorflow/core/util/stat_summarizer.cc:85]                            Mul               33          150.679          2.211%          92.072%          0.000             33
2018-10-24 15:35:10.255633: I tensorflow/core/util/stat_summarizer.cc:85]                            Add               32          142.681          2.093%          94.165%          0.000             32
2018-10-24 15:35:10.255642: I tensorflow/core/util/stat_summarizer.cc:85]                            Sub               16          133.475          1.958%          96.123%          0.000             16
2018-10-24 15:35:10.255649: I tensorflow/core/util/stat_summarizer.cc:85]                         Square               16          126.811          1.860%          97.984%     1551052.750            16
2018-10-24 15:35:10.255657: I tensorflow/core/util/stat_summarizer.cc:85]                           Relu               10           82.338          1.208%          99.192%          0.000             10
2018-10-24 15:35:10.255664: I tensorflow/core/util/stat_summarizer.cc:85]                           AddN                5           52.525          0.771%          99.962%          0.000              5
2018-10-24 15:35:10.255675: I tensorflow/core/util/stat_summarizer.cc:85]                        Sigmoid                1            2.446          0.036%          99.998%          0.000              1
2018-10-24 15:35:10.255682: I tensorflow/core/util/stat_summarizer.cc:85]                          Const               54            0.069          0.001%          99.999%          0.000             54
2018-10-24 15:35:10.255690: I tensorflow/core/util/stat_summarizer.cc:85]                          Rsqrt               16            0.043          0.001%         100.000%          0.000             16
2018-10-24 15:35:10.255697: I tensorflow/core/util/stat_summarizer.cc:85]                        _Retval                1            0.005          0.000%         100.000%          0.000              1
2018-10-24 15:35:10.255705: I tensorflow/core/util/stat_summarizer.cc:85]                           NoOp                1            0.004          0.000%         100.000%          0.000              1
2018-10-24 15:35:10.255714: I tensorflow/core/util/stat_summarizer.cc:85]                           _Arg                1            0.001          0.000%         100.000%          0.000              1


[Update Package] Microsoft.VisualStudioCode: version 1.67.2: update installer URL

Microsoft.VisualStudioCode: version 1.67.2: update installer URLs to current CDN.
This PR is part of a bulk update.
resolves #201587
Microsoft Reviewers: Open in CodeFlow

Manual Validation ended with:

2024-12-23 10:32:55.546 [CLI ] The installer cannot be run from an administrator context.

(Automated response - build 931.)


Release using SBT

Ensure that we can release using SBT and publish the artifacts for others to use, i.e. maven central, etc.

We still need to implement deployment through a build pipeline. Kind of a hassle to do this manually

I split off the automated deployment to its own issue in #46, so we can close this one.


Find a good replacement for klen/mixer

https://github.com/klen/mixer seems completely abandoned. We need to find another fake model generator

he update it now


Small bug fixes

@JS-BC this looks fine. pull from next to refresh it and then you can merge. Make sure to do a full npm run build from root after you do this all to make sure everything still builds as intended and run the project.


Beta 0.5.1 won't install app

I wanted to try Taskboard for OSX  Downloaded from CNet.  Doesn't open

Versions prior to v1.0.0 are not supported. Also, no idea what CNet download you're talking about. The only valid source is here on GitHub.


Can't pipe output of command line tools on Windows (arangodump/arangorestore)

My Environment

ArangoDB Version:       3.7.1
Storage Engine:             RocksDB
Deployment Mode:       Single Server
Deployment Strategy:
Configuration:
Infrastructure:
Operating System:        Windows 10
Total RAM in your machine:
Disks in use:
Used Package:

Component, Query & Data
Affected feature:

Calling arangodump and arangorestore on Windows works but piping the output gives no output at all.
Writing software that calls these processes on windows can't get any information/output on progress or success of these calls.
I am using golang and want to use pipes because arangorestore is potentially a long running process and I want to get the output in real time while arangorestore is still running. I believe this has nothing to do with any language used to call the cmd line tools, see steps to reproduce below.
AQL query (if applicable):

AQL explain and/or profile (if applicable):

Dataset:

Size of your Dataset on disk:

Replication Factor & Number of Shards (Cluster only):

Steps to reproduce

Open a cmd prompt (as administrator) on windows in the bin directory eg c:\Program Files\ArangoDB3 3.7.1\usr\bin
arangodump.exe --server.database "TestDB" --server.endpoint "ssl://localhost:8529" --overwrite "true" --server.password "passwordhere" --output-directory "c:\Temp\Backup" this works and output appears in cmd prompt
arangodump.exe --server.database "TestDB" --server.endpoint "ssl://localhost:8529" --overwrite "true" --server.password "passwordhere" --output-directory "c:\Temp\Backup" > c:\Temp\dump.txt the output file is empty

Problem:
Step 2 works, but if you try step 3 to pipe the output anywhere, despite the process succeeding there is no output.
Expected result:
The output should appear in the file. I can't understand why this is so, it is not permissions related, I am running the cmd prompt as an administrator. I have tried turning my firewall off, not running any anti-virus. Does anyone have any ideas how to get this to work, so I can run the tools from my software?
(Note this is only a problem in Windows, the same steps work perfectly as expected in Linux)

Hi,
all the tools have a detection whether they talk to an interactive shell or not. This detection can be circumvented by --log.foreground-tty true. If you want to disable Queueing of messages, and see them right away specify --log.force-direct true.
For more related Information on commandline arguments please see https://www.arangodb.com/docs/stable/programs.html .

Hi,
Thank you, --log.foreground-tty does force the output so it can be piped. I wasn't aware the tools did not output to non-interactive shells which is what occurs when the process is spawned on windows. (It didn't do this on linux which is what confused me).
Closing this issue, cheers.


fixed implementation of lowercase/1, uppercase/1 and casefold/1

Those three functions were only transforming the first character.
The implementation uses tail recursion and returns unicode:chardata() as defined by Erl 20.0

@aramallo this is based on latest version of OTP ?

@benoitc No I am running it on 19.3. In production with no issues beyond that fix so far.

this file is generated can you ported to the script file? Thanks!

sorry i missed that PR In latest changes. I will check if I can still apply them to the template.


Per Request Timeout

Question/Enhancement:
Is there any way to have a Per-Request Timeout for a Feign Client?
My current workaround is to create two API Clients, with a different Configuration:
@FeignClient(
    name = "slow-api-calls",
    configuration = [SlowCallsClientConfig::class]
)

class SlowCallsClientConfig {

    @Bean
    fun options() = Request.Options(5000, 5000)
}

If there is no better solution, what would a good implementation look like?

org.springframework.cloud.openfeign.support.SpringMvcContract is using "@RequestMapping", which is the same Annotation for Controller (request-handling classes) mappings.
To add Client-Timeouts there would be misplaced.

I could also add a custom AnnotatedParameterProcessor which processes a custom Annotation like @RequesTimeout, but that's feels like another workaround.

https://github.com/OpenFeign/feign/issues/562 will introduce a new @ApiTimeout annoation, which could be picked up by SpringMvcContract

OpenFeign supports adding Request.Options as a method parameter.
https://github.com/OpenFeign/feign/pull/970

Thanks @matt62king
https://github.com/OpenFeign/feign/pull/970


VipsImage: memory area too small --- should be X bytes, you passed Y

Hello, I checked all the "VipsImage: memory area too small" but didn't found my case;
My original image has size as 612x612 pixels and I'm trying to create sharp object out of buffer previously created from that image.
Firstly I load it and save its size to use later for "raw" options:
sharp("resources/board.png")
.toBuffer((err, data, info) => {
BoardBuffer = data;
BoardHeight = info.height;
BoardWidth = info.width;
BoardChannels = info.channels;
});
then, later in the code I'm trying to reuse this buffer like this:
let rawOptions = {
raw: {
width: BoardWidth,
height: BoardHeight,
channels: BoardChannels
}
};
let basePromise = sharp(BoardBuffer, rawOptions ).raw().toBuffer();
but once it starts to work - there's exception occurs:
(node:14024) UnhandledPromiseRejectionWarning: Error: VipsImage: memory area too small --- should be 1498176 bytes, you passed 60229
but my rawOptions tells that 6126124 = 1498176 isn't it?
And I tried to hardcode that values like
sharp(BoardBuffer, {raw:{ width: 612, height: 612, channels: 4 }}).raw().toBuffer();
but that doesn't help.
I even tried to increase the height and width I put into the options manually but the "required" size just increased proportionally so I have no idea what that error's trying to tell me.
Please help and thanks in advance.
p.s. yes image is 612x612 I checked, many times)

Thanks for response!
Why should I add raw for the very first load of BoardBuffer? Couldn't I just make it as raw later - like below: sharp(BoardBuffer, rawOptions ).raw().toBuffer()  ?
Or raw works with loading from file only ?

Do you need BoardBuffer to contain compressed PNG data or uncompressed raw pixel data?
Pass raw: { ... } to sharp's constructor only when the input contains raw, uncompressed pixel data.

I need BoardBuffer to contain PNG data. But the topic is about this part:
let basePromise = sharp(BoardBuffer, rawOptions ).raw().toBuffer();
And if I just remove raw() from everywhere - all will work fine.
But my original task was to make multiple overlayWith feature and I found recently in one of topics here the approach how to apply overlayWith subsequently:
https://github.com/lovell/sharp/issues/405
where your suggested code have contained .raw() options after sharp() and after overlayWith() parts
That's the reason I'm trying to use raw() here.
But if I even add it after my sharp(BoardBuffer, rawOptions ) like
let basePromise = sharp(BoardBuffer, rawOptions ).raw().toBuffer();
I'll get that error above. Without raw() all works fine but I suppose you added it for some reason like performance or something like..

The use of raw in the example given in #405 is to avoid the PNG decompression-compression round trip each time.
Please note the use of sharp(input, options) occurs only when input is raw, uncompressed pixel data. If the input is PNG then use sharp(input) only; providing options will cause the problem you're seeing (as sharp will attempt to treat compressed PNG data as uncompressed, raw pxiel data).

got it finally! a lot of thanks for that last clarification! Now all works fine and much more faster )


Write exit code to log (#534)

This PR adds the exit code to the log message when a tool fails.

Related to #534.

Merged! :+1:


portlint: add warning(s) about modeline

closes https://trac.macports.org/ticket/52767

The guide says "Its use is optional and up to the port maintainer.". If we always expect the modeline, we should change the policy first.

See #33


[winpr,wlog] extend wLog to allow logging custom data

A logger allocated with WLog_Get now can have a customized context by setting it with WLog_SetContext. Along with the newly introduced format specifier %ctx an additional field is printed for the context.

@freerdp-bot test again please


Fix new typos found by codespell

I have two commits, because the second one is debatable and changes a local variable name. I can squash it if you agree.
Definition of fulfill in some dictionaries:

Oxford Learner's Dictionary
Cambridge Dictionary
Merriam-Webster
Collins

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

@paulidale Are you okay with the update?

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Yes, I'm okay with the update.
Merged, thanks for the fixes.


[Feature] Support ViT-Adapter

Motivation
paper: https://arxiv.org/abs/2205.08534
code: https://github.com/czczup/ViT-Adapter
issue: https://github.com/open-mmlab/mmdetection/issues/9044
Related PR
https://github.com/open-mmlab/mmclassification/pull/1209
https://github.com/open-mmlab/mmcv/pull/2451
https://github.com/open-mmlab/mmcv/pull/2452
Result

Backbone
ASFF
box AP
mask AP

DeiT-T
official
46.0
41.0

DeiT-T
mmdet
45.6
40.9

BEiT-B
mmdet
48.7
43.1

Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMCls.
The documentation has been modified accordingly, like docstring or example tutorials.

Hi @okotaku ,
Thanks for your kind PR. Overall the code and config seem to be good for us. May I ask why the performance drops and can we fix them?

May I ask why the performance drops and can we fix them?

I do not know the cause of the drop in performance at this time.
I was wondering about the two types of window attention implemented in the ViT-Adapter implementation.
https://github.com/czczup/ViT-Adapter/blob/main/detection/mmdet_custom/models/backbones/base/vit.py#L123
https://github.com/czczup/ViT-Adapter/blob/main/detection/mmdet_custom/models/backbones/base/vit.py#L170
However, I have decided that there is no difference and have implemented window attention with reference to the implementation of vitdet in detectron2.
https://github.com/facebookresearch/detectron2/blob/main/detectron2/modeling/backbone/vit.py#L148
I will continue to investigate, but if there is anything you notice, please let me know.

I found two difference.

drop out rate in MultiScaleDeformableAttention. official = 0.0 mine = 0.1(default of mmcv)
use layer_scale or no. offical = use layer_scale mine = not use layer_scale

I will fix these, train and check mAP again.

In my experiments, layer scale made mAP worse. I recorded box AP= 45.6 and mask AP= 40.9 with the latest config, which is close to the official performance.
After refactor the code on the mmcls side, release the WIP.

Hi @okotaku ,
Thanks for your kind PR. We plan to merge this PR this week. Would you like to simply put these files into projects like ConvNeXt v2? In this way, you do not need to update the metafile.yaml and it can be merged quickly.

@ZwwWayne I understand.
However, the mmcls PRs have not been merged yet, so we may have to wait for that.

@ZwwWayne I understand. However, the mmcls PRs have not been merged yet, so we may have to wait for that.

Hi @okotaku ,
Thanks for your quick response. I missed the situation in mmcls before and have reminded them. Could you further move the files into the folders of projects? The expected file structure looks like
|-- .gitignore
|-- projects
    |-- ViTAdapter
        |-- configs
          |-- mask-rcnn_beitadapter-b_fpn_3x_coco.py
        |-- README.md


Settings Slide Enhancement

I think it would be cool if the settings tray would close when opening beatmaps tab like...

Open the game
Open settings
Press play
and the settings tray would slide back in

Resolved in v0.13.0b


Revert "AMBARI-23660. Hosts topology can be incomplete for components install during blueprint deploy. (mpapirkovskyy)"

What changes were proposed in this pull request?
AMBARI-23660 changes were reverted.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1987/
Test PASSed.

@mpapirkovskyy Can this be closed?


Update

creates performance entries for idle timings
fixes references in docs & package.json to choojs org
adds nanoassert as a dep to be used in browsers instead of assert

We definitely shouldn't land this, as there's too many modules that require this code to be inlined. What I think we should do instead, is create a new module – timed-on-idle that exposes this API. That way userland code can rely on the new package, while modules can keep relying on the existing code – all with a better chance of deduping too! :grin:

It's really dope to see labels on rics tho

Updated again, so only a few of the lesser changes are part of it. Removed the nanotiming stuff! :grin:


Relative import in Python3

Error importing PerforceConnection in Python3.4:
ImportError: No module named 'errors'

Relative import is removed from Python3, so the line:
import error

should be changed to
from . import error

fixed in 0.3.8


Add my name to team

Hi @dipto0321 , can you please resolve the conflict?

Hi @monarchwadia . I've fixed the conflict, please check it out.

Hi @monarchwadia, I will delete my old forked repo because there I encounter some issues. So I'll create one new.


Reduce the size of the ebook heading and padding on mobile

A lot of our ebook titles are way too wide on mobile (up to 500px). This reduces the size of the text a bit, but also reduces the padding on either side to give it more room.

Before
After

Great work, thanks!


add ci for issue

I could not find how to get linked issue list from a pull-request...
https://dev.classmethod.jp/articles/update-the-body-of-an-issue-associated-with-a-specified-pull-request-on-github/