Allow arbitrary attributes to be added to commands

I still don't approve adding type info back into commands, so I decided to use this solution for allowing arbitrary attributes to be added to commands.
This time I added all the files, and squashed into a single commit.

I don't seem to be able to request a review, so cc @RogueException

Would really love to see this!

Why leave this at attributes? We could have a typed tag collection, which would let people attach any data they want to a command.

How would you attach such arbitrary data to a method command without an attribute?

So presuming that would be some sort of IReadOnlyCollection<TagAttribute> how exactly is that any different from just an IReadOnlyCollection<Attribute>?

So I see your point, but what I initially meant was

Why leave this at attributes? We could have a typed tag collection, which would let people attach any data they want to a command.

It sounded like Volt's implying to use a system other than Attributes, which would work for the builders, but we also have the Class Modules to think about. That's what I was pointing out; as far as I'm aware, you can't attach arbitrary metadata to a method without an attribute.

From what I'm understanding, 'typed tag collection' is essentially synonymous with what's in this PR, except valid for any type. I chose Attribute as the type to use since it can be used in the Fluent interface as well as data annotations (using EF terminology here since it's somewhat similar) without making the code stand out as 'strange' compared to the rest of the code.

Did you not read the chat backlog? Volt said:

I said forever ago that I wanted to expose command builders for normal methods so people could do last minute dynamic changes
While attributes are fine, I see no reason why that be there limitation for tagged data
Mayswell allow any additional data of any type. Normal methods would have their attributes auto added to this collection. Builders could do more custom things

Oh yeah, I remember now. That still doesn't really change the original thought, it just means I need to change a few names.


Where is the assign ?

To everyone else reading this:
Due to lack of respond from the creator of "Godot XR Tools", I have moved on and am currently using "VR Tools" and it works great right out of the box, and I don't even have to deal with setting the collision layers/masks like I have to with "Godot XR Tools", everything just works right out of the box [Arc Navigation/Pickable RigidBody/UI Interaction, WOW !] and I can now get back to my game logic and 3D modeling.

Hey @BracerJack ,
Which is the VR tools you are talking about? Feel free to post a link, choice is good.
Couple of things just in case you're still interested and for anyone else who may run into the same issues.
function_pointer is a function that adds a laser pointer to your player so you can interact with a UI. It does not need to know about the camera so I'm not sure why you are expecting it to ask for one. You can find a little bit more information about it here: https://github.com/GodotVR/godot-xr-tools/wiki/PointerAndUI
The teleport function needs to know about the camera because it moves the player and therefor needs to know the location of the player. The ARVROrigin point only reflects the center of your tracking space and a player can walk away from it.
Most of the functions in the toolkit should now have the correct default layers but it is something you want to be able to override as a game builder.
As a tool builder I can't force you to use my layer setup onto game designers, if they have more complex games they may have very good reasons to assign their own layers.

I'm not sure but i think he's talking about https://github.com/anunknowperson/godot-vr-tools.
It has some neat ideas and features but looks less configurable.
His for example uses groups to determine if a object is grabbable.
Also an improvement I might test out for this is to not use the eular angle but a quat.

Is anyone having issues with Function_Pointer configuration? If not I'm going to suggest closing the issue.

I suggest closing this issue, as it has not had any activity for almost a year.


Simulators with missing gates throw NullReferenceException

Describe the bug
If a simulator in the C# runtime does not implement the interface for a given intrinsic operation / gate, then when the corresponding operation is called from Q#, the simulator throws a NullReferenceException.
To Reproduce
The experimental open systems simulator at https://github.com/microsoft/qsharp-runtime/blob/f6593954ad25658f08e44e03e541d39439c4ba3f/src/Simulation/Simulators/OpenSystemsSimulator/OpenSystemsSimulator.cs#L17 implements the IType1Core interface, but not the IQSharpCore interface, such that the IGate_Z interface is not implemented by Microsoft.Quantum.Experimental.OpenSystemsSimulator. If Z is called from a Q# program, a NullReferenceException is thrown.
Expected behavior
The IType1Core interface should allow for the Z operation to be implemented by the ApplyUncontrolledZ__Body C# method.
Actual behavior
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Quantum.Intrinsic.Z.<get___Body__>b__9_0(Qubit __in__)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Microsoft.Quantum.Simulation.Core.ICallable<I,O>.Apply(I args)
   at Microsoft.Quantum.Synthesis.ApplyDirectly1C.<get___Body__>b__31_0(ValueTuple`2 __in__)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Microsoft.Quantum.Simulation.Core.ICallable<I,O>.Apply(I args)
   at Microsoft.Quantum.Synthesis.Apply1C.<get___Body__>b__15_0(ValueTuple`2 __in__)
   at Microsoft.Quantum.Simulation.Core.OperationPartial`3.<get___Body__>b__22_0(P a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Microsoft.Quantum.Simulation.Core.ICallable.Apply(Object args)
   at Microsoft.Quantum.Canon.ApplyToEach`1.<get___Body__>b__12_0(ValueTuple`2 __in__)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply[GenO](Object args)
   at Microsoft.Quantum.Simulation.Core.GenericCallable.Apply[O](Object args)
   at Microsoft.Quantum.Simulation.Core.GenericCallable.Microsoft.Quantum.Simulation.Core.ICallable.Apply(Object args)
   at Microsoft.Quantum.Characterization.[omitted].<get___Body__>b__30_0(Int64 __in__)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Microsoft.Quantum.Simulation.Core.ICallable<I,O>.Apply(I args)
   at Microsoft.Quantum.Characterization.[omitted].<get___Body__>b__11_0(ValueTuple`2 __in__)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Microsoft.Quantum.Simulation.Core.ICallable<I,O>.Apply(I args)
   at Microsoft.Quantum.Experimental.[omitted].<get___Body__>b__23_0(ValueTuple`2 __in__) in [omitted]
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Microsoft.Quantum.Simulation.Core.ICallable<I,O>.Apply(I args)
   at Microsoft.Quantum.Experimental.[omitted].<get___Body__>b__12_0(QVoid __in__) in [omitted]
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply(I a)
   at Microsoft.Quantum.Simulation.Core.Operation`2.Apply[GenO](Object args)
   at Microsoft.Quantum.Simulation.Common.SimulatorBase.Execute[T,I,O](I args)
   at Microsoft.Quantum.Simulation.Common.SimulatorBase.<>c__DisplayClass64_0`3.<Run>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Quantum.EntryPointDriver.Simulation`3.RunSimulator(IEntryPoint`2 entryPoint, ParseResult parseResult, Func`1 createSimulator)
   at Microsoft.Quantum.EntryPointDriver.Simulation`3.Simulate(DriverSettings settings, IEntryPoint`2 entryPoint, ParseResult parseResult, String simulator)
   at Microsoft.Quantum.EntryPointDriver.Driver`3.Simulate(ParseResult parseResult, String simulator)
   at System.CommandLine.Invocation.CommandHandler.GetResultCodeAsync(Object value, InvocationContext context)
   at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__20_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass24_0.<<UseVersionOption>b__0>d.MoveNext()--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__21_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__19_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__11_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass13_0.<<UseExceptionHandler>b__0>d.MoveNext()

Additional context
Looking at Z.g.cs, the issue seems to be the use of as to cast the operation factory to an IGate_Z instance:
// Z.g.cs
public Z(IOperationFactory m) : base(m)
{
    this.Gate = m as IGate_Z; // this cast fails, but doesn't throw immediately
}
private protected IGate_Z Gate
{
    get;
}
public override Func<Qubit, QVoid> __Body__ => (__in__) =>
{
    var qubit = __in__;
    Gate.Z__Body(qubit); // 💣
    return QVoid.Instance;
}

As @swernli pointed out in offline discussion, the issue can be mitigated by modifying *.csproj files:
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210223170-alpha">
    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>netcoreapp3.1</TargetFramework>
        <DefaultSimulator>Microsoft.Quantum.Experimental.OpenSystemsSimulator</DefaultSimulator>
        <IncludeQSharpCorePackages>false</IncludeQSharpCorePackages>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Microsoft.Quantum.EntryPointDriver" Version="0.15.210223170-alpha" />
        <PackageReference Include="Microsoft.Quantum.Type1.Core" Version="0.15.210223170-alpha" />
    </ItemGroup>
</Project>

@swernli Is the reason that this resulted in a runtime failure for Chris that the project originally included the Q# core package by default? Even so, I am a bit confused why this was a runtime failure?

Yes, that's correct. The new simulator was written against an alternate target package, but without IncludeQSharpCorePackages being set to false the wrong target package is loaded and unsupported intrinsics are invoked. Once we have automatic target package selection, this problem will be further mitigated, but for dev/test scenarios and bring up of new simulators, it would be better to fail earlier instead of later.

The proposed fix here would be updated this line https://github.com/microsoft/qsharp-runtime/blob/main/src/Simulation/CSharpGeneration/SimulationCode.fs#L940 so that instead of generating lines like this:
this.Gate = m as IGate_Exp;

it generates lines like this:
this.Gate = (IGate_Exp)m;

So that the cast fails immediately instead of producing a null that then fails later.


Create setting ID to 0 if primary field not auto-increment

Given the following model:
type Foo struct {
        ID int
}

Backed by the following table with a primary key without auto-increment (in MySQL)...
CREATE TABLE `foos` (
  `id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1

The following call to create will wipe out the value set for Id
foo := Foo{ID: 23}

fmt.Println("ID before Create:", foo.ID)
err = db.Debug().Create(&foo).Error
if err != nil {
        log.Fatal(err)
}
fmt.Println("ID after Create:", foo.ID)

Producing the following output:
ID before Create: 23
(/redacted/isolate.go:46) [2015-04-14 18:35:56]  [0.71ms]  INSERT INTO `foos` (`id`) VALUES ('23')
ID after Create: 0

From my research, the problem seems to lie in callback_create.go's function Create:
    if scope.Dialect().SupportLastInsertId() {
      if result, err := scope.SqlDB().Exec(scope.Sql, scope.SqlVars...); scope.Err(err) == nil {
        id, err := result.LastInsertId()
        if scope.Err(err) == nil {
          scope.db.RowsAffected, _ = result.RowsAffected()
          if primaryField != nil {
            scope.Err(scope.SetColumn(primaryField, id))
          }
        }
      }

Note how the value of result.LastInsertId is used for the "primaryField". This value will, in the case described, not reflect the value of the inserted Id.

I get this CREATE TABLE foos (id int AUTO_INCREMENT , PRIMARY KEY (id))
with this script, could you please try it:
package main

import (
	_ "github.com/go-sql-driver/mysql"
	"github.com/jinzhu/gorm"
	_ "github.com/mattn/go-sqlite3"
)

type Foo struct {
	ID int
}

func main() {
	// DB, _ := gorm.Open("sqlite3", "/tmp/gorm.db")
	DB, _ := gorm.Open("mysql", "gorm:gorm@/gorm?charset=utf8&parseTime=True&loc=Local")
	DB.Debug().DropTable(&Foo{})
	DB.Debug().AutoMigrate(&Foo{})
}

In your example you're creating an auto-incrementing ID column. The bug is when there is NOT an auto-incrementing ID column - in that case the specified ID gets overwritten.

How did you created the table that without the auto-incrementing option? and of course, if it is not auto-incrementing, you have to specify an ID for it when creating a new record

Please see the issue I posted above. The SQL snippet is how to create a table and in my code I explicitly set the ID. I have also quoted the GORM code where the bug overwrites the ID I set.


Models for pathway

Dear All,
I tried MetGEMs and got ec and ko terms. could you please tell which model can be used to get the predicted pathways?

@MonicaSteffi
Pathway implication is not implement yet since I am not so sure which is the best way to do it.
In our experiment, I grabed EC number -> pathway map file from PICRUST2's repository thisfile and mapped the calculated EC abundance to it. The pathway abundances can be calculate using either sum/average/median/harmonic mean of all mapped genes.
Hope that help,
Preecha

@MonicaSteffi
Pathway implication is not implement yet since I am not so sure which is the best way to do it.
In our experiment, I grabed EC number -> pathway map file from PICRUST2's repository (thisfile) and mapped the calculated EC abundance to it. The pathway abundances can be calculate using either sum/average/median/harmonic mean of all mapped genes.
I did most of my work in pandas, but it should be doable in excel.
Hope that help,
Preecha

Thank you. Ill try it by myself


Fail to download permutation graph file with urlretrieve

The file is .json.bz2, it deprecates after downloaded.

@cthoyt Here is one link of the permutation file.
https://github.com/dhimmel/integrate/blob/master/data/permuted/hetnet_perm-1.json.bz2

Probably closed with https://github.com/lingling93/comparison/commit/ef589df466a05ba2ef26b09028f12c2afb5f0409


Null Safety

Flutter 2 is now out and comes with null safety. Any plans to support them? Thanks!

Hello! Yes, I will update this plugin to support it. I will do my best to do it by the end of this weekend, but if I don't get to then it will be done next week.

@derTuca awesome! Thanks! :)

Released 3.0.0-nullsafety.0 to address this. If you find something wrong, please open another issue. Thanks!

Awesome! Thanks @derTuca for the hard work!


fix(slos): Use apiserver_request_sli.* metrics

Since the k8s-mixin is moved to using the SLI.* metrics, can we change the default SLOs to use the SLI.* metrics? Is it set/pinned to support older k8s versions (https://github.com/pyrra-dev/pyrra/pull/915/commits/12e7e5eab303b1707a5af1ad580109e95fe45918)?

@metalmatze could you take a look when you find time? :bow:


Warnings for the mail feature

In set Connections
Apr 06, 2018 3:32:53 PM javax.mail.Session loadResource
WARNING: expected resource not found: /META-INF/javamail.default.providers
Apr 06, 2018 3:32:53 PM javax.mail.Session loadResource
WARNING: expected resource not found: /META-INF/javamail.default.address.map
Apr 06, 2018 3:33:03 PM seedu.address.MainApp stop

fixed error


Exposing distro GUID in the registry

This allows for ensuring continuity of a distro, i.e. ensuring that a distro with a certain name is the same as last time you checked.
WSL-316

For some reason the fake distro GUID test sometimes fails because it doesn't error out. Working on it...

For some reason the fake distro GUID test sometimes fails because it doesn't error out. Working on it...

Fixed in #33. There was a collision between the names of realDistro and fakeDistro.


readme for kmp algorithm

Description
Readme for kmp algorithm.
Domain
README
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

/assign


Commit graph out of order

We've come across an issue where the commit graph seems to be sorting based on user rather than date. It will show several weeks of commits by user 1, then by user 2,  then hundreds of commits by user 3 etc.
I expect it to show commits in date order - allowing it to be clear which users are currently active on which branch.
This seems to have originated due to the fixes in issues #24 and #64 where --topo-order is added.
Indeed, running git rev-list --branches=* --tags=* --topo-order --pretty | head -n 100 reproduces the incorrect (IMHO) order, but git rev-list --branches=* --tags=* --date-order --pretty | head -n 100 provides what I expect.
If my expectations do not match those of other plugin users, would it be possible to have a configuration option to specify what to sort by?

I agree with @dezzak that "--date-order" makes more sense, that's why my own add-on (Bit-Booster Commit Graph And More) does "--date-order".
But I specified "--topo-order" in my pull-request for issues #24 and #64 because that preserved the existing behavior for this add-on more closely.

Yea I think that makes more sense as well. Or at least date-order as default with an option to toggle topo-order.

If someone really wanted "--topo-order" they could rebuild from source.   One of the nice things about your add-on is that it doesn't take any config at all!

Rebuilding from source is not trivial especially if there are no Java experts on your team.

This repo is being archived. Thanks for your support along the way!


Create Publications Page

[x] Create page similar to Quodl blog
[x] Look into how client wants 'view all posts' to work, on Quodl this is done with pagination but in our designs, it looks as if the user would see all posts at once, currently no design for how viewing all posts would appear
Looking into search functionality first #21

@parkhabit I think the question you asked me this morning on this was slightly different to what is seems you're asking above. Could you pull out the question so I know I'm answering the right thing please? 😊

View all posts button will work by literally showing all the posts, as there is never going to be a huge number of publications.

This page errors and doesn't load (not a 404 like with http://best-evidence-site.herokuapp.com/blog for example).

This line appears to be what is causing the pages to crash.
Will look into what is wrong here.

The page error seems to be now fixed.
The issue was in the naming convention of best-evidence, bestEvidence as one word had to be used instead. As apostrophe considers a hyphenated word to be two separate words.


Using with protocol doesn't work

The following should work but doesn't (work relu function):
x = tfe.define_private_variable(tf.constant([1,2,3,4]))
y = tfe.define_private_variable(tf.constant([1,2,3,4]))

with tfe.protocol.Pond():
    print(tfe.relu, tfe.get_protocol())
    approx = tfe.relu(x)

with tfe.protocol.SecureNN():
    print(tfe.relu, tfe.get_protocol())
    exact = tfe.relu(y)

Instead you currently have to do:
x = tfe.define_private_variable(tf.constant([1,2,3,4]))
y = tfe.define_private_variable(tf.constant([1,2,3,4]))

tfe.set_protocol(tfe.protocol.Pond())
print(tfe.relu, tfe.get_protocol())
approx = tfe.relu(x)

tfe.set_protocol(tfe.protocol.SecureNN())
print(tfe.relu, tfe.get_protocol())
exact = tfe.relu(y)

This should be easy to make.  Let's try to hold off on it until the style guide fixes are in? (#424)

Yeah I agree on both accounts

@mortendahl can you provide more details around why we need to make this change and how to do it?

Mixing functionality has been on the map for a while, definitely something we want. This fits into the refactoring work though.

Should have been fixed as part of https://github.com/tf-encrypted/tf-encrypted/pull/755


test

@bestksl please delete this branch if not used by everyone.
I suggest to not keep the local branches in github (unless for archiving purposes)


Add HDFS Binary to PATH to enable use of Mesos Fetcher and to run hadoop fs commands from any slave / Exit if there is an error creating sym link

Should fix https://github.com/mesosphere/hdfs/issues/54
cc @tnachen or others, please take a quick look

This should close https://github.com/mesosphere/hdfs/issues/10. Please take a look @adam-mesos , @rubbish, @nicgrayson. thx!

LGTM


Optimize magic-wormhole CLI image

Since #15, we've been using this new image (mostly in our private mw-project repository) and saving some build time.
Although the way this image is built (PyPy) is not optimal (was just inspired from the existing ones: mailbox and relay):

The current size is 1,5 GB!
And as commented here:

you pay a startup-time penalty for using PyPy and it's unlikely to reap any JIT rewards in the (relatively) short time that it runs

I propose to consider using python:3.9.16-slim-bullseye instead of pypy:3.9-7.3.9-bullseye.

The new image has been published in Docker Hub and the compressed size went from 525MB to 63MB!


Support Request: fail to use accessories

Describe Your Problem
sudden connection failure
Relevant log output
came home today and fall to use accessories at home.
getting error in home bridge log like this
[SwitchBot] Forbidden, The request has been authenticated but does not have appropriate permissions, or a requested resource is not found,
            statusCode: 403
tried re-logging and even re-installing switchbot plugin. did not work
please help

Config for homebridge-switchbot
{
    "name": "SwitchBot",
    "credentials": {
        "token": "***",
        "secret": "***",
        "notice": "Keep your Token & Secret a secret!"
    },
    "_bridge": {
        "username": "0E:54:5A:BB:26:87",
        "port": 59085
    },
    "platform": "SwitchBot"
}

Screenshots
No response
Device & Model
Mac mini 2018 Sonoma 14.5
Node.js Version
v20.16.0
NPM Version
v10.8.1
Homebridge Version
v1.8.5
Homebridge SwitchBot Plugin Version
v4.1.5
Homebridge Config UI X Plugin Version
No response
Operating System
macOS

This is a duplicate of #1137


Azure Image Builder related resources custom tagging

During the build process, the Azure Image Builder creates some resources (a resource group, storage account etc.). Is there any way to provide custom tags for these resources? We have a policy assigned at the subscription level that prevents the creation of resources without specific tags and it causes the image build process to fail.

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

ID: c0b40c35-05a3-a82d-a887-d393fff29536
Version Independent ID: 607c9388-c173-882c-cc45-bb0a8b5ac1ac
Content: Create a Windows VM with Azure Image Builder using PowerShell - Azure Virtual Machines
Content Source: articles/virtual-machines/windows/image-builder-powershell.md
Service: virtual-machines
GitHub Login: @kof-f
Microsoft Alias: kofiforson

Thanks for the feedback! We are currently investigating and will update you shortly.

@GrzegorzHejman Thank you for your query!!!
One method I can think of is to make use of Builder Template deployment which you can modify during deployment process to tag the resources created during deployment.
Template Link here : https://docs.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-json
For adding tags you can follow something as mentioned here.
Hope it helps!!!

@GrzegorzHejman Hope the provided information is helpful.
We will now close this issue. If there are further questions regarding this, please tag me in a comment. I will reopen it and we will continue the discussion.

@psmanhas Unfortunately, adding tags to the ARM template will only add them to the image template and the image version resources. This will not affect the resource group (named "IT-....") and the storage account within that resource group. Both of those resources are created automatically by the image builder service when you deploy the ARM template using the New-AzResourceGroupDeployment cmdlet. The resource group gets "createdBy: AzureVMImageBuilder", "imageTemplateName: ", "imageTemplateResourceGroupName: ", and the storage account gets "createdby: azureimagebuilder", "magicvalue: ...." tags.
Is there any way to control the tags which are created for these two resources? The policy assigned to the subscription will prevent the creation of these resources if we can't add the required tags to the resource group and the storage account.

@psmanhas Can you reopen this issue as the provided method won't work?

@GrzegorzHejman Thank you for your inputs!!! I am reopening the issue and I have reached out to internal team on this to get better insights.
Thanks

Hey @GrzegorzHejman, the AIB service does not allow Customer specified tags but it does specify its own. As you mentioned the AIB service created its resources with the tag: "createdBy": "AzureVMImageBuilder". You are also right the current Tag property that is used in the template is for the image generated by AIB only.
We are tracking the need for custom tags to be added to the resources created by AIB, but we don't have an ETA yet. As a workaround is it possible to edit your Azure policy to allow the creation of resources with the tag "createdBy": "AzureVMImageBuilder"? This should solve your problem until we can get custom tags functionality added to the resources created by AIB.

Thanks, @kof-f . We will go with the workaround until the custom tags functionality is added.


Fix index create syntax and promises (resp) handling

better to have a pull request a then sending you comments :)
index creation with elasticsearch.js from:
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-indices-create
i took the promise syntax from:
https://github.com/elastic/elasticsearch-js
Thanks for this plugin!

Much Appreciated Yoni!


Can´t use HtmlReplaceWebpackPlugin

I want to use HtmlReplaceWebpackPlugin but i get this error:
Please ensure that html-webpack-plugin was placed before html-replace-webpack-plugin in your Webpack config if you were working with Webpack 4.x!
Of course i try to put in the correct order:
   config.plugins.push(
          new HtmlWebpackPlugin({
            inject: true,
            chunks: ["index"],
            template: paths.appHtml,
            filename: 'index.html',
          }),
          new HtmlWebpackPlugin({
            inject: true,
            chunks: ["market"],
            template: paths.appHtml,
            filename: 'market.html',
          }),
          // Replace html contents with string or regex patterns
          new HtmlReplaceWebpackPlugin([
            {
              pattern: /(<!--\s*|@@)(css|js|img):([\w-\/]+)(\s*-->)?/g,
              replacement: function(match, $1, type, file, $4, index, input) {
                console.log("not work", match);
              }
            }
          ])
        );

Closing this as no one picked it up and this is a config question vs a bug with this repo.


Replace LightGraphs by Graphs, fix deprecations, update compat

LightGraphs has been renamed to Graphs (without change in functionality)
there were two deprecation warnings in the tests that I fixed
updated SpecialFunctions compat

I had to remove on test that relies on simulation/estimation. Since Travis CI has not run in a while I am not sure if this is an actual regression.

I moved CI from travis to GHA.

rebased and closed/reopened to trigger CI

The failed test on latest and nightly is the same as before this PR

see #272

rebased again

@greimel Thanks!
Let me merge this.

Thanks! Would you mind releasing a new version as well? (I've already incremented the version number)


OneLondon: All Home buttons should forward users to Landing page

At the moment Home (icon) button and logo near it forward users to Landing page:

But Home button in breadcrumb:

forward user to search on MPV page:

@PhilBarrett now Home button in breadcrumb forward user to Landing page

Reviewed and closing, thanks


Replaced getsentry/action-github-app-token@v3 with actions/create-github-app-token@v1

#3187  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CatChen and the rest of your teammates on  Graphite


python311Packages.pydrawise: 2024.3.0 -> 2024.4.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.pydrawise is: Library for interacting with Hydrawise sprinkler controllers through the GraphQL API
meta.homepage for python311Packages.pydrawise is: https://github.com/dknowles2/pydrawise
meta.changelog for python311Packages.pydrawise is: https://github.com/dknowles2/pydrawise/releases/tag/2024.4.0
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2024.4.0 with grep in /nix/store/x2wc0i0530ahsjs2p9j3y6vp8zvdcp9m-python3.11-pydrawise-2024.4.0
found 2024.4.0 in filename of file in /nix/store/x2wc0i0530ahsjs2p9j3y6vp8zvdcp9m-python3.11-pydrawise-2024.4.0

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

home-assistant-component-tests.hydrawise
python311Packages.pydrawise
python312Packages.pydrawise

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/x2wc0i0530ahsjs2p9j3y6vp8zvdcp9m-python3.11-pydrawise-2024.4.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.pydrawise https://github.com/r-ryantm/nixpkgs/archive/265ed46b853a3f75e4a2d6567de3de8827489d46.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/265ed46b853a3f75e4a2d6567de3de8827489d46#python311Packages.pydrawise

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/x2wc0i0530ahsjs2p9j3y6vp8zvdcp9m-python3.11-pydrawise-2024.4.0
ls -la /nix/store/x2wc0i0530ahsjs2p9j3y6vp8zvdcp9m-python3.11-pydrawise-2024.4.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.hydrawise
python311Packages.pydrawise
python311Packages.pydrawise.dist
python312Packages.pydrawise
python312Packages.pydrawise.dist

Maintainer pings
cc @fabaff for testing.

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

5 packages built:

home-assistant-component-tests.hydrawise
python311Packages.pydrawise
python311Packages.pydrawise.dist
python312Packages.pydrawise
python312Packages.pydrawise.dist


Display title on top of the tabs name

Hi All !
Is there a way to display a general title on top of the tab's names ?
I tried to define a title when I am building my Navigation Bar programmatically, but no title is showing on top of mu three tab's names.
I suspect what I am doing does not work because the  SwipeViewController uses the Navbar's Title to display tab's names.
Thanks !

Yes, you are right. If you want to display the title, you don't have to subclass navigation controller.
You can definitely use the code and implement it for your situation (again, without subclassing navigation controller)


Cleanup the base lookup cluster wide config docs

@drcrallen 👍  in that this is an improvement, although IMO the clearest way to explain this stuff would be for the examples to all use lookup extractors that really exist (like "map" and "cachedNamespace"). If the examples do not use cachedNamespace then ideally there should be a link to the extension doc near the examples where those kinds of lookups can be used (sorta like how the deep storage page links to s3/hdfs extensions)

I think all the framework all examples with a single lookup should use map and and the example with many lookups should have a map, cachedNamespace, and a made up lookup.
I think it is ok to show a cachedNamespace example in the core docs just like it is ok to have a made up example.

@gianm moved examples to map

@drcrallen added test

👍

👍

@drcrallen remember to backport


typescript example blog rendering of audio player and code block

A real example from a blog with next js, typescript and sanity of how to render audio player and code block would be very helpful. If anyone has an example, it would be greatly appreciated, since I find the @portabletext/react guides a bit difficult to understand. Thank you very much.

Any luck with this yet? I'm also having a similar issue.


made changes with height and projectCard

--added border radius for project card
--replaced height with padding

already looks way better. Are we ready for merge or are you doing more changes?

already looks way better. Are we ready for merge or are you doing more changes?

Not really

Not really

you can merge it thanks

Thanks for your contribution!


Jv update collector version processes listening on ports

Description
Updates the collector version so that it reports processes listening on ports. This is behind a feature flag which is disabled by default.
Checklist

[ ] Investigated and inspected CI test results

Testing Performed
CI is sufficient

/test gke-postgres-upgrade-tests


CHECKPOINT_DIR Issue

Getting a KeyError on account of ""
Can't access the path checkpoint_dir = str(Path.cwd() / "checkpoints-synthetics")

Hi. @erinkhoo can you share the code cell you have for creating the config template dict?
You may need to do a:
config_template["checkpoint_dir"] = checkpoint_dir
After creating the template dict.

@Ab-Abdurrahman I thought that's what was patched by this PR https://github.com/gretelai/gretel-blueprints/pull/35

@johntmyers I see from the PR. Sorry, I am using the Colab notebook from https://console.gretel.cloud/ for my work I think it is not updated from there.


Discrepancy in expected Nullness checks when upgrading from v0.8.0 to v0.9.+

[x] If you think you found a bug, please include a code sample that reproduces the problem. A test case that reproduces the issue is preferred. A stack trace alone is ok but may not contain enough context for us to address the issue.

[x] Please include the library version number, including the minor and patch version, in the issue text.

Current Production Version of NullAway: v0.8.0
Attempting to move to NullAway: v0.9.9
Tests performed on NullAway: v0.9.0 and v0.9.9 (with same result)
Errorprone Version: 2.4.0
Bazel Version: 5.0.0
We are currently trying to migrate to v0.9.9 so we can upgrade our Guava version (see: #628), however, when we attempted to upgrade, we got the follow error message from Bazel:
mypackage/MyClass.java: warning: [NullAway] passing @Nullable parameter 'id' where @NonNull is required
      builder.setId(id);

On the code:
    // Truncated for security reasons
    } else if (!Strings.isNullOrEmpty(id)) {
      builder.setId(id);
    }

After digging for a while, I was able to pin the issue down to us including com.google.common in our AnnotatedPackages flag - after removing it, it worked. However, that removed NullAway's ability to check against Guava's annotations. I wasn't able to find where in NullAway this discrepancy was occurring, but I was able to put together a set of tests that have contradicting results.
Thanks in advance! 😄
Reproducing code samples in test format:
Example 1: This example fails, however, we are checking a's Nullness Strings.isNullOrEmpty - this works as expected in v0.8.0, but fails in v0.9.+. This is the issue we ran into in CI while trying to upgrade.
  @Test
  public void shouldPass_nestedCallWithIsNullOrEmptyAndAddedAnnotatedPackages() {
    // This test fails tho it is properly guarded
    makeTestHelperWithArgs(
            Arrays.asList(
                "-d",
                temporaryFolder.getRoot().getAbsolutePath(),
                "-XepOpt:NullAway:AnnotatedPackages=com.uber,com.google.common"))
        .addSourceLines(
            "Test.java",
            "package com.uber;",
            "import javax.annotation.Nullable;",
            "import com.google.common.base.Preconditions;",
            "import com.google.common.base.Strings;",
            "class Test {",
            "  private void foo(@Nullable String a) {",
            "    if (!Strings.isNullOrEmpty(a)) {",
            "      a.toString();",
            "    }",
            "  }",
            "}")
        .doTest();
  }

Example 2: This example passes, however, we've removed com.google.common as a properly annotated package.
  @Test
  public void shouldPass_nestedCallWithIsNullOrEmptyAndNoAddedAnnotatedPackages() {
    // This test passes, but we're no longer checking Guava
    makeTestHelperWithArgs(
            Arrays.asList(
                "-d",
                temporaryFolder.getRoot().getAbsolutePath(),
                "-XepOpt:NullAway:AnnotatedPackages=com.uber"))
        .addSourceLines(
            "Test.java",
            "package com.uber;",
            "import javax.annotation.Nullable;",
            "import com.google.common.base.Preconditions;",
            "import com.google.common.base.Strings;",
            "class Test {",
            "  private void foo(@Nullable String a) {",
            "    if (!Strings.isNullOrEmpty(a)) {",
            "      a.toString();",
            "    }",
            "  }",
            "}")
        .doTest();
  }

The following two examples are synthetic examples to show the discrepancy.
Example 3: This example passes, but should fail. Without com.google.common as a properly annotated package, we pass @Nullable String a to BigDecimalMath.roundToDouble which is in a class marked with @ElementTypesAreNonnullByDefault.
  @Test
  public void shouldFail_callGuavaWithConflictingAnnotations() {
    // This test passes, even tho `roundToDouble` expects NonNull
    makeTestHelperWithArgs(
            Arrays.asList(
                "-d",
                temporaryFolder.getRoot().getAbsolutePath(),
                "-XepOpt:NullAway:AnnotatedPackages=com.uber",
                // Adding AcknowledgeRestrictiveAnnotations to make sure
                "-XepOpt:NullAway:AcknowledgeRestrictiveAnnotations=true"))
        .addSourceLines(
            "Test.java",
            "package com.uber;",
            "import javax.annotation.Nullable;",
            "import com.google.common.math.BigDecimalMath;",
            "import java.math.BigDecimal;",
            "import java.math.RoundingMode;",
            "class Test {",
            "  private void foo(@Nullable BigDecimal a) {",
            "    BigDecimalMath.roundToDouble(a, RoundingMode.UP);",
            "  }",
            "}")
        .doTest();
  }

Example 4: This example fails, with com.google.common as a properly annotated package - this behaves as we expect in both v0.8.0 and v0.9.+, and this is the result we would expect. However, this now contradicts the result in Example 1.
  @Test
  public void shouldFail_callGuavaWithConflictingAnnotationsAndAddedAnnotatedPackages() {
    // This test performs as we would expect, fails since `a` is marked nullable and
    //  BigDecimalMath expects NonNull by default
    makeTestHelperWithArgs(
            Arrays.asList(
                "-d",
                temporaryFolder.getRoot().getAbsolutePath(),
                "-XepOpt:NullAway:AnnotatedPackages=com.uber,com.google.common"))
        .addSourceLines(
            "Test.java",
            "package com.uber;",
            "import javax.annotation.Nullable;",
            "import com.google.common.math.BigDecimalMath;",
            "import java.math.BigDecimal;",
            "import java.math.RoundingMode;",
            "class Test {",
            "  private void foo(@Nullable BigDecimal a) {",
            "    BigDecimalMath.roundToDouble(a, RoundingMode.UP);",
            "  }",
            "}")
        .doTest();
  }

Thanks for the report!  I assume all these tests are with Guava 31.x?
Regarding examples 3 and 4, these work as expected since NullAway does not support @ElementTypesAreNonnullByDefault.  I feel like this issue is separate from that of Examples 1 and 2, so maybe it should be filed separately?
For Example 1, can you try passing the newly added config flag AcknowledgeLibraryModelsOfAnnotatedCode like this:
https://github.com/uber/NullAway/blob/a8051cd9672e88eabeec6d29ae58c142165fb9f1/guava-recent-unit-tests/src/test/java/com/uber/nullaway/guava/NullAwayGuavaParametricNullnessTests.java#L45
I think that may fix the problem; let us know.  We are planning to default this flag to true in the next release as it seems like the config most users would want.

Possible to update the Configuration documentation here?

Possible to update the Configuration documentation here?

Sure, it's updated:
https://github.com/uber/NullAway/wiki/Configuration#acknowledge-library-models-of-annotated-code
Sorry for not doing it before the release.

Sorry for not doing it before the release.

No worries - we really appreciate the feature! Also I think this is related and likely can be closed now.

Thanks a lot for linking #453!  There is some history here that I had forgotten.  We should think more carefully about how exactly this new flag should interact with inheritance and write some tests around that.  Once we figure that out we can close the issues.  /cc @lazaroclapp

Thanks a lot for linking https://github.com/uber/NullAway/issues/453!

Agreed! I actually ran into this due to our test suite (not that issue specifically, but rather #445) when working to remove AcknowledgeLibraryModelsOfAnnotatedCode and set it to true by default. I will try to have a PR for that up today, but let me re-read #453 too and make sure I am not missing something from that discussion!
p.s. If we do remove AcknowledgeLibraryModelsOfAnnotatedCode, NullAway might complain about that option not existing in a future release...

@holtherndon-stripe @rwinograd FYI, in just-released NullAway 0.9.10, the AcknowledgeLibraryModelsOfAnnotatedCode option is removed, as that behavior is now always on.  Also we fixed some tricky issues around interactions between method overriding and library models.  If you see any unexpected behaviors from the latest release, please let us know.
@holtherndon-stripe are we ok to close out this issue now?


Add a glossary to docs

This was one of the items called out in our VDR. The goal of this is to provide a one-stop-shop for terms used in our docs that someone who is proficient in Python, but new to Morpheus/RAPIDS might not know the meaning of, or in the case of words like "pipeline" don't know what they mean in the context of Morpheus.
fixes #563
When reviewing please check for:

Accuracy of definitions
Any terms that should be added
Any existing terms beyond the scope of the Morpheus docs

@gpucibot merge


Bug: Theme toggle appears as 'Light theme' on first load

Theme toggle appears as 'Light theme' on first load whether or not the theme is in fact 'Light theme'.

Fixed via f22f505b39b8d236eafd3135f5989b4ddcd50338


Fix corrupt clientList bug in TransportArbitrator

If m_clientList is null and m_clientFreeList has more than one node, m_clientList->m_next will point back to m_clientFreeList.  This results in an error in the destructor.  Always setting 'info->m_next = m_clientList' fixes the issue

Hello @ramlco , thank for this PR with the bugfix. I am ok with these changes but could you please format the code correctly (see https://github.com/EmbeddedRPC/erpc/wiki/Contributing) - there are tabs in changed lines. And, also could you please rebase to the develop head (it seems failing greetings action blocks consequent Travis build check). Thank you.


new SHA for GHC tarball

I may have provided the incorrect SHA for the GHC tarball.
The current SHA was acquired with
nix-prefetch-url https://downloads.haskell.org/~ghc/8.10.6/ghc-8.10.6-src.tar.xz
The SHA in this PR was acquired with
nix-prefetch-url https://downloads.haskell.org/~ghc/8.10.6/ghc-8.10.6-src.tar.xz --unpack
nix-build and nix-shell --pure succeed for both SHAs. I don't know if this new SHA will fix the CI issues in https://github.com/input-output-hk/haskell.nix/pull/1214

Nope.  You got it right.  Try the 8.10.5 hash and you will see it also matches the one without --unpack.  If you put an invalid hash in and try to use ghc8106 it complains with an error like this:
  wanted: sha256:0000000000000000000000000000000000000000000000000000
  got:    sha256:1s8cc50whb0qsgnmq6p40ir5yzp3nm3x0as9q518nh1klmrbmbs3


As a beginner of this framework, I saw this kind of problem.

I use CocoaPod to import XLPagerTabStrip.
Followed the demo to built my own tabView in storyboard.
Then I found the tabBar couldn't be saw.
At least, I found the reason is the default NavigationController dragged from storyboard is a littler different with demo's.
After I set these, the tabBar became fine.

navgationBar translucent = false
NavgationController Adjust Scroll View Insets = false

Thanks a lot
Even I got the same problem.

Have the same problem: tab bar is hidden behind the navigation bar.
The proposed settings didnt work for me.

This setting should be placed in readme file.


feat: add className method to Editor Field

I had always used ->className() on my Editor Fields without any problems, but strangely with v11.x it doesn't work anymore. Looked into the code and saw that the method never existed - so here we go!
Any idea why it worked before v11.x? Did Laravel change something on their Fluent class in v11?

Yes, there seem to be changes in the Fluent class but I haven't dig the details yet. Noticed it when I was adding support to v11.

Released on https://github.com/yajra/laravel-datatables-html/releases/tag/v11.4.0, thanks! :rocket:


Replace kubepkg reference with krel templates

The krel templates are the ones we use right now, while kubepkg got removed in https://github.com/kubernetes/release/pull/3313.
/cc @kubernetes/release-managers

/approve


Fix TracerPacket memory leak

Task/Issue URL: https://app.asana.com/0/0/1201701653646856/f
Description
This PR fixes the memory leak caused by tracer buffer.
Tracer packets have an associated ByteBuffer needed to inser the packet in the network-to-device queue. One we take the packet out and process it, we were not releasing it. Causing a memory leak.
This PR:

releases the bytebuffer associated to the tracer packet
Incidentally

adds some log statements for RUN write errors
double ensures that acquire buffers are cleared so that they're ready to be used

Steps to test this PR
Smoke tests for AppTP

Current dependencies on/for this PR:

develop

PR #1702  (this PR)

This comment was auto-generated by Graphite.


Python 2 runbacks not listed

This page lists several types of runbacks, but does not list Python 2 as one of the available types of runbacks.

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

ID: bf4da869-3f32-d2bb-d804-62679c1c3cbd
Version Independent ID: 49ec3073-a31e-a0ab-882d-17d3a7a420b0
Content: Runbook execution in Azure Automation
Content Source: articles/automation/automation-runbook-execution.md
Service: automation
Sub-service: process-automation
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@provBarryTolnas Thank you for your feedback, our team will look into it and get back to you at the earliest.


GPT-4 often outputs code before describing dependencies. This leads to inefficiencies when Autogen runs them in this order.

When asked to perform a task that involves code execution, GPT-4 often correctly outputs a code block, and information about installing necessary dependencies -- but it does so in that order.
This results in Autogen attempting to execute the code block, failing (due to dependencies), debugging the failure, and only then trying to execute the code block that would have correctly installed the dependencies in the first place.
This can lead to numerous messages and inefficiencies, and can sometimes result in total failures.
Proposed solution: Update the AssistantAgent's prompt to list code blocks in the order they should be executed.
Here is a typical trace of this problem:
user_proxy (to assistant):

Plot and save to disk a chart of NVDA and TESLA stock price YTD.

--------------------------------------------------------------------------------
assistant (to user_proxy):

Sure. We will use 'yfinance' to download stock prices from Yahoo finance. 'Matplotlib' will be used for plotting the graph.

Here is the Python code for you to execute.

'''python
# filename : plot_stock.py

import yfinance as yf
import matplotlib.pyplot as plt
from datetime import date, timedelta

# use 'yfinance' to download the stock prices
nvda = yf.download('NVDA', start=date(date.today().year, 1, 1), end=date.today())
tsla = yf.download('TSLA', start=date(date.today().year, 1, 1), end=date.today())

plt.figure(figsize=(14,7))
plt.plot(nvda.index, nvda.Close, label='NVDA')
plt.plot(tsla.index, tsla.Close, label='TSLA')
plt.xlabel('Date')
plt.ylabel('Closing Price')
plt.title('NVDA and TESLA stock price YTD')
plt.legend(loc='upper left')
plt.grid(True)
plt.savefig('plot.png')
print("'plot.png' has been saved!")
'''

Before running this, make sure you have all the required dependencies by running:

'''sh
pip install yfinance matplotlib
'''
After your dependencies are installed, save the Python code into a file named 'plot_stock.py' and run the script with `python plot_stock.py`. This code downloads the stock data for NVDA and TESLA from Yahoo finance and plots them. A png image named 'plot.png' containing the graph will be saved to disk.

--------------------------------------------------------------------------------

>>>>>>>> EXECUTING CODE BLOCK 0 (inferred language is python)...
user_proxy (to assistant):

exitcode: 1 (execution failed)
Code output:
Traceback (most recent call last):
  File "", line 3, in <module>
    import yfinance as yf
ModuleNotFoundError: No module named 'yfinance'

--------------------------------------------------------------------------------
assistant (to user_proxy):

I apologize for the inconvenience. It seems that the 'yfinance' module is not installed in your environment. To resolve this issue, you need to install the 'yfinance' module. The pip command installs this module:

'''sh
pip install yfinance
'''

Then, please rerun our python script:

'''python
# filename : plot_stock.py

import yfinance as yf
import matplotlib.pyplot as plt
from datetime import date, timedelta

# use 'yfinance' to download the stock prices
nvda = yf.download('NVDA', start=date(date.today().year, 1, 1), end=date.today())
tsla = yf.download('TSLA', start=date(date.today().year, 1, 1), end=date.today())

plt.figure(figsize=(14,7))
plt.plot(nvda.index, nvda.Close, label='NVDA')
plt.plot(tsla.index, tsla.Close, label='TSLA')
plt.xlabel('Date')
plt.ylabel('Closing Price')
plt.title('NVDA and TESLA stock price YTD')
plt.legend(loc='upper left')
plt.grid(True)
plt.savefig('plot.png')
print("'plot.png' has been saved!")
'''

Please install the library and rerun the python script.

--------------------------------------------------------------------------------

>>>>>>>> EXECUTING CODE BLOCK 0 (inferred language is sh)...

>>>>>>>> EXECUTING CODE BLOCK 1 (inferred language is python)...
user_proxy (to assistant):

exitcode: 1 (execution failed)
Code output:
Collecting yfinance
  Obtaining dependency information for yfinance from https://files.pythonhosted.org/packages/e6/b3/388ab967a387cc92926f70e97688dd9a7189b29a0773db815ffc5289e2b5/yfinance-0.2.31-py2.py3-none-any.whl.metadata
  Downloading yfinance-0.2.31-py2.py3-none-any.whl.metadata (11 kB)
Collecting pandas>=1.3.0 (from yfinance)
  Obtaining dependency information for pandas>=1.3.0 from https://files.pythonhosted.org/packages/de/ce/b5d9c7ce1aaf9023b823c81932a50cd5e8f407198a696b0d1c6025a40b03/pandas-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Downloading pandas-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Requirement already satisfied: numpy>=1.16.5 in /usr/local/lib/python3.11/site-packages (from yfinance) (1.26.1)
Requirement already satisfied: requests>=2.31 in /usr/local/lib/python3.11/site-packages (from yfinance) (2.31.0)
Collecting multitasking>=0.0.7 (from yfinance)
  Downloading multitasking-0.0.11-py3-none-any.whl (8.5 kB)
Collecting lxml>=4.9.1 (from yfinance)
  Obtaining dependency information for lxml>=4.9.1 from https://files.pythonhosted.org/packages/ed/62/ffc30348ae141f69f9f23b65ba769db7ca209856c9a9b3406279e0ea24de/lxml-4.9.3-cp311-cp311-manylinux_2_28_x86_64.whl.metadata
  Downloading lxml-4.9.3-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Collecting appdirs>=1.4.4 (from yfinance)
  Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting pytz>=2022.5 (from yfinance)
  Obtaining dependency information for pytz>=2022.5 from https://files.pythonhosted.org/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl.metadata
  Downloading pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
Collecting frozendict>=2.3.4 (from yfinance)
  Downloading frozendict-2.3.8-py311-none-any.whl (14 kB)
Collecting peewee>=3.16.2 (from yfinance)
  Downloading peewee-3.17.0.tar.gz (2.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 3.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting beautifulsoup4>=4.11.1 (from yfinance)
  Downloading beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.0/143.0 kB 9.7 MB/s eta 0:00:00
Collecting html5lib>=1.1 (from yfinance)
  Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 kB 5.3 MB/s eta 0:00:00
Collecting soupsieve>1.2 (from beautifulsoup4>=4.11.1->yfinance)
  Obtaining dependency information for soupsieve>1.2 from https://files.pythonhosted.org/packages/4c/f3/038b302fdfbe3be7da016777069f26ceefe11a681055ea1f7817546508e3/soupsieve-2.5-py3-none-any.whl.metadata
  Downloading soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)
Collecting six>=1.9 (from html5lib>=1.1->yfinance)
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings (from html5lib>=1.1->yfinance)
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting python-dateutil>=2.8.2 (from pandas>=1.3.0->yfinance)
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 4.4 MB/s eta 0:00:00
Collecting tzdata>=2022.1 (from pandas>=1.3.0->yfinance)
  Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 kB 4.4 MB/s eta 0:00:00
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/site-packages (from requests>=2.31->yfinance) (3.3.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/site-packages (from requests>=2.31->yfinance) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/site-packages (from requests>=2.31->yfinance) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/site-packages (from requests>=2.31->yfinance) (2023.7.22)
Downloading yfinance-0.2.31-py2.py3-none-any.whl (65 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.6/65.6 kB 3.6 MB/s eta 0:00:00
Downloading lxml-4.9.3-cp311-cp311-manylinux_2_28_x86_64.whl (7.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 5.6 MB/s eta 0:00:00
Downloading pandas-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 6.2 MB/s eta 0:00:00
Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 kB 6.6 MB/s eta 0:00:00
Downloading soupsieve-2.5-py3-none-any.whl (36 kB)
Building wheels for collected packages: peewee
  Building wheel for peewee (pyproject.toml): started
  Building wheel for peewee (pyproject.toml): finished with status 'done'
  Created wheel for peewee: filename=peewee-3.17.0-cp311-cp311-linux_x86_64.whl size=895533 sha256=ccb5ca29911ba0c0ea55e6e022c2132292a87fe1dccd06e53a00b01861963aa3
  Stored in directory: /root/.cache/pip/wheels/02/20/23/74a10d0cd31f5d41c19b92ddf4c138ceff01b9f4675f19dbf5
Successfully built peewee
Installing collected packages: webencodings, pytz, peewee, multitasking, appdirs, tzdata, soupsieve, six, lxml, frozendict, python-dateutil, html5lib, beautifulsoup4, pandas, yfinance
Successfully installed appdirs-1.4.4 beautifulsoup4-4.12.2 frozendict-2.3.8 html5lib-1.1 lxml-4.9.3 multitasking-0.0.11 pandas-2.1.1 peewee-3.17.0 python-dateutil-2.8.2 pytz-2023.3.post1 six-1.16.0 soupsieve-2.5 tzdata-2023.3 webencodings-0.5.1 yfinance-0.2.31

Traceback (most recent call last):
  File "", line 4, in <module>
    import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'

--------------------------------------------------------------------------------
assistant (to user_proxy):

Ah, I see that 'matplotlib' is also not installed. Please run this shell command:

'''sh
pip install matplotlib
'''

After successfully installing 'matplotlib', rerun the python script:

'''python
# filename : plot_stock.py

import yfinance as yf
import matplotlib.pyplot as plt
from datetime import date, timedelta

# use 'yfinance' to download the stock prices
nvda = yf.download('NVDA', start=date(date.today().year, 1, 1), end=date.today())
tsla = yf.download('TSLA', start=date(date.today().year, 1, 1), end=date.today())

plt.figure(figsize=(14,7))
plt.plot(nvda.index, nvda.Close, label='NVDA')
plt.plot(tsla.index, tsla.Close, label='TSLA')
plt.xlabel('Date')
plt.ylabel('Closing Price')
plt.title('NVDA and TESLA stock price YTD')
plt.legend(loc='upper left')
plt.grid(True)
plt.savefig('plot.png')
print("'plot.png' has been saved!")
'''

Please remember to install the 'matplotlib' library before rerunning the Python script.

--------------------------------------------------------------------------------

>>>>>>>> EXECUTING CODE BLOCK 0 (inferred language is sh)...

>>>>>>>> EXECUTING CODE BLOCK 1 (inferred language is python)...
user_proxy (to assistant):

exitcode: 0 (execution succeeded)
Code output:
Collecting matplotlib
  Obtaining dependency information for matplotlib from https://files.pythonhosted.org/packages/65/5b/3b8fd7d66043f0638a35fa650570cbe69efd42fe169e5024f9307598b47e/matplotlib-3.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Downloading matplotlib-3.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB)
Collecting contourpy>=1.0.1 (from matplotlib)
  Obtaining dependency information for contourpy>=1.0.1 from https://files.pythonhosted.org/packages/b7/f6/78f60fa0b6ae64971178e2542e8b3ad3ba5f4f379b918ab7b18038a3f897/contourpy-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Downloading contourpy-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.9 kB)
Collecting cycler>=0.10 (from matplotlib)
  Obtaining dependency information for cycler>=0.10 from https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl.metadata
  Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib)
  Obtaining dependency information for fonttools>=4.22.0 from https://files.pythonhosted.org/packages/72/2c/7634a6c16b29d0c31cf54051beefab796abdfe8f52abead6d09e5403696e/fonttools-4.43.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Downloading fonttools-4.43.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (152 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 152.4/152.4 kB 2.7 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1 (from matplotlib)
  Obtaining dependency information for kiwisolver>=1.0.1 from https://files.pythonhosted.org/packages/17/ba/17a706b232308e65f57deeccae503c268292e6a091313f6ce833a23093ea/kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Downloading kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.4 kB)
Requirement already satisfied: numpy<2,>=1.21 in /usr/local/lib/python3.11/site-packages (from matplotlib) (1.26.1)
Collecting packaging>=20.0 (from matplotlib)
  Obtaining dependency information for packaging>=20.0 from https://files.pythonhosted.org/packages/ec/1a/610693ac4ee14fcdf2d9bf3c493370e4f2ef7ae2e19217d7a237ff42367d/packaging-23.2-py3-none-any.whl.metadata
  Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Collecting pillow>=6.2.0 (from matplotlib)
  Obtaining dependency information for pillow>=6.2.0 from https://files.pythonhosted.org/packages/6f/d8/f31dd84b4363b5f24c71b25a13ec3855f5ff233e07e1c3f1f8e979e12be2/Pillow-10.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata
  Downloading Pillow-10.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.5 kB)
Collecting pyparsing>=2.3.1 (from matplotlib)
  Obtaining dependency information for pyparsing>=2.3.1 from https://files.pythonhosted.org/packages/39/92/8486ede85fcc088f1b3dba4ce92dd29d126fd96b0008ea213167940a2475/pyparsing-3.1.1-py3-none-any.whl.metadata
  Downloading pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.11/site-packages (from matplotlib) (2.8.2)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)
Downloading matplotlib-3.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 11.7 MB/s eta 0:00:00
Downloading contourpy-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (302 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.8/302.8 kB 11.5 MB/s eta 0:00:00
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.43.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 13.9 MB/s eta 0:00:00
Downloading kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 13.7 MB/s eta 0:00:00
Downloading packaging-23.2-py3-none-any.whl (53 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 5.4 MB/s eta 0:00:00
Downloading Pillow-10.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (3.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 14.9 MB/s eta 0:00:00
Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.1/103.1 kB 7.6 MB/s eta 0:00:00
Installing collected packages: pyparsing, pillow, packaging, kiwisolver, fonttools, cycler, contourpy, matplotlib
Successfully installed contourpy-1.1.1 cycler-0.12.1 fonttools-4.43.1 kiwisolver-1.4.5 matplotlib-3.8.0 packaging-23.2 pillow-10.1.0 pyparsing-3.1.1

[*********************100%%**********************]  1 of 1 completed

[*********************100%%**********************]  1 of 1 completed
'plot.png' has been saved!

--------------------------------------------------------------------------------
assistant (to user_proxy):

Great! The python code ran successfully and the graph is saved in the file named 'plot.png'. This file is located in the same directory from where you ran the script. You can check it to see the plotted graph of NVDA and TESLA stock price Year-to-Date.

Feel free to ask if you have more queries or tasks.

TERMINATE

--------------------------------------------------------------------------------

Would be great if it knew to recommend a requirements.txt as a first step


Q: Questions - name, performance?

Name - wouldn't ReverseProxy be a better fitting name?
Performance - what should be expected, compared to say nginx, or perhaps a closer match - golang's httputil.ReverseProxy?
Limitations?

Yes.
So far this is just a proof of concept, no significant perf work has been done.
The configuration isn't very flexible. No load balancing. No HTTP/2 support. No WebSocket support. etc..

A suggestion - in addition to dynamic routing it will be useful if there is a way to dynamically filter (add/remove/change) headers. In both directions.
Perhaps having the middleware take a resolver (instead of straight options), with method(s) for resolving whatever it needs at runtime (destination, header filters etc.). And a default resolver implementation that that handles the static options configuration...


Version 1.0.5

Landed in https://github.com/metarhia/metawatch/commit/bc489ff4651183ae25d9bd06d95c40ecb04dc7cc


Consider exposing InitializeWithLegacyCheckpoints on EventProcessorClientOptions

Now that we have an internal implementation of legacy checkpoint reading it would be nice to allow the processor customers to use it.

Agreed.   I'll raise it to the feature team and architects post-MQ.

Notes for Implementation
It looks as if the legacy blob prefix is not a stable value.  EventProcessorHost allows it to be customized with the default form being empty.   The current format mask in the BlobCheckpointStore assumes the format specific to the form generated by Azure Functions, which is used to initialize the EventProcessorHost.
If we decide to expose the functionality for the Event Hubs client library, we'll need to mimic the track one functionality of allowing customization of the prefix and defaulting to an empty value.

Notes for Implementation
It looks as if the legacy blob prefix is not a stable value.  EventProcessorHost allows it to be customized with the default form being empty.   The current format mask in the BlobCheckpointStore assumes the format specific to the form generated by Azure Functions, which is used to initialize the EventProcessorHost.
If we decide to expose the functionality for the Event Hubs client library, we'll need to mimic the track one functionality of allowing customization of the prefix and defaulting to an empty value.

I had an initial discussion on this topic with @ramya-rao-a, who wanted to give this further consideration, discuss at the leads level, and circle-back.   I'm going to reassign to Ramya for now and ask that she assign back to me when a decision has been reached.

I had an initial discussion on this topic with @ramya-rao-a, who wanted to give this further consideration, discuss at the leads level, and circle-back.   I'm going to reassign to Ramya for now and ask that she assign back to me when a decision has been reached.

@ramya-rao-a:  Have any decisions been made for this?

In the year that has passed since this issue was logged, we have not seen any customer requests for this feature. Therefore, closing.


AjaxFileUpload: Question about the auto start upload when file is selected

I got a question about the AjaxFileUpload component.
I have viewed the documentation and found that there are a property called "AutoStartUpload", but i cannot find in my VS2015.
Is there any solutions about this issue, or better ways to do that?

Hi @Garfieldcc
Thank you for this notice.
This property relates to the latest version of the source code which is not released yet.
We'll get wiki in sync with the next release once it is published to avoid confusion.

The v16.1.1 is released, and the control documentation is up to date now.


Allow ECDSA for ACME

What this PR does / why we need it: Allow ECDSA for ACME issuer
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): -
Special notes for your reviewer:
I already try on my k8s cluster and it works !
Release note:

Allow ECDSA for ACME issuer

/ok-to-test

Thanks very much! 😄
/lgtm
/approve


Installing gem doesn't provide binary (0.7.0)

I ran gem install tty to get the teletype binary. It didn't work. I dug into it and found that the exe dir is missing from the gem's installation dir.
I dug further and found that when you download the gem from rubygems.orb, tty.gemspec is different from what's here on GitHub. Notable differences:

spec.bindir is missing
spec.executables   = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) } is used instead, which won't work since this project doesn't have a bin dir

Also, the exe dir is missing entirely when you download the gem from rubygems.org
So...did something go wrong in the gem cutting process that fouled-up tty.gemspec?

Hi Mike,
Thanks for trying the gem out!
The README.md file is in line with the master branch. What you see there isn't released yet. I maintain and create quite few Ruby gems and find that the best (and for me the only) way to develop new code and stay on top of things is to write docs along side the code. If you wish to see v0.7.0 you will need to select a tag.
I cannot tell you the exact date for the new release but I hope to get it done before the end of this month. In the meantime, I would appreciate if you could use master branch directly and hopefully contribute back and provide feedback.
I will keep this issue open in case others find it confusing as well. Sorry for the trouble!

Hey,
Any update on this issue?

@coisnepe This is my highest priority now! However, I cannot give you an exact date but I'm working to release new tty version in March/April time. In the meantime I've been working on other tty packages. I have still few things to work on before teletype executable is in a good shape for release and a trip coming hence don't want to promise anything specific. I want to build a tool using teletype to ensure that it matches my needs and then I will be happy to cut a release.

I'm speaking at RubyKaigi in Japan in about one hour and for this occasion I've released v0.8.0 which includes the latest teletype! 🍾 🎆 Hope you like it! Any feedack greatly appreciated!


docs: fix simple typo, previouly -> previously

There is a small typo in lib/includes/wslay/wslay.h.
Should read previously rather than previouly.
Semi-automated pull request generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

Thank you for PR. Merged now.


[2.6] UI Deployment Node scheduling, cannot be changed

Rancher Server Setup

Rancher version: 2.6
Installation option (Docker install/Helm Chart):

RKE, Kubernetes 1.21

Describe the bug
A deployment with node scheduling "required" cannot be updated to "preferred"
To Reproduce

Create a deployment with node sheduling required
Update deployment, change to preferred

Result
node scheduling is still on required, and saved without any warnings/errors
Expected Result
Setting should be changed to preffered
Screenshots

On v2.6.0

Created a deployment and selected the node scheduling Priority to Required with a rule as from the screenshot attached.
If we edit the config and change the Priority from Required to Preferred, it works if we remove the rule and re-add it otherwise the following config is sent:

When we select the priority from required to preferred, the rule should be removed.

After manually changing to preferred via YAML an other issue appears.
We are unable to update via Form anymore, since the UI always add an empty required spec.

yaml:

This issue appears every time you want to update the deployment but only if you do not change anything in section node scheduling. If you change something, yaml seems to be correct, until the next deployment update.

i am unsure if #34635 (maybe) or #34638 (maybe not) have the same root cause.

Thanks for reporting @ItsReddi
I was able to reproduce both issues outlined above. They are both UI issues. Here are the steps I used to repro:
Issue 1 - Inability to change NodeScheduling rule from Required to Preferred via Edit Config on a workload
(same steps as above)

Create a deployment with a Required Node Scheduling rule
Edit Config of deployment and change Node Scheduling rule to Preferred
Observe rule does not change from Required

Issue 2 - Inability to update deployment via Edit Config when there is a Preferred Node Scheduling rule

Create a deployment with a Preferred Node Scheduling rule
Edit Config of deployment and, without changing anything, try to save
Observe error: Deployment.apps "hello-world" is invalid: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms: Required value: must have at least one node selector term


Panel doesnt detect bungeecord running

When starting a bungeecord, the panel shows me memory and cpu usage as well as the console but the dot indicating the status of the server is still red.

The dot sometimes doesn't update, did you try refreshing the page?

Yes, of course I tried refreshing the page. Also in the server list the dot still is red.

I wonder if Scales didn't detect the server as being fully started since it checks for a specific line in the output. I'll look into this in a bit, but I haven't encountered this issue yet.

Actually, can you also check your Scales and PufferPanel error logs and see if anything is being reported in them?

Just tested this and I cannot reproduce this issue. Are you positive that your BungeeCord server is actually finishing startup and not encountering an error at some point?

I was testing as well and as Dane I was unable to reproduce with my
production bungee cord.
On Mon, May 18, 2015 at 4:31 PM Dane Everitt<EMAIL_ADDRESS>wrote:

Just tested this and I cannot reproduce this issue. Are you positive that
your BungeeCord server is actually finishing startup and not encountering
an error at some point?
—
Reply to this email directly or view it on GitHub
https://github.com/PufferPanel/PufferPanel/issues/540#issuecomment-103200749
.

I validated again that my bungeecord is working by simply joining it. Here are all logs you may need:

The logs for the panel are located in /bar/www/PufferPanel/src/logs.

So here is my panel log: http://paste.ubuntu.com/11265545/

Anything new on this? @DaneEveritt

@Paktosan can you fix your pastes to use something like gist so they are not lost in time?

I still can't reproduce this on HEAD.
On Sat, May 30, 2015 at 9:37 AM Joshua Taylor<EMAIL_ADDRESS>wrote:

@Paktosan https://github.com/Paktosan can you fix your pastes to use
something like gist so they are not lost in time?
—
Reply to this email directly or view it on GitHub
https://github.com/PufferPanel/PufferPanel/issues/540#issuecomment-107042428
.

I am running a "production" BungeeCord (depends on your definition of production), and cannot reproduce this. Everything is running very smoothly.

Well I meant production puffer panel install. Oops heh.
On Sat, May 30, 2015 at 7:14 PM Jared Bates<EMAIL_ADDRESS>wrote:

I am running a "production" BungeeCord (depends on your definition of
production), and cannot reproduce this. Everything is running very smoothly.
—
Reply to this email directly or view it on GitHub
https://github.com/PufferPanel/PufferPanel/issues/540#issuecomment-107098499
.

for me it dont connect :(


add docs to describe how to migrate Rails assets

Description 📖
To add documentation for migrating Rails assets from this discussion: https://github.com/ElMassimo/vite_ruby/discussions/144
Background 📜
It is not immediately clear how one is supposed to migrate over Rails assets in the documentation
The Fix 🔨
Add documentation to migration section of the docs
Screenshots 📷

Thanks! :smiley:


Patterns and EconomicBasis

Import Amortization Patterns:
as cashflows: Add EstimateType P(Pattern), move CU to AmountType => change files in the template + formulas looking for CU
add not mandatory column (Periodicity) which has priority over the one DataNodeParameter.Periodicity.
as SingleDataNodeParameter : always provided starting from AnnualCohort (documentation)
Periodicity of the pattern matches the Periodicity provided in the same parameter
values are stored as they are provided (no interpolation, no normalization).
EconomicBasisDriver : additional property of SingleDataNodeParameter (with attribute Dimension(EconomicBasis))

add new EstimateType "P" for Patterns to include AmountTypes "CU"
move CU from EstimateType to AmountType, including the changes to formulae
add 'EconomicBasisDriver' to SingleDataNodeParameters, making it optional
add 'ReleasePattern' to SingleDataNodeParameters, making it optional
with some documentation and validations

add 'CashFlowPeriodicity' and 'InterpolationMethod' to cashflow input importer:

check the presence of 'CashFlowPeriodicity' and 'InterpolationMethod' in the cashflow, if available, it will use it. Note this is defined for combination of 'AmountType', 'EstimateType' in the cashflow set.
If any of the 2 parameters is not available, it will check the 'DataNode' level, namely 'SingleDataNodeParameter' and use for all AmountTypes and EstimateTypes in the given DataNode.
In case no information or invalid data is provided, the default values will be used: CashFlowPeriodicity = Monthly and InterpolationMethod = NotApplicable.
add "ContractTerm" to GOC (not connected anywhere for now)
add basic unit tests for ReleasePattern values


Create CODE_OF_CONDUCT.md

Thanks for the willingness but I think we are better off without a code of conduct. I don't see any benefit of having one.


Wifi Configuration on Settings Page

Allow user to configure wifi through the web UI: change SSID, use WPA and set passphrase, change wifi channel.

This is a clean merge of the code in https://github.com/cyoung/stratux/pull/668.  Primary difference from that PR is I reworked web/plates/settings.html.

Thanks!

I can get a batches of 100x 1090Mhz antenna's like this one made up for
about $10 a pop.
Would you be interested in selling them on your website?
I've test flown the one pictures a few times now one and it is (insofar
as I could tell, without a S-Parameter test set)  just as good as the
thick one's 4 times as long. The range is (again subjectively) exactly
the same. In terms of convenience the little dinky ones are much nicer,
since they fit better on the dash.
Cheers
Davie


Fixed logout command

Logout was trying to use the cli cache-clear to log out, but that function explicitly excludes clearing of the session, thus never logging the user out. Changed it to a call to clear everything, including session.

Closed in favor of #271


qrscan: ^0.3.3 unable get

I saw the package has publish to  ^0.3.3 but pub still showing qrscan: ^0.3.2
Is qrscan: ^0.3.3 ready?
dependencies:
 qrscan: ^0.3.3

🤪https://pub.dev/packages/qrscan


docs: update info for making releases

PRs #221, #225, and #226 were merged bypassing the requirement of review, as I needed to test a few things and it would have been tedious to request a review each time.
Together,these four PRs:

fixed minor issues to allow easy releasing
made a PyPi release
updated the newest version to 1.0.1 (the patch version was to test something and then forgot to revert it)
made adjustments to the release documentation

Technically we could make this PR into the next patch version to test it out?

Good idea.
Feel free to make the changes to bumpversion in this PR and test it out.
The one annoying thing about the testing the process, is that it needs to be merged to main before the release is made. It makes sense once things are running smoothly, but while playing around/testing, it's a bit tedious to do multiple small PRs and bypass-merging them. Don't think there's a way around it though.

The one annoying thing about the testing the process, is that the branch needs to be merged to main before the release is made.

Is this true? I think we can make releases from other branches, e.g. dev/beta branches or feature branches. This would probably not fit within the default bumpversion workflow, but it would with custom new_versions.

Also, instead of merging to main, we might consider making a dev branch, merging PRs to that, and making releases from there, more like https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow. Let's discuss offline.

I created a v1.0.2. The current workflow works, but is not perfect.
One problem is that is is currently entirely possible to merge a PR without making a release. I think the tip of main should always be the most recent released version.
Another problem is that you should run bumpversion locally and push a tag before merging a PR. If you forget, you have to make a new PR to bump the version and make the release. Ideally every commit on main is it's own version with it's own tag and release. That's not the case if you forget this step.
Also, this prevents us from cleanly making a single version that contains multiple PRs. Let's say we want to publish to independent features in the same release. This would require PR 1 to be merged, then PR 2 to be bumped and merged, or PR 2 to be merged and a separate PR to bump the version.
One 'issue' with creating extra PRs is that they show up in the automatically created changelog, and that there will be quite a few 'bumpversion' PRs in the history after a while.
I think there are three approaches we can take here:
1. Keep as is We keep merging PRs directly to main. If we want to make a release from a single PR we have to remember to push a bumpversion commit to the PR branch before merging the branch, and then making the release. If we want to have multiple PRs in the release, we merge them consecutively and add a bumpversion to the last PR we merge (or create a separate PR for the version bump).
2. Add ad-hoc release branched from main When making a release from a single PR do as above. When we want to merge multiple PRs we first branch an ad-hoc release branch from main. We merge the PRs to release, add a bumpversion commit there, and then merge that to main.
3. The gitflow approach https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow gitflow comes with a branching scheme and software to manage them. I don't think we should use the software, but could use the branching scheme.
With this approach we have a main branch that is only ever merged to from ad-hoc release branches. Features (PRs) are merged to develop. We can add as many PRs as we want, and even leave one merged for a while, before making a release. When we want to make a release, we create a release branch from develop, add a bumpversion commit, and merge that to both main and develop. Then we create a release from main as normal.
This requires a slightly different approach for hotfixes. Those should be branched from main, committed, bumped, and merged back to main an develop without a release branch in between.
@DaniBodor Let's discuss offline?

I'd be totally on board with option 3. It's what we do for other repos as well, and isn't difficult to manage.
We could then even look into automatically triggering the entire release programme on any merge to main (including the bumpversion). Probably also not too complex.


added pfSense Parsers for syslog-ng and Logstash

Fixes #
Proposed Changes

Added pfSense parser for Syslog-ng
Added pfSense parser for Logstash (Local Traffic)
Added pfSense parser for Logstash (GeoIP Traffic)

@noodlemctwoodle - please see my comments.  Apologies on the delay, have been heads down on a recent security incident.

@noodlemctwoodle - please see my comments.  Apologies on the delay, have been heads down on a recent security incident.

@noodlemctwoodle - Please remember to update the parsers with the proper format and sample data.  If not, we can close this for now.  Thanks, Shain

@noodlemctwoodle - Checking in again to make sure you saw the request for changes.

Sorry I've been super busy, I'll make these changes tomorrow 😂
Apologies for the delay

@noodlemctwoodle - Understood, I know exactly where you are coming from. :) Thanks!! Shain.

@shainw Good Evening
I have updated the headers for the parsing queries.
Thanks

@noodlemctwoodle - reminder this still needs some changes.

Hi @shainw
Thanks I am aware, I've just had a major outage to deal with as my virtual host boot disk failed last weekend, so I've been having to rebuild. I should be back up and running by this weekend.
I can then rebuild my Logstash server and import my data back into Sentinel and get the screenshots 😃

Very old, closing for now, please feel free to re-open when ready to continue work.


Unwrap

As we are still in the sandbox phase of building Aurae we are using unwrap statements in the code. We should replace these with safer and more idiomatic systems in Rust.
Additionally we should build a linting system that prevents code like this from entering the project.

As of #28 we now warn at compile time on unwrap() 🎉


add a code structure view for python, js, etc.

This issue has been moved from a ticket on Developer Community.

Code structure(e.g. classes, members, function, methods) can showed in navigation bar, but it'll be more convenient if it could show as a tree view at the left or right of window. if we code c++, solution explorer would show such tree view for each code file. I hope python and js will be supported in the future.
Or like this: https://marketplace.visualstudio.com/items?itemName=oleg-shilo.codemap

Original Comments
Jane Wu [MSFT] on 4/3/2019, 08:44 PM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.
#### Graham Wheeler [MSFT] on 8/21/2019, 02:19 PM:
Your suggestion has been queued up for prioritization.  Feature suggestions are prioritized based on the value to our broader developer community and the product roadmap. We may not be able to pursue this one immediately, but we will continue to monitor it up to 90 days for community input
Tal Herscovitz [MSFT] on 11/18/2019, 01:06 AM:
I really want this feature as well. Thanks!

Thanks for the feedback! However, we don't have plans on adding this functionality at this time.


Instantiated SampleSets can now have attributes assigned to them

Codecov Report

Merging #595 into master will increase coverage by 0.85%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #595      +/-   ##
=========================================
+ Coverage   92.65%   93.5%   +0.85%
=========================================
  Files          52      52
  Lines        3731    3727       -4
=========================================
+ Hits         3457    3485      +28
+ Misses        274     242      -32

Impacted Files
Coverage Δ

dimod/sampleset.py
94.97% <100%> (+0.44%)
:arrow_up:

dimod/binary_quadratic_model.py
95.58% <0%> (+0.29%)
:arrow_up:

...imod/reference/composites/higherordercomposites.py
93.37% <0%> (+0.55%)
:arrow_up:

dimod/higherorder/polynomial.py
93.77% <0%> (+0.95%)
:arrow_up:

dimod/serialization/format.py
97.44% <0%> (+1.02%)
:arrow_up:

dimod/decorators.py
64% <0%> (+1.33%)
:arrow_up:

dimod/views/bqm.py
91.93% <0%> (+1.61%)
:arrow_up:

dimod/testing/asserts.py
96.9% <0%> (+2.06%)
:arrow_up:

dimod/reference/composites/scalecomposite.py
95.69% <0%> (+2.15%)
:arrow_up:

... and 7 more

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 1ce8437...f69df71. Read the comment docs.


Implemented InputPin trait for output pins

This enables things like OneWire. Equiv of this PR from the 4xx lib.

+1. I also need this functionality, to implement a weird "bidirectional" SPI for ST7735 TFT.
And it is already implemented in the "brother" crate stm32f4xx-hal (https://github.com/stm32-rs/stm32f4xx-hal/blob/b6f010538a4f86db207b23440d3053339ce08397/src/gpio.rs#L179).

Status?

Sorry for the long delay. I'll hope to catch up again in the next days :)
What about this concern: https://github.com/stm32-rs/stm32f3xx-hal/issues/84#issuecomment-646654451?
I havn't thought it through myself. Implementing for OpenDrain seems fine though. Maybe we could mark the PushPull implementation unsafe or at least add a comment to use this function with caution.

Please run rustfmt on the code again. It's currently complaining about one superfluous newline. This is what makes the Travis jobs fail.

I also noticed that since the GPIO refactoring to use variants was merged, this should also be adapted in this PR. I've quickly done this myself, hope you don't mind me going off your changes @David-OConnor.
I had to create a new PR since I cannot just push to a branch in your repo: #114. Would be cool if you could check it out and report if it works for your use-case. You'll notice that I restricted the InputPin impls to Output<OpenDrain> only, based on what was discussed in #84. Looking at the onewire lib they are using OpenDrain too, so that shouldn't be an issue.

Closed in favor of #114.


iOS 12，上拉加载更多，闪退

Thank you but the problem has not been solved. Is there any other way?

you can add the missing “\” in every "\n"
Thank you but the problem has not been solved. Is there any other way?


Objmc says "permission denied" when I tried to start the program (not opening it)

try running it with admin perms, or move it out of system drive user folder

still doesnt generate anything. I moved it out of the system folder to my external drive, but i cant figure out how to run it with admin perms tho, theres no option to do that when i right click it

sounds like you arn't the administrator user on your machine, i can't help with that sorry.

I solved it, i downloaded python from the microsoft store and thats why it doesnt have admin perms. REMEMBER TO DOWNLOAD PYTHON ONLY FROM THE SITE OR IT WILL NOT WORK

I solved it, i downloaded python from the microsoft store and thats why it doesnt have admin perms. REMEMBER TO DOWNLOAD PYTHON ONLY FROM THE SITE OR IT WILL NOT WORK

I tried exactly as you said,BUT IT STILL DOESN'T WORK.


Incorrect execution result caused by join operation

Describe the bug
When running the following sql, the number of result data will increase. When you perform a full join on a table with 10,000 rows of data and two identical tables, the result is 13,200 entries instead of 10,000 entries.In addition, if inner join is used, the amount of data will be reduced. If left join is used, coredump error will be generated.We think that the condition for this error to recur is to use the max aggregate function on the string field before SortMergeJoin. This is because the above error is not repeated when aggregating non string fields or using sum and other aggregation functions for strings.
To Reproduce
Here's the sql:
select t1.value as value1, t2.value as value2, t1.data1a as data1a from( select value, MAX(data1) as data1a from gy_orc.test_smj3 t1 group by value) t1 FULL JOIN (select value, MAX(data1) as data1b from gy_orc.test_smj4 t2 group by value) t2 on t1.value=t2.value
Notes:The data type of data1 is string

The execution result is as above. Rows containing null values are extra data

Hi @ziyangRen,
Thanks for the detailed and clear log, this is a bug on the "hashagg for string" - the impl does not fit for "sortagg + SMJ" case.
A quick fix is to do not allow to use hashagg in "sortagg + SMJ" case, however in this way gazelle would need to fallback to Vanilla Spark as Gazelle does not have "SortAgg" impl. I'll generate a quick patch for you.
Thanks, -yuan


Sync cookies from WebView to proxy

This PR has been created by @thorsten-wolf-neptune and @NiklasMerz during a debuggin session.

Description
This PR sync the cookies from the WKWebViews Cookie Storage to the NSHTTPCookieStorage to make cookies set in the WebView or IAB available in the proxy requests. This happens before the proxy request goes out.
Cookies from the NSHTTPCookieStorage already get synced after every response to the WKHTTPCookieStore.
Testing
This can be tested with a test app: https://github.com/NiklasMerz/cors-cookie-proxy-test-app
This solved following use case:

Open IAB and set cookie with second fetch button for niklas.merz.dev origin
-> Cookie is now set in WKHTTPCookieStore
Close IAB and make request with proxy to origin from main webview and see response with no cookie
-> Cookie is not set for proxy request because cookies from the WKHTTPCookieStore never go into the NSHTTPCookieStorage the proxy uses.

Built with help from this comment: https://github.com/apache/cordova-plugin-inappbrowser/issues/753#issuecomment-872372518

Thanks @thorsten-wolf-neptune for the challenge on this. This improves the proxy quite a bit to have cookie syncing in both directions.