gemspec: add runtime dependencies on base64, bigdecimal

Description
This PR adds dependencies in the Gemfile on gems which are referred to in the code, but which in Ruby 3.4 will not be bundled with Ruby.
If absent, and relying on the bundled-with-Ruby gems, these gems emit warnings in our test suite.
See #1757
Type of change
Please delete options that are not relevant.

Refactoring (improvements to code design or tooling that don't change behaviour)

Checklist:
Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.

[ ] Tests have been added for any changes to behaviour of the code
[ ] New and existing tests are passing locally and on CI
[x] bundle exec rubocop reports no offenses
[ ] RDoc comments have been updated
[x] CHANGELOG.md has been updated

The test that fails is about the CCK, cucumber compatibility kit.

  1) Cucumber Compatibility Kit 'attachments' example generates valid message types
     Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

       expected collection contained:  [:attachment, :attachment, :attachment, :attachment, :attachment, :attachment, :attachment, :attachme... :test_step_started, :test_step_started, :test_step_started, :test_step_started, :test_step_started]
       actual collection contained:    [:attachment, :attachment, :attachment, :attachment, :attachment, :attachment, :attachment, :attachme... :test_step_started, :test_step_started, :test_step_started, :test_step_started, :test_step_started]
       the missing elements were:      [:attachment, :step_definition]
     Shared Example Group: "cucumber compatibility kit" called from ./compatibility/cck_spec.rb:13
     # ./compatibility/support/shared_examples.rb:22:in `block (2 levels) in <top (required)>'

@olleolleolle not forgotten about this. I know what needs fixing and where, will be doing it soon

It would be good to get a grasp on where these are required, and if we can push any deps into the core engine, as I'm trying to get v10 to move most of the requirements into core.

Update - not forgot bout this @olleolleolle - Next version is v10 which has a few breaking version changes. This will be in that.

This is now superseded by changes in expressions / cucumber-ruby


is hiredis is necessary to install for better performace?

In most use cases, the pure javascript parser and hiredis are similar in terms of performance.

thanks a lot


Support for install protobuf 3.13

This patch adds support for installing protobuf-3.13
This is a requirement for Velox/CH backend
Signed-off-by: Yuan Zhou<EMAIL_ADDRESS>

@weiting-chen

It shows an error "cannot find CMakeLists.txt" in protobuf v3.13.0.
I think this is because the CMakeLists.txt is in cmake directory in protobuf v3.13.0.
They change the framework in the latest version of protobuf.


Fix type checking

Note: there are currently 150+ errors. They seem like a legit error.
There is still something to be done with client-side code checking.


Fix/moved to xunit

As discussed in #18 , fixes #17

I assume all tests still pass?

Of course!

@darklordzw Would you be able to publish a new version of the package any time soon? Thanks in advance :smile:

@pascal89 Sure thing! Latest version of the package is published now.
I've also been looking into setting up the secrets for automated deploy, but it looks like I don't have the permissions required to do so. @Auz, do you have permissions to take a look?


Add tests for selection_area.0.dart

Contributes to https://github.com/flutter/flutter/issues/130459
It adds a test for

examples/api/lib/material/selection_area/selection_area.0.dart

Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Oh sorry ! I didn't see this PR ! Let me close this one then


How I can get the height of a widget which is minimal shrinked?

The Layout-Api describes: if height or top and bottom are not set the widget shrinks to minimal size. How I can get this size? The height property is 0.
Thanks

You're probably trying to read the height before it has been laid out by the device's layout manager.  Once laid out the it will fire its resize event:
const {TextView, ui} = require('tabris');

let label = new TextView({
  centerX: 0, centerY: 0,
  text: 'Hello World!'
}).appendTo(ui.contentView);

label.on('resize', (element) => {
  console.log(element.height);
});

See also #1544

Thx, that worked but the property is not set by his own. I have to set it when the resize-listener is called.
Is this the normal behavior?

@sevenuz Yes, that is the expected behavior.  When you initialize it, it only exists as a tabris.TextView object.  This object is platform agnostic.  It isn't until you append it to the UI that it is actually added to the current layout, and at that point it gets a size.  The resize event is triggered when that aforementioned adding to the layout happens.

Thanks :)


styling the login page

Hi @benhalverson I have finished the login page. Let me know what you think. I'll be working on the other pages in the coming days.

@dbeigi welcome!

Okay, gotta redo some stuff then. Closing PR for now.


TextPatternRange.GetText() UIAutomation throws AccessViolationException on Windows 11

TextPatternRange.GetText() method throws AccessViolationException on Windows 11
TextPatternRange is giving problem in Win 11 and working absolutely fine in Win10.
Even we have updated our Win 11 to
Edition Windows 11 Enterprise
Version 22H2
Installed on 17-02-2023
OS build 22621.1265
Experience Windows Feature Experience Pack 1000.22638.1000.0
UIAutomationClient.dll version : 4.8.9037.0

I have the same problem when running the Microsoft WPF Example.
Example: https://github.com/microsoft/WPF-Samples/tree/main/Accessibility/FindText
.NET version: 9.0.100-preview.7.24407.12
Version 23H2
Installed on 2024/5/13
OS build 	22631.4037
Experience Windows Feature Experience Pack 1000.22700.1027.0


Low battery warning

The badge runs on a LiPo cell that supposedly has an under-voltage protection, which most likely kicks in at a lower voltage than what is healthy for the battery. It is generally not recommended to discharge a LiPo below 3V.
It would be great if the launcher could give a warning when the battery is low.
But ahem some users might be running apps for a long time that draw power. An additional feature would be that the RP2040 resets the badge so that the launcher could display the warning.
Another thing could be to put a snippet in the docs, like the one to read the home button and reset, to check the battery voltage.

Turns out the badge just stops working at 3.3V so this is pretty low priority.


Fix typo in workflow xml that was causing corrupt post function

This change to the XML fixes the observed problem with the post-functions on the 'create' transition.
FYI @aibaars @Daverlo

Thanks!


No resource identifier found for attribute 'carbon_elevationShadowColor' in package

Could you please elaborate? What are the steps to reproduce? Which version are you using? Did you try to compile the most recent commit?

I used this in as： compile 'tk.zielony:carbon:0.14.0'

0.14.0 didn't have colored shadows yet. It's a recent feature and there's no release with it yet. If you wish to use colored shadows now, you can download the repo and import it to your project locally.

@ZieIony Will there be a release with this feature anytime soon? Would be very nice :)

The deal with the upcomming release is that it's using canary tools from Google. I'm waiting for data binding 2.0, lambda support and aar support to become stable. That's why the release date is unknown even to me.

@ZieIony Ok I see... Any other idea how I can achieve colored shadows on a CardView? Or maybe you could make a prerelease?
Sent from my HTC 10 using FastHub

Colored shadows are not supported by Lollipop nor the Support Library. You could prepare a 9-patch with a shadow.
To get colored shadows with Carbon without a release you can use JitPack. You can specify a dependency using a commit hash. I didn't try that, but it should work fine.
https://jitpack.io/#ZieIony/Carbon
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    compile 'com.github.ZieIony.Carbon:carbon:7fdaccdbd1'
}

Note that:

you're trading stability for new features
0.15.0 will require AS 3.0, data binding 3.0 and Gradle 4.1
0.15.0 introduces some minor breaking changes in styles and API

Okay thank you I'll try this out and test it very thoroughly.

0.15.0 (with colored shadows) is on Maven


[Bug]: Migration from chrysalis to stardust sometimes leads to zero accounts

Issue description
We have some users unable to enter their profiles because the profiles have zero accounts after the network upgrade. The sdk debug logs were shared to @thibault-martinez and @Thoralf-M to help discovering the issue
Please note that we can provide a fix on firefly, this is not a blocker to fix a production version of the firefly wallet
Version
1.1.0
Expected behaviour
Profiles with already existing accounts before the merge should keep these existing acconts after the migration
Actual behaviour
Some users are left with no accounts after the upgrade
Can the issue reliably be reproduced?
No
Steps to reproduce the issue
We havent found a way to reproduce this sorry
Errors
No response
Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Closing this since we have no reproduction steps, couldn't find the reason and got no other reports of this happening. If it happens, one can use recover_accounts() to find the accounts again if they had funds, or create the accounts manually with create_account(). wallet.get_chrysalis_data() could also help to see what accounts and addresses previously existed.


Optimization docs

What does this PR do?
Fixes #<issue_number> Follow-up of https://github.com/PyTorchLightning/pytorch-lightning/pull/6825#issuecomment-815692273.
Also requested by the community in #5780.
Motivation
In my opinion, the current docs about optimization (especially about manual optimization) are somewhat messy. There are quite a number of tip/note/warning which are randomly distributed.
Also, I found a few outdated/wrong examples in the docs, so I'll try to address them here.
Description of the changes

Fix all examples
Define subsections for manual optimization (similarly to those of automatic optimization)
Other small fixes/improvements of typo, indent, ...

Before submitting

[n/a] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
[n/a] Did you make sure to update the documentation with your changes? (if necessary)
[n/a] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[n/a] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

current: https://pytorch-lightning.readthedocs.io/en/latest/common/optimizers.html#learning-rate-scheduling
updated: https://107599-178626720-gh.circle-artifacts.com/0/html/common/optimizers.html

current: https://pytorch-lightning.readthedocs.io/en/latest/common/optimizers.html#learning-rate-scheduling
updated: https://108108-178626720-gh.circle-artifacts.com/0/html/common/optimizers.html

Here are the links to the pages that are mainly changed.
Optimization page
Current: https://pytorch-lightning.readthedocs.io/en/latest/common/optimizers.html
Updated: https://108701-178626720-gh.circle-artifacts.com/0/html/common/optimizers.html
LightningModule page
Current: https://pytorch-lightning.readthedocs.io/en/stable/common/lightning_module.html
Updated:  https://108701-178626720-gh.circle-artifacts.com/0/html/common/lightning_module.html

@edenlightning @carmocca are we set here?


Update to 0.7.6

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

FWIW we could look into joining the libgpuarray and pygpu feedstocks together and using split packages to produce multiple packages from the build if that is of interest.
ref: https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#outputs-section

It would help with maintenance for sure (since it's kind of boring to wait for libgpuarray to be merged before updating pygpu), but I don't really have the time to do it.


Example Autofac usage in ASP.NET MVC5 application

I've had some troubles with StructureMap, so I decided to try Autofac instead:
Global.ascx.cs
public class MvcApplication : System.Web.HttpApplication
{
    protected void Application_Start()
    {
        IoCConfig.RegisterDependencies();
        AreaRegistration.RegisterAllAreas();
        FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
        RouteConfig.RegisterRoutes(RouteTable.Routes);
        BundleConfig.RegisterBundles(BundleTable.Bundles);
    }
}

IoCConfig.cs
public class IoCConfig
{
    public static void RegisterDependencies()
    {
        var builder = new ContainerBuilder();

        builder.RegisterSource(new ContravariantRegistrationSource());
        builder.RegisterAssemblyTypes(typeof(IMediator).Assembly)
            .AsClosedTypesOf(typeof(IQueryHandler<,>))
            .AsImplementedInterfaces();

        //builder.RegisterType<Mediator>().As<IMediator>().InstancePerRequest();

        builder.RegisterType<Mediator>().AsImplementedInterfaces().InstancePerLifetimeScope();

        builder.RegisterType<AutofacDependencyResolver>()
            .AsImplementedInterfaces()
            .InstancePerLifetimeScope();

        builder.RegisterControllers(typeof(MvcApplication).Assembly)
                .InstancePerHttpRequest();
        builder.RegisterAssemblyModules(typeof(MvcApplication).Assembly);
        builder.RegisterModule<AutofacWebTypesModule>();

        var container = builder.Build();
        DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
    }
}

In my controller I then have:
public class HomeController : Controller
{
    private readonly IMediator Mediator;

    public HomeController(IMediator mediator)
    {
        Mediator = mediator;
    }

    public ActionResult Index()
    {
        var result = Mediator.Request(new Framework.Queries.ListCustomers { Name = "test", Skip = 0, Take = 10 });
        return View(result);
    }
}

And the error returned by index is:
None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'ShortBus.Mediator' can be invoked with the available services and parameters:
Cannot resolve parameter 'StructureMap.IContainer container' of constructor 'Void .ctor(StructureMap.IContainer)'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'ShortBus.Mediator' can be invoked with the available services and parameters:
Cannot resolve parameter 'StructureMap.IContainer container' of constructor 'Void .ctor(StructureMap.IContainer)'.

[DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'ShortBus.Mediator' can be invoked with the available services and parameters:
Cannot resolve parameter 'StructureMap.IContainer container' of constructor 'Void .ctor(StructureMap.IContainer)'.]
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +528
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +109
   Autofac.Core.Resolving.InstanceLookup.<Execute>b__0() +61
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +201
   Autofac.Core.Resolving.InstanceLookup.Execute() +262
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +282
   Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +72
   Autofac.Core.Activators.Reflection.<>c__DisplayClass2.<CanSupplyValue>b__0() +82
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +233
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +563
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +109
   Autofac.Core.Resolving.InstanceLookup.<Execute>b__0() +61
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +201
   Autofac.Core.Resolving.InstanceLookup.Execute() +262
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +282
   Autofac.Core.Resolving.ResolveOperation.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +60
   Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +111
   Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +279
   Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +175
   Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters) +242
   Autofac.ResolutionExtensions.ResolveOptional(IComponentContext context, Type serviceType, IEnumerable`1 parameters) +72
   Autofac.ResolutionExtensions.ResolveOptional(IComponentContext context, Type serviceType) +48
   Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(Type serviceType) +57
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +87

[InvalidOperationException: An error occurred when trying to create a controller of type 'Website.Controllers.HomeController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +247
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +437
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +257
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +326
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +157
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +88
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +50
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +103
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

It appears to be trying to resolve StructureMap.IContainer, but I have set the DependencyResolver to use Autofac.
Does anyone have any ideas on how to solve this? I love the idea of Shortbus, but I'm having a lot of problems getting up and running. Does anyone have an example Github ASP.NET MVC project they can direct me to?

You should check out MediatR.. ShortBus works fine, but MediatR is actively maintained

Thanks. I've made the realisation that the Shortbus Nuget package is way out of date with the current source.
I did actually figure this out, if anyone else asks. The IoC config looks likes this:
public static void RegisterDependencies()
{
    IContainer container = BuildContainer();

    // set MVC resolver
    System.Web.Mvc.DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
    // set Shortbus resolver! Important :-)
    ShortBus.DependencyResolver.SetResolver(new ShortBus.Autofac.AutofacDependencyResolver(container));
}

public static IContainer BuildContainer()
{
    var builder = new ContainerBuilder();

    // MVC registrations
    builder.RegisterModelBinders(Assembly.GetExecutingAssembly());
    builder.RegisterModelBinderProvider();
    builder.RegisterControllers(Assembly.GetExecutingAssembly()).PropertiesAutowired();
    builder.RegisterFilterProvider();

    builder.RegisterSource(new ContravariantRegistrationSource());

    builder.RegisterAssemblyTypes(typeof(IMediator).Assembly, typeof(IMyHandler).Assembly)
        .AsClosedTypesOf(typeof(IRequestHandler<,>))
        .AsImplementedInterfaces();

    builder.RegisterType<Mediator>().AsImplementedInterfaces().InstancePerLifetimeScope();
    builder.RegisterType<ShortBus.Autofac.AutofacDependencyResolver>()
        .AsImplementedInterfaces()
        .InstancePerLifetimeScope();

    builder.RegisterType<MyDbContext>().As<IMyDbContext>().InstancePerRequest();

    return builder.Build();
}

If was simply that I hadn't twigged that there were two AutofacDependencyResolvers,. one in the Autofac.MVC5 package and one in the Shortbus package. Once that clicked, it all fell into place.
I'll take a look at that other project. Would be nice to have a nuget source instead of a local build.

You can do install-package shortbus -pre for the latest
On Fri, Jul 3, 2015 at 9:32 AM, Ben Powell<EMAIL_ADDRESS>wrote:

Thanks. I've made the realisation that the Shortbus Nuget package is way
out of date with the current source.
I did actually figure this out, if anyone else asks. The IoC config looks
likes this:
public static void RegisterDependencies()
{
IContainer container = BuildContainer();
// set MVC resolver
System.Web.Mvc.DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
// set Shortbus resolver! Important :-)
ShortBus.DependencyResolver.SetResolver(new ShortBus.Autofac.AutofacDependencyResolver(container));

}
public static IContainer BuildContainer()
{
var builder = new ContainerBuilder();
// MVC registrations
builder.RegisterModelBinders(Assembly.GetExecutingAssembly());
builder.RegisterModelBinderProvider();
builder.RegisterControllers(Assembly.GetExecutingAssembly()).PropertiesAutowired();
builder.RegisterFilterProvider();

builder.RegisterSource(new ContravariantRegistrationSource());

builder.RegisterAssemblyTypes(typeof(IMediator).Assembly, typeof(IMyHandler).Assembly)
    .AsClosedTypesOf(typeof(IRequestHandler<,>))
    .AsImplementedInterfaces();

builder.RegisterType<Mediator>().AsImplementedInterfaces().InstancePerLifetimeScope();
builder.RegisterType<ShortBus.Autofac.AutofacDependencyResolver>()
    .AsImplementedInterfaces()
    .InstancePerLifetimeScope();

builder.RegisterType<MyDbContext>().As<IMyDbContext>().InstancePerRequest();

return builder.Build();

}
If was simply that I hadn't twigged that there were two
AutofacDependencyResolvers,. one in the Autofac.MVC5 package and one in the
Shortbus package. Once that clicked, it all fell into place.
I'll take a look at that other project. Would be nice to have a nuget
source instead of a local build.
—
Reply to this email directly or view it on GitHub
https://github.com/mhinze/ShortBus/issues/41#issuecomment-118364300.


Facebook

We use GitHub Issues for bugs.
If you have a non-bug question, ask on Stack Overflow: http://stackoverflow.com/questions/tagged/react-native
If you have a feature request, post it on Product Pains: https://productpains.com/product/react-native/
--- Please use this template, and delete everything above this line before submitting your issue ---
Description
[FILL THIS OUT: Explain what you did, what you expected to happen, and what actually happens.]
Reproduction
[FILL THIS OUT: Try to reproduce your bug on rnplay.org and provide a link. If you can't reproduce the bug on rnplay.org, provide a sample project.]
Solution
[FILL THIS OUT: What needs to be done to address this issue? Ideally, provide a pull request with a fix.]
Additional Information

React Native version: [FILL THIS OUT: Does the bug reproduce on the latest RN release?]
Platform: [FILL THIS OUT: iOS, Android, or both?]
Operating System: [FILL THIS OUT: MacOS, Linux, or Windows?]

This issue contains nothing to indicate what you were trying to ask or report. Closing.

@facebook-github-bot close


Doesn't work with bootstrap 5

Hi,
I was just checking out the bootstrap 5 docs and it seems like this plugin doesn't work with bootstrap 5 (demo). It would be awesome if bootstrap 5 could be supported.

Hi @mohe2015,
It'll be added in Bootstrap 5 directly see: https://github.com/twbs/bootstrap/pull/31085


When I use this example_1_toymodel.py. I get error like this.

And I want to ask how i can enter the mfa virtual environment （I have create mfa environment according to your protocol）.
Thanks a lot sincerely.

Hello! If I see correctly, you are using pycharm. If that's the case, you need to follow the instructions outlined here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360006880560-How-add-an-already-existed-conda-environment-to-pycharm-as-an-interpreter-
I am also copying them in this post:
"Hi, you can add the existing conda environment by creating a new interpreter in PyCharm > selecting Conda environment > Existing environment > specify the path to python.exe inside your created environment."

Sorry for my very slow response. As commented by #azournas, you have to choose the "mfapy" environment from PyScripter.
Please check "Run"=>"Python versions"=>Setup Python versions. For my case (Windows10 + Anaconda3), the "mfapy" folder in your anaconda3 folder was selected.
C:\Users\YOURNAME\anaconda3\envs\mfapy


./write-edid.sh: line 72: line: command not found

./write-edid.sh: line 72: line: command not found
The code in question is:
getOneLine ()
{
   line=$(line) || [ \! -z "$line" ]
}

From my understanding of bash, $(line) should run a command named line. However, it can't find any such command as a bash builtin or in my $PATH. I am using "GNU bash, version 4.3.33(1)-release (armv7l-unknown-linux-gnueabihf)" (on archlinuxarm). What should the command called 'line' be?

It reads bytes from EDID file line by line (see lines 75-79). For text EDID file we simply "cat" it (line 76), for binary EDID file we print it with "xxd" command, then function getOneLine() reads printed file line by line to parse for hex bytes. Most probably you invoke script without parameters or with wrong link to EDID file.

I am invoking the script as root using:
./write-edid.sh 1 edid_auo14.bin
I enabled debug trace on the bash script to see exactly what it was doing. The output is as follows:
+ PROGRAM_STRING=write
+ BUS=
+ FILE=
++ getopt -o bh --longoptions binary,hexadecimal -n write -- 1 edid_auo14.bin
+ ARGS=' -- '\''1'\'' '\''edid_auo14.bin'\'''
+ eval set -- -- ''\''1'\''' ''\''edid_auo14.bin'\'''
++ set -- -- 1 edid_auo14.bin
+ binaryMode=1
+ true
+ case "$1" in
+ shift
+ break
+ '[' 2 -lt 1 -o 2 -gt 2 ']'
+ BUS=1
+ '[' 2 -lt 2 ']'
+ FILE=edid_auo14.bin
+ '[' '!' -f edid_auo14.bin ']'
+ '[' '!' -r edid_auo14.bin ']'
+ IFSBAK='
'
+ export 'IFS=
'
+ IFS='
'
+ edidLength=128
+ count=0
+ chipAddress=0x50
+ '[' 1 -eq 0 ']'
+ xxd -p -g 0 -u -c 1 -l 128 edid_auo14.bin
+ getOneLine
++ line
./write-edid.sh: line 73: line: command not found
+ line=
+ '[' '!' -z '' ']'
+ IFS='
'
+ echo 'Writing done, here is the output of i2cdump -y 1 0x50:'
Writing done, here is the output of i2cdump -y 1 0x50:
+ i2cdump -y 1 0x50
No size specified (using byte-data access)
Error: Could not set address to 0x50: Device or resource busy
+ exit

You can see that when it calls getOneLine for the first time, it tries to evaluate the command called line, which doesn't exist, so it prints an error and assigns nothing to the variable called line. As a result, the body of 'while getOnLine' is not executed, and it skips straight to the i2cdump part of the script. Unless there's a different version of bash which behaves differently to the version I have, I can't see how it could possibly work, but presumably it works for you, otherwise you wouldn't have committed it...

I guess the problem is with different bash versions. The simplest way for you could be changing line 78 from "fi | while getOneLine ; do" to "fi | while read line ; do".

yep.. change it directly in the code... "fi | while read line ; do" works and is also cleaner.

unfortunateli in my laptop, monitor edid is read-only.. writing to it does nothing.. I tried also manually.

Do you run it as root?
Also, your EDID EEPROM chip can have WP (write protect) pin tied to power, then all writes operations will be blocked by chip.

I wasn't able to write presumably due the the write protection reason.
can't figure out how to byepass it yet

sudo?
On Tue, Aug 21, 2018 at 5:26 PM Derek Zhu<EMAIL_ADDRESS>wrote:

I wasn't able to write presumably due the the write protection reason.
can't figure out how to byepass it yet
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ChalkElec/write-edid/issues/1#issuecomment-414693222,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB1pmJrGfeiGJUWAh6HtsIEi3WXiAPexks5uTBiQgaJpZM4DbMEl
.


Add integration tests for aggrivate

This PR adds integration tests to the repo. The tests don't cover all possible paths but it's a start. The tests can be run using npm run test.
These tests will help ensure we don't break anything. The tests produce the following output:
PASS  test/aggrivate.test.js (10.963 s)
  ✓ Returns error with invalid config path (133 ms)
  Given a valid config file path
    When there are 0 feeds to pull
      ✓ Returns successfully with 0 feeds processed (5309 ms)
    When there is a feed with the pull now flag set in the database
      ✓ Returns successfully with 1 feed processed
      ✓ Updates the feed record (3 ms)
      ✓ Downloads feed into feed directory (1 ms)

I chose https://jestjs.io as the testing framework because of its current popularity, but I'm happy to integrate another framework if its preferred.
I've tried to minimise the amount of configuration/setup required to run the tests as much as possible, but the tests still require a podcast index database.
I had to write a decent amount of setup code which I have split across several files, I also have included a couple of external dependencies to help.
In the future I plan to setup a CI script run these tests automatically against PRs.
Please provide any feedback you might have.

This is really nice. You wrote a lot of code. Some time this week I’m going to be rolling out a new aggregator node and I will sit down with this and see how it all works. I will provide some feedback then. I’m a complete virgin on JavaScript testing.  I’m sure I’ll have some questions. Thank you!!

It’s also very helpful to have a framework like this in place. Then I can extend it without having to reinvent the wheel again.


Assistants from previous installs are still listed and usable on fresh installs.

Steps to reproduce the problem:

Install rubra - curl -sfL Ihttps://raw.githubusercontent.com/acorn-io/rubra/main/quickstart.sh | sh -s -- start
Create assistants.
Uninstall rubra

curl -sfL https://raw.githubusercontent.com/acorn-io/rubra/main/quickstart.sh | sh -s -- stop
rm -r ~/.rubra

Install rubra - curl -sfL Ihttps://raw.githubusercontent.com/acorn-io/rubra/main/quickstart.sh | sh -s -- start
After installation, notice that all the assistants. created in step2 are still present  and usable.

Expected Behavior:

There should be no assistants available on installs done after uninstall of rubra

Related issue - https://github.com/acorn-io/rubra/issues/32

Following steps needed to be done manually to clear all assistants from previous installs:
docker volume rm  rubra_mongodb

This should be addressed in https://github.com/rubra-ai/rubra/commit/5dc8c89f4a6be74ffca2ab5cc68a353eb8c3285d
There is now an easy way to delete data and do a full uninstall.
Delete data: curl -sfL https://get.rubra.ai | sh -s -- delete
Full uninstall: curl -sfL https://get.rubra.ai | sh -s -- uninstall

can we close this issue?

Assistants from previous installs are not seen when deleting data / uninstalling before the app is started again.
Delete data: curl -sfL https://get.rubra.ai | sh -s -- delete
Full uninstall: curl -sfL https://get.rubra.ai | sh -s -- uninstall


added --security-opt

Thanks for the PR.
This should be fixed up in master. the provider now talks to the API directly instead of shelling out.
-s


[Settings/Layout] Improved colors using PF2 Trade Colors

Critical Failure: #c42522
Failure: #874644
Success: #002564
Critical: #448746
Using Failure and Success based on PF2 Layout Colors (not remaster), then color compatibility to get Critical (dark green) and color mixing with red to get flaring red compatible with PF2 regal red.
Best of all, if the colors are configurable from the Settings.

added setting to override with coustom colors in 1.2.2


MKV files don't have audio

It works fine with other video files mp4 and mov but mkv don't seem to have sound.

Wouldn't a better solution be to use something such as this:
ffmpeg -i input.mkv -acodec mp3 -vcodec copy out.mkv
and then cast the out.mkv?
It worked for me. The advantage is that the expensive video conversion
doesn't have to be done and it converted very quickly.
Also there's no loss of video quality.
I think there should be an option for converting audio only in castnow.


Use fixtures in test_edge_splitter to cut 0.5s off pytest start-up

Reducing pytest's start-up time smoothes the developer experience of editing some code and then running a subset of tests (especially a subset that runs quickly).
Before this patch, the Cora dataset was being loaded and parsed into a graph during pytest start-up. This patch uses @pytest.fixture to make that lazy, and so it only happen when the edge-splitter tests are actually executed.
Times for the test from #780 (time pytest -k test_edge_weights_directed):

code
real time (from time)
internal pytest time

this PR
3.2
2.5

develop
3.7
3.0

(A large chunk of the changes are just reformatting after removing the self. prefix from all instances of self.es_obj and self.g.)
This seems to be the largest low-hanging fruit in terms of test start-up time, as more than half the remaining start-up time is the time to import tensorflow:
$ time python -c 'import tensorflow'

real	0m1.778s
user	0m2.645s
sys	0m0.731s

See: #780
(Reopening of #781 due to #786.)

In https://github.com/stellargraph/stellargraph/pull/781#issuecomment-582246441, @kieranricardo said:

fyi if you're looking to speed up running a particular subset of tests specifying the file will cause pytest to collect tests from only that file all, reducing start up time.
e.g. time pytest tests/core/test_stellargraph.py -k test_edge_weights_directed produced the same results for develop and this branch.

This is true, but (a) I don't think all tooling supports using that argument automatically, and (b)I find typing out the full file path manually is much more annoying than using -k when using pytest manually in a terminal.


Cargo warning: output filename collision

When I run cargo +nightly install hvm I get the following warning:
warning: output filename collision.
The bin target `hvm` in package `hvm v1.0.10` has the same output filename as the lib target `hvm` in package `hvm v1.0.10`.
Colliding filename is: C:\Users\<USERNAME>\AppData\Local\Temp\cargo-install<HASH>\release\hvm.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.

sorry for the late response, but that was due to our developing of HVM2 (which is now currently in this repo), and since it's live in this repo, cargo +nightly install hvm should work properly now, thanks for taking time to open the issue, and again, sorry for the delay in response :)


Add make deploy-down, plus make tilt-up and make tilt-down

Today the make file only supports deploying to the k8s cluster, add a make deploy-down to delete a deployment.
Do the same for starting services using tilt

New commands
Working and testing
  deploy-down     Delete and cleanup deployment from the k8s cluster
  tilt-up         Start service using Tilt UI
  tilt-down       Stop and cleanup a Tilt service

Still have issues
  deploy-debug    Deploy image to the k8s cluster in headless debug mode
  dev-mode        Start deployment in debug mode, watch for file changes and perform a live update


Allow hotkeys to be remapped

Following up with: https://github.com/github/markdown-toolbar-element/issues/49,
customers should allowed to remap hotkey.

This is solved in #51 since hotkeys are now handled by the consumer and they can now choose what hotkeys are on the buttons in the toolbar.


Prepare the sample for Quarkus on Azure Container Apps

Since we already have the Java authentication plugins for MySQL and PostgreSQL, we should also prepare a sample about how to use it with Quarkus on Azure Container Apps.

PR has been merged, still need to investigate how to run a native image with Quarkus.

Need to update this doc https://learn.microsoft.com/azure/app-service/tutorial-java-quarkus-postgresql-app

Native blocked by https://github.com/Azure/azure-sdk-for-java/issues/30332

Closing this issue now, will create another issue for support native.


Release tracking

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
<EMAIL_ADDRESS>Minor Changes

#2677 d356be83 Thanks @mattcosta7! - update types for button extensions

#2661 5dd4bb1f Thanks @joshblack! - Update to React.useId() when using React 18

#2694 5a659295 Thanks @broccolinisoup! - PageHeader: export PageHeader in the draft bundle

#2662 1266b108 Thanks @broccolinisoup! - PageHeader: Add a util function that returns breakpoint styles with the given CSS property and values

#2593 d8875861 Thanks @radglob! - Make resizable SplitPageLayout.Pane keyboard accessible.

Patch Changes

#2765 154db4b9 Thanks @iansan5653! - Remove shadow from MarkdownEditor textarea

#2685 3a8bb765 Thanks @radglob! - Setting overflow: auto without a media query to fix resizable pane bug.

#2718 9cb01190 Thanks @marywhite! - Prevent default when clicking on MarkdownViewer links with openLinksInNewTab

#2656 db0db6ec Thanks @joshblack! - Update useDetails ref type to HTMLDetailsElement

#2762 74016a7c Thanks @mattcosta7! - Token: Update component type to be PolymorphicForwardRefComponent.
this avoids types being swallowed by forwardRef (which isn't polymorphic)

#2658 20e18c07 Thanks @joshblack! - Update TypeScript types for deprecated ButtonClose to support React 18

#2755 dd1e5ce7 Thanks @dwilsonactual! - Update isScrollable utility to only run getComputedStyle on scrollable content.

#2660 1fb6ee9f Thanks @joshblack! - Update npm package to include deprecated/package.json for TypeScript type resolution

#2721 386561a3 Thanks @simurai! - Add Noto Sans to fontStack

#2756 5826b94d Thanks @broccolinisoup! - Button: Revert new enhancement due to introducing major styling changes

#2760 24fb9a77 Thanks @broccolinisoup! - Token: Omit onResize and onResizeCapture methods that are included in the method expansion and causes type issues in React 18

#2757 b55d8232 Thanks @jdrush89! - Making onClick of ActionList.LinkItem functional

#2712 88008a0d Thanks @ajhenry! - Add sx prop to Dialog v2

#2750 dcb51c64 Thanks @jdrush89! - Show tooltips on focus-within

#2661 5dd4bb1f Thanks @joshblack! - Update types for components to work for React 17 and 18

For next release conductor,
Hi!
Last week, I wasn't able to merge a new release because I found some breaking type changes which I couldn't triage down because of passion week 😇
This is the place to start:

Failed build: https://github.com/github/memex/actions/runs/3855170955
Conversation about changes: https://github.com/github/memex/pull/14174#issuecomment-1373571655

StackBlitz works but CodeSandbox issue continues (ref)


[Bug]: The 'View Execution Profile' button disappears when executing SQL

ODC version
odc431
OB version

What happened?

What did you expect to happen?

How can we reproduce it (as minimally and precisely as possible)?
Execute SQL
Anything else we need to know?
No response

Fixed In Commit 9cb8839099ab902da50fdb6b6f0ec4bf0630d3ec
------
畅晚
Thu Jul 25 16:29:36 2024 +0800


Add family + sample methods

Unrelated to larger version update change

Maybe I'm misunderstanding, should Family also contain pointers to mom and dad?

A family is the container, it doesn't really represent much information (hence why we haven't needed yet). The import pedigree method has just created the family (without a coded phenotype), but now I've got a use case where I have to update the family IDs.


car imports maptools to use pointLabel()

This is quite serious - where to put aspatial things? https://github.com/friendly/Guerry/issues/4 pointLabel() used by car, rayshader,  rioja in code. Shall I ask John Fox if car is posssible? Contributed by Tom Short; I'd have to ask him too.

I'll add the pkgapi package lists to the NAMESPACE files first in maptools as comments, then the new package when transferred.

Added to car r725.


Use the iterator interface for iterative solvers

While searching for some more inspiration for our package, I stumbled across the package IterativeSolver. They use the iterator interface for their solvers and I quite like that (see e.g. https://github.com/JuliaMath/IterativeSolvers.jl/blob/master/src/cg.jl).

Its nice because its the iterator interface but actually I don't see a pressing advantage. At least how it is currently used in IterativeSolvers.jl. The most pressing issue of this package is more the surface syntax.

This was actually implemented by @migrosser once upon a time.


HDDS-10778. Separate certificate codec from in memory and persisted storage

What changes were proposed in this pull request?
As the ongoing crypto-compliance effort, it's important to make CertificateCodec as simple as possible and make it pluggable.
Please describe your PR in detail:
The codec itself should only be responsible for encoding and decoding certificates. This PR aims at doing most of this work, however there are still some questions left for later. Right now the certificate reading and writing is done through JCAPemWriter and the provider is using BouncyCastle which needs to be moved to the crypto module.
Writing and reading certificates to/from files have been moved to the CertificateStorage class. This class could be static with a tiny effort as functionally it only contains methods that are essentially taking 3 things: a certificate in some format, a path and some details about the certificate and based on these 3 things it writes an encoded version of the certificate to a file.
Adding an instance variable with the certificate location to CertificateStorage doesn't really simplify this code as most of the writes can't be simplified simply because in each call it's actually the caller that knows the path where the certificate should be written, and these are different from each other. For example it's only the caller that knows if the certificate should be written to a temporary new directory because it's during a certificate rotation, or that it should just go to the default certificate directory.
https://issues.apache.org/jira/browse/HDDS-10778
How was this patch tested?
Already existing tests should cover the changes, green CI here:
https://github.com/Galsza/ozone/actions/runs/9632416837

@Galsza do you plan to revisit this or can it be closed?


Fix import error link

@madeleineb ran into this on production, so this is just a fix.

Awesome. Thanks for the quick fix!

Thanks for the quick fix @jonallured !


Change Output ordering of StreamTableExec

Which issue does this PR close?

Closes #.
Rationale for this change
Upstream PR9225. That Pr is from another branch, in case that branch gets lost during removal. We can re open that PR using this branch. These two branches are same

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Merge upstream


Flyout problem with ActualWidth

What steps will reproduce this issue?
Window maximixe and open flyout
Expected outcome
Correct width
--
Environment

MahApps.Metro v1.2.4, v1.3.0-ALPHA189
Windows 7, 10
Visual Studio 2015
.NET Framework 4.5.1

Image

@osnoser1 I've updated the demo for this, cause we should use the FlyoutsControl for the binding. The ActualWidth of the Window gives us a wrong value if it's maximized, maybe another WPF bug...
<Controls:Flyout x:Name="settingsFlyout"
                 Controls:ControlsHelper.ContentCharacterCasing="Upper"
                 Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Controls:FlyoutsControl}, Path=ActualWidth}"
                 Margin="200 0 0 0"
                 AreAnimationsEnabled="False"
                 Header="Settings"
                 Position="Right">
</Controls:Flyout>


HTML test report generation

After an interop test job has finished, a HTML report is generated to give:

a summary of how many test cases has been passed/failed/skipped, and
a listing of failed test cases with details about the failure (with a link to the test case repo, if possible)

Please see the nose-htmloutput/nose-html-reporting package for examples.
Given we currently have over 7,500 test cases, the above report will be very useful in helping isolate the failed cases for further investigation, which is challenging with the default text outputs.

I looked at both nose-htmloutput and nose-html-reporting.
nose-htmloutput:

https://pypi.python.org/pypi/nose-htmloutput
https://github.com/ionelmc/nose-htmloutput/
Both failed and skipped tests are coloured red.
Ran successfully under Python 2.7.6 and 3.4.0.

$ nosetests -v --with-html --html-file test-report.html prov_interop.interop_tests.test_provpy

nose-html-reporting:

https://pypi.python.org/pypi/nose-html-reporting
https://github.com/lysenkoivan/nose-html-reporting/
A fork of nose-htmloutput.
Failed and skipped tests are coloured differently.
Allows browsing of standard output and error for all tests, not just failed ones.
Ran successfully under Python 2.7.6.

nosetests -v --with-html --html-report test-report.html prov_interop.interop_tests.test_provpy

Fails under Python 3.4.0 as it's not compliant:

$ nosetests -v --with-html --html-report test-report.html prov_interop.interop_tests.test_provpy
/disk/ssi-dev0/home/mjj/.pyenv/versions/3.4.0/lib/python3.4/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin html = nose_html_reporting:HtmlReport: No module named 'StringIO'
  RuntimeWarning)
Usage: nosetests [options]

nosetests: error: no such option: --with-html

This is because, from What's New In Python 3.0:

The StringIO and cStringIO modules are gone. Instead, import the io module and use io.StringIO or io.BytesIO for text and data respectively.

For running any tests under Python 2.7.6 I'd recommend nose-html-reporting for its richer report format. Unfortunately, as it doesn't work under 3.4.0, that leaves nose-htmloutput as the only option.
Both of these show details about test failures. As for links to the test case repository, one option for this is to provide the repository to the framework as a value in the harness.yaml configuration file. The method:
def test_case(self, index, ext_in, file_ext_in, ext_out, file_ext_out):

in prov_interop/interop_tests/test_converter.py can get this value and print the repository as part of any test failure message.
However, I'm not sure of the value of this, since the test cases repository isn't used by the tests directly, but the local clone of the test cases repository, and the path to this is printed when tests are run anyway.
On which note, the full path to the test case files (and other files) is currently printed. However, as the actual test failure message ("False is not true") was cryptic I've updated (8af65caadfdbf2a14372870f2a38516fc09ce657) this to give a message which includes the names, and paths, of the relevant files e.g.
False is not true : AssertionError: Test failed:
/disk/ssi-dev0/home/mjj/testcases/test-case1/primer.provx does not
match out.provx converted from
/disk/ssi-dev0/home/mjj/testcases/test-case1/primer.json

Hi @mikej888,
Thank you for looking into this. I wonder if there is an easy way to incorporate the generation of HTML report into the travis jobs. In the case where one sees test failure, they can click on a link and see the report right away.

There were questions on StackOverflow on how to view test reports for other types of components but the answer was to ensure the test results were printed to the log file. Travis CI does allow build artefacts (which can include test results) to be pushed to Amazon S3 storage, see Uploading Artifacts on Travis CI.
The StackOverflow question Access files stored on Amazon S3 through web browser discusses the next phase, how to make these resources on S3 publicly browsable.

Thanks @mikej888, this sounds like a viable option.


fs/nvs: nvs_init can hang if no nvs_ate available

Describe the bug
While running on a simulated flash file system, nvs_init() failed to return.  Inspection with debugger shows that it stuck in an infinite loop.
To Reproduce
Calling nvs_init() on flash file system with no "free" sectors.
Expected behavior
If no free space available, return an error.
Impact
Potential malfunction of firmware on startup.
Screenshots or console output
The code is stuck in the subsys/fs/nvs/nvs.c file in the while(1) loop around line 580.  If the nvs_flash_cmp_const() routine never returns a match, the loop will never break.  The address being checked decrements past zero and wraps.  The fix is to check that addr is greater than zero or return an error.
Environment (please complete the following information):

OS: Linux - native_posix platform
Toolchain Zephyr SDK
Commit d8c5c9dcf12eda7e5edb86e3ce4971e750d0c7af, but code as same as current master on github.

Additional context
Add any other context about the problem here.

@pfvogel

To Reproduce
Calling nvs_init() on flash file system with no "free" sectors.

Can I ask you for more details about exact nvs configuration and state?

Does state was: nvs contains N sectors. N-2 sectors are closed, one sector is open and full, one -sector is empty (it is the sector which takes role of scratch during GC)?
value of N?

Maybe you have code to reproduce the issue you can share?

I see that this issue will be encountered if the last ate is close to data. Close mean that gap between is smaller than the ate size.

The fix is to check that addr is greater than zero or return an error.

Sector might be valid while this happens. I thin solution will be to count data position (so read each ate, what happens anyway) and iterate until gap space is available.

@pfvogel Can you test below patch?
https://github.com/nvlsianpu/zephyr/commit/b91410d97b10eee1cac07556390bb0c5b284680d
I want to add a test for the issue, this is why I didn't open PR jet.

Hi @pfvogel , @nvlsianpu, I think this problem is not so easy to solve, it has been introduced by the sector close are. It can appear if you write the fs full and finish with a delete. In that case the sector is completely filled and an empty ate will not be found. In this special case the closing ate could be used
to find the last ate.
But even in this case there still is a problem, what if the closing ate is not properly written?
Taking this into account I think it is better to leave at least one ate as a separation between data and ate's, this could be achieved by adding an extra ate in line 811 of nvs.c (maybe the space for the delete can be removed).

@Laczen How to achieve state of storage described above? Apparently I missed something.

@nvlsianpu, I think you can achieve this by writing the same 8 byte structure (e.g 2 u32_t) again with different id until the fs is full. Once you have reached this you write a delete of the last id. If you then restart I think you will get this situation.

https://github.com/nvlsianpu/zephyr/commit/66460acd08226bee55d346c2e7878ea3eac52d8b#diff-e1cabdfdfe297813e46c8ed0df375340R490-R518
@Laczen I added test you mnetioned. Unfortuantallly it assert on nvs_delete call in line 514.
`

@nvlsianpu, took me some time to realize: this is normal: filling_id was never written so it cannot be deleted, the delete call should be filling_id - 1.

@Laczen

took me some time to realize: this is normal: filling_id was never written so it cannot be deleted, the delete call should be filling_id - 1.

I corrected the  ID to existing one - results was the same.

Error is -ENOSPC
    Assertion failed at ZEPHYR_BASE/tests/subsys/fs/nvs/src/main.c:515: test_nvs_full_sector: (err == 0 is false)
nvs_delete call failure: -28
FAIL - test_nvs_full_sector

@Laczen From code I see that delete entry is not treated specially in nvs_write() - it is normal that sector_freespace can be equal 0 while writing it.

^^ https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/fs/nvs/nvs.c#L811-L818

@nvlsianpu, I think it is impossible to write a sector full so that there is no empty ate: ate_wra is updated each time a write is performed and is already pointing to an empty ate area. The free_sector_space check makes sure that there is at least one ate space.
So probably the bug is something different.

I think one (probably unusual) possible way the sector could look full is if the flash data area had not been erased prior to first use, say if the data area was moved from one area to another.  The nvs_init wouldn't succeed, so nvs_clear can't be called either.  Having a specific error return value from nvs_init for this case would allow the code to call a flash erase routine if this case is encountered.

Hi @pfvogel, do you think this is what happened ?
If so a check could be added to nvs_init to make sure that addr does not go below 0.

In the test case that I ran, the flash area was uninitialized, so I think that was what happened.
nvs_init_hang.zip
I added a small test case that runs under sanitycheck for the native posix environment that showed my original problem.

@pfvogel  https://github.com/zephyrproject-rtos/zephyr/pull/17982

@pfvogel Can you agree that issue you discovered is another manifestation fo this bug: https://github.com/zephyrproject-rtos/zephyr/issues/16899?

Yes, it looks like the same issue.


Define a set of elements to turn into patterns

The dozen or so elements one would need to create an event page

pull request 12 in ceviche-starer repo fixes this issue and has been merged.


Added support for workingDirectories to the 'lint whole folder' task

Fixes: #633

Nice work. Wasn't aware the pushd & popd is available in all command shells.

But what I found out now is that && is not available under PowerShell so the task will fail if PowerShell is used as a command processor.

And && usually has the semantic that the second command will not run if the first fails. IMO this will stop the shell execution on the first working directory that has an eslint error since eslint returns a exit code different than 0 in that case.

@Tiberriver256 any thoughts on the above comments.

But what I found out now is that && is not available under PowerShell so the task will fail if PowerShell is used as a command processor.

Yes :( sadly older versions of PowerShell do not have this capability. Newer versions of PowerShell core do have support for it. We could look into using ; instead but I'm not sure if that's supported in cmd.exe. It should work in Bash & PowerShell and would give us the behavior of running all the commands regardless of whether or not one failed.

And && usually has the semantic that the second command will not run if the first fails. IMO this will stop the shell execution on the first working directory that has an eslint error since eslint returns a exit code different than 0 in that case.

This is correct. Was a royal pain when I was testing it out locally to make sure I had run npm install in all my folders before it would run right.

@Tiberriver256 any thoughts on the above comments.

Overall... feels flakey... I kinda want instead of one mega task, one task per folder. Instead of seeing this:

eslint whole folder

I would see:

eslint whole ./project1 folder
eslint whole ./project2 folder
eslint whole ./project3 folder

What do you think?

I will talk to the task developer in VS Code to see what we can do here.

Here is an idea you could experiment with:

have a task per working directory
contribute a command to execute all tasks. The implementation of the command could use the workbench.action.tasks.runTask API command documented here: https://code.visualstudio.com/api/references/commands

Let me know how it goes

Here is an idea you could experiment with:

have a task per working directory
contribute a command to execute all tasks. The implementation of the command could use the workbench.action.tasks.runTask API command documented here: https://code.visualstudio.com/api/references/commands

Let me know how it goes

Nice! I'll give it a go.


Solution without unsafe

Check List:

[x] Tests pass (./test.sh <username> shows no differences between expected and actual outputs)
[x] All formatting changes by the build are committed
[x] Your launch script is named calculate_average_<username>.sh (make sure to match casing of your GH user name) and is executable
[x] Output matches that of calculate_average_baseline.sh
[x] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number)

Dealing with  hash collisions starts at line 195

Execution time: 5.5 secs
Execution time of reference implementation:143 secs

Execution times recorded using Windows
My execution time is comparable to the spullara's one so I expect it running in less than 10 seconds.

00:07.240, nice!


An extra slash appears all sent requests if you specify basepath "/" in the swagger

Description
Found on RESTler version: 8.5.0
If I set "basePath" "/" as seen below
{
  "swagger": "2.0",
  "info": {
    "title": "My title",
    "description": "My description.\n",
    "version": "1.1.0",
    "contact": {
      "name": "Name of Team",
      "email"<EMAIL_ADDRESS>    },
...
  "basePath": "/",
...

then RESTler will start start sending requests with double slash symbol for every endpoint:
(from network.testing.139737708836608.1.txt)
Sending: 'POST //v1/objects/report HTTP/1.1\r\nAccept: application/json\r\nHost: some.host\r\nX-API-Secret: some_secret\r\nX-API-UUID: some-uuid\r\nContent-Type: application/json\r\nContent-Length: 15\r\nUser-Agent: restler/8.5.0\r\n\r\n{\n    "id":1}\r\n'
If I remove "basePath": "/" from swagger, RESTler works as expected.
Steps to reproduce

Add any correct swagger file with "basePath": "/".
Make compilation
Make test
Watch restler_bin/restler/Test/RestlerResults/experiment_some_number/logs/network.testing.some_number.1.txt

Expected results
Every endpoint need for request contains only one slash at start.
Actual results
Two slashes at endpoint start for every request.
Environment details
Operating system: Linux, Python version Python 3.9.12, .NET version 5.0.408

Hello @vzhirnov,
Thank you for reporting this issue, we will get it fixed ASAP.
Thanks,
Marina


From example image_ocr.py

Please provide http://www.isosemi.com/datasets/wordlists.tgz link is not available right now

Here's a copy that I had in my .keras folder. http://patyork.me/resources/wordlists.tgz.tar.gz


Matrix.Element version 1.7.29

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

This application is x64 tho. You need to edit Architecture to x64

Package already added. https://github.com/microsoft/winget-pkgs/tree/master/manifests/e/Element/Element


chore: bdd-nh-import-1588821777 to 0.0.1

chore: Promote bdd-nh-import-1588821777 to version 0.0.1

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

Needs approval from an approver in each of these files:

OWNERS

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


fix : fix broken prefix and suffix diffs generation inside addContext()

Moved code here from this pr: https://github.com/feedyou-ai/diff-match-patch/pull/3

dmsnell's message copied from original PR:
@michal-kurz good catch on this. there's something else to consider here: considering that we're pulling in extra characters into the patch context, I guess there's still a possibility we might crash if the input document contains a series of surrogate halves. it might be that the existing fixup makes the same assumption, that if we shift one character we'll not find another lone low or high surrogate. just wanted to point it out.

Message by @dmsnell copied from original PR: @michal-kurz good catch on this. there's something else to consider here: considering that we're pulling in extra characters into the patch context, I guess there's still a possibility we might crash if the input document contains a series of surrogate halves. it might be that the existing fixup makes the same assumption, that if we shift one character we'll not find another lone low or high surrogate. just wanted to point it out.

Yes, I'm aware - but I believe this should always work as long as the input is valid. I also believe this also applies to your original solution for toDelta.
Fortunately for me, this is good enough for our use-case, as our app is not publicly accessible, and we are in direct contact with all our users - If our user somehow copies a naked surrogate pair (or other invalid text) into our text field, it's not a huge deal in our case. I don't expect this to ever happen, and if it does, then we will deal with it manually, or decide to fix this.


chore: increase timeout for pausing writer COUCHDB-3384

Overview
Double the timeout for pausing the source writer.
Testing recommendations

JIRA issue number

 https://issues.apache.org/jira/browse/COUCHDB-3384

Related Pull Requests

Checklist

[x] Code is written and works correctly;
[x] Changes are covered by tests;
[x] Documentation reflects the changes;

+1


Build system drags in "avx512" support on setup that does not support this instructions

Current Behavior
I'm building the current release of tesseract (5.3.4) on macOS with gcc 9.2 on a machine that does not have the avx512 instruction set (Haswell CPU).
$ ./configure \
    CC='/usr/local/gcc9/bin/gcc-9.2'           \
    CXX='/usr/local/gcc9/bin/g++-9.2'          \
    CFLAGS='  -O3 -march=native -mtune=native' \
    CXXFLAGS='-O3 -march=native -mtune=native'
checking whether the C++ compiler works... yes
…
checking whether C++ compiler accepts -Werror=unused-command-line-argument... no
checking whether C++ compiler accepts -mavx... yes
checking whether C++ compiler accepts -mavx2... yes
checking whether C++ compiler accepts -mavx512f... yes
checking whether C++ compiler accepts -mfma... yes
checking whether C++ compiler accepts -msse4.1... yes
checking for feenableexcept... no
…

$ make
Making all in .
…
libtool: compile: /usr/local/gcc9/bin/gcc-9.2 -DHAVE_CONFIG_H -DHAVE_FRAMEWORK_ACCELERATE -O2 \
    -DNDEBUG -I./include -I./include -I/usr/local/silo/leptonica/latest/include/leptonica     \
    -I/usr/local/silo/libarchive/latest/include -mavx512f -I./src/ccutil -O3 -march=native    \
    -mtune=native -std=c++17 -MT src/arch/libtesseract_avx512_la-dotproductavx512.lo -MD -MP  \
    -MF src/arch/.deps/libtesseract_avx512_la-dotproductavx512.Tpo -c                         \
    src/arch/dotproductavx512.cpp -fno-common -DPIC -o                                        \
	src/arch/.libs/libtesseract_avx512_la-dotproductavx512.o
/var/folders/b7/ss_s7c792_54wsn_vjk3jrym0000gn/T//cctLcYFO.s:40:2: error: instruction requires: AVX-512 ISA
        vmovups (%rdi,%r10), %zmm1
        ^
/var/folders/b7/ss_s7c792_54wsn_vjk3jrym0000gn/T//cctLcYFO.s:41:2: error: instruction requires: AVX-512 ISA
        vfmadd231ps     (%rsi,%r10), %zmm1, %zmm0
        ^
/var/folders/b7/ss_s7c792_54wsn_vjk3jrym0000gn/T//cctLcYFO.s:44:2: error: instruction requires: AVX-512 ISA
        vmovups (%rdi,%r10), %zmm5
        ^
# (lots of more errors like this)
…

Note the checking whether C++ compiler accepts -mavx512f... yes which seems to only check if the compiler accepts the argument (which it does), but not if it could create workable code? I had to manually patch this check in the configure script to make things build.
Expected Behavior
Configure script properly detects that "avx512" can't be used, build completes w/o trouble afterwards.
Suggested Fix
I don't know. I'm not experienced enough with tesseract's build system. Maybe a --disable-avx512 switch in the configure script could work, if automatic detection isn't suitable.
tesseract -v
n/a (build failed)
Operating System
No response
Other Operating System
macOS
uname -a
No response
Compiler
gcc 9.2
CPU
No response
Virtualization / Containers
No response
Other Information
No response

Setting CC and CFLAGS has no effect (both are not used).
Does the build work if you don't set CXXFLAGS? Or with another compiler (newer gcc or Apple's clang)?

No CXXFLAGS, just CXX, fails too:
libtool: compile:  /usr/local/gcc9/bin/g++-9.2 -DHAVE_CONFIG_H -DHAVE_FRAMEWORK_ACCELERATE -O2 -DNDEBUG -I./include -I./include -I/usr/local/silo/leptonica/latest/include/leptonica -I/usr/local/silo/libarchive/latest/include -mavx512f -I./src/ccutil -g -O2 -std=c++17 -MT src/arch/libtesseract_avx512_la-dotproductavx512.lo -MD -MP -MF src/arch/.deps/libtesseract_avx512_la-dotproductavx512.Tpo -c src/arch/dotproductavx512.cpp  -fno-common -DPIC -o src/arch/.libs/libtesseract_avx512_la-dotproductavx512.o
/var/folders/b7/ss_s7c792_54wsn_vjk3jrym0000gn/T//ccMgthl0.s:70:2: error: instruction requires: AVX-512 ISA
        vmovups (%rdi,%rax), %zmm2
        ^
/var/folders/b7/ss_s7c792_54wsn_vjk3jrym0000gn/T//ccMgthl0.s:71:2: error: instruction requires: AVX-512 ISA
        vfmadd231ps     (%rsi,%rax), %zmm2, %zmm0
        ^
/var/folders/b7/ss_s7c792_54wsn_vjk3jrym0000gn/T//ccMgthl0.s:105:2: error: instruction requires: AVX-512 ISA
        vextractf64x4   $0x1, %zmm0, %ymm1
        ^
make[1]: *** [src/arch/libtesseract_avx512_la-dotproductavx512.lo] Error 1
make: *** [all-recursive] Error 1

My other compiler is clang (Apple/Xcode), but it's too old for tesseract's modern (erm… or "no-backwards-compatibility" 😎 ) build requirements and configure aborts because the missing C++17 support. Hence I had to switch over to gcc 9.2 in the first place (usually clang is my default compiler).


Fix multiple columns in CreateIndex()

Given we add an index like this:
AddIndex("app_name_type_UNIQUE", "Btree", []string{"app_name", "type"}).SetUnique(true)

We were seeing the generated SQL like this:
create unique index app_name_type_UNIQUE on app_tbl ("app_name""type"); [] (14.774µs)

note, I did not add any tests.
thanks,

Thanks @bhenderson :+1:


Add ADR for checksum and filesize metadata

Details
Add ADR for checksum and filesize metadata
Pivotal Story (if relevant)
Story URL: https://www.pivotaltracker.com/story/show/187060666
Related PRs
Where appropriate. Indicate order to be merged.
Submitter PR Checks
(tick as appropriate)

[ ] PR completes task/fixes bug
[ ] API version has been incremented if necessary
[ ] ADR status has been updated, and ADR implementation has been recorded
[ ] Documentation updated (README, etc.)
[ ] PR added to Pivotal story (if relevant)
[ ] Follow-up stories added to Pivotal

Reviewer PR Checks
(tick as appropriate)

[ ] PR completes task/fixes bug
[ ] Design makes sense, and fits with our current code base
[ ] Code is easy to follow
[ ] PR size is sensible
[ ] Commit history is sensible and tidy

Info on PRs
The checks above are guidelines. They don't all have to be ticked, but they should all have been considered.

@philipnbbc For S3, x-amz-checksum-mode should be set in the GET or HEAD request to the Object. I'm not a fan of adding this functionality to TAMS itself as it will increase the number of requests the API itself will have to make. One additional request per Object. The alternative is that this metadata is obtained by the client in the same request as the data. Additionally, supporting this in the API would only help with verifying downloads. As described in the ADR, verifying uploads would have to be accomplished before registering the segment. For S3, this would most likely by accomplished by [sending the checksum alongside the data](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestBody in the PUT request. Again, this would allow the verification and data transfer to happen in the one request. If we verified the data on PUT by checking the TAMS API after the fact, this could cause issues in the case that the upload is corrupted and there is a checksum miss-match. The object would have to be registered before you could retrieve the checksum and could be made available in it's corrupted state.

@philipnbbc For S3, x-amz-checksum-mode should be set in the GET or HEAD request to the Object. I'm not a fan of adding this functionality to TAMS itself as it will increase the number of requests the API itself will have to make. One additional request per Object. The alternative is that this metadata is obtained by the client in the same request as the data. Additionally, supporting this in the API would only help with verifying downloads. As described in the ADR, verifying uploads would have to be accomplished before registering the segment. For S3, this would most likely by accomplished by [sending the checksum alongside the data](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestBody in the PUT request. Again, this would allow the verification and data transfer to happen in the one request. If we verified the data on PUT by checking the TAMS API after the fact, this could cause issues in the case that the upload is corrupted and there is a checksum miss-match. The object would have to be registered before you could retrieve the checksum and could be made available in it's corrupted state.

OK.  If we find that a HEAD request is useful to retrieve checksum and size headers then we could extend the API to have either a pre-signed HEAD request labelled "get_url", a separate head_urls list or a specific head_url.
Similarly for the PUT request, we would need to allow the client to include checksum headers in the pre-signed PUT request. It's not 100% clear to me whether a presigned URL can be created because the x-amz-checksum-sha256 is only known / calculated by the client.

Similarly for the PUT request, we would need to allow the client to include checksum headers in the pre-signed PUT request. It's not 100% clear to me whether a presigned URL can be created because the x-amz-checksum-sha256 is only known / calculated by the client.


implement yaml case-modification functions

implement case-modification parameter-substitution functions as defined in bash 4.0
http://tldp.org/LDP/abs/html/bashver4.html
var=veryMixedUpVariable
echo ${var}            # veryMixedUpVariable
echo ${var^}           # VeryMixedUpVariable
#         *              First char --> uppercase.
echo ${var^^}          # VERYMIXEDUPVARIABLE
#         **             All chars  --> uppercase.
echo ${var,}           # veryMixedUpVariable
#         *              First char --> lowercase.
echo ${var,,}          # verymixedupvariable
#         **             All chars  --> lowercase.

added external library that drone uses to interpolate https://github.com/drone/envsubst


Adjust drools-ansible integration GHA

For example
https://github.com/apache/incubator-kie-drools/actions/runs/11025843132/job/30621708911?pr=6099
2024-09-25T03:50:42.0123338Z [ERROR] [kiegroup/drools-ansible-rulebook-integration] Error cloning kiegroup/drools-ansible-rulebook-integration and switching to target branch 10.0.x

drools-ansible-rulebook-integration  doesn't have branch 10.0.x. We will need to adjust the configuration like project-dependencies.yaml

Hi @mariofusco , do we want to test drools 10.0.x (so eventually 10.0.0) with any branch of drools-ansible-rulebook-integration?
Currently, using GHA, these combinations are tested.

drools main & drools-ansible-rulebook-integration main
drools 8.43.x & drools-ansible-rulebook-integration 1.0.x

If we don't plan to use  drools 10.0.x at the moment, we may disable the GHA for 10.0.x. WDYT?

I believe that when drools 10.0.0 will be finally available (hopefully in no more than 2 or 3 weeks at this point) we may want to use it for the upcoming 1.0.x releases of drools-ansible-rulebook-integration.
Also consider that if there will be the need of changing drools codebase (at the moment I'm trying to avoid this as much as possible as I did for the IsNotDefined fix, but such kind of workarounds could be not always possible of desirable) we will do so on the next 10.0.x releases while the 8.x stream has to be considered effectively closed.
For these reasons I think that we should keep (and fix in case it is broken) the GHA for 10.0.x and eventually get rid of the no longer useful one for 8.43.x when drools 10.0.0 will be out. Let me know if this is feasible or you see any issue.

This issue is more about drools-ansible-rulebook-integration rather than incubator-kie-drools. Moving the issue to
https://github.com/kiegroup/drools-ansible-rulebook-integration/issues/113


Dockerized Nextcloud + nginx-proxy-manager: "#" in folder name triggers error viewing jpg in nextcloud webinterface

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? → Yes.
Are you sure you're not using someone else's docker image? →Yes
What version of Nginx Proxy Manager is reported on the login page? → v2.7.3

Bug:

In nextcloud web-interface, click on a jpg inside a folder named "#Text", message "Error loading name.jpg" instead of jpg is shown.
If "#" is removed from folder name, jpg is displayed without problem.
If nextcloud is used without nginx-proxy-manager as reverse proxy, bug does not appear
Browsers tested: Chrome, Edge
nextcloud config.php is configured with "'enable_previews' => false," because of RPI4 performance

Setting:

Using Nextcloud 20.0.5 behind nginx-proxy-manager 2.7.3 both inside docker (5:20.10.2~3-0~debian-buster)
nginx-proxy-manager as proxy host with ssl certificate, force ssl, http/2, hsts, hsts subdomains, block common exploits, websockts support
Custom Nginx Configuration for nextcloud:
location /.well-known/carddav {return 301 $scheme://$host/remote.php/dav;}
location /.well-known/caldav {return 301 $scheme://$host/remote.php/dav;}
client_max_body_size 0;
proxy_max_temp_file_size 0;

Operating System

RPI4 B 8GB with Raspberry PI OS lite 32 bit + OMV5 + docker

Usually anchors (so everything after a # in an url) is not sent to the web server and stays in the browser. Maybe Nginx discards this information if it receives a # in the requested url? But this definitely sounds line a general nginx problem, not an NPM problem. NPM is just a frontend which generates configurations for nginx, so you will most likely have more luck searching in help forums for nginx.


Image embeddings in the browser

It seems like the ONNX colab example, while technically in the browser, requires generating the image embeddings and POSTs the image to https://model-zoo.metademolab.com/predictions/automatic_masks
Is it possible to get the image embeddings via the SAM predictor in the browser as well? I guess that model is quite large so it has to be done on the server? Or perhaps I misunderstood the approach?

hello, what is https://model-zoo.metademolab.com/predictions/automatic_masks?
And about what is about  its official website?
Thanks!

@Luxcy I've managed to reproduce the server code, it simply runs the vision transformer and then spits out the embeddings as a base64-encoded string. https://github.com/kevmo314/magic-copy/blob/main/server-example/app.py

I think its about model size(as you said). Can't reduce model size to be used in browsers etc.

@Luxcy I've managed to reproduce the server code, it simply runs the vision transformer and then spits out the embeddings as a base64-encoded string. https://github.com/kevmo314/magic-copy/blob/main/server-example/app.py

Thanks. I get it!

@Luxcy I've managed to reproduce the server code, it simply runs the vision transformer and then spits out the embeddings as a base64-encoded string. https://github.com/kevmo314/magic-copy/blob/main/server-example/app.py

Thanks. I get it!

This is our official demo of how to run the onnx model in the browser: https://github.com/facebookresearch/segment-anything/tree/main/demo
Please see the README.md in the demo folder for more details on how to run the webapp.


Error only If using sd_vae on quicksettings

Model weight loads fine without any quicksettings, but it gives me this error when putting sd_vae or CLIP_stop_at_last_layers on quicksettings:
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 217, in
webui()
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 159, in webui
shared.demo = modules.ui.create_ui()
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 1807, in create_ui
visit(txt2img_interface, loadsave, "txt2img")
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 168, in visit
visit(c, func, path)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 168, in visit
visit(c, func, path)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 168, in visit
visit(c, func, path)
[Previous line repeated 2 more times]
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 170, in visit
func(path + "/" + str(x.label), x)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 1805, in loadsave
apply_field(x, 'value', check_dropdown, getattr(x, 'init_field', None))
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 1770, in apply_field
elif condition and not condition(saved_value):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 1800, in check_dropdown
if x.multiselect:
AttributeError: 'Dropdown' object has no attribute 'multiselect'

I guess that's a problem with gradio, A1111 seems to not fully support Gradio 3.9 anymore, I'll update it

fixed now


list @lume/cli as a peer dependency at a minimum required version

We need to list @lume/cli as a peer dependency of of @lume/element because @lume/element depends on a certain range of versions of @lume/cli for when it is time to build (with @lume/cli) an application that uses @lume/element with JSX templating. @lume/cli contains the build steps needed to compile the JSX into a form that works with @lume/element.
This isn't an issue if app code uses the html`...` template tag for templating, in which case the compilation of templates happens at runtime, and there's no hard version requirement for @lume/cli in that case.

Closing, I am not sure this is needed at the moment.


DataBinding BindingAdapter has issue.

When you notify to open or close the DrawerLayout by bindingAdapter, it will work only once.
This phenomenon can be reproduced, it is a strange but very common problem,
hope it can be fixed as soon as possible.
Thanks.
project sample can see 5#
https://issuetracker.google.com/issues/143677219#comment5

Actually, any widget extends ViewGroup could reproduced above phenomenon.


csv: Change OCS_IMAGE to quay.io/ocs-operator:4.2.0

hub, the cli github tool, does not correctly detect the branch to which a PR must be sent. Sent #208 for the correct branch.

/close


[api-docs] Document Team#name

A new commit was made into the api-docs repo. This issue was created automatically. Need to review if we made any change to the library for this commit.
https://github.com/discord/discord-api-docs/commit/f20b50311889f66e0af491263a015cfaf2f3e4e0

Done


Timeout config fails #879 Global timeout #858

Tests are failing.
We should fix them before the merge

A weird assertion is failing tho
com.[secure].kotlintest.tables.TableTestingTest > assertions should be grouped in order STANDARD_OUT
The following 2 assertions failed:
1) Test failed for (name, sam) with error expected: "christian" but was: "sam"
at com.[secure].kotlintest.tables.TableTestingTest$11.invokeSuspend(TableTestingTest.kt:243)
2) Test failed for (name, billy) with error expected: "christian" but was: "billy"
at com.[secure].kotlintest.tables.TableTestingTest$11.invokeSuspend(TableTestingTest.kt:243)

That one isn't failing its just printing the output of a test.
On Sat, 20 Jul 2019, 10:31 Leonardo Colman Lopes<EMAIL_ADDRESS>wrote:

A weird assertion is failing tho
com.[secure].kotlintest.tables.TableTestingTest > assertions should be
grouped in order STANDARD_OUT
The following 2 assertions failed:

Test failed for (name, sam) with error expected: "christian" but was:
"sam"
at
com.[secure].kotlintest.tables.TableTestingTest$11.invokeSuspend(TableTestingTest.kt:243)
Test failed for (name, billy) with error expected: "christian" but was:
"billy"
at
com.[secure].kotlintest.tables.TableTestingTest$11.invokeSuspend(TableTestingTest.kt:243)

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kotlintest/kotlintest/pull/910?email_source=notifications&email_token=AAFVSGWJFNHXIZTGDX6T4ADQAMVUFA5CNFSM4IFO55J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2NQSKA#issuecomment-513476904,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFVSGUBUWT7RMNDPZMU3LLQAMVUFANCNFSM4IFO55JQ
.


Use installed cert (key3.db) lmt as basis for install logic

c9b7004:
Bring fatal error output in line with others.
0685218:
Use installed cert (key3.db) lmt as basis for install logic
Motivation: If the cert install fails it will not get installed on
subsiquent runs and the installed certificate will eventually expire.
Caveats: This patch assumes that the letsencrypt_live_dir directory is only
used for a single cert; I'm not sure how sound this assumption is.

Hey Brad,
Thanks for the MR, I'll review/merge as soon as I can.


downgrade numpy to avoid tensorflow type warnings

Old messages:
root@wbeast:/home/dev/src# ./train.py --help
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:524: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:532: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
Usage:
    train.py [options] SAVE_FOLDER TRAIN_DATA_PATH VALID_DATA_PATH TEST_DATA_PATH
    train.py [options] [SAVE_FOLDER]

Might be fixed in later numpy also, but I have been pinning to 0.16.5 to avoid this for a while.


DAL with pre-populated forms using instance

I am using DAL to provide a selectable dropdown list like this:
class OccupationsModel(models.Model):
    Occupation_Code            = models.CharField(max_length = 20, primary_key=True)
    Occupation_Title           = models.CharField(max_length = 150, unique=True)
    Occupation_Desc            = models.CharField(max_length = 1000)

    class Meta:
        db_table = 'Occupation_Info'

    def __str__(self):
        return self.Occupation_Title

Note here that occupation_code is my PK while I am using str to show occupation_title as my display. Mostly everything works fine but then I use instance to prepopulate the form, the title is not displayed. The form field is empty. I have other similar models where the PK is the same as display and those work just fine. So I am pretty sure there is something I am missing here.
Here is my DAL view:
class OccCreateView(CreateView):
    model           = OccupationsModel
    template_name   = 'dashboard/input_page.html'
    form_class      = InputForm

class occautocomplete(autocomplete.Select2QuerySetView):
    def get_queryset(self):

        qs = OccupationsModel.objects.all().order_by('Occupation_Code')

        # Don't forget to filter out results depending on the visitor !
        if not self.request.user.is_authenticated:
            qs = qs[:3]
            if self.q:
                qs = qs[:3]

        if self.q:
            qs = qs.filter(Occupation_Title__icontains = self.q)

        return qs

Here is my form:
def miscuserinfo_view(request):
        misc_user_info = MiscUserInfoModel.objects.get(user = request.user.id)
        if request.method == 'POST':
            if form.is_valid():
                obj = form.save(commit=False)
                # do something here with the form
                obj.save()
                return HttpResponseRedirect(reverse('registration:userprofile'))
        else:     # Pre-populate with existing data that user entered before
            form = MiscUserInfoForm(instance = misc_user_info)
        return render(request, "registration/miscinfo_page.html", {'form': form})

And here is what I see:
https://drive.google.com/file/d/13651JtB_1f7VJWgGsXeJSTm1l7B-xA-b/view?usp=sharing
Any thought on why the field is empty when the primary key field is not the same as display field? Thanks.

I have looked at this in more detail and when there is an ID auto field in there instead of custom primary key, the forms errors out when you try to pre-populate it with data from an instance.
I think the issue is more general with pre-populating forms.


About this app

I want to make an app like this.
Can you help me?

Feel free to check out our repository with this example - https://github.com/exyte/Macaw-Examples/tree/master/PeriodicTable

This is error in PeriodicTable.swift
Please update!!! Thanks

@hhoangna which version of Macaw did you use?

@amarunko According the pod, the version is 0.9.0

Pod file refer to the latest version: https://github.com/exyte/Macaw-Examples/blob/master/PeriodicTable/Podfile which is 0.9.2. Please update your pod and make “pod install”

Oh. Thanks! I forgot to check version.
Can we touch up each element to show information of the element which we touched?

Yes, you can add touch events to Node object. You can find examples here: https://github.com/exyte/Macaw/blob/master/Example/Example/Examples/Events/EventsExampleController.swift

When the element like this. Can we swipe left or right to make them rotate in the same direction as rotating the globe?

Yes, you can handle swipe gesture on view and do animated transformation using place variable of Node or place variable of root node/group of nodes.

Could you upgrade that function in PeriodicTable? I'm a newbie, so i don't know how to handle that!
Thanks! @amarunko

Hi Huy,
You need to understand event system and affine transformation to complete your task and it's more about basic iOS/programming skills. Macaw community is not that big, so you'll unlikely find someone on the Github issues which can help you with this. I recommend you to use other platforms like Stackoverflow having awards system which motivates people to help each other. Also please feel free to read https://github.com/exyte/Macaw/wiki/Getting-started tutorial to learn more about Macaw.

Thanks you so much <3


Documentation(i18n): Translate the docs to Spanish

Please describe the changes this PR makes and why it should be merged:

[x] Automatic Mode
[x] Install
[x] Introduction

Manual Mode

[x] Block
[x] For
[x] Manual Mode
[x] Virtualization

Internals

[x] Block
[x] Map Array
[x] Mount
[x] Patch
[x] Render to Template
[x] String to DOM

Status

[x] Code changes have been tested against prettier, or there are no code changes
[x] I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

[ ] This PR changes the codebase

[ ] This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
[ ] This PR changes the internal workings with no modifications to the external API (bug fixes, performance improvements)

[x] This PR only includes non-code changes, like changes to documentation, README, etc.

closes https://github.com/aidenybai/million/issues/907

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

Awesome work @glitch-txs!! Thanks.

thanks! @tobySolutions!
I think it's done, could you review?
For some reason /es-ES/docs/manual-mode/for gives me 404 as well on local

Awesome!!! Thanks @glitch-txs 🙌🙌🙌. I'll review it in a bit.

thanks! @tobySolutions!
I think it's done, could you review?
For some reason /es-ES/docs/manual-mode/for gives me 404 as well on local

It does not work in prod as well? I'll check it out and let you know.
That's certainly weird.

haven't tried on prod, will give it one last read to the whole thing just in case

there are some warning that are written in English because they are components, may we could make this components to receive a prop with the text so it can be trasnlated on the dif pages

also this part seems off from main docs, it's talking about the For component but the example shows a block?

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 25.706%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1257

Relevant Lines:
5082

💛  - Coveralls

there are some warning that are written in English because they are components, may we could make this components to receive a prop with the text so it can be trasnlated on the dif pages

Hmm, do you want to work on that?

Hmm, do you want to work on that?

sure, since it might be breaking change for other languages we can do it in another PR if that's ok

Hmm, do you want to work on that?

sure, since it might be breaking change for other languages we can do it in another PR if that's ok

Yeah, much later on. Can you pull latest changes? I just committed something directly to main?

Reviewing it now @glitch-txs

Thanks! Let me know if there any changes left 🫡

Thanks! Let me know if there any changes left 🫡

Ok, so I fixed the For page issue. I'm making a push now

Great work @glitch-txs!! Thanks 🙌


Rename rollback on error

This comes from #3341
Failure to rename will leave the system in a broken state.
This PR implements a rollback mechanism to revert whatever we can.
This is not a solution for the problems linked to #3341, but at least it will stop bricking systems (hopefully...).

Needs rebase

Rebased.
Pending CI.