Class instead of Inline for colors

Hey @KillerCodeMonkey - thank you so much for your hard work on this project, I love being able to use Quill in my NG projects!
I've been trying to figure out how to switch to using Class-based colors instead of Inline-colors as explained in the Quill JS documentation here under the "Class vs Inline" section: https://quilljs.com/guides/how-to-customize-quill/
I don't see how to do the import and register for the ColorClass (module? attributor? I'm not sure what it is) when using ng-quill but I want to use classes for colors rather than RGB. Reason being, I am using one code set for numerous sites with different styles/themes and I need to be able to control the colors per-site so they don't clash with the backgrounds. Allowing users to use the 35-color inline RGB picker on my sites allows them to screw things up (which they will do often) so using classes allows me fine-grained control per theme.
On a side note, I would love to see more documentation with detailed examples of how to do X or Y. Most of the time I have to resort to lengthy trial and error efforts because there are few examples out there on using ng-quill. I'd be happy to contribute if there's a place for documenting such things!
Thank you.

thanks for the question.
in general you are using and configuring quill like it is described in the documentation of quilljs.
NgQuill is only a wrapper, where you can pass your modules configuration and set some addons, like using ngModel to handle you editor values and so on.
So for you --> follow the guide here:
https://quilljs.com/guides/how-to-customize-quill/#class-vs-inline
before you create your angular app register the necessary Modules to Quill.
The part of creating the final editor instance is done by ng-quill
For a little playground, you can use the demo.html of this project and extend it.
So i will not at a full featured documentation, because everything can be done like in the quilljs-documentation. The only difference is how you create the editor instance with ng-quill + the special events.

Any questions about it? or i will close this issue

No, no more questions - I got it configured just fine. Thank you for the info!


[Win][AncestralBinding] throws COMException

Current behavior
<ListView ItemsSource="{Binding Files, Mode=OneWay}">
	<ListView.ItemTemplate>
		<DataTemplate>
			<Button IsEnabled="{utu:AncestorBinding AncestorType=ListView, Path=DataContext.IsBusy}" />

throws COMException
System.Runtime.InteropServices.COMException (0x80004005)
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Size availableSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)

---OR---
<Page ...>
	<Button IsEnabled="{custom:AncestralBinding AncestorType=Page, Path=DataContext.IsBusy}" />

throws XamlParseException
Microsoft.UI.Xaml.Markup.XamlParseException: 'The text associated with this error code could not be found.

Failed to assign to property 'Microsoft.UI.Xaml.Controls.Control.IsEnabled' because the type 'Windows.Foundation.Object' cannot be assigned to the type 'Windows.Foundation.Boolean'. [Line: 14 Position: 11]'

throws exception.
Expected behavior
^ should not throw any exception.
How to reproduce it (as minimally and precisely as possible)
Nuget Package<EMAIL_ADDRESS>Affected platform(s): Windows

In AncestorBinding::ProvideValue, we are first returning a default null value when the binding isnt ready to happen. For some dependency property, it would be illegal.


update archetypes for run criterias

fixes #2000
archetypes were not updated for run criteria on a stage or on a system set

Yup I've already fixed the exclusive system bug in the pipelined rendering branch. Planned on upstreaming but never got around to it :)
    fn run(&mut self, world: &mut World) {
        let archetypes = world.archetypes();
        let new_generation = archetypes.generation();
        let old_generation = std::mem::replace(&mut self.archetype_generation, new_generation);
        let archetype_index_range = old_generation.value()..new_generation.value();

        for archetype in archetypes.archetypes[archetype_index_range].iter() {
            self.system.new_archetype(archetype);
        }
        self.system.run((), world);
        self.system.apply_buffers(world);
    }

We should include the exclusive system fix in the same PR right?

We should include the exclusive system fix in the same PR right?

added fix and test for exclusive systems

bors r+


Correct URL syntax for SAV, correct Macon pop.

Macon pop. after consolidation: https://en.wikipedia.org/wiki/Macon,_Georgia

Thanks again


fix close button design

Hello, I just updated the design of the close icon in the hamburger transitions.
Old version :

Updated version :

Current material design version :

Let me know if there is any problem 😃

Thanks @Typhon0 for the fix 👍 , looking forward for more PRs


Fix https://github.com/mozilla/thimble.webmaker.org/issues/674 - remo…

Removes items from file tree context menu.  I disagree with removing New Folder since we have no other way to do it at the moment, and it's a highly useful feature to expose.  I was unable to remove the F2 visual keybinding.  I've done the rest.

tested and it works! r+ with travis


Is there a way to use the serialiser in parallel tasks?

First of all, thank you again for this brilliant project!
I was wondering if an object can be serialised faster if it is divided into smaller parts beforehand and serialised independently in parallel tasks. The resulting parts could then be integrated and saved in a zip archive with the info where they were positioned in the original object.
However, I have observed the following about this:
If I use a Parallel.ForEach loop, all parts are serialised at the same time, but each individual operation takes longer than if I serialise the original object once.
If I serialise the result parts sequentially, it also takes much longer than serialising only the original object.
Measured average Results on my Machine with the Settings in my Example:
normal = 1356 ms
extraced = 5813 ms
parallel = 3061 ms
I am now very confused by these results and would like to know if the serialiser internally has any optimisations that override these ideas.
In the following i provided my testclasses.

`
using ExtendedXmlSerializer.Configuration;
using ExtendedXmlSerializer.ContentModel.Conversion;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
namespace ExtendedXmlSerializer.Tests.Performance
{
public static class ParallelPerformance
{
public static int SEED = 65465;
public static int GUIDMINCOUNT = 10;
public static int GUIDMAXCOUNT = 30;

public static int ITEMMINCOUNT = 2;
public static int ITEMMAXCOUNT = 5;

public static int ITEMRESULTMINCOUNT = 3;
public static int ITEMRESULTMAXCOUNT = 5;

public static int LINEMINCOUNT = 10;
public static int LINEMAXCOUNT = 80;
public static int LINEITEMRESULTMINCOUNT = 5;
public static int LINEITEMRESULTMAXCOUNT = 10;

public static int SEGMENTMINCOUNT = 5;
public static int SEGMENTMAXCOUNT = 50;
public static double POINTRANGE = 1000;
public static int CONTENTRANGE = 425;

public static void Run()
{
  Random r = new Random(65465);
  Project project = new Project();

  //Build some complex Object graph with many items
  for (int i = 0; i < 2; i++)
  {
    project.Structure.Add(new Grouping.Group(r));
  }

  IConfigurationContainer config = new ConfigurationContainer();

  //Add a special converter
  config.Type<List<Guid>>().Register().Converter().Using(new XmlGuidListConverter());
  var serializer = config.Create();

  List<double> measuredTimes = new List<double>();
  List<double> measuredExtractedTimes = new List<double>();
  List<double> measuredParallelTimes = new List<double>();
  var runs = 3; //Multiple runs for average time

  //normal run with serializing the whole project
  for (var index = 0; index <= runs; index++)
  {
    Stopwatch watch = new Stopwatch();
    watch.Start();

    var projectOutput = serializer.Serialize(new XmlWriterSettings() { Indent = true }, project);

    watch.Stop();
    var time = watch.Elapsed.TotalMilliseconds;
    Debug.WriteLine($"{time} ms: Sequential {index}");
    measuredTimes.Add(time);
  }

  //Extract Items (in a real world scenario a mapping to the original position of each time is needed)
  List<object> itemsToSerialize = new List<object>();
  itemsToSerialize.Add(project);
  foreach (var group in project.Structure)
  {
    while (group.Children.Count > 0)
    {
      var item = group.Children[0];
      itemsToSerialize.Add(item);
      group.Children.Remove(item);
    }
  }

  //Serialize extracted Items in sequence
  for (var index = 0; index <= runs; index++)
  {
    Stopwatch watch = new Stopwatch();
    watch.Start();

    foreach (var item in itemsToSerialize)
    {
      var projectOutput = serializer.Serialize(new XmlWriterSettings() { Indent = true }, item);
    }

    watch.Stop();
    var time = watch.Elapsed.TotalMilliseconds;
    Debug.WriteLine($"{time} ms: Extracted {index}");
    measuredExtractedTimes.Add(time);

  }

  //Serialize extracted Items in parallel
  ParallelOptions options = new ParallelOptions() { MaxDegreeOfParallelism = 8 };
  for (var index = 0; index <= runs; index++)
  {
    Stopwatch watch = new Stopwatch();
    watch.Start();

    Parallel.ForEach(itemsToSerialize, options, item =>
    {
      var projectOutput = serializer.Serialize(new XmlWriterSettings() { Indent = true }, item);
    });

    watch.Stop();

    var time = watch.Elapsed.TotalMilliseconds;
    Debug.WriteLine($"{time} ms: Parallel {index}");
    measuredParallelTimes.Add(time);
  }
  double normal = measuredTimes.Average();
  double extracted = measuredExtractedTimes.Average();
  double parallel = measuredParallelTimes.Average();

}

}
public class XmlGuidListConverter : IConverter<List>
{
public bool IsSatisfiedBy(TypeInfo parameter)
{
return typeof(List).GetTypeInfo().IsAssignableFrom(parameter);
}
public List<Guid> Parse(string data)
{
  string[] items = data.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
  List<Guid> result = items.Select(item => Guid.Parse(item)).ToList();
  return result;
}

public string Format(List<Guid> instance)
{
  var items = instance.Select(item => item.ToString()).ToArray();
  var result = string.Join(" ", items);
  return result;
}

}
class Project
{
public Project()
{
Name = "This is a great Project";
}
public string Name { get; set; }
public List<Grouping.Group> Structure { get; set; } = new List<Grouping.Group>();

}
namespace Grouping
{
class Group
{
public Group() { }
  public Group(Random r)
  {
    int count = r.Next(ParallelPerformance.ITEMMINCOUNT, ParallelPerformance.ITEMMAXCOUNT);
    for (int i = 0; i < count; i++)
    {
      Children.Add(new ItemSpecifics.Item(r));
    }
  }

  public List<ItemSpecifics.Item> Children { get; set; } = new List<ItemSpecifics.Item>();

}

}
namespace ItemSpecifics
{
class Item
{
public Item() { }
  public Item(Random r)
  {
    Id = Guid.NewGuid();
    ContentA = new LargeContent(r);
    ContentB = new LargeContent(r);

    int count = r.Next(ParallelPerformance.ITEMRESULTMINCOUNT, ParallelPerformance.ITEMRESULTMAXCOUNT);
    for (int i = 0; i < count; i++)
    {
      Results.Add(new OtherContent.ItemResult(r));
    }
  }

  public Guid Id { get; set; }

  public LargeContent ContentA { get; set; }

  public LargeContent ContentB { get; set; }

  public List<OtherContent.ItemResult> Results { get; set; } = new List<OtherContent.ItemResult>();

}

class LargeContent
{
  public LargeContent() { }

  public LargeContent(Random r)
  {
    int count = r.Next(ParallelPerformance.LINEMINCOUNT, ParallelPerformance.LINEMAXCOUNT);
    for (int i = 0; i < count; i++)
    {
      Lines.Add(new LineMathematics.Line(r));
    }
  }

  public List<LineMathematics.Line> Lines { get; set; } = new List<LineMathematics.Line>();

}

}
namespace OtherContent
{
class ItemResult
{
public ItemResult() { }
  public ItemResult(Random r)
  {
    A = r.Next(-ParallelPerformance.CONTENTRANGE, ParallelPerformance.CONTENTRANGE);
    B = r.Next(-ParallelPerformance.CONTENTRANGE, ParallelPerformance.CONTENTRANGE);
    C = r.Next(-ParallelPerformance.CONTENTRANGE, ParallelPerformance.CONTENTRANGE);
    A1 = r.NextDouble();
    B1 = r.NextDouble();
    C1 = r.NextDouble();

    int guidCount = r.Next(ParallelPerformance.GUIDMINCOUNT, ParallelPerformance.GUIDMAXCOUNT);
    for (int i = 0; i < guidCount; i++)
    {
      Guids.Add(Guid.NewGuid());
    }

    int count = r.Next(ParallelPerformance.LINEITEMRESULTMINCOUNT, ParallelPerformance.LINEITEMRESULTMAXCOUNT);
    for (int i = 0; i < count; i++)
    {
      Lines.Add(new LineMathematics.Line(r));
    }

  }

  public int A { get; set; }
  public int B { get; set; }
  public int C { get; set; }

  public double A1 { get; set; }
  public double B1 { get; set; }
  public double C1 { get; set; }

  public List<Guid> Guids { get; set; } = new List<Guid>();

  public List<LineMathematics.Line> Lines { get; set; } = new List<LineMathematics.Line>();

}

}
namespace LineMathematics
{
class Line
{
public Line() { }
  public Line(Random r)
  {
    Id = Guid.NewGuid();

    int count = r.Next(ParallelPerformance.SEGMENTMINCOUNT, ParallelPerformance.SEGMENTMAXCOUNT);
    for (int i = 0; i < count; i++)
    {
      Segments.Add(new Segment(r));
    }
  }

  static byte[] WriteSegmentList(List<Segment> segments)
  {
    MemoryStream memory = new MemoryStream();
    BinaryWriter writer = new BinaryWriter(memory);

    writer.Write(segments.Count);
    foreach (var lineSegment in segments)
    {
      lineSegment.Write(writer);
    }

    return memory.ToArray();
  }

  static List<Segment> ParseLinesList(byte[] data)
  {
    MemoryStream memory = new MemoryStream(data);
    BinaryReader reader = new BinaryReader(memory);
    var count = reader.ReadInt32();
    if (count == 0)
      return new List<Segment>();

    List<Segment> returnList = new List<Segment>();

    for (var i = 1; i <= count - 1; i++)
    {
      Segment loadedSegment = new Segment();
      loadedSegment.Read(reader);
    }

    return returnList;
  }

  public Guid Id { get; set; }

  [XmlIgnore]
  public List<Segment> Segments { get; set; } = new List<Segment>();

  /// <summary>
  /// Test performance with Byte Arrays in parts of the Project
  /// </summary>
  public byte[] SegmentsBinary
  {
    get
    {
      return WriteSegmentList(Segments);
    }
    set
    {
      Segments = ParseLinesList(value);
    }
  }
}

class Segment
{
  public Segment() { }

  public Segment(int i, Point3 s, Point3 e)
  {
    Index = i;
    Start = s;
    End = e;
  }

  public Segment(Random r)
  {
    Index = r.Next();
    Start = new Point3(r);
    End = new Point3(r);
  }

  public void Write(BinaryWriter writer)
  {
    writer.Write(Index);
    Start.Write(writer);
    End.Write(writer);
  }

  public void Read(BinaryReader reader)
  {
    Index = reader.ReadInt32();
    Start = new Point3();
    Start.Read(reader);
    End = new Point3();
    End.Read(reader);
  }

  public int Index { get; set; }
  public Point3 Start { get; set; }
  public Point3 End { get; set; }

}

struct Point3
{
  public Point3(Random r)
  {
    double halfRange = ParallelPerformance.POINTRANGE / 2;
    X = r.NextDouble() * ParallelPerformance.POINTRANGE - halfRange;
    Y = r.NextDouble() * ParallelPerformance.POINTRANGE - halfRange;
    Z = r.NextDouble() * ParallelPerformance.POINTRANGE - halfRange;
  }

  public void Write(BinaryWriter writer)
  {
    writer.Write(X);
    writer.Write(Y);
    writer.Write(Z);
  }

  public void Read(BinaryReader reader)
  {
    X = reader.ReadDouble();
    Y = reader.ReadDouble();
    Z = reader.ReadDouble();
  }

  public double X { get; set; }
  public double Y { get; set; }
  public double Z { get; set; }
}

}
}
`

WOW @imperiobadgo thank you for the kind words and for the interesting question here.  From the outset, there isn't anything obvious that I can think of specifically about the ExtendedXmlSerializer that would impact the results you are seeing.  Except that perhaps we have never really considered this scenario. :)
Have you tried the same thing with other serializers, by chance?  I would be interested in seeing how they fare.  As for Parallel namespace, from what I have read my impression that the gains that are achieved are really for specific scenarios, and sometimes the "gains" are not as much as hoped for, sort of what you are experiencing, actually. 😁
To be a bit clearer, this is not a supported scenario but it's an interesting one.  When we started doing v2 async/await was all the rage.  We should have probably put more effort into supporting it but alas we were only able to get synchronous functionality in there.
Please do let me know if you have any additional/further questions around this and I will see if I can assist you. 👍

Thank's for the answer.
Is the assumption correct that the serializer caches a lot in static variables? Because in an older version the behavior was that the first pass took longer than the following ones.

Other serializers are not really an option because they are either too rigid or slower than the ExtendedXmlSerialiser. So I've not tested them.

You're speaking all the right words here @imperiobadgo.  I'm OK with that line of reasoning. 😊
As for caching, we definitely do this, but instances are not statically stored.  They are rather stored per-ConfigurationContainer.  We may use "static" caching but instances/values are stored in ConditionalWeakTable so they get GC'd and released if no other instance is holding onto them.

What exactly is being cashed? Object types or the actual objects?
I made another observation: In version 3.2.5 there was a huge runtime difference between the first and subsequent runs. Can you tell me what exactly changed after that and why? I found the following change, but I can't really understand the difference: #437
In this version, i found out that the runtime with parallel tasks was also very good (twice as fast) after the first run.

What exactly is being cashed? Object types or the actual objects?

Both. :)  We use TypeInfo and other MemberInfo instances as the caching key for various parts of the serialization/deserialization services.  We do not hold onto instances unless references are enabled, and in that case, we store via a dictionary that is weak-referenced to the IFormatReader being sent through the graph.  So, once that IFormatReader is released, so are all the instances.  Or at least should be. 😇
That's interesting about #437.  It was used to fix #434 but that was only when EnableReferences are used.  Are you using this in the tests that you mention with better performance?  The tests provided above do not seem to be using this, so I am unclear on why that would cause a performance difference unless that method is being used somewhere.

You're right, i'm not using EnableReferences. But it still makes a big difference. If I change the References class to the old status, I also get the following results with 4 runs each:
1774,3246 ms: Sequential 0
33,9535 ms: Sequential 1
26,7884 ms: Sequential 2
31,4104 ms: Sequential 3
13727,9436 ms: Extracted 0
43,861 ms: Extracted 1
43,8958 ms: Extracted 2
37,4565 ms: Extracted 3
7398,1325 ms: Parallel 0
18,1082 ms: Parallel 1
25,9608 ms: Parallel 2
29,7209 ms: Parallel 3
Changed References class:
using ExtendedXmlSerializer.ContentModel.Members;
using ExtendedXmlSerializer.Core.Sources;
using ExtendedXmlSerializer.Core.Specifications;
using ExtendedXmlSerializer.ExtensionModel.Xml;
using ExtendedXmlSerializer.ReflectionModel;
using System.Collections.Immutable;
using System.Reflection;

namespace ExtendedXmlSerializer.ExtensionModel.References
{
	sealed class References : StructureCacheBase<object, ImmutableArray<object>>, IReferences
	{
		readonly ISpecification<TypeInfo> _allow;
		readonly IReferencesPolicy        _policy;
		readonly ITypeMembers             _members;
		readonly IEnumeratorStore         _enumerators;
		readonly IMemberAccessors         _accessors;

		// ReSharper disable once TooManyDependencies
		public References(IContainsCustomSerialization custom, IReferencesPolicy policy, ITypeMembers members,
		                  IEnumeratorStore enumerators, IMemberAccessors accessors)
			: this(AssignedSpecification<TypeInfo>.Default.And(custom.Inverse()), policy, members, enumerators,
			       accessors) {}

		// ReSharper disable once TooManyDependencies
		public References(ISpecification<TypeInfo> allow, IReferencesPolicy policy, ITypeMembers members,
		                  IEnumeratorStore enumerators, IMemberAccessors accessors)
		{
			_allow       = allow;
			_policy      = policy;
			_members     = members;
			_enumerators = enumerators;
			_accessors   = accessors;
		}

		//public ImmutableArray<object> Get(object parameter)
		//	=> new ReferenceWalker(_allow, _policy, _members, _enumerators, _accessors, parameter).Get();

		protected override ImmutableArray<object> Create(object parameter)
		{
			return new ReferenceWalker(_allow, _policy, _members, _enumerators, _accessors, parameter).Get();
		}

	}
}

AH!  OK correct... brushing off the dust here. :)
References are applied in the case of types that could have recursive references, which have to be checked hence the performance hit as the objects are not cached.
Try applying sealed to all of your classes in the test above and you will see better performance as those classes are eliminated as potential candidates.
Outside of that, I am open to suggestions on how we could improve this while still keeping tests passing.  PR is most definitely welcomed if so. 👍

We could possibly add a ConfigurationContainer.ElideReferenceChecking() (or ConfigurationContainer.WithoutReferenceChecking()) which could bypass the reference checking altogether, but this would be dangerous and incompatible with EnableReferences.  There is no extension compatibility checking so users would have to read the documentation of this new method and pray they understand the implications.

 If I convert the classes into sealed classes, I get perfect performance results! 😊
291,6189 ms: Sequential 0
35,8574 ms: Sequential 1
39,2728 ms: Sequential 2
38,282 ms: Sequential 3
31,7169 ms: Extracted 0
34,7519 ms: Extracted 1
51,6593 ms: Extracted 2
55,7814 ms: Extracted 3
90,0111 ms: Parallel 0
54,7511 ms: Parallel 1
18,4012 ms: Parallel 2
27,2295 ms: Parallel 3

ConfigurationContainer.WithoutReferenceChecking()) which could bypass the reference checking altogether, but this would be dangerous and incompatible with EnableReferences. There is no extension compatibility checking so users would have to read the documentation of this new method and pray they understand the implications.

Would be perfect for me, but I agree with you that there should still be some kind of traceable messages in case of wrong use. 😄

Alright, I will see if I can get this in there.  I'll be lazy and point to this issue for the documentation. :P
We'll go with WithoutReferenceChecking.

Alrighty, renamed to EnableStaticReferenceChecking and have a sample of how to use it here:
https://github.com/ExtendedXmlSerializer/home/blob/fdae88ba69d4fdc09882aa8156bcc4003ccdec57/test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue511Tests.cs#L10-L16
A build has been deployed for you to test out here:
https://github.com/ExtendedXmlSerializer/home/pull/512#issuecomment-805619787
If that works well for you we can get it deployed out to NuGet next Tuesday, our typical deployment window.

Thank you very much for this great support!!!
I will test it and then report back with the results.

When I was testing, I very regularly had several threads trying to access the hash set in RecursionAwareContents at the same time:
at System.Collections.Generic.HashSet1.SetCapacity(Int32 newSize, Boolean forceNewHashCodes)    at System.Collections.Generic.HashSet1.IncreaseCapacity()
at System.Collections.Generic.HashSet1.AddIfNotPresent(T value)    at System.Collections.Generic.HashSet1.Add(T item)
at ExtendedXmlSerializer.ContentModel.Content.RecursionAwareContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Types.NullableStructureAwareExtension.NullableStructureAwareContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.CustomSerializationExtension.Contents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.MigrationsExtension.Contents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.Core.Sources.Cache2.Create(TKey parameter)    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)    at ExtendedXmlSerializer.Core.Sources.CacheBase2.Get(TKey key)
at ExtendedXmlSerializer.ExtensionModel.References.DeferredContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ContentModel.Content.Serializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.References.ReferenceAwareSerializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ContentModel.Content.DynamicAwareSerializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.Core.Sources.Cache2.Create(TKey parameter)    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)    at ExtendedXmlSerializer.Core.Sources.CacheBase2.Get(TKey key)
at ExtendedXmlSerializer.ContentModel.RuntimeSerializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ContentModel.Collections.Collections.Get(TypeInfo parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.ContentModel.Content.RecursionAwareContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Types.NullableStructureAwareExtension.NullableStructureAwareContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.CustomSerializationExtension.Contents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.MigrationsExtension.Contents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.Core.Sources.Cache2.Create(TKey parameter)    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)    at ExtendedXmlSerializer.Core.Sources.CacheBase2.Get(TKey key)
at ExtendedXmlSerializer.ExtensionModel.References.DeferredContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ContentModel.Members.VariableTypeMemberContents.Get(IMember parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.DecoratedSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.DecoratedSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.ExtensionModel.Content.Members.AlteredMemberContents.Get(IMember parameter)
at ExtendedXmlSerializer.ContentModel.Members.MemberSerializers.Content(IMember profile, IMemberAccess access)
at ExtendedXmlSerializer.ContentModel.Members.MemberSerializers.Get(IMember parameter)
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()    at System.Linq.Buffer1..ctor(IEnumerable1 source)    at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at ExtendedXmlSerializer.ContentModel.Members.MemberSerializations.Create(TypeInfo parameter)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at ExtendedXmlSerializer.Core.Sources.CacheBase2.Get(TKey key)    at ExtendedXmlSerializer.ContentModel.Members.InstanceMemberSerializations.Get(TypeInfo parameter)    at ExtendedXmlSerializer.ContentModel.Members.MemberedContents.Get(TypeInfo parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)    at ExtendedXmlSerializer.Core.Sources.ConditionalSource2.Get(TParameter parameter)
at ExtendedXmlSerializer.ContentModel.Content.RecursionAwareContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Types.NullableStructureAwareExtension.NullableStructureAwareContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.CustomSerializationExtension.Contents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.MigrationsExtension.Contents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.Core.Sources.Cache2.Create(TKey parameter)    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)    at ExtendedXmlSerializer.Core.Sources.CacheBase2.Get(TKey key)
at ExtendedXmlSerializer.ExtensionModel.References.DeferredContents.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ContentModel.Content.Serializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ExtensionModel.References.ReferenceAwareSerializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.ContentModel.Content.DynamicAwareSerializers.Get(TypeInfo parameter)
at ExtendedXmlSerializer.Core.Sources.Cache2.Create(TKey parameter)    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)    at ExtendedXmlSerializer.Core.Sources.CacheBase2.Get(TKey key)
at ExtendedXmlSerializer.ExtensionModel.Xml.Write.Execute(Writing parameter)
at ExtendedXmlSerializer.ExtensionModel.Xml.Serializer.Serialize(XmlWriter writer, Object instance)
at ExtendedXmlSerializer.ExtensionModel.Xml.ExtendedXmlSerializer.Serialize(XmlWriter writer, Object instance)
at ExtendedXmlSerializer.ExtensionModel.Xml.InstanceFormatter.Get(Object parameter)
at ExtendedXmlSerializer.ExtensionMethodsForSerialization.Serialize(IExtendedXmlSerializer this, XmlWriterSettings settings, Object instance)
at System.Threading.Tasks.Parallel.<>c__DisplayClass31_02.<ForEachWorker>b__0(Int32 i)    at System.Threading.Tasks.Parallel.<>c__DisplayClass17_01.b__1()

I would suggest this following change:
using System.Collections.Generic;
using System.Reflection;

namespace ExtendedXmlSerializer.ContentModel.Content
{
	sealed class RecursionAwareContents : IContents
	{
    private object _lockObject;
    readonly IContents _contents;
    readonly ISet<TypeInfo> _types;

    public RecursionAwareContents(IContents contents) : this(contents, new HashSet<TypeInfo>()) { }

    public RecursionAwareContents(IContents contents, ISet<TypeInfo> types)
    {
      _lockObject = new object();
      _contents = contents;
      _types = types;
    }

    public ISerializer Get(TypeInfo parameter)
    {
      ISerializer result = null;
      lock (_lockObject)
      {
        result = _types.Add(parameter)
                     ? _contents.Get(parameter)
                     : new DeferredSerializer(_contents.Build(parameter));
        _types.Remove(parameter);
      }
      return result;
    }
  }
}

Could you make the change in the preview so that I can test whether this no longer occurs in my software?
It is quite difficult to provoke this error with the test classes, although I have managed to do this a few times. But this error occurs very regularly in my software...

Yeah that's a good point, we do have the new ConfigurationContainer().EnableThreadProtection() method but that locks the entire instance, so I am not sure of the benefit in a Parallel scenario.  Currently we have no lock usages due to performance considerations.  However, we might be able to configure the ISet<TypeInfo> used.  Let me look into that.

Yeah that's a good point, we do have the new ConfigurationContainer().EnableThreadProtection() method but that locks the entire instance, so I am not sure of the benefit in a Parallel scenario.

I have also observed this. How often are hashsets used otherwise?

I have also observed this. How often are hashsets used otherwise?

Good question.  I believe that is the only place we're storing state like that.  I'd rather find a way not to do that as well as I am not a fan of it.
Regardless, I've added a new call EnableThreadAwareRecursionContent which you can see demonstrated here:
https://github.com/ExtendedXmlSerializer/home/blob/f7a61b878322146ab4b393676a4070cf53ccadf6/test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue513Tests.cs#L10-L16
The build is here for your review:
https://github.com/ExtendedXmlSerializer/home/pull/514#issuecomment-806059716
Interestingly enough, I just today ran into this very problem with my own project, so I'm doing both of us a favor here. 😅

Thanks, I'll test it right away! 😅

It just seems to work perfectly! Do you have a link for the design pattern, like the structure of the ExtendedXmlSerializer? I would be very interested to finally understand the processes in the background of the serialiser.

It just seems to work perfectly!

Very glad to hear this. 😁

Do you have a link for the design pattern, like the structure of the ExtendedXmlSerializer?

Oh man, not really.  I mean, there is one pattern I use extensively in all my development, and that is the decorator pattern.  FWIW, before I joined in with ExtendedXmlSerializer v2, I was working on a framework that had a lot of these key concepts, then I pared it down tremendously for ExtendedXmlSerializer (sorta like a mini-framework).  But, there were so many additions/changes that I incorporated them back into my framework.  The results you can see here, if interested:
https://github.com/DragonSpark/Framework
With the active branch being here (the product I mentioned earlier):
https://github.com/DragonSpark/Framework/tree/projects/Starbeam
I am still very much decorator pattern all the way.  I would say easily 90% if not more of my code is decorator.  It really allows you to do so much by way of manageable design and keeping the chaos in front of you.  In fact I used it all for the EnableThreadAwareRecursionContent solution if you want to poke around.
It's basically taking a core solution and then wrapping another around it that modifies it in some way.  Case in point:
https://github.com/ExtendedXmlSerializer/home/blob/f7a61b878322146ab4b393676a4070cf53ccadf6/src/ExtendedXmlSerializer/ExtensionModel/ThreadAwareRecursionContentExtension.cs#L28-L41
:)

Thank's again for your help! I will take a look at the links.

Alrighty, this has been posted to the main package on NuGet:
https://www.nuget.org/packages/ExtendedXmlSerializer/
Appreciate the efforts here to look into performance.  True story: when we first started it was a core focus, but then I got really caught up in performance anomalies that turned out to be JIT loop alignment issues.  It drove me absolutely crazy and actually almost burned me out.  Totally crazy stuff.  Basically one run would report a particular result, and then simply changing an attribute or line of code that had nothing to do with the system under test would produce a result 10-15% difference.  It ended me up in the boiler room of .NET engineering:
https://github.com/dotnet/runtime/issues/4584#issuecomment-392554011
I was ready to pull my freaking hair out.  Or remove my head altogether. :P  After that (it was like a 3 week ordeal) I reluctantly decided to not put so much focus on performance.
Good news is that they are finally looking into the jitness:
https://devblogs.microsoft.com/dotnet/loop-alignment-in-net-6/
Anyways, this issue has been addressed.  Please do let me know of any further problems you run into and I will see if I can address them.  Closing for now.


Token types aren't getting mapped

Bug report
Describe the bug
When using color tokens, the mapping function seems to leave out the colors- portion of the string, though perhaps I'm reading the documentation incorrectly.
To Reproduce

Use a color token in stitches.config:

export const { styled } = createCss({
  theme: {
    colors: {
      brand: 'purple',
    },
  },
})

Use the styled function in a component. Observe that the color is not applied:

const StyledButton = styled('button', {
  backgroundColor: '$brand',
})

const Button = () => <StyledButton>Hello World</StyledButton>

Update the token reference by appending colors-. Observe that now the color is applied:

const StyledButton = styled('button', {
  backgroundColor: '$colors-brand',
})

const Button = () => <StyledButton>Hello World</StyledButton>

Expected behavior
Given the documentation on this page, I would expect that $brand would apply the purple background to the button.
Screenshots
Not applicable
System information

OS: Mac
Browser: Chrome
Version of Stitches: 0.1.9
Version of Node.js: v14.8.0

Additional context
What makes me think this is a stitches issue rather than an implementation error is that I can see that the css variable in the browser console is --colors-brand: purple;. So either (a) I shouldn't be nested brand underneath the colors field in the theme config, or colors- should be getting applied to the styles under the hood.

Hi, I created a codesandbox and I'm unable to reproduce the issue: https://codesandbox.io/s/zealous-ptolemy-2qv7r?file=/src/App.tsx
Can you make edits to the sandbox to reproduce?


Support nikic/php-parser 4.1

Hello, i would like to use this library, but i can't because i have a dependency with nikic/php-parser v4.1.
Is it possibile to upgrade this? https://github.com/hanneskod/classtools/blob/master/composer.json#L21

Error
composer.json
"require": {
    "hanneskod/classtools": "^1.0",
    "nikic/php-parser": "^4.1"
},

result:
Problem 1
    - hanneskod/classtools 1.1.3 requires nikic/php-parser ^3 -> satisfiable by nikic/php-parser[3.x-dev, v3.0.0, v3.0.0alpha1, v3.0.0beta1, v3.0.0beta2, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5] but these conflict with your requirements or minimum-stability.
    - hanneskod/classtools 1.1.2 requires nikic/php-parser ^3.0 -> satisfiable by nikic/php-parser[3.x-dev, v3.0.0, v3.0.0alpha1, v3.0.0beta1, v3.0.0beta2, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5] but these conflict with your requirements or minimum-stability.
    - hanneskod/classtools 1.1.1 requires nikic/php-parser ~2.0 -> satisfiable by nikic/php-parser[2.x-dev, v2.0.0, v2.0.0alpha1, v2.0.0beta1, v2.0.1, v2.1.0, v2.1.1] but these conflict with your requirements or minimum-stability.
    - hanneskod/classtools 1.1.0 requires nikic/php-parser ~2.0 -> satisfiable by nikic/php-parser[2.x-dev, v2.0.0, v2.0.0alpha1, v2.0.0beta1, v2.0.1, v2.1.0, v2.1.1] but these conflict with your requirements or minimum-stability.
    - hanneskod/classtools 1.0.1 requires nikic/php-parser ~2.0 -> satisfiable by nikic/php-parser[2.x-dev, v2.0.0, v2.0.0alpha1, v2.0.0beta1, v2.0.1, v2.1.0, v2.1.1] but these conflict with your requirements or minimum-stability.
    - hanneskod/classtools 1.0.0 requires nikic/php-parser ~1.0 -> satisfiable by nikic/php-parser[1.x-dev, v1.0.0, v1.0.0beta1, v1.0.0beta2, v1.0.1, v1.0.2, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0, v1.4.0, v1.4.1] but these conflict with your requirements or minimum-stability.
    - hanneskod/classtools 1.1.3 requires nikic/php-parser ^3 -> satisfiable by nikic/php-parser[3.x-dev, v3.0.0, v3.0.0alpha1, v3.0.0beta1, v3.0.0beta2, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5] but these conflict with your requirements or minimum-stability.
    - Installation request for hanneskod/classtools ^1.0 -> satisfiable by hanneskod/classtools[1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.1.3].

Yup. Thanx for reporting. This should be fixable. I’ll get to it as fast as I can.

Same issue preventing kirkbushell/eloquence package installing via indirect dependencies.
Appreciate your help.

Try version 1.2.0.


[service] check for error returned by impl

otherwise, we mark it as started when it is not in fact

I agree with this but I wonder if @jaekwon had a reason for returning true, err

jae:
I want the caller to know that OnStart was called.

[12:52]
Ok, I guess the pull request works.

[12:54]
But it violates the first comment of the file.

[12:55]
Now OnStart can be called many times if it fails.  So that comment needs to be changed, and we have to see if there might be any reason why this new behavior might break something.  I'm not sure.

[12:56]
I can't think of any reason why it would break anything off the top of my head.... but I would scan the code for .Start () to see.

but I would scan the code for .Start () to see.

scanned both tendermint and basecoin. found no usages of the first return value (started flag)
all usages so far: _, err := smth.Start()


Fix http post actor delay.

apparently my page was stale, I can see now that you already merged it 😅


Is it possible to set multi validate webhook on multi path?

Is it possible to set multi validate webhook on multi path on one server?
if done, i can deploy multi webhook in k8s which will run in parallel to achieve better performance

wrap after whhttp.MustHandlerFor(wh)


Link ‘ Now head on to the Docs ’ is broken

On  http://alm.tools/ Link   Now head on to the Docs http://alm.tools/alm-tools_subdomain/-gitbooks-io/alm/content/ is broken
404 Not Found
Code: NoSuchKey
Message: The specified key does not exist.
Key: alm-tools_subdomain/-gitbooks-io/alm/content/index.html
RequestId: B72961B5BAF8FA11
HostId: kqHV5gnvzxHLRldzw1dDDWZumJF5kdiUu4470cqSrg6pVQHpdRU++mF1L6gzUW9amkw/BJo8oHU=

Project is archived so I didn't update (pay) http://alm.tools/ but scammers took it 😢
Correct link is http://alm-tools.github.io/ provided for free by github :rose:


chore(deps): update dependency tslint-react-hooks to v2.2.2

This PR contains the following updates:

Package
Type
Update
Change

tslint-react-hooks
devDependencies
patch
2.2.1 -> 2.2.2

Release Notes

Gelio/tslint-react-hooks
v2.2.2
Compare Source

Maintenance

Upgrade TypeScript to 3.8.3
Upgrade TSLint to 6.x

Allow TSLint 6.x as a peerDependency
This rule can not be used with TSLint 6.x.

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

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

v3.2.2
GitHub release

Your semantic-release bot :package::rocket:


Footer logo placement fix

What is the context of this PR?
Fixes: #1039
How to review
Make sure footer logos are in correct positions.

 Issue #1039 Some footer variations not rendering correctly

 Issue #1039: Some footer variations not rendering correctly

 Issue #1039: Some footer variations not rendering correctly


.Guru Meditation Error - workaround?

Describe the bug
Error during createSelfSignedCert
".Guru Meditation Error..."
How To Reproduce
Steps to reproduce the behavior:

run the Self-Signed-Certificate - no error
run the REST-API example - Meditation error

Expected Behavior
Create self-signed certificate without errors
ESP32 Module
https://www.jacobsparts.com/static/images/WT32-ETH01_datasheet_V1.1.pdf
Software (please complete the following information if applicable)

IDE and Version:  Arduino 1.8.15
OS: Ubuntu 18.04.6 LTS

I noticed 2 requirements I did not expect:

wifi must be included (#include <WiFi.h>) even though my device uses ETH the certificate creation fails without wifi.
Cannot open a SPIFFS file prior to createSelfSignedCert in the same function.  Using a helper function stopped the Meditation error. (even closing the file didn't help)

Tweaking your examples just slightly worked for me
https://gist.github.com/LaudixGit/e44081647c130b2712ef21e2a8bbf8e0

Closing this because I am only sharing what worked for me - maybe it'll give others insight - but don't have an issue to solve.

See also:
#135
#48


[WIP][Live] New data-rerender mode for handling custom JavaScript

Q
A

Bug fix?
yes

New feature?
yes

Tickets
Fix #515, fix #490, fix #270, Bug H on #102, hopefully can include fix for #354

License
MIT

Hi!
Just the docs to start. This aims to address the biggest pain-point with live components currently: when you have add custom JavaScript to your component HTML (e.g. a date picker). If that JS modifies the markup at all (e.g. adding classes or elements), when the component re-renders, those changes are "removed" and the custom JS stops working.
This adds a very flexible model for re-rendering. However, I think the data-rerender="if(startDate)" will handle 95% of use-cases because it will:
A) Avoid re-rendering the component in most cases (e.g. similar to data-live-ignore currently
B) But if some specific LiveProp changes (e.g. startDate for a date picker), then it will do a complete re-render of that element, where the old element is completely replaced by a new one. That's important because it will re-trigger the connect() method on any Stimulus controllers on (or inside) this element, which will allow them to completely re-initialize the JavaScript.
Please let me know if you think this will fit your use-case. And if, not, please tell me why!
Cheers!

Very nice idea, i hope it gets implemented <3

Replaced by #728


tfp.bijectors.BatchNormalization ask for shape of tensor at graph construction

i am building a customized bijector with tfp.bijectors.BatchNormalization. when i construct the graph, the dimension of input tensor for forward function cannot be possibly fully defined, because of the unknown batch size. But bijector BatchNormalization keeps raising error message that input must have shape known at graph construction. The code is here. is it a bug or i am using it wrong?
call stack when error occurs

File "C:\Users\yi.xie\Documents\glow-flow\GlowStep.py", line 28, in _forward
return self.flow.forward(x);
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\ops\distributions\bijector_impl.py", line 764, in forward
return self._call_forward(x, name)
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\ops\distributions\bijector_impl.py", line 745, in _call_forward
mapping = mapping.merge(y=self._forward(x, **kwargs))
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_probability\python\bijectors\chain.py", line 263, in _forward
x = b.forward(x, **kwargs.get(b.name, {}))
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\ops\distributions\bijector_impl.py", line 764, in forward
return self._call_forward(x, name)
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\ops\distributions\bijector_impl.py", line 745, in _call_forward
mapping = mapping.merge(y=self._forward(x, **kwargs))
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_probability\python\bijectors\batch_normalization.py", line 223, in _forward
return self._de_normalize(x)
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_probability\python\bijectors\batch_normalization.py", line 214, in _de_normalize
broadcast_fn = self._get_broadcast_fn(x)
File "C:\Users\yi.xie\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_probability\python\bijectors\batch_normalization.py", line 188, in _get_broadcast_fn
raise ValueError("Input must have shape known at graph construction.")
ValueError: Input must have shape known at graph construction.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:n/a
TensorFlow installed from (source or binary):binary
TensorFlow version (use command below):1.11
Python version:3.6
Bazel version (if compiling from source):n/a
GCC/Compiler version (if compiling from source):n/a
CUDA/cuDNN version:n/a
GPU model and memory:n/a
Exact command to reproduce:n/a

can I build a graph with bijector? it seems the bijectors can't accept tensors with unknown dimensions. shall I use it only in eager execution mode?

I updated tensorflow_probability library and the problem is gone. thx

Are you satisfied with the resolution of your issue?
Yes
No


fix: make unmount not lazy

Signed-off-by: Harsh Vardhan<EMAIL_ADDRESS>

@vharsh seems this not raised against develop?
@chriswldenyer we'd like to run the test you've mentioned today against this branch

I've asked @chriswldenyer to re-run the tests against develop & this branch.

bors merge

I'll fix this test failure separately
bors merge


Env variables names

Fixes #583.
By the way, one of the fixes, in simtel_path_no_mock is not really related to this PR and I am surprised that the tests passed before this fix. It might point to an issue somewhere but I couldn't find it. Maybe @GernotMaier would know.

On simtel_path_no_mock - it seems that in at least some of the test this is not necessary and simtel_path is enough. This can be understood, e.g. ./unit_tests/corsika/test_corsika_runner.py is not running simtools, so the empty string passed for simtel_path is rightly accepted.

@orelgueta  - forgot this: could you check also the github action workflows? We are also setting environmental variables there.

On simtel_path_no_mock - it seems that in at least some of the test this is not necessary and simtel_path is enough. This can be understood, e.g. ./unit_tests/corsika/test_corsika_runner.py is not running simtools, so the empty string passed for simtel_path is rightly accepted.

Yes but in test_ray_tracing.py we use the no_mock version so I am quite surprised that it worked thus far after changing to use dotenv. My current guess is that it worked on GitHub because it sets the env variables in a different way, but I didn't check this.

@orelgueta - forgot this: could you check also the github action workflows? We are also setting environmental variables there.

Right, I forgot about that. That hopefully will explain why the integration tests failed. Fixed now, hopefully tests will pass, in which case I will merge.

All good now; I think this is good to be merged.

Thanks for the review and the hint about the workflows!


[feature] transition the package_roles method onto the restful API

These changes adds the package_roles as results of the return of the admin.views.project restful API.
The package_roles method was available into the xmlrpc, unfortunately these informations are missing into the restful API [1].
These changes adds the creation of an equivalent into the restful API.
[1] https://github.com/pypa/warehouse/issues/9700

These changes aim to address #9700

Hello team,
I hate harassing people for getting reviews, but, at least, can we have a minimal analyse from your side just to know if this is the right thing to do to fix #9700 and get some visibility on our side.
Thanks for your understanding.

JSON API at https://warehouse.readthedocs.io/api-reference/json.html#get--pypi--project_name--json promises this.

Metadata returned comes from the values provided at upload time and does not necessarily match the content of the uploaded

And package_roles is not a part of this metadata.
I don't think it is a good idea to skew the data that goes into [packaging] -> [uploading] -> [storing] -> [accessing through API] pipelines without documenting all the transformations that may come unexpected for people. I mean https://github.com/pypa/warehouse/pull/3520 needs to be merged first to solve [packaging] -> [uploading] disability, and then a similar mapping will need to be done to decouple fields in REST API from what people have in packages and uploads.
Or, make a separate namespace that will expose PyPI admin interface for a package, allowing to assign maintainership roles etc. Right now PyPI evolution stuck between going into central command and control server and providing a more decentralized alternative. When all information including maintainers was contained in the package, the management was decentralized. When people started to need the account and configure access on the server side, the management is centralized.
Given the above, I would not just make a separate namespace in the JSON, like "pypi_rbac" or "pypi_config", but a separate endpoint like api/v2/config/<project_name>/access, which will only manage PyPI settings. Because you would likely need the API to limit role scopes, assign token, check their validity, audit logs.

Thanks for your interesting feedback


chore: Minor updates to v1beta1 handling of defaults, statusConditions, and kubelet naming

Fixes #N/A
Description
This PR performs the following changes to the v1beta1 APIs:

Does not set the consolidateAfter value by default. consolidateAfter can only be set when using consolidationPolicy: WhenEmpty and this is enforced by the validation webhook
Changes the naming of kubeletConfiguration to kubelet
Changes the NodeClaim statusConditions to remove the prefix of Node

How was this change tested?

make presubmit
Manual validation through make apply

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

98 of 103 (95.15%)  changed or added relevant lines in 22 files are covered.
5 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.04%) to 81.314%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/apis/v1beta1/nodepool_validation.go
5
6
83.33%

pkg/controllers/nodeclaim/lifecycle/launch.go
3
4
75.0%

pkg/controllers/nodeclaim/lifecycle/registration.go
5
6
83.33%

pkg/apis/v1beta1/zz_generated.deepcopy.go
7
9
77.78%

Files with Coverage Reduction
New Missed Lines
%

pkg/apis/v1beta1/nodepool_validation.go
1
85.45%

pkg/controllers/provisioning/scheduling/topology.go
2
86.49%

pkg/controllers/provisioning/scheduling/topologygroup.go
2
96.75%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
8638

Relevant Lines:
10623

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

98 of 103 (95.15%)  changed or added relevant lines in 22 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 81.352%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/apis/v1beta1/nodepool_validation.go
5
6
83.33%

pkg/controllers/nodeclaim/lifecycle/launch.go
3
4
75.0%

pkg/controllers/nodeclaim/lifecycle/registration.go
5
6
83.33%

pkg/apis/v1beta1/zz_generated.deepcopy.go
7
9
77.78%

Files with Coverage Reduction
New Missed Lines
%

pkg/apis/v1beta1/nodepool_validation.go
1
85.45%

Totals

Change from base Build<PHONE_NUMBER>:
-0.005%

Covered Lines:
8642

Relevant Lines:
10623

💛  - Coveralls


Fixes #5297: Allows unicode slugs

Summary
At the moment only ASCII page slugs are accepted and user cannot enter Unicode character as slugs.
Unicode Slugs are very important when it comes to CMS.
This pull requests makes Django CMS PageTitle model to Allows Unicode slugs.

Fixes #5297

Links to related discussion

https://github.com/divio/django-cms/issues/5297
http://support.divio.com/project-types/django-cms/unicode-characters-in-url-slugs

Proposed changes in this pull request
The cms.models.Title.slug gets a allows_unicode parameter. (since https://github.com/django/django/pull/4518)

Coverage remained the same at 79.105% when pulling 3f8ed55785816f24ae982a870f8e9ddf6807c097 on Alir3z4:5297-allows-unicode into a970819be8f78627a9499fa51cd849924d3f33a4 on divio:develop.

Develop don't support 1.8 so we don't need to handle it, but what with JS? Did you check this maybe?

closing this for now, please reopen with adjustments if needed :)
Thank you very much for the initial effort and comments!


No option to add credentials via CLI

The CLI does not have an option to add credentials for a given message/account.  Add a -x, --creds option to allow this.

Instead the -C , --configure option is used.  The user will configure via the CLI and save under a profile name.  See the Configuration wiki page.


chore: update logos

Change-Id: Ide80de2fad2039ca73242ee5794ba373f76220a5

This pull request is part of a stack:

chore: update logos (#25) 👈


Add an "API" section below "Commands" in README.md and index.md

I want to start emphasizing the Python API more. Most of the docs center around the CLI right now. A good place to start is to show an API example on the README.md and index.md pages.

Closed for now. Don't think it's needed.


Changes added in GEOS to assimilate CrIS-FSR observations from NOAA-21

These resource files have been modified to include CrIS-FSR observations from NOAA-21.

Ricardo, could you please be more specific here?


Update sample code in Devise::Models::Authenticatable.

DRY up some of the sample code by refactoring into smaller methods.
‘Namespace’ method names to reduce chances of conflict.
Mark send_pending_devise_notifications, pending_devise_notifications, and render_and_send_devise_message methods as private since they are only used internally.
Update comments.

Thank you!


Get actual prediction results

In notebook 5 of inference, for your source code
results_df = scheduler.get_predictions()
results_df.to_csv(os.path.join(INFER_DATA, 'output', 'results.csv'))
results_df
but in S3 output of each inference result, the file is 'results.jsonl', so the error is,

ValueError                                Traceback (most recent call last)
 in
----> 1 results_df = scheduler.get_predictions()
2 results_df.to_csv(os.path.join(INFER_DATA, 'output', 'results.jsonl'))
3 results_df
~/SageMaker/lookout-for-equipment-demo/utils/lookout_equipment_utils.py in get_predictions(self)
1359         # Assembles them into a DataFrame:
1360         results_df = pd.concat(results_df, axis='index')
-> 1361         results_df.columns = ['Timestamp', 'Predictions']
1362         results_df['Timestamp'] = pd.to_datetime(results_df['Timestamp'])
1363         results_df = results_df.set_index('Timestamp')
~/anaconda3/envs/python3/lib/python3.6/site-packages/pandas/core/generic.py in setattr(self, name, value)
5152         try:
5153             object.getattribute(self, name)
-> 5154             return object.setattr(self, name, value)
5155         except AttributeError:
5156             pass
pandas/_libs/properties.pyx in pandas._libs.properties.AxisProperty.set()
~/anaconda3/envs/python3/lib/python3.6/site-packages/pandas/core/generic.py in _set_axis(self, axis, labels)
562     def _set_axis(self, axis: int, labels: Index) -> None:
563         labels = ensure_index(labels)
--> 564         self._mgr.set_axis(axis, labels)
565         self._clear_item_cache()
566
~/anaconda3/envs/python3/lib/python3.6/site-packages/pandas/core/internals/managers.py in set_axis(self, axis, new_labels)
225         if new_len != old_len:
226             raise ValueError(
--> 227                 f"Length mismatch: Expected axis has {old_len} elements, new "
228                 f"values have {new_len} elements"
229             )
ValueError: Length mismatch: Expected axis has 246 elements, new values have 2 elements

Hi!
Thanks, the service is getting close to the GA date and we changed the output format for the inference scheduler (from CSV to JSON lines).
I've updated this part and need to commit it (hopefully by the end of the week).
Thanks for your insights and your interest for Lookout for Equipment!
Michaël.

sounds good, other notebook are running well.
May I know the meaning of 'diagnostics__value' in the output result file?
For the prediction = 1, does it mean 'fault' ?

Latest commit updated the scheduled inference to take care of the new format for scheduled inference (CSV to JSON lines).
When prediction is 1, it means that a divergence (i.e. an anomaly) has been found when looking at the multivariate relationship between the different time series data.


Add support for carpet overlay opacity

Due to how it is, the overlay appears really bright with some shaders, like, REALLY bright, adding opacity or some sort of control of the carpet overlay's display would help resolve this.

Thank you for reporting this issue!
Theoretically, the carpet overlay is already translucent without shaders, weird that it isn't with shaders.
I'll look into it, but it might take some while until I have time to tackle this issue

Fixed with Lighty v2.1.0, which you can find on Modrinth or on GitHub.
You cannot change the opacity, as this would be quite difficult to do, but you can change the brightness of the overlay in the Lighty Settings. There are also some other goodies in this release, so feel free to check it out!
Thanks for opening this issue, have fun playing!


Update resources

Include new packages and more importantly the revived EventedMind website.

ping @Urigo

ping @Urigo

Thank you @harryadel and sorry for the late response

Thank you @harryadel and sorry for the late response

I understand how open source maintainers can be low on time. Thank you for your efforts!

I understand how open source maintainers can be low on time. Thank you for your efforts!


Updated Script for Facebook Scrapping

Hey Adriaan, Updated the python script to scrape comments and shares too, Thankyou for teaching me!

Closed due to issue resolved externally. See code: https://gist.github.com/adriaan90/83c09d85ffa9352d0cc013ee3e208d49 used to log into Facebook using Selenium


Added Alpha band handling.

test this please

test this please

test this please

test this please

test this please

test this please

test this please

test this please

test this please


Bug with latest release

We received the latest Timber update last night 1.21 and our web site wasn't available after that (error message on page). The issue was resolved by going back to 1.20.
Here is part of the error that was in our WordPress logs - PHP Fatal error:  Uncaught Error: Class "Twig_Filter_Function" not found***

Expected behavior

Actual behavior

Steps to reproduce behavior

What version of WordPress, PHP and Timber are you using?

How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

Also having this problem with a client site.

you have to specify more information. Did you install Timber using composer and than switched to wp plugin version, or vise versa?
Have a look at the timber starter theme functions.php

We have a pretty good idea where this is issue might be coming from and are currently investigating.

We have a pretty good idea where this is issue might be coming from and are currently investigating.

do you need any info from me to help troubleshoot the issue?

@bwalker5 if you're interested in lending a hand, we just published to WP.org. Are you able to download and verify in one of your setups?
https://wordpress.org/plugins/timber-library/

It looks like this is the same issue as https://github.com/timber/timber/issues/2672. It will be fixed in https://github.com/timber/timber/pull/2679.
For a very quick fix you could use
composer require twig/twig ^2

We just released a new 1.22.1 version. Could you check whether you still have your issue?

@gchtr  I can confirm that my Unknown "filter" tag issue is solved with TimberTwig 1.22.1
Thanks for fixing the issue that fast! 🙏

Great to hear @Luckyfella73 ! thanks to @rmens for submitting the PR to help us here


"Maximum execution time of 30 seconds exceeded" in Count with 4M documents

Good morning,
I have faced an error: "Maximum execution time of 30 seconds exceeded" after a Count in my MongoDB. My Laravel is a v5.7.22 and I am using your library to use MongoDB as my primary DB (which is awesome, btw).
$amount_companies = CompanyCompaniesBucket::count();
The class I have defined is:
use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
class CompanyCompaniesBucket extends Eloquent {     protected $connection = 'mongodb2';     protected $collection = 'companies'; }
I don't know why, but the count reaches 30 seconds when using another tool to explore the MongoDB is only 0.03 seconds (Compass or Robo3T). Do you know what can produce this timeout issue?
Thanks in advance

https://github.com/jenssegers/laravel-mongodb/pull/1695

@fparareda check please and close issue if it's not actual

I am going to try it first. Thanks!


Saml an ADFS 3.0

I built an SDP with using python-saml for and tested it correctly with Google and SimpleSAML without a problem but I'm having issues when integrating with ADFS 3.0. I'm using a single virtual machine as a dev/testing environment and got my site to send the login request succesfully, but am getting a general error message on the page.

Looking at the ADFS logs I see this event pop up as an error.

Which leads me to believe that my relaying party is badly configured. What should be going in the relaying party identifiers in ADFS part? And should the SP configuration needs anything special to handle this field?

Thanks in advance for any help

I'm not an ADFS expert, sorry don't have a reply for you. That screenshot that you shared seems ok to me.

Thanks anyway, I'm going to try looking for solutions and report back on what I found, in case somebody else runs into this issue.

Well, found the solution to this case. Was a misconfiguration in my part. The identifier was different from that one that came with the request. Doesn't seem to be but I copy pasted the url as the identifier and it worked.


Mistral-large LLM requires 56GB of RAM. Please note this.

Please make a note of this on the readme document here and on the library page at https://ollama.com/library.
Ollama gave me this error message when I tried to run mistral-large. It's huge.

@bulrush15 where are you seeing the 56GB number?

69 Gigabytes? Nice

@bulrush15 where are you seeing the 56GB number?

It's in the error message ollama prints out when I try to run the LLM.


Fix history sidebar bugs (#78, #115, #116), sign-in UI issue (#110), and enhance webpage title with node names (#99)

Hey @samadouhra
This PR addresses the following issues:

Fixed various bugs in the history sidebar:

#78
#115
#116

#99
#110

@somin0016  thank you, i tested your changes they look good to me,
There is only one problem,
it doesn’t save the History of changes after the user onBlurs
Please let me know if this makes sense to you,
https://github.com/user-attachments/assets/47a19994-b7f7-4157-a192-beaec07add3a


Update security-trusted-workspace-access.md

Update trusted access limitations
Thank you for contributing to Microsoft Fabric documentation
Fill out these items before submitting your pull request:
If you are working internally at Microsoft:
Provide a link to an Azure DevOps Boards work item that tracks this feature/update.

Who is your primary Skilling team contact? @mention them individually tag them and let them review the PR before signing off.

For internal Microsoft contributors, check off these quality control items as you go

[ ] 1. Check the Acrolinx report: Make sure your Acrolinx Total score is above 80 minimum (higher is better) and with no spelling issues. Acrolinx ensures we are providing consistent terminology and using an appropriate voice and tone, and helps with localization.

[ ] 2. Successful build with no warnings or suggestions: Review the build status to make sure all files are green (Succeeded).

[ ] 3. Preview the pages:: Click each Preview URL link to view the rendered HTML pages on the review.learn.microsoft.com site to check the formatting and alignment of the page. Scan the page for overall formatting, and look at the parts you edited in detail.

[ ] 4. Check the Table of Contents: If you are adding a new markdown file, make sure it is linked from the table of contents.

[ ] 5. #sign-off to request PR review and merge: Once the pull request is finalized and ready to be merged, indicate so by typing #sign-off in a new comment in the Pull Request. If you need to cancel that sign-off, type #hold-off instead. Signing off means the document can be published at any time. Note, this is a formatting and standards review, not a technical review.

Merge and publish

After you #sign-off, there is a separate PR Review team that will review the PR and describe any necessary feedback before merging.
The review team will use the comments section in the PR to provide feedback if changes are needed. Address any blocking issues and sign off again to request another review.
Once all feedback is resolved, you can #sign-off again. The PR Review team reviews and merges the pull request into the specified branch (usually the main branch or a release- branch).
From the main branch, the change is merged into the live branch several times a day to publish it to the public learn.microsoft.com site.

@paulinbar
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Changes implemented via PR https://github.com/MicrosoftDocs/fabric-docs-pr/pull/6144.
#please-close


Authentication and Authorization

It would be interesting to have the CloudState Proxy handle gRPC and HTTP Authentication and Authorization transparently. Even for outbound calls made by functions (route outbound calls via the proxy too) and seamlessly add and verify security tokens.

Why not leave it to the underlying infrastructure at the user level? I see most people delegating such concerns to the kubernetes layer itself and things like authproxy, or keycloak gatekeer

@sleipnir Even if it is delegated to infra, there'd still have to be a way to propagate it?

I understand that there would be no easy way to propagate this to the application level, sidecar, if that's the approach.
Maybe they are mutually exclusive approaches.


Appstudio update test-component-pac-nvlu

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-nvlu-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
14 seconds
clone-repository

✅ Succeeded
26 seconds
build-container

✅ Succeeded
13 seconds
deprecated-base-image-check

✅ Succeeded
14 seconds
sanity-inspect-image

✅ Succeeded
7 seconds
clair-scan

✅ Succeeded
35 seconds
clamav-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
16 seconds
sanity-optional-label-check

✅ Succeeded
16 seconds
sanity-label-check

✅ Succeeded
5 seconds
show-summary

Pipelines as Code CI/test-component-pac-nvlu-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
14 seconds
clone-repository

✅ Succeeded
26 seconds
build-container

✅ Succeeded
13 seconds
deprecated-base-image-check

✅ Succeeded
14 seconds
sanity-inspect-image

✅ Succeeded
35 seconds
clamav-scan

✅ Succeeded
7 seconds
clair-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
16 seconds
sanity-optional-label-check

✅ Succeeded
16 seconds
sanity-label-check

✅ Succeeded
5 seconds
show-summary


[Event Request] page 398 "Sales Credit Memo Statistics" - OnAfterGetRecordOnAfterCalculateAdjProfitLCY

Can you add AmountLCY and TotalAdjCostLCY as paramater to event OnAfterGetRecordOnAfterCalculateAdjProfitLCY?
        //OnAfterGetRecordOnAfterCalculateAdjProfitLCY(Rec, AdjProfitLCY);
        OnAfterGetRecordOnAfterCalculateAdjProfitLCY(Rec, AdjProfitLCY, AmountLCY, TotalAdjCostLCY);

    [IntegrationEvent(false, false)]
    local procedure OnAfterGetRecordOnAfterCalculateAdjProfitLCY(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var AdjProfitLCY: Decimal; AmountLCY: Decimal; TotalAdjCostLCY: Decimal)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Move revalidate-home into App Router

Currently, revalidate-sitemap is already a Router Handler in App Dir but revalidate-home isn't.
This PR migrates revalidate-home into Route Handlers, just like revalidate-sitemap.

I initially implemented this route as a route handle but unfortuantely this doesn't seem to work, the home page is never revalidated even if I refresh the page multiple times, so this is why I kept it as an API Route. I will keep this PR open so we can merge once they fix this issue. Thanks!


Multi-select tiles do not initialize properly

Multi-select tiles with 'selected' flag just selects the last one
To reproduce it in the storybook:
<ibm-selection-tile *ngFor="let tile of [true, false, true, false]" value="tile1" [selected]="tile">Selectable Tile</ibm-selection-tile>
@cal-smith

may be fixed by #724

Everything works as expected.

Everything works as expected!


Bug in bindCustomTabsService can't get a CustomTabsCallback

` private fun bindCustomTabsService() {
if (mClient != null) return
try {
val mConnection = object : CustomTabsServiceConnection() {
override fun onCustomTabsServiceConnected(name: ComponentName, client: CustomTabsClient) {
Log.d(TAG, "onCustomTabsServiceConnected CustomTabsClient = $mClient");
mClient = client
mClient!!.warmup(0L);
}
            override fun onServiceDisconnected(name: ComponentName?) {
                mClient = null
            }

        }
        Log.d(TAG, "mConnection =  $mConnection");

        val ok = CustomTabsClient.bindCustomTabsService(mActivity!!, CUSTOM_TAB_PACKAGE_NAME, mConnection);

        Log.d(TAG, "bindCustomTabsService : ,ok = $ok ,CustomTabsClient = $mClient");
    } catch (e: Exception) {
        Log.e(TAG, "bindCustomTabsService = $e ");
    }
}`

bindCustomTabsServiceis always False !!
@pr-Mais

Without providing me with the steps you did and a minimum reproducible code I cannot guess where's your problem.
Here're some steps to do before filing an issue:

Make sure your server endpoints are correctly setup by following [the official docs here](set up your server).
To test your endpoints, use Postman with the testing environment and configurations, make sure you're receiving a correct and valid JSON response.
Clone this repository, then paste the configurations you received from HyperPay here.
Run the example app and do a transaction using test cards.

If you followed the above steps and the example app is crashing, let me know.

I followed the above steps and the example app is crashing.
End points are working fine
the problem with the native code specially the function I have attached  to the pervious comment
@pr-Mais

It's crashing in the example app?

The code snippet you attached is not from this plugin.

line 172 HyperPayPlugin.kt
CustomTabsClient.bindCustomTabsService(mActivity!!, CUSTOM_TAB_PACKAGE_NAME, cctConnection);
@pr-Mais

I pushed a small fix in the example app, could you please pull and try again.
Additionally, the crash I got was caused by an error with the example app package name, couldn't reproduce the case you're facing.

Didn't fix my problem
I debugged the problem many Times and the problem with the function I sent you earlier it always return false so the callBack isn't working and I don't Know if the payment succussed or not

I fixed this issue
https://github.com/AbdrahumanFikry/hyperpayPlugin/blob/main/android/src/main/kotlin/com/nyartech/hyperpay/HyperpayPlugin.kt

Could you please answer this question: the issue happens in the example app?

Pull and try from the original repository. You seem to have pushed many changes on your fork.

Could you please answer this question: the issue happens in the example app?

NO

Pull and try from the original repository. You seem to have pushed many changes on your fork.

Please TRY the example app =>  "NOT Working AT ALL " Due to some changes on Hyperpay API and customPackageName in HyperpayPlugin.kt

Get back to the steps I mentioned in my first comment, try running a test transaction with your configurations on the example app in this repository, not your fork, purely without changing anything else.

I have the same issue after calling
hyperpay.pay(card);
the plugin throws this exception

W/System.err(13521): java.lang.NullPointerException
W/System.err(13521): 	at com.nyartech.hyperpay.HyperpayPlugin.transactionCompleted(HyperpayPlugin.kt:291)
W/System.err(13521): 	at com.oppwa.mobile.connect.service.ConnectService.transactionCompleted(ConnectService.java:2)
W/System.err(13521): 	at com.oppwa.mobile.connect.provider.OppPaymentProvider.a(OppPaymentProvider.java:64)
W/System.err(13521): 	at com.oppwa.mobile.connect.provider.OppPaymentProvider.lambda$Z7rpKa2phFQX0DRjHjS8RQqzthY(Unknown Source:0)
W/System.err(13521): 	at com.oppwa.mobile.connect.provider.-$$Lambda$OppPaymentProvider$Z7rpKa2phFQX0DRjHjS8RQqzthY.run(Unknown Source:8)
W/System.err(13521): 	at java.lang.Thread.run(Thread.java:1012)
E/AndroidRuntime(13521): FATAL EXCEPTION: Thread-4
E/AndroidRuntime(13521): Process: sa.example.fixit.staging, PID: 13521
E/AndroidRuntime(13521): java.lang.IllegalStateException: null
E/AndroidRuntime(13521): 	at com.nyartech.hyperpay.HyperpayPlugin.transactionCompleted(HyperpayPlugin.kt:320)
E/AndroidRuntime(13521): 	at com.oppwa.mobile.connect.service.ConnectService.transactionCompleted(ConnectService.java:2)
E/AndroidRuntime(13521): 	at com.oppwa.mobile.connect.provider.OppPaymentProvider.a(OppPaymentProvider.java:64)
E/AndroidRuntime(13521): 	at com.oppwa.mobile.connect.provider.OppPaymentProvider.lambda$Z7rpKa2phFQX0DRjHjS8RQqzthY(Unknown Source:0)
E/AndroidRuntime(13521): 	at com.oppwa.mobile.connect.provider.-$$Lambda$OppPaymentProvider$Z7rpKa2phFQX0DRjHjS8RQqzthY.run(Unknown Source:8)
E/AndroidRuntime(13521): 	at java.lang.Thread.run(Thread.java:1012)
I/Process (13521): Sending signal. PID: 13521 SIG: 9
Lost connection to device.
Failed to send request: {"jsonrpc":"2.0","id":"58","method":"getMemoryUsage","params":{"isolateId":"isolates/791169051683579"}}

@salahamassi I solved this Issue at https://github.com/AbdrahumanFikry/hyperpayPlugin

Unless you provide the exact steps you followed and a minimal reproducible code, we're unable to help you. I tried running a transaction in the example app on both platforms and it was successful.
I'll close the issue, feel free to comment if you have any helpful details.

@pr-Mais Please use the package in a new flutter app and not the example and you well get it

I'm using the package in an app that is running in production for a year now and I had no issues on both Android and iOS.
I cannot help you unless you tell me what exactly you did that led to this exception.

@pr-Mais I did exactly what I found in the package documentation and led to this exception!!

Create a repo with a minimal code that produces this exception for you and share it here please

@pr-Mais Please create a new flutter app and use the package and follow the package documentation and
YOU WELL GET IT

What's the version of the Android HyperPay SDK you are using?

@pr-Mais 3.10.0

Just tried a new Flutter project and it's working as expected.
Worth noting that the plugin is tested against version 3.6.0 (check here).
I had to make some changes in the Android files to compile with v3.10.0, will update the docs shortly.
Here're the changes I did:

In settings.gradle:

configurations.maybeCreate("default")
artifacts.add("default", file('oppwa.mobile-3.10.0-release.aar'))

In app/build.gradle: set the compileSdkVersion to 31

Looking closely at the exception you're getting, I can see java.lang.NullPointerException, which indicates a required value by the pay method is being passed as null.
Have you tried printing the checkoutID and made sure it's not null?

Dear Mais ,
Please talk to the Android Developer Who coded this file and let him fix this issue java.lang.NullPointerException
I already solved here [https://github.com/AbdrahumanFikry/hyperpayPlugin/blob/main/android/src/main/kotlin/com/nyartech/hyperpay/HyperpayPlugin.kt](url)

The issue is caused by Browser 1.3.0 on Android API 30 and above. A fix will be published soon.
@AbdrahumanFikry thanks for reporting, such detail about the environment that produced the issue could have helped much earlier.


Move List Creation to Reducer

Same reasoning and acceptance criteria as #129 but for lists.

Commit: https://github.com/johneastman/todo/commit/2792b84e1ee09c59ad289505fdc150ea49f57bb0


Add the ability to configure slack markdown field

Closes https://github.com/prometheus/alertmanager/issues/1220.

I am happy to add more test cases or more tests for this if this is need....
any other feedback is welcome as I am new to Go and this code base.

Thanks!


Remote Access Linux VM extension GuestAttestation is failing to deploy successfully.  Status is 'Transitioning'

Remote Access Linux VM extension GuestAttestation is failing to deploy successfully.  Status is 'Transitioning'
Steps to reproduce the behavior:

Opt in to deploy a Linux VM on the Remote-Access tab of the MLZ deployment

Expected behavior
All 4 four linux VM extension are successfully deployed.
Actual behavior
GuestAttestation extension fails to successfully deploy.
Screenshots

Additional context
Operating System:
Cloud (public, Azure Government, etc.):

Removing 'enableAutomaticUpgrade: true' from linux-virtual-machine.bicep prevents the extension from attempting an upgrade.  The guestattestation extension successfully is applied and MLZ deployment is successful.


Backstage2 keep session

Hi,
I am having troubles with Backstage2.
It's succesfully installed however, once logged is, it does not keep the session and therefore doesn't save data.
I have tried clearing cookies and cache, using in different browser and even commented: lib/common.php to //session_regenerate_id();
Nothing works so far.
Do you have any suggestions?

Solved by using a different(older) php version

what your php version ?


flare_removal requires keras, what is the version of keras

flare_removal requires keras, what is the version of keras

Hello @dante1024, thanks for your interest in the flare removal project.
Our code isn't supposed to have an explicit dependency on Keras. Instead, it uses the Keras API inside Tensorflow (namely, tf.keras.*). If you have the latest version of TF, you should be fine.
Does that answer your question?

Qiurui


feat: add kubernetes-sigs/aws-iam-authenticator

#5861 kubernetes-sigs/aws-iam-authenticator: A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
$ aqua g -i kubernetes-sigs/aws-iam-authenticator

issue: https://github.com/aquaproj/aqua-registry/issues/909

Thanks.

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.42.0


bump dependencies

Closes https://github.com/AllInOneYT/react-native-thermal-printer/issues/43

Thank you for you PR.
Have you tested it?
Does it contain any breaking changes?

I'm running it without any problem at this moment. I didn't encounter breaking changes.


[BUG] downloadZip is not a function in the worker demo

Describe the bug
Unmodified worker demo doesn't start the download, it only shows downloadZip is not a function error when trying to download. I have tried reloading the service worker, unregistering etc., but to no avail.
To Reproduce
Steps to reproduce the behavior:

Clone the repo (I'm on commit c740db56fe586bf834cd1ad0f08ae01eb957f90c)
Run npm run start
Start a web-server at the root dir of the repo (in my case python3 -m http.server 8000)
Open http://localhost:8000/demo/worker.html in your browser
Add https://raw.githubusercontent.com/Touffy/client-zip/master/CHANGES.md to the list of URLs
Click Download all that in one ZIP
Observe the downloadZip is not a function

Expected behavior
Start the download (I haven't actually seen how the demo should work)
Desktop (please complete the following information):

OS: Pop!_OS 22.04 LTS
Browser: Chromium 105 with and without incognito mode. No extensions installed
Browser: Firefox 104

Additional context
npm --version 8.15
node --version v16.17.0
python3 --version 3.10.4

I am not familiar with python's http server, but I don't expect it adds Content-Security-Policy headers. You don't have any trouble with instantiating the WebAssembly module in the Service Worker ? If that fails, downloadZip won't be defined.

More importantly, does this happen only on your local hosting of client-zip and not on mine ?

It's difficult to say whether there are problems with the instantiation. There are no errors, warnings or any other messages in the console, and a WebAssembly module actually appears in the sources tab of the Dev Tools.
Also, downloadZip IS defined, it just isn't a function. This is what the debugger shows for it:
default:  (...)
__esModule: 1

I'm not sure about the CSP-headers. I can take a look at them next.

More importantly, does this happen only on your local hosting of client-zip and not on mine ?

That one works fine with the same OS and browsers

Ah ! I think I get it. You ran the build script (npm run start) to generate the worker.js file after cloning from git. But the build script is actually not enough. I haven't yet managed to configure terser to output a correct worker script that can be loaded with importScript, so I always edit the file manually after the script. You have to get worker.js from npm, some CDN, or from a release on GitHub, not make it yourself (or if you do, remove the module wrapper). Sorry.
I've written a short explanation for the CSP stuff down there in the README.

Thanks!
I just replaced the self-built JS-files with the ones (index.js, worker.js) from the latest release, and that alone fixed the problem. No need to deal with CSP separately, at least not with python3 -m http.server.
Should I leave this issue open? I suppose I should, since downloading the prebuilt scripts is just a workaround.

It would be nice if I (or somebody else) could fully automate the build. So yes, I suppose we can leave the bug open to track that. In that case, would you mind editing the issue to reflect exactly what's wrong ?

I will edit the issue, no problem.
This is off-topic, but I'd like to quickly ask if I really have to use a form with the Service Worker method to get the RAM saving benefit? I suppose if I made a POST request with fetch with a JSON body, and then turned the result into a blob URL to save it, the blob would be stored to RAM?

As you say, if you fetch the response into a Blob and then download it with a Blob URL, you lose the advantage of streaming so you might as well not use a Service Worker at all.
The form is convenient because it allows you to "navigate" with a POST request (the browser downloads instead of navigating thanks to the Content-Disposition header). POST is very useful for sending lots of data to the worker to configure what you want in the ZIP file.
If you want to download from a ServiceWorker without a form, you will need to create a download link. But that will make a GET request, and without any custom headers. So you will be limited to just query params. It could make very long URLs, and also open a vector for XSRF attacks.
A way around the limitation (and vulnerability) of query params is to first communicate with the Service Worker over another channel (postMessage) to configure the download, and then click the download link. I actually implemented that before I found the form solution, and decided to show the form in my demo because it is simpler.

Okay, thanks for confirming. Forms are indeed more convenient for downloading. One thing I was hoping to get by fetching and blobbing is the ease of detection of a download completing. The form doesn't give me that automatically, but maybe I don't need that feature anyway. And if I do, maybe I'll postMessage from the service worker will do.


connection issus

when I startup the device through command  rosrun haptic_ros_driver haptic_ros_driver, the terminal outputs as the picture shows

how to fix it

I use omega.7 not omega.3, how to modified the code to fit the device.
Thank you!

when rosrun haptic_device_driver haptic_device_driver , the terminal outputs

I know the solution，and it works now.


Remove vue-cli

Deployment fail with this

@bonustrack  this is fixed now.. i can able to deploy to Heroku without any issues now, can u try deploying it again?

Deployment works now, great!

Optional chaining doesn't seem to work for me


Add support for .gitattributes

Hi,
it would be great if you can add support for .gitattributes files, too.
Kind regards
Rolf

@kaltokri Sorry, but gitattributes support is out of the plugin's scope and it will not be supported.
The syntax and purpose are slightly different. It simply doesn't match the context of the .ignore plugin.

+1

I agree, there's no plugin actually that support .gitattributes files.
You could be the first one that integrate it's support.
It's up to your decision, hope you'll change your mind @hsz ;)
Cheers,
Georges


Move these to DESCRIPTION?

Pretty important.
CSR_SOIL: Order (texture)
CSR_AGE: Years

Or simply to metadata form.

Put age on metadata form; soil order seems more specialized.


Sentry 7.17 is breaking installation

https://github.com/getsentry/sentry-javascript/issues/6066
Pinning ti 7.16 temporarily to avoid breaking people npm install

This has been fixed with the 7.17.1 release - sorry for the trouble!

Hey, @AbhiPrasad thank you for letting me know! 🙏

:tada: This issue has been resolved in version 4.1.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add a sample on how to restart on Synology DSM 7

I did the setup on DSM 7 and was looking for the correct commands. So I think adding it to the samples would be a good idea since more and more will switch to DSM 7

Cool! Thanks for adding this. Did not know the command changed for DSM 7.

Didn't know that as well until setting up a new NAS ;)


fix(expsync): possible SQL injection

RHINENG-2580
Secure Coding Practices Checklist GitHub Link

https://github.com/RedHatInsights/secure-coding-checklist

Secure Coding Checklist

[x] Input Validation
[x] Output Encoding
[x] Authentication and Password Management
[x] Session Management
[x] Access Control
[x] Cryptographic Practices
[x] Error Handling and Logging
[x] Data Protection
[x] Communication Security
[x] System Configuration
[x] Database Security
[x] File Management
[x] Memory Management
[x] General Coding Practices

Codecov Report
Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 60.75%. Comparing base (13cd3fb) to head (379d2fc).

Files
Patch %
Lines

expsync/database.go
66.66%
1 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #211      +/-   ##
==========================================
+ Coverage   60.07%   60.75%   +0.67%
==========================================
  Files          46       50       +4
  Lines        2928     2548     -380
==========================================
- Hits         1759     1548     -211
+ Misses        969      784     -185
- Partials      200      216      +16

Flag
Coverage Δ

unittests
60.75% <66.66%> (+0.67%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Issues with iPad and Bluetooth keyboard

Bug description
It appears that using an external Bluetooth keyboard with an iPad Pro 11” has issues.
Running the application fresh has no issues.
Rerunning the application has issues.
I have not noticed the keyboard freezing with other applications.
Keyboard used is this:
Apple Magic Keyboard Case For iPad Air 4 Air 5 iPad Pro 11 2021 - 2018 for iPad Pro 12 9 12.9 2021 Magic Keyboard
https://a.aliexpress.com/_mK0EiBs
The application freezes and has trouble unlocking the SSH key.
Screenshots
Steps to reproduce

Reopen the application.
Connect to a server by clicking on a profile.
Enter the SSH key, the server opens.
Type on the console using the Bluetooth keyboard. After the first few characters the application freezes and ignores input from the keyboard.
Close the session and re-connect to the server by clicking on the server line. The application then throws an error indicating the key cannot be unlocked.

@djknowles
Thanks for your feedback 🙏
I'm trying to reproduce.

@djknowles Doesn't the freeze occurs when using the virtual keyboard?

No I have not detected any issues when using the virtual keyboard. Just the Bluetooth one and only on this application and only when the application was run a second time (i.e. the application was previously running, exited, and then run again, before trying to connect to the remote site).

Thanks for your feedback @djknowles
I'm trying to reproduce the trouble.

I'm not able, yet, to reproduce the issue. This works as expected on my side but I don't have the same keyboard.

@djknowles are you on iPadOS Beta?


Update calendarauto-function-dax.md

Fixed incorrect example results on line 52. Using CALENDARAUTO(3) for the min and max dates given, the dates will be between April 1, 2010 and March 31, 2012.  Not March 1, 2010 through March 31, 2012.

Docs Build status updates of commit 13c918b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

query-languages/dax/calendarauto-function-dax.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


add extra plugs before and after

only before is needed:  After can be handled at the controller layer (since controllers are plugs!)

done in 72676cc


New version: LinwoodCloud.Butterfly.Nightly version 2.0.0-rc.3

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-Executable-Error


[Bug]: KafkaIO does not make use of Kafka Consumer Groups

What happened?
I'm using KafkaIO to consume events from a Kafka topic.
I've added "group.id" to the consumer properties.
When running the pipeline I can see this value sent to Kafka in the consumer properties.
The consumers created by KafkaIO fail to join the consumer group.
Looking into the code I can see that no where is the consumer "subscribing" to the topic which is how KafkaConsumer should join a consumer group. It seems the code attempts to circumvent the partition assignment mechanism provided by Kafka to use it's own.
By doing that it prevents the user from using consumer groups.
Is that by intention? Is there any reason why the decision to avoid using consumer groups has been taken?
I would love to see any documentation about that if possible please.
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[X] Component: IO connector
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

Thanks for reporting but it looks more as a question for<EMAIL_ADDRESS>or<EMAIL_ADDRESS>Would you mind to start a discussion on this topic there?

Thanks @aromanenko-dev.
I wasn't aware of these.
Happy to do so.
Can you send me a link to any documentation about how to create such a discussion please?

@srfrnk Sure!
https://beam.apache.org/community/contact-us/

Closing as this has moved to the user lists

For those who stumbled upon this thread (like me), you can find the continued conversation here.

It is a pity that beam doesn't use consumer group, without which, it will be inconvenient for us

@gabrywu if you'd like you can clone my original attempt to rewrite that part to use consumer groups.
It's partially limited and needs some cleaning up but as a POC it was working.
You can find it here: https://github.com/srfrnk/demo/blob/cg-reader/beam-kafka2file/src/main/java/kafka/Read.java


1.8.0 initial commit

snowflake-snowpark-python 1.8.0 for py311 in a separate PR https://github.com/AnacondaRecipes/snowpark-python-feedstock/pull/33