message list shifted up if extendBodyBehindAppBar is true

When I set the extendBodyBehindAppBar parameter to true all the messages in the message list are moved up. They should not shift up and should stay in place the same way they are when extendBodyBehindAppBar is false.
stackoverflow link
The entire bug with screen shots and code samples are posted on stackoverflow.

Can you replicate this with the Dash-Chat-2 example? I was unable to see what your screenshots are showing. I even copied your code directly into one of the examples (without GetBuilder surrounding Dash Chat) and I don't see it.

Left is extendBodyBehindAppBar: true and the right is extendBodyBehindAppBar: false. You can see how the bottom is pushed up when it is true. I have also removed GetBuilder for this example (show in screenshots above) and the code is running only as the child in the Expanded widget still producing this layout issue.
Flutter 3.7.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 90c64ed42b (7 weeks ago) • 2023-03-21 11:27:08 -0500
Engine • revision 9aa7816315
Tools • Dart 2.19.5 • DevTools 2.20.1
dash_chat_2: ^0.0.15

return Container(       decoration: const BoxDecoration(         color: Colors.black,         image: DecorationImage(           image: AssetImage('assets/images/bg_chat_invert.jpg'),           fit: BoxFit.cover,         ),       ),       child: Scaffold(         backgroundColor: Colors.transparent,         appBar: AppBar(           backgroundColor: Colors.transparent,           title: _buildHeader(channelMessagesController),           // leading: BackButton(           //   onPressed: () => _channelMessagesController.closePage(),           // ),           //elevation: 0.0,         ),         extendBodyBehindAppBar: false,         extendBody: true,         body: Padding(           padding: const EdgeInsets.fromLTRB(10, 0, 10, 14),           child: Column(             mainAxisAlignment: MainAxisAlignment.spaceBetween,             children: [               Expanded(                 child: DashChat(                   currentUser: channelMessagesController.chatSender,                   onSend: (ChatMessage m) {                     _sendMessage(context, channelMessagesController);                   },                   messages: channelMessagesController.messages,                   inputOptions: InputOptions(                     textController: channelMessagesController.inputTextController,                     inputTextStyle: const TextStyle(color: Colors.black),                     sendButtonBuilder: defaultSendButton(color: palette.kButtonColor!),                   ),                 ),                 // child: GetBuilder<ChannelMessagesPageController>(                 //   tag: uid.toString(),                 //   builder: (controller) {                 //     return DashChat(                 //       currentUser: channelMessagesController.chatSender,                 //       onSend: (ChatMessage m) {                 //         _sendMessage(context, channelMessagesController);                 //       },                 //       messages: channelMessagesController.messages,                 //       inputOptions: InputOptions(                 //         textController: channelMessagesController.inputTextController,                 //         inputTextStyle: const TextStyle(color: Colors.black),                 //         sendButtonBuilder: defaultSendButton(color: palette.kButtonColor!),                 //       ),                 //     );                 //   },                 // ),               ),             ],           ),         ),       ),     );

Thank you for the test code. I was not able to reproduce this on a physical iPhone 14 Pro or on the simulator using the same device. Here are some videos.
Simulator:
https://github.com/SebastienBtr/Dash-Chat-2/assets/825344/1221745a-7506-423e-9df0-16c9c13321fd
Physical:
https://github.com/SebastienBtr/Dash-Chat-2/assets/825344/053416ca-fa6a-4650-b087-1fc7a16d5439
Here is the code I ended up using because when I copy + pasted yours I was missing some functions.
import 'package:dash_chat_2/dash_chat_2.dart';
import 'package:examples/data.dart';
import 'package:flutter/material.dart';

class Basic extends StatefulWidget {
  @override
  State<Basic> createState() => BasicState();
}

class BasicState extends State<Basic> {
  List<ChatMessage> messages = basicSample;

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: const BoxDecoration(
        color: Colors.black,
        image: DecorationImage(
          image: AssetImage('assets/images/bg_chat_invert.jpg'),
          fit: BoxFit.cover,
        ),
      ),
      child: Scaffold(
        backgroundColor: Colors.transparent,
        appBar: AppBar(
          backgroundColor: Colors.transparent,
          title: Text('Test'),
          // leading: BackButton(
          //   onPressed: () => _channelMessagesController.closePage(),
          // ),
          //elevation: 0.0,
        ),
        extendBodyBehindAppBar:
            false, //****Toggle this between true and false to reproduce the issue ****///
        extendBody: true,
        body: Padding(
          padding: const EdgeInsets.fromLTRB(10, 0, 10, 14),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Expanded(
                child: DashChat(
                  currentUser: user,
                  onSend: (ChatMessage m) {
                    setState(() {
                      messages.insert(0, m);
                    });
                  },
                  messages: messages,
                  inputOptions: InputOptions(
                    inputTextStyle: const TextStyle(color: Colors.black),
                  ),
                ),
                // child: GetBuilder<ChannelMessagesPageController>(
                //   tag: uid.toString(),
                //   builder: (controller) {
                //     return DashChat(
                //       currentUser: channelMessagesController.chatSender,
                //       onSend: (ChatMessage m) {
                //         _sendMessage(context, channelMessagesController);
                //       },
                //       messages: channelMessagesController.messages,
                //       inputOptions: InputOptions(
                //         textController: channelMessagesController.inputTextController,
                //         inputTextStyle: const TextStyle(color: Colors.black),
                //         sendButtonBuilder: defaultSendButton(color: palette.kButtonColor!),
                //       ),
                //     );
                //   },
                // ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

I am curious what the disconnect could be between what I am seeing and what you are seeing. 🤔

Curious as to what it looks like in the app we are developing, it seemingly works with no issue as well. 😭

Hey guys. Thanks for continuing to look at this. So I can repro it with Basic.  I took the code from basic (above) and created the following StatefulWidget (code below) and am still having the same problem.  It works as expected. Not sure what would be causing this? If you have any suggests or ideas please share otherwise it looks like I'll start off by adding all my dependencies back in and seeing if that has anything to do with it. Thank you again for your time and attention and if/when I figure this out I'll report back on this thread with my findings. Thanks again.

Not sure what would be causing this
Yes really strange, I'll close the issue but don't hesitate to comment here if you find out what was your issue


Introduce an sql query parameter for queries

One of the things that's good about https://datasette.io - an alternative to this project - is the way that SQL queries construct a shareable URL such as https://dependency-management-data-example.fly.dev/datasette/dmd?sql=select+*+from+metadata
It'd be handy if we had the same functionality here, which would allow sharing URLs for i.e. a centrally deployed version of sql-studio
Ideally this would update as the input changes, so the URL is always in-sync with the query being executed

Oh nice, this is also a good idea.

Maybe covered by https://github.com/frectonz/sql-studio/commit/0d30220a1b438a0dac6b2a9f33da53603ab53f35

Yep it is available in the latest release 0.1.14.


[Reference Parameter Request] Codeunit 12 Gen. Jnl.-Post Line

Hi,
could you change reference type to TRUE of Record "Gen. Journal Line" in all following procedure in Codeunit 12:
--local procedure InsertDtldCustLedgEntry(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; Offset: Integer)
--local procedure InsertDtldVendLedgEntry(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; Offset: Integer)
--local procedure PostDtldCustLedgEntry(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; CustPostingGr: Record "Customer Posting Group"; var AdjAmount: array[4] of Decimal)
--local procedure PostDtldCustLedgEntryUnapply(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; CustPostingGr: Record "Customer Posting Group"; OriginalTransactionNo: Integer)
--local procedure PostDtldVendLedgEntry(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; VendPostingGr: Record "Vendor Posting Group"; var AdjAmount: array[4] of Decimal)
--local procedure PostDtldVendLedgEntryUnapply(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; VendPostingGr: Record "Vendor Posting Group"; OriginalTransactionNo: Integer)
--local procedure InsertDtldCustLedgEntryUnapply(GenJnlLine: Record "Gen. Journal Line"; var NewDtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; OldDtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var NextDtldLedgEntryNo: Integer)
--local procedure InsertDtldVendLedgEntryUnapply(GenJnlLine: Record "Gen. Journal Line"; var NewDtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; OldDtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; var NextDtldLedgEntryNo: Integer)
--[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDtldCustLedgEntry(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; GenJournalLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuffer: Record "Detailed CV Ledg. Entry Buffer")
--[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDtldCustLedgEntryUnapply(var NewDtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; GenJournalLine: Record "Gen. Journal Line"; OldDtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry")
--[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDtldVendLedgEntry(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; GenJournalLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuffer: Record "Detailed CV Ledg. Entry Buffer")
--[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDtldVendLedgEntryUnapply(var NewDtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; GenJournalLine: Record "Gen. Journal Line"; OldDtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry")
--[IntegrationEvent(false, false)]
local procedure OnBeforeCreateGLEntriesForTotalAmounts(var InvoicePostBuffer: Record "Invoice Post. Buffer"; GenJournalLine: Record "Gen. Journal Line"; GLAccNo: Code[20])
--[IntegrationEvent(false, false)]
local procedure OnBeforeCreateGLEntriesForTotalAmountsUnapply(DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var CustomerPostingGroup: Record "Customer Posting Group"; GenJournalLine: Record "Gen. Journal Line"; var TempInvoicePostBuffer: Record "Invoice Post. Buffer" temporary)
--local procedure PostDtldCVLedgEntry(GenJnlLine: Record "Gen. Journal Line"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; AccNo: Code[20]; var AdjAmount: array[4] of Decimal; Unapply: Boolean)

hi @Halilovast . What is the reason of your ask, what result do you finally want to get?

Hello @RomanZanizdra ,
in our Bulgarian Localization we generate some addional G/L Entry for some types of detailed CV Ledeger Entries. And we use some extended fields of T81 for this.

@Halilovast , ok.
Do I understand correctly that you asks for a VAR for GenJnlLineLine parameter and how it will help in your solution?

Yes, exactly. I need a VAR for GenJnlLineLine parameter.
Thank you.

hi @Halilovast . I'm afraid we cannot pass GenJnlLine as VAR in requested functions for now.
First, actually it doesn't have sense because genjnlline is not updated in these functions and second, I don't understand the relation between VAR and solution described by you.

hi @RomanZanizdra. So we have a big problem :(.  I solved my case in Business Central 14 (with dev env. - because there I can change standard objects) and I think this is not so difficult to release.
Ok, I'll try to explain. In codeunit 12 all functions that I need are LOCAL. And all functions pass General Journal Line. For my cases I added some extended fields in T81. For example:

In your answer "genjnlline is not updated in these functions" - but I update my fields with IntegrationEvent function and I can't pass it to another event function.

And this is just one case, we have many. I realy need referance TRUE for table General Journal Line.

@Halilovast , why just you can't fill these fields in PostDtldCVLedgEntry for example or even before posting at all?

Can you explain to me how to access DtldCVLedgEntry fields in [EventSubscriber] to IntegrationEvent procedure OnBeforeInsertGLEntryBuffer and create second entry depending on DtldCVLedgEntry."Entry Type"?
   OnBeforeInsertGLEntryBuffer(TempGLEntryBuf, GenJnlLine,
      BalanceCheckAmount, BalanceCheckAmount2, BalanceCheckAddCurrAmount, BalanceCheckAddCurrAmount2, NextEntryNo);

From my point you don't need to subscribe for OnBeforeInsertGLEntryBuffer  in order to insert extra G/L Entry. You can do this from PostDtldCVLedgEntry before/after events having detailed buffer as parameter with entry type.
Finally functions CreateGLEntry, InitGLEntry, InsertGLEntry are global, you can use them if required.

what is the problem? I beleave make this parameter with referance is so easy, this is one of my many requests for referance, and has not been a problem so far . I spent a lot of time for our localization, which Microsoft does not do, now and does not help us.

Hi @Halilovast . There are no any problems. I've just tried to explain you why the request is not fully correct. From my point of view you are trying to use wrong places/subscribers for localization and follow from your example you just need to subscribe to other subscriber leaving your code the same. Anyway you can ask question on community site how to adjust your solution.

hi @Halilovast . Can we close this issue?

hi @RomanZanizdra , not yet, please.
My colleague will join here and he'll try to explain. because these chages is important to us :(

We cannot simply add VAR for existing events anymore, this is confirmed to be breaking change for many extensions. We are going to use interfaces for implementing such scenarios going forward, I'd recommend you find another solution for time being, like Roman advised above.

Ok, I did two test cases.
First one:
If I try to use IntegrationEvent from Codeunit 80, which has parameter without a reference (without VAR) and add VAR in my code, I receive an error.
[IntegrationEvent(false, false)]
local procedure OnAfterDeleteAfterPosting(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean)
begin
end;

The second one:
I use IntegrationEvent from Codeunit 80, which has parameter with reference (with VAR) and use this parameter without VAR, there are no errors in the code and it works fine
[IntegrationEvent(TRUE, false)]
local procedure OnBeforePostSalesDoc(var SalesHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean; var HideProgressWindow: Boolean)
begin
end;

These tests show that if you remove VAR from any of parameters in IntegrationEvent Procedure, which is used in many extensions, it will  break the code. I don't really want this from you.
What I asked was to add VAR, and if that is visible from the second example test, this will in no way interrupt the existing extensions.
It's very difficult to make changes with the current objects, especially when these changes relate to the posting function, because the basic parameter in Codeunit 12- Table 81 (Gen. Journal Line), is not accessible. And this is the parameter that transferred between the general functions.

Hi @Halilovast , sorry for a long break in discussion.
I understand what you are asking for (adding var is not a breaking change for now) and this is not difficult. The issue is that it doesn't make any sense except that it will be easier for you to localize or implement your solution. But as I mentioned above you are using not fully correct places for implementation. Can we somehow try to finalize this discussion and come to the acceptable end point?

I'm closing this discussion. We are not going to make these kind of changes in Codeunit 12, instead you should use different design. There are many possibilities how this can be done, for example you can use temporary buffer table in your extension to share additional data between tables in Codeunit 12, you have no need to transfer all these fields across all tables, like you did in C/SIDE and all BaseApp.


Please support Intel processor device!

It can't work on Intel devices like Zenfone5!

Trust me; Zhuowei knows about this. I don't know why it isn't fixed, maybe the way BlockLauncher patches MCPE would never work on an Intel device.

Acer Icona One 8, which has Intel, can't support this. Any idea how long until support will arrive?


Technical Interview - Arrays and Strings

Description
This issue should contain an approach to the top 10-12 questions of Arrays and Strings both.  In cpp/java language.  Video Solution will be good if made !!  Search for the quality questions on the web and explain the approach in your words for each problem you solve (either you can add comments in the code or subtitles in your video) .
Domain
Interview Prep
Type of Contribution
Video, Documentation
Code of Conduct

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

@princemsd007 I'll clear the question through intuition or Pseudo Code but can I code it in Python?

@princemsd007 I'll clear the question through intuition or Pseudo Code but can I code it in Python?

Yes @singhnikhiljsr  go on !!

/assign Document

I want to work on this issue please assign this issue to me as I have alreary assigned 3 issues by using /assign have to assigned manually
Nikki Priya
Batch-2
documentation

/assign


chore(cli): make pipeline init idempotent

fix #738. Hopefully this is the last part for idempotency issue.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Manual Test
$ archer pipeline init
...
✔ Created the secret github-token-my-project-penghaoh-flask-app for pipeline source stage!
✔ Wrote the pipeline manifest for penghaoh-flask-app at 'ecs-project/pipeline.yml'
✔ Wrote the buildspec for the pipeline's build stage at 'ecs-project/buildspec.yml'
The manifest contains configurations for your CodePipeline resources, such as your pipeline stages and build steps.
The buildspec contains the commands to build and push your container images to your ECR repositories.

Recommended follow-up actions:
- Update the build phase of your buildspec to unit test your applications before pushing the images.
- Update your pipeline manifest to add additional stages.
- Run `ecs-preview pipeline update` to deploy your pipeline for the repository.

Then run the command again
$ archer pipeline init

✔ Secret already exists for penghaoh-flask-app! Do nothing.
✔ Pipeline manifest file for for penghaoh-flask-app already exists at ecs-project/pipeline.yml, skipping writing it.
✔ Buildspec file for project pipeline already exists at ecs-project/buildspec.yml, skipping writing it.
The manifest contains configurations for your CodePipeline resources, such as your pipeline stages and build steps.
The buildspec contains the commands to build and push your container images to your ECR repositories.

Recommended follow-up actions:
- Update the build phase of your buildspec to unit test your applications before pushing the images.
- Update your pipeline manifest to add additional stages.
- Run `ecs-preview pipeline update` to deploy your pipeline for the repository.


Disable flaky Vulkan render test

Added render-tests/tilejson-bounds/default to ignores.
The test seems flaky on CI (locally the test passed 5000/5000 iterations).

Thank you!


MIP102c2-SP23 amendment PR

Originating forum post: https://forum.makerdao.com/t/mip102c2-sp23-mip-amendment-subproposal/23386/
Do not merge unless MIP102c2-SP23 passes

Poll passed - good to merge
https://vote.makerdao.com/polling/QmSvQ996


Natasha incident form

Added a new form to report incidents instead of reports, haven't updated html to reflect the change but new incidents are being added to the database.

I'm getting errors when I try to run the code due to the imports in app/main/views.py. Could you fix these and commit the changes?

Seems like just a small merge conflict that didn't get fixed in app/main/views.py!

I tried removing that, but I still got an error because of an Agency import.

@nnarang7 I think right now the address is not working properly, so if you could take a look at that sometime this week that'd be great! Let us know if you have q's :)


new suggestion: itsycal(tiny free calendar)

Project URL

Category

Description

Why it should be included to Awesome macOS open source applications  (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in alphabetical order
[x] Appropriate language icon(s) added if applicable
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          2 Warnings

:warning:
Too many changes (when adding, please keep it to one project per Pull Request)

:warning:
Found 1 link issue, a project collaborator will take care of these, thanks :)

Link issue by awesome_bot

Line
Status
Link

13
502
https://www.patreon.com/serhiilondar

  Generated by :no_entry_sign: Danger


The bthomson mbox src is gone.

Terrific, now I have to make many pull requests instead of just one :( sorry about this.
This change should go into pull request #5 as well. (And Issue#4)

Fixed with https://github.com/blabber/mbox/commit/687d07f99213fa14c5b02c1c01dd1a9f435fc6c8.


enclave-tls: implement global enclave-tls.conf

Duplicated to https://github.com/alibaba/inclavare-containers/issues/657


Fix some Python bindings signatures and add stub generation.

Ok no problem. But I would suggest to at least merge the update of bindings/python/multibody/joint/joints-variant.hpp to at least provide valid classes.
Optionally, It would be nice to just merge the changes of docstring, and leave out the stub generation.

In fact, thinking twice, we can accept it as a single commit and I remove it during the merge.
It could be helpful to people, before Pinocchio 3x is fully available.

By the way, for the class name, it has been fixed in Pinocchio 3x.

As you wish. I have no doubt many issues have been fixed in Pinocchio 3x, but the transition may take some time for people. I known intellisense technologies can be quite sensitive to badly formatted docstring and it would be nice to avoid crashing ipython or vscode.
You want me to add back the part responsible for generating stubs ?

Yes, you can add it back please.

Done.


docs: Document renovate testing strategy

Seems like this could be helpful to document for others attempting to
make changes to Renovate configuration.

/test


LBP Features

Hi,
I got some problem to get LBP features using Dlib. Can you please help me with that?
thank you.

http://dlib.net/faq.html#Itdoesn'twork


Test PR - convert json files to yaml

The .json files are converted to .yaml using a python script and is not manually cross-checked. This is an initial test PR to check whether any workflow is breaking.
In reference to issue: https://github.com/mlcommons/cm4mlops/issues/257

Hi @anandhu-eng . Just a reminder not to push it until we sync all the branches (main <-> dev <-> mlperf-inference) since it will result it a total mess. That's why we need to keep syncing all branches regularly while they are not too far away ...

Sure @gfursin, this was a test PR and not meant for merging. Let me close this PR and open a new one.

No worries @anandhu-eng - I saw that it was a test PR and just reminder to sync all the branches before changing json to yaml. It will also allow me to merge changes from flexaihq/cm4mlops  before such a change to avoid breaking projects. Thanks a lot!


Add link to customizing platform at end of gs

A seealso admonition was added to the end of the getting started guide's build and deploy section.
QA steps: Ran linter, linkcheck, and examined html. No issues found.
This commit addresses FFTK-2620.
Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
Addresses feedback from Slack discussion. It also seems like useful info to point to at the end of getting started, as it may be the next step for some.
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[x] Run spelling and grammar check, preferably with linter.
[x] Avoid changing any header associated with a link/reference.
[x] Step through instructions (or ask someone to do so).
[x] Review for wordiness
[x] Match tone and style of page/section.
[x] Run make linkcheck.
[x] View HTML in a browser to check rendering.
[x] Use semantic newlines.
[x] follow best practices for commits.

[x] Descriptive title written in the imperative.
[x] Include brief overview of QA steps taken.
[x] Mention any related issues numbers.
[x] End message with sign off/DCO line (-s, --signoff).
[x] Sign commit with your gpg key (-S, --gpg-sign).
[x] Squash commits if needed.

[x] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

Docs for f7986ac49b42b92a6a84fb6bfc74392ab9d4a93f are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2295/docs/artifacts/html/index.html


Tensor not  match

hello, I trianed it on DOTA datasets,but get error.
RuntimeError: The size of tensor a (80) must match the size of tensor b (1280) at non-singleton dimension 1

Hi, I also got the same problem. Did you fix it?
RuntimeError: The size of tensor a (32) must match the size of tensor b (512) at non-singleton dimension 1


Branch-and-Price Adding multiple columns at once

Hello!
I want to add a column at a time as my branch-and-price model branches but it seems to add multiple columns on the same node. I printed which column is added, denoted as j. As you can see j 0, 4, 21, 9, ..., 19 are added together in the screenshot.
I wonder why it happens and how to add one column at a time. Thank you!!

Maybe @stephenjmaher can say more about this.
But why do you say it is adding more than one variable at a time? Maybe it is just adding one per call to your pricer, and your pricer might just be called more than once.

Yes. I expected that one column is added at a time. But, for some reason, my price seems to be called more than once.
I wonder if you know why this happens.

It is not clear what you are trying to achieve here. Could you please explain further what to "add one column at a time" actually means. Do you mean per node, per LP solved or per call to the pricing problem? Also, could you please tell us where/when you are outputting the "j" line? This will explain more about your particular issue.
There a number of loops that are executed to solve the node LP. For our purposes, you have the price-and-cut loop and then you have the pricing loop. In the pricing loop, the pricer is called to generate columns, then the LP is resolved to update the bounds. This continues until a maximum number of pricing rounds are executed or the LP is solved to optimality. You have control over the number of columns added per round of the pricing loop. In pricerredcost you can choose to add a single column per call. The pricerredcost function is called for a number of times in the pricing loop. Once the pricing loop is completed, the pricing-and-cut loop continues.
The reason for this explanation is that the output of the "j" lines could be after a number of pricing rounds or price-and-cut rounds. As such, you need to be clear about what adding one column at a time actually means.

Thank you for your kind explanation. I like to add one column at a call to the pricing problem. I put my code if it could be helpful for your understanding, in which I made outputting the "j" in bold. I would be grateful if you could explain how to add a single column per call using pricerredcost. Thank you!
from pyscipopt import Model, Pricer, SCIP_RESULT, SCIP_PARAMSETTING, quicksum, multidict
import time
import itertools as it
import numpy as np
from  more_itertools import unique_everseen
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2, mutual_info_classif, f_regression
class CutPricer(Pricer):
# The reduced cost function for the variable pricer
def pricerredcost(self):

    dual_sol = []
    for i, c in enumerate(self.model.data['slackCons']):
        dual_sol.append(self.model.getDualsolLinear(c))
    reduced_cost    = 1 - np.abs(np.dot(dual_sol*self.model.data['y'], self.model.data['X']))
    column_to_check = np.array(list(set(self.model.data['column']) - set(self.model.data['idx_column'])))

    if len(column_to_check) > 0:
        neg_rc          = reduced_cost[column_to_check] < -1e-08
        column_to_add   = column_to_check[neg_rc][np.argsort(reduced_cost[column_to_check][neg_rc])][:1]
        if len(column_to_add) > 0:
            for j in column_to_add:
                **print('j:', j)**
                # print(self.model.getObjVal())
                # print([self.model.getVal(v) for v in self.model.data['v_var']])
                self.model.data['idx_column'].append(j)
                k = self.model.data['group'][j]
                g_BM = sum(self.model.data['group'] == self.model.data['group'][j])
                ### Slack constraints
                new_wp = self.model.addVar(vtype = "C", lb = 0, ub = None, name = "wp_" + str(j), obj = 1.0)
                new_wn = self.model.addVar(vtype = "C", lb = 0, ub = None, name = "wn_" + str(j), obj = 1.0)
                new_v = self.model.addVar(vtype = "B", name = "v_" + str(j), obj = 0.0)
                self.model.data['wp_var'] = np.append(self.model.data['wp_var'], new_wp)
                self.model.data['wn_var'] = np.append(self.model.data['wn_var'], new_wn)
                self.model.data['v_var']  = np.append(self.model.data['v_var'], new_v)

                for i, c in enumerate(self.model.data['slackCons']):
                    self.model.addConsCoeff(c, new_wp, self.model.data['y'][i]*self.model.data['X'][i][j])
                    self.model.addConsCoeff(c, new_wn, -self.model.data['y'][i]*self.model.data['X'][i][j])

                ### Group constraint
                if k in self.model.data['idx_group']:
                    idx_k = np.squeeze(np.where(self.model.data['idx_group'] == k))
                    groupCons = self.model.data['groupCons'][idx_k]
                    self.model.addConsCoeff(groupCons, new_v, -1.0)

                ### Budget constraint
                else:
                    budgetCons = self.model.data['budgetCons'][0]
                    new_g = self.model.addVar(vtype = "B", name = "g_" + str(k), obj = 0.0)

                    self.model.addConsCoeff(budgetCons, new_g, self.model.data['g_cost'][k])
                    self.model.data['groupCons'].append(self.model.addCons(g_BM*new_g - new_v >= 0, modifiable = True, name = 'group_'+str(k)))
                    self.model.data['idx_group'].append(k)
                    self.model.data['g_var'] = np.append(self.model.data['g_var'], new_g)

                ### Bound constraints
                self.model.addCons(new_wp + new_wn <= 1000*new_v, name=('w_ub_'+str(j)))
                self.model.addCons(new_wp + new_wn >= -1000*new_v, name=('w_lb_'+str(j)))

    return {'result':SCIP_RESULT.SUCCESS}

# The initialisation function for the variable pricer to retrieve the transformed constraints of the problem
def pricerinit(self):
    for i, sc in enumerate(self.model.data['slackCons']):
        self.model.data['slackCons'][i] = self.model.getTransformedCons(sc)

    for i, gc in enumerate(self.model.data['groupCons']):
        self.model.data['groupCons'][i] = self.model.getTransformedCons(gc)

    for i, bc in enumerate(self.model.data['budgetCons']):
        self.model.data['budgetCons'][i] = self.model.getTransformedCons(bc)

column = range(X.shape[1])
Select initial features based on f_score
idx_column = list(SelectKBest(f_regression, k=5).fit(X, y).get_support(indices=True))
idx_group = list(unique_everseen(group[idx_column]))
M, L = X.shape
L_CG = len(idx_column)
L_GR = len(idx_group)
BM = [big_m] * L_CG
g_BM = [len(g_fea[k]) for k in idx_group]
model = Model("CESVM1_CG")
model.redirectOutput()
model.setPresolve(0)
model.setParam('limits/time', 60)
model.setHeuristics(0)
pricer = CutPricer()
model.includePricer(pricer, "", "", priority = 1, delay = True)
VARIABLES
binary
v_var = np.array([model.addVar(vtype='B', lb = 0, ub = 1, name="v_"+str(idx_column[j])) for j in range(L_CG)])
g_var = np.array([model.addVar(vtype='B', lb = 0, ub = 1, name="g_"+str(idx_group[k])) for k in range(L_GR)])
errors
e_var = np.array([model.addVar(vtype = "C", lb = 0, ub = None, name="loss_"+str(i)) for i in range(M)])
Feature weight and bias
wp_var = np.array([model.addVar(vtype = "C", lb = 0, ub = None, name ="wp_"+str(idx_column[j])) for j in range(L_CG)])
wn_var = np.array([model.addVar(vtype = "C", lb = 0, ub = None, name ="wn_"+str(idx_column[j])) for j in range(L_CG)])
b_var = model.addVar(vtype='C', lb = None, ub = None, name = "b")
OBJECTIVE VALUE
model.setObjective(quicksum((wp_var[j] + wn_var[j]) for j in range(L_CG)) + C*quicksum(e_var), "minimize")
slackCons = []
HINGE CONSTRAINTS
for i in range(M):
slackCons.append(model.addCons(e_var[i] + y[i](b_var + quicksum([X[i][idx_column[j]](wp_var[j] - wn_var[j]) for j in range(L_CG)])) >= 1, modifiable = True, name = "slack_" + str(i)))
BUDGET CONSTRAINT
budgetCons = []
budgetCons.append(model.addCons((quicksum(g_cost[idx_group]*g_var) <= B), modifiable = True, name=("budget")))
groupCons = []
for k in range(L_GR):
col_in_group = list(set(idx_column) & set(g_fea[idx_group[k]]))
groupCons.append(model.addCons(g_BM[k]*g_var[k] - quicksum(v_var[[idx_column.index(j) for j in col_in_group]]) >= 0, modifiable = True, name=("group_"+str(idx_group[k]))))
BOUND CONSTRAINT
for j in range(L_CG):
model.addCons(wp_var[j]+wn_var[j] - BM[j]*v_var[j] <= 0, name=('w_ub_'+str(idx_column[j])))
model.addCons(wp_var[j]+wn_var[j] + BM[j]*v_var[j] >= 0, name=('w_lb_'+str(idx_column[j])))
model.data = {}
model.data['X'] = X
model.data['y'] = y
model.data['g_cost'] = g_cost
model.data['wp_var']     = wp_var
model.data['wn_var']     = wn_var
model.data['e_var']      = e_var
model.data['g_var']      = g_var
model.data['v_var']      = v_var
model.data['b_var']      = b_var
model.data['slackCons'] = slackCons
model.data['budgetCons'] = budgetCons
model.data['groupCons'] = groupCons
model.data['column'] = column
model.data['group']  = group
model.data['idx_column'] = idx_column
model.data['idx_group']  = idx_group
model.data['priceimplem'] = True
model.optimize()

The reason that you could be adding more than one column is that the list column_to_add could contain more than 1 element. You have a loop, for j in column_to_add, which adds all columns in the column_to_add list. If you remove the for loop and add only a single column from the column_to_add list, then you will add one column per call to pricerredcost.
You should look at different strategies for picking columns from the column_to_add list. One simple strategy is to add the column with the most negative reduced cost. However, there could be other features of the columns that you may want to prioritise.

I just realised that every time that you process an element of column_to_add, you are adding three columns new_wp, new_wn, new_v. So, even if you process a single element from column_to_add, you will always add three columns to the restricted master problem.

Thank you for your prompt reply. It still happens when I add one variable new_v.
class CutPricer(Pricer):
# The reduced cost function for the variable pricer
def pricerredcost(self):

    dual_sol = []
    for i, c in enumerate(self.model.data['slackCons']):
        dual_sol.append(self.model.getDualsolLinear(c))
    reduced_cost    = 1 - np.abs(np.dot(dual_sol*self.model.data['y'], self.model.data['X']))
    column_to_check = np.array(list(set(self.model.data['column']) - set(self.model.data['idx_column'])))

    if len(column_to_check) > 0:
        neg_rc          = reduced_cost[column_to_check] < -1e-08
        column_to_add   = column_to_check[neg_rc][np.argsort(reduced_cost[column_to_check][neg_rc])][:1]
        if len(column_to_add) > 0:
            for j in column_to_add:
                print('j:', j)
                self.model.data['idx_column'].append(j)
                k = self.model.data['group'][j]
                g_BM = sum(self.model.data['group'] == self.model.data['group'][j])
                new_v = self.model.addVar(vtype = "B", name = "v_" + str(j), obj = 0.0)

                ### Group constraint
                if k in self.model.data['idx_group']:
                    idx_k = np.squeeze(np.where(self.model.data['idx_group'] == k))
                    groupCons = self.model.data['groupCons'][idx_k]
                    self.model.addConsCoeff(groupCons, new_v, -1.0)

                ### Budget constraint
                else:
                    budgetCons = self.model.data['budgetCons'][0]

    return {'result':SCIP_RESULT.SUCCESS}

# The initialisation function for the variable pricer to retrieve the transformed constraints of the problem
def pricerinit(self):
    for i, sc in enumerate(self.model.data['slackCons']):
        self.model.data['slackCons'][i] = self.model.getTransformedCons(sc)

    for i, gc in enumerate(self.model.data['groupCons']):
        self.model.data['groupCons'][i] = self.model.getTransformedCons(gc)

    for i, bc in enumerate(self.model.data['budgetCons']):
        self.model.data['budgetCons'][i] = self.model.getTransformedCons(bc)

This is the result showing multiple js are added at a time.

Please read https://github.com/SCIP-Interfaces/PySCIPOpt/issues/437#issuecomment-704059625

I am sorry if I misunderstood you. However, column_to_add always contains one element. To check it, I remove the for loop and got the same result.
class CutPricer(Pricer):
# The reduced cost function for the variable pricer
def pricerredcost(self):

    dual_sol = []
    for i, c in enumerate(self.model.data['slackCons']):
        dual_sol.append(self.model.getDualsolLinear(c))
    reduced_cost    = 1 - np.abs(np.dot(dual_sol*self.model.data['y'], self.model.data['X']))
    column_to_check = np.array(list(set(self.model.data['column']) - set(self.model.data['idx_column'])))

    if len(column_to_check) > 0:
        neg_rc          = reduced_cost[column_to_check] < -1e-08
        column_to_add   = column_to_check[neg_rc][np.argsort(reduced_cost[column_to_check][neg_rc])][:1]
        j = column_to_add[0]
        print('j:', j)
        self.model.data['idx_column'].append(j)
        k = self.model.data['group'][j]
        g_BM = sum(self.model.data['group'] == self.model.data['group'][j])
        new_v = self.model.addVar(vtype = "B", name = "v_" + str(j), obj = 0.0)

        ### Group constraint
        if k in self.model.data['idx_group']:
            idx_k = np.squeeze(np.where(self.model.data['idx_group'] == k))
            groupCons = self.model.data['groupCons'][idx_k]
            self.model.addConsCoeff(groupCons, new_v, -1.0)

        ### Budget constraint
        else:
            budgetCons = self.model.data['budgetCons'][0]

    return {'result':SCIP_RESULT.SUCCESS}

# The initialisation function for the variable pricer to retrieve the transformed constraints of the problem
def pricerinit(self):
    for i, sc in enumerate(self.model.data['slackCons']):
        self.model.data['slackCons'][i] = self.model.getTransformedCons(sc)

    for i, gc in enumerate(self.model.data['groupCons']):
        self.model.data['groupCons'][i] = self.model.getTransformedCons(gc)

    for i, bc in enumerate(self.model.data['budgetCons']):
        self.model.data['budgetCons'][i] = self.model.getTransformedCons(bc)

This is the screenshot of the result.

From what I see, j = column_to_add[0]. As such, you are not printing the number of columns added, but the value of column_to_add[0]. Could you please clarify the issue? I don't see any problem here and you should be adding a single column per iteration.
Have a look at the vars column in your output. It is increasing my 1 after each iteration. Presumably, the last 4 j outputs are from the 4 additional nodes processed.


Add a readv/writev-like functionality to IO libraries

POSIX has 4 functions named readv/writev/preadv/pwritev to allow reading and writting a vector of memory buffers into a filedescriptor. It looks like Windows provides the same functionality with the ReadFileScatter and WSASend function family.
As far as I can tell, rust doesn't allow such a thing yet. This is although quite useful to write server software. For instance if you want to transfer data from the filesystem into the network and add a header using an udp socket, you can do this w/o copying data with the writev function. Since the Writer trait or the UdpSocket structure only allow to send a byte slice, to avoid a copy, you need to create a  large enough buffer to store the data and the header, reserve enough space for the header at the beginning, read the data in a subslice, and then write the header.
It's obviously doable, but can become quite hard to deal with when your protocol has arbitrary sized header.
I think such a method in the Reader and Writer traits could be an useful addition. But it probably has to be done early since it's probably not backward compatible.

Read::read_vectored and Write::write_vectored are added in 1.36. Maybe this can be closed now? @Centril


pull request for e2e test at 01/08/2017 16:15:17

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fix Coleman–Liau warning message

Condition for Coleman–Liau is < 9, but the message is for 'below 19'. Given it's supposed to be a measure of grades, I assume it's the warning message that's in error.

Thanks!


Running mongo-connector as a Linux service...

Hi,
Is it possible to run the mongo-connector as a Linux service similar to how mongo runs? This is because using Putty to remote into a virtual machine that's always on almost always has disconnection software issues with Putty and I have to restart the mongo-connector.
Please let me know if this is possible.
Thanks,
Ben.

@bdesilva
To install Mongo Connector as a linux service:

Edit config.json to your liking.
Do python setup.py install_service.

This creates a "mongo-connector" entry in /etc/init.d and copies the "config.json" file to /etc/mongo-connector.json. This has been tested so far on Fedora, Debian, and CentOS but should work on similar systems.
To remove the service, do python setup.py uninstall_service. This removes all the files I just mentioned.

Added this info to the wiki: https://github.com/10gen-labs/mongo-connector/wiki/Installation#installing-as-a-linux-service, since it seems generally useful.

Thanks, that sounds good, however I didn't find a json element for target Elasticsearch host. So in otherwords, how can I put my command line:
mongo-connector -m my-mongo-server:27017 -t my-elasticsearch-server:9200 -d elastic_doc_manager -n db.contacts,db.addresses -g contacts.contact,addresses.address --continue-on-error
into the JSON config file? Since I have to create the config.json file in my base mongo-connector directory, what would my config.JSON look like given my command line since I can't run the command line arguments as my service parameters.
Thanks.

The config file is extensively documented on the Configuration Options page of the wiki and also in the example config file itself ("config.json"). Configuring what DocManager to use is documented here: https://github.com/10gen-labs/mongo-connector/wiki/Configuration-Options#configure-docmanagers

Thanks, Got it! I missed the -t equivalent in the docManagers section. :)

Hi, I tried installing and running the service, but I keep getting this error:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/site-packages/mongo_connector/util.py", line 85, in wrapped
func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/mongo_connector/connector.py", line 259, in run
self.address, tz_aware=self.tz_aware, **self.ssl_kwargs)
File "/usr/lib64/python2.6/site-packages/pymongo/mongo_client.py", line 369, in init
raise ConnectionFailure(str(e))
ConnectionFailure: [Errno 111] Connection refused
Why is that?

And I'd like to add that I'm using CentOS 6.
Thanks.

It looks like the init script is working, since mongo-connector attempted to start. MongoDB may have refused the connection for a number of reasons, including that it may not be running at all. This is outside the scope of the Github issue tracker, so I'd recommend attempting to debug this a bit more on your own, then possibly post a question on the mongodb-user Google group if you're still having trouble.
Closing this issue, since it looks like you've got mongo-connector running as a Linux service.

Hi, thanks for your advice. I did the install but I still get this error when I do a service --status-all: mongo-connector /etc/init.d/mongo-connector: line 81: status_of_proc: command not found
I will check with the mongo community as well, however I'm not sure where to start in order to debug this because the mongo-connector code is a bit of a black box to me at the moment. I will have to take a look into the code because I really do need this running as a service.


Rc1 added "cascade delete" to all of my relationships

After upgrading to RC1 from Beta8, when I generate a new migration, it wants to drop all of my FK's and recreate them with a cascade delete.
How can I disable this as the default behavior?

@joshmouch - Migration drops and recreates all FKs due #3751
By conventions EF will set cascade delete for all the require foreign keys. If you don't want "cascade delete" then you should make your foreign key not required. You can read about it in the docs at http://ef.readthedocs.org/en/latest/modeling/relationships.html

If you want to change the delete behavior, then you can use this code in OnModelCreating(...) to bulk set it for all relationships in your model.
foreach (var relationship in modelBuilder.Model.GetEntityTypes().SelectMany(e => e.GetForeignKeys()))
{
    relationship.DeleteBehavior = DeleteBehavior.Restrict;
}

@rowanmiller Thanks for the prompt reply!  The problem with that default behavior is that somehow now I have cyclical deletes.  I'll run the code you gave me.


wip - Remove unnecessary clear-action-cache gh action

Tracking issue
N/A
Why are the changes needed?

What changes were proposed in this pull request?

How was this patch tested?

Setup process
Screenshots
Check all the applicable boxes

[ ] I updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] All commits are signed-off.

Related PRs

Docs link

I'm noticing that this action takes 20+ min on windows: https://github.com/flyteorg/flytekit/actions/runs/11979951445/job/33403242966?pr=2950#step:3:7. This doesn't make sense yet, just trying out if we really need this in the regular CI jobs.


win显示编码错误

UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 2: illegal multibyte sequence

Thank you for reporting this issue. We will try to reproduce it as soon as possible.

windows报错,改一下读取编码就可以:
`    #### Emotion ####
with open(emotion2id_path,encoding="utf-8") as f:
emotions = [t.strip() for t in f.readlines()]
emotion_n_labels = len(emotions)
#### Speed ####
with open(speed2id_path,encoding="utf-8") as f:
    speeds = [t.strip() for t in f.readlines()]
speed_n_labels = len(speeds)

#### Pitch ####
with open(pitch2id_path,encoding="utf-8") as f:
    pitchs = [t.strip() for t in f.readlines()]
pitch_n_labels = len(pitchs)

#### Energy ####
with open(energy2id_path,encoding="utf-8") as f:
    energys = [t.strip() for t in f.readlines()]
energy_n_labels = len(energys)`

windows报错,改一下文件读取编码格式就行
`python
Speed
with open(speed2id_path,encoding="utf-8") as f:
speeds = [t.strip() for t in f.readlines()]
speed_n_labels = len(speeds)
Pitch
with open(pitch2id_path,encoding="utf-8") as f:
pitchs = [t.strip() for t in f.readlines()]
pitch_n_labels = len(pitchs)
Energy
with open(energy2id_path,encoding="utf-8") as f:
energys = [t.strip() for t in f.readlines()]
energy_n_labels = len(energys)

windows报错,改一下文件读取编码格式就行
`
#### Emotion ####
with open(emotion2id_path,encoding="utf-8") as f:
emotions = [t.strip() for t in f.readlines()]
emotion_n_labels = len(emotions)
#### Speed ####
with open(speed2id_path,encoding="utf-8") as f:
    speeds = [t.strip() for t in f.readlines()]
speed_n_labels = len(speeds)

#### Pitch ####
with open(pitch2id_path,encoding="utf-8") as f:
    pitchs = [t.strip() for t in f.readlines()]
pitch_n_labels = len(pitchs)

#### Energy ####
with open(energy2id_path,encoding="utf-8") as f:
    energys = [t.strip() for t in f.readlines()]
energy_n_labels = len(energys)

`

windows报错,改一下文件读取编码格式就行 ` #### Emotion #### with open(emotion2id_path,encoding="utf-8") as f: emotions = [t.strip() for t in f.readlines()] emotion_n_labels = len(emotions)
#### Speed ####
with open(speed2id_path,encoding="utf-8") as f:
    speeds = [t.strip() for t in f.readlines()]
speed_n_labels = len(speeds)

#### Pitch ####
with open(pitch2id_path,encoding="utf-8") as f:
    pitchs = [t.strip() for t in f.readlines()]
pitch_n_labels = len(pitchs)

#### Energy ####
with open(energy2id_path,encoding="utf-8") as f:
    energys = [t.strip() for t in f.readlines()]
energy_n_labels = len(energys)

`
@Air3Snow thank you for your assistance! @q88622406 , you can try this to see if it resolves the issue.

Yes, I also found this error. I just try below.
    emotions = open(emotion2id_path, encoding='utf-8').read().split('\n')

    speeds = open(speed2id_path, encoding='utf-8').read().split('\n')

    pitchs = open(pitch2id_path, encoding='utf-8').read().split('\n')

@makao007  the pretrained model can not be load:
EmotiVoice/inference_am_vocoder_joint.py", line 67, in main
style_encoder.load_state_dict(model_ckpt)
File "/root/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2152, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for StyleEncoder:
Unexpected key(s) in state_dict: "bert.embeddings.position_ids".

@makao007 the pretrained model can not be load:
EmotiVoice/inference_am_vocoder_joint.py", line 67, in main style_encoder.load_state_dict(model_ckpt) File "/root/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2152, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for StyleEncoder: Unexpected key(s) in state_dict: "bert.embeddings.position_ids".

Yes, I have solved the above problem. I am currently encountering the same problem as you, which is a model error

inference_am_vocoder_joint.py 中也有一个地方要加个encoding
with open(text_path, "r", encoding="UTF-8") as f:

@shirubei @makao007 我也遇到这个问题了，改了不起作用呢

可以了


Close search tooltip when opening searchbrowser with it?

Hi,
first of all thanks for the bookmark option, works great.
What i found is that if u open a webpage that way u are still able to move ingame if u minimize it other than if u open it via the search tooltip, so im guessing the search tooltip is denying that?
No idea how that works though, so sry if useless suggestion.
tyvm

This indeed works. In the next update once you minimize the dialog you can interact with the game again.

0.5.17 (2020-02-16)

remove modal flag after minimizing browser (#219, #236)


No promise support

Use promises!

Aye! I see you've currently got your own fork of the project. Feel free to add promise functionality to your own code or build a higher-level wrapper for phin which implements promises. I'll soon consider implementing it over here after fully finishing testing of version 1.0.4 and adding a few other features.

Fixed in https://github.com/ethanent/phin/pull/5, if anyone was wondering.


Downgrade Maven wrapper to 3.6.1

After upgrade to 3.6.2 some build instability was observed around
getting project dependencies from Maven Central. This was attributed to
Maven version change.

@findepi these dependencies failure occurs still on 3.6.1. Can we assume that maven upgrade has nothing to do with it?

@wendigo do you mean https://github.com/prestosql/presto/issues/3049 or something else?

Yes


make AsyncHttpConnector.delayer thread daemon

Fixes #7437

@rushsky518 Thanks for the contribution, would you please take a look the comment?

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

org.apache.pulsar.functions.worker.PulsarFunctionE2ESecurityTest
[ERROR] testAuthorization(org.apache.pulsar.functions.worker.PulsarFunctionE2ESecurityTest)  Time elapsed: 1.779 s  <<< FAILURE!
java.lang.AssertionError: expected [null] but found [value]
	at org.testng.Assert.fail(Assert.java:96)
	at org.testng.Assert.failNotEquals(Assert.java:776)
	at org.testng.Assert.assertEqualsImpl(Assert.java:132)
	at org.testng.Assert.assertEquals(Assert.java:118)
	at org.testng.Assert.assertEquals(Assert.java:453)
	at org.testng.Assert.assertEquals(Assert.java:463)
	at org.apache.pulsar.functions.worker.PulsarFunctionE2ESecurityTest.testAuthorization(PulsarFunctionE2ESecurityTest.java:630)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:54)
	at org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:44)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

/pulsarbot run-failure-checks

@rushsky518 Sorry, Due to my reasons, I closed the pull request incorrectly. Can you help reopen it and merge master code, thanks.

@rushsky518 There are some tests fixes in the master branch, I think you need to merge the master branch, Otherwise, the CI can't be passed. And you'd better to checkout -b a new branch and use the new branch to send out a pull request.

@rushsky518 There are some tests fixes in the master branch, I think you need to merge the master branch, Otherwise, the CI can't be passed. And you'd better to checkout -b a new branch and use the new branch to send out a pull request.

hi, i opend a new pr #7687


Is RFC7278 supported?

I couldn't find any information on this. Does dhcpcd support RFC7278 for 3GPP links? Seems, that odhcp6c got this some years ago. But I couldn't find any information on other clients.

@ConiKost I've read that RFC a few times. I think it talks about how to handle things when DHCP6 PD is not in play.
That is not dhcpcd's concern I think as it fully supports DHCP6 PD. Re-open if you disagree.

Hi Roy,
thanks for the reply. I am not sure here, but I think, dhcpcd could do the work by extended the prefix on another interface, basically some sort of lite prefix delegation. Maybe I am completely wrong.
See commit from OpenWRT: https://git.laboratoryb.org/hurricos/openwrt-mirror/commit/72b4ed113a07ebc7eee82c331111853aa81f9b36
Maybe you could have a look, if that's something, that dhcpcd can handle?
Thanks!
Conrad


improve batch query error message when cluster is under recovery

When cluster is under recovery, batch query will respond with ERROR: QueryError: internal error: Storage error: Hummock error: ReadCurrentEpoch error Cannot read when cluster is under recovery. read<PHONE_NUMBER>300992 < min current epoch<PHONE_NUMBER>3709551615.
I thought this message essentially has told the reason of error is "the cluster is under recovery", but it still misleads user/developers several times.

18446744073709551615 is exactly u64::MAX. Do we use this as the invalid value of something? 🤔

18446744073709551615 is exactly u64::MAX. Do we use this as the invalid value of something? 🤔

Yes, it means the compute node has not received any checkpoint barrier since last shared buffer clear caused by recovery.

I think this is similar to the difference between Display and Debug.


DROP_ME: build with Node.js 10.x.

Signed-off-by: Akos Kitta<EMAIL_ADDRESS>

This was a test PR. I am closing it.


style: simplify overview page - make banner fit in the actual header

Description
Note the background fills the bottom with white. Before the banner background was used as the main background. The banner background is moved to the header of tera-asset.vue when Overview is chosen.

Not sure if it is possible or how difficult it is, can we leverage pageType/assetType instead of an isOverView predicate? It makes tera-asset a little more idiomatic in terms of reading.

I don't understand the need to do this task?

I don't understand the need to do this task?

Overview page wasn't fitting the space properly. Just got annoyed looking at it while removing tabs.


Properly handle resource files from test jar

Fixes #158
@adamw will this be on 1.3.9 right away or 1.3.9-SNAPSHOT? Thanks!

Thanks! I published the 1.3.10-SNAPSHOT which includes the change


Create KoDuoRC dataset benchmark

Create KoDuoRC dataset benchmark. This dataset is DuoRC translated in Korean by KETI-AIR.
This issue is related to issue #357 .
Dataset link
https://huggingface.co/datasets/KETI-AIR/kor_duorc

DuoRC dataset is for MRC task like SQuad. So it is inappropriate for our RAGchain.


Strange misbehaving of labels screenshots

🐛 Bug
Side note, I discovered this while employing a neat workaround to the fact that notebooks using napari don't show the state of the napari viewer at the time that you move to the next cell. So now, when I want embed a record of the viewer in the notebook, I type:
plt.imshow(viewer.screenshot(with_viewer=True))

into a cell and now viewers can see the viewer at that particular point. It's pretty nice! Currently it shows axis ticks around the screenshot but that can be tweaked.
Anyway, in this particular case, it totally misrepresented some of the labels. Compare the system screenshot with the napari screenshot method.

macOS screenshot:

napari screenshot:

Notice the weird colour fringes for the coins at coin-coordinates (row, column) (0, 1) and (1, 2).
To Reproduce
This is taken from the "watershed" section in this notebook:
https://github.com/jni/skimage-tutorials/blob/monash-df2020-05-completed/lectures/4_segmentation.ipynb
It involves a bit of manual clicking so I don't know how easy it will be to reproduce.

Could this be something to do with how matplotlib is down-sampling the plot display?

I wonder what happens if you increase the matplotlib figure size?
I also wonder what happens if you save the screenshot array with io.imsave('test.png', viewer.screenshot(with_viewer=True)) and then look at that?

I think I can kind of reproduce this on Windows.
See:

First row, third coin across - marker point looks blue on screen but dark green-ish in some screenshots and has a dark green-ish ring around part of the coin edge.
Second row, third coin across - both point and coin appear yellow on screen, but
Using with_viewer=False also changes the quality of the colours displayed (for the worse, in my opinion). Everything looks a bit more saturated/lighter.

Windows built-in snipping tool

napari screenshot saved to file
io.imsave('filename1.png', viewer.screenshot(with_viewer=True))

napari screenshot saved to file
io.imsave('filename1.png', viewer.screenshot(with_viewer=False))

matplotlib in the jupyter notebook (with_viewer=True)

matplotlib in the jupyter notebook (with_viewer=False)

It's not too surprising that there might be a difference between screenshots with with_viewer=True vs with_viewer=False, since they are actually generated in different ways.

with_viewer=True
Uses Window() class in qt_main_window.py
Screenshot method uses self._qt_window.grab().toImage() and puts that in QImg2array()
with_viewer=False
Uses QtViewer() class in qt_viewer.py
Screenshot method uses self.canvas.native.grabFramebuffer() and puts that in QImg2array()

I was able to reproduce this using specific colors with shapes in this notebook.

All of these colors exhibiting weird screenshot behavior have an r, g, or b value at its extreme (e.g. [255, 0, 0]).
My working theory for the infidelity of the colors when taking a screenshot of the canvas is due to them being partially transparent and blending in with the background color that whatever tool you open it with chooses (see #1566).

The notebook from the OP isn't accessible anymore, but I used the notebook from Kira posted here:
https://github.com/napari/napari/issues/1237#issuecomment-689056808
Using main I cannot reproduce this, everything looks fine:

Looks like this was fixed by https://github.com/vispy/vispy/pull/2090
So going to close. If there's a new reproducer, please make a new issue!


Align Toasts properly

Currently Toasts appear such that if the user's scroll bar is at the top of they page, they don't overlap with the nav bar:

This is the correct behavior, however the implementation is clunky, so that if you're scrolled further down the page they show up with a big gap:

It also looks awkward if only part of the nav bar is visible:

Let's fix it so that toasts show up below the nav bar, if it's on the screen, or else they show up at the top of the screen.

dup of https://github.com/covid19risk/permission-portal/issues/133


Add owner permission check and credential check

Since Levi is sick, I made some additions to his PR so we can get it merged for the release tomorrow
more details in Levi's PR: https://github.com/GoogleCloudPlatform/stackdriver-sandbox/pull/245

I've noticed that there's now quite a bit of lag when fetching the list of projects (~20 seconds). It might be worth removing the creation time field, that would cut the load time in half. But this will only really impact internal users, so not sure if it really matters

Levi's back at work. I merged my changes into his fork, so we can keep working from there


SideProgressBar, StartComplaint, and RightsPrsMenu components

Branch contains the landing page and home page. Added pages for the Student Rights Guide / About PRS as it seemed those were separate pages based on the figma
Styling (font family for example) not fully complete on the landing page, some touch ups for styling (and content) still needed but overall working
Routing is working but a few things might need to be touched up on
(can we also decide on what we're doing for styling, maybe styled components?)
Closes #9 Closes #4

also! Daniel I clicked on the vercel link but was taken to a 404 page so I'm probably missing something. I believe I fixed what was commented but vercel checks still seem to be failing - not really sure what that means.


[WIP] Remove check for real coefficients in CircuitStateFn.from_vector

Before this commit, a ValueError is raised if operators.CircuitStateFn.from_vector
is passed a vector with any non-positive component. There is a comment stating
that this is neccessary because qiskit.extensions.Initializer also has this
requirement. But, this is apparently not the case, as is stated explicitly
in the documentation for Initializer.... Perhaps there was such a
restriction earlier which has since been removed. But, it doesn't seem likely.
The reason for the check is not clear.
Closes #1276

In writing a test for this, I uncovered a separate bug in CircuitStateFn.to_matrix. I plan to fix both bugs as they are sort of related and it allows a cleaner test. If someone wants to argue that they should be done separately, I'll listen.


Updated splash screen

I Just try to what You told me. Is that ok or I have to add more stuff

Congratulations @Maan-Sharma  your Pull request will be merged. Also do not forget to star our repository.


Add sirius_get_version method to API

It would be good if there was a way to query SIRIUS for its version number. See also https://github.com/cp2k/cp2k/issues/3286.

Thanks a lot for the quick implementation! The format is good.


kubectl proxy doesn't work properly

When trying to use kubectl proxy it says "Starting to serve on <IP_ADDRESS>:8001" but when I try to actually access the URL it does not load at all, giving a timeout as if I tried to access a random non-existing website (Connecting not established).
I was having issues with the metrics addon not being able to run "kubectl top nodes" and show the info of all nodes but after adding "hostName: true" to the .yaml file for the metrics server it is now working. (View YAML files folder for changelog & detail of where the line was added).
But 'kubectl proxy' still does nothing and I am out of ideas of where to search for the error.
Here are the logs after a full deployment:
kubectl get services --all-namespaces
NAMESPACE             NAME                        TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                  AGE
default                kubernetes                  ClusterIP   <IP_ADDRESS>       <none>        443/TCP                  9m18s
kube-system            kube-dns                    ClusterIP   <IP_ADDRESS>      <none>        53/UDP,53/TCP,9153/TCP   9m16s
kube-system            metrics-server              ClusterIP   <IP_ADDRESS>   <none>        443/TCP                  9m11s
kubernetes-dashboard   dashboard-metrics-scraper   ClusterIP   <IP_ADDRESS>   <none>        8000/TCP                 9m9s
kubernetes-dashboard   kubernetes-dashboard        ClusterIP   <IP_ADDRESS>   <none>        443/TCP                  9m9s

kubectl get nodes
NAME            STATUS   ROLES                        AGE     VERSION
master-node     Ready    control-plane,master         9m10s   v1.23.6
worker-node01   Ready    worker                       6m33s   v1.23.6
worker-node02   Ready    worker                       4m12s   v1.23.6

 kubectl get all -n kubernetes-dashboard
NAME                                             READY   STATUS    RESTARTS   AGE
pod/dashboard-metrics-scraper-799d786dbf-pvbtq   1/1     Running   0          13m
pod/kubernetes-dashboard-fb8648fd9-mkg6m          1/1     Running   0          13m

NAME                               TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
service/dashboard-metrics-scraper   ClusterIP   <IP_ADDRESS>   <none>        8000/TCP   13m
service/kubernetes-dashboard          ClusterIP   <IP_ADDRESS>   <none>        443/TCP    13m

NAME                                        READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/dashboard-metrics-scraper   1/1     1            1           13m
deployment.apps/kubernetes-dashboard          1/1     1            1           13m

NAME                                                 DESIRED   CURRENT   READY   AGE
replicaset.apps/dashboard-metrics-scraper-799d786dbf   1            1    1       13m
replicaset.apps/kubernetes-dashboard-fb8648fd9         1            1    1       13m

kubectl config view
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://<IP_ADDRESS>:6443
  name: kubernetes
contexts:
- context:
    cluster: kubernetes
    user: kubernetes-admin
  name: kubernetes-admin@kubernetes
current-context: kubernetes-admin@kubernetes
kind: Config
preferences: {}
users:
- name: kubernetes-admin
  user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED

To deploy the dashboard we are using (available aswell on the master.sh script):
# Install Kubernetes Dashboard

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.1/aio/deploy/recommended.yaml

# Create Dashboard User

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kubernetes-dashboard
EOF

cat <<EOF | kubectl apply -f -
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard
EOF

kubectl -n kubernetes-dashboard get secret "$(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}")" -o go-template="{{.data.token | base64decode}}" >> /vagrant/configs/token

sudo -i -u vagrant bash << EOF
whoami
mkdir -p /home/vagrant/.kube
sudo cp -i /vagrant/configs/config /home/vagrant/.kube/
sudo chown 1000:1000 /home/vagrant/.kube/config
EOF

If I try to deploy a sample nginx deployment using:
kubectl apply -f https://raw.githubusercontent.com/AlexPaiva/Portal-for-Service-Mesh-for-Virtualized-Environments/main/Deployment/yaml/sample-app.yaml
It is fully accessible by then visiting the URL "http://<IP_ADDRESS>:32000/", which returns:
Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to [nginx.org](http://nginx.org/).
Commercial support is available at [nginx.com](http://nginx.com/).

Thank you for using nginx.

Fixed, was enabling "kubectl proxy" inside the master node, which is completely wrong.
After further understanding of how the proxy works and what it means exactly I was able to detect that I needed to run it from outside the cluster. I have on my workstation added to the PATH variable (Windows) the kubectl.exe file and using the config file which provides  kubernetes-admin information I was able to add this config file to the $USER/.kube folder and simply run "kubectl proxy" to which I was able to afterwards access the Kubernetes Dashboard. After this I was able to, using the provided token when the kubernetes dashboard user was created, login to the dashboard with success.


Timepicker does not behave as inline element in google chrome

The timepicker does not get rendered correctly in google chrome because the timepicker is line-breaking despite of the before span or I set the timepicker to display inline.
thats my html:
<span>From: </span><timepicker style="display:inline;" ng-model="row.entity.timeTableEntryViewModels[row.grid.columns.indexOf(col)].startTime"
                             ng-change="changed()"
                             hour-step="hstep" minute-step="mstep" show-meridian="false"></timepicker>

You can see the difference on this image:

Closing due to inactivity. Please feel free to re-open once you've tested with the latest UI Bootstrap and Angular JS 1.3 and can confirm this is still an issue.


Module Manager By default tries to install Istio / Prometheus Resources

By default the overlay for prometheus and istio as optional dependencies should be turned off
AC:

[x] Create Kustomization (if not already existing) for specific dependency groups (e.g. istio and prometheus)
[x] Do not run Kustomization by default but introduce separate make commands for enabling them or disabling them

resource mapping not found for name: "module-manager-manager-metrics-monitor" namespace: "manifest-system" from "STDIN": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
ensure CRDs are installed first
resource mapping not found for name: "module-manager-kyma-gateway" namespace: "manifest-system" from "STDIN": no matches for kind "Gateway" in version "networking.istio.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "module-manager-kyma-events" namespace: "manifest-system" from "STDIN": no matches for kind "VirtualService" in version "networking.istio.io/v1beta1"

Fixed with https://github.com/kyma-project/module-manager/pull/87, https://github.com/kyma-project/module-manager/pull/86 and https://github.com/kyma-project/module-manager/pull/88


Build with z5 and hdf5 on windows

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

The build fails with some compiler errors (Illegal Indirection), although I can build it in a different CI (although the CI later fails at the test stage).
The difference is the compiler version, the conda-forge build uses MSVC 19.16, the other CI 19.28.
Note that the conda-forge build seems to use the system compiler and not the compiler provided by conda:
-- The C compiler identification is MSVC 19.16.27045.0
-- The CXX compiler identification is MSVC 19.16.27045.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped

see also here
So the first thing to try to fix this issue would be using the conda compiler (which would be more clean in any case).
Unfortunately I don't know how to do this on Windows...

@conda-forge-admin, please rerender

It turns out conda picks up the correct compiler, it's just too old.
To fix this, I tried to switch to vs2019, following the example here.
This seems to pick the correct compiler, however the cmake call then fails because it does not find it any more:
(base) %SRC_DIR%>set "cxx_compiler=vs2019"

...

(%BUILD_PREFIX%) %SRC_DIR%\build>cmake .. -G "NMake Makefiles"          -DCMAKE_BUILD_TYPE=Release          -DCMAKE_PREFIX_PATH="%PREFIX%\Library"          -DCMAKE_INSTALL_PREFIX="%PREFIX%\Library"          -DBOOST_ROOT="%PREFIX%\Library"          -DBUILD_NIFTY_PYTHON=ON          -DWITH_HDF5=ON          -DWITH_Z5=ON          -DWITH_ZLIB=ON          -DWITH_BLOSC=ON          -DPYTHON_EXECUTABLE="%PREFIX%\python.exe"
CMake Error at D:/bld/nifty_1619731407973/_build_env/Library/share/cmake-3.20/Modules/CMakeDetermineCCompiler.cmake:49 (message):
  Could not find compiler set in environment variable CC:

  cl.exe.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
See also "D:/bld/nifty_1619731407973/work/build/CMakeFiles/CMakeOutput.log".

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender


Fixing partitioned_vector creation

Fixing the size of partitions to avoid race conditions between
possible reallocations during push back and the continuation
to set the local partition data.

This PR has been manually merged with 4cb2256.


Add a docker-compose.yml file that uses the redis-stack container

Add a docker-compose.yml file that uses the redis/redis-stack container to the root of this repository, and amend the README.md file with instructions for how to start and stop Redis in the container with the docker-compose command.
For an example of a repository that has what we're looking for, see: https://github.com/redis-developer/redis-om-python-flask-skeleton-app
This is part of our participation in Hacktoberfest 2022. Learn how to complete this issue here: https://redis.io/community/hacktoberfest/
Need help or want to talk to us? Join us on Discord where we have a dedicated Hacktoberfest channel: https://discord.gg/ueQwKUh5Z3
If you're interested in taking this issue on, please mention @simonprickett and @SuzeShardlow in the comments and ask to be assigned.

Hey @simonprickett and @SuzeShardlow I would like to work on this issue, Could you assign it to me?

Hi @irvv17, I have assigned this to you.  Please check our guidelines, and we look forward to receiving your PR in a couple of days.  Have fun!
https://redis.io/community/hacktoberfest/

Hi @irvv17, how are you doing with this?  :)

Hi @irvv17, how are you doing with this? :)

Hey, I will release a PR by today! Sorry for the delay

Hi @irvv17, we haven't heard anything more from you so we are going to unassign this from you to give someone else a chance to work on it.

This issue is up for grabs.  Please reply and tag me and @simonprickett if you would like to work on it :)

Sorry for the delay, I just launch the PR in case I'm still able to solve this issue
cc @SuzeShardlow @simonprickett


[Agent] fix create entry span failure

Please answer these questions before submitting pull request

Why submit this pull request?

[x] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues

Bug fix

Bug description.
The Entry Span can't be the child of Non-Entry Span before PR. This logic can't cover the Kafka case.  The client need to create a local span before pull message, because of The way that Kafka consumption message is pull mode.

Coverage decreased (-0.003%) to 19.428% when pulling 26889046bc0c0a3ac287f2a6c0eba0a41248ecb1 on ascrutae:fix/entry-span-issue into 4a7f11c92ce303362daa5962ca735b2daefe3710 on apache:master.


DHF integrals being real for atoms and two-atom molecules

Hi there,
I have been doing relativistic ci calculations using the FCIDUMP files generated by pyscf. I recently noticed something strange. If the molecule has less than three atoms, then all the integrals are real valued, which is not what I would expect, but it still gives the correct ZFS splitting compared with results from BAGEL's integrals and also DIRAC's results.
You can find a script that reproduces this problem below. It writes FCIDUMP for C atom, NH molecule and H2O molecule. Only integrals for H2O molecule has complex valued integrals. I'm not sure the recently supported kramer-restricted solver is able to resolve this problem since I have no idea get zquatev to work.
https://gist.github.com/xubwa/9e4c997bf4426d54693c3225881cd4d0
Xubo

I'm not sure whether this is an issue of the program. But for atom, the MO
integrals should be real due to symmetry reasons. For polyatomic molecules,
if the symmetry of the molecule is high, then it is also possible that the
MO integrals are real.
Best,
Zhendong
Xubo Wang<EMAIL_ADDRESS>于2020年10月10日周六 下午4:29写道：

Hi there,
I have been doing relativistic ci calculations using the FCIDUMP files
generated by pyscf. I recently noticed something strange. If the molecule
has less than three atoms, then all the integrals are real valued, which is
not what I would expect, but it still gives the correct ZFS splitting
compared with results from BAGEL's integrals and also DIRAC's results.
You can find a script that reproduces this problem below. It writes
FCIDUMP for C atom, NH molecule and H2O molecule. Only integrals for H2O
molecule has complex valued integrals. I'm not sure the recently supported
kramer-restricted solver is able to resolve this problem since I have no
idea get zquatev to work.
https://gist.github.com/xubwa/9e4c997bf4426d54693c3225881cd4d0
http://url
Xubo
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/732, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVP65IPNIO4D77QXKDWHXLSKALP3ANCNFSM4SK5G6IQ
.

Thank you Zhendong, I recently read more on the symmetry direction. So I believe it is due to the fact that although these symmetries are not explicitly exploited, but they still managed to take over the results at some really high symmetry cases such as linear molecules.


Specify scopes on the access token

For @matgnt
Propose how to specify scopes on an access token acquired as part of the self-issued identity token.

This is done already in the Base Identity Protocol spec Section 6.
I believe this is all that is needed and the issue can be closed.

Completed already.


7/22 PM Publish

Docs Build status updates of commit 1642e4a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azps-7.5.0/toc.yml
:white_check_mark:Succeeded
View (azps-7.5.0)

docs-conceptual/azps-8.0.0/toc.yml
:white_check_mark:Succeeded
View (azps-8.0.0)

docs-conceptual/azps-8.1.0/toc.yml
:white_check_mark:Succeeded
View (azps-8.1.0)

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


Argument misunderstanding

Hi,
I wanted to know what is file_containing_jpg_files .
create-panorama-from-jpg-files-in-directory file_containing_jpg_files
I tried
create-panorama-from-jpg-files-in-directory data
all the images are located in data
got the following error:
Traceback (most recent call last):
  File "/home/arya/deepak/venvs/panorama/bin/create-panorama-from-jpg-files-in-directory", line 11, in <module>
    sys.exit(main())
  File "/home/arya/deepak/venvs/panorama/local/lib/python2.7/site-packages/panorama/panorama.py", line 21, in main
    do_panoramas_in_dirs(args.directories)
  File "/home/arya/deepak/venvs/panorama/local/lib/python2.7/site-packages/panorama/panorama.py", line 29, in do_panoramas_in_dirs
    panorama.create_panorama_jpg_from_source_files()
  File "/home/arya/deepak/venvs/panorama/local/lib/python2.7/site-packages/panorama/panorama.py", line 139, in create_panorama_jpg_from_source_files
    self.create_pto()
  File "/home/arya/deepak/venvs/panorama/local/lib/python2.7/site-packages/panorama/panorama.py", line 119, in create_pto
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 536, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Thanks

thank you for reporting this. Did you find a solution?

have exactly the same problem

@madmaddi thank you for using my script. Could you please try to debug what is going on here? Please tell me if you need help. Do you have some knowledge of the programming language python?


[Sema] Fix two assertion failures/crashes in solver-based key-path completion

This fixes two assertion failures/crashes in the solver-based key path completion I introduced in #38049, which were found by the stress tester.
Record type of identity key paths in the constraint system
If we are completing e.g. \.self.#^COMPLETE^# we use the type of self as the base type for the completion. In order to retrieve that, we need to record the type.
Fixes rdar://80271346 [SR-14887]
Check completion key path component to determine if completion node was type checked in multi expression closure
To check whether the code completion node was type checked in a multi statement closure, we were assuming that we had a code completion expression and not considering that we could also complete in a key path component. When applicable, check if the completion key path component has a type to determine if the completion node was type checked as part of a multi-statement closure.
Resolves rdar://80271598 [SR-14891]

@swift-ci Please smoke test

@swift-ci Please smoke test


Pulls in React as a dependency

Per version 1.0.7 this library seems to pull in React when consumed. I then created a post in the Vite discussions where I wondered how I could make Vite tree-shake away unused imports.
Also have a SO post going.
For v2 I tried the exports functionality of package.json to export subpaths, but that requires using Module resolution node16 or nodenext in TypeScript consumers, which might be prohibitive, so ended up pulling that version. Will instead try to get the original attempt going.

I have now gotten this working and verified to work as correctly with all the combinations I could think make sense:

typescript with default module resolution
typescript with nodenext module resolution
typescript with default module resolution  that pulls in react

When not using the React export, it is not bundled in and the types compile fine in all cases 🥳


Nmt download

Fixes https://github.com/sillsdev/serval/issues/268

This change is

src/Serval.Grpc/Protos/serval/translation/v1/engine.proto line 15 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
I wouldn't use Presigned in the name. That term is specific to S3. I would call this something like GetModelDownloadUrl or just GetModelUrl.

GetModelDownloadUrl - explicit that it can be used for external clients.

src/Serval.Grpc/Protos/serval/translation/v1/engine.proto line 86 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
I believe that Protobuf has Timestamp and DateTime types.

Done.

src/Serval.Translation/Contracts/ModelPresignedUrlDto.cs line 7 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Just ExpirationTime should be sufficient. Also, what is this? It is a specific date/time. If so, you should use the appropriate type, such as DateTime.

Changed to ExpiresAt and a DateTime.

src/Serval.Translation/Contracts/TranslationEngineConfigDto.cs line 34 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
We want to use the same property to enable live inferencing, so the name should be more generalized. Maybe IsModelPersisted or SaveModel.

I like ``IsModelPersisted`.

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 906 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
This is incorrect.

Done.

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 920 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
This should be GetModelDownloadUrlAsync or GetModelUrlAsync, since it isn't actually downloading the model.

and what about changing the endpoint name to model-url?

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 1032 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Is there any way to get this to work using System.Text.Json instead?

I couldn't find a way - I had to rip a custom DictionaryJsonConverter.cs as well.  It's because nested options don't currently work.  It's not needed for this anymore (because we aren't using buildOptions, but it is needed.  Is there a reason you don't want to use Newtonsoft?  It's used in quite a few places already.

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 920 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
We should just be consistent everywhere. If we use GetModelDownloadUrlAsync, then we should call it model-download-url. If we use GetModelUrlAsync, then we should call it model-url. I would lean towards model-download-url, since it is more explicit. Also, this should be a GET endopoint.

model-download-url

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 1032 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Instead of using two JSON libraries, I would like to move us to only using the one built-in to .NET. Using two JSON libraries causes confusion.

What do you want to do now?  make an issue and try to clean it up later?

tests/Serval.E2ETests/ServalClientHelper.cs line 304 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Why did you remove this? It is a good idea to clean up after every test.

I sometimes want to interact with the model and data after the test has completed via swagger.  Having the data persist after the test is done accomplishes this.

src/Serval.Grpc/Protos/serval/translation/v1/engine.proto line 84 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
These fields should be snake case.

Done.

src/Serval.Grpc/Protos/serval/translation/v1/engine.proto line 85 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
This should be model_revision.

Done.

Codecov Report
Attention: 179 lines in your changes are missing coverage. Please review.

Comparison is base (7231a27) 70.55% compared to head (24fb43b) 68.83%.

Files
Patch %
Lines

...erval.Translation/Utils/DictionaryJsonConverter.cs
33.63%
67 Missing and 6 partials :warning:

src/Serval.Client/Client.g.cs
2.73%
71 Missing :warning:

src/Serval.Translation/Services/EngineService.cs
11.11%
16 Missing :warning:

...lation/Controllers/TranslationEnginesController.cs
27.77%
13 Missing :warning:

...erval.Translation/Contracts/ModelDownloadUrlDto.cs
0.00%
3 Missing :warning:

src/Serval.Translation/Models/ModelDownloadUrl.cs
0.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #300      +/-   ##
==========================================
- Coverage   70.55%   68.83%   -1.73%
==========================================
  Files         148      151       +3
  Lines        6711     6933     +222
  Branches     1065     1103      +38
==========================================
+ Hits         4735     4772      +37
- Misses       1546     1727     +181
- Partials      430      434       +4

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

src/Serval.Translation/Contracts/ModelDownloadUrlDto.cs line 6 at r2 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
This should be an int, so that it is consistent with the TranslationEngineDto.

ok

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 1032 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
We should be able to update the ObjectToInferredTypesConverter to support objects and arrays. You can either revert this and I can create a separate PR to specifically fix this issue or I can fix it in this PR.

I'll take a shot at it - and try to test it.

tests/Serval.E2ETests/ServalClientHelper.cs line 304 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Is that for debugging purposes?

Yes, for debugging.  Should we gate it with isDevelopment?

tests/Serval.E2ETests/ServalClientHelper.cs line 304 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Yeah, that's a good idea.

What do you think?  These are E2E tests - the environment is really about the target.  Moreover, I use "Staging" for all of my development work with docker compose.

tests/Serval.E2ETests/ServalClientHelper.cs line 308 at r4 (raw file):

    public async ValueTask DisposeAsync()
    {
        DeploymentInfo? result = await StatusClient.GetDeploymentInfoAsync();

THis is not good - I will redo with isdevelopment - that is what we want anyway.

tests/Serval.E2ETests/ServalClientHelper.cs line 308 at r4 (raw file):
Previously, johnml1135 (John Lambert) wrote…
THis is not good - I will redo with isdevelopment - that is what we want anyway.

This is the best I can do.  Dependency injection in testing doesn't work well.

I haven't been following this PR very closely along the way. I would have expected changes to EngineServiceTests.cs as well as (judging from the codecov report) a parsing failure case test in the TranslationEngineTests.cs. Is there a reason that's not the case? Are we just pushing that down the road? Or was it deemed minor enough?

src/Serval.Translation/Controllers/TranslationEnginesController.cs line 1032 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
I'll take a shot at it - and try to test it.

Done

GetModelDownloadUrl is tested in E2E tests.  I'll add a bad parsing case.

Added some more testing.

src/Serval.Translation/Contracts/ModelDownloadUrlDto.cs line 7 at r10 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
We are already using DateTime in the TranslationBuildDto. I don't want to return two different DateTime formats.

The DateTimeOffset thing was confusing me: https://stackoverflow.com/questions/72261151/does-nswag-convert-datetime-to-datetimeoffset-in-the-timezone-the-server-is-in.  I'll convert back to DateTime.

src/Serval.Translation/Contracts/TranslationEngineConfigDto.cs line 34 at r9 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Yes, it should probably be optional everywhere in Serval. You make it optional by making it nullable. There are many other optional parameters.

Done

src/Serval.Translation/Services/EngineService.cs line 140 at r11 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
Do you think it makes sense to return the default value for IsModelPersisted from the engine so we can set it on the model? Or should we leave it as null if it isn't set.

keep it nullable for backwards compatibility?


cells PMID:20805322

inviable swollen mononucleate vegetative cell, normal cell length
inviable swollen binucleate vegetative cell, normal cell length
inviable stubby multinucleate vegetative cell

inviable mononucleate vegetative cell, with normal cell length and increased cell diameter FYPO:0006197
inviable binucleate vegetative cell, with normal cell length and increased cell diameter FYPO:0006198
inviable stubby multinucleate vegetative cell FYPO:0006199
edit file: 0279ec0c29ef0ccb1bee442aed75084604ada862
release:<PHONE_NUMBER>a26fcf348885ee37fd8c8fc8389a5c


Web interface not showing robots or allowing me to complete setup.

I installed wire-pod and got it working just fine. I installed it in /wire-pod and provided the same directory when asked during the vectorx installation but when I load the web interface at escapepod.local:8070, it loads but doesn't respond to anything. I cant connect a robot or anything. Im not sure why this isn't working, the installation steps are rather vague.

When running the update in the web interface it presents this error: "Current VectorX version is undefined"

I advice you, if you can, to install my own Wire-Pod fork (https://github.com/fforchino/wire-pod) rather than the latest one. That's because Wire-Pod and VectorX are two separate projects, I cannot keep updating VectorX every time Wire-Pod changes and potentially breaks the interoperability. I also haven't been working continuously on VectorX for a while.
VectorX is officially tested only with my Wire-Pod fork.

Adding to you comment fillipo ( i think thats your name) i used the Fork and had the same problem

Aha! Found it! During setup, enter /home/username/wire-pod instead of home/username/wire-pod all it takes is one slash!


use: scala-js-macrotask-executor as ExecutionContext

/claims #302
/resolves #302
re: your comment @fwbrasil

https://github.com/getkyo/kyo/issues/302#issuecomment-2107925967

I think the artifacts were not published for non-js targets after 1.1.0. If we add this only under JS settings, all is well.
Regarding build time, I think that was a bug potentially having to do with adding the dependency for all targets. For a full clean + build of core, the build time is now 28s on my machine.

I also went ahead and updated this as the executor under kyoTest. Do you think we need a direct dependency under kyo-core? I think transitive should be okay...

Thanks! 😊


Deployments

This is a Feature Request
Context
I am following the minikube tutorial (current section) and find two different ways to getting the roll-out status of an deployment:
kubectl rollout status deployment/nginx-deployment
vs.
kubectl rollout status deployment.v1.apps/nginx-deployment
I am using locally:
kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:41:02Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:32:58Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}

minikube version
minikube version: v1.13.1
commit: 1fd1f67f338cbab4b3e5a6e4c71c551f522ca138-dirty

What is the difference between these two?
Might be a good idea to add a node to step number 3 which explains this.

I think that an appropriate improvement that's in line with your comment @EHJ-52n is to change https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ to run kubectl rollout status deployment/nginx-deployment instead.
That sounds reasonable to do.
/language en
/kind cleanup
/triage accepted
/help

/retitle Multiple way to refer to Deployment resource confusing in Deployment concept page

/assign


Update base

This PR updates dependency on base to newer version and removes code which was previously moved to base from time.

@armio, PTAL.