Translate enums with values

I think we can translate enums with values to be sealed classes with public static readonly members.
Example:
public enum LineSeparator {
    CR("\r", "CR (\\r)"),
    LF("\n", "LF (\\n)"),
    CRLF("\r\n", "CRLF (\\r\\n)");

    private final String text;
    private final String description;

    LineSeparator(String text, String description) {
        this.text = text;
        this.description = description;
    }

    // ... other methods here
}

Output:
public sealed class LineSeparator
{
    public static readonly LineSeparator CR = new LineSeparator("\r", "CR (\\r)");

    public static readonly LineSeparator LF = new LineSeparator("\n", "LF (\\n)");

    public static readonly LineSeparator CRLF = new LineSeparator("\r\n", "CRLF (\\r\\n)");

    private readonly string text;
    private readonly string description;

    private LineSeparator(string text, string description)
    {
        this.text = text;
        this.description = description;
    }

    // ... other methods here
}

How are you going to generate switch statements using this construct?

@uxmal Short answer - with this approach, we wouldn't.
There are plenty of cases today where it is just infeasible to translate all the way down, and we tend to stick to a syntactic translation only. This results in compiler errors in the resulting code quite often that need to be manually fixed, and that's okay. In this case, I personally think it's more important to preserve the values of the "enum" and its behavior than to eschew them in favor of making switch work, since switch can be replaced with if in this case.
However, your question got me thinking about an alternative approach. We could translate enums with values to be an abstract class with concrete implementations for each value. Example:
public abstract class EnumTest
{
    public static readonly EnumTest A = new EnumTest_A();
    public static readonly EnumTest B = new EnumTest_B();

    protected EnumTest(int value)
    {
        this.Value = value;
    }

    public int Value { get; }

    public class EnumTest_A : EnumTest
    {
        public EnumTest_A()
            : base(1)
        {
        }
    }

    public class EnumTest_B : EnumTest
    {
        public EnumTest_B()
            : base(2)
        {
        }
    }
}

Then, switch could be altered to use pattern matching on the type:
var value = DateTime.Now.Second % 2 == 0 ? EnumTest.A : EnumTest.B;

switch (value)
{
    case EnumTest.EnumTest_A:
        Console.WriteLine("A");
        break;
    case EnumTest.EnumTest_B:
        Console.WriteLine("B");
        break;
}

Note that with the sealed class approach, you could do pattern matching on the value, if that works for your use case:
var value = DateTime.Now.Second % 2 == 0 ? EnumTest.A : EnumTest.B;

switch (value)
{
    case { Value: 1}:
        Console.WriteLine("A");
        break;
    case { Value: 2}:
        Console.WriteLine("B");
        break;
}

We don't do any kind of symbol resolution to know that this would need pattern matching, so either approach would have to be done manually by the user... but it's certainly an option.
I'm thinking we can have three configurable approaches for how to treat enums with values:

Discard values (current state) - possibly could add methods as extension methods on the enum type, but it still would lose values, which likely defeats the point. However some people might want to do it this way to keep using switch.
Sealed class with public static readonly values - loses ability to do switch without pattern matching on a property value, but (IMHO) cleaner code
Abstract class with implementation for each enumeration value - can switch with pattern matching on the type

And then it's up to the user of JavaToCSharp to decide how they want to translate it, until C# adds proper discriminated unions. If anyone has any other ideas without involving symbol resolution, let me know!

Also my last example clearly could be rewritten as a standard enum with an int value... so pretend there's other fields there 😄

Fourth option, for those running C#9... we could take the approach from the link I posted about discriminated unions, and make them records inside an abstract class:
abstract partial class Shape
{
    public record Rectangle(float Width, float Length) : Shape;
    public record Circle(float Radius) : Shape;
}

... actually I'm not sure if that has the same semantics actually. Still thinking about this...

Hi, just found this project (got tons of old Java utils for small projects and was looking to convert one that happened to use this).
Since all Enum's extend java.lang.Enum that has an ordinal() final method, shouldn't that be considered the route to handling the switches if one wants to re-do translations often (or are the conversions more looking at idiomatic C# rather than good/easy conversion?), a shim of that one could of course.
As for abstract classes you kinda would need translating that anyhow, the code i was looking to translate looks like this.
`
enum BinaryOperator {
PLUS("+",false) {
Object apply(Object l,Object r) {
if (l instanceof Double || r instanceof Double) {
return ((Number)l).doubleValue()+((Number)r).doubleValue();
} else if (l instanceof Long || r instanceof Long) {
return ((Number)l).longValue()+((Number)r).longValue();
} else if (l instanceof Integer || r instanceof Integer) {
return ((Number)l).intValue()+((Number)r).intValue();
}
throw new RuntimeException("+ not defined for "+l+" and "+r);
}
},
MINUS("-",false) {
Object apply(Object l,Object r) {
if (l instanceof Double || r instanceof Double) {
return ((Number)l).doubleValue()-((Number)r).doubleValue();
} else if (l instanceof Long || r instanceof Long) {
return ((Number)l).longValue()-((Number)r).longValue();
} else if (l instanceof Integer || r instanceof Integer) {
return ((Number)l).intValue()-((Number)r).intValue();
}
throw new RuntimeException("- not defined for "+l+" and "+r+" "+l.getClass());
}
},
-------------- SNIP ------------
;
String op;
boolean allowNull;
BinaryOperator(String op,boolean an) {
this.op=op;
this.allowNull=an;
}
abstract Object apply(Object l,Object r);
}
`

Hi, just found this project (got tons of old Java utils for small projects and was looking to convert one that happened to use this).
Since all Enum's extend java.lang.Enum that has an ordinal() final method, shouldn't that be considered the route to handling the switches if one wants to re-do translations often (or are the conversions more looking at idiomatic C# rather than good/easy conversion?), a shim of that one could of course.
As for abstract classes you kinda would need support translating like that anyhow, the code i was looking to translate looks like this with enums implementing abstract methods.
	enum BinaryOperator { 		PLUS("+",false) { 			Object apply(Object l,Object r) { 				if (l instanceof Double || r instanceof Double) { 					return ((Number)l).doubleValue()+((Number)r).doubleValue(); 				} else if (l instanceof Long || r instanceof Long) { 					return ((Number)l).longValue()+((Number)r).longValue(); 				} else if (l instanceof Integer || r instanceof Integer) { 					return ((Number)l).intValue()+((Number)r).intValue(); 				} 				throw new RuntimeException("+ not defined for "+l+" and "+r); 			} 		}, 		MINUS("-",false) { 			Object apply(Object l,Object r) { 				if (l instanceof Double || r instanceof Double) { 					return ((Number)l).doubleValue()-((Number)r).doubleValue(); 				} else if (l instanceof Long || r instanceof Long) { 					return ((Number)l).longValue()-((Number)r).longValue(); 				} else if (l instanceof Integer || r instanceof Integer) { 					return ((Number)l).intValue()-((Number)r).intValue(); 				} 				throw new RuntimeException("- not defined for "+l+" and "+r+" "+l.getClass()); 			} 		} 		; 		String op; 		boolean allowNull; 		BinaryOperator(String op,boolean an) { 			this.op=op; 			this.allowNull=an; 		} 		abstract Object apply(Object l,Object r); 	}

Hi, just found this project (got tons of old Java utils for small projects and was looking to convert one that happened to use this).
Since all Enum's extend java.lang.Enum that has an ordinal() final method, shouldn't that be considered the route to handling the switches if one wants to re-do translations often (or are the conversions more looking at idiomatic C# rather than good/easy conversion?), a shim of that one could of course.
As for abstract classes you kinda would need support translating like that anyhow, the code i was looking to translate looks like this with enums implementing abstract methods.
	enum BinaryOperator {
		PLUS("+",false) {
			Object apply(Object l,Object r) {
				if (l instanceof Double || r instanceof Double) {
					return ((Number)l).doubleValue()+((Number)r).doubleValue();
				} else if (l instanceof Long || r instanceof Long) {
					return ((Number)l).longValue()+((Number)r).longValue();
				} else if (l instanceof Integer || r instanceof Integer) {
					return ((Number)l).intValue()+((Number)r).intValue();
				}
				throw new RuntimeException("+ not defined for "+l+" and "+r);
			}
		},
		MINUS("-",false) {
			Object apply(Object l,Object r) {
				if (l instanceof Double || r instanceof Double) {
					return ((Number)l).doubleValue()-((Number)r).doubleValue();
				} else if (l instanceof Long || r instanceof Long) {
					return ((Number)l).longValue()-((Number)r).longValue();
				} else if (l instanceof Integer || r instanceof Integer) {
					return ((Number)l).intValue()-((Number)r).intValue();
				}
				throw new RuntimeException("- not defined for "+l+" and "+r+" "+l.getClass());
			}
		}
		;
		String op;
		boolean allowNull;
		BinaryOperator(String op,boolean an) {
			this.op=op;
			this.allowNull=an;
		}
		abstract Object apply(Object l,Object r);
	}

@whizzter Thanks for the real-world example. I had never (or rarely) encountered abstract methods in enums but you're right, that strengthens the case for the abstract class approach.

Well to be honest I'm not sure how much this is used in other places, It's was kinda specific but quite smooth solution to binding stuff for this interpreter.
I guess this is the kind of places where you need to consider if Java compatibility or C# target code elegantness/idiomaticness is more important. (Nr 1 is more important if you want to continually translate some cross-language project , Nr 2 if you want to migrate).
Might even be that having 2 variants depending on the source can be the right choice? Abstract being enforced for compatible conversions where required, but a leaner method chosen for non-tricky situations or explicitly for a simpler idiomatic migration-mode.

This enum was converted to a C# enum with bit shifting and extension methods:
public enum Button : byte
{
    RIGHT = (0x01 << 4) | 0x10,
    B = (0x02 << 4) | 0x20,
    LEFT = (0x02 << 4) | 0x10,
    A = (0x01 << 4) | 0x20,
    UP = (0x04 << 4) | 0x10,
    SELECT = (0x04 << 4) | 0x20,
    DOWN = (0x08 << 4) | 0x10,
    START = (0x08 << 4) | 0x20
}

public static class ButtonExtensions
{
    public static byte GetMask(this Button button)
    {
        return (byte)((byte)button >> 4);
    }

    public static byte GetLine(this Button button)
    {
        return (byte)((byte)button & 0x0F);
    }
}

The original Java code:
    enum Button {
        RIGHT(0x01, 0x10), LEFT(0x02, 0x10), UP(0x04, 0x10), DOWN(0x08, 0x10),
        A(0x01, 0x20), B(0x02, 0x20), SELECT(0x04, 0x20), START(0x08, 0x20);

        private final int mask;

        private final int line;

        Button(int mask, int line) {
            this.mask = mask;
            this.line = line;
        }

        public int getMask() {
            return mask;
        }

        public int getLine() {
            return line;
        }
    }

For enums with more complicated private fields, I had to convert into an abstract class:
public abstract class AbstractArgument
{
    protected string label;
    protected int operandLength;
    protected bool memory;
    protected DataType dataType;

    protected AbstractArgument(string label, int operandLength, bool memory, DataType dataType)
    {
        this.label = label;
        this.operandLength = operandLength;
        this.memory = memory;
        this.dataType = dataType;
    }

    public abstract int Read(Registers registers, IAddressSpace addressSpace, int[] args);
    public abstract void Write(Registers registers, IAddressSpace addressSpace, int[] args, int value);

    public int OperandLength => operandLength;

    public bool IsMemory => memory;

    public DataType DataType => dataType;

    public string Label => label;

    public static AbstractArgument Parse(string @string)
    {
        AbstractArgument[] arguments = [new ArgumentA(), new ArgumentB() /*... add other arguments here ...*/];

        foreach (AbstractArgument a in arguments)
        {
            if (a.Label.Equals(@string))
            {
                return a;
            }
        }

        throw new ArgumentException("Unknown argument: " + @string);
    }
}

public sealed class ArgumentA : AbstractArgument
{
    public ArgumentA() : base("A", 0, false, DataType.D8) { }

    public override int Read(Registers registers, IAddressSpace addressSpace, int[] args)
    {
        return registers.A;
    }

    public override void Write(Registers registers, IAddressSpace addressSpace, int[] args, int value)
    {
        registers.A = value;
    }
}

public sealed class ArgumentB : AbstractArgument
{
    public ArgumentB() : base("B", 0, false, DataType.D8) { }

    public override int Read(Registers registers, IAddressSpace addressSpace, int[] args)
    {
        return registers.B;
    }

    public override void Write(Registers registers, IAddressSpace addressSpace, int[] args, int value)
    {
        registers.B = value;
    }
}

public sealed class ArgumentC : AbstractArgument
{
    public ArgumentC() : base("C", 0, false, DataType.D8) { }

    public override int Read(Registers registers, IAddressSpace addressSpace, int[] args)
    {
        return registers.C;
    }

    public override void Write(Registers registers, IAddressSpace addressSpace, int[] args, int value)
    {
        registers.C = value;
    }
}

The original Java code:
package eu.rekawek.coffeegb.cpu.op;

import eu.rekawek.coffeegb.AddressSpace;
import eu.rekawek.coffeegb.cpu.BitUtils;
import eu.rekawek.coffeegb.cpu.Registers;

import static eu.rekawek.coffeegb.cpu.BitUtils.toSigned;

public enum Argument {

    A {
        @Override
        public int read(Registers registers, AddressSpace addressSpace, int[] args) {
            return registers.getA();
        }

        @Override
        public void write(Registers registers, AddressSpace addressSpace, int[] args, int value) {
            registers.setA(value);
        }
    }, B {
        @Override
        public int read(Registers registers, AddressSpace addressSpace, int[] args) {
            return registers.getB();
        }

        @Override
        public void write(Registers registers, AddressSpace addressSpace, int[] args, int value) {
            registers.setB(value);
        }
    }
}

Just my 2 cents.


How do you install this?

I added it to the PowerShell Gallery awhile ago, so to install it, you can
Install-Module TunableSSLValidator

And to use it, just
Import-Module TunableSSLValidator


Added Rspec::Generators::GeneratorGenerator

My first contribution for rspec-rails.
When we execute bin/rails g generator awesome, rspec-rails does not generate a spec file.
So I've implemented new generator for generator :)
Please let me know if you have advice or questions. Thanks a lot!

hi @yhirano55 can you explain your use case for this a little more. The code looks fine but I'm just trying to understand what this might be used for in a practical rails app.

@samphippen Thank for the comment. On the test_unit, this boiler template file exist for generator generator. But on RSpec, it doen't have template same as this.


FWREZNETZ-387 - Request application zone creation

An application zone (AZ) group AZ containing all app servers should be predefined for each application.

naming convention for app zones: AZ05630: if the application name starts with COM, then the first digit is a 1, if it starts with APP, it is a 0; the rest of the digits is the app ID (copy this from  app role naming)
This object should be created on each FW-Mgr (handle this exactly  like the requesting of  the standard AR groups)
the AZ group does only show in FWO when requesting firewall changes (in the analysis pop-up) --> tbd if we should suppress it even here
no need for groups at area level - so we just create one bit AZ group per app

Changes to settings/modelling

[ ] turn creation of app zones on/off
[ ] make the syntax (AZ) configurable as application zone prefix (similar to area prefix)

@SolidProgramming you could already start with the UI settings side here (including the default config values, ...)


fix no data error

fix error when sending tx: Uncaught (in promise) TypeError: Cannot read property 'id' of undefined

tx is sent successfully, but got the error. I have no idea why the data is undefined

Codecov Report

Merging #447 into develop will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop     #447   +/-   ##
========================================
  Coverage    90.76%   90.76%
========================================
  Files           29       29
  Lines         1180     1180
  Branches       273      273
========================================
  Hits          1071     1071
  Misses         108      108
  Partials         1        1

Impacted Files
Coverage Δ

packages/ckb-sdk-rpc/src/method.ts
40.00% <0.00%> (ø)

Actually, the fix like if (res.data?.id && res.data.id !== id) {} makes no sense because res.data.result is treated as the useful part of the response.
return this.options.resultFormatters ? this.options.resultFormatters(res.data.result) : res.data.resul

We need to find out why the res.data is undefined

I am fine if we can make sure res.data always has value


"You exceeded your current quota, please check your plan and billing details."

[x] I have checked FAQ, and there is no solution to my problem
[x] I have searched the existing issues, and there is no existing issue for my problem

Describe the problem
When trying to chat I using either File or global chat I get the error: You exceeded your current quota, please check your plan and billing details.

Additional information (optional)
macOS version: 13.1
Copilot for Xcode version: 0.13.2
Node version: 20.0.0

The chat feature is powered by OpenAI ChatGPT, not GitHub Copilot.

Hi @intitni do you know how this is resolved? I am getting the same error. I have a paid account with ChatGPT and am not using it often, I am well within limits. Not sure why it's erroring.

Hi @intitni do you know how this is resolved? I am getting the same error. I have a paid account with ChatGPT and am not using it often, I am well within limits. Not sure why it's erroring.

You have to generate an API key and paste it into the app.

@Ashtronaut09 The message is definitely from OpenAI. You can check your usage here https://platform.openai.com/account/usage

Thanks @intitni ! I understand that, but what I'm trying to understand why is OpenAI not working with this. Is it on our end or their end?

Thanks @intitni ! I understand that, but what I'm trying to understand why is OpenAI not working with this. Is it on our end or their end?

@Ashtronaut09 it's probably on their end

@intitni thanks Shx! I just bought you a few coffees, will keep doing so as I use it. Appreciate your help!

@intitni IF I want to use only the copilot i.e generating code, is it possible?
(I mean we have the chat GPT for free , why we need to pay extra money for the same chat in Xcode? slightly confused )

@mikeRozen you don't have to use the features you don't need, just ignore them.

Not sure I follow there  is no way to use copilot in Xcode without paying to openAI for the token base usage, right?
The only way I can think of is to use visual studio code

@mikeRozen You can use GitHub Copilot and Codeium for the suggestion feature. If you don't need Prompt to Code and Chat, you don't need an OpenAI API key.

I am slightly confused.
to use copilot in Xcode I must have openAI key for extra money although I already payed for copilot. please share a reference that explains code suggestion in Xcode without open AI key.

@mikeRozen I am also confused.
The app has 3 main features, as mentioned in the readme. The suggestion feature is powered by GitHub Copilot and Codeium, the other two are powered by ChatGPT.
To use the suggestion feature, you need to follow the instructions in the readme, set up the app, download the language server, and sign in to your GitHub account. That’s it. You can find some videos from YouTube posted by other users if you are still confused.

I don't know the Codeium is somehow works for code suggestion on Xcode, Unfortunately I couldn't make copilot to have code suggestion on Xcode(maybe paying for openAI would improve it ), in visual studio code it worked (still not that great experience )

@mikeRozen I don't want to continue this conversation anymore. Codeium is just another GitHub Copilot like service, and setting up an OpenAI API key won't change anything if you are using the suggestion feature. If the suggestion feature is not working for you, please read FAQ for a solution and open a new issue if you need further help.


Footnote button icon looks the same as Redactor's superscript

The footnotes button from the plugin page's screenshot:

Looks the same or very similar to the one for superscript (built-in option for Redactor):

https://imperavi.com/redactor/examples/buttons/add-sup-and-sub-buttons/
I think they should look different from each other. Some people might want footnotes and superscript buttons, and they'd be hard to tell apart.

If you take a look at the markup the button creates, it's just adding a  tag, which then gets filtered by Twig to generate the footnotes. So really there's no point in having both the Redactor superscript button and the footnote button, as they both do the same thing.

There's cases where you may want a superscript that is not a footnote,
though. It would make more sense to have a separate superscript button for
text that should be a superscript but not a footnote.
Does your plugin handle that, or does it make all superscripts into
footnotes?
For example:

Some brand names might be appended with a trademark symbol (e.g. Some
company®)
Some people's names might have superscript characters in them (was
thinking like Mc- surnames, but not sure)
Might want to use it for ordinals (e.g. the 6th)
Might use it for measurements (e.g. 3km²) or math (e.g. 4² = 16)

On Tue., Oct. 29, 2019, 6:34 p.m. Dalton Rooney<EMAIL_ADDRESS>wrote:

If you take a look at the markup the button creates, it's just adding a tag,
which then gets filtered by Twig to generate the footnotes. So really
there's no point in having both the Redactor superscript button and the
footnote button, as they both do the same thing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Vierbeuter/craft-footnotes/issues/6?email_source=notifications&email_token=AEIOIJRROYE5TKE27LNFZLDQRC26ZA5CNFSM4JGMWEKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECSJ2WA#issuecomment-547659096,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEIOIJSG3GR5MYNH3IFIT2DQRC26ZANCNFSM4JGMWEKA
.

Thank you, @missmatsuko. The button doesn't only look the same, it indeed is the superscript button. And yes, I just took advantage of superscripted texts for footnotes.
This is one of those things I tried to explain in the plugin's disclaimer: "It's intentionally held simple."
But I will see what I can do about it. In worst case I'll just remove the icon and use the "Footnote" label instead.
The second part of your issue is actually a good argument (trademarks, measurements etc.). Didn't think about it earlier. I'll fix that soon.

@missmatsuko I just released an update of the plugin. Now the button icon is a custom one. Be informed, that I used an SVG instead of an icon font or such a thing resulting in an always black icon, even on hovering the button.
I did not update the screenshots, yet. But after installing the plugin you'll notice the new button icon. 🙃
Concerning the coexistence of footnotes and actually super-scripted texts I simply added a new CSS class to the footnotes' <sup> tags. Therefore footnotes won't conflict with regular ´´s any longer.
Unfortunately every footnote has to be marked as a footnote again (manually in CP) after upgrading from Footnotes 2.0.0 to 2.1.0. But since this plugin has just been released yesterday in the Craft Plugin Store it's not in use that often and I hope the impact of that change is low (there are 6 active installs up to now from which I guess they are all test installs for the plugin review, also test installs by myself).
I hope you're fine with it. I close the issue. 🙂
Thanks again for your input.


Can't walk straight line on real bot

Hi, I have been running some test with RDA planner on a diff drive bot - but the mpc output pretty large angular velocity(closer to 1)  even when the bot is very close(e.g. < 0.1) to a straight line ref path.
and it results that the bot would always walk in S rather than straight. (I manually set the angular vel at zero in the first couple secs )
https://github.com/user-attachments/assets/a82b5381-ea13-499c-93c6-de59c9e516e1
I tried to run the same path in Ir-sim, and its easy to achieve and stay at very small ang and dist diff(between ref-path and the bot) so we don't see the same problem there, but on the real bot we often record up to 5-15 deg difference in orientation and the RDA planner seems to be quite sensitive to that and caused some oversteer

Is there any good method that we can adjust the planner's sensitive to the ang and distance diff between the bot pose and the ref-path? I tried different parameters on the MPC init(Max speed[1], Max acce[1]) but  I am worrying that setting those global parameters very low will also affect the agility of the bot on dynamic obstacles. Apprceiate for your attention.

Hi.
Thanks for your interest in our work.
For your situation, I recommend trying the following methods:

First, you can try to lower the value of Max_acce[1]. It will influence the angular velocity output directly.

Please check the distance between the waypoints on the ref path, lower distance will make the robot easier to find proper points to follow. You can use arguments in the function of generate_curve().

Please check and make sure all the orientation angles are within the range of [-pi, pi]

Please check the speed output frequency. If the frequency is less than 10Hz, it may lead to delayed control.

If you worry that the lower value of Max acce[1] affects collision avoidance. You can use the function of update_parameter to adjust this value. For example, if there is no obstacles, you can set a lower value of Max acce[1], vice versa.

Thanks for your reply~
It does look like part of the problem could come from the output frequency as i only manage to get 7 to 11 Hz on my apple M3 after considering obstacles(which i scattered hexagons on lidar points and use them as obstacles to avoid the issue of concave polygons).
For now I am working around the issue by building different profiles of max_acce level and Max min speed,  and switch between them base on the quantity and position of obstacles.

To accelerate computations,  you can also increase the step time (e.g. 3) and decrease the receding number (e.g. 5)

Thanks, will test further base on your hints
I did a hack by calculating the angle difference btw the bot theta and a ref point on the ref path and only allow the bot to turn as much as the diff, in order to keep it walking straigh when the ref path is a straight line.
https://www.youtube.com/shorts/QMy0jSE-qmI


The Members count is not reflected correctly on the Segments list table

Version where bug was found:
v6.0.0
Describe the bug
The Members count is not correctly reflected on the Segments list table when you first visit the Segments root page after refreshing the page.
To Reproduce
Steps to reproduce the behavior:

Go to the Segments root page
Observe that all the member counts are set to zero
Click one of the segments to navigate to the details page
Navigate back to the Segments page
You will see the Members count for only that segment has been updated

Expected behavior
The Members count for all segments should always be correctly reflected, even before navigating to the details page.
Screenshots

Additional context
This issue doesn't occur in Prod UpGrade (v5.2.1). The response data from the /api/segments request includes individualForSegment and groupForSegment in Prod UpGrade, whereas the response data only includes empty subSegments arrays in QA UpGrade.

QA: Passed


Cannot build tensorflow at all

OS/X, building on a branch not master.
After pulling the repo this morning (previous pull 12 hours ago) I can no longer build at all:
ERROR: /Users/davidn/workspace/tensorflowview/tensorflow/tensorflow/core/BUILD:1394:1: no such target '//tensorflow/tools/git:gen/branch_ref': target 'gen/branch_ref' not declared in package 'tensorflow/tools/git' defined by /Users/davidn/workspace/tensorflowview/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted.
``

so it seems like a problem with my git repo.  the gen_git_source.py tool in tensorflow is generating a link to a file in the .git repo that doesn't exist.


Appstudio update devfile-sample-python-basic

Pipelines as Code configuration proposal

Pipelines as Code CI/devfile-sample-python-basic-on-pull-request has failed.

StatusDurationName

✅ Succeeded
33 seconds
appstudio-init

✅ Succeeded
21 seconds
clone-repository

✅ Succeeded
46 seconds
sast-snyk-check

✅ Succeeded
27 seconds
appstudio-configure-build

✅ Succeeded
1 minute
build-container

✅ Succeeded
2 minutes
get-clair-results

✅ Succeeded
33 seconds
sanity-inspect-image

✅ Succeeded
14 seconds
sast-java-sec-check

❌ Failed
13 seconds
sast-go

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
15 seconds
hacbs-test-evaluation

✅ Succeeded
15 seconds
show-summary

Failure reasontask sast-go has the status "Failed":
[gosec] 2022/12/01 07:14:48 Including rules: default
[gosec] 2022/12/01 07:14:48 Excluding rules: default
[gosec] 2022/12/01 07:14:48 No packages found

Pipelines as Code CI/devfile-sample-python-basic-on-pull-request has failed.

StatusDurationName

✅ Succeeded
33 seconds
appstudio-init

✅ Succeeded
21 seconds
clone-repository

✅ Succeeded
46 seconds
sast-snyk-check

✅ Succeeded
27 seconds
appstudio-configure-build

✅ Succeeded
1 minute
build-container

✅ Succeeded
33 seconds
sanity-inspect-image

✅ Succeeded
2 minutes
get-clair-results

✅ Succeeded
14 seconds
sast-java-sec-check

❌ Failed
13 seconds
sast-go

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
15 seconds
hacbs-test-evaluation

✅ Succeeded
15 seconds
show-summary

Failure reasontask sast-go has the status "Failed":
[gosec] 2022/12/01 07:14:48 Including rules: default
[gosec] 2022/12/01 07:14:48 Excluding rules: default
[gosec] 2022/12/01 07:14:48 No packages found


nvidia_x11: 470.63.01 → 470.74

Motivation for this change
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

would you like to be its maintainer?

I don't think so, I am waiting for GPU prices to come back down to MSRP to switch to AMD.
Well maybe on the mean time I could be a temp maintainer; will consider it and create a PR to add myself as a maintainer if so.

/marvin opt-in
/status needs_reviewer

Result of nixpkgs-review pr 138773 run on x86_64-linux 1

6 packages marked as broken and skipped:

linuxKernel.packages.hardkernel_4_14.nvidia_x11
linuxKernel.packages.linux_latest_libre.nvidia_x11
linuxKernel.packages.linux_libre.nvidia_x11
linuxPackages-libre.nvidia_x11
linuxPackages_hardkernel_latest.nvidia_x11
linuxPackages_latest-libre.nvidia_x11

4 packages failed to build:

gwe
python38Packages.TheanoWithCuda
python39Packages.TheanoWithCuda
xpraWithNvenc

23 packages built:

bumblebee
geekbench
linuxKernel.packages.linux_4_14.nvidia_x11
linuxPackages_4_14_hardened.nvidia_x11 (linuxKernel.packages.linux_4_14_hardened.nvidia_x11)
linuxKernel.packages.linux_4_19.nvidia_x11
linuxPackages_4_19_hardened.nvidia_x11 (linuxKernel.packages.linux_4_19_hardened.nvidia_x11)
linuxKernel.packages.linux_4_4.nvidia_x11
linuxKernel.packages.linux_4_9.nvidia_x11
linuxPackages.nvidia_x11 (linuxKernel.packages.linux_5_10.nvidia_x11)
linuxPackages_hardened.nvidia_x11 (linuxPackages_5_10_hardened.nvidia_x11)
linuxKernel.packages.linux_5_13.nvidia_x11
linuxPackages_5_13_hardened.nvidia_x11 (linuxKernel.packages.linux_5_13_hardened.nvidia_x11)
linuxPackages_latest.nvidia_x11 (linuxKernel.packages.linux_5_14.nvidia_x11)
linuxKernel.packages.linux_5_4.nvidia_x11
linuxPackages_5_4_hardened.nvidia_x11 (linuxKernel.packages.linux_5_4_hardened.nvidia_x11)
linuxPackages_lqx.nvidia_x11 (linuxKernel.packages.linux_lqx.nvidia_x11)
linuxPackages_testing_bcachefs.nvidia_x11 (linuxKernel.packages.linux_testing_bcachefs.nvidia_x11)
linuxPackages_xanmod.nvidia_x11 (linuxKernel.packages.linux_xanmod.nvidia_x11)
linuxPackages_zen.nvidia_x11 (linuxKernel.packages.linux_zen.nvidia_x11)
mangohud
nvfancontrol
primus
psensor

The failed to build just looks like non-free.

Note, seems like there is a g-sync issue on this latest release that will render some blank frames from time to time (disabling g-sync makes that go away)


Unable to create Container - Outdated Image

Hi, I am not able to create this container from an older image(8 weeks). Please refer below the output.

Hi,
I noticed that the code was breaking on line 730
if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated -detach -imageName $imageName -parameters $parameters)) {
return
}
I assumed it was because I was running an older image. That is not the case, It was infact a paging issue in Windows 10. You have to select 'System Managed Size' as the paging option under Performance Options. That fixed my issue, and allowed me to create the container after restarting docker.
I hope this thread helps other who may face similar issue.

I noticed you are running Windows 10 1803.
If you upgrade to 1809, you will be able to use process isolation and the much smaller ltsc2019 images.
A lot of issues (like the one you mention here) goes away with 1809 - in fact the combination 1803 and ltsc2016 is the one that caused most problems with our containers.

Thanks for the heads-up, will save our team a great deal of effort knowing this :)


img tag promotion is indiscriminate

The current implementation of Markdown image 'promotion' will promote all img tags in a documents content-HTML, meaning that explicit user-written img tags will get blanket replaced with the inline image template. This is insufficiently inflexible--only Markdown images (![]()) should be promoted in this way.

Interestingly this issue hasn't really hit me so far as the current implementation processes the markdown before Tilt. We will need to switch the order of this and, in that scenario, we'll need to guard against over processing images.

I'm beginning to think this might be a feature?


Remove channelid unique constraint.

Summary
Removes the unique constraint restricting a one to one channel to run mapping.
Ticket Link
Fixes #1560

@trilopin Not sure if we want to hold this one behind a feature flag or not. I don't think this will create any problems on it's own so it should be safe for master.

@trilopin Not sure if we want to hold this one behind a feature flag or not. I don't think this will create any problems on it's own so it should be safe for master.

If we move ahead with the featureFlag, one thing we could move the constraint to application and check with featureflag:

remove unique constraint
create flag linkRunTOExitingChannelEnabled, default = false
if linkRunTOExitingChannelEnabled is false, in service layer CreatePlaybookRun: check for previous runs for the same channelID, if the results are not empty, return 400 error

thoughts?

Talked offline. Going to close this in favor of getting #1549 in quicker.


Add libphonenumber package

Motivation for this change
Adds libphonenumber a handy library to parse and work with phone number of different formats.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

This is my first package contribution here, so I'm sorry in advance if I don't have everything formatted.

Thanks. Please do check https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes.

@GrahamcOfBorg build libphonenumber

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: libphonenumber
Partial log (click to expand)
Cannot nix-instantiate `libphonenumber' because:
error: attribute 'libphonenumber' in selection path 'libphonenumber' not found

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: libphonenumber
Partial log (click to expand)
Cannot nix-instantiate `libphonenumber' because:
error: attribute 'libphonenumber' in selection path 'libphonenumber' not found

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: libphonenumber
Partial log (click to expand)
Cannot nix-instantiate `libphonenumber' because:
error: attribute 'libphonenumber' in selection path 'libphonenumber' not found

@GrahamcOfBorg build phonenumber

Success on x86_64-linux (full log)
Attempted: phonenumber
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9
shrinking /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9/lib64/libphonenumber.so.8.9
shrinking /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9/lib64/libgeocoding.so.8.9
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9/lib64
patching script interpreter paths in /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9
checking for references to /build in /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9...
moving /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9/lib64/* to /nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9/lib
/nix/store/yghg2xxgs6qz87wg0b6cgwd8jmdam3v7-phonenumber-8.9.9

Success on aarch64-linux (full log)
Attempted: phonenumber
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9
shrinking /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9/lib64/libgeocoding.so.8.9
shrinking /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9/lib64/libphonenumber.so.8.9
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9/lib64
patching script interpreter paths in /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9
checking for references to /build in /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9...
moving /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9/lib64/* to /nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9/lib
/nix/store/d14l5lq677lixc3ha8cm3g1r3dvpgqrx-phonenumber-8.9.9

Thanks! Who should I put as the maintainer?

@matthewbauer how would I specify that the directory with the CMakeLists.txt is cpp?

Is it better to have version as an argument to this function? Like { version ? "8.9.9" }? Then it would be easy to build different versions, or my understanding of this is just off.

Nah, Nix doesn't generally handle versions like that. And overriding it like that wouldn't change anything in fact, because the source will still point to the old version. This PR looks good to me like this, thanks :)

Oh wait one more thing: Can you make a first commit for adding you as a maintainer and a second one for adding the package?

Ping

Moving across cities now, I'll try to get to this tonight. Thanks for the
reminder!
On Mon, Aug 13, 2018, 12:57 PM Silvan Mosberger<EMAIL_ADDRESS>wrote:

Ping
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/43397#issuecomment-412607881, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEMoRKGgDpPIuG1Ak4xtYehE9tBMrfglks5uQb4GgaJpZM4VMFvJ
.


Add support for TLS certificate packs

TLS certificate packs (https://api.cloudflare.com/#certificate-packs-properties) are used for managing Cloudflare issued certificates and not currently supported as a resource.
This will need to be added to cloudflare/cloudflare-go first.

cloudflare-go support is being added in cloudflare/cloudflare-go#508

I've started work on this one and currently awaiting entitlements to be provisioned to a test account.

Closed in #778


Please add a LICENSE file

Hello! We'd love to include this repository on https://devlibrary.withgoogle.com but we need the repository to have an explicit LICENSE file (either MIT or Apache 2.0) before we can host the content.
Would you mind adding one? After you do that this link will automatically work (within 24h of the update):
https://devlibrary.withgoogle.com/products/ml/repos/yogeshhk-MidcurveNN

Added MIT License


Start testing immediately when a test is collected (use generator)

contract/tests/token

We can cache preprocessed contracts. It might be tricky to do because we need to detect deploy_contracts.

Duplicate of https://github.com/software-mansion/protostar/issues/259


Migation doc is not up to date

migation doc is not up to date [1]
[1] https://docs.wso2.com/display/IS550/Upgrading+from+a+Previous+Release

Updated [1]
[1] https://docs.wso2.com/display/IS550/Upgrading+from+a+Previous+Release


[EngSys] Move from ts-node to tsx for running mocha tests

Packages impacted by this PR

@azure/app-configuration
@azure/keyvault-keys

Issues associated with this PR
Describe the problem that is addressed by this PR
TS-Node has issues with upstream ESM modules.  Using tsx to replace ts-node and esm modules.
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[x] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

API change check
API changes are not detected in this pull request.


[Feature] Add Minimalist Footer

Description
Hi, I'd like to add a minimalist footer, please assign it to me under JWOC'24.
Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[ ] I am a IWOC'24 contributor.
[X] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Proceed @rishicds


Bundle arithmetic - commonality operator

Since * is for wildcards, it may be worth using & for this now.
module/A & module/B & module/C

would return the intersection of the trace trees.
The hard part here is if intersection needs to take preference in arithmetic ordering, and if so, how we expand wildcards and single module syntax over this ordering.

Implemented in https://github.com/systemjs/builder/pull/107.


Fix https://github.com/SickRage/SickRage/issues/1604

Thanks for the pull request! Before a real human comes by, please make sure your PR has all of the below criteria checked

[ ] Give a description on what the PR is for.
[ ] Make sure your PR is based on the DEVELOP branch
[x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review

Please make sure you also read contribution guide and followed all of the steps.
Thanks!


fix: force spa-init into client symbols in dev builds

Overview
This is a partial fix for this issue: https://github.com/BuilderIO/qwik/issues/4732#issuecomment-1622730320
What is it?

[ ] Feature / enhancement
[ ] Bug
[ ] Docs / tests / types / typos

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Checklist:

[ ] My code follows the developer guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

YES! good fix! i ran into this too! i am gonna add a new e2e tests to catch this!


IGNITE-22669 Change maven.compiler.source to 11

Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist

[ ] There is a single JIRA ticket related to the pull request.
[ ] The web-link to the pull request is attached to the JIRA ticket.
[ ] The JIRA ticket has the Patch Available state.
[ ] The pull request body describes changes that have been made.
The description explains WHAT and WHY was made instead of HOW.
[ ] The pull request title is treated as the final commit message.
The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
[ ] A reviewer has been mentioned through the JIRA comments
(see the Maintainers list)
[ ] The pull request has been checked by the Teamcity Bot and
the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

How to Contribute
Coding abbreviation rules
Coding Guidelines
Apache Ignite Teamcity Bot

If you need any help, please email<EMAIL_ADDRESS>or ask anу advice on http://asf.slack.com #ignite channel.

If it's a final patch for moving to java 11 we should also:

Change ./bin files to check correct java version (11 instead of 8, for example ignite.bat/functions.sh)
Remove java-8 profile from tools/pom.xml
Remove java8 directory from tools module
Change JDK verrsion in all Dockerfiles
Change JDK in deb/rpm packages
Perhaps clean some code for old java versions (for example, GridCleaner.PRE_JAVA9_CLEANER_CLASS_NAME)
Fix cpp/dotnet platforms to use java 11
...

We still have some links to the older java docs.
Do we want to fix them?


Using rowClass can I color the row background color based off of a column value?

I have everything working with my grid at the moment but I can not figure out how to set the background color of the entire row based off of a column value.
Looking at the code below, I want to color each row yellow, or red if EXCEPTION_CODE value is  0 or 1 for that row.  if there is no value for EXCEPTION_CODE then I'm leaving background color white.
I have a feeling I can use rowClass based on other responses I've seen but I have had no luck.. any suggestions?
```js
rowClass: function(item, itemIndex){

},

fields: [
    {name: "LAST_POST", title: "Last Post", type: "text", width: 100},
    {name: "NETWORK", title: "Network", type: "text",  width: 100},
    {name: "NET_NAME", title: "Network Name", type: "text",  width: 100},
    {name: "TERMINAL", title: "Terminal", type: "text",  width: 100},
    {name: "BUILDING", title: "Building", type: "text",  width: 100},
    {name: "ZIP", title: "ZIP", type: "text",  width: 100},
    { name: "IP",
            itemTemplate: function(value) {
                return $("<a>").attr({"href":"http://" + value, "target":"_blank"}).text(value);
            } , width: 100 },
    {name: "MENU", title: "Menu PW Set", type: "text",  width: 100},
    {name: "EXCEPTIONS", title: "Exceptions", type: "text",  width: 100},
    {name: "LAST_UPDATE", title: "Last Update", type: "text",  width: 120},
    { name: "EXCEPTION_CODE" , css: "hide", width : 0  },
    ]

rowClass should return css class based on item values.
Look at this comment as an example https://github.com/tabalinas/jsgrid/issues/518#issuecomment-263086304


Prompt users to install an extension when editor fails to open due to missing fs provider

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Steps to Reproduce:

on desktop I had a RemoteHub repo opened
then I created a new blank profil
reloaded the window and wondered why I got this:

Then I realized... my profile no longer had RemoteHub in it 🤦 and I shot myself in the foot.
I feel like this experience could be improved whenever you don't have the extension required to load the filesystem or a Custom Editor.
The "Try Again" button seems lacking. I wish there was another button that said something like:

oh you have this installed just not in this profile
or
oh you don't have that installed let’s go find that on the marketplace

The best-case scenario would be something like what we do with extension URI handlers--if the desired extension is not already installed, we actually prompt the user to install it, wait for the install to complete, and then actually call its URI handler, so the user never ends up in an error state.

Maybe a simpler change would be to just show another button to search for extensions that provide a file system provider for the extension, if we can query for that.

This issue only covers when there are open editors, but relatedly, @lramos15 we have no handling at the moment for when the explorer stats a workspace folder and it throws due to missing fs provider.
The fs provider can be missing for the following known reasons:

the extension host fails to load (extensionHostWorker fails to download)
the extension host fails to start (e.g. another extension crashes the host)
fetching extension info from the Marketplace API during extension scanning fails due to transient network conditions or service outages
downloading the extension bundle from the VS Code unpackage service fails due to transient network conditions or service outages
the extension itself fails to activate (which happened several times due to proposed API carnage across VS Code versions and the current extension scanning behavior which first loads existing extensions from local cache which may not be compatible with the latest VS Code workbench)

There is currently zero UI indication of what went wrong when any of these cases happens. In all of these cases I think we should display a dialog with something like the following text:
"The workspace folder could not be loaded because the filesystem provider is not available. Please ensure the extension contributing this filesystem provider is installed and enabled. Try reloading the window, or report an issue if this persists."

With options to

open extensions view to search for @installed
reload window
report issue

In all of these cases I think we should display a modal dialog with something like the following text:

Not sure about a modal dialog, but I agree that the explorer showing the entry with yellow exclamation mark can probably be improved. If instead we could show welcome content to guide the user into installing the right extension, would that work?
As for the editor, we can do a similar thing with asking users to check for extensions. The editor pane has support to show errors with actions, see for example:
https://github.com/microsoft/vscode/blob/43db9d2d06df4ff7b7f029b30bbdaea51b8f16f5/src/vs/workbench/contrib/files/browser/editors/textFileEditor.ts#L200-L224
Throwing such an error will show the editor similar to here:

Since you feel strong about it, I suggest you start working on this issue and loop in Logan for the explorer as well.


test: Runtime check that container create succeeds

Had container create fail on local testing, and test was trying to send traffic to non-existing container.
Maybe it helps if we check that container creation succeeds?
Signed-off-by: Jarno Rajahalme<EMAIL_ADDRESS>

/test-runtime

This PR only touches sources used in runtime testa, and the Runtime test succeeded, so good to merge, IMO.


Is it possible to support plist format spritesheet?

Description
Describe your issue here
Development enviroment
Flame version:

Flutter doctor:
 Include your flutter doctor output here

Runtime
This issue is related to running on which platform? (Select all that apply)

[ ] Android :android:
[ ] iOS :apple:
[ ] Web :browser:

Minimal reproducible code (Required for bugs)
Include a minimal code that reproduces the problem add it inline using code block markdown, or a link to Github repository:

Please send your suggestion on our Discord, you can find the join link on the README.
We use github issue for tracking real issues like bugs and problems.
When you join, please explain what do you mean plist format as I am not sure what that means.
Thanks!


remove(vfile): disallow dependency

We are removing DT definition relyng on this rule:
DefinitelyTyped/DefinitelyTyped#56658
This will be no longer need,
Thanks!

/cc @andrewbranch ditto


Billie Environment not quite right.

Describe the bug
Billie environment not displaying correctly. Here's an example.
What the song did look like: https://www.youtube.com/watch?v=J10B_jyAqzY
Here's the song to see how it looks now: https://beatsaver.com/maps/2148c
To Reproduce
Steps to reproduce the behavior:

Go to '...'
DL and Play the map
Compare to example video.
notice that the visuals are off.

Expected behavior
Visuals as displayed in the example video.
Additional context
Yeah, it looks like the channels (or whatever they're called) are off so that the Billie environment no longer displays correctly.

I'm having the same issue. Here's the log from a play session where I started the game, played this level, and exited.

Adding more info to this.
Current behaviour:
The left sunbeams ("_type" : 2) and the right water lasers ("_type" : 11) are always on and are always the orange colour in the default Billie colour palette.
I suspect these issues would be related to the current bugs present in base game on Billie environment for version 1.21.0. The mappings for the rain in base game is not functioning as intended (being tied to the wrong light type) so something in this would likely affect Chroma mappings.

Just gonna add two of my maps that also have this problem, maybe it helps with fixing it i dont know.
https://beatsaver.com/maps/1f7d2
https://beatsaver.com/maps/220e2

I also just noticed that "Water 2" and "Water 3" seem to trigger the sun beams and lasers.

Same beat in the song


subcommand help does not show in color.

I have a subcommand foo, I run myapp help foo, I still can't see any color, even I have the following codes.
    let yaml = load_yaml!("cli.yml");
    let app_m = clap::App::from_yaml(yaml)
        .setting(clap::AppSettings::SubcommandRequired)
        .global_setting(clap::AppSettings::ColoredHelp)
        .get_matches();

the clap version is 2.9.2
Related with issue: https://github.com/kbknapp/clap-rs/issues/538

I just tested this, and I'm not able to reproduce...
Here is the test case I used that worked:
# Cargo.toml
[dependencies]
clap = { version = "*", features = ["yaml"]}

# app.yml
name: yml_app
version: 1.0
about: an example using a .yml file to build a CLI
author: Kevin K<EMAIL_ADDRESS>
settings:
    - ArgRequiredElseHelp

global_settings:
    - ColoredHelp

subcommands:
    - subcmd:
        about: demos subcommands from yaml
        version: 0.1
        author: Kevin K<EMAIL_ADDRESS>
// main.rs
#[macro_use]
extern crate clap;

use clap::{App, Arg, AppSettings};

fn main() {
    let yml = load_yaml!("app.yml");
    let m = App::from_yaml(yml)
        .get_matches();
}

Running myapp help subcmd produces colored help messages.

OK now, with the following lines in the yml file
global_settings:
    - ColoredHelp

:+1:


fix: fix basefee test

Pull request type

Please check the type of change your PR introduces:

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Resolves #308
What is the new behavior?

Other information

Time spent on this PR:  0.1day

So the test skip message was wrong ? Ie the stack was neither the expected nor the output value? (Note: I wrote this skip mark, that’s why I’m asking)

I think the person who wrote the test copy pasted the outputed stack from evm.codes with the same bytecode, which is:
PUSH1 0xa
BASEFEE
STOP

But in our case BASEFEE returns 0, not 10. (For some reason on evm.codes it returns 10)
I modified the test to get rid of PUSH1 0xa (why would we push this?)
And kept only BASEFEE. And in our case it returns always 0.


Samples Have Dependencies not Present in maven Repository[QUERY]

Query/Question
azure-spring-cloud-sample-eventhubs-binder sample have dependencies that have not been updated in mvn repository.
Specifically these are the dependencies:

com.azure.spring:azure-spring-cloud-stream-binder-eventhubs has 2.1.0 while the latest in mvn is 2.0.0 mvn repo
com.azure.spring:azure-spring-cloud-storage has 2.1.0 while the latest in mvn repo is also 2.0.0 mvn repo
Why is this not a Bug or a feature Request?
Not sure if this is intentional and we are required to download the packages manually

Setup (please complete the following information if applicable):

OS: Windows
IDE: Eclipse
Version of the Library used: Latest sample here pom.xml

If we need to download them from somewhere else could we have that in the README as well

Hi @ianlikono , thanks for your reporting. This is because we started to release 2.1.0 of these two packages 3 days ago, so all the code in master branch is just the 2.1.0 version. However, due to some errors of our release pipeline, new packages haven't been published to Maven repository yet.
So if you want to test our 2.1.0 packages, you can clone the master branch and build it locally:
cd sdk\spring
mvn clean install -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -Djacoco.skip=true -DskipTests -Dparallel-test-playback -pl <package-list-you-want-to-build> -am

Otherwise you can use 2.0.0 version.

Hi @ianlikono , thanks for your reporting. This is because we started to release 2.1.0 of these two packages 3 days ago, so all the code in master branch is just the 2.1.0 version. However, due to some errors of our release pipeline, new packages haven't been published to Maven repository yet.
So if you want to test our 2.1.0 packages, you can clone the master branch and build it locally:
cd sdk\spring
mvn clean install -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -Djacoco.skip=true -DskipTests -Dparallel-test-playback -pl <package-list-you-want-to-build> -am

Otherwise you can use 2.0.0 version.

Thanks for the clarification @yiliuTo

Thanks for the clarification @yiliuTo

Closing this issue now.


Using \w in Find dialog doesn't find non-English Unicode characters

Does this issue occur when all extensions are disabled?: Yes

Version: 1.88.0
Commit: 5c3e652f63e798a5ac2f31ffd0d863669328dc4c
Date: 2024-04-03T13:25:57.039Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.5.0-26-generic
Steps to Reproduce:

Create a document containing the word Käse
Open Find dialog, check "Use regular expressions" and enter \w in the Find field

Expected behavior:

All four characters are selected

Actual behavior:

ä is not selected

It is possible that this behavior is by design. In that case the problem is the lack of documentation of the Regex syntax that vscode uses, at least this page doesn't have any details.
Searching on Microsoft's websites reveals this page which suggests that \w should include all lower- and uppercase letters.
I guess the problem is that vscode uses the ECMAScript flavor. So a workaround would be to use [\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}\p{Lm}] to match all upper- and lowercase letters instead of \w.

Yes, that's the root cause and expected behavior - VS Code uses JS RegExp engine for in-editor find/replace.
However, if you only need letter (not 0-9_-) in most cases you should be able to use simpler \p{L} or combine it with other classes


Modals

Okay, this one's particularly crazy. I've been trying to meet the following requirements:

it should be possible to create a modal anywhere under the ModalOverlay component
it should preserve state between open/close, i.e. not be recreated on every open
it should be controlled by a simple boolean variable
it should be reactive to prop changes

From the looks of it, it works.

So you're saying the  has to wrap everything?

Not necessarily everything, the part that will have this gray overlay and a modal in the center. Though in most cases, it will, in fact, wrap everything.
<svelte:body> is not exactly to add modals to the root. In fact, it cannot even have children, unlike <svelte:head>. <svelte:body> is only meant for attaching event handlers to the body element.
<script context="module"> would mean it's impossible to have several parallel ModalOverlays, if one desires. The approach taken with the context is such that only the descendants of the ModalOverlay are aware of anything, and the rest of the tree can be completely independent, and even have another ModalOverlay somewhere. I just think this independence makes it clearer.

The point in using <script context="module"> is to not need ModalOverlay at all. Who even needs multiple ones?
Also, even by wrapping just one component, the overlay covered the entire screen


Invalid request error when using aws cli with s3

I am using the following command to use AWS codedeploy to push things on s3
aws deploy push --application-name aws_test_application  --description "My First Deployment" --s3-location s3://mybucketname/test_project.zip
But I am getting the following error and I am stuck at this, unable to determine whats causing this and how to fix this :(
ERROR: "An error occurred (InvalidRequest) when calling the PutObject operation: Missing required header for this request: x-amz-content-sha256"

Looks like this is a CLI issue.  Would you mind moving this over to https://github.com/aws/aws-cli so we're better able to track this question?
One thing you'll need to provide is the --debug logs, which will give us more information about what the CLI is doing.  Otherwise there's not much to go on.

ok thanks


BsdApi does not allow for unicode characters.

Following the code example in the README.md
apiResult = api.signup_listForms()
tree = ElementTree().parse( StringIO(apiResult.body) )

with an api like cons_getUpdatedConstituents() is vulnerable to non-ascii characters in the output.  Just getting one day's worth of data turned up no fewer than four such records, each of which throws an exception when it is parsed.
This could easily be handled by putting a content-type header in the request including a UTF-8 charset,  I am going to fork this api to do that, and make a pull request if it is successful.

This issue is addressed in https://github.com/bluestatedigital/bsd-api-python/pull/17

This has been addressed and will be released with the python3 release.


Limits for LOS configs are wrong

list_of_speakers_amount_last_on_projector: min: -1, default: 0
list_of_speakers_amount_next_on_projector: min: -1, default: -1

think the autoclose did not work here


Potentially misleading strength indications. eg PW "123456" should be "less than 1s", not "1 day"

While technically the password "123456" or "secret" can be cracked in less than 1 day, many readers will interpret that to mean close to a day, or at least in that order of magnitude.
In reality, such passwords are of course cracked in milliseconds.

Great point.  1 day was the smallest unit in the code.  My thinking was that anything one day or less is never acceptable.  However one goal of Passfault is self-education.  It makes sense to communicate how much more insecure these patterns are. Thanks for the feedback

Cheers.  I wish I had a good proposal for what to actually change it to though.  I'm sure you'll come up with something. :-)   The project's a great concept and very educational.  This one issue's a bit of an edge case, but glad you see it too now.


Check if upload is success

Hi,
Thank you very much for your package, I find it very useful!
I've a doubt..  the save() method return an instance of Intervention/Image/Image, but how can I check if this example has completed succefully?
// resizing an uploaded file
$img = Image::make(Input::file('photo'))->resize(300, 200)->save('foo.jpg');
I though, I could be able to check like this:
if ($img) {
//manage upload
}
Thanks in advance.
Best regards,

I would use something like this:
try {

    $img = Image::make(Input::file('photo'))->resize(300, 200)->save('foo.jpg');

    // do something in case of success

} catch (Exception $e) {

    // do something in case of failure

}

Thank you very much @olivervogel


A step-by-step tutorial with deployment to Azure App service

I created this video as step-by-step with animated workflow, it can help many people
This video will show step-by-step ASP.NET Core development with Deployment to Azure
https://www.youtube.com/watch?v=1QVRe7UHaro

Hi @DevOpsFounder! Thank you for sharing! Surely it'll benefit others visiting this thread and we also encourage you to continue making videos :)
Because this channel is more for driving improvements towards MS Docs, I will now proceed to close this thread. If there are further questions regarding a specific documentation, please reopen it and we will gladly continue the discussion.

Hi @mike-urnun-msft Thanks for your feedback!. Sure


Iterating through object and assigning to its properties leads to 'never'

TypeScript Version:  3.9.2

Search Terms: Type is not assignable to type 'never'
Code
interface TraitsSummary {
  name: string;
  age: number;
  gender: 'male' | 'female' | 'other';
}

type TraitsDetailed = {
    [K in keyof TraitsSummary]: {
      value: TraitsSummary[K];
      common: boolean;
      required: boolean;
    }
}

const values: TraitsSummary = {
  name: 'Default',
  age: 0,
  gender: 'other'
};

const details: TraitsDetailed = {
  name: { value: 'Miranda', common: true, required: true },
  age: { value: 33, common: true, required: true },
  gender: { value: 'female', common: true, required: false }
};

const keys = Object.keys(details) as Array<keyof TraitsSummary>;

for (let i = 0; i < keys.length; i++) {
  values[keys[i]] = details[keys[i]].value;
}

Expected behavior:
TraitsSummary and TraitsDetailed have exactly the same keys.
values of props under the keys have matching types so there shouldn't be any error.
Actual behavior:
Type 'string | number' is not assignable to type 'never'.
  Type 'string' is not assignable to type 'never'.(2322)

Playground Link:
https://www.typescriptlang.org/play/?ssl=31&ssc=2&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgCpTsMBnAygVwFtC4oBPZAbwFgAoZZEOQiALmWzClAHMBuOgzg82jIgCNoA+shEgAJtHYByEgBsIy5AB9kymBHWadegPZgAFtGXSAvnTpgyABxTpMOACIQwmDfOQAXipBBmQAbQBpZFBkAGsIMlMYNAwsPCIScgBddhoZMOQANzg1fFF3dIJiUjIo7OlChgRTYlMQdnFTUw04EEamqAgAR3xgIflO7t7+0IZ7WgW6FpBOYtLy7HZKnGqsimD8hiYWFW94fDUwZQAaUOFRAAY7mTlFKBVzKyhlOltpZbtNaKXzANRbVIebDeUH+IIhGQnUSUdZlUTKACy4z68jgt2QLTaHWQXHKN2QQ1G4wgkxJUHKyFsLyEIjyqPK7AAzJzyYTCO12KSIOTKWMJoL6SgmaE3koqOz0QYjPi+QK6WSKSMxTT2PBwVK-gDaCs1gkyNh4QB5cQAKwgCDAADozdgABQgvzYACUyDgFoAglAMGQADxm5KQqqZWoAPiNMFMUGQro0YBi8MefHTIfiiWwjo0IB4lizwAA1GWfUcFdhwi7wsBstl4R6wbX643so6Smi7EA
P.S.
I have dozens of errors like Type 'some_type' is not assignable to type 'never'.
All of them happens when I'm trying to assign to object property selected by dynamic key.
I fixed some of issues with generics
(<T, K extends keyof T>(obj: T, keys: K[]) => {

                for (let index = 0; index < keys.length; index++) {

                    const key = keys[index] as keyof T;
                    filters[key] = null; // or other actions

                }

})(obj, originalFields);

But that's not working when you need to map values of one object to another regarding keys are same.

This behaviour was introduced here #30769, and has lots of relevant discussion.

@jack-williams Thanks, I'm aware of that change but it didn't give me clear explanation on how to adjust my code to it.
To prevent that code from failing I need a monstrous typescript constructions which decrease a code readability awfully. And sometimes it's just super hard to invent such a construction and I have to put any to save the day.


does it work on local machine or someone with limited resources

does it work on my local machine or is necessary in need GPU for it to run this model?
I tried to load a model on my local machine with 15GB of ram but it's stuck model loading because of the size of the model.
Is there any way to run it on the local machine? if so please guide me on what the additional parameter needs to pass
`
import transformers
import torch
config = transformers.AutoConfig.from_pretrained(
'mosaicml/mpt-7b',
trust_remote_code=True
)
config.attn_config['attn_impl'] = 'triton'
model = transformers.AutoModelForCausalLM.from_pretrained(
'mosaicml/mpt-7b',
trust_remote_code=True,
config=config,
torch_dtype=torch.bfloat16
)
model.to(device='cuda:0')
`

would you please share your line of code if its different from mine

If you are running transformer models locally without GPU, including MPT, you should probably checkout the GGML project. There is an open PR to add support for MPT: https://github.com/ggerganov/ggml/pull/145

Run nvidia-smi to see if something else is also using GPU resources.  On linux, the windowing system can use a few 100 MBs.  I see the hf_chat.py program using 14014MiB with mosaicml/mpt-7b-chat.

@rabsher You mentioned that you have a machine with 15 GB of RAM, and it sounds like with no GPU. I do not think you have enough RAM to use mosaicml/mpt-7b. You might be able to load it w/ 15 GB of RAM, but I don' think you will have enough memory left to actually run it or train it.
The llm-foundry code generally works on my local machine (16GB RAM, no GPUs), but I am limited to using small models.

Closing this issue for cleanup but feel free to reopen @rabsher if you have additional questions.


Change 'Add columns from Freebase' to allow using custom MQL sources.

As discussed on the mailing list, I'd been working on an extension (based on the Freebase one) to allow OpenRefine to read from MQL services other than Freebase.
This commit transfers that functionality to the Freebase extension, including a dialogue to add a new MQL service, and changes to record and display non-Freebase cells generated by the extension.
An Italian translation for a few new phrases is still needed.
It's probably not ideal that this is all one commit, but I did 90% of the work in my extension before moving it across.

:+1: This looks like it is under the extension, so fine for merge I would say. We have other work to do later since the API will be deprecating as well later this year.

It is indeed all under the extension.
Does anyone speak Italian?  There are a few translations that need doing (or not, if this is going to need rewriting in a few months anyway).

I do speak italian if you need some translation. Just tell me what you need
On Apr 20, 2015 12:39 PM, "Matt Blissett"<EMAIL_ADDRESS>wrote:

It is indeed all under the extension.
Does anyone speak Italian? There are a few translations that need doing
(or not, if this is going to need rewriting in a few months anyway).
—
Reply to this email directly or view it on GitHub
https://github.com/OpenRefine/OpenRefine/pull/948#issuecomment-94418789.

Hmm, and I was just getting ready to yank out all the Freebase stuff...  I suppose we could rename it and cut out all the Freebase-specific stuff related to Refinery (QA Data, Load, etc).
I'll do a more thorough review, but some notes to myself in the meantime:

need to update French & Chinese translations (actually looks like they're missing)
double check operation/protocol compatibility

The Freebase extension that this depends on is currently out, but we need to decide if that's the right thing to do (the PR got merged without review). Yanking the whole thing is certainly the easiest approach, but it also removes useful functionality that is still available from Freebase (and, of course, prevents this proposed change).

We had discussion in the mailing list here:
https://groups.google.com/forum/#!topic/openrefine-dev/E8V1ogpzyqo
We may need to extract reusable classes from freebase. @MattBlissett do you have time to do that?

@tfmorris We have source control, so if there are bits and pieces we need later from the extension work, we can always refactor them in for the Knowledge Graph API.  I have actually been using @MattBlissett extension against his Plant List API on a couple of fun projects.  So I would rather just see a broken Freebase menu option and I can deal with the emails regarding that it is a work-in-progress to remove the Freebase guts in a 2.6 minor release later.  Lesser of 2 evils.  KISS principle.

in that case, we might

want to fix the pop up that say the freebase service is not available
add message in the application saying OpenRefine support and this
function will be removed when freebase will be totally discontinued
and some functionality might not work.

On 15-10-15 02:21 PM, Thad Guidry wrote:

@tfmorris https://github.com/tfmorris We have source control, so if
there are bits and pieces we need later from the extension work, we
can always refactor them in for the Knowledge Graph API. I have
actually been using @MattBlissett https://github.com/MattBlissett
extension against his Plant List API on a couple of fun projects. So I
would rather just see a broken Freebase menu option and I can deal
with the emails regarding that it is a work-in-progress to remove the
Freebase guts in a 2.6 minor release later. Lesser of 2 evils. KISS
principle.
—
Reply to this email directly or view it on GitHub
https://github.com/OpenRefine/OpenRefine/pull/948#issuecomment-148479223.

Hi all,
@thadguidry — I'm pleased to hear you were using the service on The Plant List!  Some researchers at @RBGKew and elsewhere were also finding it useful.
I have a new employer; I'm now working for the Global Biodiversity Information Facility (@GBIF).  We're interested in work like this, but it will be several months before there's any time for me to work on OpenRefine or extensions.  By then, I guess the Knowledge Graph API will be released, and there won't be any point keeping MQL.  GBIF's new checklists should also be completed, which would be a good data source.
Thanks.

Closing this as it can no longer be merged after removal of the freebase extension.
A new version of that PR would be welcome, either with MQL or maybe with its more recent successor GraphQL.
Reconciliation services can also expose this functionality directly with https://github.com/OpenRefine/OpenRefine/wiki/Data-Extension-API (see #1179).


Useful env variables from GitHub Actions

@JLLeitschuh requested that I document (on behalf of GitHub) the environment variables available to all GitHub actions that would be important for the new dependency submission API. I'm pulling these from the docs based on my best understanding and prior art, but in the case of GITHUB_JOB and GITHUB_RUN_NUMBER there may be some reasonable alternatives (see this doc for a more complete list).

Variable
Used for

GITHUB_JOB
job.name

GITHUB_RUN_NUMBER
job.id

GITHUB_TOKEN
PAT for submitting the dependencies

GITHUB_REF
For the top-level ref key

GITHUB_SHA
For the top-level sha key

GITHUB_API_URL
The base URL for the submission API

The jobs.html_url can also be constructed using these environment variables: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID


aruco: Error building calibrate_camera.cpp

I've compiled other OpenCV examples with a new install of OpenCV 3.1.0 on OSX 10.11.4, using Xcode 7.3, using default LLVM 7.1 compiler and GNU++11 dialect, libc++ standard library.
However, I cannot compile  calibrate_camera.cpp. These are the errors I get:
calibrate_camera.cpp:176:80: No member named 'create' in 'cv::aruco::DetectorParameters'
calibrate_camera.cpp:208:28: No viable conversion from 'const cv::aruco::Dictionary' to 'Ptr<aruco::Dictionary>'
calibrate_camera.cpp:232:64: No viable conversion from 'Ptr<aruco::Board>' to 'const cv::aruco::Board'
calibrate_camera.cpp:279:67: No viable conversion from 'Ptr<aruco::Board>' to 'const cv::aruco::Board'

Has anyone encountered this or have any ideas?

We can't reproduce this problem:

[ 76%] Building CXX object modules/aruco/CMakeFiles/example_aruco_calibrate_camera.dir/samples/calibrate_camera.cpp.o

http://pullrequest.opencv.org/buildbot/builders/master-contrib-mac/builds/250/steps/compile release/logs/stdio
Try to update to latest version or use the same code tags (3.1.0 or latest master) for example and OpenCV library (cv::getBuildInformation() may help)
Please check that right header files are used (especially in case of several OpenCV installations).
Try to run make VERBOSE=1 and post here a compilation command line.

There is an issue with aruco lib when installing opencv from homebrew. What I figured out are 2 things.
1)The aruco header file from the homebrew install, do not contain the declaration of the DetectorParameters::create function, and it seams that in general it is not implemented neither in the aruco.cpp source.
2)The current SHA of the opencv_contrib master branch is 745b12eed354fa9e9960f5338e111a9d6d684aaf56f34ab38fa92cfeaa533ca6
while homebrew is requesting for and older ef2084bcd4c3812eb53c21fa81477d800e8ce8075b68d9dedec90fef395156e5
and I believe that this is the root of our problem here... Homebrew has to modify the file:
https://github.com/Homebrew/homebrew-science/blob/master/opencv3.rb
Took me hours to figure this out!!

My issue report to Homebrew:
https://github.com/Homebrew/homebrew-science/issues/3588

ef2084bcd4c3812eb53c21fa81477d800e8ce8075b68d9dedec90fef395156e5

@kosmasK, this is not a commit hash, but archive checksum. Brew downloads archive from the releases page and verifies its checksum.
You can pass the --HEAD option to brew to get the latest source version.

Could I disable the aruco module separately when compiling?
I tried cmake -DWITH_ARUCO=OFF but not success. I aso grep aruco in the  opencv_contrib folder and did not find any clue.

@blueardour , try -DBUILD_opencv_aruco=OFF

@mshabunin  I found a easy way, just moved the aruco sub-folder away~  Thanks anyway


osd-provision script terminates shell on error

If you run perf/scripts/osd-provision.sh and something goes wrong, your whole terminal session will go away.  The workaround is to call the script as a background process.

well this is weird, because I have never seen this behavior also in pipeline it works fine.

Just now looking at this again.  It's the update_env.sh that's the culprit - I had taken that from an earlier script in the gitlab repo and didn't look at it closely enough.


Click on element with text

It can be a feature request, if I have a selector with the required text, why I do not have the possibility to click that tag?
What are you trying to achieve?
I want to click in 'td' tag where value is "808482.18"
What do you get instead?
I got
Evaluation failed: DOMException: Failed to execute 'querySelectorAll' on 'Element': '808482.18' is not a valid selector.
    at __puppeteer_evaluation_script__:1:33

Provide test source code if related

clickOnMachineWithRequiredPrice(price = '808482.18') {
    I.click(price, 'td')
  }

Details

CodeceptJS version: 2.6.5
NodeJS Version: v13.11.0
Operating System: mac os

can be implemented as custom helper but not in CodeceptJS API


Inverse Ken Burns Zoom Issue

I tried using an inverse zoom for the Ken Burns effect (Zoom in, not out)
.vegas-animation-customkenburns {
    -webkit-animation: customkenburns ease-out;
            animation: customkenburns ease-out;
}
@-webkit-keyframes customkenburns {
    0% {
        -webkit-transform: scale(1.0);
                transform: scale(1.0);
    }
    100% {
        -webkit-transform: scale(2);
                transform: scale(2);
    }
}
@keyframes customkenburns {
    0% {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
    100% {
        -webkit-transform: scale(2);
                transform: scale(2);
    }
}

While this works, the Image is reset to scale 1.0 just before the transition takes place. Any ideas?

Hello,
Don't know. Perhaps the .vegas-transition-xxxxx-out state start with a scale(1).
Try to add forwards to your animation.

Hi,
don't know why I forgot forwards - of course that did the trick. Thanks!

Great! :)


crashing, need upd class CClientState

https://github.com/spirthack/CSGOSimple/commit/df4bb4ef20aef408b54b8eb2f99fb1637a5d97e8


python311Packages.pyschlage: init at 2023.5.0

Description of changes
Library for interacting with Schlage Encode WiFi locks
https://github.com/dknowles2/pyschlage

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 235976 run on x86_64-linux 1

4 packages built:

python310Packages.pyschlage
python310Packages.pyschlage.dist
python311Packages.pyschlage
python311Packages.pyschlage.dist


Missing client_redirect_url argument from ::MxPlatformRuby::WidgetRequest

Hi - the MX docs show a client_redirect_url field on the Widget Request endpoint, but this library does not expose or support it.
How can one create a widget URL with this field?

@rubendinho sorry for the delay in response. It looks like we missed updating our open api spec with that new field and regenerating these libraries. I'll get with our engineering team tomorrow morning and get this take care of. Thank you for letting us know we were missing the field!

@cerinman - great - thanks for the update!


[questions] transfer module

I have a question.
In the case of transferring tokens through ibc (A chain -> B chain), won't there be a problem if the token is not burned after locking the token in the A chain and after confirming that the B token has been minted?

And where is the code verifying the proof that the token was locked?

The tokens on the source chain (chain A in your example) are sent to an escrow address. The packet commitment is stored here and upon submitting the receive message on the destination chain (chain B in your example), then the packet commitment is verified here.
When the tokens reach the chain B, then vouchers are minted on the destination chain. If the tokens are later on transferred back to chain A, then those vouchers are burnt.
I hope this answers your questions. I will close the issue for now. Feel free to reopen it if something is not clear.

Thank you for answer. I have an additional question, is it not possible to confirm that the A chain sent to the escrow address because it checks the commitment to the packet, but not the contents of the packet?
And even if chain A have actually made a commitment, when chain A receive an ack from the B chain, what happens if chain A return the token without burning it?
Since all packets are stored in state, will someone claim and post-process if something goes wrong?

@crodriguezvega

i cannot reopen this issue

is it not possible to confirm that the A chain sent to the escrow address because it only checks the commitment to the packet, but not the contents of the packet or state of escrow address?

The security model assumes that both chains are running trusted IBC code. One chain, when verifying the packet commitment, trust that the counterparty runs a non-malicious IBC implementation and it trusts that if has escrowed the tokens on its side. Otherwise, actually verifying that the tokens has been escrowed, etc would make the protocol way too complicated.

when chain A receive an ack from the B chain, what happens if chain A return the token without burning it?

This is again related to the security model: we assume that chains are using a compliant implementation of the IBC protocol that is not following malicious behavior. In Cosmos, when chains add new modules, the validators has to approve a proposal, so it's unlikely that validators would vote for a module that is malicious. There can be software bugs, of course, but it's very unlikely that malicious module would get deployed on a chain.

Since all packets are stored in state, will someone claim and post-process if something goes wrong?

The hash of the packet commitment contains the packet data (amount and denom of the tokens that are being transferred) and the relayer needs to send the packet data to the destination. The destination chain will reconstruct the packet commitment and verify that the source chain stored the same packet commitment at a certain block height.
Feel free to ask if you have any more questions.

Thank you for answer!


angular-bootstrap-calendar doesn't show GUI on hibrid app

I'm building a project with Ionic framework for web browser, android and Ios.
Before i add angular-bootstrap-calendar to system. I called
angular.module('mwl.calendar.docs', ['ionic']) => it worked for web browser, android and Ios
But when I add angular-bootstrap-calendar to system as below
angular.module('mwl.calendar.docs', ['ionic', 'mwl.calendar', 'ngAnimate', 'ui.bootstrap', 'colorpicker.module'])
then: it work on web brower (GUI is showed), but doesn't work on Hybird app (android, Ios).
How can I make it work or any solution to workaround?
Framework: Ionic 2.0.0

I have no idea sorry, debug the device and check the console output for any errors. If you're using ionic 2 then this module won't work for it as it's for angular 1 and ionic 2 users angular2 which is a completely different framework.

Actually Ionic 2 uses angular1. And I found out the different between error and no error is "mwl.calendar" mudule.
I don't know why if I add, I could not work on android and Ios

Ionic 2 defo uses angular2: https://github.com/driftyco/ionic/blob/master/package.json#L30

http://ionicframework.com/docs/overview/
Default, Ionic2 uses angularJs. But you can change it by update angular version

Those are the ionic 1 docs, ionic 2 docs are here: http://ionicframework.com/docs/v2/getting-started/migration/
Ionic 2 is built on top of Angular 2, which is a complete rewrite of the original framework.

Sorry for that inconvenience. Actually i'm working on Ionic 1.3.3, and I have found a solution to work it, just ordered libraries again. It seems Android is stricter than Web browser
E:\dev\demo>ionic info
Your system information:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
OS: Windows 7 SP1
Node Version: v4.5.0

Glad you got it sorted 😄


Degree schemes are not centered

As you can see in the pic below, the degree schemes appear next to the 'title' rather than below the modules do with the year.

This is because in the html everything is wrapped in a div with class planner this causes it to inherit the flexbox rules and tries to put all of its immediate children into separate columns.
A fix would either be to change the class to something else or wrap the heading and the core div in another div

I have changed the divs and the screen now looks like this:

Is there any way to have all of it in the center column of the screen?

In the html for that page give the body tag an id say "courses"
Then in the css.
body#courses > div.planner {
    justify-content: center;
}

Make sure this is after the other div.planner rules
On Wed, 2 Mar 2016 12:31 Adam Pohl<EMAIL_ADDRESS>wrote:

I have changed the divs and the screen now looks like this:
[image: image]
https://cloud.githubusercontent.com/assets/8998661/13460469/a739120a-e072-11e5-9745-295e24781977.png
Is there any way to have all of it in the center column of the screen?
—
Reply to this email directly or view it on GitHub
https://github.com/Huaraz2/ModulePlanner/issues/3#issuecomment-191222274
.

This is the current state of the code in index.html:

What do you want me to do in the CSS?

And this is what I have put in the css to get the output above:

I meant to give the body tag an id ie
<body id="courses">
I gave the css code above
On Wed, 2 Mar 2016 12:39 Adam Pohl<EMAIL_ADDRESS>wrote:

This is the current state of the code in index.html:
[image: image]
https://cloud.githubusercontent.com/assets/8998661/13460634/b9cb33fc-e073-11e5-8193-8c41ade11012.png
What do you want me to do in the CSS?
—
Reply to this email directly or view it on GitHub
https://github.com/Huaraz2/ModulePlanner/issues/3#issuecomment-191225421
.

Sorry I missed read the html

My last two screenshots are just to show you what I did to make the output you see below (this is the same as the one I sent earlier):

What do you think of this?

ignore the word test that is above it, I am trying to add a degree title in for the module selector part

Looks good
On Thu, 3 Mar 2016 14:46 Adam Pohl<EMAIL_ADDRESS>wrote:

ignore the word test that is above it, I am trying to add a degree title
in for the module selector part
—
Reply to this email directly or view it on GitHub
https://github.com/Huaraz2/ModulePlanner/issues/3#issuecomment-191795936
.

:+1:  will close this now then


Branch v1.4 implementation for active person

Codecov Report

Merging #255 (68274e7) into master (32f49c5) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #255   +/-   ##
=========================================
  Coverage     75.65%   75.65%
  Complexity      683      683
=========================================
  Files            94       94
  Lines          2009     2009
  Branches        228      228
=========================================
  Hits           1520     1520
  Misses          422      422
  Partials         67       67

Impacted Files
Coverage Δ

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
89.36% <ø> (ø)

Continue to review full report at Codecov.

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


Bug: Error when opening create interface

To reproduice:

open houdini 19.5
create a cube and a camera
select this two objects
open the create interface

there is the same nearly in Nuke

Resolved through another ticket. See this PR : https://github.com/quadproduction/quad-plugins/pull/14


What is the meaning of this parameter lfw_dir ？

Hi, David
When run facenet_train.py , I met a problem :
I get the following error:
Runnning forward pass on LFW images
Traceback (most recent call last):
  File "facenet_train.py", line 340, in <module>
    main(parse_arguments(sys.argv[1:]))
  File "facenet_train.py", line 126, in main
    images_placeholder, phase_train_placeholder, embeddings, nrof_folds=args.lfw_nrof_folds)
  File "/home/dy/tensorflow/facenet-master/facenet/src/lfw.py", line 26, in validate
    emb_array = np.vstack(emb_list)  # Stack the embeddings to a nrof_examples_per_epoch x 128 matrix
  File "/usr/local/lib/python2.7/dist-packages/numpy/core/shape_base.py", line 230, in vstack
    return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: need at least one array to concatenate

What is the meaning of this parameter lfw_dir ？
I noticed that ：--lfw_dir means "Path to the data directory containing aligned face patches."
But i do not understand it , and the default value '~/datasets/lfw/lfw_realigned/' is not exist , run the method  lfw.get_paths() can't get “paths”  lead to validate error
Waiting for your answer.

Hi!
This parameter is used to get evaluation on LFW after each epoch. The plan was to make it possible to run without that evaluation by not setting lfw_dir (i.e. an empty string). But i realize that I haven't pushed that to the master branch yet. You could make the change your self by

adding

if args.lfw_dir:

before
paths, actual_issame = lfw.get_paths(os.path.expanduser(args.lfw_dir), pairs, args.lfw_file_ext)

on line 50 in facenet_train.py

and making sure that lfw_dir is an empty string, e.g. by changing

    parser.add_argument('--lfw_dir', type=str,
        help='Path to the data directory containing aligned face patches.', default='~/datasets/lfw/lfw_realigned/')

to
    parser.add_argument('--lfw_dir', type=str,
        help='Path to the data directory containing aligned face patches.', default='')

on line 331 in the same module.

Thank you for your help !
Now , it run sucessfully !

Close the issue


knex migrate:latest --env development trying to connect to production database.

knex migrate:latest --env development
Using environment: development
Knex:warning - migrations failed with error: ER_BAD_DB_ERROR: Unknown database 'prod'
Error: ER_BAD_DB_ERROR: Unknown database 'prod'

My knexfile.js looks like this:
module.exports = {

  development: {
    ... credentials for 'dev' database
  },

  production: {
    ... credentials for 'prod' database
  }
}

IF I remove production block from config, I get this error:
TypeError: Cannot read property 'client' of undefined
which is clearly references to 'production' block.
Why is it happening? I can set up the prod database locally, but are you sure you want to read the unrelated dbs from production block ?

Issue was in the application code: exatcly with knex = Knex(knexConfig.production) in migration code. Closing.


Product Variance Fonrmatter Example?

Could I please get a product variance frontmatter example?

As replied in Gitter, you can use the Admin plugin to add variations, but also doable manually with for example:
title: 'Product title 2'
price: '19.99'
variations:
    -
        name: Color
        required: false
        options:
            -
                option: Black
            -
                option: White