Bug: Exception is thrown when previewing html files

Description
https://github.com/files-community/Files/blob/d4bb3e867cf7f52bf9ddc184501a993e3ccb40c5/src/Files.App/UserControls/FilePreviews/HtmlPreview.xaml.cs#L10-L25
In my other app's tests, even if I called Ensure-- method before calling NavigateToString, WebView2 throw an exception that is something like 'Method was called unexpected time'. So notice that WebView2 is still  surprisingly unstable and has bad developer experience.
https://github.com/microsoft/microsoft-ui-xaml/issues/3714
Steps To Reproduce

Go to the directry that contains html file.
View its preview

Steps to fix

As the title: call EnsureCoreWebView2Async before calling other WebView2-related methods such as navigateToString.

Files Version
Latest version
Windows Version
Windows 11 21H1
Relevant Assets/Logs
Although I added like following screenshot, sometimes still WebView2 doesn't load its own html string with an exception InvalidOperationException.

Is this a bug report or code quality issue?

It's a bug. We should ensure CoreWebView getting loaded.

No a bug basically. It's a spec. but failing even though you added ensuring method is a bug.

Do you want to open a PR for this?

Of course, I would do. However I have little time these days.

@yaira2 I can't reproduce this bug anymore. It seems this was fixed back in #10573


Docker Swarm Mode --advertise-addr need help

Docker 1.13 running in Swarm Mode
--listen-addr     <IP_ADDRESS>:2377
--advertise-addr  PUBLIC-IP:2377

On Linode/Digital Ocean the data transfer within the same data center is free.
Lets says 3 Nodes in Datacenter-1 and 4 nodes in Datacenter-2.
So how will swarm load balance the services within data center using public IP or private IP?
I want private IP to be used in same datacenter and public IP for cross datacenter connections.
Could this be possible or do i need different settings?
Thanks

@anupriya17
You could use the public IPs to setup the cluster and then configure ip forwarding (e.g via the iptables OUTPUT chain) on each node to match your requirement (route a public ip to a private ip if is a node on the same provider)

@fntlnz
Sorry again, I'm new to iptables, after digging on google i found this. Will this work:
sysctl net.ipv4.ip_forward=1

iptables -t nat -A OUTPUT -p tcp -s PUBLIC-IP -j DNAT --to-destination PRIVATE-IP

@anupriya17 yes just that but you will want to allow all protocols, e.g: overlay networking uses UDP
something like:
iptables -t nat -A OUTPUT -p all  -d PUBLIC-IP -j DNAT --to-destination PRIVATE-IP

Yep you're right. Thanks.


Define groupName for new SeccompProfile CRD

The groupName for the new SeccompProfile CRD is based on the current name of the operator which may soon change. It may also make sense to append .k8s.io or .kubernetes.io to the name since it is part of an official kubernetes SIG, but this requires approval. Once a decision is reached about the new name for the operator, we should revisit the groupName of the CRD.

On yesterday's sig-node we got a few +1 on the new name security-operators-operator, we should be OK to rename the groupName based on that.

This is tackled by https://github.com/kubernetes-sigs/security-profiles-operator/pull/139


Remove docs auto labeling

This fulfills a small part of @aweida's design where we drop chapter, section, etc numbers.
Before

After

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

What's the reasoning for removing the chapter numbers? What exactly do we gain?

@bmuschko I'd say we drop unhelpful labeling. No one reads the user guide in order, so chapter numbers mean nothing. Also saying the word "Chapter" is superfluous.
This fulfills @aweida's design as well.

@eriwen Fair enough. I don't feel strongly about it. Also users can get a direct link to a chapter. Just wanted to know about the reasoning behind it. LGTM!


ESP32 (MCU) notes

[ ] need to add POST at interval to ESP config, with timeout
[x] need to handle update POST response - set display text, status LED state, relay state, maybe Oops LED state
[ ] Need a capacitor or similar on ESP, to ensure it doesn’t brown out when machine starts?
[x] Output for Oops button LED

removed:

Need some way to display basic diagnostic data on the LCD screen, such as machine name, IP address, maybe version, etc. Maybe use some secret Oops button keypress, like 6 times in 3 seconds, or hold for 5 seconds, or something?

I think that's overkill when using ESPHome.

This was finished in https://github.com/jantman/machine-access-control/commit/819df69d97403513689281a3ac924aee9b925b9e


FR: sample code for version history download of specific range on specific sheet

Feature request
Example python code how to
(1) download all revisions of a specific googlesheet id, and then
(2) download a certain range (here: A3:E12)
(3) from a specific sheet ("tab") (here SHEETNAME)
(4) in a specific version (here: 252)
(5) of all (or selected) older revisions of that googlesheet-id.
Thank you very much!

feature request related to a problem:
Download hundreds of older versions (version history) of the same googlesheet, that has been heavily worked on during several months. It is a multi-sheet document, and I need only one "tab" (sheet) with the name SHEETNAME, and in that only a certain range (e.g. A3:E12).
Describe the solution you'd like
One snapshot CSV per day would suffice, perhaps the last one in the evening.
Describe alternatives you've considered

spreadsheets/export?id=... = https://docs.google.com/spreadsheets/export?id={id}&revision=252&exportFormat=CSV&range=A3:E12&sheet=SHEETNAME
spreadsheets/d/{id}/gviz/tq ... = https://docs.google.com/spreadsheets/d/{id}/gviz/tq?tqx=out:csv&sheet=SHEETNAME&range=A3:E12&revision=252

somehow those approaches do not seem to work, because either the SHEETNAME is ignored, or the specific revision.
I've made a beginning here but got stuck with the above question.

[ As a smaller side problem, I seem to be able to download the revision history of my own sheet, but not the revision history of someone else's sheet, or what am I doing wrong? ]

Thanks a lot

Hi @covh,
GSuite samples belong in https://github.com/gsuitedevs/python-samples. Please file an issue there. Thanks!

Same here, trying to find a way to download an Excel with specific revision, but did not find any option in Google API


[production] Sorry, we will be back soon!

Trying to connect to a new production instance would produce the following NGINX log:
2020/09/02 16:16:04 [error] 22136#22136: *4357 upstream prematurely closed connection while reading response header from upstream, client: ip, server: server, request: "GET / HTTP/1.1", upstream: "http://<IP_ADDRESS>:8000/", host: "site"

2020/09/02 16:16:05 [error] 22136#22136: *4357 upstream prematurely closed connection while reading response header from upstream, client: ip, server: server, request: "GET /favicon.ico HTTP/1.1", upstream: "http://<IP_ADDRESS>:8000/favicon.ico", host: "site", referrer: "https://site/"

One solution:
The site will still be served on port 80, but any requests on 443 will fail. Setting up an SSL certificate may resolve this issue (unless your site is set up remotely).


Subjects by default are not threadsafe RxImagePicker class

Hi @Frederikos Subjects by default are not thread safe  link! .[RxImagePicker] (RxImagePicker/library/src/main/java/com/mlsdev/rximagepicker/RxImagePicker.java) class using PublishSubject Without Serialize ?

Yes. We have only one instance so we don't need to care about it.


what would be an appropriate way to integrate this with a web framework

I am new to Rust as well as the Actor Pattern on a whole, so I am trying to understand How do i integrate it with an existing web framework.
Should I include the code below within an actor (will it cause any performance issues?)
Should I include the code below within another thread. If so, how do I refer to all the actors.
Basically I am trying to forward all HTTP messages to existing actors that are running.
I did have a look at actix, but it doesn't support named actors(which is big for me) and docs aren't great.
#[macro_use] extern crate nickel;

use nickel::{Nickel, HttpRouter};
fn main() {
    let mut server = Nickel::new();

    server.get("/bar", middleware!("This is the /bar handler"));
    server.get("/user/:userid", middleware! { |request|
        format!("This is user: {:?}", request.param("userid"))
    });
    server.get("/a/*/d", middleware!("matches /a/b/d but not /a/b/c/d"));
    server.get("/a/**/d", middleware!("This matches /a/b/d and also /a/b/c/d"));

    server.listen("<IP_ADDRESS>:6767");
}

Hi @evnix this issue was overlooked, my apologies.
Riker supports selection. That is, you can message one or more actors by actor path (name). You can find examples on the Riker site here: https://riker.rs/selection/
As for your specific case my recommendation is to pass an instance of the ActorRef of the actor to the request handler. This is better than using select for performance reasons.
Here's an example that uses the Warp HTTP server (which is a really nice functional HTTP server btw):
fn main() {
    let model: DefaultModel<String> = DefaultModel::new();
    let sys = ActorSystem::new(&model).unwrap();

    let cfg = AppConfig::from(sys.config());

    let actor = sys.actor_of(MyActor::props(), "actor").unwrap();

    let h_sys = sys.clone();
    let hello = path!("hello" / String)
        .map(move|name| {
            let res = block_on(ask(&h_sys, &actor, name)).unwrap();
            format!("{}", res)
        });

    warp::serve(hello)
        .run(cfg.http_sock);
}

struct MyActor;

impl Actor for MyActor {
    type Msg = String;

    fn receive(&mut self,
                ctx: &Context<Self::Msg>,
                msg: Self::Msg,
                sender: Option<ActorRef<Self::Msg>>) {

        let msg = format!("hello {}", msg);
        let _ = sender.try_tell(msg, Some(ctx.myself()));
    }
}

In this example all requests for /hello/<string> will result in a message of <string> being sent to the actor. It waits for the actor to send a message back. This uses the ask pattern which is a Future, so you can use block_on to get the returned value and form an http response.  You can read more on ask here: https://riker.rs/patterns/
Hope that helps!

Thanks a lot for the in-depth example.

@leenozara I am trying to follow your example here, and have the following setup.
impl Actor for Validator {
    type Msg = ValidationMsg;

    fn recv(&mut self,
        ctx: &Context<Self::Msg>,
        msg: Self::Msg,
        sender: Sender) {

        println!("Received: {:?}", msg);
        println!("Sender is: {:?}", sender);
        let res = sender.as_ref()
                .unwrap()
                .try_tell("valid!", Some(ctx.myself().into()));

        match res {
            Ok(r)=>{
                println!("Result: {:?}", r);
            },
            Err(e)=>{
                println!("Error: {:?}", e);
            }
        }
    }
}

#[tokio::main]
async fn main() {
    let sys = ActorSystem::new().unwrap();

    let validator = sys.sys_actor_of::<Validator>("validator").unwrap();

    let cloned_sys = sys.clone();

    let verify = warp::post()
        .and(warp::path("verify"))
        .and(warp::header::header("Authorization"))
        .and(warp::body::json())
        .map(move |auth_header: String, verify_req: VerifyRequest| {
            let msg = ValidationMsg {
                token: verify_req.token,
                auth_header
            };

            let res:RemoteHandle<String> = ask(&cloned_sys, &validator, msg);
            let answer = block_on(res);
            println!("{:?}", answer);
            format!("bingo!!")
        });

    let hello = warp::path!("hello" / String)
        .map(|name| format!("Hello, {}!", name));

    let routes = hello.or(verify);

    warp::serve(routes)
        .run(([127, 0, 0, 1], 3030))
        .await
}

However, the try_tell fails without any message, and the sever never responds. What setup am I missing for the actor to have it successfully reply to the temporary actor?

[dependencies]
riker = "0.4.2"
riker-patterns = "0.4.2"
futures = "0.3.14"
tokio = { version = "1", features = ["full"] }
warp = "0.3"

I have updated my actor and resolved some of the issues, however the actor_ref.try_tell("valid!", myself); is failing with no error message or trace.
impl Actor for Validator {
    type Msg = ValidationMsg;

    fn recv(&mut self,
        ctx: &Context<Self::Msg>,
        msg: Self::Msg,
        sender: Sender) {

        println!("Received: {:?}", msg);
        println!("Sender is: {:?}", sender);

        match sender {
            Some(actor_ref) => {
                println!("pulling context");
                let myself = Some(ctx.myself().into());
                println!("attempting to send");
                let res = actor_ref.try_tell("valid!", myself);

                match res {
                    Ok(_x) => {
                        println!("all good");
                    },
                    Err(e) => {
                        println!("error {:?}", e);
                    }
                }
            },
            None => {}
        }
    }
}

I think it is something to do with my ask macro and msg types.
        .map(move |auth_header: String, verify_req: VerifyRequest| {
            let msg = ValidationMsg {
                token: verify_req.token,
                auth_header
            };

            let res:RemoteHandle<String> = ask(&cloned_sys, &validator, msg);
            let answer = block_on(res);
            println!("{:?}", answer);
            format!("bingo!!")
        });

Maybe the ask is creating an actor but the msg types dont line up and no answer is delivered?
@evnix Did you get this working? I only see your rFrame repo, which doesnt have a dep. on riker.
https://github.com/evnix?tab=repositories&q=&type=&language=rust&sort=


Incorrect array initialization in ZendEngine3

It seems build fails on Zephir code like :
array someVar = [
    "key" : true
];

or
var someVar = [
    "key" : true
];

or
var someVar;
let someVar = [
    "key" : true
];

This happens only for ZendEngine3
at Library/Compiler.php(1287)
#0 Library/Compiler.php(1358): Zephir\Compiler->install(Object(Zephir\Commands\CommandBuildDev), true)
#1 Library/Commands/CommandAbstract.php(108): Zephir\Compiler->buildDev(Object(Zephir\Commands\CommandBuildDev))
#2 Library/Bootstrap.php(200): Zephir\Commands\CommandAbstract->execute(Object(Zephir\Config), Object(Zephir\Logger))
#3 compiler.php(21): Zephir\Bootstrap::boot()
#4 {main}
/zephir/ext/kernel/memory.c: In function 'zephir_dump_memory_frame':
/zephir/ext/kernel/memory.c:589:5: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'char *' [-Wformat=]
     case IS_STRING:   fprintf(stderr, "value=%*s (%d)\n", Z_STRVAL_P(var), Z_STRLEN_P(var)); break;
     ^
/zephir/ext/kernel/memory.c:589:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'size_t' [-Wformat=]
/zephir/ext/kernel/memory.c:589:5: warning: format '%d' expects a matching 'int' argument [-Wformat=]
In file included from /usr/include/php/20151012/Zend/zend.h:35:0,
                 from /usr/include/php/20151012/main/php.h:36,

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33041507-incorrect-array-initialization-in-zendengine3?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

can't reproduce


strip passwd in process mount

fix https://github.com/juicedata/juicefs-csi-driver/issues/355

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@7a73a81). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #358   +/-   ##
=========================================
  Coverage          ?   45.23%
=========================================
  Files             ?       26
  Lines             ?     2909
  Branches          ?        0
=========================================
  Hits              ?     1316
  Misses            ?     1503
  Partials          ?       90

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 7a73a81...b118a2a. Read the comment docs.


[vNext Tokens] Remove TokenResolver, add tokens(:) and restore defaultTokens

Platforms Impacted

[x] iOS
[ ] macOS

Description of changes
This change updates how we fetch tokens in our controls one last time.
Problem:

Certain controls like FluentButton have multiple sub-structures that reference design tokens.
These substructures do not conform to any specific external controlling protocol, so they are not directly hooked up to the TokenResolver.
As such, they have not been receiving proper updates when tokens or themes change.

Result: the pure SwiftUI implementation of FluentButton did not properly update themes once they were injected via the .fluentTheme(_:) modifier.
Solution:

Have all token resolution happen on the fly via a new function, tokens(for:).
Implement this function as part of an extension on TokenizedControlInternal.
Remove TokenResolver, as this function supersedes all its previous behaviors.

Bonus benefits:

There's far less boilerplate to deal with (e.g. no more didSet modifiers to update tokens! SwiftUI will deal with it for us!).
It's now easier to write correct code, and harder to write incorrect code 🎉
Binary shrinks by more than 100 kB 🎉🎉

Verification
This was forked off my work on #879. Using that branch, I was able to verify that all currently-supported controls dynamically respond to theme both in UIKit AND SwiftUI now.
Note: the following video requires some additional changes to pipe theming through to SwiftUI demos. That will come as part of #879, but observe the magic here:
https://user-images.githubusercontent.com/4934719/155418778-2a567a06-4747-4d71-9839-91eb49b0fe35.mp4
Other than that, I just went through all of the Token 2.0 controls and made sure they turn green:
https://user-images.githubusercontent.com/4934719/155420452-690a3e77-055e-4c80-903a-ee02f9e2259a.mov

Before
After

31,137,581 bytes (30,408 kB)
31,001,293 bytes (30,215 kB)

Improvement: 133 kB
Pull request checklist
This PR has considered:

[x] Light and Dark appearances
[x] iOS supported versions (all major versions greater than or equal current target deployment version)
[ ] VoiceOver and Keyboard Accessibility
[ ] Internationalization and Right to Left layouts
[ ] Different resolutions (1x, 2x, 3x)
[ ] Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
[ ] iPad Pointer interaction
[x] SwiftUI consumption (validation or new demo scenarios needed)
[ ] Objective-C exposure (provide it only if needed)

Microsoft Reviewers: Open in CodeFlow

This was forked off my work on https://github.com/microsoft/fluentui-apple/pull/879. Using that branch, I was able to verify that all currently-supported controls dynamically respond to theme both in UIKit AND SwiftUI now.
That's exciting! Shouldn't the demo videos in the description show that instead of the old Theming demo controller?
Also... do you mind updating the title of the PR to something that matches its description? (for our own sanity in future history searches)

That's exciting! Shouldn't the demo videos in the description show that instead of the old Theming demo controller?
Oh sure! Yeah the videos were taken from a weird combo build with some of those changes in the demo app, but not the test view itself. Lemme spin up a separate branch with both bits of code and I can record new videos.

Also... do you mind updating the title of the PR to something that matches its description? (for our own sanity in future history searches)
Oops! It had a good name when it was a single commit, but I added that second one before I finished making the PR and I got a horrible name out of it. Updated!

That's exciting! Shouldn't the demo videos in the description show that instead of the old Theming demo controller?

Oh sure! Yeah the videos were taken from a weird combo build with some of those changes in the demo app, but not the test view itself. Lemme spin up a separate branch with both bits of code and I can record new videos.

Also... do you mind updating the title of the PR to something that matches its description? (for our own sanity in future history searches)

Oops! It had a good name when it was a single commit, but I added that second one before I finished making the PR and I got a horrible name out of it. Updated!

Your name is out of date now, though. Should be "add resolvedTokens()"


fixes compactions planning with new prefix

Compaction planning using the new configuration prefix was not working when running in TableManagementIterator. This change fixes planning to work in this environment.

What test were you running that was failing prior to this change?

I noticed that BadCompactionServiceConfigIT.testUsingMisconfiguredService was failing and looked into the cause and found this issue.  This change fixes that test.


Performance and Compatibility Issues

First and foremost, I'd like to express my sincere gratitude to the author for providing these insights. However, upon attempting to use this library, I encountered two significant issues: 1) Severe performance problems when dealing with German text, and 2) Incompatibility with IntrinsicHeight at the parent level, as the internal LayoutBuilder fails to calculate the height correctly.
Proposed Solutions

Initialize and cache the Hyphenator locally during the initial setup, rather than repeatedly initializing it within the LayoutBuilder.

Within the LayoutBuilder, if the constraints remain unchanged, directly retrieve the cached Widget instead of recalculating.

To address the issue with IntrinsicHeight at the parent level, consider adding a parameter that allows manual setting of constraints from the outside, eliminating the need for a LayoutBuilder.

I welcome any additional ideas from the author or insights into aspects I may have overlooked.

OK, it looks like the Hyphenator is doing an operation on a large list of strings so I guess it's worth caching. I moved this to initState(). I'm not sure about the other solutions though. You could wrap the widget in a sized box to force a size and caching widgets introduces the risk that it doesn't update properly (such as when changing to dark mode).

fixed, cheers


Egeria docker build failing

See https://dev.azure.com/odpi/Egeria/_build/results?buildId=338&view=logs&j=72a131d8-c329-5c95-8d5b-9d0df09bff68
[INFO] gzip: egeria-1.1-SNAPSHOT-distribution.tar.gz: No such file or directory
[INFO]
[INFO] tar: This does not look like a tar archive
[INFO] tar: egeria-omag-1.1-SNAPSHOT/user-interface/access-services-user-interface-1.1-SNAPSHOT.jar: Not found in archive
[INFO] tar:
[INFO] egeria-omag-1.1-SNAPSHOT/server/server-chassis-spring-1.1-SNAPSHOT.jar: Not found in archive
[INFO] tar: Exiting with failure status due to previous errors
[INFO]
[ERROR] The command '/bin/sh -c mvn org.apache.maven.plugins:maven-dependency-plugin:2.5.1:get -DremoteRepositories=$repo     -Dartifact=org.odpi.egeria:open-metadata-assemblies:${version}:jar -Ddest=egeria.jar &&     jar -xf egeria.jar egeria-${version}-distribution.tar.gz &&     gunzip -c egeria-${version}-distribution.tar.gz | tar -xf -        egeria-omag-${version}/user-interface/access-services-user-interface-${version}.jar       egeria-omag-${version}/server/server-chassis-spring-${version}.jar &&     mv egeria-omag-${version}/user-interface/access-services-user-interface-${version}.jar /opt/egeria/binaries/ &&     mv egeria-omag-${version}/server/server-chassis-spring-${version}.jar /opt/egeria/binaries/' returned a non-zero code: 2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

This looks like a regression, though could be due to packaging changes
Note that one fix to this may be to move on to implement #1688

This is caused by the UI refactoring work and directory change

Latest docker build is fine - with no new changes in this area.
On looking at the docker build in more detail, the latest snapshot that jfrog served up was
https://odpi.jfrog.io/odpi/egeria-snapshot/org/odpi/egeria/open-metadata-assemblies/1.1-SNAPSHOT/open-metadata-assemblies-1.1-20190906.110501-380.jar
which is very very odd - as it should be retrieving the latest version.
This looks like another frog indexing issue? (ref #1659)
The retrieving maven invocation was based on the default values here:
ENV version ${version:-"1.1-SNAPSHOT"}
ENV repo ${repo:-"https://odpi.jfrog.io/odpi/egeria-snapshot/"}

which then ran
mvn org.apache.maven.plugins:maven-dependency-plugin:2.5.1:get -DremoteRepositories=$repo \
    -Dartifact=org.odpi.egeria:open-metadata-assemblies:${version}:jar -Ddest=egeria.jar

That must be jfrog indexing (cc: @bramwelt) - suggest following up in #1659
Closing this issue for now


feat: allow to implement custom type

#143

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

0.7.0
GitHub release

Your semantic-release bot :package::rocket:


[R] Is the mxnet always minimize the custom loss function?

Package used (Python/R/Scala/Julia): R
Before I write my own custom loss function with mx.metric.custom, I checked the https://github.com/dmlc/mxnet/blob/master/R-package/R/metric.R.
I find two functions: mx.metric.accuracy is used as a metric for classification and mx.metric.rmse is used as a metric for regression.
So far as I know, the model should minimize the loss function like MSE. But minimize accuracy indicates a bad model. When I test the mx.metric.accuracy, the increasing accuracy of each epoch indicates the mxnet know how to treat the loss function.
This confuses me when I write my own loss function. I do not  know when the mxnet will maximum the loss function and when the mxnet will minimize the loss function. Could you explain this stuff? Thank you.

I guess adding a minus '-' in front of the loss function would turn the minimization into maxmization.

@back2yes , yes.
But I am not sure that the mxnet will always minimize the loss function. Because I find one mx.metric.accuracy which should be maximized.

mx.metric are not loss functions to optimize, but for evaluation.
In your case, MXNet minimized log_loss (If you choose SoftmaxOutput).
It follows that the accuracy score increases.

@yiyusheng I understand you. @marugari was right.
The 'metric' is just a score, it is evaluated after the weights and biases are updated.
Whereas the loss function is calculated before the update, the backward process is based on the loss function value.

@marugari, thank you for correcting my fault. I'd like to use my own loss function. Do you know how to do that?

@back2yes, yes, I recognize the mistake, thanks. Is there any idea to implement my own loss function?

add a new Output layer (C++)
https://github.com/dmlc/mxnet/blob/e7514fe1b3265aaf15870b124bb6ed0edd82fa76/src/operator/softmax_output-inl.h

use mx.sym.MakeLoss (Python/R? I don't know details)
https://github.com/dmlc/mxnet/issues/3368

In R, you can use mx.symbol.MakeLoss

@yiyusheng You should be able to find some simple examples in https://github.com/dmlc/mxnet/blob/master/docs/tutorials/r/CustomLossFunction.md

@thirdwing thank you for your advice. I have sent an e-mail to you to detail my question. Could you have a look on it? Thank you very much.

The document has been updated. Please see https://github.com/apache/incubator-mxnet/blob/master/docs/tutorials/r/CustomLossFunction.md


Add track-caller annotations and enforce that drop never leaks

This PR adds #[track_caller] annotations to functions that can panic, and also changes the debug_assert_eq!(...) in the Drop implementation to assert_eq!(...). IMO, behavior as important as leaking should not change between debug and release profiles.

I'm not convinced about this change, yet.

This PR adds #[track_caller] annotations to functions that can panic

Is this a common thing to do?
I would in general prefer to get the source information from where the panic occurred, and not the caller of the caller of... I understand that Option::expect has it -- because calling it is explicitly asking for the check -- but I'm not convinced about putting it on "normal" functions such as join, etc...
... especially for compile-time arguments that should never be wrong to start with.

and also changes the debug_assert_eq!(...) in the Drop implementation to assert_eq!(...). IMO, behavior as important as leaking should not change between debug and release profiles.

The use of debug_assert_eq! was intentional.
I used assert to enforce safety, and debug_assert to help locate undesired behavior that is not safety critical.
Leaking memory is not great, but it's normally relatively easy to diagnose -- unlike any form of memory corruption. The idea was that the debug_assert_eq! would help locate the problem in tests, without impacting productions.
I'm not so sure about the idea of using assert_eq! in production; it's not clear to me that "not leaking" is more valuable than "not panicking".
If the idea is to align Debug and Release behavior, then I'd be in favor of using #[test] assert_eq!(...) to make it clear that this is a debugging tool intent in helping you figure out your problems in test, but it won't accidentally torpedo your production instance.


Add KerboKatz - SmallUtilities - DisableTempGagues from Kerbal Stuff

This pull request was automatically generated by Kerbal Stuff on behalf of SpaceTiger, to add KerboKatz - SmallUtilities - DisableTempGagues to CKAN.
Please direct questions about this pull request to SpaceTiger.

This appears to be a sub-part of https://github.com/KSP-CKAN/NetKAN/blob/master/NetKAN/KerboKatzSmallUtilities.netkan


fix: allow historical refs in checkout steps

This'll allow us to checkout any historical ref (by commit hash, branch name, tag, etc.)

Force-merging, because of https://github.com/gemc/clas12Tags/issues/5


Begin moving parameter model to mx_bluesky

For vmxm FGS, we should use the same parameter model in mx_bluesky as we have in Hyperion. To make this a bit more digestable, we could start by only moving the bits needed for VMXM's implementation of the FGS (no zocalo, no pin tip detect, no rotation)
Acceptance Criteria

Identify relevant parameters and create parameter structure in mx_bluesky so that VMXm can call its FGS plan through BlueAPI

Closed by https://github.com/DiamondLightSource/mx-bluesky/pull/603

Going to use this issue for a few other PR's


not loading file

Describe the bug
it just won't load the file and just gives me an error message
To Reproduce
Steps to reproduce the behavior:

open a file
See error

Expected behavior
to load the file without any errors
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Version or Commit: V<IP_ADDRESS>-alpha.8

Additional context

Can you provide a copy of of the assets you are experiencing this issue with?


Official windows support

When will support for Windows come?

Probably never.

install wsl on windows. Works like a charm.

Probably never.

I don't see why though? The unofficial implementation already works quite well, so we know it's definitely doable.

There is ongoing community effort and even a thread started by the author: https://github.com/TimDettmers/bitsandbytes/issues/30


netkvm: Plug memory leak on exception

Signed-off-by: Michał Janiszewski<EMAIL_ADDRESS>

How can I see the error from CI?

Hi Michal,
It looks like internal error related to Github API unavailability at the
moment CI tried to make one of its status updates.
We are going to fix CI code as well to be more robust in such cases.
In any case for netsh plugin changes - CI tests the build (which passed).
NetKVM test is testing the driver itself with WHQL. Your code change are
not related to those tests.
Best regards,
Yan.
On Wed, Oct 23, 2019 at 11:45 PM Michał Janiszewski <
<EMAIL_ADDRESS>wrote:

How can I see the error from CI?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/virtio-win/kvm-guest-drivers-windows/pull/408?email_source=notifications&email_token=AAIOIWFAY37AFLT7MGDOABLQQCZVDA5CNFSM4JDYCCTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECC2A3Q#issuecomment-545628270,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIOIWGBL5MQGH46KF7EBX3QQCZVDANCNFSM4JDYCCTA
.


phrase_to_stream/2 (consequently: phrase_to_file/2) total memory consumption with a mega-string

Using v2.50.26, for the record; not saying that my mega-long string (cca 2_000_000 and more chars) example ever worked on my computer in Trealla.
With dcgs and pio library loaded, for example this:
length(L, 3_000_000), maplist(=(a), L), phrase_to_stream(seq(L), user_output).
will, slowly, but gigabyte by gigabyte, eat all the RAM, and if I will be lucky, so to speak, my OS will kill the process with the message: Killed. The same with phrase_to_file/2.
My 16 GB RAM computer can handle the phrase_to_stream (and phrase_to_file) example with a string/list 1_000_000 chars long without the freezing/crashing, but it's the quantitative, not qualitative difference, so to speak.

Yes, besides simply using format/2 and the Linux redirection to a file, I can save the 3-mega-string constructed using DCGs/in the "list-way", without (from a naive user's point of view) the unexpected "RAM aggressivity":
length(L,3_000_000),
maplist(=(a),L),
open("long-string.txt",write,Stream),
format(Stream,"~s~n",[L]),
close(Stream).

Or, accepting the list vs string dichotomy, I can use Trealla's savefile/2:
length(L,3_000_000),
maplist(=(a),L),
with_output_to(string(Str), format("~s~n",[L])),
savefile("long-string.txt",Str).

Thank you.

Now, I would say, the qualitative difference. A quantum leap towards the pio library as I use it, as I use everything in Prolog; as a naive user. Now I can handle even several-mega-long-string-list with the pio library in this context and no crashing/freezing, no slow and total memory consumption, at least on my computer.
So I think, I have to close this issue. Thank you!!!


Provide sunset/sunrise times as a value

See also https://maas.museum/observations/2007/10/30/how-to-calculate-sunrise-and-set-a-worked-example/

https://math.stackexchange.com/questions/2186683/how-to-calculate-sunrise-and-sunset-times


Error after the version upgrade is too absolute, can it be more friendly? such as validate beforeColumn/afterColumn in the AddColumnGenerator.

Environment
Liquibase Version: 4.17.2
Liquibase Integration & Version: gradle
Liquibase Extension(s) & Version: Hana, postgreSQL also 4.17.2
Description
In this validate method, you can see we strict to validate when datasource is not MySQL and H2 , it will throw error that the field is not support
https://github.com/liquibase/liquibase/blob/347c33d055305df45b5df8ba70f0ed03cdb1ce20/liquibase-core/src/main/java/liquibase/sqlgenerator/core/AddColumnGenerator.java#L53-L84
Steps To Reproduce
When use Hana or postgreSQL, and use the unsupported field like
<addColumn tableName="test_table">
          <column name="a_field_to_add" type="VARCHAR(5)" beforeColumn="code"/>
 </addColumn>

As you know, beforeColumn/AfterColumn is a strict validation in the version 4.17.2
Actual Behavior
Will throw exception like beforeColumn / afterColumn is not support in hana
Expected/Desired Behavior
We can let it more configurable, instead of just throwing an error
Screenshots (if appropriate)

Additional Context
As i metioned, can we let it configurable?

Hello! At this moment we dont support this feature and at this moment we dont intent to. The reason is that setting a configuation to ignore certain parts of a changeset on the validation can be tricky and generate more problems that it solves. We are open to have a conversation about with the community to see if this feature is found useful by part of the community.
However, for the case, there is a nice workaround. On this specific example changeset
<addColumn tableName="test_table">
          <column name="a_field_to_add" type="VARCHAR(5)" beforeColumn="code"/>
 </addColumn>

We can do database specific modifySQL so the beforeColumn only apllies to databases of your choice, example:
<addColumn tableName="test_table">
   <column name="a_field_to_ad" type=""VARCHAR(5)"/>
</addColumn>
<modifySql>
   <append> before column code</append>
</modifySql>

this changeset does a create table test_table(a_field_to_ad VARCHAR(5)) for all databases except Hana and for hana does the same but before the column code.

In your sample, @FBurguer you left out the dbms="mysql" or whatever attribute on <modifySql> which makes it targetted.

The overall problem of "when do we silently ignore validation errors vs when do we throw them" is a good one to come up with a better solution for.
Our current approach is "if the user specifies they want something something, like beforeColumn and we can't deliver that, we should throw a validation error". It's not always consistent on that because historically we tried to be flexible and just silently ignore it if it seemed "obvious" that the database is just not going to support it.
But in practice, that ends up feeling random and inconsistent and so we're trying to move to being more consistent on "we always do exactly what we're told to do". That seems the most straightforward and understandable.
But, there are valid times when you want to specify something that works for some databases you support and is just ignored for others you don't. Like you want to control the column order if you can, and don't really care if you can't. But how do we do that?
We don't want a generic "ignore all validation" flag because that gets too broad.
Is it useful to have a flag to list which specific attributes we ignore? Like ignore=beforeColumn, or does that get too broad too? Especially since some attribute names get reused across tags and ignore=type is going to be too broad?
Something like a new  tag good? So you can do:
<addColumn tableName="test_table">
          <column name="a_field_to_add" type="VARCHAR(5)" beforeColumn="code"/>
 </addColumn>
 <modifyChange dbms="!mysql">
    <removeAttribute name="beforeColumn"/>
 </modifyChange>
 ```?

 Or does that not seem as useful?

 What does people think? Anyone interested in trying to implement something around that?

If we don't consider to compatible , maybe currently throw validation errors is a good way.
In my sample i drop the field tag like beforeColumn and afterColumn, and need to update md5sum manually, but if HANA support this feature in the future, user maybe need to rework for add it. so maybe we can set it as a warning message to inform user that this field tag is don't support currently.  than user update liquibase dependency lib easily in the future once target db support this feature.
Expect more conversation about this issue.

I'm going to close this in favor of #3091 to centralize discussion


is there any quick implement for video to video task based on Pyramid-Flow?  for example video editing

t2v and i2v are both work well, thanks for your work!
is there any chance to implement Pyramin Flow on v2v task?

There is a related pull request movie_editor.py in https://github.com/jy0205/Pyramid-Flow/pull/112 for the video extension task. Although it does not implement video-to-video generation as expected, we believe the task itself should be achievable within our framework.

There is a related pull request movie_editor.py in #112 for the video extension task. Although it does not implement video-to-video generation as expected, we believe the task itself should be achievable within our framework.

im thinking use the same idea as img2img on video2video.
firstly i encode the frames into latent space, add noise according to the scheduler's timestep. 8 frames in a unit, same shape as the latents to be denoising.
then i've tried directly replace the noisy latents or add on it，either result bad. i find it difficult to handle the jump points between different resolution.
img2img task usually need denoising strength within 0-1, in your original pipeline, noisy latent equals to denoising strength=1，which means not refer to input video.
when i set strength <1,  for example 0.4, denoising only take the last 40%  timesteps. if i set this to all 3 stages, it cuts off the continuity between stages. and if i only perform 0.4 strength in the first low res stage, 1 in the rest 2 stages, the influence of the input video is to week.
any good ideas?

To apply our framework to video-to-video generation, you need to downsample and renoise the latent to match the training latent at a certain timestep, and then start inference from that timestep.


Add lint to CI

Task/Issue URL: https://app.asana.com/0/414730916066338/1202273688878189/f
Description
This PR adds lint to CI and fixes a few errors/warnings. It also creates baselines for all the modules.
Steps to test this PR
Tests

[x] Smoke test the main features of the app
[x] CI passes

@marcosholgado maybe stupid question, when I introduced a lint failure ./gradlew lint fails locally but assembling a build passes.  Is this expected?
Ci works as expected though (pass when no lint errors, fails when there are lint errors)

mmm I guess it makes sense yeah


Update Screenshots while Republishing

Previously I had made a few Screenshots that has been approved on some of the OnRuntime Team members. Kindly DM me on Discord for Uncompressed Screenshot files.
Rushil#0612

Sample Preview


Can you inject the plugin as a maven dependency?

I'm building my project through maven using maven overlays. This way, when I deploy my app, I also deploy the tasklist, cockpit and admin apps without having to handle multiple wars.
Is there a way to add this plugin as a maven dependency so that it also gets deployed with my cockipit?

Can you give further details on your project? Afaik, the camunda web applications are already delivered in one .war (camunda-webapp) archive. Did you have a look at the build.xml in this plugin-project? It shows how you can execute the maven command to built plugin using ant and afterwards "inject" the plugin.jar..
After a quick google research this should be possible using maven without ant, too.
cheers,
Eric

I was able to do what I want. I uploaded the .jar of the plugin to my local Nexus, and added it as a maven dependency. It gets built and it seems to almost work. This is what doesnt work. It tries to execute this URL:
http://localhost:8090/engine-rest/engine/default/process-definition
But in my deployment, the URL that it should be executing is:
http://localhost:8090/camunda-spring/api/engine/engine/default/process-definition
Where is that URL configured?

Hi,
can you get the newest version and check again? There were some issues with some usages of the engine rest api

Could it be that you missed line 10 of this file?
https://github.com/camunda/camunda-cockpit-plugin-statistics/blob/master/src/main/resources/plugin-webapp/statistics-plugin/app/process-diagram-overlay/views/processDiagram.html#L10
The fix appears to be pretty straightforward there

Oh...give it a try now!

Great! It works now. I'll let you know if I find another URL that needs fixing.
I'm having a different problem now, but as it's not related I'll open a new issue. Thank you.


Question: Possible to specify order/layout?

Is it possible to specify the layout of the nodes in relation to each other?
Thanks,
JM

Hello @JosephMart currently sorting is not supported either for nodes or links, they are stacked by the order the renderer returns them, but still that would be quite simple to implement although some performance impact would be expected, please feel free to submit a PR for this and we can work it out from there!


RDK-30459: Audio Output Port Detection and selection

Reason for change:
Audio Output Port Detection and selection
Test Procedure: None
Risks: Low
Signed-off-by:Anooj Cheriyan<EMAIL_ADDRESS>

Old change.
New request updated in: https://github.com/rdkcentral/rdkservices/pull/601


Update c/cpp snippets for odd behavior

inc and def snippets in c/cpp seems odd.
After I input inc and do completion with my completion engine, I got #include <> and my cursor is in angle brackets. And then I type std, my completion engine suggests stdio.h to me and I use it. At this time, my cursor is after >. So I can continue my typing with enter. However, in my completion engine will go back to the angle brackets even if I finished include operation. I don't know if it is acceptable to change these snippets.

thanks!


Set up automated broken link checker

@garrison pointed out that we have lots of broken links across the Qiskit site, including the ecosystem.
This ticket is to find the best way to automate this, such as setting up a GitHub workflow. We should look into https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder and also what qiskit.org is doing.

See https://github.com/Qiskit/qiskit.org/pull/3352.


SSI improvements

Added more conjugate priors and distributions

Thanks a lot!
Is it a lot of work to add Student-T to ProbZelus distributions?
Otherwise we will probably forgot that it's in the semi-symb lib but not available yet in ProbZelus.

I've added the Student T distribution. Poisson distribution is already there.

But it looks like there is a conflict that prevent the merge...

Sorry, I have a conflict because I was on the "rebase" setting for the merge.


How to get mseg_confidence?

Great work. Thanks for sharing the code.
I need to run it for a custom dataset. But confused about mseg_confidence. How to get it? I am a bit puzzled with mseg code. Can you please leave a hint?

#4 Already informed here by Chytsa.


Bugfix/maxstring

Replace hardcoded string spec with MAXSTRING, see issue #311

@jhamman : Let me know if I need to quash the intermediate commits or if this is OK as is (only a few lines actually changed)

yes- rebasing this would be nice.


test(web): start using regex in the e2e tests, add more coverage

Describe your changes

Issue ticket number and link
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[ ] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

LGTM - but the branch name doesn't follow the right pattern and fails the build


Relaxed ts dependency

This PR relaxes the typescript dependency to support TypeScript versions 3.0.1 and 3.0.3 instead of only 3.0.3.
I would like to expand support up to 3.1.x, but that version of the compiler seems to resolve a lot of the types in this library to "any". I'll have to investigate why and report to the typescript team later.

Coverage decreased (-0.003%) to 94.961% when pulling 319db5cfdf1cfe35d877834a61c0b017b93f37d5 on relaxedTsDependency2 into c81081ed25323c71c4bd4bcb68d274459a9dc22b on dev.


cksum: use UIoError

Builds on the work in #2789.
This PR removes the custom error messages in cksum in favour of UIoError. It also makes it possible to create an UIoError from an std::io::Error without a context, which in turn makes it possible to use ? on a function returning io::Result in a function returning UResult.
Another detail is that this would exit with code 1, instead of 2, since I that was the exit code that GNU seemed to give on my machine.

Windows was reporting Permission denied, while unix was reporting Is a directory when opening folder, so I checked what GNU reported and it turns out that GNU just accepts directories as empty files. So I matched that behaviour.


feat: implements transaction queue and test cases

Related Issue
resolve: #27
Description
(Write down your details)
Checklist
Thank you for your contribution.
Before submitting this PR, please make sure:

[x] Test case
[ ] End of Work

All the comment should start with function name by go convention!
for example:
// Fprint formats using the default formats for its operands and writes to w.
func Fprint(w io.Writer, a ...interface{}) (n int, err error) {

starts with Fprint!
ref: https://blog.golang.org/godoc-documenting-go-code


[question] Which is the easiest way to get the Ip address of a container?

Hello,
when running for instance lxc list i get as result:
+----------+---------+------------------+-------------------------------------------+------------+-----------+
|   NAME   |  STATE  |       IPV4       |                   IPV6                    |    TYPE    | SNAPSHOTS |
+----------+---------+------------------+-------------------------------------------+------------+-----------+
| test2908 | RUNNING | <IP_ADDRESS> (eth0) | 2001:638:806:460:216:3eff:fe47:6093 (ext) | PERSISTENT | 0         |
+----------+---------+------------------+-------------------------------------------+------------+-----------+

and even more when running lxc info test2908
Name: test2908
Remote: unix:/var/lib/lxd/unix.socket
Architecture: x86_64
Created: 2017/08/29 13:39 UTC
Status: Running
Type: persistent
Profiles: ob_ext
Pid: 3458
Ips:
  eth0:	inet	<IP_ADDRESS>	veth2VYOCL
  eth0:	inet6	fe80::216:3eff:fe5e:a64e	veth2VYOCL
  ext:	inet6	2001:638:806:460:216:3eff:fe47:6093
  ext:	inet6	fe80::216:3eff:fe47:6093
  lo:	inet	<IP_ADDRESS>
  lo:	inet6	::1
Resources:
  Processes: 29
  Disk usage:
    root: 6.04MB
  Memory usage:
    Memory (current): 56.99MB
    Memory (peak): 199.84MB
  Network usage:
    eth0:
      Bytes received: 16.34kB
      Bytes sent: 6.88kB
      Packets received: 110
      Packets sent: 45
    ext:
      Bytes received: 3.07MB
      Bytes sent: 586B
      Packets received: 50031
      Packets sent: 7
    lo:
      Bytes received: 0B
      Bytes sent: 0B
      Packets received: 0
      Packets sent: 0

Is there a way to get the same info (specially the ip addresses) using the pylxd client?
thanks

client.containers.get('my-container').state()

should give you the same information as: https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersnamestate which includes the addresses under the network key in metadata.
I.e. the state dict should contain what you are looking for.

Thank you,
indeed it contains all info i need


Type of Bar based on infinite, or show counts on spinners

I use this package  to show progress on processing large MARC file processing tasks (see http://loc.gov/marc/bibliographic/).   We have 1.6 million MARC records, and we do not know how many will change each day.  Sometimes, there are large automatic changes.   I really appreciate it being around.
However, when I don't know how many MARC records there are in the file, I still want to show how many have been processed.  This is because the program may not know the # of records in the file, but I may have received the number via email from the library processing software.
        if args.progress:
            if (count % 100) == 0:
                print('.', end='')
                sys.stdout.flush()
            if (count % 6000) == 0:
                print('{:>8d}'.format(count))

Other scripts are fast enough that I just use a spinner:
        spinner = Spinner() if args.progress else None
        # for main loop:
            spinner and (count % 100) == 0 and spinner.next()

What I'd really like is a spinner that shows a count or a way to roll the infinite bar pattern I've developed into progress.

In version 1.6 that I just released you can use the index in spinners. e.g. Spinner(' %(index)d'). Does that work for you?

Wow, I missed your update.  It helps, but it isn't enough.  Blocking the output  of a line based on a number of chunks to save performance when showing progress is what I have in mind.  Here's the subclass I just wrote that illustrates what I am thinking of:
class DotsProgress(Progress):
    def __init__(self, dot='.', width=60, chunk_size=1, **kwargs):
        super().__init__(**kwargs)
        self.dot = dot
        self.width = int(width)
        self.chunk_size = int(chunk_size)

    def next(self, n=1):
        self.index = self.index + n
        # only output if a tty
        if self.file and self.is_tty():
            # only output on a completed chunk
            if (self.index % self.chunk_size) == 0:
                self.file.write(self.dot)
                num_chunks = self.index // self.chunk_size
                if (num_chunks % self.width) == 0:
                    self.file.write(f' {self.index:10d}\n')
                self.file.flush()

    def finish(self):
        # only output if a tty
        if self.file and self.is_tty():
            num_chunks = self.index // self.chunk_size
            # only output if not at end of line
            if (num_chunks % self.width) != 0:
                self.file.write(f' {self.index:10d}\n')
```

Sample output:
```
............................................................    1212000
............................................................    1218000
............................................................    1224000
............................................................    1230000
............................................................    1236000
............................................................    1242000
............................................................    1248000
```

Just finished:
............................................................    1662000
............................................................    1668000
..............    1669411
```

The above illustrates what I guess I mean by a type of bar based on infinite, and t would be nice to have something like it in the package, but the package still does add so much value even without that.

I will try to submit a pull request without tests to illustrate what I am thinking about later tonight.  Feel free to reject, and I can add tests and resubmit once I understand how your tests work.  I am a contractor for the feds and my agreement with my boss is that I can file issues on work time, but pull requests, actually fixing things, are not on government time.
This is why I get into the bad habit of providing fixes in comments :)


litd[1134]:  [ERR] LNWL: Unable to complete chain rescan: readScript: script witness item is larger than the max allowed size [count 33970, max 11000]

Hi I was running
pool and lnd service it was all good untill last week, my node restarted I believe and I am facing this issue
[ERR] LNWL: Unable to complete chain rescan: readScript: script witness item is larger than the max allowed size [count 33970, max 11000]
Any Pointer how to resolve the same would be of great help

Did you try updating LND

Many thanks for quick feedback this the service log
Currently I am using
"version": "0.15.0-beta commit=lightning-terminal-v0.7.0-alpha",
Which version should I update to, any suggestions Please thanks
lit.service - LiT  Daemon
Loaded: loaded (/etc/systemd/system/lit.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-10-15 20:13:02 UTC; 27s ago
Main PID: 1210 (litd)
Status: "Wallet unlocked"
Tasks: 8 (limit: 4660)
CGroup: /system.slice/lit.service
└─1210 /home/lightningnetwork_magazine/lit/litd --httpslisten=<IP_ADDRESS>:8443 --lnd.wallet-unlock-password-file=/home/lightningnetwork_magazine/.lit/password.txt # --lnd.wallet-unlock-allow-create
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.226 [INF] ATPL: Instantiating autopilot with active=false, max_channels=5, allocation=0.600000, min_chan_size=20000, max_chan_size=16777215, priv
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.230 [INF] SGNL: Systemd was notified about our readiness
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.230 [INF] LNDC: Wallet state of lnd is now: Lnd RPC server is ready for requests
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.244 [INF] LTND: Waiting for chain backend to finish sync, start_height=758829
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.259 [INF] LNDC: lnd version: v0.15.0-beta, build tags 'litd,autopilotrpc,signrpc,walletrpc,chainrpc,invoicesrpc,watchtowerrpc'
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.260 [INF] LNDC: Using network mainnet
Oct 15 20:13:02 lnd-node-1 litd[1210]: 2022-10-15 20:13:02.260 [INF] LNDC: Waiting for lnd to be fully synced to its chain backend, this might take a while
Oct 15 20:13:02 lnd-node-1 systemd[1]: Started LiT  Daemon.
Oct 15 20:13:03 lnd-node-1 litd[1210]: 2022-10-15 20:13:03.060 [INF] LNWL: Started rescan from block<PHONE_NUMBER>0000000007477b90ff0ea53cdd1db88e03799af18ff58df0cebaa7 (height 757921) for 0 addresses
Oct 15 20:13:03 lnd-node-1 litd[1210]: 2022-10-15 20:13:03.222 [ERR] LNWL: Unable to complete chain rescan: readScript: script witness item is larger than the max allowed size [count 33970, max 11000]

LND 0.15.2

if you look at compatible pairs of LND to LIT there is no 0.15.2 release yet
Please check here
https://github.com/lightninglabs/lightning-terminal

I just download binary and place it always to make sure there is compatibility
from LIT releases

There should be a release, look for the latest one of LND

Thank you switching to 0.15.2 solved the issue which is bundled with new release of LIT v0.8.1-alpha

Closing as per the comment above.


Internal Server Error not displaying correct template on database error

When working with Columbus Brewing Company, this didn't seem to display the correct template when we tried to duplicate an element attribute tag associate.

Confirmed this is an issue.

The issues appears to be that what a db.session.commit() causes an exception, you can't use db.session until calling a db.session.rollback(). This wasn't an issue until adding database checks to the navbar.


Exception occurs when I try to get access token from code

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ConnectException' with message 'cURL error 7: Failed to connect to www.googleapis.com port 443: Timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\cloudsheet\google-api-php-client\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:186 Stack trace: #0 C:\xampp\htdocs\cloudsheet\google-api-php-client\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 C:\xampp\htdocs\cloudsheet\google-api-php-client\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 C:\xampp\htdocs\cloudsheet\google-api-php-client\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\Easy in C:\xampp\htdocs\cloudsheet\google-api-php-client\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 186
Please help me.

Hmm, my guess is that you are behind a firewall, or some other strangeness is happening with your network connection.  Have you tried pinging the APIs or curling the API endpoints directly from the command line?

Thank you for your reply.
There was problem with my network.
And it was solved clearly.
:)


How can I customize patients？

I have the basal physiological information of the real patients. Can I customize patients? And what parameters may I lack?

If you want to customize patient parameters, you need to change this parameter csv file https://github.com/jxx123/simglucose/blob/master/simglucose/params/vpatient_params.csv.
For basal, u2ss in the csv file is the one you need to change, its unit is pmol/(kg * min).
For more details on those parameters and the patient model, please take a look at the appendix of this pape rhttps://pubmed.ncbi.nlm.nih.gov/17926672/.
The patient model is defined here in the code: https://github.com/jxx123/simglucose/blob/master/simglucose/patient/t1dpatient.py#L117


ViewPagerAndroid has been extracted from react-native core and will be removed in a future release.

I am using the createMaterialTopTabNavigator, but getting the error:
"ViewPagerAndroid has been extracted from react-native core and will be removed in a future release."
How to solve?

Upgrade to the latest version


Consolidate AzureOpenAIPlanner and OpenAIPlanner into one

May be out of public preview's scope

Wait for investigation result from js/C# sdk. Will port related changes to Python.


Uniformize coqdoc module titles, add prefix

This is both to make coqdoc module titles consistent and make the coqdoc table of contents more easy to navigate.

@traiansf actually, the TOC is fairly evenly split between "Utility" and "Core", with quite a lot of "Tutorial" at the end. I think it's at least an improvement visually from before.

@wkolowski we don't really have time to hack together documentation generation features in time for the next release. In the future, we are probably going to split files further at top level, so then it will become less "repetitive".


Please share terminal commands

How to use this code step by step via terminal

As shown in the readme file use the following terminal command to run the code.
python main.py --train_dir /path/to/train/dir/ --val_dir /path/to/val/dir


Add .vsconfig for required components to build

I've edited it based on what I've seen:

Blend and managed UWP are removed
ARM32 workloads are removed, because the solution has only ARM64
Keep the explicit vs141 and windows 18362 tools, remove implicit vs142 and windows 17763

I wish the official team to verify the config file on a clean VS installation with core editor only.

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

.vsconfig is a thing? That’s so cool!

From: Microsoft Contribution License Agreements<EMAIL_ADDRESS>Sent: Wednesday, May 8, 2019 12:11:28 AM
To: microsoft/Terminal
Cc: Subscribed
Subject: Re: [microsoft/Terminal] Add .vsconfig for required components to build (#566)
[CLA assistant check]https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcla.opensource.microsoft.com%2Fmicrosoft%2FTerminal%3FpullRequest%3D566&data=01|01|duhowett%40microsoft.com|3479072c69e14e289d2d08d6d3846477|72f988bf86f141af91ab2d7cd011db47|1&sdata=K5MnyiZZeEh%2BDxTRo57PBRgfVimr%2B04%2BMGEEEbZNxaQ%3D&reserved=0
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreementhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcla.opensource.microsoft.com%2Fmicrosoft%2FTerminal%3FpullRequest%3D566&data=01|01|duhowett%40microsoft.com|3479072c69e14e289d2d08d6d3846477|72f988bf86f141af91ab2d7cd011db47|1&sdata=K5MnyiZZeEh%2BDxTRo57PBRgfVimr%2B04%2BMGEEEbZNxaQ%3D&reserved=0 before we can accept your contribution.
❌ huoyaoyuan sign nowhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcla.opensource.microsoft.com%2Fmicrosoft%2FTerminal%3FpullRequest%3D566&data=01|01|duhowett%40microsoft.com|3479072c69e14e289d2d08d6d3846477|72f988bf86f141af91ab2d7cd011db47|1&sdata=K5MnyiZZeEh%2BDxTRo57PBRgfVimr%2B04%2BMGEEEbZNxaQ%3D&reserved=0
You have signed the CLA already but the status is still pending? Let us recheckhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcla.opensource.microsoft.com%2Fcheck%2Fmicrosoft%2FTerminal%3FpullRequest%3D566&data=01|01|duhowett%40microsoft.com|3479072c69e14e289d2d08d6d3846477|72f988bf86f141af91ab2d7cd011db47|1&sdata=3rHcGLcIpC4QnDmDtJL%2Bmat3UvAfxLNkpnbboc4zqas%3D&reserved=0 it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTerminal%2Fpull%2F566%23issuecomment-490375221&data=01|01|duhowett%40microsoft.com|3479072c69e14e289d2d08d6d3846477|72f988bf86f141af91ab2d7cd011db47|1&sdata=qlN9j6LRdeJ9mOl9jP3nwUbeOvE5GkzTJYoEsjehENk%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADNHLGRIFKBYYTIBBWIZRTDPUJ4KBANCNFSM4HLO73HQ&data=01|01|duhowett%40microsoft.com|3479072c69e14e289d2d08d6d3846477|72f988bf86f141af91ab2d7cd011db47|1&sdata=P5fhnFjxgZ%2FO7j1wvb3vdJdJNd0yvoyEOs4Wl7LHJSY%3D&reserved=0.

Further more, there can be a vsconfig verification integrated with CI.
The Visual Studio instance on CI machine (or even local instance) can treat only vsconfig mentioned tools (and there dependencies) as enabled, and warn for "invoking unmentioned component".

That is very exciting. Thanks, I’m looking forward to reviewing this/learning more tomorrow!

From: Huo Yaoyuan<EMAIL_ADDRESS>Sent: Wednesday, May 8, 2019 12:18:43 AM
To: microsoft/Terminal
Cc: Dustin Howett; Comment
Subject: Re: [microsoft/Terminal] Add .vsconfig for required components to build (#566)
Further more, there can be a vsconfig verification integrated with CI.
The Visual Studio instance on CI machine (or even local instance) can treat only vsconfig mentioned tools (and there dependencies) as enabled, and warn for "invoking unmentioned component".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTerminal%2Fpull%2F566%23issuecomment-490377163&data=01|01|duhowett%40microsoft.com|bad3c275569d462a665708d6d385678b|72f988bf86f141af91ab2d7cd011db47|1&sdata=b4E81Rcy281GOYaa55PnwLcZGPGyXdR18aoiI4pBxBQ%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADNHLGWX2FLETYFYYWSY46LPUJ5FHANCNFSM4HLO73HQ&data=01|01|duhowett%40microsoft.com|bad3c275569d462a665708d6d385678b|72f988bf86f141af91ab2d7cd011db47|1&sdata=HjCZpF3v%2BgwaeJP7sxZ47o%2Ftx3oF25J1ka%2Bv0B3dRP0%3D&reserved=0.

To clarify, the integrated verification is just my proposal now.
Currently the only way should be manually make a minimal install, follow the IDE instructions and don't do anything more, then build.

Adding this might require some modification of corresponded setup guide in README.md?

/azp run


Please add detailed information about Last Activity Date

I have been using this graph api endpoint to determine 'last activity date of a Office 365 Group / Team' for a customer with 11K groups, in order to create a customized governance solution. We are interested to know how Last Activity Date is determined. Please add this information to the page. Thank you so much!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 000e04ec-f090-98cf-e2b3-fd47ea8c4b29
Version Independent ID: b11c39e2-4d30-6ff0-70e1-b2bcd40689c8
Content: reportRoot: getOffice365GroupsActivityDetail - Microsoft Graph beta
Content Source: api-reference/beta/api/reportroot-getoffice365groupsactivitydetail.md
Product: reports
Technology: microsoft-graph
GitHub Login: @sarahwxy
Microsoft Alias: MSGraphDocsVteam

Any update on this very valid request?


Best way to add 3rd part libraries

Hello!
First of all, congratulations for the great work.
I'm trying to use videojs-markers on the system, and this libra has 3 dependencies:

jquery-2.0.3.min.js
video-js
videojs.markers.js

My question is: what's the best way to load these scripts to my project?
Today, I'm downloading the 3 respective files and saving them in static/vendor/javascript.
Then, I just add them in Html.jsx as follow:
<body>
   <div id="content" dangerouslySetInnerHTML={{__html: content}}/>
   <script dangerouslySetInnerHTML={{__html: `window.__data=${serialize(store.getState())};`}} charSet="UTF-8"/>
   <script src={assets.javascript.main} charSet="UTF-8"/>

   { /* Video.js */ }
   <script src={require("../../static/vendor/javascript/video.min.js")}></script>
   <script src={require("../../static/vendor/javascript/jquery-2.0.3.min.js")}></script>
   <script src={require("../../static/vendor/javascript/videojs-markers.min.js")}></script>
</body>

But this is not working.
Maybe there's a way to embed these files in the single js file bundled by webpack, but I don't know how.
So, would really appreciate some help here about the best way to solve this problem.
Thanks in advance for all support!

for third party plugins, you have to use this way only.  If you want to bundle, simple add a npm task and bundle them, copy these three files into a directory and do something like this
scripts": {
"build": "webpack && uglifyjs ./vendor/*.js -c -m -o ./dst/bundle.min.js --source-map ./dst/bundle.min.js.map"
}

Can I just import them at top of my components?

I import Jquery in the components where Jquery is used.
For the other libraries I include them in in the webpack config entry main
or
I exclude them for jsx loader and include them in client.js ( I use this
method for 3rd party css too).
On Sep 22, 2016 12:19 PM, "EthanSnow"<EMAIL_ADDRESS>wrote:

Can I just import them at top of my components?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/erikras/react-redux-universal-hot-example/issues/1287#issuecomment-248825931,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFNPvEbu8ux_lNa3ElIq7DQFwave3xhtks5qsiTlgaJpZM4KBnnd
.

@govind999
Sorry, but I didn't get your point:
Including

I include additional libraries in the webpack config entry main for
development and production. ( I use this for js, haven't tried it with css)
entry: {
'main': [
'bootstrap-loader/extractStyles',
'font-awesome-webpack!./src/theme/font-awesome.config.prod.js',
'./src/client.js',
'./src/lib/xyz/xyz.js'
]
},
or
I create a new folder src/lib
I put all the libraries used in this folder and exclude the folder for jsx loader in webpack config module loaders jsx (for development and production).
{ test: /.jsx?$/, exclude: /(node_modules)|(src/lib)/, loaders: [strip.loader('debug'), 'babel']},
Then I simply include the js and css files in client.js ( I use this method for 3rd party css too).
import './lib/lib.js';
import 'lib/lib.css';
or you can require where you want to use it
const thisLib = require('../../lib/thisLib/thisLib.js');
thisLib.doStuff();
By doing this you have to make sure you use the relevant javascript in
client only not server. Most libraries need a dom element etc which won't
be accessible in server. I normally initiate the library in componentDidMount and use them on client side events.

@govind999

copy these three files into a directory
What do you mean copy? Download libs locally? Very clever. What to do if it is not an option?


Cannot delete Windows

Unfortunately, sudo rm -rf --no-preserve-root / does not remove all my files as expected. I tried rmdir /S C:\ too in cmd, but no luck. I would like to remove every file on my system (in case you are wondering, I am trying to nuke my system from orbit to remove a type of malware known as 'swodniw'.) This feature should be added. Maybe a nuke-from-orbit default alias?

@programmer5000-com - I'd suggest booting to a USB drive and reformatting your C:\ drive.

...isn't going to work on Windows because Windows won't delete files that have open handles

So... bug tag on this one? User Voice? 😏


Review bin/rfc-editor-index-updates

The code that calls rebuild_reference_relations in bin/rfc-editor-index-updates cannot succeed - the call does not match the function signature.
If this is code can be reached, the failure is being buried.

Is this a place for a log message, just to learn whether the call being used?

could, but I'd rather analyze what's going on - this looks like unintentional breakage rather than unnecessary code.


AttributeError: type object 'Context' has no attribute 'description'

In the unit tests logs I see can exception around the description field in notification templates. Not sure if it is a problem or not, but I remember some earlier issues around this field and how it was around in kwargs and sometimes being missing. So we need to check if notifications are still getting the right templates rendered.
uwsgi_1         | Exception while resolving variable 'description' in template 'notifications/scan_added.tpl'.
uwsgi_1         | Traceback (most recent call last):
uwsgi_1         |   File "/usr/local/lib/python3.6/site-packages/django/template/base.py", line 829, in _resolve_lookup
uwsgi_1         |     current = current[bit]
uwsgi_1         |   File "/usr/local/lib/python3.6/site-packages/django/template/context.py", line 83, in __getitem__
uwsgi_1         |     raise KeyError(key)
uwsgi_1         | KeyError: 'description'
uwsgi_1         |
uwsgi_1         | During handling of the above exception, another exception occurred:
uwsgi_1         |
uwsgi_1         | Traceback (most recent call last):
uwsgi_1         |   File "/usr/local/lib/python3.6/site-packages/django/template/base.py", line 835, in _resolve_lookup
uwsgi_1         |     if isinstance(current, BaseContext) and getattr(type(current), bit):
uwsgi_1         | AttributeError: type object 'Context' has no attribute 'description'
uwsgi_1         |
uwsgi_1         | During handling of the above exception, another exception occurred:
uwsgi_1         |
uwsgi_1         | Traceback (most recent call last):
uwsgi_1         |   File "/usr/local/lib/python3.6/site-packages/django/template/base.py", line 843, in _resolve_lookup
uwsgi_1         |     current = current[int(bit)]
uwsgi_1         | ValueError: invalid literal for int() with base 10: 'description'
uwsgi_1         |
uwsgi_1         | During handling of the above exception, another exception occurred:
uwsgi_1         |
uwsgi_1         | Traceback (most recent call last):
uwsgi_1         |   File "/usr/local/lib/python3.6/site-packages/django/template/base.py", line 850, in _resolve_lookup
uwsgi_1         |     (bit, current))  # missing attribute
uwsgi_1         | django.template.base.VariableDoesNotExist: Failed lookup for key [description] in [{'True': True, 'False': False, 'None': None}, {'initiator': <User: admin>, 'title': 'Created 4 findings for Security How-to: 1st Quarter Engagement: ZAP Scan', 'findings_new': [<Finding: Web Browser XSS Protection Not Enabled>, <Finding: X-Content-Type-Options Header Missing>, <Finding: X-Frame-Options Header Not Set>, <Finding: Directory Browsing>], 'findings_mitigated': [], 'finding_count': 4, 'test': <Test: ZAP Scan>, 'engagement': <Engagement: Engagement: 1st Quarter Engagement (Apr 12, 2018)>, 'product': <Product: Security How-to>, 'url': '/test/16', 'type': 'alert', 'user': None}]

Not seeing this anymore, closing. A new issue can be opened if error reoccurs.

Not seeing this anymore, closing. A new issue can be opened if error reoccurs.


Support loading property for Image

Feature Request
Chrome announced support of loading attribute to allow lazy loading of images natively.  While using the loading attribute on images styled using styled-components, this attributes is not passed to DOM.  Hence, we're not able to utilise this capability.
Expected Behavior
const Image = styled.img ``
<Image src='abc.com/image/1.jpg' alt='image' loading='lazy' />
Actual Behavior
const Image = styled.img ``
<Image src='' alt='image'  />
Reference: https://addyosmani.com/blog/lazy-loading/

Hey there, we use the @emotion/is-prop-valid package for this. Feel free to make a PR against them to get this supported. Here's the relevant file: https://github.com/emotion-js/emotion/blob/master/packages/is-prop-valid/src/props.js

Cool, will do that.

@probablyup would love your input on https://github.com/emotion-js/emotion/issues/1362#issuecomment-495873283


ioSender 3D Viewer shows curves as straight lines // fixed but not official released yet

Hi all!
yesterday i wanted to mill an easy contour...- but in ioSender the some curves are showing as straight lines...
i tried in cncJS and there the curves are curves...
maybe just a user error :)
see attached screenshots and the used gcode...
thanks for watching and great project!

harley_grblHAL_kontur_xcarve.gcode.txt

Those curves are in fact made up of many small line segments and an optimization (for reducing the amount of points to plot) is buggy.
I believe I have fixed this and uploaded a new edge version with the fix for you to try.

I ran into this also.  Are you planning a quick update to the released version? Some of the 3D displays are really off - I thought my GCode generation was messed up. I would not want new ioSender users to see that.
Here is an example. The bottom is the actual tool path (it cuts correctly).  The top is ioSender 3D view.

reopened to inform new user that a fix is already coming.. :) / the linked Version 2.0.40.p2 fixed it for me... :)

thanks.  The edge version works correctly for me too.

Thank you!!!


Hello World sample - == APP == Could not get state.

Expected Behavior
While running the Hello World sample, I did a few requests (POST and GET) to test the nodejs app. I would expect the requests to be able to access the statestore to persist or fetch orders.
Actual Behavior
The POST is receiving the request and logging a new order, but then fails to persist state. And the GET request returns me a "Could not get state.". Apparently it is failing to access the state.
Steps to Reproduce the Problem
Followed the environment-setup guide to install dapr and I am running Dapr in standalone mode.

@pruthvidhodda - can you follow up with this?

Hi @pruthvidhodda. It would be great to have some assistance on this during this week, since I am trying to finalize a session to deliver next week, related to Event-driven architecture and instead of presenting the traditional solutions with Azure Functions, Event Grid, Logic Apps, etc. I would like to maybe present a solution using Dapr and showing it in practice to the audience.
Thank you.

@hugobarona With the dapr and app running, could you directly make the GET call to the state url
http://localhost:<dapr-port>/v1.0/state/statestore/<key>
Also could you share the statestore yaml from the components folder.

@amanbha I got the following response while trying to make a GET request for the statestore
{
"errorCode": "ERR_STATE_STORE_NOT_CONFIGURED",
"message": ""
}
The configuration for the statestore is the one available on the 1.hello world sample. I just downloaded the samples and followed the steps to test the first sample.
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
type: state.redis
metadata:

name: redisHost
value: localhost:6379
name: redisPassword
value: ""
name: actorStateStore
value: "true"

@hugobarona thanks, could you also share the command you are using to run it and the output for it.

@amanbha follows info below:
command:
dapr run --app-id nodeapp --app-port 3000 --port 3500 node app.js
logs:
`Starting Dapr with id nodeapp.    This will block until the app is listening on that port." app_id=nodeapp instance=DESKTOP-BJD8BNP
scope=dapr.runtime type=log ver=0.6.0
== DAPR == time="2020-05-05T21:03:14.5126793+01:00" level=info msg="application discovered on port 3000"
app_id=nodeapp instance=DESKTOP-BJD8BNP scope=dapr.runtime type=log ver=0.6.0
== DAPR == time="2020-05-05T21:03:23.831354+01:00" level=warning msg="error initializing state store stat
e.redis: redis store: error connecting to redis at localhost:6379: dial tcp [::1]:6379: connectex: No connection could be made because the target machine actively refused it." app_id=nodeapp instance=DESKTOP-BJD8BNP scope=dapr.runtime type=log ver=0.6.0
== DAPR == time="2020-05-05T21:03:23.831354+01:00" level=warning msg="either no actor state store or mult
iple actor state stores are specified in the configuration, actor stores specified: 0" app_id=nodeapp instance=DESKTOP-BJD8BNP scope=dapr.runtime type=log ver=0.6.0
== DAPR == time="2020-05-05T21:03:33.0755145+01:00" level=warning msg="error initializing pub sub pubsub.
redis: redis streams: error connecting to redis at localhost:6379: dial tcp [::1]:6379: connectex: No connection could be made because the target machine actively refused it."  Status: Running. In
it Elapsed 18564.787800000002ms" app_id=nodeapp instance=DESKTOP-BJD8BNP scope=dapr.runtime type=log ver=0.6.0
Updating metadata for app command: node app.js
You're up and running! Both Dapr and your app logs will appear here.
== APP == Could not get state.
== APP == Got a new order! Order ID: 42
== APP == Failed to persist state.`

@hugobarona I see following in output, is redis up and running.
error initializing state store state.redis: redis store: error connecting to redis at localhost:6379:

If redis is not running (docker ps) you may have not run a dapr init.

I have the following containers running. So it looks like the redis container is running. And I did run the dapr init when I was setting up my environmnet.

@hugobarona Is any other redis client able to connect to redis.

is there on the samples any client for the redis? I have no client here ready to test the connection.

is there on the samples any client for the redis? I have no client here ready to test the connection.

For troubleshooting, I wanted to try redis cli or any other third party tools. if you have VS code, you can use RedisXplorer

apparently there are issues related to connecting to the redis server on the container. I tried the redis Xplorer and also i created a quick nodejs redis client, and no luck. Any idea what can be? I also disabled the firewall in case it could be the port being blocked, but it is not the case as well.

but i was able to install the Redis Client (redis-cli) and connect to the local redis on port 6379. Followed this article - https://koukia.ca/installing-redis-on-windows-using-docker-containers-7737d2ebc25e

I tried to uninstall and install dapr again. both containers running, but when i try to run the 1. hello world sample, i get the following error:
== DAPR == time="2020-05-06T00:17:09.4920578+01:00" level=warning msg="error establishing client to place
ment service: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp [::1]:6050: connectex: No connection could be made because the target machine actively refused it."" app_id=nodeapp instance=DESKTOP-BJD8BNP scope=dapr.runtime.actor type=log ver=0.7.0

sorry I missed the notifications for this thread, @hugobarona placement service is related to actors and you shouldn't be worried if you are trying to run 1.hello-world sample. Can you now check if the logs say:
level=info msg="found component statestore (state.redis)"

If so you should be able to save and get the state successfully.

It is working now. I believe it was maybe something related to the firewall at the beginning that somehow blocked the connection to the redis instance. Thank you for the help. I will try the samples on the next few days, so any question I will let you know.

but i was able to install the Redis Client (redis-cli) and connect to the local redis on port 6379. Followed this article - https://koukia.ca/installing-redis-on-windows-using-docker-containers-7737d2ebc25e

Yes, this would have worked as cli and redis both are running in the docker network.


Scan - Failed to load PDF file uploaded in request money scan

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/27680
PROPOSAL: https://github.com/Expensify/App/issues/27680#issuecomment-1730711816
Tests

Request money and open scan tab
Upload a pdf
Open scan report
Click on pdf preview
Verify it's loading the pdf

[x] Verify that no errors appear in the JS console

Offline tests

Same as test
QA Steps

same as test

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

https://github.com/Expensify/App/assets/16595846/9ed44a66-a515-4f4b-969b-70bf9f9f9611

Android: mWeb Chrome

https://github.com/Expensify/App/assets/16595846/50cb6d7b-80e9-4e89-9a9b-ddc7cb4ad2e5

iOS: Native

https://github.com/Expensify/App/assets/16595846/f082fbdc-fc0c-4dd0-aa14-657bdfee5922

iOS: mWeb Safari

https://github.com/Expensify/App/assets/16595846/9fd4956e-d562-4fbe-975f-84ad6aac0bb7

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/16595846/b10e82a3-44a5-4fd3-9cba-8dc76af7e5f5

MacOS: Desktop

https://github.com/Expensify/App/assets/16595846/aa699c01-d6be-430d-b81a-16513f9094e6

@sobitneupane Pr is ready for review

Looking at the video, why isn't their a preview of the PDF showing in the thumbnail?

@trjExpensify Currently the expected result is showing the PDF on the preview modal. for here to show pdf preview may be different bug/future.

I'm not sure I'm following, do you mind rephrasing?

Looking at the video, why isn't their a preview of the PDF showing in the thumbnail?

@trjExpensify actually you are asking to show the preview pdf view here right?

Yep, a PDF receipt should preview the same as an image receipt would.

@trjExpensify but we are fixing a different issue here.. when we click the thumbnail it will open a modal for showing the pdf preview load to fail that things we are fixed here. i am not sure we need include this here or not

Yep, a PDF receipt should preview the same as an image receipt would.

Yep, a PDF receipt should preview the same as an image receipt would.

I think that would be a different issue to the one proposed in the original GH. The approved proposal is also only focused on the full preview, rather than the thumbnail. (We should fix that too, though)

I think that would be a different issue to the one proposed in the original GH. The approved proposal is also only focused on the full preview, rather than the thumbnail. (We should fix that too, though)

Hmm.. okay. That seems very strange to me. Why would we accept a partial proposal? Is the thumbnail being worked on already somewhere else or something? This feels and looks broken still really. With the empty state thumbnail, nobody would think to click it to see the PDF rendered.

I think that would be a different issue to the one proposed in the original GH. The approved proposal is also only focused on the full preview, rather than the thumbnail. (We should fix that too, though)

Hmm.. okay. That seems very strange to me. Why would we accept a partial proposal? Is the thumbnail being worked on already somewhere else or something? This feels and looks broken still really. With the empty state thumbnail, nobody would think to click it to see the PDF rendered.

I think that what happened is that the described issue in the GH did not cover the thumbnails (Expected result: The pdf loads. Actual result: It doesn't).
Basically, the GH presented an issue and the proposed solution fixes that issue. I agree that it would have been better to fix everything together for the flow, but, in the end, they are different issues that require separate investigation

@Gonals When a user uploads a DOC file, the backend (I assume) converts it to PDF and returns the converted file. Since we currently don't support previewing DOC files, the receipt won't be displayed until the PDF version is received from the backend.

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/Gonals in version: 1.3.99-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/Gonals in version: 1.4.0-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

I created an issue for the thumbnails here.


segresnet mlflow support

segresnet mlflow support

Hi @dongyang0122 , @drbeh ,
Could you please help review this PR? Ensure it can satisfy our requirements for the MLFlow URI.
Thanks in advance.

@myron I would appreciate it if you can address the comment as soon as you can so we can use mlflow for segresnet in monai services. Thanks

I've updated, please check

The changes look good to me. Can you also update this file? Thanks. https://github.com/myron/research-contributions/blob/updates/auto3dseg/metadata.json

Done.

The changes look good to me. Can you also update this file? Thanks. https://github.com/myron/research-contributions/blob/updates/auto3dseg/metadata.json

Done.

Thanks.


port should be defaulted to 0

Otherwise spawning two instances will conflict in port

Right, done: https://github.com/marcopiraccini/sd-swim/pull/7


Make emailWorkflow tests more robust

I think I have finally figured out why the emailWorkflow.test.ts tests are failing so often on my machine, and probably for the same reason in develop and staging tests: sometimes the Playwright test runs faster than the mail delivery does. So the Playwright code searches for an email that isn't there yet, and doesn't (yet) know to wait and try again later.
Example: here's the screenshot from a failure in my most recent run on local-dev:

Note how it's looking for email addressed to 829abe0e-4e0c-4f0b-9174-a86a7c46b548 but can't find any. Now here's the maildev inbox on my machine after the tests finished running:

The email to 829abe0e-4e0c-4f0b-9174-a86a7c46b548 is there, but it was delivered after Playwright had already filled out the input field.
We need to adjust the mailDevPages.ts code, and possibly the mailinatorPages.ts code as well (haven't looked at these tests on Mailinator yet), to try again if an email hasn't arrived yet. Specifically for mailDevPages, if an email that should be there isn't there, it should wait a half-second or so, empty the input.search-input field, then fill it again with the expected mailbox ID. That will renew the search, and should find the email that was missing the first time. Repeat for about ten tries (total 5 seconds) before giving up.

I'm going to include the fix for this one into https://github.com/sillsdev/languageforge-lexbox/pull/740 rather than as a separate PR, because I suspect (but don't know how to prove) that the change from #740 will be necessary for making the Playwright tests more robust.


Missing "ramadaiasi" company from peviitor.ro site.

URL: https://peviitor.ro/
browser: Chrome
device: Computer
OS: windows

Steps to reproduce

1.Open peviitor URL
2.Put the name "ramadaiasi" in the search field
3.Press enter button
4. Pay attention that is no displayed

Expected results

It should displayed on peviitor.ro the company "ramadaiasi"

Actual results

There is no displayed the company "ramadaiasi" on peviitor.ro

Fixed can you retest?

Retest.