Add Scaffolded Item in MVC 6 - View

I started the

Create a new ASP.NET 5 project tutorial

on http://docs.asp.net/en/latest/tutorials/your-first-aspnet-application.html#create-a-new-asp-net-5-project.
When you create a new scaffolded item in Visual Studio Community 2015 Version 14.0.24720.00 Update 1 the Edit.cshtml View seems to lack the AuthorID field. Should have this:
<input type="hidden" asp-for="AuthorID" />
Is this a Visual Studio tooling support issue or something else?

Hi @twentytwokhz I took a look at this and are you sure that there needs to be a hidden input for the AuthorID? The AuthorID is already in the URL so I would think that works just fine for model binding and the database update. Are you seeing otherwise?

@barrytang thoughts on this scaffolding issue?

To be more clear: this is the crash I encountered on Edit Book page

Microsoft.Data.Entity.DbUpdateException was unhandled by user code
HResult=-2146233088
Message=An error occurred while updating the entries. See the inner exception for details.
Source=EntityFramework.Relational
StackTrace:
at Microsoft.Data.Entity.Update.AffectedCountModificationCommandBatch.Consume(DbDataReader reader)
at Microsoft.Data.Entity.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
at Microsoft.Data.Entity.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection)        at Microsoft.Data.Entity.Storage.RelationalDatabase.SaveChanges(IReadOnlyList1 entries)
at Microsoft.Data.Entity.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList1 entriesToSave)        at Microsoft.Data.Entity.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)        at Microsoft.Data.Entity.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)        at Microsoft.Data.Entity.DbContext.SaveChanges()        at WebApplication2.Controllers.BooksController.Edit(Book book) in D:\Projects\Visual Studio 2015\Projects\WebApplication2\src\WebApplication2\Controllers\BooksController.cs:line 89   InnerException:         Class=16        ErrorCode=-2146232060        HResult=-2146232060        LineNumber=2        Message=The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Book_Author_AuthorID". The conflict occurred in database "aspnet5-WebApplication2-46d3f3ab-edff-45a9-b520-02d1c78191fc", table "dbo.Author", column 'AuthorID'.        Number=547        Procedure=""        Server=(localdb)\mssqllocaldb        Source=.Net SqlClient Data Provider        State=0        StackTrace:             at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows)
at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
at System.Data.SqlClient.SqlDataReader.Read()
at Microsoft.Data.Entity.Update.AffectedCountModificationCommandBatch.ConsumeResultSetWithPropagation(Int32 commandIndex, DbDataReader reader)
at Microsoft.Data.Entity.Update.AffectedCountModificationCommandBatch.Consume(DbDataReader reader)
InnerException:

And this is the problem encountered on the Edit Author page:

@twentytwokhz, thanks for reporting the issue. I opened an internal tracking bug (TFS#190842) and my team will look into this.

@barrytang Ok. Great! I will close this one


feat(ball): Draw a red ball (rect) on the screen.

TL;DR
This PR adds a Ball struct to the game and implements the functionality to draw it.
What changed?
Ball struct has been added, and it consists two fields: radius and to_rect method for converting the ball to a rectangle that can be rendered. Ball creation is added to the main loop. Also, functionality to draw the ball on the game window has been added in the main application loop.
Why make this change?
To enhance gameplay by adding a ball that will bounce around the window and off the paddle.
NOTE: Right now, ball is static.

#13  👈
master

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

Join @rafaelrene and the rest of your teammates on  Graphite

Merge activity

May 8, 9:46 AM EDT: @rafaelrene started a stack merge that includes this pull request via Graphite.


Clean up testing of aliases

Ensure all tests are run against the canonical function name
Ensure all aliases mentioned in the documentation are tested
Remove redundant tests which were originally meant to test aliases
Make alias assertion descriptions consistent readable sentences
Use (actual, expected) argument order in alias assertions

Keep 'em coming. :smile:


 Would be nice to have some mechanism to invoke ProvideValue() on a markup extension. It would be a breaking code change to change it from protected to public though so some alternate mechanism is likely needed, i.e. adding another public method that calls the protected method or a static helper method or whatever.
Rationale
In WPF I can allow my own markup extension to receive other markup extensions as parameters and then I can use them to get the values they provide. This doesn't seem possible in WinUI.

No, I'm not sure, I just want to be able to call ProvideValue on a markup extension from my C# code.


Complex repo setup example

TL;DR - are there any other examples of complex flux config repo with multiple clusters/apps/envs/tenants?
I really like FluxCD documentation - guides, apis - everything you need to get going and improve along the way. But one extremely frustrating missing piece is complex flux repo example. Both flux2-kustomize-helm-example and flux2-multi-tenancy are just POC to be honest - nice to try locally on kind cluster but not really suitable to run on live cluster imo. All examples seem to focus on either single cluster usage or multiple but fully/almost identical clusters. I've tried to find something more complex, but no much luck so far. Well, there is bootstrap-repo but it seems to be an enhanced version of current repo.
Don't take me wrong - it all works perfectly, but as soon as you start to scale - add clusters, apps, tenants, etc - it became quite cumbersome.
Like this repo's readme:
├── clusters
│   ├── production
│   └── staging
├── infrastructure
│   ├── kyverno
│   └── kyverno-policies
└── tenants
    ├── base
    ├── production
    └── staging

it assumes both clusters will use same exact version of infrastructure - for example save values for helm releases. Of course we can add base/overlays to infrastructure but when it scales out it became unwieldy. We need monitoring stack - prometheus, grafana, loki, promtail. Private/public ingress, can't live without cert-manager and external-dns, then EKS is no good without aws-load-balancer-controller and karpenter/autoscaler, add some kubernetes-dashboard, weave-gitops, etc - and here you are with 10 to 20 helm releases just to get cluster to be ready for an actual app deployment. (then deploy single-pod app and proudly watch all those machinery running static website with enormous 50Mb/100m resources consumption :))
Having infrastructure/base with 20 helm releases plus help helm repos files isn't that bad, but in my case with multiple EKS clusters in different accounts I need different values for most helm releases (irsa roles, increased replicas for prod, etc) So it results in infrastructure/dev folder having 20 values/secrets files and long list of kustomize's configMapGenerators.
I guess possible solution is to use variables substitution and put all values inside helm releases and just keep one/few configmaps with per-cluster variables, but I've found out that keeping plan value/secret file for helm release is really useful when maintainers release breaking change patch and you need to quickly run helm template -f values.yaml to see what's changed. (I really like Flux's helm charts autoupdate feature but sometimes reading alerts channel in the morning after nightly updates is no fun at all)
Second issue/inconvenience is dependencies or rather lack of dependency between helm release/kustomization at this moment (hope it will be possible to implement this soon/ever, subscribed to existing issue already). For example, in order to deploy cert-manager from helm release and cluster-issuer from kustomization I need to wrap hr into kustomization and then set dependency between two ks resources. So deploying from a single large folder full of helm releases and kustomzations and plain manifests is just not possible, unless you want to spend some time during cluster's bootstrap manually reconciling and suspending/resuming.
And "single folder" approach does not work well with plain/kustmized manifests either - recently tried approach with multiple apps in base folder and then single dev/kustomization.yaml deploying them all - quickly realized that one failing deployment blocks all others since wrapper Kustomization is unhealthy. Plus you'd need to suspend everything even if single deployment needs maintenance/etc.
 Plus all of official examples seems to be completely opposite to this. I have a strong feeling I've overengineered this but can't seem to find a way to do a simpler but still flexible setup.
So I'm looking for some different example of "prod-like" complex setup tested on live clusters, anybody is willing to share? :)
Any suggestions are much appreciated.

I agree - the examples presented in this repo cannot be followed step-by-step. I've spent hours trying to follow the instructions but it simply doesn't work. I'm pretty sure steps are missing or are listed in the wrong order. Possibly some steps have errors :(

The main difference between the Flux-designed examples and the bootstrap-repo that I use for my demos is that Flux docs beget a suggested architecture of "separating apps from infrastructure" without prescribing that every app must be separated from every app, and every infrastructure must be separated from every infrastructure. You can put more apps in that "apps" kustomization without making more, as long as they don't need to be applied in a dependency order.
In my example repo, I am frequently breaking things, and I have lots of complex inter-connected dependencies, so this bootstrap-repo example that you linked @aliusmiles is intended to break those apart, so that independent components can fail independently and not cause surprises through overlapping.
I think the problem that people trip over is that they try to design a multi-tenant system but they don't have real multi-tenant requirements, so they start skipping steps. This example works by using a "dev-team" branch, which is meant to be standing in for a separate repo that belongs to the dev team. Does stating that clearly help / would it help at all if we made that clearer in the doc? @torpare I'm certain the example will work if you don't try to translate it to GitLab on your first time running it.
If you cloned the repo and pushed it up, but didn't also clone the dev-team branch and push it up, you would have problems. In a real production environment, you would want this to be a separate repo so that dev-team doesn't have a repo where the write permissions are shared with infrastructure. It's sort of baked in as an expectation here that the "bootstrap repo" becomes a hub for the Platform team to manage many clusters. If you have more than one definition for infrastructure, you can keep them in /infrastructure/a and /infrastructure/b instead of writing them as one definition, and let them inherit the common things from a common base in /infrastructure/bases.
There is also this doc on repository structure, nobody mentioned it so far, so I wonder if it has been missed:
https://fluxcd.io/flux/guides/repository-structure/#repo-per-environment
There are at least four different approaches to repo structure in that doc, maybe one of them makes more sense for you. It is difficult to offer prescriptive guidance for everyone because of Conway's Law, the structure of your comms should resemble the structure of your organization, and every organization is going to likely have a different unique structure of its own.

@kingdonb,
Regarding dev-team branch - I guess would be useful to have at least small note stating in this repo branch is used to emulate team repository or smth similar, because currently you need to click on tenant repository link to understand that there is another branch right under your nose. Kind of non-obvious and confusing for new users I believe, though not an issue after spending some time reading around.
Repository structure doc is hard to miss, really 😀 But comparing to other guides, like image-update it lacks details. I mean it's an excellent "design overview" but when you start looking at example repos for implementation details - you suddenly find out that for the live usage you just need to do it completely from scratch all by yourself.
Like you said:

suggested architecture of "separating apps from infrastructure" without prescribing that every app must be separated from every app, and every infrastructure must be separated from every infrastructure

this is exactly one of the problems that I have with repository-structure guide and all the examples repos - they do not take into account dependencies between apps/infra components. Another is that they do not scale well. Let me illustrate (monorepo example for simplicity):

Example repo
.
├── apps
│   ├── base
│   │   ├── backend
│   │   │   ├── configmap.yaml
│   │   │   ├── deployment.yaml
│   │   │   ├── kustomization.yaml
│   │   │   ├── secret.yaml
│   │   │   └── service.yaml
│   │   ├── db
│   │   │   ├── hr-postgres.yaml
│   │   │   └── kustomization.yaml
│   │   └── frontend
│   │       ├── configmap.yaml
│   │       ├── deployment.yaml
│   │       ├── ingress.yaml
│   │       ├── kustomization.yaml
│   │       └── service.yaml
│   ├── prod
│   │   ├── backend-configmap.yaml
│   │   ├── backend-secret.yaml
│   │   ├── frontend-configmap.yaml
│   │   ├── frontend-ingress.yaml
│   │   ├── kustomization.yaml
│   │   └── values-db.yaml
│   └── stage
│       ├── backend-configmap.yaml
│       ├── backend-secret.yaml
│       ├── frontend-configmap.yaml
│       ├── frontend-ingress.yaml
│       ├── kustomization.yaml
│       └── values-db.yaml
└── infrastructure
  ├── base
  │   ├── hr-aws-load-balancer-controller.yaml
  │   ├── hr-cert-manager.yaml
  │   ├── hr-external-dns.yaml
  │   ├── hr-ingress-nginx.yaml
  │   ├── ks-cert-issuer.yaml
  │   ├── kustomization.yaml
  │   ├── namespaces.yaml
  │   ├── source-cert-manager.yaml
  │   ├── source-eks.yaml
  │   ├── source-external-dns.yaml
  │   └── source-ingress-nginx.yaml
  ├── prod
  │   ├── kustomization.yaml
  │   ├── values-aws-load-balancer-controller.yaml
  │   ├── values-external-dns.yaml
  │   └── values-ingress-nginx.yaml
  └── stage
      ├── kustomization.yaml
      ├── values-aws-load-balancer-controller.yaml
      ├── values-external-dns.yaml
      └── values-ingress-nginx.yaml

Adding more apps/infrastrucutre will result in long kustomization file and quit a lot of values/patches files, but ok, it works -  as long as you don't have any HR => KS or vice versa dependencies. I guess it'll be much easier to follow this setup when Flux will support cross-resources dependencies, but there is another potential issue - all apps under single Flux Kustomization result in a) suspend one - suspend all and b) one fails - whole KS is failed.
I completely understand that "one size fits all" example repo is impossible to create but still, all examples look like they were created just for a short demo on minikube (as I guess they were). But come on - nobody installs let's say ingress nginx with the same configuration to all clusters. Or use a single app without dependencies. Having "more meat on bones" in example repos would be very nice I believe.
Surely Flux dev team must've used Flux internally on large scale, not only on kind/minikube local clusters? 😀 So would you mind perhaps to share some "battle tested" configs in form of example repos? It's just all the other Flux docs are kind of "guide by the hand" type regarding all the small components but when you try to put all the things together - you are on your own 🤷 And when you try to search for some more complex example - can't find anything usable, at least for my case - multiple EKS clusters. Though I have a feeling that "EKS" part is what's causing me troubles - looks like GKE for example requires much less infrastructure services to install before actual usage (EKS needs about 15 if you want ingress/monitoring/etc) And to be honest I should start with making my own setup public, even though still not sure it's a good one.
P.S. Sorry for the rant, it's just it was a bit of frustrating experience trying to figure it all out all by yourself.
P.P.S. Changed username from @aliusmiles => @tbondarchuk, hence broken mentions.

@tbondarchuk
As you mentioned, some apps will need a different config for each cluster, just like Nginx ingress. If we have n cluster and m such app, we will need to manege n*m kustomization overlay files. That sounds impossible to me without some scripting.
Do you manage to have a public multi-tenant flux setup? I wanna see where you finally end up with.

If you don't use Helm it's became even harder with pre-deploy+deploy dependency. E.g.: for DB migratios. 2x kustomizations.

Surely Flux dev team must've used Flux internally on large scale, not only on kind/minikube local clusters? 😀 So would you mind perhaps to share some "battle tested" configs in form of example repos? It's just all the other Flux docs are kind of "guide by the hand" type regarding all the small components but when you try to put all the things together - you are on your own 🤷 And when you try to search for some more complex example - can't find anything usable, at least for my case - multiple EKS clusters. Though I have a feeling that "EKS" part is what's causing me troubles - looks like GKE for example requires much less infrastructure services to install before actual usage (EKS needs about 15 if you want ingress/monitoring/etc) And to be honest I should start with making my own setup public, even though still not sure it's a good one.

Did you eventually make your own setup public? How did you solve it?
Antoher (unrelated to Flux) thing to ask is, where do you guys place the Terraform files, if that's what you use to allocate clusters?

I have a setup I need to get working with about 400 clusters.  Any guidance on that kind of scale with FluxCD and Gitlab?

@stefanprodan can you help up please ?

And I've finally got some time to put together an example of what I use: https://github.com/tbondarchuk/flux-fleet
it's all sanitized from sensitive info but basic setup is the same as a live one.
It's lacking proper documentation I'm afraid, but I'm happy to answer any questions. Will add flux-apps example repo to show them working together, but a bit later.
It's a third or so iteration since I've started with flux, best I can come up with. Bundling related services together in groups, like monitoring is really more convenient for me then just putting all HRs and value files together, with all the services EKS needs to just function properly (not counting extras like cnpg or dex, etc).
It's a setup best suited to small scale, like 3-4 clusters. would be a total mess with 10 or more I guess.
And would be a bit simpler if we could have dependency between Kustomization and HelmRelease, then all those "wrapper" kustomizations would be unnecessary.

@chenditc you are completely right, and I don't think my setup would really work with hundreds of clusters. Maximum I have at this moment is 4 clusters per one flux-fleet repo.

@tuxillo on terraform - personally I just keeping everything in dedicated terraform repo, separating by env/component (dev/eks, prod/acm, etc), using https://github.com/terraform-aws-modules whenever possible and simple copy-pasted resources in simpler cases.
And I run apply manually since it's all small scale anyway. there are all sort of automations for terraform, including https://github.com/weaveworks/tf-controller, but in all my experience with terraform it tend to fail three times: on validate, then plan, then apply, so I would be really hesitant to relay on automatic apply without at least reviewing the plan, especially for complex setups like eks and supporting infra.

@tuxillo on terraform - personally I just keeping everything in dedicated terraform repo, separating by env/component (dev/eks, prod/acm, etc), using https://github.com/terraform-aws-modules whenever possible and simple copy-pasted resources in simpler cases.

I'm thinking in having a production repo where I place everything infrastructure related stuff and leave all flux repos outside. I personally don't like the env/component approach but more the service oriented stuff, perhaps separated by providers, I still don't know. If I come up with something usable I'll share it.

I know this PR is a bit old, but still relevant (I subscribed to it a year ago).
So, I wrote a post in Hackernoon that provides an opinionated structure to scale on clusters.
It is the first part of a series, and will tackle multi-tenancy soonish, but I guess you can get some insights and ideas from it: https://hackernoon.com/how-to-structure-your-k8s-gitops-repository-at-scale-part-1
Feedback is welcome!

Facing all the same issues you have mentioned, its a shame @stefanprodan hasn't chimed in yet as I see this as the most fundamental reason why many, including big orgs, end up going with Argo instead! First impressions are everything...

You can find here a reference architecture for using Flux on multi-tenant / multi-cluster:

Blog post: https://control-plane.io/posts/flux-d1-reference/
White paper: https://github.com/controlplaneio-fluxcd/distribution/blob/main/guides/ControlPlane_Flux_D1_Reference_Architecture_Guide.pdf
Repos: https://github.com/controlplaneio-fluxcd/d1-fleet


Real-time validation on input fields

Story
As a browser wallet user
I want to see realtime feedback on the validity of the content I am entering in input fields
So that I know if I am entering something valid or not as quickly as possible and can correct it as I go, rather than waiting to hit submit and then finding out I have missed something
Acceptance Criteria

[ ] I can see feedback on the validity of the content I am entering into an input field as I type (or equivalent)
[ ] I can NOT submit until I have entered valid content (i.e. the submit button is disabled)

NB. The second A/C in the list would not be the case where we are just offering guidance on content i.e. setting a password, only where there are black and white criteria an entry has to meet to be able to be submitted successfully
Tasks

[ ] Discuss and decide on approach to input field validation (real time client side as described in this story, or backend on submit, or something else? - considering consistency / alignment across dapps) see recent thread about this in console https://vegaprotocol.slack.com/archives/C037STCKMGC/p1686059848090589?thread_ts=1686055859.395639&cid=C037STCKMGC
[ ] Detailed sketch (if needed)
[ ] Visual design (if needed)
[ ] Frontend tasks:

[ ] Implement UI
[ ] Integrate with backend
[ ] Write unit tests

[ ] Backend tasks:

[ ] TBC
[ ] Write unit tests

[ ] Write end to end tests
[ ] Code review
[ ] Team verify acceptance criteria met
[ ] Exploratory QA testing
[ ] Capture bugs and new edge cases in tickets (this one or new TBD)
[ ] Write automated regression tests for the A/Cs (expanding on A/Cs where possible)
[ ] Add story and A/Cs to spec doc
[ ] Review with stakeholders
[ ] Release

Sketch
Notes

Linking to the Input Field Documentation as it may be useful. The default, hover, focused, error and disabled states are shown.
Might be something missing...


Add an example to require a special user field value

This simple example shows how to check additional field values to support some basic permission checks.
Closes #8.

Huh weird, rustfmt doesn't show any issues locally...?

Are you running with the --nightly flag? A few of the format options are only available in nightly and so something like this is required: $ cargo +nightly fmt --check.

Are you running with the --nightly flag? A few of the format options are only available in nightly and so something like this is required: $ cargo +nightly fmt --check.

Yep, seems like both versions were fine with cargo fmt for some reason, but I fixed it as the check wanted, should be fine now.

Thanks, great work! 🙌


relayer: Fix one-past-the-limit flaw in message batching

Closes: #2477
Description
Prevent the batch data size from exceeding the given tx size limit.
Previous code pushed the offending last message to the end of the tx,
resulting in an oversized transaction.

PR author checklist:

[x] Added changelog entry, using unclog.
[x] Added tests: integration (for Hermes) or unit/mock tests (for modules).
[x] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).
[x] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

Since batch_messages is now a pure function, let's have some unit tests that test the behavior of batch_messages directly without having to run the full integration test.

thanks for fixing this @mzabaluev !
Adding a note here, I checked the difference between the total length of the msgs in a batch and the final len of the serialized Tx and it's 278bytes. This is on a local gaia setup. We could probably recommend then for osmosis to allow for ~2k bytes for overhead until we figure out how to get that more exactly.

Tangentially related, but I noticed that there's no need for the batch_messages function to return a Result, should we change the signature of the function to just return Vec<Any>?

Can we expand the unit tests a bit, eg. to test for corner cases etc?

@romac I added a few more unit tests. Let me know if there are additional corner cases that you think should be covered 🙂


New Release?

Can we expect a new release this year, I know it's just a view commits since the last release but still.

I'd love to hear that, too. :-)

🤔
ok
😀


Fix colors in the agenda page

Description
On the new website the agenda details can not be read so well https://sugcon-eu.sitecoredemo.com/Agenda
Motivation
Looks bad and is not readable.
Before:

After:

How Has This Been Tested?

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation update (non-breaking change; modified files are limited to the /docs directory)

Checklist:

[x] I have read the Contributing guide.
[x] My code follows the code style of this project.
[x] My code/comments/docs fully adhere to the Code of Conduct.
[ ] My change is a code change and it requires an update to the documentation.
[ ] My change is a documentation change and it requires an update to the navigation.

Even though !important seem dirty, I am just fine with this approach since it's for the embedded agenda from sessionize.
Ideally however, the styling should be moved to a separate sass file. Just to make things more clear.. Otherwise those css rules will remain in the stylesheet long after we have changed to another agenda embed (which it might anyhow, but it'll be easier to spot if it's in a file named "sessionize.embeds.scss" or similar)

@anderslaub ,
I've move the styles for sessionize in a dedicated scss as suggested.


Cannot Re-render Viro360Image

Environment
Google Pixel 2 XL  OS - 9.0
Description
When rendering a ViroARScene, If the scene contains a Viro360Image and the scene is re-rendered, the Viro360Image remains visible in the scene. This only occurs on android, on IOS it behaves as expected. Have confirmed that state changes are occuring, and other functions relying on re-renders change, only the Viro360Image will not re-render
<ViroARScene>   {       this.props.arSceneNavigator.viroAppProps.showBackground &&     <Viro360Image source={require('../js/res/grey.jpg')} />   }   <ViroText text={this.state.text} scale={[1, 1, 1]} position={[0, 0, -4]} style={styles.helloWorldTextStyle} /> </ViroARScene>

Same thing for us. Impossible to remove the 360 image.
import {AppRegistry, View} from 'react-native';
import {
  Viro360Image,
  ViroARScene,
  ViroARSceneNavigator,
} from "react-viro";
import React, {useState} from "react";

const Navigator = () => {
  return <View style={{flex: 1}}>
    <ViroARSceneNavigator
      apiKey={"SOME_KEY"}
      initialScene={{
        scene: () => {
          const [visible, setVisible] = useState(true);
          console.log("visible: ",visible);
          return <ViroARScene>
            {visible && <Viro360Image
              source={require("./360.jpg")}
              onLoadEnd={() => {
                setTimeout(() => {
                  setVisible(false)
                }, 1000);
              }}
            />}
          </ViroARScene>;
        }
      }}/>
  </View>;
};

AppRegistry.registerComponent('project', () => Navigator);

An alternative is to use a sphere.
<ViroNode>
  <ViroOmniLight
    color="#ffffff"
    attenuationStartDistance={100}
    attenuationEndDistance={100}
    position={[0, 0, 0]}
  />
  <Viro3DObject
    source={require("./360.glb")}
    type="GLB"
    position={[0, 0, 0]}
    scale={[100,100,100]}
  />
</ViroNode>

360.glb.zip

how can you resize the image?and can we use any PNG or JPG image of any size for Viro360Image?


BUG: Cover doesn't recognize doors as open, so always marks as full cover.

Cover status is always marked as full cover regardless of if door is open or closed.

Ha! Great catch. I'll see what I can do about that.


LinkedIn::Client#network_updates(:type => "type") doesn't work!

Lines 8, 9 from examples/network.rb:
# get profile picture changes
client.network_updates(:type => 'PICT')

IRB transcript:
>> updates = client.network_updates(:type => "PRFU"); updates.all.map(&:update_type)
=> ["CONN", "CONN", "CONN", "CONN", "STAT", "JGRP", "CONN", "CONN", "CONN", "CONN"]

Looking at the code, it's obvious why "network_updates(:type => 'type')" doesn't work. "person_path", at line 40 of lib/api/query_methods.rb, only pays attention to option keys :id and :url.

OK, actually the problem is in "simple_query", not "person_path". But the fact remains that (official example notwithstanding) the :type parameter is completely ignored.
I patched "query_methods.rb" so that any of the optional parameters on any query method will work... I don't know if you'll like the way I did it, but I'm going to submit a PR and let you see. If you don't like it, perhaps you can fix the problem some other way.


wen

.

Hello, Mr/Ms ZhangTong.
Oh, I think I missed its script files, so I'll upload it(maybe before next Wednesday). Sorry and Thanks for remind me!!
-----Original Message-----
From: @.>
To: @.>;
Cc: @.***>;
Sent: 2023-07-13 (목) 10:22:54 (GMT+09:00)
Subject: [SJ1115/Materials-Synthesis-PU-GNN] wen (Issue #1)
Blogger, are there specific steps to implement it
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Profile SoTA models on Multinet

Identify SoTA models that are relevant to Multinet, and evaluate them on Multinet - both zero-shot, and fine-tuned.

Same as #54


Updates for AGU

These are changes I've made in the process of writing my Dakotathon talk for AGU. They're mostly bug fixes and documentation updates.

Coverage remained the same at 97.808% when pulling 4b88eb1bc9f8fdd482a2c5bad40deb4615494296 on mdpiper/updates-for-agu into 110e0eb2a878befa33661075029dc9d21d8d2366 on master.

Coverage remained the same at 97.808% when pulling 2ed0d6116f8933e1e41343901d44a847f36dc83b on mdpiper/updates-for-agu into 110e0eb2a878befa33661075029dc9d21d8d2366 on master.


receiving daily/weekly brief report email would be great

@muatik : This would involve being able to configure SMTP from configuration and some sort of UI that allows the user to schedule emails.
What do you have in mind, let's discuss this further, I may take this up.


Simple graphing tool

This graphing tool would allow editors to create graphs by just giving the tool a dataset. There is most likely a plugin tool that can be used for this (maybe Splunk or Google graphs for developers?) Perhaps, these graphs can be interactive for readers.

create a working csv parser that takes a file and converts it to a python list : 100%
add plotly functionality to this script to create a graph (line graph should be easiest to start) : 0%
figure out how to add this functionality to Wagtail (probably using streamfield would be easiest?) : 10%
add tools to format the graph (where in the page, changing x and y axis, changing visuals of the graph) : 0%


Add profile option after signing up

Add profile option after signing up, so that the user can see their information

Added new feature inside signup and login


address vco changes

This change is to address VCO assembly changes
Here is the reference for assembly changes
https://github.ibm.com/TNC/mcnp-azure/blob/cp4na-2.4-vcochanges/AzurePrimaryVNet/Descriptor/assembly.yml

Added these changes in https://github.com/IBM/azure-driver/pull/5


DRT fails with checkConnectivity break error

I'm seeing the following error during DRT of the attached design. Interestingly the error mentions layer 6 (met5), which should be disabled with -top_routing_layer met4. I don't see any met5 in the global route guides, so I presume it isn't coming from there.
Test case: connectivity-issue.tar.gz
Just in case, I added the files required to redo global routing:
# GRT
openroad groute.tcl
# DRT
./run.sh

Note that this error appeared in the middle of the ECO flow, so there is a chance the buffer fixup code has contributed to this.
Error: booth_b52_m48 1 pin not visited #guides = 12
Error: checkConnectivity break, net booth_b52_m48
Objs not visited:
frPathSeg: begin<PHONE_NUMBER>50 ) end (<PHONE_NUMBER>50 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>30 ) end (<PHONE_NUMBER>30 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>00 ) end (<PHONE_NUMBER>50 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>00 ) end (<PHONE_NUMBER>50 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>00 ) end (<PHONE_NUMBER>30 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>30 ) end (<PHONE_NUMBER>30 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>00 ) end (<PHONE_NUMBER>00 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>00 ) end (<PHONE_NUMBER>00 ) layerNum 4
	beginStyle: 1
	endStyle: 1
frPathSeg: begin<PHONE_NUMBER>30 ) end (<PHONE_NUMBER>30 ) layerNum 6
	beginStyle: 1
	endStyle: 1
frVia: at (<PHONE_NUMBER>30 )
VIA DEF:
VIA M1M2_PR DEFAULT
  RECT -160 -130 160 130
  RECT -75 -75 75 75
  RECT -130 -160 130 160
frVia: at (<PHONE_NUMBER>30 )
VIA DEF:
VIA L1M1_PR DEFAULT
  RECT -85 -85 85 85
  RECT -85 -85 85 85
  RECT -145 -115 145 115
frVia: at (<PHONE_NUMBER>30 )
VIA DEF:
VIA M1M2_PR DEFAULT
  RECT -160 -130 160 130
  RECT -75 -75 75 75
  RECT -130 -160 130 160
INSTTERM: (INST/CELL/TERM/NET) U$$3665 sky130_fd_sc_hd__xor2_1 X booth_b52_m48

Please test with this branch: https://github.com/The-OpenROAD-Project-private/OpenROAD/tree/secure-TR_APsWithShapes
I made a fix for other connectivity error so perhaps their cause was the same.

@Stephanommg he will not have access to the private repo.   If you make a PR and label it so sync public that will copy over the branch to the staging repo where he can see it.

@antonblanchard you can see it at The-OpenROAD-Project-staging:secure-TR_APsWithShapes

Link:  https://github.com/The-OpenROAD-Project-staging/OpenROAD/tree/secure-TR_APsWithShapes

How can I checkout this branch? I can try to check this if that's ok. Do I need to re-install OpenROAD? Thanks.

Please check the master branch and report back if its solved.

It's still reproducing as of commit be66da7a5d3c18a69683b72e691c43d55d3e2fe7

FYI, I already am aware of what the problem is and I will be working on solving it in the next week.

FYI, the problem is solved, but it is still going through some tests.


docs: Add missing Javadocs for GoogleMap contentPadding parameter

Someone on Discord asked about setting the padding on the GoogleMap, and I realized that we're missing Javadocs for this parameter.
This PR adds the missing Javadocs, based on:
https://developers.google.com/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/GoogleMap#setPadding(int, int, int, int)

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Make sure to open a GitHub issue as a bug/feature request before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

@barbeau Please take a moment to fill out this short survey. Thank you!
This is an automated message, feel free to ignore.


Favicon URL address edit is not saved

Hello guys,
Small issue: when I'm doing a right click on favicon from FavBar to edit url address, it's not saved. Right click again gives old url. Editing from main FB settings page works fine.
I'm using 1.3.1.
Thanks for awesome work!

Seems like right-click rename is not working either, how did I screw those up?  I'll get it fixed in the next version.  Thanks for the report.

This should now be solved in the latest release. @Blazej-pl: closing this issue for now but feel free to reopen it if its still not working


A java.lang.Error in processing a workflow causes Dockstore to report it was successfully processed

EDIT 28/Dec/2022:
Per the leads' direction, the work for this ticket was split into two.  In the first installation, the problem with the WDL processing that triggered the misreported “success” was fixed.  See PR https://github.com/dockstore/dockstore/pull/5291
A new ticket was created to come up with a policy regarding the catching of Errors, and to subsequently fix the creation of a "success"ful log entry when an error is thrown in the push processing code: https://ucsc-cgl.atlassian.net/browse/SEAB-5097
Describe the bug
If a java.lang.Error occurs in processing a workflow, Dockstore reports the workflow as having been successfully processed. But the version is not updated, nor the workflow created if needed.
In this real world case, a WDL had a circular import, which caused a legitimate StackOverflowError from the Cromwell Java code.
Problem looks to be here – a StackOverFlowError is not an Exception, so the code falls through to finally, where it creates an event saying all is good.
Possibly the root cause of both #5272 and #5273 , although this needs to be verified.
Edit (by Steve): while we’re fixing this, we should probably also modify the TransactionHelper class similarly so that it detects/stores Errors emerging from the db methods.
To Reproduce
Steps to reproduce the behavior:
It happened with this workflow:  https://github.com/aofarrel/fairyland/blob/f057d043b5b56d5259e1bbb2a89c4bbc1fc7e0e9/ld-pruning/ld-pruning-wf.wdl, but it might be hard to reproduce with that one.

Create a workflow that imports itself (you'll probably need to do an http import, but maybe not).
Register with Dockstore, push
Look at the GitHub app logs – is says the push was successful, but the workflow doesn't show up.

Expected behavior
There should be an error in the GitHub app logs.
Additional context
Webservice

1.13.1

UI

2.10.1

Compose Setup

1.13.1

Deploy

1.13.2

┆Issue is synchronized with this Jira Story
┆Fix Versions: Dockstore 1.14
┆Issue Number: DOCK-2299
┆Sprint: 102 - Dutchman, The Flying
┆Issue Type: Story

I tried a recursive import, looked at the logs and saw an error.
[Domain] - https://qa.dockstore.org
Webservice - 199226f
UI - 2.10.1-110-g429bd41b
Compose Setup - 6f68328
Deploy - 1.13.2-31-g140c057
cwlParsingLambdaVersion: n/a
wdlParsingLambdaVersion: n/a
nextflowParsingLambdaVersion: n/a
galaxyParsingLambdaVersion: 0.0.6
checkUrlLambdaVersion: n/a


lib/py/test/test_sslsocket.py is flaky

Previously a combination of fixed ports, fixed paths and delays was used
in all TSSLSocketTest tests that involved making a client-server
connection; now ephemeral ports, unique tmp files and no delays for
successful connection tests are all implemented. A delay still remains
for the failed connection tests to allow for SSL handshake initiation
but not wait too long.

@nsuke - hoping you have time to review this one

Noting that Jenkins CI failed on lib/cpp/test/SecurityTest.cpp before getting to test_sslsocket.py.
I have a fix for the SecurityTest in #848 that still needs review attention so I'll mark THRIFT-3616 as blocked on THRIFT-3608


Identity Cookie Auth via Javascript Client (Electronjs client)

Please consider the following before filing an issue

If you are using NuGet Packages that start with Microsoft.AspNet.SignalR, use the issue tracker at https://github.com/SignalR/SignalR to report the issue. This
repository is for packages that start with Microsoft.AspNetCore.SignalR (and NPM packages that start with @aspnet/signalr)

Please include as much of the following as you can in your bug report

Versions of Server-Side NuGet Packages: 2.1.0-rc1-final
Versions of Client-Side NuGet/NPM Packages: ^1.0.0-rc1-update1
Are you using the C# client or the JavaScript client: Javascript Client
The Server you are using (Kestrel/HttpSysServer/IIS/IIS Express/Azure Web App/etc.): IIS Express
The Operating System on the Server (Windows/Linux/macOS): Windows
The Operating System on the Client (Windows/Linux/macOS): Windows
The Browser on the client, if using the JavaScript client (IE/Chrome/Edge/Firefox/etc.): Chrome (Electron)
Please use the Diagnostics Guide at https://github.com/aspnet/SignalR/wiki/Diagnostics-Guide to collect server-side and client-side logs and network traces if possible. Please do not put the traces and logs in the Issue text as they are quite large. The Diagnostics Guide describes how to attach them to the issue.

When in doubt, feel free to file the issue, we're happy to help answer questions. We also suggest using the asp.net-core-signalr tag on StackOverflow to ask questions.
Description
I've got a basic chathub example set up on the server-side, except it has an [Authorize] attribute on it so I can restrict it to logged in users.
The client is an Electron application. It creates a browser window to the local site. The user logs in, and when the Electron app detects that the '.AspNetCore.Identity.Application' has been set, it attempts to initialize a session from the main electron process.
The issue lies in that the main electron process doesn't automatically send the Identity cookie, and there doesn't seem to be a way to add one to a request (the actual request is buried underneath a bit of abstraction, and the headers sent don't seem configurable without heavily modifying the library.
Is there a recommended approach for what is essentially a node client to add an identity cookie?

We don't have a great Node story quite yet, we focused on Browsers in the first release but did our best to make it possible to use Node, even if it's not simple 😉. We have #2301 filed to track work on making this better in the next release.
The first thing you have to provide in Node is an implementation of our HttpClient abstract base class. We provide a default implementation that uses XMLHttpRequest, so in theory if your Node environment has that object available, it should work, but configuring it is up to you.
If you just want to get something working right now, I think the best approach would be to start by implementing a custom HttpClient. You can use Node's HTTP client APIs to implement it and implement whatever cookie logic you need :).
Here's a brief TypeScript example of configuring an using a custom HttpClient:
import { HttpClient, HubConnectionBuilder, HttpRequest } from "@aspnet/signalR"

export class NodeHttpClient extends HttpClient {
    public send(request: HttpRequest): Promise<HttpResponse> {
        // Send the HTTP request using the Node APIs here!
    }
}

See DefaultHttpClient for an example, it's the code that implements our default logic using XMLHttpRequest in browsers.
If you want to use WebSockets, you're going to also need to provide polyfills for that which mimic the browser APIs (which also means they have to be installed onto the global object rather than imported as modules). We're also planning to improve that moving forward.
Once you've got a custom HttpClient implementation, and optionally a polyfill for WebSocket, you can set everything up using code like this:
// if you are using a WebSocket polyfill like https://github.com/websockets/ws
// you need to "install" it into the global scope like this
global.WebSocket = require("ws");

const connection = new HubConnectionBuilder()
    .withUrl("/myhub", { httpClient: new NodeHttpClient() })
    .build();

Ah it was the optional httpclient builder parameter I was looking for.
Thanks!
Yeah completely makes sense that browsers are targeted first. The application has been working so far with regular websockets, but figured I'd give the transition to SignalR a shot.
Keep up the good work.


Research Sonar reports

[x] Understand how reports will be stored
[x] Decorate pull requests with SonarCloud

https://github.com/apps/sonarcloud

@srinivasaregeti will add link to reports

https://sonarcloud.io/dashboard?id=US-EPA-CAMD_PI-1


Record test broken

Change https://github.com/Azure/azure-sdk-for-net/pull/6546 broke the ability to do recording tests.
The culprit is file HttpClientTransport.cs.
Repro

In class KeyVaultTestBase do:

protected KeyVaultTestBase(bool isAsync) : base(isAsync, RecordedTestMode.Record)
{
}

Run test i.e. setSecret.
Then copy the generated setSecret.json file to the Sessionrecords folder.
Note that the generated files are different because of "Content-Length": "18",
Change to RecordedTestMode.Playback
Run test setSecret again

Failure:
System.InvalidOperationException : Unable to find recorded request with method Put and uri https://pakrym-keyvault.vault.azure.net/secrets/310736355?api-version=7.0
And it is because when comparing headers, the .json file contains "Content-Length": "18" while the message request created doesn't.
Stack trace:
at RecordSession.Lookup(Request request, RecordMatcher matcher) in RecordSession.cs line: 75
    at PlaybackTransport.Process(HttpPipelineMessage message) in PlaybackTransport.cs line: 69
    at HttpPipelineTransportPolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelineTransportPolicy.cs line: 30
    at HttpPipelinePolicy.ProcessNext(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelinePolicy.cs line: 36
    at BufferResponsePolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in BufferResponsePolicy.cs line: 26
    at HttpPipelinePolicy.ProcessNext(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelinePolicy.cs line: 36
    at LoggingPolicy.ProcessAsync(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline, Boolean async) in LoggingPolicy.cs line: 38
    at TaskExtensions.EnsureCompleted(Task task) in TaskExtensions.cs line: 20
    at LoggingPolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in LoggingPolicy.cs line: 168
    at HttpPipelinePolicy.ProcessNext(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelinePolicy.cs line: 36
    at BearerTokenAuthenticationPolicy.ProcessAsync(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline, Boolean async) in BearerTokenAuthenticationPolicy.cs line: 71
    at TaskExtensions.EnsureCompleted(Task task) in TaskExtensions.cs line: 20
    at BearerTokenAuthenticationPolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in BearerTokenAuthenticationPolicy.cs line: 48
    at HttpPipelinePolicy.ProcessNext(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelinePolicy.cs line: 36
    at RetryPolicy.ProcessAsync(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline, Boolean async) in RetryPolicy.cs line: 67
    at RetryPolicy.ProcessAsync(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline, Boolean async) in RetryPolicy.cs line: 99
    at TaskExtensions.EnsureCompleted(Task task) in TaskExtensions.cs line: 20
    at RetryPolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in RetryPolicy.cs line: 43
    at HttpPipelinePolicy.ProcessNext(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelinePolicy.cs line: 36
    at SynchronousHttpPipelinePolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in SynchronousHttpPipelinePolicy.cs line: 14
    at HttpPipelinePolicy.ProcessNext(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in HttpPipelinePolicy.cs line: 36
    at SynchronousHttpPipelinePolicy.Process(HttpPipelineMessage message, ReadOnlyMemory`1 pipeline) in SynchronousHttpPipelinePolicy.cs line: 14
    at HttpPipeline.SendRequest(Request request, CancellationToken cancellationToken) in HttpPipeline.cs line: 50
    at SecretClient.SendRequest(Request request, CancellationToken cancellationToken) in SecretClient.cs line: 312
    at SecretClient.SendRequest[TContent,TResult](HttpPipelineMethod method, TContent content, Func`1 resultFactory, CancellationToken cancellationToken, String[] path) in SecretClient.cs line: 253
    at SecretClient.Set(Secret secret, CancellationToken cancellationToken) in SecretClient.cs line: 116
    at SecretClient.Set(String name, String value, CancellationToken cancellationToken) in SecretClient.cs line: 126
    at --- End of stack trace from previous location where exception was thrown ---
    at SecretClientLiveTests.SetSecret() in SecretClientLiveTests.cs line: 29
    at GenericAdapter`1.GetResult() in TaskAwaitAdapter.cs line: 99
    at AsyncToSyncAdapter.Await(Func`1 invoke) in AsyncToSyncAdapter.cs line: 60
    at TestMethodCommand.Execute(TestExecutionContext context) in TestMethodCommand.cs line: 64
    at <>c__DisplayClass1_0.<Execute>b__0() in BeforeAndAfterTestCommand.cs line: 58
    at BeforeAndAfterTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action) in BeforeAndAfterTestCommand.cs line: 73

Add it to the list of ignored headers as a temporary workaround.


Improvement to the large query

Very interesting approach. I made some improvements.

replace all ' with " to be consistent, so we can easily put the query inside quotes.
make use of well-known SIDs to identify the group of domain controllers. The name of the group depends on the AD's language.  :-)
I considered the use of Cypher variables before but the drawback I saw was that, the query utilising them might be unusable from Neo4j Web UI. That's why I opted for a tradeoff involving Find&Replace annoyance.
With that said, what do you think about putting two separately designed queries next to each other, giving auditor's choice depending on his use case?
Regards,
M.

In the web UI you can set parameters with this command before executing the query:
:param domain => 'mydomain.local'

See https://neo4j.com/docs/cypher-manual/current/syntax/parameters/
I mean, you need to find and replace the domain name anyway. Not many domains are named contoso.local ;) might as well replace $domain instead of contoso.local.

Didn't you know it's possible to define params in web UI, that might in fact be far easier approach!
Looks cool to me. I'm gonna test it out in a spare minute and add it to the collection.
Thank you @AdrianVollmer - really appreciate it :-)


Adding the algo to calculate subsets of Array in Julia

💥 Proposal
Creating the algo of making subsets of Array in Julia
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


Date parser is case sensitive: "APR" should be parsed as April.

Describe the bug
https://github.com/k9mail/k-9/blob/a3d6fd7ab4ba1426f4fdf3ded51286219f5eeb10/mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/ImapList.java is missing a date format to match a Date field with a capitalised month, e.g. Date: 26 APR 21 21:17:10 +0000
To Reproduce
Steps to reproduce the behavior:

Sync an email with header Date: 26 APR 21 21:17:10 +0000
Observe that email's date as rendered in the k-9 UI

Expected behavior
The date is 2021-04-26 21:17:10.
Actual behavior
The date is now().
Environment (please complete the following information):

K-9 Mail version: 5.734
Android version: 11
Device: Google Pixel 4XL
Account type: IMAP

Additional context
https://tools.ietf.org/html/rfc2822#section-3.3 does consider a capitalised month "APR" to be invalid.

Is https://docs.oracle.com/javase/9/docs/api/java/time/format/DateTimeFormatterBuilder.html#parseCaseInsensitive-- available to k9-mail?

a3d6fd7/mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/ImapList.java is missing a date format to match a Date field with a capitalised month, e.g. Date: 26 APR 21 21:17:10 +0000

ImapList.parseDate() is only used for IMAP's INTERNALDATE property, not the value of the Date header field.

tools.ietf.org/html/rfc2822#section-3.3 does consider a capitalised month "APR" to be invalid.

Well, ABNF strings are case-insensitive. So I guess the parser should have been able to handle this.
However, it's also using the obsolete syntax. Every implementation that generates such a date string in 2021 needs to be fixed. Please (also) try to get the sender to fix their message generation.

I have the same issue with an email that has the following in its message header:
date: 19 may 2022 17:14:33

date: 19 may 2022 17:14:33

This is not a valid date value because it is missing the time zone offset. Time zone information has never been optional, i.e. even the obsolete syntax requires it.
Please contact the author of the message and ask them to fix the software they're using.

It is not an issue in Thunderbird or in FairEmail, so presumably UTC is assumed, or one of the other dates in the message header is used.

For "but it works with other clients", please see #1356.


Attempting to post always errors with "No configuration provided for note (or whatever) post type" despite there being an entry for it in publication.postTypes

Describe the bug
I have an IndieKit instance up and running on indieweb.oconnor.cx.
When I attempt to post a note with the micro.pub iOS client, or when I attempt to post a bookmark with IndieKit directly, I always get the above error message, despite my indiekit.config.js configuring publication.postTypes to support those two post types.
FWIW, here's the relevant section of my config:
exports.publication = {
    locale: 'en',
    me: 'https://tess.oconnor.cx',
    postTypes: [
        {
            type: 'note',
            name: 'Concise',
            post: {
                path: '{yyyy}/{MM}/{slug}.md',
                url: '{yyyy}/{MM}/{slug}'
            }
        },
        {
            type: 'article',
            name: 'Rambling',
            post: {
                path: '{yyyy}/{MM}/{slug}.md',
                url: '{yyyy}/{MM}/{slug}'
            }
        },
        {
            type: 'bookmark',
            name: 'Link',
            post: {
                path: '{yyyy}/{MM}/{slug}.md',
                url: '{yyyy}/{MM}/{slug}'
            }
        }
    ],
    postTemplate: farStarPostTemplate,
    slugSeparator: '-'
};

Screenshots or logs
I'd love to include logs but I have no idea where IndieKit puts them.
Environment

Indiekit version: 1.0.0-alpha.12
Browser: Safari Technology Preview
Server/host: Linode
Content store URL: https://github.com/hober/website-data
Publication URL: https://tess.oconnor.cx

Hmmm, sounds like this may be #465. That fix hasn’t been released yet, so I should probably get a new release out there soon. In the meantime, does this problem disappear if you add a publication preset?

Hmmm, sounds like this may be #465. That fix hasn’t been released yet, so I should probably get a new release out there soon.

Yup, it's definitely that.

In the meantime, does this problem disappear if you add a publication preset?

There isn't a preset for the (unique) SSG I use. Maybe I should write one! :)

Duplicate of #465.

Yup, it's definitely that.

Phew! But a good reminder that a release is long overdue…

There isn't a preset for the (unique) SSG I use. Maybe I should write one! :)

Let me know if you have any questions; keen to get feedback on the usability (or otherwise) of the documentation.


Kubernetes executor- worker pods not getting created

Hi, I am trying to get a setup using Kubernetes executor and the initial setup goes fine. However DAGs fail to run and no worker nodes seem to be created.
Please see https://github.com/neku-dev-88/airflow_kubernetes for the code on airflow value files and kubectl resources.
The way I set this up locally installs the following steps in command prompt (Windows, I use kind: https://kind.sigs.k8s.io/):

kind create cluster --image kindest/node:v1.18.15
helm repo add airflow-stable https://airflow-helm.github.io/charts
kubectl apply -n airflow-staging -f roles.yaml
helm install airflow-staging airflow-stable/airflow -f charts/airflow/values-staging.yaml --namespace airflow-staging

When I try running a DAG it just stays in "running" status:

I see no new pods are being created:

I have even created an airflow service role and used a cluster role binding to give it a cluster role to create pods, but no luck.
values file:
###################################
## CONFIG | Kubernetes ServiceAccount
###################################
serviceAccount:
  ## if a Kubernetes ServiceAccount is created
  ## - if `false`, you must create the service account outside this chart with name: `serviceAccount.name`
  ##
  create: true

  ## the name of the ServiceAccount
  ## - by default the name is generated using the `airflow.serviceAccountName` template in `_helpers/common.tpl`
  ##
  name: airflow

roles file:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: pods-permissions
rules:
  - apiGroups: [""]
    resources: ["pods"]
    verbs: ["get", "list", "watch", "create", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: airflow-pods
  namespace: airflow-staging
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: pods-permissions
subjects:
  - kind: ServiceAccount
    name: airflow
    namespace: airflow-staging
---

I feel like I'm missing something in the setup, please advise.

Based on the screenshot posted, doesn't look like you have enabled the DAG, by clicking on the toggle, if that is not the case, can you post your custom-values.yml file?

Yes that was the issue, thanks!


[Develop] Fix cluster deletion failure when enable placement group

Description of changes

Add back the logic of waiting for nodes shut-down and placement group update.

References

This https://github.com/aws/aws-parallelcluster/pull/6169 PR caused if we enable placement group, the cluster deletion will fail. Fail message:
The placement group 'test1-ComputeFleetQueuesNestedStackQueuesNestedStackResource4C142E85-KWDIYNRLWKYM-PlacementGroupBb4e614a3a68fa43-JTRVLZ06WEVN' is in use and may not be deleted. (Service: Ec2, Status Code: 400, Request ID: 8602aa29-8b27-4541-ab98-d378ec4ce8e4)
So for now, we consider this logic is necessary in this case, will try to find another approach to fix the situation of cluster deletion failure when termination gets longer for some instance types.

Checklist

Make sure you are pointing to the right branch.
If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
Check all commits' messages are clear, describing what and why vs how.
Make sure to have added unit tests or integration tests to cover the new/modified code.
Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Since we are reverting a change, it's safer to do a git revert rather than manually changing the files


Ability to use new screen API

Is it possible to use addon with new screens api or I have to use legasy one?

Hi,
We are going to release Dashboards 3.0, in this release new screens API will be supported


Multi-byte memory comparisons

cozy currently compares memory byte-by-byte, however the on_mem_write handler knows how many bytes an instruction is writing. If we could keep this size information around somewhere, it would lead to faster memory comparisons as well as more understandable memory diffing.

Fixed in commit 0ed04c3


Basic documentation

There is virtually none at the moment, and it's essential to have before any public reveal.

I'm working on it at the moment. Just to make sure that nobody else will peek this up.

Considering the basics done in #29, more to follow


Add expression simplification

Expressions are now simplified upon parsing using https://docs.rs/quine-mc_cluskey/0.2.4/quine_mc_cluskey/

Actually, will just close this since expression simplification actually makes them more complicated in most cases compared to the postfix we use already, but I'll keep the branch alive just in case.


Fix CI docker push step for PRs

PRs from forks (i.e. community contributions) don't have the right to the GHCR token. They would normally only push to PR container tags, which would be fine, but in theory it would be possibly to edit the CI definition and push to another tag, as PRs run the CI as it is defined on the PR branch.
What to do?

skip the step, because it's not that important to have a prebuilt container for each branch available to test it?
some yet unknown permission feature of github?
?

https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target


add descroiption to override service manifest endpoints

@rwike77 @masnider

@tugup,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@tugup : Thanks for your contribution to the Azure documentation! The author, @mani-ramaswamy, has been notified to review your proposed change.

#sign-off


How to test ZK Rollup contracts

What I'd like to do
I am trying to deploy and test ZK Rollup contracts to the local blockchain network.
First of all, I ran the npm run test on the following directory but it didn't work.
https://github.com/matter-labs/zksync/tree/master/contracts
Problem
There are some missing contracts for example ./TokenInit.sol.
(base) ➜  contracts git:(master) yarn test
yarn run v1.21.1
$ yarn build && zk f mocha -r ts-node/register test/**/*.ts
$ waffle .waffle.json
Error: None of the sub-resolvers resolved "./TokenInit.sol" location.
    at resolverError (/Users/johnson/zksync/node_modules/@resolver-engine/core/build/resolverengine.js:75:32)
    at ResolverEngine.<anonymous> (/Users/johnson/zksync/node_modules/@resolver-engine/core/build/resolverengine.js:52:23)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/johnson/zksync/node_modules/@resolver-engine/core/build/resolverengine.js:4:58)
    at processTicksAndRejections (internal/process/task_queues.js:88:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Question
Can I try ZK Rollup solidity contract on my locally?
Which contracts are working on mainnet?
Are ZK Rollup contracts on the way to development?

You have to bootstrap the environment before testing. We have several guides:

Setup of the development environment
Development hints
Running the network locally

Answering your question, we have several generated contracts, so prior to testing you have to generate them. This is done automatically within the zk init command.

Thank you!
Very cool!


Docker image is generating with name "example-all"

This issue is your .reactantrc file was configured in the following way . . .
platforms:
  web:
    image: image/name:latest

. . . and instead should have been configured in the following way
platforms:
  web:
    docker:
      image: image/name:latest


feat(dashboard): add autosizing grid

Overview
Allows the dashboard to auto size the grid depending on the available space. This is the behavior if you do not define the cellSize in dashboard display settings. If you do not define the cellSize, it will be undefined in displaySettings on save
This PR also adds an e2e drag and drop test.
Legal
This project is available under the Apache 2.0 License.

This looks like you may have squashed a bit too aggressively.

This looks like you may have squashed a bit too aggressively.

Ya, I messed up the rebase. Corrected it.


Visual SlickNav issue

I'm seeing an issue visually when I run my website this is what I see

This is my websites Code
https://pastebin.com/UhggqGys

{list-style-type: none;}

No it didn't work here is my CSS if it helps
https://pastebin.com/RxyjfPjk
And here is the slicknav CSS if it helps
https://pastebin.com/xyiHzawA
Thanks this will really help


deprecated packes for version 3.0.1

i'm use laravel 6.* and collision v4.2 not support this!
please fix this issue for v3 branch.

We don't support Collision v3.x anymore, or Laravel v6.x. Fell free to fork the project or remove collision for your dev-dependencies.


nixos/docker: load more required kernel modules

Motivation for this change
This builds on #76487.
br_netfilter
When I first added veth it was suggested I add bridge as well. Without
bridge I get the following error message when starting the daemon with
security.lockKernelModules=true:

Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: could not insert 'br_netfilter': Operation not permitted

Therefore if we're going to add bridge we may as well add br_netfilter
as well.
xt_nat
Without xt_nat, docker cannot do dnat with iptables, failing with:

iptables v1.8.4 (legacy): unknown option "--to-destination"\nTry `iptables -h' or 'iptables --help' for more information.\n (exit status 2))

Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

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

We want to finally merge this?


Add support for annotations in DefineFunctionEvent

This pull request adds support for annotations in function definition.
According to SemGuS documents, the function bodies may be annotated with input and output variables. However the annotations are ignored by the current parser. This PR implements reading annotations from the function body.

This seems fine to me, but I haven't tested it. Anyone else actively using SemGuS Java right now to check it?


Can't compile

Hi. Im trying to compile the source code using VS2022 CE With WAS 1.3. During compilation tons of errors occur in file src/Pages/FolderView.xaml.cpp: E2486 invalid literal suffix "uz"; could not find literal operator or literal operator template "operator""uz" (line 179 and 20 more lines). Any solution?

Solved by deleting every "z" on those lines (e. g. 1uz -> 1u)

The uz suffix for integer literals is a feature in C++23 that I really like. Unfortunately, MSVC hasn’t implemented it yet, so I created a patch in pch.h. If you include pch.h correctly, it should work fine (though it might give a one-time warning). Have you done anything else? If the project is being built as-is, I think this is an issue worth investigating.

The uz suffix for integer literals is a feature in C++23 that I really like. Unfortunately, MSVC hasn’t implemented it yet, so I created a patch in pch.h. If you include pch.h correctly, it should work fine (though it might give a one-time warning). Have you done anything else? If the project is being built as-is, I think this is an issue worth investigating.
Nope, I didn't do anything else. Just downloaded source code, tried to build it (Debug x64) and errors occured.


Arrow-keys navigation and refreshing limited in table editor

System information:

Operating system (distribution) and version: Linux Mint 19 (Ubuntu 16.04)
DBeaver version 6.0.0
Java version 11

Connection specification:

Database name and version SQL Server 2017
Driver name SQL Server
Do you use tunnels or proxies (SSH, SOCKS, etc)? no

Describe the problem you're observing:
In 6.0.0 navigation in table editor on columns that are referencing other columns (i.e. have FOREIGN KEY-s applied to them) has changed. This results in current cell loosing focus on keyboard navigation and refreshing.
This is a regression from 5.3.5, where arrow keys and F5 could be used to freely navigate on the table cells, then pressing F2 to change the value in a given cell.
Steps to reproduce, if exist:
Open table editor on non-empty table, "Data" tab, with "Value" view enabled (F7). Click on any cell in column that has an arrow in it (indicating that it's a reference to another column). Navigate up-down. Observe how the focus is moved to the "Value" text field (in 5.3.5 the focus stayed on the table) and its content is selected.
Navigate left-right. As the focus is in the text field, you are navigating in the text field (in 5.3.5 navigation on the table editor was performed).
Press F5 to refresh the table content. Observe as the focus is moved from the cell to the text field again (in 5.3.5 it stayed in the table).
Turning "Value" view off allows for pre-6.0 navigation.

Happens to me too - for FK columns the focus automatically moves to the value tab - disallowing further left/right arrow navigation on the table.

Right, looks like fixed in 6.0.1. Although in-place editing is broken there (#5575), so upgrade to 6.0.2 is required to get back sensible keyboard navigation on the table editor.


Added prototype of InputTextArea

As per request I send this proposal of an InputTextArea. So one can have a multiple line InputTextField. Here is a link to the forum discussion: https://forum.babylonjs.com/t/gui-textinput-with-multiple-lines/9927
The are a quite a few things left and since I got no time in the moment, maybe others can push this forward.
What's missing:
include margin
text highlighting (copy/paste/delete)
backspace deletion

I don't know how to reolve this issue:
 [at-loader] ../../gui/src/2D/controls/inputTextArea.ts:906:55
    TS2339: Property 'text' does not exist on type 'object'.

Hello and thanks a ton! Before going in depth I think we should consider having the textarea inheriting from textinput as they share a lot of code (to avoid duplications and maintenance hurdles)

Related to #5630

It is getting there nicely, text highlighting and the rest would be kickass :-)

@fneitzel do you think you will address the PR ?

Closing for being stalled for too long
Please feel free to reopen when possible


TST check before vs after for all notebooks

only checking this for those where mutation is allowed

Hello Marco, What's this?

Hello @vijayvkm7891987 ! What I meant here was that I should check whether notebooks changed after a command is applied to them. For example, if I apply nbqa flake8 notebook.ipynb I would not expect the notebook to change.
I opened this issue before I introduced the --nbqa-mutation flag though, so now it's not really necessary to check this.
Are you interested in contributing? If so, some help on supporting bash cells (#152) would be really appreciated - as would any kind of clean-up / performance improvement / documentation / etc.

Thank you. Actually,I am engaged in multiple tasks. But, I will look into
this.
Regards,
Vijay
On Sat, Aug 29, 2020, 10:33 PM Marco Gorelli<EMAIL_ADDRESS>wrote:

Hello @vijayvkm7891987 https://github.com/vijayvkm7891987 ! What I
meant here was that I should check whether notebooks changed after a
command is applied to them. For example, if I apply nbqa flake8
notebook.ipynb I would not expect the notebook to change.
I opened this issue before I introduced the --nbqa-mutation flag though,
so now it's not really necessary to check this.
Are you interested in contributing? If so, some help on supporting bash
cells (#152 https://github.com/nbQA-dev/nbQA/issues/152) would be
really appreciated - as would any kind of clean-up / performance
improvement / documentation / etc.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nbQA-dev/nbQA/issues/122#issuecomment-683316356, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AIDLCDUT3FFEFB4IJQ5S5GLSDEYELANCNFSM4PKYL6SA
.


Want to display a list of data that is inside my rowData as detailPanel.

I have to write rowData.rowData.list to access the list.

Can you show us what you tried in a sandbox or anything? Just a request is not sufficient.