[Flakey CI] [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]VMIlifecycle [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]Creating a VirtualMachineInstance with non default namespace [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]should log libvirt start and stop lifecycle events of the domain [test_id:1641]kubevirt-test-default

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug
/triage build-officer
What happened:
Flakefinder reported a flakey test:
[rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]VMIlifecycle [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]Creating a VirtualMachineInstance with non default namespace [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]should log libvirt start and stop lifecycle events of the domain [test_id:1641]kubevirt-test-default

in this Prow job:

Timed out

What you expected to happen:
Test should pass
How to reproduce it (as minimally and precisely as possible):
See Prow job
Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version):
Kubernetes version (use kubectl version):
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

Occurred again on 2020-07-24
 • Failure [60.005 seconds]
[rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]VMIlifecycle
/root/go/src/kubevirt.io/kubevirt/tests/vmi_lifecycle_test.go:74
  [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]Creating a VirtualMachineInstance
  /root/go/src/kubevirt.io/kubevirt/tests/vmi_lifecycle_test.go:96
    with non default namespace
    /root/go/src/kubevirt.io/kubevirt/tests/vmi_lifecycle_test.go:1053
      [rfe_id:273][crit:high][vendor:cnv-qe@redhat.com][level:component]should log libvirt start and stop lifecycle events of the domain
      /root/go/src/kubevirt.io/kubevirt/vendor/github.com/onsi/ginkgo/extensions/table/table.go:92
        [test_id:1642]kubevirt-test-alternative [It]
        /root/go/src/kubevirt.io/kubevirt/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go:43
        Timed out after 30.003s.
        Logs should confirm pod deletion
        Expected
            <string>: {"component":"virt-handler","kind":"Domain","level":"info","msg":"Received Domain Event of type MODIFIED","name":"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","namespace":"kubevirt-test-default","pos":"server.go:77","timestamp":"2020-07-24T04:45:42.234017Z","uid":"0c5ca667-ae02-49a7-950b-722e9abdf183"}
            {"component":"virt-handler","kind":"Domain","level":"info","msg":"Domain is in state Running reason Unknown","name":"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","namespace":"kubevirt-test-default","pos":"vm.go:1991","timestamp":"2020-07-24T04:45:42.234162Z","uid":"0c5ca667-ae02-49a7-950b-722e9abdf183"}
            {"component":"virt-handler","kind":"Domain","level":"info","msg":"Received Domain Event of type MODIFIED","name":"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","namespace":"kubevirt-test-default","pos":"server.go:77","timestamp":"2020-07-24T04:45:42.271826Z","uid":"0c5ca667-ae02-49a7-950b-722e9abdf183"}
            {"component":"virt-handler","level":"info","msg":"Processing event kubevirt-test-default/testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","pos":"vm.go:1068","timestamp":"2020-07-24T04:45:42.285468Z"}
            {"component":"virt-handler","kind":"","level":"info","msg":"VMI is in phase: Scheduled\n","name":"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","namespace":"kubevirt-test-default","pos":"vm.go:1070","timestamp":"2020-07-24T04:45:42.285561Z","uid":"0c5ca667-ae02-49a7-950b-722e9abdf183"}
            {"component":"virt-handler","kind":"Domain","level":"info","msg":"Domain status: Running, reason: Unknown\n","name":"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","namespace":"kubevirt-test-default","pos":"vm.go:1075","timestamp":"2020-07-24T04:45:42.285595Z","uid":"0c5ca667-ae02-49a7-950b-722e9abdf183"}
            {"component":"virt-handler","kind":"","level":"error","msg":"Updating the VirtualMachineInstance status failed.","name":"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","namespace":"kubevirt-test-default","pos":"vm.go:1212","reason":"Operation cannot be fulfilled on virtualmachineinstances.kubevirt.io \"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66\": the object has been modified; please apply your changes to the latest version and try again","timestamp":"2020-07-24T04:45:42.295165Z","uid":"0c5ca667-ae02-49a7-950b-722e9abdf183"}
            {"component":"virt-handler","level":"info","msg":"re-enqueuing VirtualMachineInstance kubevirt-test-default/testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66","pos":"vm.go:808","reason":"Operation cannot be fulfilled on virtualmachineinstances.kubevirt.io \"testvmikc6zxvtcsr97k2p8zs7hkhmlgvsb7s2cwnxvxgnt45f5cq66\": the object has been modified; please apply your changes to the latest version and try again","timestamp":"2020-07-24T04:45:42.295246Z"}

LOGS TRUNCATED FOR READABILITY

            {"component":"virt-handler","kind":"","level":"info","msg":"VMI is in phase: Failed\n","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","namespace":"kubevirt-test-alternative","pos":"vm.go:1070","timestamp":"2020-07-24T04:46:57.674112Z","uid":"ec89ce0a-2a92-4c59-8ca6-36be6ede656a"}
            {"component":"virt-handler","level":"info","msg":"Domain does not exist","pos":"vm.go:1077","timestamp":"2020-07-24T04:46:57.674141Z"}
            {"component":"virt-handler","kind":"","level":"info","msg":"Performing final local cleanup for vmi with uid ec89ce0a-2a92-4c59-8ca6-36be6ede656a","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","namespace":"kubevirt-test-alternative","pos":"vm.go:1321","timestamp":"2020-07-24T04:46:57.674214Z","uid":"ec89ce0a-2a92-4c59-8ca6-36be6ede656a"}
            {"component":"virt-handler","kind":"Domain","level":"info","msg":"Removing domain from cache during final cleanup","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","namespace":"kubevirt-test-alternative","pos":"vm.go:1351","timestamp":"2020-07-24T04:46:57.674339Z","uid":""}
            {"component":"virt-handler","kind":"","level":"info","msg":"gracefully closed notify pipe connection for vmi","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","namespace":"kubevirt-test-alternative","pos":"vm.go:246","timestamp":"2020-07-24T04:46:58.658577Z","uid":"ec89ce0a-2a92-4c59-8ca6-36be6ede656a"}
            {"component":"virt-handler","level":"info","msg":"Processing event kubevirt-test-alternative/testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","pos":"vm.go:1068","timestamp":"2020-07-24T04:47:11.062627Z"}
            {"component":"virt-handler","level":"info","msg":"VMI does not exist","pos":"vm.go:1072","timestamp":"2020-07-24T04:47:11.062684Z"}
            {"component":"virt-handler","level":"info","msg":"Domain does not exist","pos":"vm.go:1077","timestamp":"2020-07-24T04:47:11.062721Z"}
            {"component":"virt-handler","kind":"VirtualMachineInstance","level":"info","msg":"Performing final local cleanup for vmi with uid ","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","namespace":"kubevirt-test-alternative","pos":"vm.go:1321","timestamp":"2020-07-24T04:47:11.062785Z","uid":""}
            {"component":"virt-handler","kind":"Domain","level":"info","msg":"Removing domain from cache during final cleanup","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7","namespace":"kubevirt-test-alternative","pos":"vm.go:1351","timestamp":"2020-07-24T04:47:11.062844Z","uid":""}

        to match regular expression
            <string>: "kind":"Domain","level":"info","msg":"Domain is marked for deletion","name":"testvmit2ljsjcx87mhww85tmt2zw89n8n5s6qv9tbnkmcjcb5n8wl7"
        /root/go/src/kubevirt.io/kubevirt/tests/vmi_lifecycle_test.go:1103
------------------------------

Prow job: https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-kubevirt-hyperconverged-cluster-operator-release-4.5-hco-e2e-nightly-bundle-release-4-5-azure4/1286496876157210624#1:build-log.txt%3A646


[Model Deprecation]: io.catenax.batch /1.0.1/Batch

Update Reason
Deprecation due to a updated model version: Batch 1.0.2
MS1 Criteria

[ ] The model that should be deprecated exists and is not deprecated already
[ ] The respective model does not affect existing use cases (aspect is either used in higher versions or replaced by a different aspect)
[ ] A shared aspect, which will be deprecated, is not used by any released aspect model

modeling_team


About Us

Possible page that would include "story", mission statement of the business, picture of family that started it

feature/#24-about


TII-255 fix build error on the sakai-11.x-legacy branch

https://jira.sakaiproject.org/browse/TII-255

This was merged into master though?

Yeah that was my bad, I fixed it up.

Cool, I don't know too much about this branch, looks like master is still 11-SNAPSHOT too.

Yeah effectively we don't have a branch for master yet. We'll be doing that work (LTI integration for 12) when we're done our local upgrade to 11.3.
So the current state is:
master == LTI for 11.x (non-working state)
sakai-11.x-legacy == legacy integration for 11.x (working state)


Can't inject ITenantInfo into DbContext - A delegate registered to create instances of 'Finbuckle.MultiTenant.TenantInfo' returned null.

Hi,
my app startup fails because TenantInfo can't be resolved. I'm using autofac for DbContext instantiation.
I'm confused with message I get since my code uses static and not delegate strategy.
This is my code:
Program.cs:
// autofac service provider registration
builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory());

builder.Services
            .AddMultiTenant<TTenantInfo>()
            .WithStaticStrategy("tenant2")
            .WithInMemoryStore(options =>
            {
                options.Tenants.Add(new TTenantInfo { Id="1", Identifier = "tenant1", Name = "Tenant1", ConnectionString = defaultConnectionString});
                options.Tenants.Add(new TTenantInfo { Id="2", Identifier = "tenant2", Name = "Tenant2", ConnectionString = defaultConnectionString});
                options.Tenants.Add(new TTenantInfo { Id="3", Identifier = "tenant3", Name = "Tenant3", ConnectionString = defaultConnectionString});
            });
    }

.....
var app = builder.Build();
....
app.ConfigureMultiTenancy();

// fails here
var context = services.GetRequiredService<MyDbContext>();

MyDbContext:
    public class MyDbContext : MultiTenantDbContext
    {
        private IConfiguration configuration;
        protected MyDbContext(ITenantInfo tenantInfo, DbContextOptions options, IConfiguration configuration) : base(tenantInfo, options)
        {
            this.configuration = configuration;
        }
        protected MyDbContext(ITenantInfo tenantInfo, DbContextOptions options) : this(tenantInfo, options, null)
        {
        }

AutofacModule:
        builder.RegisterType<MyDbContext>()
            .As<DbContext>()
            .As<MyDbContext>()
            .WithParameter("options", GetOptions(connectionString, migrationsAssembly.FullName))
            .InstancePerLifetimeScope());

Full stacktrace:
Autofac.Core.DependencyResolutionException
  HResult=0x80131500
  Message=An exception was thrown while activating λ:Finbuckle.MultiTenant.TenantInfo.
  Source=Autofac
  StackTrace:
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) in /_/src/Autofac/Core/Resolving/Middleware/ActivatorErrorHandlingMiddleware.cs:line 47

  This exception was originally thrown at this call stack:
    Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(Autofac.IComponentContext, System.Collections.Generic.IEnumerable<Autofac.Core.Parameter>) in DelegateActivator.cs
    Autofac.Core.Activators.Delegate.DelegateActivator.ConfigurePipeline.AnonymousMethod__2_0(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action<Autofac.Core.Resolving.Pipeline.ResolveRequestContext>) in DelegateActivator.cs
    Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action<Autofac.Core.Resolving.Pipeline.ResolveRequestContext>) in DelegateMiddleware.cs
    Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.BuildPipeline.AnonymousMethod__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext) in ResolvePipelineBuilder.cs
    Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action<Autofac.Core.Resolving.Pipeline.ResolveRequestContext>) in DisposalTrackingMiddleware.cs
    Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.BuildPipeline.AnonymousMethod__1(Autofac.Core.Resolving.Pipeline.ResolveRequestContext) in ResolvePipelineBuilder.cs
    Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(Autofac.Core.Resolving.Pipeline.ResolveRequestContext, System.Action<Autofac.Core.Resolving.Pipeline.ResolveRequestContext>) in ActivatorErrorHandlingMiddleware.cs

Inner Exception 1:
DependencyResolutionException: A delegate registered to create instances of 'Finbuckle.MultiTenant.TenantInfo' returned null.

Can you help me with this, I would really like to continue with finbuckle since it supports everything I need for multitenancy implementation?
Thanks.

This was my mistake. I tried to get multitenant db context during app startup in order to run seed scripts. Of course tenant info doesn't exist during startup.


Add GetRecordsWithTotalCount method to App

According to the API doc, getRecordsAPI(k/v1/records.json) can include totalCount in the response when totalCount: true is included in the request parameter.
Since we want get the totalCount when getting the records method in this SDK, I added GetRecordsWithTotalCount method to the App.
The interface of GetRecords is left as it is for the back compatibility.
If I need more action to get merge this. Please let me know.

@trung-doan Hi, is there any chance this pullrequest is get merged?

@toshitanian
Thanks for your pull request!
We are considering and will contact with you later.

@trung-doan Thank you so much!


Fixing a few typos

Fixed a typo and removed capitalization of function names in comments. Fixes #75
Signed-off-by: Mohammad Banikazemi<EMAIL_ADDRESS>

LGTM

LGTM


Use conventional naming

Hello,
I deeply appreciate your efforts to bring the feature that exists in all modern languages these days to Go, however I was concerned about the name you've chosen. I believe the use of more conventional names like T, U or even V would be helpful for newcomers with background in such languages as Java or C++, as in this case the code looks more similar to what they are probably used to.
Again, appreciate your time and efforts.

Hello,
I appreciate the serious level of thought you've put into this proposal.
One major issue with renaming it at this time is simply that the theoretical millions of golang gophers around the world using package generics would experience a breaking change by updating.
Package generics adheres to the strict golang backwards compatibility promise: Until 2.0, which may never happen, there shall never be a breaking change in the package.
For your education, G was chosen for a few reasons. I hope you find them enlightening, and thought-provoking:

Simply put, G is the first letter of the word "generics"!
G is also the first letter of golang!
Much like golang, package generics eschews the constraints of traditional thinking, so that it can breach bold new frontiers, and open up programming opportunities in ways the world has never seen before!

For these reasons, G was chosen.
Thank you again for your support and effort in this proposal, however for the stated reasons, I cannot accept it at this time.


Generate publishToXXX to aggregate publishYYYToXXX tasks

For each publication and each repository Gradle generates a publishXXXToYYY task. There is also publishToMavenLocal which aggregates all publishXXXToMavenLocal tasks. Why it doesn’t create publishToYYY aggregate tasks that will publish all publications into a specific repository? I can of course create it myself, but that’s something to copy around with every build file.

Such a task already exists: it's simply called publish.

As far as I understand, publish executes for all repositories. If I have bintray repository and local folder repository, publish will push into both. That's not what I need.

Got it, reopening.

That was fast :) However, why the name is so long? publishAllPublicationsToMavenRepository, why not just publishToMavenRepository? That would actually make publishToMavenLocal more or less in line with generic rule.

The reason is the one in the comment of the PR: there are already a lot of publishXXX tasks, and adding this means another one. Having too many tasks will lead to confusion, so its name is here to give a hint about what it does. It's also consistent with the individual tasks which are named publishFooPublicationToBlah


Feature Reguest: Display the users current Voice Channel with command

Hey,
most people that report things happening in voice chat currently do one of the folling:

Tell us the region but not the room number
Tell us the room number but not the region
Dont say region or number and just say they need help in their VC
So a command to get the current voice channel of a user would be great!

Regards,
Dark

The user's current voice channel (if any) is now displayed in the thread header.


Another open source font for chinese

ref: https://www.w3.org/International/questions/qa-css-lang
https://discourse.gohugo.io/t/ot-i-want-to-have-different-fonts-for-each-language/36302

https://github.com/microsoft/cascadia-code/issues/55

monospace font for chinese that matches i.e. https://fonts.google.com/noto/specimen/Noto+Sans+SC

changed to https://github.com/prinsss/hexo-theme-murasaki and use their font setting for now


How create webchat-0.x.x.js

I need to move from a git repository to a single .js file such as webchat-0.1.12.js, I have no idea how to do it.

Why don't you build the project @nicolasfarina

You can also use the npm package rasa-webchat


Remove PlatformViewsController conditionals in TextInputPlugin once new embedding includes PlatformViewController

Remove PlatformViewsController conditionals in TextInputPlugin once new embedding includes PlatformViewController

Not sure if this is related - but I'm getting an occasional crash on Android.   Stack trace is always the same.  Happens when I have a flutter app open that has a platform webview on screen.  I swipe up to switch to a different app to take notes - with the keyboard still up - switch back to flutter app.  Flutter app crashes with the following trace.   Looks like flutter is trying to attach keyboard - which is in the process of closing because of the app swap.
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.inputmethod.InputConnection android.view.View.onCreateInputConnection(android.view.inputmethod.EditorInfo)' on a null object reference
at io.flutter.plugin.editing.TextInputPlugin.createInputConnection(TextInputPlugin.java:195)
at io.flutter.view.FlutterView.onCreateInputConnection(FlutterView.java:397)
at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1290)
at android.view.inputmethod.InputMethodManager.onPostWindowFocus(InputMethodManager.java:1574)
at android.view.ViewRootImpl.handleWindowFocusChanged(ViewRootImpl.java:2600)
at android.view.ViewRootImpl.access$900(ViewRootImpl.java:132)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4182)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I don't think your issue is related to this ticket, but I'll CC @amirh about the issue.

Yes, unrelated to this ticket, please file a separate issue. (you might be hitting the issue that's fixed by https://github.com/flutter/engine/pull/9423 but I can't be certain based just on this descripiton)

Excuse me, has this problem been solved?Because I had the same problem, the same error log.My flutter version is 1.7.6

Not sure if this is related - but I'm getting an occasional crash on Android. Stack trace is always the same. Happens when I have a flutter app open that has a platform webview on screen. I swipe up to switch to a different app to take notes - with the keyboard still up - switch back to flutter app. Flutter app crashes with the following trace. Looks like flutter is trying to attach keyboard - which is in the process of closing because of the app swap.
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.inputmethod.InputConnection android.view.View.onCreateInputConnection(android.view.inputmethod.EditorInfo)' on a null object reference
at io.flutter.plugin.editing.TextInputPlugin.createInputConnection(TextInputPlugin.java:195)
at io.flutter.view.FlutterView.onCreateInputConnection(FlutterView.java:397)
at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1290)
at android.view.inputmethod.InputMethodManager.onPostWindowFocus(InputMethodManager.java:1574)
at android.view.ViewRootImpl.handleWindowFocusChanged(ViewRootImpl.java:2600)
at android.view.ViewRootImpl.access$900(ViewRootImpl.java:132)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4182)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Excuse me, has this problem been solved?Because I had the same problem, the same error log

Hi @jyp334. The problem your describing is unrelated to this issue. Can you please file a new bug with appropriate reproduction steps and your Flutter doctor info?

Done here: https://github.com/flutter/engine/pull/9938

@matthew-carroll this issues still occurs, please read https://github.com/flutter/flutter/issues/38668#issuecomment-522221140

@luffynas this ticket was a work-item rather than a bug fix. I believe the issue that you're interested in is here: https://github.com/flutter/flutter/issues/36453


[vx.dev] implements #100

[vx.dev] This PR implements #100, created by vx.dev.

[vx.dev]: This code snippet creates a live stream page with a video play area, a comment section, and a bottom action space for sending gifts. The primary color used is pink, and the page is structured with a video player placeholder, a scrollable comment area, and action buttons for liking, commenting, and gifting. The comments are managed with a state hook, and new comments can be added through an input field.

把视频播放区域放置在左侧，占据 2/3 的空间，评论区和操作按钮放置在右侧，上下排布，占据 1/3 空间。

flex-2 不是一个可以带来 flex: 2 CSS 效果的 class name。


Should we keep TEX files?

In the past, I tried to keep TEX files as well as the PDF so I could have the source of the document. This created an issue. Since we write a lot in the TEX file, GitHub automatically picks up the language and makes LaTeX the dominant language in the repo, which we don't want.
I have a way to force GitHub to ignore LaTeX files in the language stats, though, by using PATH/TO/FILE linguist-documentation (see here) in .gitattributes.
We have two options:

Not keeping TEX files at all, only the PDFs
Keeping TEX files in source control, but ignoring it in language stats

Let me know what you think!

I am leaning towards not keeping the TEX files as they should be historical documents. If for some reason once we finish our project another team picks it up, I imagine they would be required to write their own new documentation anyways.

@silverware13 You got a point. Also, I downloaded the Overleaf projects last night and tried to compile them locally. There were a lot of dependencies needed to even compile the document. So, I think just the PDFs are enough. I'm closing this one.


Support styling as a hyperlink

See https://github.com/crossterm-rs/crossterm/issues/602 and https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

I want this too. I suspect OSC 8 will just work if https://github.com/ratatui-org/ratatui/issues/902 is fixed.
A super high level on that issue is that the calculation of how many cells to skip needs to take into account that ANSI escape codes might mean that we write many symbols to the same cell.
A full solution to this would be to add a hyperlink widget that has properties for the text and hyperlink so app code can just do:
Hyperlink::new("Google", "https://google.com).render(area, buf);

Alternatively, I think as phrased you might be looking to add the hyperlink as another part of the Style struct, which would allow it to be added to any span/line/text without having to break the flow. Thoughts?

Thanks for your quick reply 🤗
A widget would be too limiting. I think that this should be part of a Paragraph since such a hyperlink can be part of a longer text and might be broken/wrapped into multiple lines (so not only in one Line).

To be clear, a Hyperlink Widget as proposed above would accept anything that supports Into<Text>. I'd like eventually to move the wrapping into Text / Line / Span instead of wrapping being implemented in Paragraph only.

/// A hyperlink widget that renders a hyperlink in the terminal using [OSC 8].
///
/// [OSC 8]: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
struct Hyperlink<'content> {
    text: Text<'content>,
    url: String,
}

impl<'content> Hyperlink<'content> {
    fn new(text: impl Into<Text<'content>>, url: impl Into<String>) -> Self {
        Self {
            text: text.into(),
            url: url.into(),
        }
    }
}

impl WidgetRef for Hyperlink<'_> {
    fn render_ref(&self, area: Rect, buffer: &mut Buffer) {
        self.text.render_ref(area, buffer);
        let width = (area.width as usize).min(self.text.width());

        // this is a hacky workaround for https://github.com/ratatui-org/ratatui/issues/902, a bug
        // in the terminal code that incorrectly calculates the width of ANSI escape sequences. It
        // works by rendering the hyperlink as a series of 2-character chunks, which is the
        // calculated width of the hyperlink text.
        for (i, two_chars) in self
            .text
            .to_string()
            .chars()
            .chunks(2)
            .into_iter()
            .enumerate()
        {
            let text = two_chars.collect::<String>();
            let hyperlink = format!("\x1B]8;;{}\x07{}\x1B]8;;\x07", self.url, text);
            buffer
                .get_mut(area.x + i as u16 * 2, area.y)
                .set_symbol(hyperlink.as_str());
        }
    }
}

A widget would be too limiting. I think that this should be part of a Paragraph since such a hyperlink can be part of a longer text and might be broken/wrapped into multiple lines (so not only in one Line).

Would you mind expanding a bit more on this point. I'm guessing with your rustlings work you have a bit more of an understanding of how Ratatui works now and might have thought more about how this idea might fit into things? Do you have any design ideas here?

No, I didn't work long enough with Ratatui to be able to work on design ideas. I just wanted to mention that a link could be wrapped and therefore exist on two lines.
Example in a too small terminal pane:

If hyperlink was a part of Style, that would be represented as:
Line {
  spans: [
    Span::raw("A solution file can be found at "),
    Span::styled("solutions/quizzes/quiz2.rs", Style::new().hyperlink("solutions/quizzes/quiz2.rs")),
  ],
  ..Line::default()
}

(Lines are wrapped when put in a paragraph, OSC8 continues to the next line automatically AFAIK)


Detect bun/bunx in create-solid

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

What is the new behavior?
The create-solid script detects when the user_agent start with bun. Both bun run and bunx set npm_config_user_agent. When Bun is detected, dependencies are installed with bun.
Other information

I'm going to merge this but I'm unclear when we will release this. I've had a hell of a time getting the CLI to build properly even with all deps locked it builds incorrectly. Even pulled out into a separate repo. It builds but the code generated is broken.
So appreciate the patience.

No worries, thanks Ryan!


New study functionality

I have added a new functionality to summarize the settings and statistics of the simulation in a PDF.
To do this, the switch for "New study" must be activated via the settings menu. The next time you stop the simulation, a json file with some data on colonies and food is generated and then a PDF is generated using LaTeX based on this data. Of course, this only works if you have an appropriate LaTeX compiler on your system.
The generated files are saved in the folder "statistics" and then in the subfolder named after the respective time.
But even if you don't have an appropriate compiler, no error should occur, just the .tex file is generated without compiling it into a PDF.
This is just an idea, but I think the feature is useful.
Of course, there would still have to be some changes to the presentation in the PDF, but I can add that bit by bit. I was thinking mainly of additional data, diagrams, images etc.
Please let me know what you think:)

That's a great feature. 👍
It's just a bit cumbersome to compare the values of the different colonies. Would it be feasible and not too complicated to add a visualization at the beginning of the PDF document?

That's a great feature. 👍
It's just a bit cumbersome to compare the values of the different colonies. Would it be feasible and not too complicated to add a visualization at the beginning of the PDF document?

This should not be a problem. I'm thinking of a kind of coordinate system in which the objects are plotted.
Or what are you thinking of? @AlhaririAnas

This should not be a problem. I'm thinking of a kind of coordinate system in which the objects are plotted.
Or what are you thinking of? @AlhaririAnas

I'm thinking along the same lines, perhaps a scatterplot would work. The colonies could be represented by squares and the food sources by triangles. The color intensity should correspond to the amount of food available; colonies that have gathered more food would have a darker color compared to those with less. The same applies to food sources. What do you think about this? @Jonah-gr

I have now worked on it a little more and have now got this far:

for this simulation:

The color intensity is always the same so far, but I can continue to see how well I can change that.
At least the limits are automatically implemented.

I have now added the option to load the data that was created in the json file when a study was created back into the simulation via the settings menu.

I think it's ready to merge now. I have now added the additional parameter pheromone_influence to both the statistics and the gui. This indicates how strongly the ants are influenced by the pheromone traces.
There is still a problem that if you have just made a new study, it cannot be reloaded into the gui immediately but you have to restart the program first.
But I can take care of that problem later :)


Rename the extension frs to rpr

Hi @hi-ro-no .  Change is fine, and from the description it is obvious what it does.  In the future though we use a bit of a template for PR descriptions.  See https://github.com/GPUOpen-LibrariesAndSDKs/RadeonProRenderUE/pull/4


Marriage abroad: Outcome per path Romania

Trello card
Motivation
Editing Marriage abroad questions and outcomes can be quite a complex process.
Marriage abroad is also one of the most frequently updated Smart Answer.
Here we have flattened all outcomes belonging to Romania, to enable content designers make updates quicker.
By providing one template per outcome for marriage abroad Romania content, content editing barriers are greatly reduced.
Factcheck
Preview link
GOV.UK
Expected changes

None

As this is a refactor of Romania flow, and not a change to the content or flow of the smart-answer, users should not experience any changes. The changes that have occurred to the code are:

Create an outcome per path for Romania
Change Romania flow to use outcome per path
Remove Romania from Country lists
Remove redundant Romanian guards in outcomes

the PR seems good to me, but I am not sure to approve since I don't have much experience in this area

Cheers guys


Can't not bundle in Travis CI

I try to bundle doc in travis but it's not success, Seems, it was a js error
Note, build folder existed
This is error
$ swagger-cli bundle -o build/swagger.bundle.yaml -t yaml swagger.yaml
Cannot read property 'mkdir' of undefined

This is .travis.yml
language: node_js

node_js:
  - 8

before_install:
  - npm install swagger-cli
  - export PATH=$(npm bin):$PATH

script:
  - swagger-cli validate swagger.yaml

after_success:
  - swagger-cli bundle -o build/swagger.bundle.yaml -t yaml swagger.yaml

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GH_TOKEN
  local_dir: build
  on:
    branch: master

Node 8 is no longer supported.  Change the node_js setting in your Travis CI file to 10 and it'll work


Update jackson-core, jackson-databind to 2.10.5

Updates

com.fasterxml.jackson.core:jackson-core
com.fasterxml.jackson.core:jackson-databind

from 2.10.4 to 2.10.5.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.fasterxml.jackson.core" } ]

labels: library-update, semver-patch

Codecov Report

Merging #440 (2e4e84a) into master (bb571df) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #440      +/-   ##
==========================================
- Coverage   85.55%   85.51%   -0.04%
==========================================
  Files         128      128
  Lines        2962     2962
  Branches       99       99
==========================================
- Hits         2534     2533       -1
- Misses        428      429       +1

Impacted Files
Coverage Δ

...scala/hydra/kafka/ingestors/KafkaTopicsActor.scala
96.42% <0.00%> (-3.58%)
:arrow_down:

Continue to review full report at Codecov.

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

Codecov Report

Merging #440 (2e4e84a) into master (bb571df) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #440      +/-   ##
==========================================
- Coverage   85.55%   85.51%   -0.04%
==========================================
  Files         128      128
  Lines        2962     2962
  Branches       99       99
==========================================
- Hits         2534     2533       -1
- Misses        428      429       +1

Impacted Files
Coverage Δ

...scala/hydra/kafka/ingestors/KafkaTopicsActor.scala
96.42% <0.00%> (-3.58%)
:arrow_down:

Continue to review full report at Codecov.

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


Add dm_control suite Hopper

[x] add dmc xml into third_party
[x] load xml and assets
[x] design class interface
[x] domain randomization
[x] reward calculation
[x] align with dmc

In [1]: from dm_control import suite

In [2]: e0 = suite.load("hopper", "hop", task_kwargs={"random": 0})
suite/hopper hop
mujoco/engine Physics __init__
mujoco/engine Physics after_reset
mujoco/engine Physics forward
suite/hopper task __init__
suite/base Task __init__
rl/control Environment __init__

In [3]: e0.reset()
rl/control Environment reset
rl/control Physics reset_context
mujoco/engine Physics reset
mujoco/engine Physics forward
suite/hopper task initialize_episode
suite/base Task initialize_episode
suite/base Task after_step
mujoco/engine Physics after_reset
mujoco/engine Physics forward
suite/hopper task get_observation
suite/hopper physics touch
Out[3]:
TimeStep(step_type=<StepType.FIRST: 0>, reward=None, discount=None, observation=OrderedDict([('position', array([ 0.        ,  0.30670429,  0.22534578, -1.07342273,  1.46621727,
       -0.11992276])), ('velocity', array([0., 0., 0., 0., 0., 0., 0.])), ('touch', array([0., 0.]))]))

In [4]: a=e0.action_spec()

In [5]: e0.step(a.generate_value())
rl/control Environment step
suite/base Task before_step
mujoco/engine Physics set_control
mujoco/engine Physics step
suite/base Task after_step
suite/hopper task get_reward
suite/hopper physics height
suite/hopper physics speed
suite/hopper task get_observation
suite/hopper physics touch
rl/control Task get_termination
Out[5]:
TimeStep(step_type=<StepType.MID: 1>, reward=0.0005784147110599047, discount=1.0, observation=OrderedDict([('position', array([-0.00249376,  0.3434393 ,  0.20517116, -1.0998353 ,  1.44573661,
       -0.12935117])), ('velocity', array([-0.04672792, -0.20055629,  2.9378971 , -1.61202892, -2.10634588,
       -1.64450644, -0.75285104])), ('touch', array([0., 0.]))]))

Render.

This can be done with existing dm_control. My point is if you want to render for debugging, then use python dm_control; if you want faster training, then use envpool.

Dict-style indexing vs. hardcode.

This is indeed an issue. I raise a similar issue https://github.com/deepmind/mujoco/issues/251
If we find a more elegant solution in the future, we'll update the codebase accordingly.

Render.

This can be done with existing dm_control. My point is if you want to render for debugging, then use python dm_control; if you want faster training, then use envpool.

Hi, here render means users may want to train a visual policy. Input is an image, and output is the motor command like the following papers did:
https://arxiv.org/abs/2107.09645
https://arxiv.org/abs/1912.01603
https://arxiv.org/abs/2107.00644


有什么办法能下载webtoon上的已购漫画？

Source name
Webtoons.com 1.4.41/Dongman Manhua 1.4.2
Source language
中文/Eng
Describe your suggested feature
在Web端登陆账号后，能浏览和下载已购买的章节，而不是只能观看或下载免费章节
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[ ] I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
[X] I have updated the app to version 0.15.3.
[X] I will fill out all of the requested information in this form.

用英文 這裡不是中文論壇


feat:  Optimize collections listing [PT-185588012]

This change is to optimize the materials collection rendering when used on large collection pages like the NGSS Assessment Portal.
Here are the changes that were made:

Styled Landing page content html textarea on the projects admin page to be full width, and taller and to use a monospace font.  Previously it was a standard unstyled textarea.  This just makes viewing and editing it easier.
Added optional opacity animation setting to existing cleanUpAssignViewAdjustment function in langing_page.html.haml.  This was a request to ensure the content was visible when the each NGSS content area was revealed.
Added a public loadMaterialsCollections() method which caches the results for later use in renderMaterialsCollection().  The api endpoint already supported getting multiple collections.
Fixes a race condition between the MaterialsCollection onDataLoad callback prop and the initial mount of the component.  The existing code in the project landing pages assumes the component is mounted.

@emcelroy I updated the requested pages with a common class to fix the content editor styling here: https://github.com/concord-consortium/rigse/pull/1206/commits/e4347fe59558a46f77dc569705f22646714a3f5e

@emcelroy I updated the requested pages with a common class to fix the content editor styling here: e4347fe

Looks great -- thanks!


[BUG] Facing PASESession.cpp:254: CHIP Error 0x00000032: Timeout error over Ble-wifi pairing in chip-tool

Reproduction steps
1. Bring up dut(sample-app) - ./chip-all-clusters-app --wifi
2. Pair chip-tool with DUT - ./chip-tool pairing ble-wifi 1 <SSID> <pwd> 20202021 3841
3. Check the log.

Bug prevalence
Whenever I do ble-wifi pairing with master: chip-tool.
GitHub hash of the SDK that was being used
commit 9a41c9c3d971797010ab9de4eb04804015674fb0 (HEAD -> master, origin/master, origin/HEAD)
Platform
raspi
Error:

CHIP:TOO: Run command failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:254: CHIP Error 0x00000032: Timeout

Attached are logs for reference:

wifi-issue.txt
Wifi issue.txt

@Survensa Is this a duplicate of https://github.com/project-chip/connectedhomeip/issues/23438 ?

Duplicate of #23438


Making 'AddHttpClient()' register default client in DI as 'HttpClient'

AddHttpClient() now registers a default client in DI as HttpClient by default.
Added test.
Addresses #2023

Great! Thanks.
Note that this will show up in 5.0 (full release in 2020).

Awesome thanks! This tripped me up recently.

Always happy to help :smile: Me too, I was like, where is my HttpClient if I just added them :confused:


Adding Azure Pipelines CI builds

These are synced the PartsUnlimitedMRPmicro Azure DevOps Builds.

These commits should be squashed.

Fixes #23


Fix supertype condition in LoadIncludes.

Direction is wrong.
As a test case you can use something like this:
class XClass {
  public function foo(ModuleHandler $a, ModuleHandlerInterface $b, object $c, mixed $d) {
    $a->loadInclude('non_existing_module', 'inc', 'something');
    $b->loadInclude('non_existing_module', 'inc', 'something');
    $c->loadInclude('non_existing_module', 'inc', 'something');
    $d->loadInclude('non_existing_module', 'inc', 'something');
  }
}

I have not looked deeply into your package so I just post this code here instead of actually writing a test :)

  public function testLoadInclude() {
    $module_handler = $this->getModuleHandler();
    // Include exists.
    $this->assertEquals(__DIR__ . '/modules/module_handler_test/hook_include.inc', $module_handler->loadInclude('module_handler_test', 'inc', 'hook_include'));
    $this->assertTrue(function_exists('module_handler_test_hook_include'));

The module is in core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc. I'm guessing modules in this location aren't discovered by the test extension discovery.
That's because it's a mocked module handler:
  protected function getModuleHandler() {
    $module_handler = new ModuleHandler($this->root, [
      'module_handler_test' => [
        'type' => 'module',
        'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
        'filename' => 'module_handler_test.module',
      ],
    ], $this->cacheBackend);
    return $module_handler;
  }

So I guess this PR does fix a bug in its logic :)

That's because it's a mocked module handler:

The list of "known modules" for this check has nothing to do with the module handler instance used in that test.
There is a registry of modules somewhere..
And it seems none of the test modules is included.

I didn't forget about this. I just am waiting for time to figure out the "regression" for that unit test. The module inside of core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test (source) isn't discoverable even with test discovery enabled.


BrandAccountSignupDataPreview Page made as Responsive

Issue #58 Fixed

[x] Profile page upload option added.

Hello @RohitGupta1237
Review my changes.

@BHS-Harish  hey check mail shared figma ..change color of remove image instead of red make it same as shared in figma upload new photo button red looks odd and other issue is that there are 2 background color when u cchange screen size fix that and put a default photo instaed of free empty space if someone wants to add phot its fine else show a default image else alignment is fine
attaching ss

I displayed default images but it not shown. But it's visible once you remove the photo.

@BHS-Harish  okay get  other issues then  fixed pls

Hey @RohitGupta1237
All are fixed.. please check it.

@BHS-Harish  perfect!!


internal/trace/v2: failures on Windows

#!watchflakes
default <- pkg == "internal/trace/v2" && test ~ `TestTrace`

There are two kinds of failures on Windows I've seen so far. One is "per-M streams out of order" and the other is "expected a proc but didn't have one". I understand what's happening in both, just have to fix them.

Removing Soon since I landed a temporary mitigation.


[UBS_Prod. Admin. Order table] The 500 status code occurs when Admin tries to save changes in the order status in the Order table

Environment:
Windows 10 Home (Version 22H2)
Chrome version 108.0.5359.71, Firefox version 109.0
MacOS version 12.6.1 (21G217)
Chromе version 107.0.5304.110
Reproducible: always (prod and test)
Build found: 28/02/2023
Preconditions

Go to https://www.pick-up.city/#/ubs
Sign in as Super Admin
Click on the Admin profile and choose 'UBS-admin'

Steps to reproduce

Go to the 'Order status' column and choose the order with any (except 'Canceled' and 'Done') status and open  dev tools with the 'Network' tab
Click on the 'pencil' icon in order to change another order status
Choose any status in the drop-down list of order statuses and click on the '✔' to confirm the choice
Pay attention to the error in the dev tools with the 'Network' tab

Actual result
The 500 status code occurs when Admin tries to save changes in the order status in the Order table
Expected result
Admin can change and save chosen order status in the Order table
User story and test case links
E.g.: "User story #2536"
Labels to be added
"Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).
https://user-images.githubusercontent.com/110603507/221927665-da5ecb2d-170a-45e3-8e69-087c5673eba5.mp4

I tested it several times and it works fine


update: Change !knife command to !roundknife & !rk

Discussion covered here:

I also thought about changing the css_restart and css_start commands, but I believe it needs to be discussed.
I thought of something like css_forcerestart/css_fr and css_forcestart/css_fs, let me know what you think of this.
I took the liberty of changing the documentation now.

Hey!
I messed up the branches here :P
But I'll make these changes in the update
Thanks for the PR!


sort button does not show up

The Sort by Column button is not appearing in the Modeling tab when I select a field in the Fields section.

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

ID: bc6eda16-f142-5163-b0af-38fa634d7e42
Version Independent ID: 58599a34-91ac-4947-c2e5-a0508a554080
Content: Sort by column in Power BI Desktop - Power BI
Content Source: powerbi-docs/create-reports/desktop-sort-by-column.md
Service: powerbi
Sub-service: powerbi-desktop
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Thanks for the feedback, @mikelauxihs! I'm adding the writer to review and make an update. I did a quick test, and when I select a field, I now see a "column tools" menu tab and the ribbon there includes a "sort by column" button.

Hi @mikelauxihs ,
Thank you for your suggestion.  We've made the update and set the article to republish.
All the best,
The DOCS team


Restore profile functionality

This includes generation of profile data, saving and loading. Also needs to consider allowing no-profile games

[ ] Input serialization:

override fun save(profile: UserProfile) {
        log.debug("Saving data to profile")

        val bundle = Bundle("input")
        bindings.forEach { bundle.put(it.key.toString(), it.value.toString()) }

        bundle.log()
        profile.putBundle(bundle)
    }

    override fun load(profile: UserProfile) {
        log.debug("Loading data from profile")

        val bundle = profile.getBundle("input")
        bundle.log()

        for (binding in bindings) {

            val action = binding.key

            // if binding is not present in bundle, then we added some new binding thru code
            // it will be saved on next serialization and will be found in bundle
            var triggerName: String? = bundle.get<String>("$action")
            if (triggerName == null)
                continue

            var modifierName = "NONE"

            val plusIndex = triggerName.indexOf("+")
            if (plusIndex != -1) {
                modifierName = triggerName.substring(0, plusIndex)
                triggerName = triggerName.substring(plusIndex + 1)
            }

            // if triggerName was CTRL+A, we end up with:
            // triggerName = A
            // modifierName = CTRL

            try {
                val key = KeyCode.getKeyCode(triggerName)
                rebind(action, key, InputModifier.valueOf(modifierName))
            } catch (ignored: Exception) {
                try {
                    val btn = MouseTrigger.buttonFromString(triggerName)
                    rebind(action, btn, InputModifier.valueOf(modifierName))
                } catch (e: Exception) {
                    log.warning("Undefined trigger name: " + triggerName)
                    throw IllegalArgumentException("Corrupt or incompatible user profile: " + e.message)
                }
            }
        }
    }

Double check this is needed:
Bundle fxglServicesBundle = new Bundle("FXGLServices");
fxglServicesBundle.put("globalSoundVolume", 0.5);
fxglServicesBundle.put("fullscreen", false);
fxglServicesBundle.put("globalMusicVolume", 0.5);


Issue setting fan attributes through automation: Unable to find service

Please help me out fixing the following.  I have configured my Dyson fan (TP04) using the Local setup.
The Dyson entity seems to be working correctly, I can use the switches (like auto mode, night mode, front airflow switch, etc.) in my dashboards (ignore speed control, that one isn't working):

State screenshot from dev-tools:

Interestingly enough, it seems like my fan is not recognizing the dyson speeds, but is using the HA default LOW, MEDIUM, HIGH. Not sure if I did something wrong during setup, I have no clue how to get rid of this..
My issue is that I am getting errors when trying to set any attribute through an automation. I am struggling to get working:

Speed
Oscillation (true/false)
Angle (low and high)
Front airflow (using the switch on a dashboard works, but not when calling dyson.set_flow_direction_front in an automation..)
etc.

The automation that I am trying to run should turn on my fan using a number of parameters:
- id: bedroom_cooling
  alias: Bedroom Cooling
  description: Cool the bedroom in the evening
  trigger:
  - platform: numeric_state
    entity_id: sensor.dyson_temperature
    above: '22'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: group.lights_living
      state: 'off'
    - condition: state
      entity_id: input_boolean.not_home_enabled
      state: 'off'
  action:
  - service: dyson.set_speed
    data:
      speed: 4
      entity_id: fan.dyson
  - service: dyson.set_flow_direction_front
    data:
      entity_id: fan.dyson
      flow_direction_front: true
  - service: dyson.set_angle
    data:
      angle_low: '90'
      angle_high: '135'
      entity_id: fan.dyson
  - service: fan.oscillate
    data:
      oscillating: true
      entity_id: fan.dyson
  mode: restart

The error that I am getting from HA Trace is: 'Unable to find service dyson.set_speed':

I must be doing something wrong here, but I have been trying for weeks and I am probably overlooking something stupid here...
Can you please support me in figuring out what's happening because I am going crazy here, hehe.
Thanks for the great integration in any case, after TFA messed up my fan setup, I am happily using your solution.

This integration uses the new fan percentage and fan.set_percentage service instead of the old dyson_speed solution.

Perfect! Thanks for the solution! fan.set_percentage works for me and I am using "Dyson Purifier Cool".

Many thanks for the information, I can confirm that the speeds are now working perfectly!
Do you also know how to manipulate the oscillation angles (angle_low and angle_high), I am getting the same type of error here: Unable to find service dyson.set_angle:


Fix: OnNavigationStateChanged not always called

The OnNavigationStateChanged Prop of react-native-community-webview is not called when the history state is manipulated via javascript (e.g.: window.history.pushState({test: "test"}, "Test Title", "index.html")).
With this pull request each history change will be noticed by the native webviews (android and ios) and the navigation change will be forwarded to onNavigationStateChanged with navigationType: "other".

So I've tried to get this to work, but it doesn't appear to.
import React, { Component } from "react";
import { WebView } from "react-native-webview";

export default class App extends Component<Props> {
  render() {
    const html = `

Testing

Testing

Testing

          <button onclick="javascript:changeurl()">Hello</button>

    `;
    return (
      <WebView
        source={{ html }}
        onNavigationStateChange={nav => alert(JSON.stringify(nav))}
      />
    );
  }
}

When I click the button, I see the appendChild fire, but the pushHistory doesn't fire onNavigationStateChange at all.

Interesting -- it does work on Android.


clientv3: change keepAlive Close() to close()

keepAlive is a private struct that belongs to clientv3 pkg and shouldn't expose a public Close() method.

Can you explain why we need this change in the commit message?

@xiang90 added commit msg keepAlive is a private struct that belongs to clientv3 pkg and shouldn't expose a public Close() method.

this isn't being exported into godocs and there's no way to access this function, is this really fixing anything?

this isn't being exported into godocs and there's no way to access this function, is this really fixing anything?

it is an aesthetics change I believe. but I am ok with it as long as the commit message is clear.

yeah, it makes code look better. Having a public method on a private struct doesn't seem right to me.

there be some kind of linting to find these if it's important

this patch should also cover watchGrpcStream.Close instead of doing it piecewise

@heyitsanthony will add watchGrpcStream.Close () to this patch


config.toml, app.toml, client.toml documentation

We should have a config section that breaks down what each of these files do along with recommended settings

[ ] config.toml

[x] #14

[ ] app.toml
[ ] client.toml

@nikever
I think this is related to the infra work for nodes where we want the user to be able to select params that are needed. Adding to the infra project as well.


Update daylite to 6.5.2

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Running script.sh...

>>> brew cask _audit_modified_casks bcee8479bf63a5f1f2605d3fac2ddc25613d6feb...fcf7853cdbde65afd7b6d6ef034d62ebdb4193ea
==> 1 modified cask: daylite
==> Downloading https://download.marketcircle.com/daylite/daylitedma652.dmg
==> Verifying checksum for Cask daylite
audit for daylite: passed

>>> brew cask style Casks/daylite.rb

1 file inspected, no offenses detected

>>> brew cask reinstall --verbose Casks/daylite.rb
==> Satisfying dependencies
==> Downloading https://download.marketcircle.com/daylite/daylitedma652.dmg
Already downloaded: /Users/travis/Library/Caches/Homebrew/Cask/daylite--6.5.2.dmg
==> Verifying checksum for Cask daylite
==> Installing Cask daylite
==> Running installer for daylite; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> installer: Package name is Daylite & Mail Assistant
==> installer: Installing at base path /
==> installer:PHASE:Preparing for installation…
==> installer:PHASE:Preparing the disk…
==> installer:PHASE:Preparing Daylite & Mail Assistant…
==> installer:PHASE:Waiting for other installations to complete…
==> installer:PHASE:Configuring the installation…
==> installer:STATUS:
==> installer:%5.708425
==> installer:PHASE:Writing files…
==> installer:%6.963530
==> installer:PHASE:Writing files…
==> installer:%10.728846
==> installer:PHASE:Writing files…
==> installer:%11.983951
==> installer:PHASE:Writing files…
==> installer:%13.239056
==> installer:PHASE:Writing files…
==> installer:%14.494162
==> installer:PHASE:Writing files…
==> installer:PHASE:Writing files…
==> installer:%17.004372
==> installer:PHASE:Writing files…
==> installer:%18.259477
==> installer:PHASE:Writing files…
==> installer:PHASE:Writing files…
==> installer:%20.769688
==> installer:PHASE:Writing files…
==> installer:%23.279899
==> installer:PHASE:Writing files…
==> installer:%24.535004
==> installer:PHASE:Writing files…
==> installer:%25.790109
==> installer:PHASE:Writing files…
==> installer:%27.045214
==> installer:PHASE:Writing files…
==> installer:%28.300320
==> installer:PHASE:Writing files…
==> installer:%30.810530
==> installer:PHASE:Writing files…
==> installer:%33.320741
==> installer:PHASE:Writing files…
==> installer:%37.086056
==> installer:PHASE:Writing files…
==> installer:%38.341162
==> installer:PHASE:Writing files…
==> installer:%39.596267
==> installer:PHASE:Writing files…
==> installer:PHASE:Writing files…
==> installer:%40.851372
==> installer:PHASE:Writing files…
==> installer:%42.106477
==> installer:PHASE:Writing files…
==> installer:%43.361583
==> installer:PHASE:Writing files…
==> installer:%44.616688
==> installer:PHASE:Writing files…
==> installer:%47.126898
==> installer:PHASE:Writing files…
==> installer:%48.382004
==> installer:PHASE:Writing files…
==> installer:%49.637109
==> installer:PHASE:Writing files…
==> installer:%50.892214
==> installer:PHASE:Writing files…
==> installer:%52.147319
==> installer:PHASE:Writing files…
==> installer:%53.402425
==> installer:PHASE:Writing files…
==> installer:%61.225607
==> installer:PHASE:Running package scripts…
==> installer:%87.045647
==> installer:PHASE:Running package scripts…
==> installer:%87.660411
==> installer:PHASE:Running package scripts…
==> installer:%88.296459
==> installer:PHASE:Running package scripts…
==> installer:%88.966137
==> installer:PHASE:Running package scripts…
==> installer:%89.047414
==> installer:PHASE:Running package scripts…
==> installer:%89.111707
==> installer:PHASE:Writing package receipts…
==> installer:%89.705346
==> installer:PHASE:Writing package receipts…
==> installer:%97.262500
==> installer:PHASE:Registering updated applications…
==> installer:%97.750000
==> installer:STATUS:Running installer actions…
==> installer:STATUS:
==> installer:PHASE:Finishing the Installation…
==> installer:STATUS:
==> installer:%100.000000
==> installer:PHASE:The software was successfully installed.
==> installer: The install was successful.
🍺  daylite was successfully installed!

>>> brew cask zap --verbose Casks/daylite.rb
==> Implied "brew cask uninstall daylite"
==> Running uninstall process for daylite; your password may be necessary
==> Removing launchctl service com.marketcircle.persistence.autoupdate
==> Removing launchctl service *.com.marketcircle.Daylite-Helper
==> Signalling 'TERM' to application ID 'com.marketcircle.daylite'
==> Signalling 'TERM' to application ID 'com.marketcircle.persistence.autoupdate'
==> Signalling 'KILL' to application ID '*.com.marketcircle.Daylite-Helper'
==> Uninstalling packages:
com.marketcircle.pkg.DLBase
com.marketcircle.pkg.DMABase
==> Dispatching zap stanza
==> Running zap process for daylite; your password may be necessary
==> Trashing files:
~/Library/Application Support/com.marketcircle.daylite
~/Library/Caches/com.marketcircle.daylite
~/Library/Caches/com.plausiblelabs.crashreporter.data/com.marketcircle.daylite
~/Library/Group Containers/*.com.marketcircle.daylite
~/Library/Preferences/com.marketcircle.daylite.plist
~/Library/Saved Application State/com.marketcircle.daylite.savedState
==> Removing all staged versions of Cask 'daylite'

>>> Leftover: launchjob_load
> com.marketcircle.Daylite-Helper

If we changed the uninstall launchctl from *.com.marketcircle.Daylite-Helper to *com.marketcircle.Daylite-Helper (removed the first dot), would that remove the leftover launch daemon?


Turn on Spans by default

Goal
Spans will be on by default

Merge activity

Nov 7, 11:06 AM: @bidetofevil started a stack merge that includes this pull request via Graphite.


Sakshis/save publish profile

This PR fixes #12185.
It has all the prior UI changes that were reverted for last release. PR- https://github.com/microsoft/azuredatastudio/pull/21906 was reverted, and it has all the changes that were there. Only the last commit here is some additional functionality I updated to make rename, exclude, delete to work with latest changes; and add new profile to the tree and sqlproj [the prior changes were reviewed and signed off in the last PR].

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

21 of 37 (56.76%)  changed or added relevant lines in 5 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.008%) to 41.667%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/sql-database-projects/src/controllers/projectController.ts
6
7
85.71%

extensions/sql-database-projects/src/models/publishProfile/publishProfile.ts
1
3
33.33%

extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts
11
24
45.83%

Files with Coverage Reduction
New Missed Lines
%

extensions/notebook/src/jupyter/serverInstance.ts
4
75.5%

Totals

Change from base Build<PHONE_NUMBER>:
-0.008%

Covered Lines:
30339

Relevant Lines:
67410

💛  - Coveralls

Please also add a screenshot of the changes to the publish dialog to the PR description

Please also add a screenshot of the changes to the publish dialog to the PR description

Done.

Also please update the screenshots in the description with the alignment updates

Done.


use ember-asset-loader v0.6.1

fix an error with .git when perform npm-install
See issue or PR on ember-asset-loader for more info:
https://github.com/ember-engines/ember-asset-loader/issues/83
https://github.com/ember-engines/ember-asset-loader/pull/84

@rwjblue should be fine now. :)

Released as v0.8.2


We should be able to configure a "grabber zone" larger than the divider

Sometime we want to draw a very thin divider without gaps on each side, but the problem with such thin divider is that the grab zone is also very thin!
It would be nice to be able to configure a grabber zone larger than the divider itself.

@The4Summers Hello. I've added grabber zone to a new package created from this.
https://pub.dev/packages/multi_split_view_next

@The4Summers , good idea. Thanks. I'll do it.

It will be resolved by #83

@The4Summers , I'm not sure if it makes sense to allow it to be smaller than the thickness of the divider. :thinking:

@The4Summers
This will add a buffer around the current dividerThickness.
MultiSplitViewTheme(
              data: MultiSplitViewThemeData(
                  dividerHandleBuffer: 5,
                  dividerPainter: DividerPainters.grooved2()),
              child: multiSplitView)

The default dividerThickness is 10. So, the total drag area will be 20 (10 + 5 on each side).

@The4Summers
Version 3.3.0 released


Makefile Linter | Python & Javascript

Context
Enforce code-style by creating a linting target in the Makefile. Lints Python and Javascript.
Addressed Issue #322
Changes

Separate make calls for Python (.py) and Javascript (.js, .jsx, .ts, .tsx)
** Called via make lint_python and make lint_javascript
** Linting via flake8 and eslint
ESLint formatting rules stored in /dashboard/origin-mlx/.eslintrc.yml
Formatting changes to all .py files to meet flake8-PEP8 standards
Formatting changes to many javascript files
Automatic changes to package-lock.json and package.json for ReactJS support for eslint

Notes

.eslintrc.yml's overrides parameters store rules that require large changes to the current codebase. These rules are therefore disabled.
Linting python files requires a virtual environment stored as venv in the main /mlx/ directory

Wow! Thank you Phu. This is a massive change. I might need some more time to properly review :-)
A few quick observations:

Many of the Python code style violations are in generated files which we should probably exclude
We should probably add some sand-boxing for Python based make targets, using a venv, like you mentioned
Did you use autopep8 or some other tool to automatically fix some of the Python code style violations? If so, maybe we can add a script or Make target for future "auto-corrections"

Wow! Thank you Phu. This is a massive change. I might need some more time to properly review :-)
A few quick observations:

Many of the Python code style violations are in generated files which we should probably exclude
We should probably add some sand-boxing for Python based make targets, using a venv, like you mentioned
Did you use autopep8 or some other tool to automatically fix some of the Python code style violations? If so, maybe we can add a script or Make target for future "auto-corrections"

I'll take a look and see how to exclude those files/directories with flake8
I'll see if we could generate a venv for the user if they don't have one
Some of the python corrections were fixed with the Black linter. A lot of the other corrections I sifted through manually and fixed, or added # noqa.

Hi @BluThaitanium -- maybe we can add another Make target to actually fix the Python code violations. We could collaborate on that (seeing that I accidentally already committed onto your branch 8-)

autopep8 appears to work okay and understands the same codes and uses similar parameters
autoflake takes care of unused imports and unused variables

i.e.:
.PHONY: format_python
format_python: venv ## Correct Python code style violations
	@which autoflake > /dev/null || pip install autoflake
	@which autopep8 > /dev/null || pip install autopep8
	@autoflake api tools/python -i --recursive --remove-all-unused-imports \
		--ignore-init-module-imports --remove-unused-variables
	@autopep8 api/ tools/python/ -i --recursive -a -a -a  --experimental \
		--select=E9,E2,E3,E5,F63,F7,F82,F4,F841,W291,W292 \
		--exclude .git,__pycache__,docs/source/conf.py,old,build,dist,venv \
		--max-line-length=140
	@echo "$@: OK"


Update grafana directories tasks

I think there the way those variables are referenced is incorrect. Running this role as the current state ends creating the following directories in the user's home used with ansible
grafana_dir_conf  grafana_dir_data  grafana_dir_home  grafana_dir_log  grafana_dir_plugins

thank you!

thank you for the PR and I apologize for the delay.


Replace issuer DIDs with names

As a user I'm not interested in the DIDs of an issuer but I want to see a meaningful name
E.g. currently the wallet looks like this:

It would be nice if we could replace the DIDs in the MyCredentials, CredentialList and Credential components with the respective name, if those partners are already in our partner list.
Also a click on the "Issuer" field should bring us to the respective partner view.
If we don't know the issuer yet, we could jumpt to the add partner view with the issuer DID prefilled.
Questions/Discussion:
This should probably not implemented completely in the frontend. The backend could enrich the credential/proof data with the respective information (name, partner/connectionId)

What would be the resolution order as the name could come from either:

aca-py label, if set
partner label that i have set when adding the partner
The partners Public Profile, legal name, alt name etc.

I'd go for

Partner label the user gave
Legal name from Profile
ACA-PY Label

Still needed for proofs/presentations

I think we should have finally fixed that one with: https://github.com/hyperledger-labs/business-partner-agent/pull/467


.NET 9 Preview 6 What's New: Updates for my areas.

Add any updates for my areas as includes in release-notes/includes and then add the include to release-notes/aspnetcore-9.0.md.
Looks like that may only be for SignalR so far beyond what has already been added.

Associated WorkItem - 281900

Closed as complete with #33028


Install issue keeps happening no matter how I install

import torchgeometry
Traceback (most recent call last):
File "", line 1, in
File "torchgeometry/init.py", line 3, in
from torchgeometry import core
File "torchgeometry/core/init.py", line 1, in
from .homography_warper import HomographyWarper, homography_warp
File "torchgeometry/core/homography_warper.py", line 39
height: int,
^

This is common issue as there's another friend who finds this problem as well. It seems to be caused by torch version... only torch 1.0 supported?
Could the developer give some quick pointer here? Much appreciated!

Or deos this library only work for Python3?
sorry for keep asking...

@eglxiang I think it may be a python version issue. Python 3.5 does not support this variable annotation.

@eglxiang you are probably using python < v3.6. The typing sintax we support is for >= v3.6. As for pytorch, we support >= v1.0.0. Let us know if you solve the issue with this.

I see. But I need to call this library for my existing repository that relies on Py2.7. Will Py 2.7 be supported in the near future?

Supporting 2.7 could be such a pain right know basically because most of the code relies on typing and that means rewriting a lot of things to support typing for 2.7 which has a totally different syntax. Another reason is that python 2.7 will be deprecated in less than a year. See https://pythonclock.org
We can disscuss more about this so that you can use torchgeometry but what about upgrading your repo to python3? Unless you don't have a lot of prints in your code, it should be pretty straightforward.
Is it public your report?

@eglxiang we added the requirement to the package setup in https://github.com/arraiyopensource/torchgeometry/pull/104.
Closing this.


fix: use juju provided ip (DPE-6105)

Issue
On environments with multiple interfaces/networks, retrieving IP from a DNS may lead to unreachable address.
Solution
Use juju provided bind address for hostname/ip map, instead of DNS returned address.

👍🏻 LGTM.
A couple of questions, just for me to get a bit more context:
1. Previous implementation tried to connect to the socket, defaulting to <IP_ADDRESS>. Are we OK trusting the model provided IP, without testing the connection?

We don't have much choice there. Testing can lead to a false negative, to which we don't have a safe escape hatch.

2. There is another [snippet](https://github.com/canonical/mysql-operator/blob/90d679a153e968f13d5fccb2eb41c93538a68d58/src/ip_address_observer.py#L129-L140) within this repo with the same implementation. We cannot apply the same logic there as there is no `model` to be accessed, correct?

Yes and this is used to detect address changes and trigger the update. Though the detection may give a false positive if, when having multiple interfaces, we may be testing against the wrong/unchanged one.


Modify zIndex context behaviour and sorting

Currently a zIndex is required and every parent/child has its own zIndex context. This has an impact on performance because a) sorting is always performed and b) this triggers a lot of parent/child updates that bubble creating more re-sorts.
With L2 not providing a zIndex would not created a sorted zIndex context, similar to CSS. Alternatively you could set forceZIndexContext to true to force it.
Suggestion is to:

When no zIndex is provided do not create a zIndex context, see if we can skip the sorting for that node. Just like L2
Create an explicit do not sort flag or autosort=false flag, so the app framework can turn off sorting all together including parent/child event bubbling
Expose a .sort() function on the node to manually trigger a sort once

Alternatively we can also strip out the zIndexing all together and have the app framework take care of providing children in the correct order. However this would be a big behavioral change over todays implementation, however it would severely reduce the amount of sorting/bubbling the renderer needs to do every time.
Feedback please: @erikhaandrikman @elsassph @michielvandergeest

My opinion is that z-index should not reorder children, because currently it prevents a framework to control the nodes ordering.
I believe the ordering should done at the rendering phase: when the quads are collected, they can be bucketed by z-index, then rendered in order.
Likewise, when you'll look at resolving elements at (x,y) it can return results ordered by z-index.

We actually had z-ordering at addQuads before, but that would mean it would run it every time even when nothing changed on the ordering which was had a pretty big impact on performance. Which is why we changed it to be done ahead of time and using the update graph.
Bucketing by z-index is pretty intrusive, might as well look into depth buffer usage at that point. Though would need some metrics on how well that is supported across devices.
For now have the ability to skip sorting and providing presorted list on the API would be a good middle ground.


What to do about PyRanges too wide to display in terminal?

One thing I have been wondering about is what to do in case the range is too wide to display properly. I guess truncating the columns Chromosome Strand Start End to Position in the display and only have one column in the displayed output like
Position
chr1:100-200:+

without changing the underlying data would be an improvement.
But this is something that one should be able to change in the settings.
In case it is still too wide, I guess I will have to remove a few columns and just display ... instead.

So I was implementing something like pyranges on my own recently (based on interval trees) which was going to be a more advanced version of my BioRanges library you mention in the readme, but what you're doing here looks to be further along. I was going to bring up this same issue you have here, but see you did already.
In the new library I was implementing, I had a head(nentries) method, which simply used pandas dataframes to pretty print the genomic intervals and associated data. The printing uses up less screen space than tabulate, and would remove this dependency. Might this be an alternative?
I also have some other methods which I think combine some useful aspects of R's tidyverse with genomic range operations that I can port over to pyranges if you are open to collaboration. Do feel free to email me if it's easier to discuss offline (my email is my github name at Google's mail service).

Hi -- I am interested in collaborating. I will send you an e-mail later today :)
Endre

I actually like tabulate as I find the data much easier to read. In my local version, I have started hiding the rightmost columns as long as they are wider than the screen width. But I was going to add a settings dict which would let you control many aspects of the printing, and indeed let you use only pandas for printing if you so desired.

Mail sent :)


Add a blog page.

Will need a

Title
Description
Thumbnail

I'm thinking we will also want an area to write articles for when we want to feature them on the website.

Just saw that Medium also has an API that we might be able to use to pull in this content.

Medium API would be ideal!


Blank PDF for some clients

We are able to successfully generate PDFs and for most of our users they are able to see it  but for a select few they get a blank PDF when they download. Most of the people with issues are using older versions of Adobe, would that cause an issue? If yes, is there a way around it?

I am having the same issue I believe. It is hard to replicate. Did you find a solution for this? @nexgentech5601

Facing the same issue, specifically with Adobe Reader 9. I tried rendering the simplest pdf (just one word in ) and it still shows empty.

As long as there is no information on how to reproduce this, I'm going to close it.
Feel free to provide more details so we can reconsider this.


use spring boot sdk, how to run workflow

when I use temporal-spring-boot-starter-alpha,I hava a question, how to run workflow?

There are a number of ways to start a workflow, we have a guide here https://docs.temporal.io/dev-guide/java/foundations#start-workflow-execution

Closing since this is not an SDK issue, feel free to ask general questions on our forum or community slack


feat(STONEINTG-946): migrate redhat-appstudio/konflux-test

Updating all references to quay repo to reflect org change to konflux-ci.

I think that the lines here and here need to be also updated in order for this to work.
Also the konflux-test:latest image doesn't seem to be pullable based on the failed build job.

Yep the referenced repo is empty. https://quay.io/repository/konflux-ci/konflux-test?tab=tags

/retest


Change the font size/color/typeface of text in a table cell

I could be missing something obvious, but I couldn't find a way to change the font size, color, typeface, etc. of the text in a table cell.  Text alignment within the cell would be a good ability to have too.
If you have a workaround, I'd be happy to try it.  Otherwise, I'll just do my part and try to get this feature higher in the priority queue.  Thank you for the work you've put into this!
Andy

this is not working anymore, with the error

_cell has no attribute text frame

you might want to change that to
paragraph = cell.text_frame

Yep, good catch, I've updated it, thanks @thebeancounter :)

my pleasure
On Thu, Apr 20, 2017 at 8:45 PM, Steve Canny<EMAIL_ADDRESS>wrote:

Yep, good catch, I've updated it, thanks @thebeancounter
https://github.com/thebeancounter :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scanny/python-pptx/issues/85#issuecomment-295829906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANMVaklbQlamg6GYkOyoHeQq8jKP_nqJks5rx5mjgaJpZM4BxyRx
.

I tried both and I got the same error: _Cell has no attribute text_frame.
I did this:
run = table.cell(row, col).paragraphs[0].runs[0] run.font.bold = True run.font.size = Pt(14)

@lpinel your question doesn't make sense to me as you don't access text_frame in your code, but try this:
run = table.cell(row, col).text_frame.paragraphs[0].runs[0]

@scanny  sorry bother you I tried use text_frame in docx It always show me  _Cell has no attribute text_frame.

@robinshion This is the issues list for python-pptx. python-docx is a separate repo here: https://github.com/python-openxml/python-docx

@scanny did a solution ever get built for this problem? I would love to change the font properties (size, boldness, color) of specific cells in my tables.  I tried all three blocks above, and get this error:
"'_Cell' object has no attribute 'text_frame'"
This could be my first-ever post GIT, so please scold me if i should not be posting this here :)

@markceraldi better to post support questions on Stack Overflow using the "python-pptx" tag (unless you're in the wrong place here and are using "python-docx", in which case use that tag). Be sure to post the minimal reproducing code example that gives you the problem as well as the full stack trace.


Paired end data

Hello,
Does this tool work with paired end data?

Hello,
Unfortunately this version of the tool does not support paired-end smallRNA-Seq data.
However this feature is already included in the future work for the next version of DIANA-mAP.
Regards,
Thanos


[BUG] "Unsupported store: redis"  when trying to use Redis as the service store

Describe the bug

What are you trying to do?

Trying to Use Redis as store to cache information for the service

What did you expect to happen?

Redis replaces to built in store and I am able to read/delete values

What happens instead?

service throws error when initializing the store.
How to reproduce the bug:
Environment variables :
MICRO_STORE=redis
MICRO_STORE_ADDRESS=redis:6379

plugins.go:
package main

import (
	_ "github.com/micro/go-plugins/store/redis/v2"
)

Main function:

	//instantiate service
	service := micro.NewService(
		micro.Name(serviceName),
		micro.WrapHandler(AuthWrapper),
		micro.Store(redis.NewStore()),
	)

       service.Init()
	err := proto.RegisterPromotionSrvHandler(service.Server(), new(Promotion))
	if err != nil {
		log.Fatalf(glErr.SrvNoHandler(err))
	}
      myStore := service.Options().Store
      ...
      ....

Error occurs on the last line above. Upon further investigation, the error is thrown in<EMAIL_ADDRESS>. In particular it is thrown in function:
func (c *cmd) Before(ctx *cli.Context) error {
...
...
	// Set the store
	if name := ctx.String("store"); len(name) > 0 {
		s, ok := c.opts.Stores[name]
		if !ok {
			return fmt.Errorf("Unsupported store: %s", name)
		}

		*c.opts.Store = s(store.WithClient(microClient))
	}
....
....

c.opts.Stores only contains two valid stores: memory and service. Redis is not there.
Note that all the code works fine if I use the built-in store.
Environment:
go version go1.14.1 linux/amd64
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/go/src/goTemp/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build778202084=/tmp/go-build -gno-record-gcc-switches"

Store plugins are just missing the init func used in other plugins to include them in the list. See other plugin implementations as an example.

I got it to work after a quick chat with the team. To use a store plugin, one has to load it manually before it can be accessed. I added an initPlugins function in plugins.go and called in the main function of the service:
Environment Variables:
MICRO_STORE=redis
MICRO_STORE_ADDRESS=redis:6379

plugins.go
package main

import (
	"github.com/micro/go-micro/v2/config/cmd"
	redis "github.com/micro/go-plugins/store/redis/v2"
)

func initPlugins() {
	cmd.DefaultStores["redis"] = redis.NewStore
}

Main function:
	//instantiate service
	service := micro.NewService(
		micro.Name(serviceName),
		micro.WrapHandler(AuthWrapper),
       )

        //initialize plugins (this is just needed for stores)
	initPlugins()

       service.Init()
	err := proto.RegisterPromotionSrvHandler(service.Server(), new(Promotion))
	if err != nil {
		log.Fatalf(glErr.SrvNoHandler(err))
	}
      myStore := service.Options().Store
      ...
      ....

Note that initPlugins must be called before service.init to use the environment variable values that point to the location of the redis instance

@asim was this behavior implemented on purpose or by accident? Seems to me like registering the store plugins should be done by micro itself just like all other plugins

Probably just overlooked

Ah it's a bug in the plugins not in go-micro itself, I'll submit a PR


feat: integrate infrastructure

Resolves #
Quality Assurance:

This is an interesting approach. For some reason I figured that the secretToken would be set in the ubiquibot-config repo secrets instead. Is transmitting it from the other repo the superior choice? If so, why?
https://github.com/wannacfuture/ubiquibot-config/blob/d3e49c8f44183a033459cb1257695df4018c95a5/.github/workflows/bridge.yml#L21-L23

This is an interesting approach. For some reason I figured that the secretToken would be set in the ubiquibot-config repo secrets instead. Is transmitting it from the other repo the superior choice? If so, why?
https://github.com/wannacfuture/ubiquibot-config/blob/d3e49c8f44183a033459cb1257695df4018c95a5/.github/workflows/bridge.yml#L21-L23

We need to return the response to the original repo.
And for that, we need to put secret token as the payload for the request.
https://github.com/wannacfuture/ubiquibot-config/blob/d3e49c8f44183a033459cb1257695df4018c95a5/.github/workflows/bridge.yml#L42C1-L48C172

I think it makes sense to rename bridge.yml to compute.yml or something of the like, because I don't want it to be confused with bridges as we see in DeFi.

Is there any extra setup required other than pushing bridge.yml to @pavlovcik/ubiquibot-config? I'm leaning towards merging this so I can continue working.


float8 profiling script: filter out microbenchmarking overhead

Summary:
Our microbenchmarks have a lot of overhead. This PR attempts to get a
cleaner measurement of only the kernels in the fwd+bwd, and subtracts
the kernels unrelated to fwd+bwd code. This makes the kernel summary
tables more reflective of GPU bound real use cases.
Test Plan:
profiling ln -> linear:
python benchmarks/float8/profile_linear_float8.py --dtype_filter both ~/local/tmp --model_type ln_linear

new output, note that only kernels relevant to ln and linear are
displayed
Summary of time (ms) by kernel category

 experiment     0_ref  1_float8  f8_div_ref  ref_div_f8
 category
 0_gemm        10.045     5.194       0.517       1.934
 1_f8_overhead  0.000     1.778         inf       0.000
 2_other        0.592     0.073       0.124       8.066
 All           10.637     7.045       0.662       1.510

Reviewers:
Subscribers:
Tasks:
Tags:

Stack from ghstack (oldest at bottom):

-> #629


Add the last seen feature to the project

hello contributors, I want someone to add the last seen feature, on disconnecting from socket.io, send the current time to backend and store it on Db which is MongoDB, shouldn't be hard, T am using react.js and node.js as frontend and backend in it. Ask me if you have any doubt.

Hey @arpittyagi102, I would like to give it a go

can you explain how to get db in sockerEvents.js file ,for adding last seen in db

Hello,
Whenever a user disconnects, a web socket is sent named as disconnect on that disconnection save the time into the database and then access it, i hope i am clear, ask me if you have any other question

@arpittyagi102  can you assign me .I am already start working on it


Standardize services implementation across packages

There is currently quite a large difference in implementations of the services in the backend and connector packages.
We need to:

[ ] Highlight and discuss the differences in implementations.
[ ] Decide on a single structure all packages should conform to.
[ ] Migrate packages that don't conform.
[ ] Document the structure for future collaborators.

Backend
The backend package is setup such that each service is isolated from the others. The services are isolated based on their domain of functionality. New functionality should either fit into one of the existing domains, or form a new service.
Structure
src/
    service_name/
        model
        service
        tests
        anything else scoped to this service domain
    ...helper_services]/
    graphql/
        resolvers
        tests
        schema

Pros

Very flat directory structure makes it easy to find things, especially for new collaborators.
Splitting code by domain ensures that all tests and code are co-located.

Cons

Connector
The connector package is is divided by higher level grouping of functionality, namely core, ilp-routing, and admin-api. The services are based on the MVC pattern.
Structure
src/
    services/
        service_name/
            controllers
            errors
            factories
            lib
            middleware
            services/
                service_name/
            test/
                controllers
                lib
                middleware
            utils

Pros
Cons

do each of the items in the backend structure (model, service, tests) represent files rather than directories? Otherwise I don't see much difference between the two, aside from the top-level 'services' directory present in the connector.

(Sorry, wrong button)..

do each of the items in the backend structure (model, service, tests) represent files rather than directories?
Yes, those are files.

The connector's file structure is an artifact of being imported from the previous Rafiki project.

@sharafian

do each of the items in the backend structure (model, service, tests) represent files rather than directories?

They are files in this instance, but could be directories if the services became more complicated.

Otherwise I don't see much difference between the two, aside from the top-level 'services' directory present in the connector.

The major difference isn't actually conveyed very well with the above because they are fairly similar on face value. I will create a pr that starts work for #53 to try demonstrate the idea. I can then present it properly on the call on Monday. @matdehaast said he would write a blog post on this, so he better get on that so I don't have to type it out :laughing:
@sentientwaffle

The connector's file structure is an artifact of being imported from the previous Rafiki project.

That's understandable :+1: It is tested so we should be able to migrate it fairly safely.


Just AWESOME !!!

Thanks for this package, I just start to use react to my current project and it's awesome to know this project.
Thanks alot.

Thank you. This project is still evolving a bit (I'm currently writing a new history implementation), but I really like where it is at.

Just few quick questions.

What was the main motivation for this package? I'm wondering why this package exists. What is missing in other packages?

Can this be used with Preact?

BTW, thanks for the docs, they are awesome!

@bboydflo

I was helping with React Router and there were some issues that kept cropping up that had me wondering how I would do things differently. Originally I was trying to think of how to improve RR, but at a certain point I realized that to do what I wanted, I had to start from scratch. Once I wrote the basic router, I realized that this didn't have to just be limited to React and that really expanded the scope of the project.

That is a good question. The @curi/react components should work with Preact, but I haven't tested it; I'll have to look into that. If they do not, I could probably either Preact-proof the @curi/react package or just create a @curi/preact package.

Glad you like the docs. I tried to make them cover everything someone needs to know to get up to speed quickly. Now I just need to figure out how to get people to find out about Curi :sweat_smile:.

Now I just need to figure out how to get people to find out about Curi

I think we need more github keywords here, maybe vue-router, react-router, angular-router


Update documentation to run cloud orchestrator with dockerIMType.

Precondition for this PR: https://github.com/google/android-cuttlefish/pull/549

let's follow the same pattern we have to deploy to App Engine here, see https://github.com/google/cloud-android-orchestration/tree/main/scripts/gcp/app, resulting in something like the following:
scrips/
  gcp/
    ...
  docker/
    conf.toml
    build.sh|run.sh

Now in the repo main README.md we can have a new section specifically for docker where we can simply say something around: "Run ./scrips/docker/run.sh"
The steps listed in the new docs/docker.md file should be scrips/docker/build.sh.

Though I think he already had a sufficient review, I'll wait for him until tomorrow morning, to submit.
@ser-io Would you have any other opinions?


References are not being added to the project analysis results

Describe the bug
When generating a project analysis, the references used are not being populated in the result.
Expected behavior
The references should be added to the result
Steps to Reproduce

Run an analysis
Check the list of project results returned

Closing, seems it is fixed. If not, please re-open


Link notations, projections, fields in structure instances

This requires the companion PR leanprover-community/lean#89.

(The notation for ∩ is not linked since has_inter.inter is not supported yet by the linkification function.)
I think we should probably disable the underlines from the links though.

With Rob's latest changes, even the field notation is linked!


Consider downgrading xUnit from 2.4.2 to 2.4.0

I would like to improve the query tests by using member data. According to SO this should be straight forward. https://stackoverflow.com/a/55027598
However it looks like there is a regression in xUnit (https://github.com/xunit/xunit/issues/1983).
Otherwise we might need to think up another solution so we can use Member Data in these tests.

Sure thing, if you would open a PR thatd be awesome!

Closed with #63


Internal lookups sort breaks certain loc assignments

As found by @dchigarev in https://github.com/modin-project/modin/issues/2536#issuecomment-745219448, internal lookup sorting breaks .loc[] assignment for certain cases.
I've made an attempt at removing the sort which partially succeeded, but that naïve attempt wasn't completely successful plus it would surely incur performance regressions in a lot of places, so I decided to abandon that for now.
Reproducer:
import modin.pandas as pd
import pandas
import numpy as np
from modin.pandas.test.utils import df_equals, create_test_dfs

data = {
    "A": [np.nan, "c", "b", "a"],
    "B": ["d", "b", "a", "d"],
    "C": [1, 2, 3, 4],
    "D": [3, 4, 1, 3],
    "E": [1, 1, 1, 1],
}
md_df, pd_df = create_test_dfs(data)

md_df.loc[:, ["D", "C"]] = md_df.loc[:, ["D", "C"]].astype("float")
pd_df.loc[:, ["D", "C"]] = pd_df.loc[:, ["D", "C"]].astype("float")

df_equals(md_df, pd_df) # AssertionError

Output:
AssertionError: DataFrame.iloc[:, 2] (column name="C") are different

DataFrame.iloc[:, 2] (column name="C") values are different (100.0 %)
[index]: [0, 1, 2, 3]
[left]:  [3.0, 4.0, 1.0, 3.0]
[right]: [1.0, 2.0, 3.0, 4.0]

This is how sorting lookups breaks certain things
Error happens in cases when we're assigning columns in an order which differs from the order of columns in the frame (frame stores columns like ["C", "D"] and we're trying to assign ["D", "C"]).
It happens, because pandas backend internally sorts row and column lookups to determine to which partition every lookup index belong:
write_items -> _apply_select_indices -> _get_dict_of_block_index -> sort
Since we're reindexing based on non-sorted lookups, we're getting a mismatch here.

We need to think how to properly fix the issue. For now I'm just going to xfail the test that is bitten by this issue.

We can change the contract for the query_compiler.write_items method, so it will obtain already sorted lookups and shouldn't care about assignment order.
We can sort a list of lookups somewhere in _LocationIndexerBase.__setitem__ before reindexing item. But since functions that compute lookups always return a list with indices (even when a sequence is monotonic and it could be a slice) assignments like this became very inefficient because of sorting the whole lookups array:
df.iloc[:, [0, 1]] = something # even if we pass slice to the first argument of `iloc`
                               # it will be converted to a list of numeric indices by `*._compute_lookup`

So the first step should be is to add an ability to *._compute_lookup to return slices when possible (at least do not convert slices to a list of numeric indices).
It's unclear to me why we're converting slice to numeric indices here at _compute_lookup:
https://github.com/modin-project/modin/blob/43df818381b4bcfb8f3cdb2e789f3a6cf4e856c1/modin/pandas/indexing.py#L670-L673
it seems that in case of a slice we can just return row_loc here and it will be our row lookup. But maybe I can't understand some underlying logic, so probably some investigations are needed.
After we'll implement that ability, we can move that logic of converting slices to a list to the PandasQueryCompiler.write_items since this is backend-specific and some backend may support writing items with slice lookups.
https://github.com/modin-project/modin/blob/43df818381b4bcfb8f3cdb2e789f3a6cf4e856c1/modin/pandas/indexing.py#L332-L337
The last step would be is to add sorting of list-like lookups to the _LocationIndexerBase.__setitem__, since users rarely pass the huge list-like objects whose length comparable with the axis length (they have slices for that) this sort shouldn't be so expensive.
And after that, we may try to add an ability to work with slices to the write_items -> _apply_select_indices -> _get_dict_of_block_index to never do unnecessary sorting.

Nice analysis!
I think this all smells like a pretty huge epic story of improving the internals of partitioning, what do you think @devin-petersohn ?

Yes, I would love to improve internal partitioning.

I am still able to reproduce this on the latest master.