Savings account

In the instructions is said that the interest rate for a balance of 0 dollars is 0% but in the test is asking for another value:
    assert_equal 0.5, SavingsAccount.interest_rate(0)

Effectively multiplying any number by zero gives the effect.  So really the interest rate of a balance of 0 is "undetermined" and can be everything or anything.

In context, what is the change that you believe should happen?

And of course thank you for bringing our attention to this!

In context, what is the change that you believe should happen?

I think the value for the assert should be 0 as is stated in the instructions, right ?

No, because the rate does not change just because the balance is zero.  The amount of interest, not the rate, would be 0.  The test subject would change, in that case.

I think I have encountered the same issue today.
I am stuck on this task and I believe there is an error in the test:

I believe my code below is correct solution:
module SavingsAccount
def self.interest_rate(balance)
if balance.negative?
-3.213
elsif balance.zero?
0
elsif balance < 1000
0.5
elsif balance < 5000
1.621
else
2.475
end
end
def self.annual_balance_update(balance)
balance + balance * self.interest_rate(balance) / 100
end
def self.years_before_desired_balance(current_balance, desired_balance)
years = 0
while current_balance < desired_balance
current_balance = self.annual_balance_update(current_balance)
years += 1
end
years
end
end
still causes one test failure:
FAILED
Test 1
Minimal first interest rate
CODE RUN
assert_in_delta 0.5, SavingsAccount.interest_rate(0), 0.000_1
TEST FAILURE
Expected |0.5 - 0| (0.5) to be <= 0.0001.
I think something is wrong with that particular test since the code works and provides correct answers that are used in other tests that are in turn passing.
Please can you double check and advise.

I guess it should be something like:
-3.213% for a negative balance.
0% for a balance of 0 dollars (it neither earns interest, nor is penalised).
0.5% for a positive balance less than 1000 dollars.
1.621% for a positive balance greater or equal than 1000 dollars and less than 5000 dollars.
2.475% for a positive balance greater or equal than 5000 dollars.

I think the confusion is in this line of the instructions.
- 0% for a balance of `0` dollars (it neither earns interest, nor is penalised).

I was also puzzled about this line in the instructions versus the test:
  def test_minimal_first_interest_rate
    assert_in_delta 0.5, SavingsAccount.interest_rate(0), 0.000_1
  end

The test translates to "a balance of zero gives an interest rate of 0.5 percent because zero is the smallest non-negative number".  This makes sense, but seems contradictory to that one line in the instructions (mentioned above) that makes it sound like "a balance of zero should have a zero percent interest rate".  Of course, to your point, it does not really matter what the percentage is if the balance is zero because zero multiplied by any percentage would still yield no change of the balance.
To be honest, I ended up thinking that it was because the exercise is about Floats and 0 is considered an Integer (i.e. 0.00 vs. 0).  Perhaps we either need to add a test specifically for this case, or remove/re-word that line in the instructions to avoid confusion.
The following line in the instructions would cover the test mentioned above, so perhaps that line about "a balance of 0 dollars" can just be removed from the instructions, or re-worded in a later part of the instructions about calculating the desired balance.
- 0.5% for a non-negative balance less than `1000` dollars.

I think it could just be removed.  See the discussion happening in a PR that addresses this same area.  #1239

I agree it could be removed, I understand that 0 is the firs non-negative, but the last line saying 0 dollars  should return a interest rate of 0% is misleading.

The last line saying 0 dollars should return an interest rate of 0.5% would be correct, the other is wrong, perhaps a typographical error.


Binding Enum Values as ItemsSource in ComboBox not working

Binding enum Values as ItemsSource in ComboBox not working
I have several enum type in my library and trying to display the enum values in WinUI Desktop ComboBox by get collection using Enum.GetValues by passing Type to EnumValuesExtension class. It works for enum from Microsoft.UI.Xaml, But enum from my library not works.
Observed Items:

Could not send the enum types other than Enum from Framework through Xaml.
After send the enum type FullName as string and parse it as Type, We can get the collection of items using  Enum.GetValues. But Opening ComboBox crashes the application.

Steps to reproduce the bug
Comment out the SizeMode and Shape ComboBox and run the sample. Sample run without crash and display the Horizontal Alignment values in ComboBox. But Running the sample with Shape and SizeMode leads to Crash.
Steps to reproduce the behavior:

Run the attached sample
Application crash due to casting to type set value as null in EnumType

Expected behavior
Shape and SizeMode Enum values need to be displayed in ComboBox
NuGet package version:
[Microsoft.WinUI 3.0.0-preview3.201113.0]
Sample :
ComboBoxwithEnumvalues.zip

@stevenbrix or @Scottj1s this sounds like a cswinrt issue to me

@stevenbrix or @Scottj1s this sounds like a cswinrt issue to me

@StephenLPeters Any work around solution for this?

@StephenLPeters Any work around solution for this?

@stevenbrix can you weigh in?

@stevenbrix can you weigh in?

sounds like this issue:
https://github.com/microsoft/CsWinRT/issues/605

sounds like this issue:
https://github.com/microsoft/CsWinRT/issues/605

@Berkunath, could you convert the enum values to a list of string:
        protected override object ProvideValue()
        {
            var values = Enum.GetNames(EnumType);
            return values;
        }

@Berkunath, could you convert the enum values to a list of string:
        protected override object ProvideValue()
        {
            var values = Enum.GetNames(EnumType);
            return values;
        }

This is not a C#/WinRT issue - it repros with UWP apps as well.  Appears that the Xaml compiler doesn't property support local types resolution.
I tried several other syntax variations, like:
ItemsSource="{local:EnumValues EnumType={x:Type local:Shape}}"
and:
ItemsSource="{local:EnumValues EnumType={x:TypeExtension local:Shape}}"
and element syntax:
<ComboBox.ItemsSource>
<local:EnumValues EnumType="{x:Type local:Shape}" />
</ComboBox.ItemsSource>
These all produced "XamlCompiler error WMC0001: Unknown type 'Type'  ..."
@RealTommyKlein - any insights here?

The syntax in the repro is correct (e.g. ItemsSource="{local:EnumValuesExtension EnumType=local:SizeMode}").  However the Xaml compiler doesn't create type information for SizeMode in its generated XamlMetadataProvider when it only appears as a proeprty assignment, so the framework is unable to get the System.Type for SizeMode and tries to set null instead (see #4161 as well).  As a workaround, you can add a dummy Bindable class with the types you set in markup as properties, like this:
    [Microsoft.UI.Xaml.Data.Bindable]
    public class DummyClass
    {
        public Shape DummyShape { get; set; }
        public SizeMode DummySizeMode { get; set; }
    }

Although trying this in the repro project, it looks like there's another issue in the framework where it doesn't handle enums correctly.  Using @stevenbrix's suggestion, I was able to get it working.
MainWindow.xaml:
<Window
    x:Class="App2.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App2"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <StackPanel Orientation="Horizontal"  VerticalAlignment="Center">
        <StackPanel.Resources>
            <local:EnumDisplayNameConverter x:Key="enumDisplayNameConverter" />
        </StackPanel.Resources>
        <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>

        <ComboBox
                            x:Name="Shape"
                            Margin="16,5,5,5"
                            Header="Shape"
                            ItemsSource="{local:EnumValuesExtension EnumType=local:Shape}"
            SelectedIndex="1">
            <ComboBox.ItemTemplate>
                <DataTemplate x:DataType="x:String">
                    <TextBlock VerticalAlignment="Center" Text="{x:Bind}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <ComboBox
                            x:Name="sizeMode"
                            Margin="16,5,5,5"
                            Header="SizeMode"
                            ItemsSource="{local:EnumValuesExtension EnumType=local:SizeMode}"
            SelectedIndex="1">

            <ComboBox.ItemTemplate>
                <DataTemplate x:DataType="x:String">
                    <TextBlock VerticalAlignment="Center" Text="{x:Bind}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <ComboBox
                            x:Name="HorizontalAlignment"
                            Margin="16,5,5,5"
                            Header="HorizontalAlignment"
                            ItemsSource="{local:EnumValuesExtension EnumType=HorizontalAlignment}"
            SelectedIndex="3"
                            >
            <ComboBox.ItemTemplate>
                <DataTemplate x:DataType="x:String">
                    <TextBlock VerticalAlignment="Center" Text="{x:Bind}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </StackPanel>
</Window>

MainWindow.xaml.cs:
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Markup;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Foundation.Metadata;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace App2
{
    /// <summary>
    /// An empty window that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainWindow : Window
    {
        public MainWindow()
        {
            this.InitializeComponent();
        }

        private void myButton_Click(object sender, RoutedEventArgs e)
        {
            myButton.Content = "Clicked";
        }
    }

    [MarkupExtensionReturnType(ReturnType = typeof(Array))]
    public sealed class EnumValuesExtension : MarkupExtension
    {
        private Type enumType;
        /// <summary>
        /// Gets or sets the <see cref="System.Type"/> of the target <see langword="enum"/>
        /// </summary>
        public Type EnumType
        {
            get
            {
                return enumType;
            }
            set
            {
                enumType = value;
            }
        }
        /// <inheritdoc/>
        protected override object ProvideValue()
        {
            var values = Enum.GetNames(EnumType);
            return values;
        }
    }

    /// <summary>
    /// A value converter that takes enum value and returns name of the enum.
    /// </summary>
    public class EnumDisplayNameConverter : IValueConverter
    {
        /// <inheritdoc/>
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            if (value == null)
                return string.Empty;

            FieldInfo fieldInfo = value.GetType().GetField(value.ToString());
            if (fieldInfo != null)
            {
                var attributes = fieldInfo.GetCustomAttributes(typeof(DisplayAttribute), false);
                if (attributes.Length > 0)
                {
                    var attribute = attributes[0] as DisplayAttribute;
                    if (!String.IsNullOrEmpty(attribute.Name))
                        return attribute.Name;
                    else if (!String.IsNullOrEmpty(attribute.ShortName))
                        return attribute.ShortName;
                }
            }
            return Enum.GetName(value.GetType(), value);
        }

        /// <inheritdoc/>
        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }

    public enum Shape
    {
        Square,

        Circle,

        Ellipse
    }

    public enum SizeMode
    {
        Small,

        Medium,

        Large
    }

    [Microsoft.UI.Xaml.Data.Bindable]
    public class DummyClass
    {
        public Shape DummyShape { get; set; }
        public SizeMode DummySizeMode { get; set; }
    }
}

RealTommyKlein

This is not a fix. It's not even a useable workaround. Binding to an Enum should be a single attribute in a XAML element, not a final project in a com sci course. I have the same problem with a POCO that uses an Enum as the "SelectedValue". The same code works great if I replace the enum with the integer conversion, but that's not a work-around either as I have a lot of Enums.
What is the status of this issue?

I think this is still important (re #8638)


Mapping source key properties with "."

Hi there,
I'm trying to accomplish this:
I have the following object. Please notice one of the key properties has a dot:
{   'item': {        'account.id': 1,   } }
The mapper object will be:
{     'item.account.id': 'id' }
I haven't found a way to accomplish this. Is there any way to do it with the mapper?
Thank you in advance.

@prinzdezibel's fix for this has been merged and released to npm as<EMAIL_ADDRESS>


Add new tests for dataset collection and new functionality

Add new tests for dataset collection and new functionality for types identification

@acheshkov  I agree that its must to add better names for functions. But with functionality I am defenityle agree


Configuration: Allow databases to specify storage and notifiers to use.

Rationale
So, a user might have two databases, but these should not be backed up onto the same storage providers, and one of them should be notified to Discord while the other should go to Slack. How can we accommodate this?
One solution would be a more complex config file, but I want us to try to avoid this because it introduces additional user experience complexity to all users, even though this feature will only appeal to a few users. This is a bad UX investment.
Instead, let's handle it with optional connstring parameters!
Implementation
Allow all database connstrings to take two extra parameters, storage_providers and notifiers.
For example, redis://host:port?storage_providers=s3,dropbox&notifiers=slack would specify that the redis database should be backed up onto S3 and Dropbox, and then notified to Slack.
These are strictly optional. By default it will use all notifiers and all storage providers.
Multiple values can be provided, and are comma-separated.
But what if s3 is ambiguous?
In #15, we propose implementing support for multiple handlers of the same kind. If the user has two S3 storage providers, and wants to only select one of them, we will need some way of identifying which one it is.

If we have multiple providers of type s3, use all of them if a database specifies storage_providers=s3.
Allow a user to specify an ID for notifiers and providers to disambiguate. For example, s3://my.bucket.com?id=main_bucket will associate this ID with the bucket.
The database can now use this ID to select its target, e.g. storage_providers=dropbox,main_bucket

This will require a restructure of the current workflow. My suggestion is this:

Parse implemented Database/Storage/Notifier handlers and get the valid prefixes for each handler.
Parse the configuration connstrings and determine if it is valid:

If the handler in the configuration does not match any valid prefixes, raise an error, otherwise:
Notifiers and Storages are parsed first; This creates the notifier/storage instances for each connstring defined in the config and keeps track of the id for each of them. The instance is also added to a general id all and a handler id (discord, s3)
Parse the database connstrings. Raise an error if the storage/notifiers selected are undefined. Create a Workflow object for each database, containing the storage and notifier instances selected for each database.

Start backup by going through all each workflow:

Backup the database.
Sync the backup to each storage provider selected.
Submit the report to each notifier selected (using a method like notifier.add_report(report)).

Notify reports for each notifier defined.

I'd appreciate a better way too so let me know what you think.

This will require a restructure of the current workflow. My suggestion is this:

Parse implemented Database/Storage/Notifier handlers and get the valid prefixes for each handler.
Parse the configuration connstrings and determine if it is valid:

If the handler in the configuration does not match any valid prefixes, raise an error, otherwise:
Notifiers and Storages are parsed first; This creates the notifier/storage instances for each connstring defined in the config and keeps track of the id for each of them. The instance is also added to a general id all and a handler id (discord, s3)
Parse the database connstrings. Raise an error if the storage/notifiers selected are undefined. Create a Workflow object for each database, containing the storage and notifier instances selected for each database.

Start backup by going through all each workflow:

Backup the database.
Sync the backup to each storage provider selected.
Submit the report to each notifier selected (using a method like notifier.add_report(report)).

Notify reports for each notifier defined.

I'd appreciate a better way too so let me know what you think.

Okay, so you basically want to go over all the handlers first to verify that all cross-references are valid, and then we do the procedure. fair enough, that seems solid to me, it'll prevent blackbox from running half a backup procedure and then failing.
I'm not sure I understand exactly why this is necessary for this change, but I don't think it sounds like a bad change so I don't feel the need to suggest an alternative implementation.
As we continue to add complexity to the main loop, we should ask ourselves if this complexity may be better contained in a sort of main application class. Feel free to refactor in that direction if it feels more convenient.

Okay, so you basically want to go over all the handlers first to verify that all cross-references are valid, and then we do the procedure. fair enough, that seems solid to me, it'll prevent blackbox from running half a backup procedure and then failing.
I'm not sure I understand exactly why this is necessary for this change, but I don't think it sounds like a bad change so I don't feel the need to suggest an alternative implementation.
As we continue to add complexity to the main loop, we should ask ourselves if this complexity may be better contained in a sort of main application class. Feel free to refactor in that direction if it feels more convenient.


cap&u - skip alert status if timer is taking too long / timing out.

High Level
The slowest part of cap&u timer is determining if a resource has an alert assigned and should be captured more frequently (aka run in "realtime").
So if it has been a long time since capturing a resource, why determine if it has been assigned an alert or not? It will need to be captured regardless. So try and determine capture eligibility quickly before even checking if an alert has been assigned.
Same goes for when the resource has been captured very recently. Just skip it and don't even ask if the resource has an alert.
Nice side effect: If the perf_capture_timer times out, the resource will not have run recently, and will get to the point where it needs to run regardless, short circuiting the slow logic, and ensuring that it will at least be run at the non-realtime frequency.
The downside of this change is it will be harder to performance test cap&u timer since this change eagerly throw out recently run captures. This case is the most common case when performance tuning.
NOTES:

Captures will run at the same frequency as before.
The alert determination logic will typically run the same number of times as before.
This mostly effects the situation where perf_capture_timer is sporadically run or if the process times out. Then the alert determination logic is skipped, and the resources are captured.

Algorithm changes
before

Determine if a resource has an alert assigned.
Choose how frequently to capture this resource based upon if the resource has an alert assigned.
Trigger capturing this resource if it has has gone too long since the last run

after

Determine if the resource needs to be captured regardless of whether it has an alert assigned.
Determine if this resource wouldn't be captured regardless of whether it has an alert assigned.
If the previous questions are inconclusive, then determine if the resource has an alert assigned and go from there.

Step 3 should be the most commonly run. But there is a chance that it is not run. And if we start getting timeouts, step 3 will be run less frequently, and the longer capture takes to run, step 3 will be run less frequently.
Stats
In normal execution, the queries should be the same. In the case that it has been a while since running performance captures, or it has happened very frequently, the numbers change drastically:
10,000 Vms.

ms
bytes
objects
queries
query (ms)
rows

124,705.2
231,768,156*
144,651,595
24,123
47,026.9
2,754,091
before

40,578.9
242,065,307*
30,674,875
21,784
14,803.7
11,488
after

* Memory usage for before does not reflect 71,040,436 freed objects.
* Memory usage for after does not reflect 13,936,786 freed objects.

cops

👍 This is a huge improvement!

@gtanzillo I renamed realtime_capture_threshold to alert_capture_threshold. think that was all that was on the docket

PR title please.

@Fryguy that was a title. I'll try again

@Fryguy Tried to make the wording and other changes

I'd prefer not to test a the internals of MiqAlert.target_needs_realtime_capture? That is a separate class and can be tested elsewhere.
I tried to make all the wording changes. let me know what you think.
I don't feel we need rubocop for testing 2 minute boundaries. Even if there was a little bit of a lag, I don't feel they will be 2 minutes.
perf_capture_now? tests the detection of realtime in the 5.minutes case.
perf_capture_now? was written to work before and after this refactoring and test all the timing boundaries. This allows us to know if we introduced a digression. (the logic before and after should not have changed, only the number of times called into target_needs_realtime_capture?

Darga backport details:
commit 8fbdc6bf34188399d026abf92b4ff04b3acdffb3
Author: Jason Frey<EMAIL_ADDRESS>Date:   Wed Jul 20 15:30:03 2016 -0400

    Merge pull request #9766 from kbrock/perf_cap_u_circuit_breaker

    cap&u - skip alert status if timer is taking too long / timing out.
    (cherry picked from commit e47c8e53d4e5369f34bd116ba363837ca847bc75)


Don't put generated/compiled files in the src directory

It would be less confusing if the generated *.js, and *.js.map files were put in a separate directory (e.g.: build, anything other than src), and have the lite-server serve from there. This will make the Angular component structure easy to grasp. Same goes for the e2e directory.
Please let me know if you think this is a valid concern.

It is a valid concern, I had the same problem when I started working with this.
On the one hand, you can easily hide the .js and .js.map files at VScode (only if they have a matching .ts):
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": true

That in your settings.
On the other hand, this project is going to be deprecated in October.

may I know why this project is gonna be deprecated? I just started angular4 with this guide.

When we started writing the docs, we had SystemJS and we created all our documentation around that. We had a "quickstart" guide that was the entry point of the rest of the docs. That was the time when Angular CLI didnt exist.
Nowadays, we don't have that quickstart guide anymore and all the documentation is being adapted for the Angular CLI.
When that  happens, this repository will be deprecated. It served its purpose when we started, but today, Angular CLI is a better option in everything.

This repository is now deprecated. The Angular Quickstart project was a nice starting point for creating Angular applications. Now we recommend using the Angular CLI to create new Angular projects.
Starting from 1 November 2017, all the Angular documentation, at angular.io, is based on the Angular CLI.
Let's get started


Readme is displayed smaller than usual on iOS 18

M4 11" iPad Pro iOS 17.5 - OK
M4 11" iPad Pro iOS 18 - NOK
M2 11" iPad Air iOS 17.5 - OK
M2 11" iPad Air iOS 18 - NOK
First impression is that this is a bug in iOS 18 beta 3: .frame view modifier not working?

Issue got fixed in iOS 18.1 or 18.2 (or possibly in Xcode 16.2).

Issue is only on iPad


Dependency issue with crypto-mac package

Description
error: failed to select a version for the requirement `crypto-mac = "^0.7"`
candidate versions found which didn't match: 0.11.1, 0.11.0, 0.10.1, ...
location searched: crates.io index
required by package `hmac v0.7.0`

Happens when call cargo update on substrate (polkadot-v0.9.9 branch) or other derivative package.

the crypto-mac issue appears to have been caused because crypto-mac 0.7.0 was removed from https://crates.io/crates/crypto-mac/versions.  if developers delete their Cargo.lock file and then rebuild with cargo build --release the experienced the issue.
this affected building the latest substrate-node-template, which is using dependencies from Substrate commit 4d28ebeb8b027ca0227fe7779c5beb70a7b56467.
but crypto-mac has been added back again at https://crates.io/crates/crypto-mac/versions, so this issue appears to have been resolved.
although now another dependency snow 0.7.1 has been removed from https://crates.io/crates/snow/versions, so if you delete Cargo.lock and then try to build the latest substrate-node-template that's using dependencies from Substrate commit 4d28ebeb8b027ca0227fe7779c5beb70a7b56467 with cargo build --release it generates error:
    Updating git repository `https://github.com/paritytech/substrate.git`
    Updating crates.io index
error: failed to select a version for `snow`.
    ... required by package `libp2p-noise v0.30.0`
    ... which is depended on by `libp2p v0.37.1`
    ... which is depended on by `sc-cli v0.10.0-dev (https://github.com/paritytech/substrate.git?tag=monthly-2021-08#4d28ebeb)`
    ... which is depended on by `frame-benchmarking-cli v4.0.0-dev (https://github.com/paritytech/substrate.git?tag=monthly-2021-08#4d28ebeb)`
    ... which is depended on by `node-template v3.0.0-monthly-2021-08 (/Users/ls2/code/substrate-developer-hub/substrate-node-template/node)`
versions that meet the requirements `^0.7.1` are: 0.7.2, 0.7.1

all possible versions conflict with previously selected packages.

  previously selected package `snow v0.7.1`
    ... which is depended on by `libp2p-noise v0.30.0`
    ... which is depended on by `libp2p v0.37.1`
    ... which is depended on by `sc-cli v0.10.0-dev (https://github.com/paritytech/substrate.git?tag=monthly-2021-08#4d28ebeb)`
    ... which is depended on by `frame-benchmarking-cli v4.0.0-dev (https://github.com/paritytech/substrate.git?tag=monthly-2021-08#4d28ebeb)`
    ... which is depended on by `node-template v3.0.0-monthly-2021-08 (/Users/ls2/code/substrate-developer-hub/substrate-node-template/node)`

failed to select a version for `snow` which could resolve this conflict

unfortunately running cargo update -p substrate-bip39 does not resolve the issue.
cargo update -p substrate-bip39

So https://github.com/paritytech/substrate/pull/9391 bumps the libp2p version which will also bump snow, might be worth a try to cherry-pick.


Python Problem 12 solved

Solution of Problem 12 Integers to Roman  of leetcode #1245

@italoribeiroc you have to mention the issue number in the PR Body.
Please go through the contribution guidelines.


BeginMapBuilder() should return an error

Right now, when using the connector SDK and the connector client cannot connect/reach OpenFaaS gateway, it fails with a not very user friendly log.Fatal error:
2019/02/18 22:16:44 Get http://<IP_ADDRESS>:8080/system/functions: dial tcp <IP_ADDRESS>:8080: connect: connection refused

In larger and more complex programs using the SDK this can get tricky to debug.
Instead, it should return an error (or <-chan error since it's spawning a goroutine) so users of the SDK can handle the error appropriately (retry, wrap the error, use different logging [related #6 ]).

this sounds like a very reasonable request to improve the connector sdk.

+1
However, I closed this issue since BeginMapBuilder() spawns a goroutine [1], which currently calls log.Fatal() for any error returned. According to #44 this is encouraged until we come up with a general approach of error propagation in the SDK.
[1]
https://github.com/openfaas-incubator/connector-sdk/blob/b997b460ed7280d941b8500feb96c7434ee4e271/types/controller.go#L148


Backport HIVE-20192

https://issues.apache.org/jira/browse/HIVE-20192
Issue has been backported to Hive 3.2 and I would like it to be backported to 3.1 as well

Can you review PR #17 and confirm it solves your issue ?


Build failure: peek & peek is deprecated

Steps To Reproduce

nix-shell -p peek

Build log
these 2 derivations will be built:
  /nix/store/llpf3ld5d4i0yw2l1d4p82aj2fjjvzfv-gifski-1.11.0.drv
  /nix/store/8wx030avv5scccpscsgg2f7nbjjk4lyh-peek-1.5.1.drv
building '/nix/store/llpf3ld5d4i0yw2l1d4p82aj2fjjvzfv-gifski-1.11.0.drv'...
unpacking sources
unpacking source archive /nix/store/d772f1x2hgcn2jgbjayb2s1pcnibsjh9-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
updateAutotoolsGnuConfigScriptsPhase
configuring
building
Executing cargoBuildHook
++ env CC_x86_64-unknown-linux-gnu=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/c++ cargo build -j 4 --target x86_64-unknown-linux-gnu --frozen --release --features=video
   Compiling libc v0.2.142
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling glob v0.3.1
   Compiling proc-macro2 v1.0.56
   Compiling memchr v2.5.0
   Compiling clang-sys v1.6.1
   Compiling quote v1.0.26
   Compiling once_cell v1.17.1
   Compiling unicode-ident v1.0.8
   Compiling crossbeam-utils v0.8.15
   Compiling cc v1.0.79
   Compiling syn v1.0.109
   Compiling minimal-lexical v0.2.1
   Compiling libloading v0.7.4
   Compiling nom v7.1.3
   Compiling memoffset v0.8.0
   Compiling version_check v0.9.4
   Compiling io-lifetimes v1.0.10
   Compiling bindgen v0.64.0
   Compiling regex-syntax v0.7.1
   Compiling ahash v0.8.3
   Compiling cexpr v0.6.0
   Compiling crossbeam-epoch v0.9.14
   Compiling rustc-hash v1.1.0
   Compiling rustix v0.37.18
   Compiling regex v1.8.1
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling num_cpus v1.15.0
   Compiling scopeguard v1.1.0
   Compiling pkg-config v0.3.26
   Compiling linux-raw-sys v0.3.6
   Compiling bytemuck v1.13.1
   Compiling rgb v0.8.36
   Compiling crossbeam-channel v0.5.8
   Compiling utf8parse v0.2.1
   Compiling crc32fast v1.3.2
   Compiling rayon-core v1.11.0
   Compiling anstyle-parse v0.2.0
   Compiling is-terminal v0.4.7
   Compiling hashbrown v0.13.2
   Compiling crossbeam-deque v0.8.3
   Compiling adler v1.0.2
   Compiling anstyle v1.0.0
   Compiling colorchoice v1.0.0
   Compiling anstyle-query v1.0.0
   Compiling fallible_collections v0.4.7
   Compiling anstream v0.3.1
   Compiling miniz_oxide v0.7.1
   Compiling gifsicle v1.93.0
   Compiling num-traits v0.2.15
   Compiling ffmpeg-next v6.0.0
   Compiling clap_lex v0.4.1
   Compiling imgref v1.9.4
   Compiling weezl v0.1.7
   Compiling ffmpeg-sys-next v6.0.1 (https://github.com/kornelski/rust-ffmpeg-sys-1?rev=94d5496d88900bdc0cad66733138134d0ea3cf31#94d5496d)
   Compiling either v1.8.1
   Compiling strsim v0.10.0
   Compiling color_quant v1.1.0
   Compiling gif v0.12.0
   Compiling clap_builder v4.2.5
   Compiling rayon v1.7.0
   Compiling flate2 v1.0.26
   Compiling thread_local v1.1.7
   Compiling arrayvec v0.7.2
   Compiling imagequant v4.2.0
   Compiling lodepng v3.7.2
   Compiling clap v4.2.5
   Compiling gif-dispose v4.0.0
   Compiling loop9 v0.1.3
   Compiling resize v0.7.4
   Compiling pbr v1.1.1
   Compiling natord v1.0.9
   Compiling dunce v1.0.4
   Compiling quick-error v2.0.1
   Compiling wild v2.1.0
   Compiling gifski v1.11.0 (/build/source)
    Finished release [optimized] target(s) in 1m 58s
Executing cargoInstallPostBuildHook
Finished cargoInstallPostBuildHook
Finished cargoBuildHook
buildPhase completed in 1 minutes 59 seconds
running tests
Executing cargoCheckHook
++ cargo test -j 4 --release --features=video --target x86_64-unknown-linux-gnu --frozen -- --test-threads=4
warning: output filename collision.
The lib target `gifski` in package `gifski v1.11.0 (/build/source)` has the same output filename as the lib target `gifski` in package `gifski v1.11.0 (/build/source)`.
Colliding filename is: /build/source/target/x86_64-unknown-linux-gnu/release/deps/libgifski.rlib
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>.
warning: output filename collision.
The lib target `gifski` in package `gifski v1.11.0 (/build/source)` has the same output filename as the lib target `gifski` in package `gifski v1.11.0 (/build/source)`.
Colliding filename is: /build/source/target/x86_64-unknown-linux-gnu/release/deps/libgifski.a
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>.
warning: output filename collision.
The lib target `gifski` in package `gifski v1.11.0 (/build/source)` has the same output filename as the lib target `gifski` in package `gifski v1.11.0 (/build/source)`.
Colliding filename is: /build/source/target/x86_64-unknown-linux-gnu/release/deps/libgifski.so
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>.
warning: output filename collision.
The lib target `gifski` in package `gifski v1.11.0 (/build/source)` has the same output filename as the lib target `gifski` in package `gifski v1.11.0 (/build/source)`.
Colliding filename is: /build/source/target/x86_64-unknown-linux-gnu/release/deps/libgifski.so.dwp
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>.
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.142
   Compiling once_cell v1.17.1
   Compiling ffmpeg-sys-next v6.0.1 (https://github.com/kornelski/rust-ffmpeg-sys-1?rev=94d5496d88900bdc0cad66733138134d0ea3cf31#94d5496d)
   Compiling crossbeam-utils v0.8.15
   Compiling bitflags v1.3.2
   Compiling memoffset v0.8.0
   Compiling linux-raw-sys v0.3.6
   Compiling scopeguard v1.1.0
   Compiling bytemuck v1.13.1
   Compiling rgb v0.8.36
   Compiling io-lifetimes v1.0.10
   Compiling rustix v0.37.18
   Compiling crossbeam-epoch v0.9.14
   Compiling ffmpeg-next v6.0.0
   Compiling crossbeam-channel v0.5.8
   Compiling gifsicle v1.93.0
   Compiling ahash v0.8.3
   Compiling utf8parse v0.2.1
   Compiling anstyle-parse v0.2.0
   Compiling is-terminal v0.4.7
   Compiling hashbrown v0.13.2
   Compiling crossbeam-deque v0.8.3
   Compiling num_cpus v1.15.0
   Compiling colorchoice v1.0.0
   Compiling anstyle-query v1.0.0
   Compiling adler v1.0.2
   Compiling anstyle v1.0.0
   Compiling fallible_collections v0.4.7
   Compiling anstream v0.3.1
   Compiling miniz_oxide v0.7.1
   Compiling rayon-core v1.11.0
   Compiling crc32fast v1.3.2
   Compiling color_quant v1.1.0
   Compiling either v1.8.1
   Compiling weezl v0.1.7
   Compiling imgref v1.9.4
   Compiling strsim v0.10.0
   Compiling clap_lex v0.4.1
   Compiling clap_builder v4.2.5
   Compiling gif v0.12.0
   Compiling rayon v1.7.0
   Compiling flate2 v1.0.26
   Compiling thread_local v1.1.7
   Compiling arrayvec v0.7.2
   Compiling imagequant v4.2.0
   Compiling clap v4.2.5
   Compiling lodepng v3.7.2
   Compiling gif-dispose v4.0.0
   Compiling loop9 v0.1.3
   Compiling resize v0.7.4
   Compiling pbr v1.1.1
   Compiling num-traits v0.2.15
   Compiling dunce v1.0.4
   Compiling wild v2.1.0
   Compiling quick-error v2.0.1
   Compiling natord v1.0.9
   Compiling gifski v1.11.0 (/build/source)
error: the crate `gifski` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `gif` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `weezl` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `color_quant` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `imagequant` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `rgb` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `bytemuck` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `arrayvec` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `num_cpus` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `libc` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `rayon` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `either` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `rayon_core` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `crossbeam_channel` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `cfg_if` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `crossbeam_utils` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `crossbeam_deque` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `crossbeam_epoch` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `scopeguard` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `memoffset` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `thread_local` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `once_cell` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `imgref` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `quick_error` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `pbr` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `loop9` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `gifsicle` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `gif_dispose` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `resize` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `fallible_collections` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `hashbrown` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `ahash` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `lodepng` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `flate2` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `crc32fast` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `miniz_oxide` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: the crate `adler` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`

error: could not compile `gifski` (test "tests") due to 37 previous errors
warning: build failed, waiting for other jobs to finish...
error: builder for '/nix/store/llpf3ld5d4i0yw2l1d4p82aj2fjjvzfv-gifski-1.11.0.drv' failed with exit code 101;
       last 10 log lines:
       > error: the crate `flate2` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
       >
       > error: the crate `crc32fast` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
       >
       > error: the crate `miniz_oxide` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
       >
       > error: the crate `adler` requires panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
       >
       > error: could not compile `gifski` (test "tests") due to 37 previous errors
       > warning: build failed, waiting for other jobs to finish...
       For full logs, run 'nix log /nix/store/llpf3ld5d4i0yw2l1d4p82aj2fjjvzfv-gifski-1.11.0.drv'.
error: 1 dependencies of derivation '/nix/store/8wx030avv5scccpscsgg2f7nbjjk4lyh-peek-1.5.1.drv' failed to build

Additional context
Peek is a simple animated GIF screen recorder with an easy to use interface. It seems only supports Linux.
Recently the peek is deprecated.
I'm new to contribute to the Nix project, so I'm not sure I should fix it or mark it as deprecated. If latter, I'll delete the peek from the nixpkgs source code and add an alias which says this package is deprecated, then will make a new PR.
Already there is the gifski package but it is built from the source when building the peek package.
Notify maintainers
@puffnfresh

Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.42, NixOS, 23.11 (Tapir), 23.11pre509987.66aedfd0102`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(root): `"nixos"`
 - channels(ch1keen): `"home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Let's try to fix the underlying problem with gifski first: https://github.com/NixOS/nixpkgs/pull/247700.

The fix for gifski has been committed and its progress can be tracked at https://nixpk.gs/pr-tracker.html?pr=247700. When you are able to, please let me know if that fixes the build for you.
Personally, I don't have an opinion on whether to deprecate this or not, so I'll leave that subject alone :)


EC2 Module merging issue

Hello @seansund @triceam ,
I am getting attached error message while merging EC2 module changes. Kindly help me to fix this issue. Thanks

We need to update the notify workflow


Updating the frameworks page

Closes #
Updating the release 3.3 documentation
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

Testing / Reviewing
{{ Add descriptions, steps or a checklist for how reviewers can verify this PR works or not }}

LGTM. Nice addition.


Can't lunch with gunicorn the website

I followed all the steps and it fails when I lunch the prod. Here is my prod log:
config: /home/gabriel/card-live-dashboard-home/config/gunicorn.conf.py
wsgi_app: None
bind: ['<IP_ADDRESS>:8050']
backlog: 2048
workers: 2
worker_class: sync
threads: 1
worker_connections: 1000
max_requests: 0
max_requests_jitter: 0
timeout: 600
graceful_timeout: 30
keepalive: 2
limit_request_line: 4094
limit_request_fields: 100
limit_request_field_size: 8190
reload: False
reload_engine: auto
reload_extra_files: []
spew: False
check_config: False
print_config: False
preload_app: False
sendfile: None
reuse_port: False
chdir: /home/gabriel/card-live-dashboard
daemon: True
raw_env: []
pidfile: /home/gabriel/card-live-dashboard-home/config/../cardlive.pid
worker_tmp_dir: None
user: 1009
group: 1009
umask: 0
initgroups: False
tmp_upload_dir: None
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
forwarded_allow_ips: ['<IP_ADDRESS>']
accesslog: /home/gabriel/card-live-dashboard-home/config/../access.log
disable_redirect_access_to_syslog: False
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
errorlog: /home/gabriel/card-live-dashboard-home/config/../prod.log
loglevel: debug
capture_output: False
logger_class: gunicorn.glogging.Logger
logconfig: None
logconfig_dict: {}
syslog_addr: udp://localhost:514
syslog: False
syslog_prefix: None
syslog_facility: user
enable_stdio_inheritance: False
statsd_host: None
dogstatsd_tags:
statsd_prefix:
proc_name: cardlive
default_proc_name: card_live_dashboard.app:flask_app(card_live_home='/home/gabriel/card-live-dashboard-home')
pythonpath: None
paste: None
on_starting: <function OnStarting.on_starting at 0x7fa11f557d00>
on_reload: <function OnReload.on_reload at 0x7fa11f557e20>
when_ready: <function WhenReady.when_ready at 0x7fa11f557f40>
pre_fork: <function Prefork.pre_fork at 0x7fa11f5700d0>
post_fork: <function Postfork.post_fork at 0x7fa11f5701f0>
post_worker_init: <function PostWorkerInit.post_worker_init at 0x7fa11f570310>
worker_int: <function WorkerInt.worker_int at 0x7fa11f570430>
worker_abort: <function WorkerAbort.worker_abort at 0x7fa11f570550>
pre_exec: <function PreExec.pre_exec at 0x7fa11f570670>
pre_request: <function PreRequest.pre_request at 0x7fa11f570790>
post_request: <function PostRequest.post_request at 0x7fa11f570820>
child_exit: <function ChildExit.child_exit at 0x7fa11f570940>
worker_exit: <function WorkerExit.worker_exit at 0x7fa11f570a60>
nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7fa11f570b80>
on_exit: <function OnExit.on_exit at 0x7fa11f570ca0>
proxy_protocol: False
proxy_allow_ips: ['<IP_ADDRESS>']
keyfile: None
certfile: None
ssl_version: 2
cert_reqs: 0
ca_certs: None
suppress_ragged_eofs: True
do_handshake_on_connect: False
ciphers: None
raw_paste_global_conf: []
strip_header_spaces: False
[2023-07-04 18:29:23 +0000] [2477914] [INFO] Starting gunicorn 20.1.0
[2023-07-04 18:29:23 +0000] [2477914] [DEBUG] Arbiter booted
[2023-07-04 18:29:23 +0000] [2477914] [INFO] Listening at: http://<IP_ADDRESS>:8050 (2477914)
[2023-07-04 18:29:23 +0000] [2477914] [INFO] Using worker: sync
[2023-07-04 18:29:23 +0000] [2477915] [INFO] Booting worker with pid: 2477915
[2023-07-04 18:29:23 +0000] [2477916] [INFO] Booting worker with pid: 2477916
[2023-07-04 18:29:23 +0000] [2477914] [DEBUG] 2 workers
[2023-07-04 18:29:23 +0000] [2477915] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/gabriel/card-live-dashboard/card_live_dashboard/app.py", line 8, in
import card_live_dashboard.callbacks as callbacks
File "/home/gabriel/card-live-dashboard/card_live_dashboard/callbacks/init.py", line 8, in
import card_live_dashboard.layouts.figures as figures
File "/home/gabriel/card-live-dashboard/card_live_dashboard/layouts/init.py", line 10, in
import card_live_dashboard.layouts.figures as figures
File "/home/gabriel/card-live-dashboard/card_live_dashboard/layouts/figures.py", line 13, in
from card_live_dashboard.model.CardLiveData import CardLiveData
File "/home/gabriel/card-live-dashboard/card_live_dashboard/model/init.py", line 4, in
world = region_codes.get_un_m49_regions_naturalearth()
File "/home/gabriel/card-live-dashboard/card_live_dashboard/service/GeographicRegionCodesService.py", line 146, in get_un_m49_regions_naturalearth
world = self.split_france_french_guiana(world)
File "/home/gabriel/card-live-dashboard/card_live_dashboard/service/GeographicRegionCodesService.py", line 180, in split_france_french_guiana
world_new = world_new.append(french_guiana_row)
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/pandas/core/generic.py", line 5989, in getattr
return object.getattribute(self, name)
AttributeError: 'GeoDataFrame' object has no attribute 'append'
[2023-07-04 18:29:23 +0000] [2477915] [INFO] Worker exiting (pid: 2477915)
[2023-07-04 18:29:23 +0000] [2477916] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/gabriel/card-live-dashboard/card_live_dashboard/app.py", line 8, in
import card_live_dashboard.callbacks as callbacks
File "/home/gabriel/card-live-dashboard/card_live_dashboard/callbacks/init.py", line 8, in
import card_live_dashboard.layouts.figures as figures
File "/home/gabriel/card-live-dashboard/card_live_dashboard/layouts/init.py", line 10, in
import card_live_dashboard.layouts.figures as figures
File "/home/gabriel/card-live-dashboard/card_live_dashboard/layouts/figures.py", line 13, in
from card_live_dashboard.model.CardLiveData import CardLiveData
File "/home/gabriel/card-live-dashboard/card_live_dashboard/model/init.py", line 4, in
world = region_codes.get_un_m49_regions_naturalearth()
File "/home/gabriel/card-live-dashboard/card_live_dashboard/service/GeographicRegionCodesService.py", line 146, in get_un_m49_regions_naturalearth
world = self.split_france_french_guiana(world)
File "/home/gabriel/card-live-dashboard/card_live_dashboard/service/GeographicRegionCodesService.py", line 180, in split_france_french_guiana
world_new = world_new.append(french_guiana_row)
File "/home/gabriel/card-live-venv/lib/python3.10/site-packages/pandas/core/generic.py", line 5989, in getattr
return object.getattribute(self, name)
AttributeError: 'GeoDataFrame' object has no attribute 'append'
[2023-07-04 18:29:23 +0000] [2477916] [INFO] Worker exiting (pid: 2477916)
[2023-07-04 18:29:23 +0000] [2477914] [WARNING] Worker with pid 2477916 was terminated due to signal 15
[2023-07-04 18:29:24 +0000] [2477914] [INFO] Shutting down: Master
[2023-07-04 18:29:24 +0000] [2477914] [INFO] Reason: Worker failed to boot.

Thanks for reporting @gwajnberg
This appears to be due to changes in the API for pandas>=1.4.0. Mainly, DataFrame.append() was deprecated in 1.4.0 (and removed in version 2.0.0). This is mentioned in this issue https://github.com/geopandas/geopandas/issues/2606
Until we release a new version, the way to get CARD:Live Dashboard working is to downgrade pandas. That is:
python -m pip install 'pandas<2.0.0'


Add BASE_URL option to config

This makes it possible to setup your own proxy (to circumvent the IP blocks)

Thanks for your PR!
As it's not urgent, I'll review it later when I'll have a computer - expect in 1~2 month

as tgtg-python accept proxy maybe it could be better to use this instead of replacing the base_url no ?
https://github.com/ahivert/tgtg-python/blob/master/tgtg/__init__.py#L43

Yes, good idea. I hadn't noticed that.


It cannot work on Google Pixel -- Android Pie System in the latest update (26 Sep 2018).

Every time after I enable the brevent using PC (by type commands using ADB tool), it works for  two or three minutes, however, after that, it would reveal the primary interface of brevent, and asking me to enable brevent by PC (which has already been done).

i still don't receive the latest update. will check when i update.

There is no security update for pixel, and don't turn off adb in anyway.
You can turn off network adb:
adb tcpip 3035

Just receive Oct update, and it works well.

Hi,
I don't know why, but after I run the command: adb tcpip 3035, it works.
Anyway, thank you very much indeed.
Willie
On Wed, 31 Oct 2018, 21:36 Liu DongMiao<EMAIL_ADDRESS>wrote:

Just receive Oct update, and it works well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/brevent/Brevent/issues/452#issuecomment-434689191,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV8E5yci568S1m2GVTKuM3E432OpbbgQks5uqadBgaJpZM4XFjsb
.


docs: add top-level design

Rendered version

@huachaohuang shall we merge this doc and keep update it during our implementation?
@w41ter I'd like to know the behavior if a node receive a group request of which the group is not on that node. So far, I don't find a clear code snippet handle this case.
I wondering whether a node can accept any group request and route to a correct node, an external router (lib) should take the responsibility.

The design is too simple to be merged so far. Let's leave it as a draft for now.


Link to data

We need links to several data sets:

SV calls and graph for human data, + matched reads

Suggestion: GIAB HG002

Metagenome readset containing structural variants (e.g. E. coli or yeast)

Mock microbial is one possibility: https://github.com/LomanLab/mockcommunity

GIAB HG002 variant calls: ftp://ftp-trace.ncbi.nlm.nih.gov/giab/ftp/data/AshkenazimTrio/analysis/NIST_SVs_Integration_v0.6/HG002_SVs_Tier1_v0.6.vcf.gz
Uploaded as unzipped VCF to dnanexus

I'm upload the loman lab dataset. might take a while coz it's large and downloading it first onto the worker machine is taking a while

SRR7415638 is a metagenome dataset of Saccharomyces cerevisiae.
https://lomanlab.github.io/mockcommunity/


PERF: Re-use the faster get_open_and_closes from tradingcalendar

Updated tradingcalendar_bmf and _tse to use the faster get_open_and_closes from tradingcalendar.
  Though that module doesn't appear to have an open_and_closes, so I'm not sure if it works at all right now.

In [1]: from pandas import *

In [2]: from zipline.utils.tradingcalendar_tse import open_and_closes as tse

In [3]: old_tse = read_pickle('tse.pkl')

In [4]: (old_tse != tse).sum()
Out[4]:
market_open     0
market_close    0
dtype: int64

In [5]: from zipline.utils.tradingcalendar_bmf import open_and_closes as bmf

In [6]: old_bmf = read_pickle('bmf.pkl')

In [7]: (old_bmf != bmf).sum()
Out[7]:
market_open     0
market_close    0
dtype: int64

LGTM.  This would probably be even faster if we we're doing a map, but it's better than before.

Awesome - thanks for the pickle check.  Yea, since tradingcalendar_lse.py didn't have open_and_closes, I didn't touch it.

@richafrank FWIW, doing this vectorized is about 40% faster than what we're currently doing:
def get_open_and_closes(trading_days,
                        early_closes,
                        open_delta,
                        close_delta,
                        early_close_delta):
    # Opens are always at 9:30 US/Eastern.
    o = (cast_tz(trading_days, 'US/Eastern') + open_delta).tz_convert('UTC')
    c = cast_tz(trading_days, 'US/Eastern').values

    early_close_indices = trading_days.get_indexer(early_closes)
    regular_close_indices = np.setdiff1d(
        np.arange(len(trading_days)),
        early_close_indices,
    )

    # Add early_close_delta to early closes, and close_delta to regular_closes.
    c[early_close_indices] += early_close_delta.asm8
    c[regular_close_indices] += close_delta.asm8

    return pd.DataFrame(
        data={'market_open': o, 'market_close': pd.DatetimeIndex(c, tz='UTC')},
        # Explicitly force this column order.
        columns=['market_open', 'market_close'],
        index=trading_days,
    )

open_and_closes = get_open_and_closes(
    trading_days,
    early_closes,
    open_delta=pd.Timedelta('9 hours 31 minutes'),
    close_delta=pd.Timedelta('16 hours'),
    early_close_delta=pd.Timedelta('13 hours'),
)

Old Version:
In [1]: %time from zipline.utils.tradingcalendar import open_and_closes
CPU times: user 823 ms, sys: 31.7 ms, total: 854 ms
Wall time: 854 ms

New Version:
In [1]: %time from zipline.utils.tradingcalendar import open_and_closes
CPU times: user 468 ms, sys: 47.1 ms, total: 515 ms
Wall time: 514 ms


Feature suggestion: Integration with AppWrite?

It would be great to choose different BaaS....

Interesting - hadn't heard of this.  Is it similar to Supabase in that it uses postgrest?

I think it's different DB which managed by the platform + it's doing all
the auth for you.
It will be a great feature to have in basejump - as it appear to be a
growing product and community.
On Wed, 17 May 2023 at 06:15, tiniscule @.***> wrote:

Interesting - hadn't heard of this. Is it similar to Supabase in that it
uses postgrest?
—
Reply to this email directly, view it on GitHub
https://github.com/usebasejump/basejump/issues/33#issuecomment-1550623238,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO6X5HNKMQZTWYMZL4HSKADXGQ7EXANCNFSM6AAAAAAXPL4DGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Is it completed and working? Can you refer to the docs how to use it?


Add a UX review step to release process

We've added significant new features to the webui (and desktop) and cranked out multiple releases, but we've not kept up with our ux reviewing and user testing: https://github.com/ipfs-shipyard/ipfs-webui/tree/master/docs/usability
We'll make better releases if we seek user feedback as part of the dev cycle. If we can't commit to doing it for every new feature, we should at least commit to doing as part of a release schedule. We can cut a pre-release that has the features in we'd like to get feedback on, then get a first round of UX feedback on the relase from at least @ericronne @cwaring and that @olizilla. Once we've resolved any UX issues that come up from that, we should update the user testing script and invite users to try out the new release to validate our assumptions about it and get more perspectives on it.
@ericronne what are your thoughts? Can you help us define a release process that includes user-testing?

Closing this one in light of our Q2 2020 focus on app family standardization ... anything we do will by default include user testing. 😊 Also of note: the docs team's work overall to get procedures in place for testing and validation. Intending to continue carrying that torch!


CSCFAIRMETA-720: Set title based on app

Use Flask render_template to set title and meta description for Etsin/Qvain
Because the etsin_app cookie is not available on the first request, X-Etsin-App header is used for identifying the app

Agreed on the translation. I think I have a pretty good idea how the language detection should work but I'd do it in a separate task.


ERROR: Unsupported distribution ' '

Hello everyone
I'm trying to install docker on my MacOS with the Docker Installation Scripts provided here, i.e.
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
AND
curl -fsSL https://test.docker.com -o test-docker.sh
sh test-docker.sh
But both commands return the same error message:
Executing docker install script, commit:442e66405c304fa92af8aadaa1d9b31bf4b0ad94
ERROR: Unsupported distribution ' '
Could you tell me what's wrong here?
Thank you

@Behnaz64 The get.docker.com script only works for Linux. We have updated the script to give you a link to download Docker Desktop for Mac.

Dear Engineer
I had the same problem with Linux
sh get-docker.sh
Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
ERROR: Unsupported distribution ''
I want to know whether this is caused by not adding "sudo", or other reasons, and how to solve this problem.
I sincerely look forward to your reply!

Dear Engineer
I had the same problem with Linux
sh get-docker.sh
Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
ERROR: Unsupported distribution ''
I want to know whether this is caused by not adding "sudo", or other reasons, and how to solve this problem.
I sincerely look forward to your reply!

why is this closed? I'm trying to install it on a synology NAS with an ARMv7 chip. So I really need this to install a pi-hole!!

We don't have packages for Synology, so the script is not detecting that as a Linux distro for which it can install docker.
You may be able to manually install packages that are intended for other distros, or download the static binaries, but no guarantees if that works (definitely untested)


feat: arrange import section of combineReducers

name: Arrange import section of combineReducers and remove useless repeated import
about: arrange import section
PR Type
Does this PR add a new feature, or fix a bug?

refactoring

Why should this PR be included?

It makes codes more clean!

Checklist

[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Is there an existing issue for this PR?

link issue here

[x] Have the files been linted and formatted?
[x] Have the docs been updated to match the changes in the PR?
[ ] Have the tests been updated to match the changes in the PR?
[x] Have you run the tests locally to confirm they pass?

New Features
What new capabilities does this PR add?
What docs changes are needed to explain this?
Bug Fixes
What is the current behavior, and the steps to reproduce the issue?
What is the expected behavior?
How does this PR fix the problem?

Sure, why not. Thanks!


Create oscd-filtered-list based on filtered-list

As a plugin author and maintainer of already existing plugins, I need to have open-scds filtered-list available through nmp.

slot right and left to add filter icon buttons

Requirements:

move filtered-list to oscd-filtered-list repo
change tag name to oscd-filtered-list
do !NOT! extend from mwc-list but use it in the render method
add properties

name
type
description

searchFieldLabel
string
text on the filter textbox

disableCheckAll
boolean
disable the "check all" button

filter
string
the current value of the filter textbox

wrapFocus
boolean
whether focus wraps around the end and beginning of the list

multi
boolean
multi-select

activatable
boolean
color icons permanently on clicking

@action
event
fired before selection is made (find out: is this actually needed?)

@selected
event
fired after selection is made

TODO: search codebase for instances of filtered-list usage and add any properties/events/methods used that are not listed here.

propagate selected event for any changes on maybeValue
propagate ... event for any changes on ...
add screenshot tests
add storybook

Additional Information
This web-component is used pretty much everywhere in the software

Almost done; Still todo: some testing

The documentation needs to be added in the readme.md


Support for AU streams

Per Gitter discussion with @majkinetor and @AdmiringWorm, here are a couple of changes related to AU streams:

ability to force update a specified stream: [AU nodejs\8.9:8.9.0]
push all generated packages

I'm closing this as it has been done directly on master.


Update go mod and vendor

Problem:
Update go mod and vendor to fix some known dependency issues.
Solution:
Update go mod and vendor.
Related Issue:
https://github.com/harvester/harvester/issues/3321
Test plan:

@merfigy backport v1.1


Tests improvements

Added multiple source, multiple sink, multiple sink and source test and dense graph test

Good job, almost


[PAIShare] Offer PAI token for authentication if available for searching templates.

Coverage increased (+16.6%) to 67.747% when pulling a8aa64bef8609e20896db7ea390172ef77e74533 on shaocs-paishare into fb9c3bf5076f0a37e76d4387514fc14b6c6b4457 on paishare.


Is event's modifiers will support 'async'??

What problem does this feature solve?
About this issue https://github.com/vuejs/vue-loader/issues/1229, I want to more discuss.
I think you said is right. There will be some logic implement in different component.However, does the parent component need to consider all the details of the child component?
I think when I create a component.I would like to encapsulate all the logic related to this component inside the component.Because the logic should belong to the component.Next time, when use this component in new component, I just need to think about the logic of the new component.
Besides,most applications now require asynchronous requests.Getting status from parent component is very common.So some time I will use ugly way to make it work.
component A
<template>

    <component-b v-bind:go="ajax"></component-b>

</template>

component B
<template>
  <button v-on:click="emit">
    loading...
    component-b
  </button>
</template>

I think it isn't a good way, but it's efficient.
I have found a way to custom event modifiers in vue-template-compiler, If you want I can write a demo to show how it's efficient.
🖖
What does the proposed API look like?
Add an async modifier.
component A
<template>

    <component-b v-on:go.async="ajax"></component-b>

</template>

component B
<template>
  <button v-on:click="emit">
    loading...
    component-b
  </button>
</template>

As Evan said:

That said, this isn't something that should be done as a modifier... this kind of event ping-pong typically leads to very brittle code in the long run because your components are relying on implementation details of each other.

The way you proposed just above is about the same length but more explicit, so it's better to keep it that way.
If your button needs the promise, it makes more sense to pass it to the component or pass a factory function that returns the promises so the component can control the execution of the promise


MailSender doesn't correctly set JavaMail properties for SMTPS connections

Several of the configuration methods in MailSender incorrectly set JavaMail properties under the mail.smtp prefix when smtps mail transport (TransportStrategy.SMTP_SSL) is used. I'm pretty sure the mail.smtps prefix should be used instead.
Examples: [1] [2] [3] [4]
The cleanest fix, I think, is to implement additional abstract property name getters under the TransportStrategy enum.

Indeed, quoting javaee:

Note that if you're using the "smtps" protocol to access SMTP over SSL, all the properties would be named "mail.smtps.*".

https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html

I agree, these properties will need to come from the TransportStrategy enum.

Now that I think about it, why don't we scrap the per-property interface and instead add a single propertyNamePrefix() method to each enum type?

I like the flexibility it gives me in case the property is completely different per transport strategy. Of course this will never happen with this decades old specification, so it is kind of moot.
However, I like this design, it's clear enough. And I've already updated it.

Cool, I'm pretty indifferent either way

Actually, this was rather tricky, since the transport strategy is an optional parameter in favor of a preconfigured provided Session object.
In one type of scenario an exception was in order, in a second skipping defaults and in a third skipping properties logging they were assumed to be preconfigured.

Released as 5.0.0.rc1-SNAPSHOT. Add OSS' snapshots repo to find it in Maven.


gdrive stopped being able to connect without --config flag

I had an automated bash script for backing up files from a web server to my local machine and then sync upload with gdrive to Google Drive. It worked well for a while and then quit due to
Failed getting oauth client: Failed ot read token: open /Users/robwatson/.gdrive/token_v2.json: permission denied.
It won't let me chmod 777 token_v2.json.
I saw another issue posted where someone had success using the --config /home/<username>/.gdrive flag but in an automated bash script, that interrupts and causes me to have to reauthenticate with a GDrive URL and returned verification code every time the script runs (at midnight).
But trying it as a manual task didn't work either, as after I authenticated manually with a verification code and ran the sync upload command, I get
Found name collision between <id> and <otherid>.
All files in the remote directory are deleted and removed from Trash. Only the local version exists as a brand new file.
So, how do I get past the permssion denied issue in an automated way (without having to do user input) like I used to be able to do and also how do I get past this name collision?
Here's the bash script in its entirety, the way it used to work flawlessly before these issues appeared, and without the --config flag.
#!/usr/bin/env bash

# pantheon-backup-to-gdrive.sh
# Script to backup Pantheon sites and copy to Google Drive
#
# Requirements:
#   - Pantheon terminus cli
#   - Valid terminus machine token
#   - Google Drive folder ID
#   - gdrive CLI by Petter Rasmussen (https://github.com/prasmussen/gdrive)

#PATH=$PATH:/Users/robwatson:/Users/robwatson/vendor/bin:/bin/sh:/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin
#export PATH

# The path to Terminus
TERMINUSPATH="/usr/local/bin"
# The Pantheon terminus user (email address)
<EMAIL_ADDRESS># Site names to backup (e.g. 'site-one site-two')
SITENAMES="site1 site2 site3"
# Site environments to backup (any combination of dev, test and live)
SITEENVS="live"
# Site elements to backup (any combination of files, database and code)
SITEELEMENTS="code database files"
# Local backup directory (must exist, requires trailing slash)
BACKUPDIR="/Users/robwatson/Desktop/Backups-from-Pantheon.io-Sites/"
# Add a date and unique string to the filename
BACKUPDATE=$(date +%Y%m%d%s)
# This sets the proper file extension
FILEEXTENSION="tar.gz"
DBEXTENSION="sql.gz"
# The gdrive folder ID to save the backups to (must already exist)
GDRIVEFOLDERID="123myfolderid"
# Set up a log file for output and errors
LOGFILE="backup."$BACKUPDATE".log"
exec &> $LOGFILE 2>&1

# Clean out backup directory of last backup. We're only keeping one day's worth of files here.
rm -f $BACKUPDIR*.gz

# connect to terminus
#echo "Connecting to Terminus as " $TERMINUSUSER
#$TERMINUSPATH"/"terminus auth:login --email=$TERMINUSUSER

# iterate through sites to backup
for thissite in $SITENAMES; do
    # iterate through current site environments
    for thisenv in $SITEENVS; do
        # iterate through current site elements
        for thiselement in $SITEELEMENTS; do
            #echo "Backing up" $thissite $thisenv $thiselement "..."
            /Users/robwatson/vendor/bin/terminus backup:create $thissite.$thisenv --element=$thiselement

            # download current site backups

            #echo "Downloading" $thissite $thisenv $thiselement "..."

            if [ $thiselement == 'database' ]
            then
                #echo "DATABASE download command is:$TERMINUSPATH"/"terminus backup:get "$thissite"."$thisenv" --element="$thiselement" --to="$BACKUPDIR$thissite"."$thisenv"."$thiselement"."$BACKUPDATE"."$DBEXTENSION
                $TERMINUSPATH"/"terminus backup:get $thissite.$thisenv --element=$thiselement --to=$BACKUPDIR$thissite.$thisenv.$thiselement.$BACKUPDATE.$DBEXTENSION
            else
                #echo "FILE download command is:#TERMINUSPATH"/"terminus backup:get "$thissite"."$thisenv" --element="$thiselement" --to="$BACKUPDIR$thissite"."$thisenv"."$thiselement"."$BACKUPDATE"."$FILEEXTENSION
                $TERMINUSPATH"/"terminus backup:get $thissite.$thisenv --element=$thiselement --to=$BACKUPDIR$thissite.$thisenv.$thiselement.$BACKUPDATE.$FILEEXTENSION
            fi

            # Report whether the file exists
            #if [ -e $BACKUPDIR$thissite.$thisenv.$thiselement.$BACKUPDATE.$DBEXTENSION ]
            #then
            #    echo "Downloaded backup for "$thissite $thisenv $thiselement
            #else
            #    echo "Download failed for "$thissite $thisenv $thiselement
            #fi

        done

    done
done
#echo "Syncing backup from" $BACKUPDIR "to Google Drive Folder ID" $GDRIVEFOLDERID
# upload the local backup directory contents to gdrive, deleting what was there prior to only keep one day's worth of files.
cd $BACKUPDIR
/usr/local/bin/gdrive sync upload --keep-local --delete-extraneous . $GDRIVEFOLDERID
exit

Hello, did you solve this issue?

Nope. I didn't. It looks like this project is abandoned. I take it you're experiencing the same issue?

@crobertwatson You should have read/write access to token_v2.json (preferably 600 so other users can't see it) Is it possible that somehow permissions get changed

Closing until follwup information


Multiple file tabbed editor view lacks UI affordances, leading to confusion

I witnessed the following with a student: in the cases where there are multiple files available in the tabbed editor view, the non-selected tabs (which appear to the right of the initially selected tab) do not bear any clear indication that they can be clicked on.  This leads to students potentially not understanding what they are supposed to edit (e.g., the student tries to put the body into classify_number.ads instead of classify_number.adb)

Red arrow shows the UI elements I'm talking about.
This might be fixed by

modifying the UI elements so they look more selectable (compare against Github's "new issue" interface, for example)
putting some text in the lab instructions instructing students that they can, and are expected to, click on the other files to edit them
selecting by default the file that is more of interest to completing the lab (e.g., the body instead of the spec)
adding some kind of mouse-over effect to the tabs

Hey @brgaeke,
You're right: it's not obvious that those are clickable tabs. We will work on improving the layout. Thanks for the suggestions!

Design of the source-code tabs of the widget was improved (#1114).
Instructions about source-code tabs were added to the labs (#1115).


How to save screenshot without show()?

load the mesh file
color each face
save the rendered image(there's no need to show)

I don't know how to implement the above without show(), thanks~
Ref: here,

You cannot save a screenshot without rendering the scene with show(), but you can avoiding visualizing the rendering window using keyword offline: e.g.
from vtkplotter import *

vp = Plotter(axes=0, offscreen=True)

for i in [1,2,3]:
    text = Text('%03d' %i, c='white')
    vp += Sphere(c=i).x(i)
    vp += text
    vp.show()
    screenshot('test_%03d.png' %i)
    vp -= text

about coloring faces individually check here: e.g.
from vtkplotter import *

sc = load(datadir+'cow.vtk')

cols = []
for i in range(sc.NCells()):
    cols.append(i) # i-th color or (r,g,b)

sc.cellColors(cols, mode='colors')

show(sc, bg='white')


ctrl-c not responsive when incorrect PKI used

installed a network today and muffed the PKI. router would connect to the edge apis, but when it tried to connect to the control plane the PKI was invalid indicating:
[   4.769]   ERROR ziti/router/env.(*networkControllers).connectToControllerWithBackoff.func2: {endpoint=[tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:8440] error=[error connecting ctrl (tls: failed to verify certificate: x509: certificate is valid for ip-172-31-47-200, localhost, not ec2-3-18-113-172.us-east-2.compute.amazonaws.com)]} unable to connect controller
[   6.612]   ERROR ziti/router/env.(*networkControllers).connectToControllerWithBackoff.func2: {endpoint=[tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:8440] error=[error connecting ctrl (tls: failed to verify certificate: x509: certificate is valid for ip-172-31-47-200, localhost, not ec2-3-18-113-172.us-east-2.compute.amazonaws.com)]} unable to connect controller

all attempts to stop the process using ctrl-c without a kill failed. the process needed to be externally stopped
It also appears to have processed the ctrl-c. additional logs:
ocalhost, not ec2-3-18-113-172.us-east-2.compute.amazonaws.com)]} unable to connect controller
[   2.888]   ERROR ziti/router/env.(*networkControllers).connectToControllerWithBackoff.func2: {endpoint=[tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:8440] error=[error connecting ctrl (tls: failed to verify certificate: x509: certificate is valid for ip-172-31-47-200, localhost, not ec2-3-18-113-172.us-east-2.compute.amazonaws.com)]} unable to connect controller
[   3.703]    INFO ziti/ziti/router.waitForShutdown: shutting down ziti router
[   3.703]    INFO ziti/router/link.(*linkRegistryImpl).Shutdown: {linkCount=[0]} shutdown links in link registry
[   3.703] WARNING ziti/router/forwarder.(*Scanner).run: exited
[   3.703]    INFO transport/v2/tls.(*sharedListener).runAccept [tls:<IP_ADDRESS>:3022]: {error=[accept tcp [::]:3022: use of closed network connection]} listener closed, exiting
[   3.703]    INFO transport/v2/tls.(*sharedListener).runAccept [tls:<IP_ADDRESS>:3022]: exited
[   3.703]   ERROR agent.(*handler).listen: {error=[accept unix C:\Users\clint\AppData\Local\Temp/gops-agent.37076.sock: use of closed network connection]} error accepting gops connection, closing gops listener
[   3.703]   ERROR agent.(*handler).listen.func1: {error=[close unix C:\Users\clint\AppData\Local\Temp/gops-agent.37076.sock: use of closed network connection]} error closing gops listener
[   3.703]   ERROR ziti/router/forwarder.(*Faulter).run: exited
[   3.703]   ERROR ziti/router/xgress_edge.(*Acceptor).Run: error accepting (closed)
[   3.703] WARNING ziti/router/xgress_edge.(*Acceptor).Run: exiting
[   4.769]   ERROR ziti/router/env.(*networkControllers).connectToControllerWithBackoff.func2: {endpoint=[tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:8440] error=[error connecting ctrl (tls: failed to verify certificate: x509: certificate is valid for ip-172-31-47-200, localhost, not ec2-3-18-113-172.us-east-2.compute.amazonaws.com)]} unable to connect controller
[   6.612]   ERROR ziti/router/env.(*networkControllers).connectToControllerWithBackoff.func2: {endpoint=[tls:ec2-3-18-113-172.us-east-2.compute.amazonaws.com:8440] error=[error connecting ctrl (tls: failed to verify certificate: x509: certificate is valid for ip-172-31-47-200, localhost, not ec2-3-18-113-172.us-east-2.compute.amazonaws.com)]} unable to connect controller

The has been bothering me for a long time. I tried using expressInstall , Docker, and other methods to install the platform, but when I start the router, the PKI certification just keeps failing, as shown in the log messages mentioned above.

Hi @Jameshclai, we try to offer support via discourse over at https://openziti.discourse.group/. Would you mind posting an issue there? It's easier for us to provide help for situations like this. The only problems I've seen with the PKI similar to the above is when I tried to manually generate it using openssl.
If you're getting problems starting the router, would you post the logs over on discourse and let's have a conversation there?
thx


Unable to track on server but able to on local machine

I'm trying to set up Matomo for page view tracking. I have the Matomo URL, site ID, and token set and the tracker enabled in your plugin. However, Matomo only registers any activity (e.g. views) when I test it on my local machine and not when someone hits my website on the server. I have verified that the MatomoTracker.php file is accessible on the server such that
require_once $path;
MatomoTracker::$URL = 'http://matomo.my_domain.com/';

can be run without issue.
If it makes a difference, my Matomo installation and my website share a server.
Thanks!

Hello @seanjkanderson, as it works in local machine, it may be a misconfiguration in your server.
From your OctoberCMS server can you access your Matomo instance with curl for example?
curl http://matomo.my_domain.com/ -I

Is there anything in OctoberCMS eventlogs?

Thanks for your reply @Adrien. The curl command returns a 200 and generally
looks okay. I'm running the site in debug mode and it's not throwing any
errors. I verified that the file path is what I expect it to be and that
the server can access it.
On Sun, Feb 21, 2021 at 7:41 PM Adrien<EMAIL_ADDRESS>wrote:

Hello @seanjkanderson https://github.com/seanjkanderson, as it works in
local machine, it may be a misconfiguration in your server.
From your OctoberCMS server can you access your Matomo instance with curl
for example?
curl http://matomo.my_domain.com/ -I
Is there anything in OctoberCMS eventlogs?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/acte-solutions/matomophptracker-plugin/issues/3#issuecomment-783054796,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI2REQ4FKBV64YOI2RZFFH3TAHG5RANCNFSM4X7N4Z5A
.

@AdrienAdB Is there another test worth doing? I double checked the OctoberCMS logs and there aren't any errors given my current configurations. Not sure if there is something in the JS that should not be there? Thank you
<head>
    <!-- Matomo -->
    <script type="text/javascript">
        var _paq = window._paq = window._paq || [];
        /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function() {
        var u="//matomo.philandersonphotography.com/";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', '1']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
        })();
    </script>
    <!-- End Matomo Code -->

</head>

This plugin is for server side tracking only. If you use the Javascript client, you don't need this plugin.
You're right, you cannot load http on https website, your browser will block it.
Best Regards.


.gitignore rule path/*.js is not respected

ag still looks inside files that are ignored in .gitignore with a rule like so:
src/*.js

/tmp/projectile-repro >>> cat .gitignore
src/*.js
/tmp/projectile-repro >>> ag testing
src/file.js
1:"testing"

I'm also seeing this behaviour. It also failing with , ie. a//*.js

Interesting debug output, here's what I'm seeing.
I have these two rules:
www/yarn-error.log www/src/**/*.map
In the debug output, I see these lines:
DEBUG: pattern www/yarn-error.log doesn't match path www/src/pages/ViewPage.js.map DEBUG: pattern www/src/**/*.map doesn't match file ViewPage.js.map
For the first pattern it is including the path part of the file, but for some reason the second one it is only reporting the filename, not including the path.
However, it should match with the path, and thus be excluded (but it is not).

Looking at ignore.c line 276, it only passes in the filename, not the full path+filename, to the regex matcher.
There looks to be a few other places where that is happening -- I'm guessing the ignore code does not work well with paths.


Include in parentselectdefs.h in install target

Required now that ts/ts.h includes it (#7467)

FYI @rob05c


[BUG] <Facing issue with xrmApp.Grid.OpenRecord(0);>

Question
We are facing issue in this method "xrmApp.Grid.OpenRecord(0);" instead of opening the first record from the grid it is opening some different record which is present on that grid.

Hi @Ajay1shetty This issue is now fixed in the https://github.com/microsoft/EasyRepro/tree/users/darent%2Fdevelop-2021ReleaseWave2Update branch. RW2 2021 Branch Can you confirm and open the issue if this is still an active issue?


Set up and test .env file

User Story:

As a developer,
I want to use my local config file to access mongodb,
So that I am working with real datasets and am able to fully test the application locally

Acceptance Criteria:

[x] If you haven't already, add a .env file to the base of your Halogen project
[x] Paste this string in - mongodb+srv://<username>:<password>@halogen-west.d2kkg.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
[x] Replace <username> and <password> with your credentials from here (if you need to generate a new password feel free to)
[x] Run the application locally
[x] Using Postman or your browser, navigate to localhost:3001/showtracker and you should see output. If you get errors, try and see if you can figure out what they are pointing you towards, then share your issues in Slack

Note:

worked for me!


IE11 Error: "Network error: Object doesn't support this action"

I'm having trouble with IE11 and can't seem to find other reports of the same error message being encountered before.
I'm using the Angular CLI and when loading in IE11 I get the following:

Angular CLI v1.6.0
Angular v5.1.0
Apollo Angular v1.0.1
Apollo Client v2.0.3

I've added just about every polyfill I can think of and nothing seems to be doing the trick. Any tips would be greatly appreciated!

Could you create a reproduction? This way I could tell more.

Shoot, I meant to update and close this. The issue was caused by another library (ironically, one that I'm the author of) and reliance on the browser's URL interface. Polyfilling that did the trick.
Thanks!


Document genre in incrimination datasets: from metaprop to RelationType.Classification

We need to replace the "genre" metaprop, with RelationType.Classification. I.e., what was metaprop "T - has - C genre - C sentence" will he "T - RelationType.Classification - C sentence".
Therefore:

I updated the "special" instruction in the relevant col. of Gug Incriminations. (This will be the same in the other Incrimination datasets.)
I introduced an instruction hooked-relation, which is now needed.

@tomaham: Explained clearly or not?

Corrected in Import batch [development] 2022-10-28 18:08:53.290879


Margin on FormGroup

https://github.com/bestguy/sveltestrap/blob/master/src/FormGroup.svelte#L14
Why does FormGroup have margin bottom by default? How to remove it? (Without overloading it with CSS)
Thanks

I would like to know as well.

This is causing an issue when floating FormGroup is used in InputGroup.
See the example in Svelte REPL. InputGroupText element is enlarged.
I think having 'mb-3' by default is not a good idea. Users can add it as they need, but in this case I could not find a way to remove it, even if I found one, it would be a hack not a solution.
Also grep search in the 'src' directory shows that, this is one of the few places 'mb' is used (another one is 'mb-4' 'Jumbotrone.svelte), so maybe it was left by accident.
So can we remove it? I can make a PR for this.


ER: Execute scripts from project root & Remove unused scripts

Update the scripts to allow for executing in the project root.
Remove scripts that are no longer part of the execution process.

/gcbrun

This is ready to be merged once the next approval comes in.

LGTM


quarkus_quickstarts_test_0 failed with jdk17

https://ci.adoptopenjdk.net/view/work-in-progress/job/grinder_sandbox_new/442/console
quarkus_quickstarts_test_0 failed with jdk17.
20:00:35  /quarkus-quickstarts
20:00:35  Compile and run quarkus_quickstarts tests
20:00:35  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 -Djava.security.egd=file:/dev/./urandom
20:00:38  [ERROR] Error executing Maven.
20:00:38  [ERROR] java.lang.IllegalStateException: Unable to load cache item
20:00:38  [ERROR] Caused by: Unable to load cache item
20:00:38  [ERROR] Caused by: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper
20:00:38  Build quarkus_quickstarts completed

Suggest an update of quarkus version first, since we take a very old release at present (we are pulling 1.3.2.Final, and the latest tag looks to be 2.7.2.Final).

I can work on this issue.

related with https://github.com/adoptium/aqa-tests/issues/3450

Same failure as https://github.com/adoptium/aqa-tests/issues/3390Looks like this mvn version doesn't work with jdk17.


How to know static members of the class

Earlier documentation used to say  whether a method is static or not,but these seems to be no longer the case.Any idea why ?
/cc @sateeshmachineni
Moved from dotnet/docs#5252

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

ID: b18f2264-6230-68d2-98d2-4c3c7210c4a7
Version Independent ID: 94faff8f-a332-cbfd-ddc4-7d2214ef7f01
Content: DriveInfo Class (System.IO)
Content Source: xml/System.IO/DriveInfo.xml
Service: .net
GitHub Login: @mairaw
Microsoft Alias: mairaw

#log-suggestion @dend

🚀 ATTENTION: Internal request logged.


Update hdm docs

closes issue #33

getting used to merges on github, only adjusted documentation for cdbd, hdddm, hdm. Confused as to why these checks have failed?

Rebased with my merged PR to dev from a couple minutes ago, which got us to 100% coverage. That check should pass now.
Went ahead and ran black and committed so the linting check passes.


Support for AlphaNumeric

Would you consider adding support for alpha numeric?

I would be happy to accept a PR for the same.


Visibility field missing from the Listing API

Hidden (doesn't display in store)
Active (displays in store)
Out of Stock (visible, but can't purchase)

I changed the copy from Hidden to Inactive @rmisio.

@cpacia and/or @tyler-smith any progress here?

Can we close @jjeffryes @cpacia @morebrownies this?


Fix to Google Analytics to send data on WeVoterRouter page changes

Added googleAnalyticsPending to avoid initializing GA multiple times at startup.

👍


Timesheet - 27/04/2021- Chrisha Canete

Task 1
Making the April 22, 2021-TNB-Core Team Payment Calculation
Proof of Work
-https://docs.google.com/spreadsheets/d/1Tltj5fFGE4l_7KCeH18N-eTCjCcQAPzaNeZH963QEI4/edit#gid=0
Time Spent
1 hour

Task 2
Paying those approve Timesheets
Proof of Work

https://docs.google.com/spreadsheets/d/1Eh8cwsmBxcBBcnoL85Vids3y0NsdtGI576Bs1xeH99I/edit#gid=0

Time Spent
.5 hour

Total Time Spent
1.5 hours
Account Number
7053f27870d388b0bca4149fe72765172c3e6d1b4ffc7cd0149a296cbefe8f57

Approved

Approved


Update to version 4.2.0

This will hopefully allow python 3.11 to build later.

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.

I am closing this since @ndevenish  already made an good attempt at updating to 4.2 in #85


Adapt testing to use the central wp-cli/wp-cli-tests package

As it is part of the wp-cli-bundle, this package should be adapted to make use of the central wp-cli/wp-cli-tests package. This will allow for its testing infrastructure to be centrally managed and kept up-to-date along with the rest of the bundle repos.

Looks like this was done with https://github.com/wp-cli/wp-config-transformer/pull/36


Remove Babel dependency

r: @gauntface

What's the reasoning behind removing Babel from WSK?

@robwierzbowski It’s not removing Babel in the sense that you can’t babel-transpile your sources anymore, but it removes it as a dependency to run the WSK2 gulpfile. We are platforming on node >= 4 so we got most of ES2015 available to us anyways – except for modules. Hence this PR, which backports to require().

Gotcha. I use ES2015 modules quite a bit, and Babel to transpile them
to common JS style. WSK was my introduction to how they work, actually.
I think having script files and the gulp file able to use the same syntax
is a big plus. What are the considerations that outweigh the educational
value and simplicity of using the complete future syntax across all files?
Speed of running tasks maybe?
On Tuesday, January 19, 2016, Surma<EMAIL_ADDRESS>wrote:

@robwierzbowski https://github.com/robwierzbowski It’s not removing
Babel in the sense that you can’t babel-transpile your sources anymore, but
it removes it as a dependency to run the WSK2 gulpfile. We are platforming
on node >= 4 so we got most of ES2015 available to us anyways – except
for modules. Hence this PR, which backports to require().
—
Reply to this email directly or view it on GitHub
https://github.com/google/web-starter-kit/pull/817#issuecomment-173007162
.

--
Rob Wierzbowski
@robwierzbowski http://twitter.com/#!/robwierzbowski
http://github.com/robwierzbowski
http://robwierzbowski.com

The reason are manifold:

As we are pursuing to (maybe) have a plugin-like infrastructure for WSK2, we want to keep the base as lightweight as possible and delay npm install the-entire-internet as long possible.
We are contemplating to load plugins dynamically which, at the current state of the loader spec, is not possible with ES2015 modules, so we’d have to fall back to require() anyways.
Neither the modules nor the modules loader spec are even remotely finalized so it feels a bit premature to rely on them in the fundaments of your build system.

I personally use ES2015 modules quite a bit but the benefits over using the CommonJS are minuscule and are outweighed by the previously mentioned drawbacks in my opinion.

While this feels like a step backwards, it does feel more familiar to node - BUT we might lose support for older versions of node with this change (i.e. Node < 4.x).
@addyosmani thoughts on this PR?

Moving forward with Node 4+ support is fine. 4 is LTS so developers should start looking into upgrading. Plus WSK is meant as a starter for new projects, which means new sets of updates should be expected.

Ok sounds like people are pro this. Will merge - plenty of opportunity to revert should we want to


[New] Style point with scene symbol

Description
This PR implements Style point with scene symbol in Scenes category.
URL to README: README
Linked Issue(s)

swift/issues/4900

How To Test

Open the sample to see the different scene symbols displayed in the scene.

Screenshots

Thanks you guys!


Enable System.Slices on CoreCLR

System.Slices cannot be used on CopreCLR. It's a multi-module assembly, and CoreCLR does not support these. I think we need to ildasm the C# part, merge it with the IL part and ILasm the combined file.

This is fixed.


feat(MOPLAT-397): Add progress bar to CMS web view

Description

This PR resolves MOPLAT-397
Feedback from QA, bring the loading bar to the top

PR Checklist

[ ] I tested my changes on iOS and Android.
[ ] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Need help with something? Have a look at our docs, or get in touch with us.

👀 looking better! can we get rid of the padding for the header so it goes full width of the screen?

@brainbicycle I am not sure what you mean, it currently is full width (although personally I feel this is not the best UI)

sorry I was going off the screenshot in the description, if it is full width great!

Sorry @brainbicycle I forgot to update the screenshot and also thought that the below was visible so you had context, but it was marked as resolved and folded! 🙈