[Function Request] GetRecordOnce @ Setup-Tables

I'd like to propose that you add the GetRecordOnce()-Function, that is present e.g. in PurchasesPayablesSetup.Table.al or
SalesReceivablesSetup.Table.al to the other Setup-Tables. Please let me know if you need additional information from me.
Code to add:
var
    RecordHasBeenRead: Boolean;

procedure GetRecordOnce()
begin
    if RecordHasBeenRead then
        exit;
    Get;
    RecordHasBeenRead := true;
end;

Those are the setup-tables missing the GetRecordOnce()-Function

AccountEntitySetup.Table.al
AccountSchedulesChartSetup.Table.al
AccSchedKPIWebSrvSetup.Table.al
AdditionalFeeSetup.Table.al
AnalysisReportChartSetup.Table.al
APIEntitiesSetup.Table.al
ApplicationAreaSetup.Table.al
AssemblySetup.Table.al
AzureADAppSetup.Table.al
AzureADMgtSetup.Table.al
BankDataConvServiceSetup.Table.al
BankExportImportSetup.Table.al
BookingMgrSetup.Table.al
BusinessChartUserSetup.Table.al
BusinessUnitSetup.Table.al
CashFlowChartSetup.Table.al
CashFlowSetup.Table.al
CDSConnectionSetup.Table.al
ChangeLogSetup.Table.al
ConfigSetup.Table.al
CostAccountingSetup.Table.al
CRMConnectionSetup.Table.al
CurrExchRateUpdateSetup.Table.al
DataClassNotifSetup.Table.al
DataMigrationSetup.Table.al
DocExchServiceSetup.Table.al
DtldPriceCalculationSetup.Table.al
DuplicateSearchStringSetup.Table.al
ElectronicVATDeclSetup.Table.al
ExchangeServiceSetup.Table.al
ExperienceTierSetup.Table.al
FAJournalSetup.Table.al
FAPostingTypeSetup.Table.al
FASetup.Table.al
GeneralPostingSetup.Table.al
GenericChartSetup.Table.al
GraphMailSetup.Table.al
HumanResourcesSetup.Table.al
HybridDeploymentSetup.Table.al
ImageAnalysisSetup.Table.al
IncomingDocumentsSetup.Table.al
IntegrationManagementSetup.Table.al
InteractionTemplateSetup.Table.al
InventoryPostingSetup.Table.al
InventorySetup.Table.al
ItemTrackingSetup.Table.al
JobsSetup.Table.al
JournalLinesEntitySetup.Table.al
ManufacturingSetup.Table.al
MarketingSetup.Table.al
MSQBDSetup.Table.al
MSQBOSetup.Table.al
NativeAPITaxSetup.Table.al
NonstockItemSetup.Table.al
NotificationSetup.Table.al
O365EmailSetup.Table.al
O365SalesInitialSetup.Table.al
OAuth20Setup.Table.al
OCRServiceSetup.Table.al
OfficeAddinSetup.Table.al
OnlineMapParameterSetup.Table.al
OnlineMapSetup.Table.al
OrderPromisingSetup.Table.al
OutlookSynchUserSetup.Table.al
PaymentRegistrationSetup.Table.al
PaymentServiceSetup.Table.al
PayrollSetup.Table.al
PriceCalculationSetup.Table.al
ResourcesSetup.Table.al
SalesbyCustGrpChartSetup.Table.al
ServiceMgtSetup.Table.al
ServiceStatusPrioritySetup.Table.al
ServPriceGroupSetup.Table.al
SMTPMailSetup.Table.al
SocialListeningSetup.Table.al
SourceCodeSetup.Table.al
TaxSetup.Table.al
TimeSheetChartSetup.Table.al
TrailingSalesOrdersSetup.Table.al
TrialBalanceSetup.Table.al
TroubleshootingSetup.Table.al
UserSetup.Table.al
VATPostingSetup.Table.al
VATRateChangeSetup.Table.al
VATReportSetup.Table.al
WarehouseSetup.Table.al

I would mention that in some cases now, such patterns of 'global record + get once' are less useful, because SetLoadFields() exists. Thus, even if a call is frequent, if it only needs a small number of field(s), it can now load just those in a local instance and get each time. That avoids polluting with a global variable, having to write subscribers to refresh it if the table is modified, etc.

We have no plans to do this kind of changes in application, as this is platform duty to cache frequently used data. SQL server use advanced methods for getting data, and there are ongoing improvements for each release.


fix: add nitro config type

PR Checklist
PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] infrastructure changes
[ ] Other... Please describe:

What is the current behavior?
Start server typed as any
{ start: { server: any}}
What is the new behavior?
Start server config typed as NitroConfig

Thank you


[PF-448] Gradle cleanups: adopt quality plugin and factor out snippets

This PR makes a few changes to the Gradle setup for common-lib:

Incorporate https://github.com/xvik/gradle-quality-plugin, which provides a better wrapper around Spotbugs than the spotbugs-gradle-plugin and also supports execution of multiple tools. This is similar to https://github.com/DataBiosphere/terra-workspace-manager/pull/243.
Split out distinct snippets of Gradle config into separate files. This reduces the mental burden of scrolling through one large file, and gives service repos an easier path to cloning certain standard pieces of config. (This is basically a waypoint on the path towards producing a bona fide Gradle platform plugin... to do it "right" will take a dedicated effort, but IMO this has some benefits for code clarity in its own right.)
Remove the separate 'unitTest' Gradle task (we don't currently split out test suites for common-lib, it's simpler to leave them all in "test") and adjust the tasks called by the CI/CD workflows. The "gradle build" command takes care of everything except javadoc, which is on a separate dependency thread. See the diagram of dependencies here.

(N.B. This PR is not the primary Gradle cleanup mentioned in PF-448, but it's spiritually in line with that ticket, so I tagged it there.)

We also have the option of turning on the tools one at a time. Starting with spotless only would be the easiest way. Then the PRs to turn them on could come with lists of exclusions for individual tools, and we'd get a better sense of which tools were good for what.

How did you come up with the exclusions & inclusions that you did?
I'm very suspicious of trying to delegate style to static code analysis. I'd like to have more of a discussion on where we draw the line and what would be a good/bad reason to add SuppressWarning.

Good points. I tried to draft some guiding principles here. See docs in gradle/quality.gradle – feedback or thoughts?
There is no doubt that fine-tuning something like this will be an ongoing process. I spent maybe 20 minutes adding exclusions for the most redundant / obvious false positives.
I think the overall opportunity is sound, though; already the findings catch some pretty low-effort and helpful fixes (see https://gist.github.com/gjuggler/b9c32894ad2f932a9c967589da7281ad).


Fix extra slash in README

Actually just wanted to change:
-import jsx from 'react-syntax-highlighter/dist/esm//languages/prism/jsx';
+import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx';

But the husky pre-commit hook also ran prettier on the README, so a lot of formatting changed too. 😅
Also, these dist/esm and dist/cjs folders aren't in the DefinitelyTyped type definitions. That can probably be fixed pretty easily...

thanks!


Using pipeline with Ops Manager SAML auth

Hi.. Our Ops Manager is SAML authenticated..
Can you provide some information on how we would go about exporting the Ops Manager settings in such as scenario?

Hi @findneville,
Sorry for the delayed response. Our task currently is not compatible with a SAML authenticated Ops Manager. I think exporting the OM setting would also depend on how the SAML is set up. For more information, I recommend asking this question in the #pcf-releng channel in Pivotal slack. The release engineering team should have more insights on how to proceed. I will close the issue for now. Feel free to reopen for further questions.
Cheers,
Chunyi && @MirahImage


support for docker and podman build on mac silicon

This makes it possible to run the container builds on MacOS with silicon chips as well as other platforms that have either podman or docker installed.
To use:
unchanged: ./mvnw clean install -PbuildDocker
or if you prefer podman:
./mvnw clean install -PbuildDocker -Dcontainer.executable=podman

#180

Thank you for your contribution René

Hi @zubcevic
I recovered these changes. Building docker image on my Intel Macbook and Docker Machine is working.
But I've got the follwing error while starting the discovery-server
arey:~$docker-compose up
grafana-server is up-to-date
prometheus-server is up-to-date
config-server is up-to-date
tracing-server is up-to-date
Starting discovery-server ... error

ERROR: for discovery-server  Cannot start service discovery-server: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./dockerize": stat ./dockerize: no such file or directory: unknown

Do you have any idea?

Fixed by https://github.com/spring-petclinic/spring-petclinic-microservices/pull/246


Training

Can we use the train in DMAOT/tools to retrain this on VOS as with the aot-benchmark repo?

So is deaot_engine  compatible with all the aot-benchmaerk pretrained model right?
Can you share some info about the model you have in the Readme?

We also utilize the SwinB-DeAOT model trained on a larger dataset, and the pretrained weights can be downloaded from here.

Can we reproduce this pretrained checkpoint?

Simply put, you can use the aot-benchmark to train the model and then use the dmaot_engine to test the model.  We use YouTubeVOS, Davis, MOSE, OVIS, LaSOT, and GOT-10k in the main training of SwinB-DeAOT-L to achieve better results.

ok thanks

We use YouTubeVOS, Davis, MOSE, OVIS, LaSOT, and GOT-10k in the main training of SwinB-DeAOT-L to achieve better results.

Do you plan to release the config to reproduce this checkpoint?

Yes, the configuration will be released soon.


Rename Azure to Microsoft Account?

Feature request
Is your feature request related to a problem? Please describe.
Is the Azure integration the same as what other providers call "Microsoft Account"? For example Auth0 has this page:
https://marketplace.auth0.com/integrations/microsoft-account-social-connection
Describe the solution you'd like
If so, can we use the proper name "Microsoft Account" and logo? In the general public almost no one knows that Azure is, nor they are familiar with the logo especially.
How it should look:

Hey Hyperknot,
Thanks for pointing this out! AFAIK, applications make use of Azure Active Directory for OAuth sign ins so they should generally be the same. Agree that the general population might not be as familiar with Azure - not sure about the developer population though.
As this would require renaming across the board it might take some time before we can get to this  - I'm going to close this issue for now but will open an internal ticket to track this.


No HEVC in ts::PESPlugin::handlePESPacket().

https://github.com/tsduck/tsduck/blob/985dd76139b29d763fac6f0ff0a2bc94fd0c52d7/src/tsplugins/tsplugin_pes.cpp#L414
Hi!
ts::PESPlugin::handlePESPacket() doesn't know about HEVC payload and generates warnings. So a checking like pkt.isHEVC() shoud be added to the statement.

Please try commit a4b45865de24060d035275419d16ddb4582d70cf (simply pull the master branch).
The HEVC stream is recognized only from the stream type in the PMT. I hope this will cover your use case.

Thanks.


Using "include" bypasses the middleware

Bug description
On our project we have a User model. We're using the following middleware to remove the sensitive fields such as password whenever querying that model:
async connectHidePasswordMiddleware() {
    this.$use(async (params, next) => {
      if (params.model === 'User') {
        if (
          params.action === 'findUnique' ||
          params.action === 'findMany' ||
          params.action === 'findFirst'
        ) {
          // when there are NO select params that actually means: "select all" so we do that but remove the password field
          // flaw: requires a manual maintenance of the list of the fields if we change the model!
          // note: Prisma team might actually add the "exclude" list so we will be able to fix this more easily
          if (!params.args['select']) {
            params.args['select'] = {
              password: false,
              uuid: true,
              email: true,
              role: true,
              // ...etc select all other fields as well to be explicit, you get the idea
            };
          }
          // if we do have any select params defined use them all AND check if the 'password' is explicitly requested
          else if (params.args['select']) {
            params.args['select'] = {
              // preserve all the selects...
              ...params.args['select'],
              // ...and the password ONLY IF explicitly stated to be true
              password: params.args['select'].password || false,
            };
          }
        }
      }
      // go to the next middleware
      return next(params);
    });

The issue with this approach is when we try fetching the User using include  with a nested include alongside some other data in a different model, let's call it Stuff model. In the Stuff model there's an expected one-to-many relationship to the User model as an owner via the ownerUuid field.
const stuff = await this.prisma.stuff.findFirst({
  where: {
    ownerUuid: someKnownUserId,
  },
  include: {
    owner: {
      include: {
        someField: true,
        someOtherField: true,
      },
    },
  },
});

....The returned data then contains the password field. So stuff.owner.password is actually there.
Middleware works like a charm and as expected in all of the other scenarios but using include like this seems to completely circumvents the middleware. I can see raw SQL queries when logging is enabled and those contain the password field.
Debugging also tells me that middleware doesn't seem to even be invoked at all for the included fields.
How to reproduce
Steps to reproduce are provided in the description of the issue.
Expected behavior
Models included with include should not circumvent the middleware.
Prisma information
Not allowed to share this, sorry. The case is very simple, however.
Environment & setup

OS: Windows 10 and MacOS Big Sur
Database: PostgreSQL
Node.js version: 14.x (multiple versions tested)

Prisma Version
prisma                  : 3.1.1
@prisma/client          : 3.1.1
Current platform        : windows
Query Engine (Node-API) : libquery-engine c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt c22652b7e418506fab23052d569b85d3aec4883f (at<EMAIL_ADDRESS>Default Engines Hash    : c22652b7e418506fab23052d569b85d3aec4883f
Studio                  : 0.423.0

But also tested and not working with 2.30.1

This looks a limitation of middleware API to me. Nothing is working unexpectedly here. Middlewares can used to rewrite the params you send and you are only rewriting the top level select. You will also need to rewrite params of relegated fields.
I think real solution here would be #3636 which we can internally manage in the client to exclude fields in the nested level as well. Right now, you will need to add more code in the middleware to rewrite nested params as well.

Prisma Middleware is currently run for Prisma Client Queries. The only Prisma Client Query triggered here is the top level one, everything else is internally and does not trigger the current implementation of middlewares.
But yes, of course it would be nice if that would be different and would also include internal queries triggered via include - hence this is an "Improvement" for us that we might want to implement.


Fatal error on Laravel 6 - seems to be related to orchestra testbench update

Larastan Version: 6.20.7
--level used: Any level

Description
I'm getting this error when running Larastan on my code. It was working prior to an update:

PHP Fatal error:  Class NunoMaduro\Larastan\ApplicationResolver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (NunoMaduro\Larastan\ApplicationResolver::parseTestMethodAnnotations) in /home/runner/work/enlightn/enlightn/vendor/nunomaduro/larastan/src/ApplicationResolver.php on line 16

Temporary Solution
If I restrict orchestra/testbench-core to 4.10.0 it works again. An update to testbench-core 4.11.0 breaks it.

Thank you for your report.
Resolved in here https://github.com/nunomaduro/larastan/pull/731/files
Does it work for you?

Please also so https://github.com/orchestral/testbench-core/compare/v4.11.0...v4.11.1

Thanks so much! 👍


Ceilometer: Remove unused oslo.db

Ceilometer no longer uses oslo.db, since it offloaded its metric storage and event storage.
Also explicit install of tooz library is not required because the package is part of dependencies and should be installed automatically.

tooz is still used in ceilometer https://github.com/openstack/ceilometer/blob/master/ceilometer/polling/manager.py#L34

tooz is still used in ceilometer https://github.com/openstack/ceilometer/blob/master/ceilometer/polling/manager.py#L34

tooz is still used but the package should be installed according to the dependency automatically so we don't need to explicitly define it.
https://github.com/rdo-packages/ceilometer-distgit/blob/antelope-rdo/openstack-ceilometer.spec#L116

recheck
404 while downloading repository metadata


App construction failed on SSLApp

Trying to create an SSLApp with cert and key but no matter where I put the cert (same level, folder above or below) and the key or how I name them it fails with Error: App construction failed.
If I remove the cert_file_name and key_file_name settings it launches just fine.
The code in question is basic, readFileSync doesn't work either:

The error:

Doesn't work in docker images like node:16-bullseye, node:16-buster or even on earlier versions of the natively on macos. Downgrading to version v20.7.0 doesn't work either.
EDIT: Soketi doesn't work either, same error.
This seems like a bug to me, any ideas? Thanks.

Does not work either, I tried Soketi and I get the same issue. Maybe related to this? https://github.com/uNetworking/uSockets/issues/131
Using --trace-uncaught doesn't reveal anything new.

Either you are not linking to the correct pem files which needs private key and full chain, or I just confirmed the pem path you give is relative to where you called Node from and not relative to where the app JS file is, so if you called Node with node dir/to/app.js the pem path is not relative to app.js, it is relative to node so you would need pem path as dir/to/privkey.pem

Or use __dirname like { key_file_name: `${__dirname}/privkey.pem` }

Thanks, the above worked!


Add PDF to public folder(part of: DUOS-862[risk=no]Update DS Registration Section 3 text and PDF)

Address
https://broadworkbench.atlassian.net/browse/DUOS-862?
Scope of Changes
Adding Data Provider Agreement PDF to the public folder so that I can easily link it in the update for DUOS-862
Have you read Terra's Contributing Guide lately? If not, do that first.
I, the developer opening this PR, do solemnly pinky swear that:

[ ] PR is labeled with a Jira ticket number and includes a link to the ticket
[ ] PR is labeled with a security risk modifier [no, low, medium, high]
[ ] PR describes scope of changes

In all cases:

[ ] Get a minimum of one thumbs worth of review, preferably 2 if enough team members are available
[ ] Get PO sign-off for all non-trivial UI or workflow changes
[ ] Verify all tests go green
[ ] Squash and merge; you can delete your branch after this
[ ] Test this change deployed correctly and works on dev environment after deployment

Some initial comments that we can deal with in stand-up:

There is a required text change to the DAR form that's not reflected in this PR.
The story requests a change to the underlying library card PDF file in this directory. There are some options here.

One is to rename the file to something more generic, and then changing the content of the binary itself to be the binary of the new pdf. This would also require refactoring any links to the old file name - there should be several, IIRC.
Another is to just change the content of the underlying pdf file without changing the file name, but since it is date specific, the file name is no longer an accurate representation of the content.

Some initial comments that we can deal with in stand-up:

There is a required text change to the DAR form that's not reflected in this PR.
The story requests a change to the underlying library card PDF file in this directory. There are some options here.

One is to rename the file to something more generic, and then changing the content of the binary itself to be the binary of the new pdf. This would also require refactoring any links to the old file name - there should be several, IIRC.
Another is to just change the content of the underlying pdf file without changing the file name, but since it is date specific, the file name is no longer an accurate representation of the content.

Some initial comments that we can deal with in stand-up:

There is a required text change to the DAR form that's not reflected in this PR.

The story requests a change to the underlying library card PDF file in this directory. There are some options here.

One is to rename the file to something more generic, and then changing the content of the binary itself to be the binary of the new pdf. This would also require refactoring any links to the old file name - there should be several, IIRC.
Another is to just change the content of the underlying pdf file without changing the file name, but since it is date specific, the file name is no longer an accurate representation of the content.

Maybe I misunderstood the story, it says "update the PDF to the one attached", so I was simply going to replace the current PDF file with this one, instead of making any changes to the current file. Should I be taking a different approach, like the ones you described, instead?

Some initial comments that we can deal with in stand-up:

There is a required text change to the DAR form that's not reflected in this PR.

The story requests a change to the underlying library card PDF file in this directory. There are some options here.

One is to rename the file to something more generic, and then changing the content of the binary itself to be the binary of the new pdf. This would also require refactoring any links to the old file name - there should be several, IIRC.
Another is to just change the content of the underlying pdf file without changing the file name, but since it is date specific, the file name is no longer an accurate representation of the content.

Maybe I misunderstood the story, it says "update the PDF to the one attached", so I was simply going to replace the current PDF file with this one, instead of making any changes to the current file. Should I be taking a different approach, like the ones you described, instead?

@raejohanek From the story:

Change all text in "3." section from 'Dataset Registration Agreement(s)' to 'Data Provider Agreement'

This is asking to make a small text change in the Dataset Registration page.

Update PDF to the one attached.

This is saying to replace this file with the PDF that's linked in the story. This PR only adds the new PDF file to that same public directory, but it doesn't actually replace DUOSLibraryCardAgreement_10.14.2020.pdf with anything. My comments above were meant to illustrate a couple of options in how to do that.

@raejohanek From the story:

Change all text in "3." section from 'Dataset Registration Agreement(s)' to 'Data Provider Agreement'

This is asking to make a small text change in the Dataset Registration page.

Update PDF to the one attached.

This is saying to replace this file with the PDF that's linked in the story. This PR only adds the new PDF file to that same public directory, but it doesn't actually replace DUOSLibraryCardAgreement_10.14.2020.pdf with anything. My comments above were meant to illustrate a couple of options in how to do that.

@raejohanek From the story:

Change all text in "3." section from 'Dataset Registration Agreement(s)' to 'Data Provider Agreement'

This is asking to make a small text change in the Dataset Registration page.

Update PDF to the one attached.

This is saying to replace this file with the PDF that's linked in the story. This PR only adds the new PDF file to that same public directory, but it doesn't actually replace DUOSLibraryCardAgreement_10.14.2020.pdf with anything. My comments above were meant to illustrate a couple of options in how to do that.

Hi Greg! I have those changes made on the DUOS-862 Branch, but before I make that PR, I believe I need to make this PR (putting the pdf in the public folder) so then I can use the link to this PDF in the PR I make for DUOS-862. I can include a link to this PDF from google drive at the moment, but I want to be consistent with the linked PDFs other places on the website, they all use links from the public folder on github. As far as I understand, I cannot use this link until the PDF is in the folder. So, this is an intermediary request, thats why I included "part of" in the title, but I think this was confusing. If there is a way for these two to happen in the same PR, that would be great to learn, if not, once this PDF is added I will submit the PR for DUOS-862.

@raejohanek From the story:

Change all text in "3." section from 'Dataset Registration Agreement(s)' to 'Data Provider Agreement'

This is asking to make a small text change in the Dataset Registration page.

Update PDF to the one attached.

This is saying to replace this file with the PDF that's linked in the story. This PR only adds the new PDF file to that same public directory, but it doesn't actually replace DUOSLibraryCardAgreement_10.14.2020.pdf with anything. My comments above were meant to illustrate a couple of options in how to do that.

Hi Greg! I have those changes made on the DUOS-862 Branch, but before I make that PR, I believe I need to make this PR (putting the pdf in the public folder) so then I can use the link to this PDF in the PR I make for DUOS-862. I can include a link to this PDF from google drive at the moment, but I want to be consistent with the linked PDFs other places on the website, they all use links from the public folder on github. As far as I understand, I cannot use this link until the PDF is in the folder. So, this is an intermediary request, thats why I included "part of" in the title, but I think this was confusing. If there is a way for these two to happen in the same PR, that would be great to learn, if not, once this PDF is added I will submit the PR for DUOS-862.

Ah ... I see where you're coming from. All of this can be done in one PR, no need for an intermediary one. Will set up a session so I can walk you through the process.

Ah ... I see where you're coming from. All of this can be done in one PR, no need for an intermediary one. Will set up a session so I can walk you through the process.


LED_Matrix: possible race condition.

The turnLed method, uses the R_PORT0->PCNTR1 register, to switch 5 IO Pins that are on PORT0 to input.  It does this by using a read modify save.
There is a timing window after the read, that a higher priority interrupt (lower value) might happen that changes this state in some of the other IO pins on port 0, like lets say pin 15
If that happens, when that ISR returns to this one, and this one stores out the new values, it will wipe out the changes made by the higher priority interrupt handler.  Probably won't happen often, but I have run into issues like this in the past, that can be a pain to find and fix.
#define LED_MATRIX_PORT0_MASK       ((1 << 3) | (1 << 4) | (1 << 11) | (1 << 12) | (1 << 13) | (1 << 15))
#define LED_MATRIX_PORT2_MASK       ((1 << 4) | (1 << 5) | (1 << 6) | (1 << 12) | (1 << 13))

static void turnLed(int idx, bool on) {
  R_PORT0->PCNTR1 &= ~((uint32_t) LED_MATRIX_PORT0_MASK);
  R_PORT2->PCNTR1 &= ~((uint32_t) LED_MATRIX_PORT2_MASK);

removing detritus from my list of open github issues.


Query multiple tables and filtering based on date range

I am wondering how to go about generating a page where multiple tables are queried and filtered based on a given date range from user. Should this be in its own model class kind of like DashboardPageModel.cs and DashboardPage.cs?

So you'll show multiple grids in multiple tabs? I didn't understand your aim.

Serenity doesnt use directly view models. Serenity use rows over api. If you want to edit Dashboarad view with razor you need handle it yourself.
Otherwise read the documentation for relation multiple tables and show&filter they in grid.

Sorry, I mean to use not the dashboard page, but to use a similar style page using elements from AdminLTE, but I want to basically return rows from multiple entities, and use that data to populate the page using Razor. I would also like to use some of the widgets that come with AdminLTE to interact with Serenity.

On page.cs and cshtml you can use razor  and repositories for CRUD. Its mvc style not handled from serenity. Send model and use razor basically.

Thank you for your feedback, Victor. If I may reiterate what you're saying to be sure I understand...I can use the repositories created by Serenity for my tables to perform the CRUD operations I need in my Page classes and Razor to format and display the data in the cshmtl?

if you want to custom views like dashboard, yes.

Thank you very much for your help Victor, I appreciate it.


EF Functions Contains Search generates nvarchar(max)

Hi,
I am working with Fulltext search in MSSQL in combination with EF Core 3.1. It's great that we can use EF.Functions.Contains('[Some Column name]', '[Seachvalue]*'). But now I am facing a problem. once the Stringlength of the searchvalue is larger than 8 characters, it will change the parameterlength to nvarchar(max), which results in The argument type "nvarchar(max)" is invalid for argument 2 of "CONTAINS".
How can I force the parameter value in the linq query to have a certain number?
Via the profiler, I found the generated sql:
exec sp_executesql N'SELECT [i].*
FROM [] AS [i]
WHERE (([i].[id] = @__id_0) AND [i].[DeletedAt] IS NULL)
AND CONTAINS([i].[ColumnName], @__Format_2)',N'@__id_0 uniqueidentifier, @__Format_2 nvarchar(max) ',@__id_0 ='00000000-0000-0000-0000-000000000000',@__Format_2=N'SOME1111111*'
But if the value of SOME1111111 is a bit shorter; 8 characters, then the generated SQL is the following:
exec sp_executesql N'SELECT [i].*
FROM [] AS [i]
WHERE (([i].[id] = @__id_0) AND [i].[DeletedAt] IS NULL)
AND CONTAINS([i].[ColumnName], @__Format_2)',N'@__id_0 uniqueidentifier,@__Format_2 nvarchar(11) ',@__id_0 ='00000000-0000-0000-0000-000000000000',@__Format_2=N'SOME1111*'
which works perfectly.
The code used:
 var query = _dbContext.SomeTable                 .Where(x => x.id== companyId && !x.DeletedAt.HasValue)                 .Where(x => EF.Functions.Contains(x.ColumnName, $"{searchQuery}*")).ToList();
Hope there will be a solution for the problem soon.

@MCSaarloos What does the EF mapping for ColumnName looks like? Specifically, this issue might happen if it is configured to allow a max of 8 characters and then the search string is longer than that.
If it's not that, then please post a small, runnable project or code listing that demonstrates the behavior you are seeing so that we can investigate.

FullTextSampleProject.zip
Hi @ajcvickers I have attached a sample project which I made to reproduce this exact problem.
To run the application,

first create a database, set the connection settings in the appsettings
run Update-Database from the FullTextSampleProject.Services project.
Insert some sample data in the database (FullTextSampleProject.Services\Data\SampleDataScript.sql

Now start the application
First with for example: https://localhost:5001/api/sample/v1/?s=Test
Confirm you see some data,
Next https://localhost:5001/api/sample/v1/?s=PVGHN345678900987654
Here you get the exception:
SqlException: The argument type "nvarchar(max)" is invalid for argument 2 of "CONTAINS".
Hope you can reproduce it with this sample. Have fun ;)

@smitpatel to take a look, since he has SQL Server Developer Edition.

Related #18861
As long as the search string is in size of the column we infer type correctly. Once it is larger size, we create parameter of nvarchar(max)

Yeah I have noticed it, it only occurs when we do a search on multiple columns where the size of the columns differs.
If all the columns have the same size, then the size of the nvarchar parameter will be the size of the columns. Isn't it a solution to take the biggest column size of the columns you search on?
In a contains search, but also in a freetext, I have noticed that the call crashes when the parameter size is nvarchar(max), but when you use for example nvarchar(4000) then the call will work.

Yeah I have noticed it, it only occurs when we do a search on multiple columns where the size of the columns differs.

That is not true. Each parameter is individually processed for what type mapping to assign based on column. The moment your parameter value does not fit in the database type, it will expand to nvarchar(max). If you are using same parameters in conjunction with multiple columns then it would infer based on first occurrence but regardless, if it is oversized value for one, it needs to be expanded anyway. Hence the solution you propose does not work.

@smitpatel I don't agree with you, as you don't know what the customer is searching for you can't say if it doesn't fit in the first column, then we expand it to nvarchar(max).
No, think the value of the size of the parameter should be the size of the string you use as value for the parameter, or should have the maximum size of the columns you are searching in. In case there is no size defined for the columns use a maximum of nvarchar(4000) for the size of the parameter. As nvarchar(max) will throw the exception The argument type "nvarchar(max)" is invalid for argument 2 of "CONTAINS".
If the value is oversized for one, then the value won't be found in that column anyways, so no problem I guess

@MCSaarloos - I am not trying to say anything about customer intent. I am merely stating what current code does.

@MCSaarloos This is quite a tricky area where the most obvious behavior is not necessary the best. Specifically we try to:

Avoid query cache fragmentation in SQL Server (perf)
Avoid silent truncation in SQLClient (data loss)
Avoid using parameter sizes that are larger than they need be (perf)

On top of that, the inference of parameter types in a query is also non-trivial and involves special cases.
We'll certainly look into fixing this issue, but there are a lot of considerations around how best to do that.

Can imagine that it's a tricky area, as a lot of code is probably dependent on it. Will see when this problem is addressed.
For now we have given columns we search on in the database the same size. Bit of a dirty solution, but it works.

Note from triage: look into why we don't go from a specific size to nvarchar(4000) before going to nvarchar(max).


Empire Systems Background Toggle Icon

Right now the Icon/Button for it is a Star, and I can see why it is, but at the same time it very unintuitive.
From the 5 people I told about this feature, not a single one was able to figure this out on their own. Its a small button in the corner of the screen that looks like it shows something like favorites, not change the UI.
Im not UI designer, just a user, but as a user I can say that this is kinda unintuitive and could probably use a touch up.

Looks way better now =)

Agreed, thats nicer.
But also not really obvious what it is. Honestly, the empire backgrounds should probably be a toggle in the new user settings menu instead

Agreed, thats nicer.
But also not really obvious what it is. Honestly, the empire backgrounds should probably be a toggle in the new user settings menu instead

Yep, we have it as quick toggle on a toolbar, can be a separate user option in modal as well.

I would like that, more ways to do it are always better. Everyone is different and likes it differently.
Also, as an idea for the icon, how about a Cloud? That would clearly signify what the button does.

This has been fixed in the newest update, thanks a lot!

Just used Wanderer again and noticed that it is in fact a cloud symbol now, so this can be closed


gpt-3.5-turbo-instruct support

for now, I'm using text-davinci-003 for model encoding, but not sure if that's right with this new model series

I think it's the newer cl100k_base not the older model type

I think it's the newer cl100k_base not the older model type

Which model would that be?
Is this right?
encodingForModel("gpt-3.5-turbo");


[Errno 2] No such file or directory: 'yolo\coco.names'

File "c:/Users/trapt/Downloads/Social-Distancing-Detection-in-Real-Time-main/Social-Distancing-Detection-in-Real-Time-main/Run.py", line 27, in
LABELS = open(labelsPath).read().strip().split("\n")
FileNotFoundError: [Errno 2] No such file or directory: 'yolo\coco.names'

Weird, everything works just fine.. you sure cloned the repo and have all the files existing in one place/directory? Do you actually see 'coco.names' in your yolo folder?

Yes I have all the files at correct place/folder.
Can't figure out the problem.

What terminal are you using? e.g., cmd? or from where/how are you running?


WIP: Initial commit for LearnerSessionService.

Please don't review yet; this still needs tests (including tests for loading from an older schema version).

Closing; obsolete.


Allowing change embbeded entities

He should not allow change embbeded entities, like this:
{"id":"3",
"descricao":"name",
"tppdvi":{"id":"1", "descricao":"update name"}
}

Originally posted by @fabioginzel at https://github.com/zfcampus/zf-apigility-doctrine/issues/166

I don't understand what you're reporting.  Are you talking about embedded data in ODM?  Is this PUT or PATCH?  What does tppdvi represent?

Originally posted by @TomHAnderson at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85635468

Tppdvi is a embedded doctrine entity  and apigility allows to change the descricao field.

Originally posted by @fabioginzel at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85646577

That's interesting.  Are you using ODM or ORM?  Is there more about this you can add?

Originally posted by @TomHAnderson at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85649429

I called a translator.
I'm using apigility with doctrine. When I send a patch to the main entity I'm trying to update, it's also updating an embedded entity.
For example, let's say we have a students table and a courses table.
The student entity has it's course embedded.
When I patch the student entity, if somehow the course entity name is changed, it updates the course name on the courses table.

Originally posted by @fabioginzel at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85650841

Database = MySQL?  MongoDB?

Originally posted by @TomHAnderson at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85651269

@veewee what do you think of this?  Are your hydrators too good?

Originally posted by @TomHAnderson at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85654992

I've tested on MS Sql Server and PostgreSql.

Originally posted by @fabioginzel at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-85651899

any news on this? I like the Idea of Posting directly to the subentities but i think there is a need to call the input validators of the nested entity, otherwise you'll run into errors.

Originally posted by @takethefake at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-91175687

@veewee bumping this.  I'd sure appreciate your insight on this.

Originally posted by @TomHAnderson at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-100323187

Hi @TomHAnderson
Sadly, I haven't found the time to follow this repo up to the latest version.
It's exactly the same as with forms: if you submit the field:
tppdvi[descricao]=test, the field will be updated in the database.
I am perfectly fine with this feature and am using this on some projects.
If you don't want this feature, you can filter / validate the input yourself on pre-update ?

Originally posted by @veewee at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-100326068

But if my user dont have permission to change embbeded entity?

Originally posted by @fabioginzel at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-132332179

@fabioginzel @veewee ping

Originally posted by @jguittard at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-253500376

hi

Originally posted by @fabioginzel at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-253510345

@fabioginzel do you still need any help with it or you have found the solution?

Originally posted by @michalbundyra at https://github.com/zfcampus/zf-apigility-doctrine/issues/166#issuecomment-358347949

This is an issue I've seen raised before and it's a featured bug.  The feature is the hydrators work exactly like they should when hydrating.  The bug is they hydrate sub-entities, if included in the request body, which is also the feature.
This issue scares me and I've wondered if this is an Achilles heel.  I have not written an article on the problem.  The closest article I've written (which I include here because each article represents deep thought on the subject) is https://blog.tomhanderson.com/2015/02/hypertext-application-language.html which asks the question, "Is the product of the full extension of an API a new database language?"
Given a brand-new project with this repository you really have full access to do what you will with the database assuming api endpoints created from the ui tool (with no fields) and unedited.  And that I think answers my question with a "Yes".
But such open database access is a problem in a real-world application where anything but a GET is provided.  Should a developer be required to clean all association from a request?  I think "No".  Testing on https://api.etreedb.org an attempt to patch a user on a PATCH to an artist results in an API Problem: 400 "detail": "Unrecognized field "user"" so properly listing the fields [in the ui] prevents PATCH access to related entities.
I think properly listing fields is important to a proper API Tools implementation with Doctrine.


How to make better use of multiple cores for video merging?

I noticed it uses only 1-2% of my CPU (24 cores / 48 threads), and for a 1-minute video, it takes 30 minutes, with 27-28 minutes spent just on the last 2 stages where the videos are merged using ffmpeg.
How can I make it use more cores? Which part of the code do I need to modify?
Additionally, are there any settings that can be modified to speed it up further?

On line 16 of the app/services/task.py code file, modify the n_threads parameter of params, for example, set params.n_threads=10 to use more threads for parallel processing.
This will increase CPU utilization.


Vim in Spyder 4

I wanted to know if this plugin is compatible with spyder 4.
I installed it in spyder 3 and it works correctly, but when I install it in spyder 4 the vim bar does not appear to me.

Unfortunately this plugin has not been to Spyder 4, sorry.

Hi @camilomarino. If you would to help update the plugin to work with Spyder v4, let us know. We are always looking for helping hands, as our time is limited.
Cheers!


Add a bit of logging to analogIO + fix PicoW

This is a draft to generate some build assets. It still needs reviewing, and the logging removed.

@brentru this is ready for review.
We've just had a second forum post on this issue so worth slipping into next release (before or with the C6).


[Bug] Please bring back vector_service.proto file

Is this a new bug?

[X] I believe this is a new bug
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
Commit 26a134847ae825b41ae178bf81d8576db5be526c removes the vector_service.proto file and replaces them with generated java classes. The rationale is as follows:
## Problem

    The SDK uses vector_service.proto file which is out of sync with the
    actual version.

    ## Solution

    Replace vector_service.proto with java generated classes

The vector_service.proto files are incredibly important documentation. They are needed by users to understand how to use the clients. The generated Java classes are not designed for human readers and are impossible to read and understand, making the client nearly unusable.
Just a suggestion - if the vector_service.proto file is out of date, why not bring it up to date instead of removing it?
Expected Behavior
vector_service.proto should be available as important documentation.
Steps To Reproduce
N/A
Relevant log output
No response
Environment
N/A

Additional Context
No response

For example: I came to this repo today to understand if I can perform a query search and a metadata filter in the same query, and that's really hard to see without the proto file.

Yes, we are planning to publish the updated vector_service.proto file. Will update you once we have finalized it.

Hi, any movement here? I am re-writing portion of my Pinecone code and it's hard to do the object mapping without the proto file

Hello, it's been nearly 3 months - any updates here?

@nsadeh As of now, the plan is to not publish the proto file as a part of Java SDK but it is on our roadmap to share the proto file but we don't have specific timelines yet. I'll like to better understand your needs on why you need the proto file and from what I understand, you need it for:

Better object mapping
To understand if you can perform a query search and a metadata filter in the same query

Would you please elaborate on 1? As far as 2 is concerned, we do have the overloaded methods available in the Index or AsyncIndex classes for each data plan operation, so I hope that's helpful in the meantime.

Since I haven't heard back from you @nsadeh for sometime now, so I'll close this issue but please feel free to re-open if you need additional assistance.


fix(setOptions): setOptions can be combined with dragula-model

fixed #30

Any ETA on when this will make it to release?

@gligoran done! :+1:

Awesome, thanks :+1:


Update instabug_flutter version

@nogicoder , I don't think we need this PR. the version constraint on instabug will already support the version you set.


cmanimpango fatal error: Python.h

Preliminaries

[X] I have followed the latest version of the
installation instructions.
[X] I have checked the installation FAQ and my problem is either not mentioned there,
or the solution given there does not help.

Description of error

I've tried to install manimgl on ubuntu 22.04.4 LTS
sudo apt update
sudo apt upgrade
sudo apt install build-essential python3-dev libcairo2-dev libpango1.0-dev ffmpeg
sudo apt install texlive texlive-latex-extra
pip3 install manim

but I've got this error (no file or directory):
/tmp/pip-install-jjpnups8/manimpango_7d3957f25eea4f24960187125aae3f3f/manimpango/cmanimpango.c:83:10: fatal error: Python.h: Aucun fichier ou dossier de ce nom
         83 | #include "Python.h"

Installation logs

$ pip3 install manim
Defaulting to user installation because normal site-packages is not writeable
Collecting manim
  Using cached manim-0.18.1-py3-none-any.whl.metadata (10 kB)
Collecting Pillow>=9.1 (from manim)
  Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting Pygments>=2.0.0 (from manim)
  Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: click>=8.0 in ./.local/lib/python3.11/site-packages (from manim) (8.1.7)
Collecting cloup>=2.0.0 (from manim)
  Using cached cloup-3.0.5-py2.py3-none-any.whl.metadata (6.7 kB)
Collecting decorator>=4.3.2 (from manim)
  Using cached decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB)
Collecting isosurfaces>=0.1.0 (from manim)
  Using cached isosurfaces-0.1.2-py3-none-any.whl.metadata (3.3 kB)
Collecting manimpango<1.0.0,>=0.5.0 (from manim)
  Using cached ManimPango-0.5.0.tar.gz (4.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting mapbox-earcut>=1.0.0 (from manim)
  Using cached mapbox_earcut-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)
Collecting moderngl<6.0.0,>=5.0.0 (from manim)
  Using cached moderngl-5.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.2 kB)
Collecting moderngl-window>=2.0.0 (from manim)
  Using cached moderngl_window-2.4.6-py3-none-any.whl.metadata (8.8 kB)
Collecting networkx>=2.6 (from manim)
  Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB)
Collecting numpy>=1.26 (from manim)
  Using cached numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting pycairo<2.0.0,>=1.13 (from manim)
  Using cached pycairo-1.26.0.tar.gz (346 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pydub>=0.20.0 (from manim)
  Using cached pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting rich>=12.0.0 (from manim)
  Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)
Collecting scipy>=1.6.0 (from manim)
  Using cached scipy-1.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Collecting screeninfo>=0.7 (from manim)
  Using cached screeninfo-0.8.1-py3-none-any.whl.metadata (2.9 kB)
Collecting skia-pathops>=0.7.0 (from manim)
  Using cached skia_pathops-0.8.0.post1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.3 kB)
Collecting srt>=3.0.0 (from manim)
  Using cached srt-3.5.3-py3-none-any.whl
Collecting svgelements>=1.8.0 (from manim)
  Using cached svgelements-1.9.6-py2.py3-none-any.whl.metadata (44 kB)
Collecting tqdm>=4.0.0 (from manim)
  Using cached tqdm-4.66.4-py3-none-any.whl.metadata (57 kB)
Collecting typing-extensions>=4.0.0 (from manim)
  Using cached typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB)
Collecting watchdog>=2.0.0 (from manim)
  Using cached watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl.metadata (37 kB)
Collecting glcontext<3,>=2.5.0 (from moderngl<6.0.0,>=5.0.0->manim)
  Using cached glcontext-2.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.1 kB)
Collecting pyglet>=2.0.0 (from moderngl-window>=2.0.0->manim)
  Using cached pyglet-2.0.15-py3-none-any.whl.metadata (7.8 kB)
Collecting pyrr<1,>=0.10.3 (from moderngl-window>=2.0.0->manim)
  Using cached pyrr-0.10.3-py3-none-any.whl.metadata (832 bytes)
Collecting markdown-it-py>=2.2.0 (from rich>=12.0.0->manim)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=12.0.0->manim)
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Collecting multipledispatch (from pyrr<1,>=0.10.3->moderngl-window>=2.0.0->manim)
  Using cached multipledispatch-1.0.0-py3-none-any.whl.metadata (3.8 kB)
Using cached manim-0.18.1-py3-none-any.whl (585 kB)
Using cached cloup-3.0.5-py2.py3-none-any.whl (54 kB)
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Using cached isosurfaces-0.1.2-py3-none-any.whl (11 kB)
Using cached mapbox_earcut-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (104 kB)
Using cached moderngl-5.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (269 kB)
Using cached moderngl_window-2.4.6-py3-none-any.whl (370 kB)
Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Using cached numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.3 MB)
Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB)
Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached rich-13.7.1-py3-none-any.whl (240 kB)
Using cached scipy-1.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.6 MB)
Using cached screeninfo-0.8.1-py3-none-any.whl (12 kB)
Using cached skia_pathops-0.8.0.post1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB)
Using cached svgelements-1.9.6-py2.py3-none-any.whl (137 kB)
Using cached tqdm-4.66.4-py3-none-any.whl (78 kB)
Using cached typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Using cached watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
Using cached glcontext-2.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (51 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pyglet-2.0.15-py3-none-any.whl (884 kB)
Using cached pyrr-0.10.3-py3-none-any.whl (46 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached multipledispatch-1.0.0-py3-none-any.whl (12 kB)
Building wheels for collected packages: manimpango, pycairo
  Building wheel for manimpango (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for manimpango (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/__init__.py -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/utils.py -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/_version.py -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/cmanimpango.pxd -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/pango.pxd -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/register_font.pxd -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/cairo.pxd -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/glib.pxd -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/enums.pyx -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/register_font.pyx -> build/lib.linux-x86_64-cpython-311/manimpango
      copying manimpango/cmanimpango.pyx -> build/lib.linux-x86_64-cpython-311/manimpango
      running build_ext
      building 'manimpango.cmanimpango' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/tmp
      creating build/temp.linux-x86_64-cpython-311/tmp/pip-install-jjpnups8
      creating build/temp.linux-x86_64-cpython-311/tmp/pip-install-jjpnups8/manimpango_7d3957f25eea4f24960187125aae3f3f
      creating build/temp.linux-x86_64-cpython-311/tmp/pip-install-jjpnups8/manimpango_7d3957f25eea4f24960187125aae3f3f/manimpango
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/snap/blender/4786/4.1/python/include/python3.11 -c /tmp/pip-install-jjpnups8/manimpango_7d3957f25eea4f24960187125aae3f3f/manimpango/cmanimpango.c -o build/temp.linux-x86_64-cpython-311/tmp/pip-install-jjpnups8/manimpango_7d3957f25eea4f24960187125aae3f3f/manimpango/cmanimpango.o -pthread -pthread
      /tmp/pip-install-jjpnups8/manimpango_7d3957f25eea4f24960187125aae3f3f/manimpango/cmanimpango.c:83:10: fatal error: Python.h: Aucun fichier ou dossier de ce nom
         83 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for manimpango
  Building wheel for pycairo (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pycairo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/cairo
      copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-311/cairo
      copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-311/cairo
      copying cairo/py.typed -> build/lib.linux-x86_64-cpython-311/cairo
      running build_ext
      building 'cairo._cairo' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/cairo
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -fPIC -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=26 -DPYCAIRO_VERSION_MICRO=0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/snap/blender/4786/4.1/python/include/python3.11 -c cairo/bufferproxy.c -o build/temp.linux-x86_64-cpython-311/cairo/bufferproxy.o -Wall -Warray-bounds -Wcast-align -Wconversion -Wextra -Wformat=2 -Wformat-nonliteral -Wformat-security -Wimplicit-function-declaration -Winit-self -Winline -Wmissing-format-attribute -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wundef -Wunused-but-set-variable -Wswitch-default -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-command-line-argument -fno-strict-aliasing -fvisibility=hidden -std=c99
      cairo/bufferproxy.c:32:10: fatal error: Python.h: Aucun fichier ou dossier de ce nom
         32 | #include <Python.h>

Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications
System Details

OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Ubuntu 22.04.4 LTS

Python version (python/py/python3 --version): Python 3.10.12

Installed modules (provide output from pip list):

Package            Version
------------------ ---------
autopep8           1.6.0
blinker            1.7.0
certifi            2021.10.8
charset-normalizer 2.0.10
click              8.1.7
Cython             0.29.30
debugpy            1.8.1
Flask              3.0.3
idna               3.3
itsdangerous       2.2.0
Jinja2             3.1.3
MarkupSafe         2.1.5
numpy              1.24.3
pip                24.0
pycodestyle        2.8.0
requests           2.27.1
setuptools         69.5.1
toml               0.10.2
urllib3            1.26.8
Werkzeug           3.0.2
wheel              0.43.0
zstandard          0.16.0

LaTeX details

LaTeX distribution (e.g. TeX Live 2020): TeX Live 2022
Installed LaTeX packages:

Additional comments

Are you sure apt install python3-dev ran successfully? I've just tried in a new 22.04-container:
% docker run -it --rm ubuntu:22.04 bash
root@bdaf95e9fd7c:/# ...
root@bdaf95e9fd7c:/# history
    1  apt update && apt upgrade
    2  apt install build-essential python3-dev libcairo2-dev libpango1.0-dev ffmpeg
    3  apt install python3-pip
    4  pip install manim
    5  history

and did not run into issues with building the manimpango wheel. Cannot reproduce your issue.
Building wheels for collected packages: manimpango, pycairo
  Building wheel for manimpango (pyproject.toml) ... error
  error: subprocess-exited-with-error
[...]
     /tmp/pip-install-0hjarea5/manimpango_4520ad6bcd80445e918d233912aaeb9d/manimpango/cmanimpango.c:83:10: fatal error: Python.h: Aucun fichier ou dossier de ce nom
         83 | #include "Python.h"

pip3 -V
pip 24.0 from /[...]/.local/lib/python3.11/site-packages/pip (python 3.11)

My bad
the problem came from a bad choice of pip version while installing manim.


Wish:  systemd unit file

Wish: Having a systemd unit file to start static-web-server.
Solution:
The git repository has unit file ready to be put in /etc/systemd/system/.
That file provides a working example of how to start static-web-server.
Problem it solves:
Auto start of sws upon reboot and having a valid working directory so that root = "./public" is usable.

Oops, somehow did I miss https://github.com/joseluisq/static-web-server/tree/master/systemd


[ClusterLoader2][NodeKiller] NodeKiller can leave broken nodes

When a testing run uses NodeKiller, some nodes can be left in a broken state - with disabled services. This can influence results while running multiple testing jobs on the same cluster.
It happens when testing finishes before NodeKiller reboot is triggered.
Sample log:
...
I0323 08:03:00.196712   16174 resource_gather_worker.go:89] Closing worker for e2e-test-jprzychodzen-minion-group-2zfc
I0323 08:03:00.197101   16174 container_resource_gatherer.go:182] Waitgroup finished.
I0323 08:03:00.237245   16174 system_pod_metrics.go:124] collecting system pod metrics...
I0323 08:03:00.394737   16174 system_pod_metrics.go:228] Loaded restart count threshold overrides: map[fluentd-gcp:1 kube-proxy:1 metadata-p
roxy:1 prometheus-to-sd-exporter:1]
I0323 08:03:00.396502   16174 simple_test_executor.go:150] Step "Collecting measurements" ended
I0323 08:03:00.411423   16174 simple_test_executor.go:114] Summary of Chaos Monkey execution
NodeKiller: Recorded following events
NodeKiller: At Mon Mar 23 07:56:55 UTC 2020 stopService happend for node e2e-test-jprzychodzen-minion-group-49jb
I0323 08:03:00.411453   16174 probes.go:133] Stopping DnsLookupLatency probe...
I0323 08:03:20.715459   16174 probes.go:133] Stopping InClusterNetworkLatency probe...
I0323 08:03:46.222799   16174 simple_test_executor.go:370] Resources cleanup time: 45.811343198s
I0323 08:03:46.222842   16174 clusterloader.go:189] --------------------------------------------------------------------------------
I0323 08:03:46.222848   16174 clusterloader.go:190] Test Finished
I0323 08:03:46.222853   16174 clusterloader.go:191]   Test: testing/load/config.yaml
I0323 08:03:46.222859   16174 clusterloader.go:192]   Status: Success
I0323 08:03:46.222864   16174 clusterloader.go:196] --------------------------------------------------------------------------------
I0323 08:03:46.223239   16174 prometheus.go:181] Tearing down prometheus stack

In this sample NodeKiller did not schedule reboot an ClusterLoader2 has ended working, leaving e2e-test-jprzychodzen-minion-group-49jb without reboot.
NodeKiller should clean up disabled nodes by triggering reboot at the end of the test, regardless how long pending nodes should be disabled.
This should require changes in clusterloader2/pkg/chaos.

/good-first-issue

@jprzychodzen I would like to try have a go at it. It's my first contribution so I'll explain what I have in mind:
I've analyzed the issue a bit and I propose we listen for interruption on the stopCh in nodes.go#kill so we can break the downtime and have the Monkey schedule the restart.
This would mean we also need to change the test executor to close the stopCh before printing the test summary. How does that sound?

Hi @mcastellin, thanks for expressing an interest to contribute to this issue.
Changing nodes.go#kill sounds great and you are right, there needs to be some modification to simple_test_executor.go.
Closing stopCh will generate a rebooting of nodes in random order (between/after summary logs) and ideally we would like to prevent that. Could you also add some guard to make sure that no go routine is running inside nodes.go#kill and make sure that summary is shown only then? Some kind of synchronization between #kill and #Summary.

@jprzychodzen thanks for you inputs, I'll do my best to implement what you're asking.
Can I reach out to you on the Slack community to ask a few questions on how to test the changes before committing?
I see the bot is scraping PRs to run against the GCE cluster, I wonder if you guys perform any test on your local machine first.

Few packages have unit tests implemented, however it seems that Node Killer is missing them. If you could add test provider to fake Node Killer actual node disablement and reboot so it could run locally, it would be a great improvement and would unblock local testing of a Node Killer.
When updating Node Killer I've mostly run a small cluster and test Node Killer changes with a synthetic ClusterLoader configuration - enabled Chaos Monkey as in load config with a Sleep, like in access-tokens config.
I've joined sig-scalability Slack, you should be able to ask some quick questions there, although I guess it would be better to keep as much discussion here. This way we will have some written archive for the future reference.

/assign

/closed
Resolved in #1135

/close

Created a refactoring issue #1137 as a follow up.


Added tagging on master-build

Added tagging on every push to master branch using semver concourse resource.

Codecov Report

Merging #104 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #104   +/-   ##
=======================================
  Coverage   35.07%   35.07%
=======================================
  Files          18       18
  Lines         499      499
=======================================
  Hits          175      175
  Misses        324      324

Continue to review full report at Codecov.

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


getting this error

Traceback (most recent call last):
File "xml.py", line 2, in
import xml.etree.ElementTree as ET
File "C:\Users\ADMIN\Desktop\python3.1\xml.py", line 2, in
import xml.etree.ElementTree as ET
ModuleNotFoundError: No module named 'xml.etree'; 'xml' is not a package

// Extracting Data from XML
//In this assignment you will write a Python program somewhat similar to http://www.py4e.com/code3/geoxml.py. The program will prompt for a URL, read the XML data from that URL using urllib and then parse and extract the comment counts from the XML data, compute the sum of the numbers in the file.
//We provide two files for this assignment. One is a sample file where we give you the sum for your testing and the other is the actual data you need to process for the assignment.
Sample data: http://py4e-data.dr-chuck.net/comments_42.xml (Sum=2553)
Actual data: http://py4e-data.dr-chuck.net/comments_751691.xml (Sum ends with 66)

//Code:
import urllib.request, urllib.parse, urllib.error
import xml.etree.ElementTree as ET
url=input('Enter-')
html=urllib.request.urlopen(url).read()
tree=ET.fromstring(html)
first=tree.findall('commentinfo/comments/comment')
print('comment count:',len(first))
sum=0
for item in first:
print('Count:',item.find('count').text)
sum=sum+int(count)
print('sum is:',sum)
.
.
.
.
What is wrong in this code? Help please!

import urllib.request, urllib.parse, urllib.error
import xml.etree.ElementTree as ET
url = input("Enter location: ")
if len(url) < 1:
url = "http://py4e-data.dr-chuck.net/comments_1517713.xml"
print ("Retrieving " + url)
xml = urllib.request.urlopen(url).read()
print ("Retrieved: " + str(len(xml)) + " characters")
tree = ET.fromstring(xml)
counts =  tree.findall('.//count')
print ("Count: " + str(len(counts)))
accumulator = 0
for count in counts:
accumulator += int(count.text)
print ("Sum:" + str(accumulator))
I got this:
Enter location: http://py4e-data.dr-chuck.net/comments_1517713.xml
Retrieving http://py4e-data.dr-chuck.net/comments_1517713.xml
Retrieved: 4224 characters
Count: 50
Sum:2493


Update README.md

Co-authored-by: Davit Petrosyan<EMAIL_ADDRESS>

❤


3.3.0-beta: jQuery 2.2.4 throws error

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request
[ ] other (Please specify)

I'm trying to use bootstrap 3.3.6 which requires jQuery version higher than 1.9 and lower than 3.0.0
However when I include following code on index.blade.php
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>

I get this error.
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:nomod] Module 'app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
it seems to work with jQuery version 3
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>

But now bootstrap is not working... :(

What version of the starter are you using?
How are you serving the app?
Why don't you use bower install jquery --save and modify your bower.json to have something like: "jquery": "~2.2.4" so it won install anything > than 2.2.4?
not that jquery should load before angular in this case so be sure jquery it's before angular in your bower.json

@flick36 I've just tried bower install jquery --save and made sure jquery is placed before angular, but still not able to make it work. I'm running 3.3.0-beta on homestead. I was able to use jquery version 2.2.4 on last stable version but not successful on new-beta version. It's not urgent matter, but I was wondering why injector error would appear when jquery 2.2.4 is used while jquery 3.0.0 working fine with starter 3.3.0-beta.

@milocosmopolitan i've just create a new instance of the most recent version of the starter,with:
composer create-project jadjoubran/laravel5-angular-material-starter=3.3.0-beta --prefer-dist
npm install
bower install
bower install jquery#2.2.4 --save
gulp
and everything works just fine..
I've also delete that jquery instance from bower and delete the jquery folder it creates (the dependency) on bower_components and i did a
bower install bootstrap#3.3.6 --save
gulp
and everything work just fine as well...
note that if you do this approach ^ jquery it's automatically inserted in your app because bower it's that smart to download since it's a bootstrap dependency... as you mentioned

@flick36 There must be something wrong with my code... Btw thanks for the link to ADMIN LTE! I think this will come very handy :)

@flick36 Same issue
Uncaught (in promise) DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).

have you get this solved,Can you share how to fix it?

@followtheart that's just a Chrome alert for security reasons if you follow the link you'll notice it says

Chrome is going to make Service Workers available only to secure origins

Adn Service Wrokers are the new feature we are talking about in this new version so, the "solution" is to either run your server locally with localhost since localhost it's an exception of that rule, or with an SSL certificate. you can make your own depending on what are you using to serve your app, in my case i use Laragon or XAMPP and there are a lot of tutorials of how you can enable ssl in those enviorements, and actually anyone you use.


Use a swipe menu to display the room summary options

Related to #360

Thx @Tyuoli
We just need to add a loading wheel when an action is in progress


qos service should also accumulate executed but errored units

Problem
qos_service accumulates executed units to report metrics. But it didn't include executed but errored units.
Summary of Changes

include executed and errored units in qos_service accumulation.

Fixes #

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.9%. Comparing base (51dc7e6) to head (23d30d2).
Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master     #328     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%
=========================================
  Files         837      837
  Lines      226743   226745      +2
=========================================
- Hits       185776   185743     -33
- Misses      40967    41002     +35


Home Assistant 2022.9 bluetooth support

An item to track changes required for native Bluetooth support in Home Assistant 2022.9 +
Currently the integration is broken.

Excited to get this plugin working again in 2022.9 for my Playbulb Comet strip! GLHF


add API submodule

API submodule should have:

upload datasets to dataverse
download datasets from dataverse and dataset generation
command line communication with the user

Related issues: #4 #10 #11 #12

Fixed by #42


[Snyk] Upgrade pino from 8.16.2 to 8.17.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade pino from 8.16.2 to 8.17.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 21 days ago, on 2023-12-13.

Release notes

Package name: pino

8.17.0 - 2023-12-13What's Changed

build(deps): bump actions/github-script from 6 to 7 by @ dependabot in #1857
Make license detectable by GitHub by @ 10xLaCroixDrinker in #1859
docs: Clarify how to log both to a custom transport and to stdout by @ kibertoad in #1860
Fix/types by @ UndefinedBehaviour in #1858
Bumped tsd to v0.29.0 by @ mcollina in #1863
fix: typescript types by @ Zamiell in #1783
build(deps): bump pnpm/action-setup from 2.2.4 to 2.4.0 by @ dependabot in #1766

New Contributors

@ 10xLaCroixDrinker made their first contribution in #1859
@ Zamiell made their first contribution in #1783

Full Changelog: v8.16.2...v8.17.0

8.16.2 - 2023-11-15What's Changed

fix child-child benchmark by @ bngarren in #1849
fix: make transports.options and transports.level optional by @ krosenk729 in #1831
fix: export redactOptions type by @ wolfy1339 in #1847
build(deps): bump actions/setup-node from 3 to 4 by @ dependabot in #1844

New Contributors

@ bngarren made their first contribution in #1849
@ krosenk729 made their first contribution in #1831
@ wolfy1339 made their first contribution in #1847
@ UndefinedBehaviour made their first contribution in #1843

Full Changelog: v8.16.1...v8.16.2

    from pino GitHub release notes

Commit messages

Package name: pino

dd9bc64 Bumped v8.17.0
0379f3e build(deps): bump pnpm/action-setup from 2.2.4 to 2.4.0 (#1766)
7f739d3 fix: typescript types (#1783)
006df81 Bumped tsd to v0.29.0 (#1863)
eb135bd Fix/types (#1858)
b5effa5 docs: Clarify how to log both to a custom transport and to stdout (#1860)
e71c7fa Make license detectable by GitHub (#1859)
b41546b build(deps): bump actions/github-script from 6 to 7 (#1857)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

skipping this update


bug: fix exec_copy early return when offset > 2**128

Bug Report
Kakarot version
In exec_copy
this early return
// Offset.high != 0 means that the sliced data is surely 0x00...00
// And storing 0 in Memory is just doing nothing.
if (offset.high != 0) {
    return evm;
}

is wrong as it may be still necessary to write 0 to the memory if memory[dest_offset:dest_offset + size] is not [0, ...0]
This should currently fail
Exactly, that is the issue. Consider this pseudocode:
- MSTORE something at offset 0x100
- CALLDATACOPY from offset 0xffff...fff to dest_offset 0x100

exec_extcodecopy is also affected should be fixed


Don't dump all flavors test class files into same directory

Dumping all compiled test class files and resources into the same directory named "test-classes" was making the plugin to execute the android flavor test for all android flavors.
Example of the issue:
android {
    productFlavors { prod{ }; beta{ } }
    androidTest {
        java.srcDirs = ['commonTestDir']
    }
    androidTestProd {
        java.srcDirs = ['someCustomTestFolder']
    }
}

For the above config the test configured for the flavor prod is getting executed for beta. These two flavors should share test classes that are configured under androidTest not the classes that are configured for flavor specific.

This shouldn't be needed with #129 since we rely on the unit testing support added in version 1.1.0 of the Android Gradle plugin.


Incorrect dependency feature set used for same-target bindep dependency compilation

Full example available at https://github.com/rvolosatovs/musl-bindep-feature-bug
It appears that in presence of the same dependency specified multiple times with different feature sets within a workspace it is only compiled once when bindeps are used.
I tried this top-level Cargo.toml:
[package]
name = "musl-bindep-feature-bug"
version = "0.1.0"
edition = "2021"

[dependencies]
rsa = { workspace = true }

# This causes build failure with `cargo build --target x86_64-unknown-linux-musl`:
dep = { version = "0.1.0", path = "crates/dep", artifact = "bin", target = "x86_64-unknown-linux-musl" }
# This would cause a build failure with `cargo build --target wasm32-wasi`
#dep = { version = "0.1.0", path = "crates/dep", artifact = "bin", target = "wasm32-wasi" }
# This would fix the error:
#dep = { version = "0.1.0", path = "crates/dep" }

[workspace.dependencies]
rsa = { version = "0.7.2", default-features = false }
# This would fix the error:
#rsa = { version = "0.7.2" }

With following subcrate Cargo.toml:
[package]
name = "dep"
version = "0.1.0"
edition = "2021"

[dependencies]
rsa = { version = "0.7.2" }
# This would fix the error:
#rsa = { workspace = true }
#rsa = { version = "0.7.2", default-features = false }

I expected to see this happen: successful compilation with cargo build --target x86_64-unknown-linux-musl
Instead, this happened:
   Compiling rsa v0.7.2
error[E0599]: the method `gen_prime` exists for mutable reference `&mut R`, but its trait bounds were not satisfied
   --> /home/rvolosatovs/.cargo/registry/src/github.com-1ecc6299db9ec823/rsa-0.7.2/src/algorithms.rs:100:26
    |
100 |             *prime = rng.gen_prime(todo / (nprimes - i));
    |                          ^^^^^^^^^ method cannot be called on `&mut R` due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
            `R: rand::rng::Rng`
            which is required by `R: RandPrime`
            `&mut R: rand::rng::Rng`
            which is required by `&mut R: RandPrime`
help: consider restricting the type parameter to satisfy the trait bound
    |
57  | ) -> Result<RsaPrivateKey> where R: rand::rng::Rng {
    |                            +++++++++++++++++++++++

error[E0599]: the method `gen_biguint_below` exists for mutable reference `&mut R`, but its trait bounds were not satisfied
   --> /home/rvolosatovs/.cargo/registry/src/github.com-1ecc6299db9ec823/rsa-0.7.2/src/internals.rs:144:17
    |
144 |         r = rng.gen_biguint_below(key.n());
    |                 ^^^^^^^^^^^^^^^^^ method cannot be called on `&mut R` due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
            `R: rand::rng::Rng`
            which is required by `R: RandBigInt`
            `&mut R: rand::rng::Rng`
            which is required by `&mut R: RandBigInt`
help: consider restricting the type parameter to satisfy the trait bound
    |
134 | ) -> (BigUint, BigUint) where R: rand::rng::Rng {
    |                         +++++++++++++++++++++++

For more information about this error, try `rustc --explain E0599`.
error: could not compile `rsa` due to 2 previous errors

Note, that the issue does not happen if compilation is done for the native triple.
This issue also does not occur if the subcrate is turned into a regular dependency, as opposed to a bindep.
Note, that build for wasm32-wasi would fail as well, but only if bindep target is changed to wasm32-wasi
Meta

rustc --version --verbose:
rustc 1.67.0-nightly (c97b539e4 2022-11-30)
binary: rustc
commit-hash: c97b539e408ea353f4fde2f9251d598291fec421
commit-date: 2022-11-30
host: x86_64-unknown-linux-gnu
release: 1.67.0-nightly
LLVM version: 15.0.4

With RUST_BACKTRACE=1 output is identical to the log above

Thank you for the report and the reproducer! I believe it is more or less the same as #10837. The possible root cause was described in https://github.com/rust-lang/cargo/issues/10837#issuecomment-1339365374.
Closing as it is a duplicate. If this is wrong for you, we can consider re-open it.


MAVSDK Download Log is always error with missing chunk ??

if have use MAVSDK 2.12.2 Download Log feature bit while its downloading its always show
[03:11:56|Error] Timeout! (log_files_impl.cpp:380)
[03:11:56|Error] Requesting missing chunk:      513/757 (log_files_impl.cpp:381)
[03:12:03|Error] Timeout! (log_files_impl.cpp:380)
[03:12:03|Error] Requesting missing chunk:      599/757 (log_files_impl.cpp:381)
[03:12:04|Error] Timeout! (log_files_impl.cpp:380)
[03:12:04|Error] Requesting missing chunk:      600/757 (log_files_impl.cpp:381)
[03:12:11|Error] Timeout! (log_files_impl.cpp:380)
[03:12:11|Error] Requesting missing chunk:      674/757 (log_files_impl.cpp:381)
[03:12:17|Error] Timeout! (log_files_impl.cpp:380)
[03:12:17|Error] Requesting missing chunk:      729/757 (log_files_impl.cpp:381)

What happen with this ??

Can you add steps how to reproduce this? What link is this over?

What information does you want to know more about this issue ??

What code do you run? E.g. an example? How is the Pixhawk connected? USB? Is it on Linux, macOS, Windows? Just more information. Which PX4 version?

How is the Pixhawk connected > "UART/TTL" on "Linux", i have tried PX4 1.12.3, 1.14.3 its always get report  missing chunk , Its can downloaded log but I want to know what happen of this error .

@aminballoon chunks can get missed if your link isn't 100% lossless. Perhaps this would be a warning rather than an error


Fix already closing handler by remove unnecessary timer stop in do_request function

I have already close handler error when using lsp-lens.nvim, I found code stop timer first and then close. I assumed that the stop function closes the timer and when we stop the timer, it gets stopped again.
So I tried to remove the stop code and it worked.
And I also found the latest document about it: https://neovim.io/doc/user/lua.html#lua-loop this example shows that we don't need timer:stop() anymore
-- Create a timer handle (implementation detail: uv_timer_t).
local timer = vim.loop.new_timer()
local i = 0
-- Waits 1000ms, then repeats every 750ms until timer:close().
timer:start(1000, 750, function()
  print('timer invoked! i='..tostring(i))
  if i > 4 then
    timer:close()  -- Always close handles to avoid leaks.
  end
  i = i + 1
end)
print('sleeping');

Thanks!!


TST: test_transformer_group__get_transform_crs failing count

https://github.com/pyproj4/pyproj/runs/6640103663
Only 2 transformers available. Previously 6.
From git bisect with PROJ:
6a731e38fa311e7345baeb40d714d334e394db1e is the first bad commit
commit 6a731e38fa311e7345baeb40d714d334e394db1e
Author: Even Rouault<EMAIL_ADDRESS>Date:   Thu Mar 24 22:10:32 2022 +0100

    WKT2 parser: add special case for slightly non-conformant WKT output of epsg.org regarding PARAMETER["EPSG code for Interpolation CRS",crs_code,ID[EPSG,1048]]

 src/lib_proj.cmake          |    2 +-
 src/proj_constants.h        |    4 +
 src/wkt2_generated_parser.c | 2319 ++++++++++++++++++++++---------------------
 src/wkt2_generated_parser.h |    9 +-
 src/wkt2_grammar.y          |   23 +-
 src/wkt2_parser.cpp         |   10 +
 6 files changed, 1206 insertions(+), 1161 deletions(-)

https://github.com/OSGeo/PROJ/commit/6a731e38fa311e7345baeb40d714d334e394db1e
After change:
>>> from pyproj.transformer import TransformerGroup
>>> tg = TransformerGroup("epsg:4258", "epsg:7415")
>>> tg.transformers
[<Concatenated Operation Transformer: pipeline>
Description: Inverse of Amersfoort to ETRS89 (9) + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7), <Concatenated Operation Transformer: pipeline>
Description: Inverse of Amersfoort to ETRS89 (8) + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7)]

PROJ 9.0.0:
>>> from pyproj.transformer import TransformerGroup
>>> tg = TransformerGroup("epsg:4258", "epsg:7415")
>>> tg.transformers
[<Concatenated Operation Transformer: pipeline>
Description: ETRS89 to NAP height (2) + Inverse of Amersfoort to ETRS89 (9) + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7), <Concatenated Operation Transformer: pipeline>
Description: ETRS89 to NAP height (2) + Inverse of Amersfoort to ETRS89 (8) + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7), <Concatenated Operation Transformer: pipeline>
Description: ETRS89 to NAP height (2) + Inverse of Ballpark geographic offset from Amersfoort to ETRS89 + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7), <Concatenated Operation Transformer: pipeline>
Description: Inverse of Transformation from NAP height to ETRS89 (ballpark vertical transformation, without ellipsoid height to vertical height correction) + Inverse of Amersfoort to ETRS89 (9) + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7), <Concatenated Operation Transformer: pipeline>
Description: Inverse of Transformation from NAP height to ETRS89 (ballpark vertical transformation, without ellipsoid height to vertical height correction) + Inverse of Amersfoort to ETRS89 (8) + RD New
Area of Use:
- name: Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.
- bounds: (3.2, 50.75, 7.22, 53.7), <Concatenated Operation Transformer: pipeline>
Description: Inverse of Transformation from NAP height to ETRS89 (ballpark vertical transformation, without ellipsoid height to vertical height correction) + Inverse of Ballpark geographic offset from Amersfoort to ETRS89 + RD New
Area of Use:
- name: World
- bounds: (-180.0, -90.0, 180.0, 90.0)]

Seems to be consistent with the behavior in PROJ:
./projinfo
Rel. 9.1.0, September 1st, 2022
...
PROJ_NETWORK=ON ./projinfo -s "epsg:4258" -t "epsg:7415" -o PROJ
Candidate operations found: 2
-------------------------------------
Operation No. 1:

unknown id, Inverse of Amersfoort to ETRS89 (9) + RD New, 0.001 m, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone., at least one grid missing

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +inv +proj=hgridshift +grids=nl_nsgi_rdtrans2018.tif
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

Grid nl_nsgi_rdtrans2018.tif needed but not found on the system. Can be obtained at https://cdn.proj.org/nl_nsgi_rdtrans2018.tif

-------------------------------------
Operation No. 2:

unknown id, Inverse of Amersfoort to ETRS89 (8) + RD New, 0.25 m, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone.

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +proj=push +v_3
  +step +proj=cart +ellps=GRS80
  +step +inv +proj=helmert +x=565.7381 +y=50.4018 +z=465.2904
        +rx=0.395025981036064 +ry=-0.330772431242031 +rz=1.87607329462821
        +s=4.07244 +convention=coordinate_frame
  +step +inv +proj=cart +ellps=bessel
  +step +proj=pop +v_3
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

projinfo
Rel. 9.0.0, March 1st, 2022
...
PROJ_NETWORK=ON projinfo -s "epsg:4258" -t "epsg:7415" -o PROJ
Candidate operations found: 6
-------------------------------------
Operation No. 1:

unknown id, ETRS89 to NAP height (2) + Inverse of Amersfoort to ETRS89 (9) + RD New, 0.002 m, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone., at least one grid missing

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +inv +proj=vgridshift +grids=nl_nsgi_nlgeo2018.tif +multiplier=1
  +step +inv +proj=hgridshift +grids=nl_nsgi_rdtrans2018.tif
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

Grid nl_nsgi_nlgeo2018.tif needed but not found on the system. Can be obtained at https://cdn.proj.org/nl_nsgi_nlgeo2018.tif
Grid nl_nsgi_rdtrans2018.tif needed but not found on the system. Can be obtained at https://cdn.proj.org/nl_nsgi_rdtrans2018.tif

-------------------------------------
Operation No. 2:

unknown id, ETRS89 to NAP height (2) + Inverse of Amersfoort to ETRS89 (8) + RD New, 0.251 m, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone., at least one grid missing

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +inv +proj=vgridshift +grids=nl_nsgi_nlgeo2018.tif +multiplier=1
  +step +proj=push +v_3
  +step +proj=cart +ellps=GRS80
  +step +inv +proj=helmert +x=565.7381 +y=50.4018 +z=465.2904
        +rx=0.395025981036064 +ry=-0.330772431242031 +rz=1.87607329462821
        +s=4.07244 +convention=coordinate_frame
  +step +inv +proj=cart +ellps=bessel
  +step +proj=pop +v_3
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

Grid nl_nsgi_nlgeo2018.tif needed but not found on the system. Can be obtained at https://cdn.proj.org/nl_nsgi_nlgeo2018.tif

-------------------------------------
Operation No. 3:

unknown id, ETRS89 to NAP height (2) + Inverse of Ballpark geographic offset from Amersfoort to ETRS89 + RD New, unknown accuracy, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone., has ballpark transformation, at least one grid missing

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +inv +proj=vgridshift +grids=nl_nsgi_nlgeo2018.tif +multiplier=1
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

Grid nl_nsgi_nlgeo2018.tif needed but not found on the system. Can be obtained at https://cdn.proj.org/nl_nsgi_nlgeo2018.tif

-------------------------------------
Operation No. 4:

unknown id, Inverse of Transformation from NAP height to ETRS89 (ballpark vertical transformation, without ellipsoid height to vertical height correction) + Inverse of Amersfoort to ETRS89 (9) + RD New, unknown accuracy, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone., has ballpark transformation, at least one grid missing

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +inv +proj=hgridshift +grids=nl_nsgi_rdtrans2018.tif
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

Grid nl_nsgi_rdtrans2018.tif needed but not found on the system. Can be obtained at https://cdn.proj.org/nl_nsgi_rdtrans2018.tif

-------------------------------------
Operation No. 5:

unknown id, Inverse of Transformation from NAP height to ETRS89 (ballpark vertical transformation, without ellipsoid height to vertical height correction) + Inverse of Amersfoort to ETRS89 (8) + RD New, unknown accuracy, Netherlands - onshore, including Waddenzee, Dutch Wadden Islands and 12-mile offshore coastal zone., has ballpark transformation

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +proj=push +v_3
  +step +proj=cart +ellps=GRS80
  +step +inv +proj=helmert +x=565.7381 +y=50.4018 +z=465.2904
        +rx=0.395025981036064 +ry=-0.330772431242031 +rz=1.87607329462821
        +s=4.07244 +convention=coordinate_frame
  +step +inv +proj=cart +ellps=bessel
  +step +proj=pop +v_3
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

-------------------------------------
Operation No. 6:

unknown id, Inverse of Transformation from NAP height to ETRS89 (ballpark vertical transformation, without ellipsoid height to vertical height correction) + Inverse of Ballpark geographic offset from Amersfoort to ETRS89 + RD New, unknown accuracy, World, has ballpark transformation

PROJ string:
+proj=pipeline
  +step +proj=axisswap +order=2,1
  +step +proj=unitconvert +xy_in=deg +xy_out=rad
  +step +proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079
        +x_0=155000 +y_0=463000 +ellps=bessel

https://github.com/OSGeo/PROJ/issues/3219#issuecomment-1145656292
More likely related to: https://github.com/OSGeo/PROJ/pull/3119


Fix oldest supported libtpu install command

Still broken after this but getting closer: https://github.com/google/jax/actions/runs/6554208430/job/17800793993

@sagyakwa

@jyingl3

I am working on a fix for the RuntimeError: Unable to initialize backend 'tpu': module 'libtpu' has no attribute 'get_library_path' (set JAX_PLATFORMS='' to automatically choose an available backend) https://github.com/google/jax/pull/18192


Slider to move entire landscape up

It would be nice to have extra space for icons down the bottom and a bit less sky.

I'll work on this.

https://github.com/42Willow/25th-hour-dynamic/tree/landscape-slider

Merged!


Research TrueNAS as replacement of Synology

I'll definitely use TrueNAS software, but it will be far cheaper to do a custom build


In nz-table, nzSortChange cannot be triggered after table headers changed

Version
1.8.0
Environment
MacOS, Chrome 70
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-4yafks
Steps to reproduce
See the stackblitz link:

At the beginning, click column headers will trigger nzSortChange callback;
3 seconds later, colNames are changed;
Clicks on column headers do not trigger nzSortChange callback any longer.

What is expected?
nzSortChange callback should be triggered.
What is actually happening?
nzSortChange callback is not triggered.
Other?

@Fanoid thanks for reporting, you can use [hidden] instead of *ngIf to skip this bug.

@Fanoid
you repeat all td and add [hidden] attribute to the one you don't want to display.

But all of the possible headers are not known in advance. Hope you guys can fix the bug soon! ^_^

@Fanoid or you can just rerender the whole table after colNames changes


Updating doc for odo cloning issue

What is the purpose of this change? What does it change?

Adding workaround for odo repo cloning issue on windows terminal like PowerShell and Command Prompt in doc development.md
Was the change discussed in an issue?
In mattermost channel - https://chat.openshift.io/developers/pl/xtsmdukx4fnojfgexay34frqee
In details - https://chat.openshift.io/developers/channels/odo

How to test changes?

Read the added section

Also did a minor fix of Integration Tests link

:white_check_mark: odo build 834 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/d2bfb1032f by @amitkrout)

:white_check_mark: odo build 835 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/f2a2d283b9 by @amitkrout)

@cdrage have your comments been sufficiently addressed?

:white_check_mark: odo build 856 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/cc91c59e43 by @amitkrout)

LGTM. Merging.


Provide Blazer tutorial example scenes.

In this page there are a couple of starter Blazor example but there is no complete file code or the whole example, so this would be a nice addition.

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

ID: 36e7dc3c-54c4-35de-203e-d230869e8417
Version Independent ID: dc5b52d5-c8c6-1440-6b3a-fda898167d0c
Content: Build your first Blazor app
Content Source: aspnetcore/tutorials/build-your-first-blazor-app.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @guardrex
Microsoft Alias: riande

It was done on purpose due to high churn in engineering. This whole topic is due for an overhaul, so we won't be providing such a sample at this time.

Hi,
Can't we have screenshots of what we are building.. as this would help the prospective user to more actively comprehend what the final product will look like...

@ciphercoder We can't at this time. This tutorial is subject to being completely replaced. Given the workload, there's no way that we can get all of the images into it only having to replace them in a few months.  Yes! ... I hope to have screenshots in the new tutorial.


How to deal with the variable length of sentence?

the length of sentences are variable?  How you deal with this ?

The model can handle variable-length sentences by design. Please refer to the paper.


Update local-kafka.md

Added additional instructions for configuring zookeeper.properties when working on Windows with bash

Thanks for the PR!


hello service

there is no backend service to be deleted. It was named originally hello

/kind cleanup

Hello @webcane .
Can you check if you have signed the CLA with your credentials?

Hey there! @webcane, looks like you haven't signed the CLA yet. Could I please have you do that? https://github.com/kubernetes/community/blob/master/CLA.md

Hi @webcane .
Without a signed CLA, this pull request cannot be reviewed.
I plan on closing this PR; however, you can reopen this pull request at any time.
/close