shaka player UI with Angular

I have successfully tested shaka-player NPM package in angular But I am unable to add custom UI like video resolutions, video speed, etc. Please help me out.
Below is my minimal code for testing:
HTML
<video #videoPlayer
  id="video"
  width="640"
  poster="https://static1.squarespace.com/static/5b6b1a769f87709740f95460/t/5c3e08d7b8a04538dc60fff6/1564791168418/?format=1500w"
  controls
></video>

Component

import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';

// import { shaka } from 'shaka-player/dist/shaka-player-ui.js';

import * as shaka from 'shaka-player';

@Component({
  selector: 'app-video-player',
  templateUrl: './video-player.component.html',
  styleUrls: ['./video-player.component.css']
})
export class VideoPlayerComponent implements AfterViewInit {
  @ViewChild('videoPlayer') videoElementRef: ElementRef;
  videoElement: HTMLVideoElement;

  manifestUri = 'http://dash.edgesuite.net/envivio/EnvivioDash3/manifest.mpd';

  ngAfterViewInit() {
    // Install built-in polyfills to patch browser incompatibilities.
    shaka.polyfill.installAll();

    // Check to see if the browser supports the basic APIs Shaka needs.
    if (shaka.Player.isBrowserSupported()) {
      // Everything looks good!
      this.videoElement = this.videoElementRef.nativeElement;
      this.initPlayer();
    } else {
      // This browser does not have the minimum set of APIs we need.
      console.error('Browser not supported!');
    }
  }

  private initPlayer() {
    // Create a Player instance.
    // var video = document.getElementById('video');
    let player = new shaka.Player(this.videoElement);

    // Listen for error events.
    player.addEventListener('error', this.onErrorEvent);

    // Try to load a manifest.
    // This is an asynchronous process.
    player.load(this.manifestUri).then(() => {
      // This runs if the asynchronous load is successful.
      console.log('The video has now been loaded!');
    }).catch(this.onError);  // onError is executed if the asynchronous load fails.
  }

  private onErrorEvent(event) {
    // Extract the shaka.util.Error object from the event.
    this.onError(event.detail);
  }

  private onError(error) {
    // Log the error
    console.error('Error code', error.code, 'object', error);
  }

}

Sorry, but there's nobody on this team with Angular experience.  But you may want to look at our UI tutorial and try to adapt that to the Angular environment.
Here's a link to the tutorial: https://shaka-player-demo.appspot.com/docs/api/tutorial-ui.html
You may also want to look at #2163, in which people are working on the same issue for ReactJS.  In particular, with a framework such as this, you may want to use our API-based setup instead of the declarative setup:
    const player = new shaka.Player(videoElement);
    const ui = new shaka.ui.Overlay(player, uiContainer, videoElement);

This requires a video element (videoElement) contained in a div (uiContainer).  The rest of the UI's elements will be created for you inside uiContainer.
The default CSS for our UI is hosted here: https://ajax.googleapis.com/ajax/libs/shaka-player/2.5.5/controls.css
You can override parts of it in your app, replace it completely with your own, or modify it and recompile it from source if you like.

Thanks for the reply. I will definitely try this out.

Glad we could help.  If you need to reopen this issue for further assistance, just put @shaka-bot reopen in a comment. Thanks!


🚀 Feature: ADD speech control for chat bots

🔖 Feature description
this feature will help user to control the speech of the output weather they want their output as verbal or as text
🎤 Why is this feature needed ?
for better user exp.
✌ How do you aim to achieve this?
will handel this on client side
🔄 Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

Are you willing to submit PR?
Yes I am willing to submit a PR!

Any updates?

If @shubhagarwal1 is not doing

@priyanshuverma-dev you can add speech controls near Bot Name like play pause icons
I guess @shubhagarwal1 is not doing so you can do PR

@priyanshuverma-dev you can add speech controls near Bot Name like play pause icons I guess @shubhagarwal1 is not doing so you can do PR

Hey @kom-senapati i am sorry for the delay, please allow @priyanshuverma-dev to complete my both issue if he wanted to, i have no issues with that.


curl canihazip.com/s returns 301

It looks like canihazip.com/s is now HTTPS-only, i.e. curl https://canihazip.com/s
$ curl canihazip.com/s

<title>301 Moved Permanently</title>

301 Moved Permanently

nginx/1.13.3

@lhanson Fixed! Thank you very much


removed deprecated  createObjectURL fucntion

https://stackoverflow.com/questions/51101408/deprecation-of-createobjecturl-and-replace-with-the-new-htmlmediaelement-srcobje

Kindly change this, in the minified file
webcam.min.js


有办法只输入一张图像，然后提取建筑吗，不做cd检测

如题

You might be referring to semantic segmentation tasks. You can refer to the mmsegmentation repository (https://github.com/open-mmlab/mmsegmentation) for more information.

I know what you mean, I have a need, sometimes semantic segmentation, sometimes change detection, so I want to use one algorithm to achieve 2 functions


Target navigation of external repositories with shorthand notation is broken

Clicking on an external repository dependency like this, @com_google_guava_guava, does not bring you to the relevant build file.
If however you write @com_google_guava_guava//:com_google_guava_guava and then click on it then you're brought to the correct build file.
Problem is that buildifier will change the latter form to the former one.
This means we need to choose between buildifier and ease of navigation in intellij.
cc @hmemcpy

Thanks, this will be fixed for the next release (https://github.com/bazelbuild/intellij/issues/435).


Setup end-to-end testing

[ ] Select a testing framework
[ ] Setup into existing ecosystem w/ vue-cli
[ ] Add missing tests

Going to use Cypress


Feature request: Font loading via CSS Font Loading API

It would be nice if the resource-loader supported dynamic font loading "out of the box". Currently loading dynamic fonts requires the use of an external package like https://github.com/typekit/webfontloader.
Loading fonts could be implemented with the new CSS Font Loading API: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API
I know the technology is still experimental but the compatibility chart is already pretty good and hopefully will get better with time (Edge at least should be pretty 1:1 with Chrome now that they're switching to Webkit).

I'm open to giving this a shot again now that browser tech has moved forward a bit.
In the past I've avoided it because of just how complex font loading is. So complex that it would more than double the size of the library just to handle font edge cases.
I wonder if it makes sense to have a separate plugin that adds font support to resource loader, rather than building it in the lib here given how much code seems to be required.
All that being said it has been a while since I looked into this problem space and the state of browsers so I'll at least do some investigation and see where we are. Or if your up to it, PRs are always welcome!

I think all you need is a Strategy around FontFaceObserver:
https://github.com/bramstein/fontfaceobserver
It supports old browsers and also is very lightweight

PRs welcome.

+1 to this concept - the Venn diagram of resource-loader users who also need to load fonts is likely a circle.  :-)  Happy to help test if someone with a better understanding of the internals is willing to take a shot.


Swipe cells working intermittently

I've added SwipeCellKit to my tableview.    I can always swipe on the cell, but the icons and text are not showing up.   If I swipe a few times they then show up.   I have 3 tableviews and this is happening on 2 of the 3.   They all have the exact same code, so I can't figure out why this is happening.

What version of the SwipeCellKit are you using? This was fixed in latest version.

I'm using 2.0.1.   I executed 'pod outdated' and it say that none of my pods need updating.

Please see #143


Define new interface to handle RBAC role

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

let me redesign RBAC on PipeCD.
/hold

/hold cancel

@knanao From the last time of discussion about builtin RBAC, I think we can close this PR and make another one (with the implementation), wdyt?

@khanhtc1202
That makes sense.
Let me create another PR.
/close

/close


Bug: forge flatten does not account for as keyword in imports

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
latest
What command(s) is the bug in?
forge flatten
Operating System
macOS (M1)
Describe the bug
the as keyword, used to remap imports like
import {FixedPointMath as Math} from "..."

Math.mul()

is ignored by forge flatten, which just indiscriminately pastes FixedPointMath in and fails to rename/alias it to Math
this results in the output of forge flatten failing to compile because the compiler does not know what Math is if FixedPointMath is not alias'd/renamed, while the input could be a perfectly valid contract like above

@rkrasiuk perhaps we're using the offset of the wrong identifier?

@mattsse so i've fixed parsing aliases using solang and our regex fallback. now the only question is how do we want to proceed with fixing the aliases in the flattened file. both renaming import target to the alias and renaming the alias back to the original import name have the edge cases that break the flattened file.
i.e. if we chose to rename the import target
// FixedPointMath.sol
library FixedPointMath { }

// Calculator1.sol
import {FixedPointMath as Math} from "./FixedPointMath.sol";

Math.mul();

// Calculator2.sol
import {FixedPointMath} from "./FixedPointMath.sol";

FixedPointMath.mul(); // this is where it would break

hmm, this not ideal but not really solvable until we have proper formatting.
But I think this limitation is negligible and would even highlight inconsistent import pattern.
so perhaps the right approach for now is to simply resolve the alias. and replace Math with FixedPointMath in the node's content?
wdyt?

sgtm, just want to make sure that these edge cases are acknowledged. so, you suggest replacing the alias with the original import name, not the other way around, right?

can we replace per node or only once we've flattened everything?
the other way around would include renaming the library as well, right?
I'd think replacing the more verbose lib name with the alias could be more accurate but I don't think we should rename the library.
so, I'd say let's replace alias Math with actual name FixedPointMath.

I think regexing should be sufficient :)

closed by https://github.com/gakonst/ethers-rs/pull/1192


[CI] bump action-ros-ci and pass ref

Bump action-ros-ci to get option to pass in a ref

https://github.com/ros-tooling/action-ros-ci/issues/772

fixes #619 where scheduled jobs ran with latest commit from default branch instead of the correct branch

Codecov Report

Merging #640 (68ea9d5) into master (e7f9962) will increase coverage by 0.70%.
The diff coverage is 34.80%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master     #640      +/-   ##
==========================================
+ Coverage   35.78%   36.48%   +0.70%
==========================================
  Files         189        7     -182
  Lines       17570      677   -16893
  Branches    11592      358   -11234
==========================================
- Hits         6287      247    -6040
+ Misses        994      134     -860
+ Partials    10289      296    -9993

Flag
Coverage Δ

unittests
36.48% <34.80%> (+0.70%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...ontroller/test/test_load_diff_drive_controller.cpp
11.11% <0.00%> (ø)

diff_drive_controller/src/odometry.cpp
42.16% <11.11%> (ø)

diff_drive_controller/src/speed_limiter.cpp
46.55% <11.11%> (ø)

...ive_controller/test/test_diff_drive_controller.cpp
17.62% <12.08%> (ø)

...iff_drive_controller/src/diff_drive_controller.cpp
46.93% <46.66%> (ø)

...de/diff_drive_controller/diff_drive_controller.hpp
100.00% <100.00%> (ø)

...troller/include/diff_drive_controller/odometry.hpp
100.00% <100.00%> (ø)

... and 189 files with indirect coverage changes

I think you always squash merge so I just used the GitHub browser ui to bring the branch up to date and apply the review suggestion

Could be easier to just pin the action to 0.3. I believe it picks the latest minor version anyway

I thought so to... but I guess not
Error: Unable to resolve action<EMAIL_ADDRESS>unable to find version `0.3`


[Change Request] codeunit 64 "Sales-Get Shipment" - CheckSalesShptLineVATBusPostingGroup

Hello, can you please change the lokal procedure CheckSalesShptLineVATBusPostingGroup to a global procedure?
    procedure CheckSalesShptLineVATBusPostingGroup(SalesShptLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header")
    var
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeTestSalesShptLineVATBusPostingGroup(SalesShptLine, SalesHeader, IsHandled);
        if IsHandled then
            exit;

        SalesShptLine.TestField("VAT Bus. Posting Group", SalesHeader."VAT Bus. Posting Group");
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 13402.


Search box is quite slow to show results

I think the search box can be quite slow sometimes, I think @Revathyvenugopal162 was implementing a spinner or similar. I think it is a good way so the user knows it has to wait.
As reported here: https://github.com/ansys/pymapdl/issues/2404#issuecomment-1761256698

Nevermind:
https://github.com/ansys/pymapdl/issues/2404#issuecomment-1761482216


WCAG 2.1 AA compliance requires 320px breakpoint, whereas MUI uses 360px

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

It seems as though Material UI uses a breakpoint of 360px for the xs size, and in order to be WCAG 2.1 compliant, this should be 320px.
From https://material.io/design/layout/responsive-layout-grid.html#

Expected Behavior 🤔

As per WCAG 2.1 guidelines: https://www.w3.org/TR/WCAG21/#reflow - 320px breakpoint should be used.
Steps to Reproduce 🕹

Steps:

Context 🔦

We want to use https://material-ui.com/components/container/ and https://material-ui.com/components/grid/ for our page layouts, but we need to ensure we are WCAG 2.1 AA compliant.
Your Environment 🌎

Tech
Version

Material-UI
v4.?.?

React

Browser

TypeScript

etc.

Sorry, we're still investigating this from our side - will reopen if needed.


Add templates for ALTER statements

for all kinds of entities: row-based table, column-based, topics.

Accidentially found it here. I think we should add a more obvious place to show this.

Will be improved in #1153

@antonkovalenko will hadd query templates for alter table (sec indexes and friends), topics and other entities.
queries are to be places to right menu and three dots

@antonkovalenko all template are here:
"New SQL" button:
https://github.com/ydb-platform/ydb-embedded-ui/blob/main/src/containers/Tenant/utils/newSQLQueryTemplates.ts
Dots in schema tree:
https://github.com/ydb-platform/ydb-embedded-ui/blob/main/src/containers/Tenant/utils/schemaQueryTemplates.ts


Providing means to set SID vs. ServiceName and use respectively in ge…

Oracle provides two different ways to specify a connection string:

using a SID
using a service name
When using an SID, the connection string contains that SID separated by a colon (':') from the host/port part, whereas when using the service name, the connection string contains that service name separated by a slash ('/') from the host/port part.
In addition the current implementation does not at all allow to use a SID different from the default "xe" string, nor does it allow to use service names at all. However, if one uses so-called pluggable databases, those may be identified by service names like XEPDB1. The result is that containers using such databases can currently not be used with testcontainers.org.
This pull request suggest a slight change in the source code of OracleContainer which does not at all break the current default behavior, but enables the use of SID and service names and returns the appropriate JDBC URL.

Hello @rnorth @bsideup @kiview ,
do you think you can quickly review this PR? It's just a small change to the OracleContainer class which does not really touch any default behavior and would help me a lot to use testcontainers.org in my own project.
Thank you so much!
Regards
Timo

Hi @trohrberg,
First of all, friendly advice:
pinging (busy) maintainers does not help getting your PR reviewed faster 😉

would help me a lot to use testcontainers.org in my own project.

I see that you only changed the getJdbcUrl method. I guess you can (temporary) override this method in your project and return the URL you expect (instead of xe) to unblock you, so that it is at least not a blocker for you.
Adding tests for this change will definitely help getting it merged sooner.
P.S. there is no need to merge it with master every time we commit something, it creates a significant load on our CI. Thank you.

Hi @bsideup
I'm sorry, I did not want to push you in any way. I'm of course aware that you guys are all busy. Since this is my very first contribution to this project, I was simply unsure if I did anything wrong so that my PR has not been noticed at all.
I'm currently using your suggested solution, so I'm luckily not really blocked.
Sorry again for any unconvenience I may have caused.
Thank you so much.
Regards
Timo


Check application data buffer size if MFL extension is disabled

Summary: This PR extends PR #1022, provided by Florin Petriuc and fixing #707, by a ChangeLog entry and tests that would have caught the issue.
Internal Reference: IOTSSL-1670

@andresag01 Thanks for reviewing carefully once again. The bug exists in Mbed TLS 2.1, too, but not in Mbed TLS 1.3, and I'll backport the fix.

@hanno-arm: No problem. Thanks for confirming the backports.

CI failed only due to timing tests (known issue).


Need to handle constraints lines separately from nuisances

This PR concerns the recently added constraints feature (by the way do we really want to restrict the constraint shape to gaussian? Wouldn't it be better to give more flexibility by allowing general formula?).
I wanted to write a regularization term that depended on a rateParam defined in the same card, but because the constraints were handled as nuisances, their definitions would come before the rateParams in ModelTools, crashing text2workspace. So I'm proposing to add a "doRegularizations" function that runs after other functions that may introduce new parameters, and migrate the code around "constr" lines from doNuisances to the new function.

Hi @yiiyama - I don't see much conversation on this one. I think in principle what you propose makes sense but it would be good to show a test of the behaviour with the PR vs the current setup.
Can it be checked using the tutorial example here ?


Related videos disable

Example working with YT library https://jsfiddle.net/L7e29ham/

rel property already exists.


⚠ Bofrost.es has degraded performance

In 8339487, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1428 ms

Resolved: Bofrost.es performance has improved in 0306cc9 after 6 minutes.


adapt values of @hand to https://github.com/TEIC/TEI/issues/2458?

[ ] @type instead of @hand?
[ ] use of controlled vocabulary for values?!

@hand as we use it is not very commonly used in other editions
re: vocabulary we can use the attributes  of Cultural Objects Name Authority® Online


Inconsistence in size format

Hi,
Given the popularity of this library, you really need to make the formats in the API more consistent, and brush up the documentation. Honestly, the @types declaration files are more helpful than the guide on your website.
Why is the page size array format [height, width] - which by the way is absolutely fine since it is the standard worldwide - when image resizing suddenly follows the format [width, height]. It is confusing if not just frustrating. I end up  having to create inversed arrays of sizes just to have images fit pages:
const fitSize: number[] = [842, 595],      pageSize: number[] = [595, 842],      doc = new PDFDocument({          size: fitSize,          layout: "landscape"       });     doc       .image(templateFile, 0, 0, {           fit: pageSize       });
Awesome package you have here but it seriously needs better documentation.

Maybe you could use layout: "portrait"?
It's {layout: "portrait", size: [width, height]} or {layout: "landscape", size: [height, width]}

@19r3ka Actually instead of just bashing @devongovett for the lacking documentation, how about a PR to make it better?

As a Start-up Creator, what's not understood here is that Code to be used in a Business needs to be PROVEN Viable, and Stable.
For code to step beyond HOBBY, it needs to have a STABLE base, and DOCUMENTATION that functions.. so that those exploring it, can deem it viable QUICKLY.  or they just leave. (unless absurd risk is OK for them)
What's more.. is I'm actually have this same issue right now.. and have been exploring PDFKit for 5 days... and it's about to end.  Time is money... "ALMOST" isn't going to cut in the market.
Gonna try some more w PDFKit today.. but just getting basics like RELIABLY placed images, and DOC/CANVAS sizing, and such have proven to be maddening.
functional docs = warm & fuzzy rapport builders :)


Fix Coverity issues

CID 1466486
CID 1466485
CID 1466484
CID 1466483
CID 1466482
CID 1466479
Added a simple OSSL_STORE related test file to  cover a few offending functions..
More tests should be added in here at some point.

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

This pull request is ready to merge

Rebased just to do a squash, there were no changes

Thanks. Merged to master.


multiple copies of Ractive on a single page causes CSS scoping errors...

...because each copy keeps its own data-ractive-css tally

multiple copies of Ractive on a single page

Is there a use case for having multiple versions of Ractive on one page? Or is this for the new versions to gracefully catch accidentally putting in 2 copies on the page?

Sorry for the naive question, but does this refer to creating a new instance of Ractive? If so, this needs to be supported -- I have an instance of Ractive running to manage the GUI but create another instance to control a dialog box, for example.

Is there a use case for having multiple versions of Ractive on one page?

Sort of... my day job often involves creating interactive widgets for pages like this – the widgets need to be developed and tested separately, but they all need to live on the same page. Cruel experience has taught us the folly of attempting to load shared libraries from a CDN or vendor bundle – everything is async, we don't control the page itself, we use different AMD loaders in different environments (web vs app etc), mucking around with the loader config causes all sorts of hairy problems that you don't want to debug on a deadline, we need fully reproducible builds, etc, etc. If we had more time we could solve some of these issues but the simplest and most reliable solution is simply to bundle each app up separately.

does this refer to creating a new instance of Ractive?

No, this is purely about
<script src='my-bundled-ractive-app.js'></script>
<script src='my-other-bundled-ractive-app.js'></script>

– you can have as many top-level instances as you like, and CSS scoping will work as expected.

CSS from multiple Ractives should now be covered https://github.com/ractivejs/ractive/pull/2362


Querying a database or directory on mongodb fails even in next-major

It does work on Marklogic however it does not seem to work on Quasar.

Currently, querying a toplevel directory that references a database, like select * from /mongo32/testdata results in
Quasar error: File /mongo32/testdata is invalid: path names a database, but no collection
and querying a directory further down like select * from /mongo32/testdata/null results in
Quasar error: File not found: /mongo32/testdata/null

@rintcius -> can you please investigate.

@zeeiyerWork  Looks like this functionality is not implemented indeed. Let me know the priority relative to #2502 and I will pick up accordingly after mongo driver upgrade has been finished.

@jsantos17 -> Please take a look as @rintcius wraps up other issues/


Add more custom features?

I recently found your project and it is really fancy, besides I like Swift anyway.
I'd like to use it in my project but there's still something I want to customize, such as the scroll direction, I might prefer to change to vertical, or the size of the date cell; what's more, I might want to pick a range of dates, e.g. I pick a start date, say Feb. 3rd, and an end date, maybe Feb. 5th, that means I picked 3rd, 4th, and 5th.
So I just wonder if there's any chance you add these custom features?  Or if you need, I can contribute. :)

Hi and thank you. I'm glad you like it.
To answer your questions:

Selecting multiple dates (range selection) is definitely on the roadmap. I try to get into this as soon as possible. I have some clear ideas about how I want to do this.

Vertical scrolling could be a nice feature to integrate. Feel feel to contribute!

You can add in delegate to add custom UIFont for the days and days of the week.

@joaopedrok Yes, this is on my todo list.

@joaopedrok version 1.2.0 brings support for custom fonts. Available now.

@Tuslareb thanks. I needed and i downloaded the code and change it for me. But nice! Congratulations for the component.


Restore event countdown

The original template had a countdown to the event:
https://themes.3rdwavemedia.com/demo/bs5/devconf/
Let's restore that!

Just noticed that it seems the countdown shows up on Chrome but not Safari:

Just noticed that it seems the countdown shows up on Chrome but not Safari:

Do you have an error message for this in your Safari Web Inspector Console?
(Right click anywhere on the page -> Inspector -> Console tab)

Let's close this issue once I transfer the ICESat-2 changes over


flyway-core depends on gson: fails if not present

Which version and edition of Flyway are you using?
Version 9.17.0
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Yes
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
flyway-core java API
Which database are you using? (Type & version)
any
Which operating system are you using?
linux
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Use flyway-core embedded in a tomcat service. Gson is not included in the application, which was fine until 9.17.0.
What did you expect to see?
Expected flyway-core to work embedded in the server, even if Gson is not present. Flyway itself has no reasons to impose a json marshaller or another.
What did you see instead?
Runtime failure, with a message like:
java.util.ServiceConfigurationError: org.flywaydb.core.extensibility.Plugin: org.flywaydb.core.internal.reports.json.InfoResultDeserializer Unable to get public no-arg constructor

Another plugin depends on gson here: org.flywaydb.core.internal.reports.json.MigrateResultDeserializer.
I see no easy way to disable the org.flywaydb.core.internal.reports.json.InfoResultDeserializer from flyway-core, but that could be an option.
Previous to commit https://github.com/flyway/flyway/commit/60a5ad1900fced203bd55b83cb5c857a7f452895 Gson was a dependency for the cli, but not for flyway-core.
Removing the two problematic plugins from the flyway-core\src\main\resources\META-INF\services\org.flywaydb.core.extensibility.Plugin file, I can again use flyway-core api in my application without embedding the Gson library.

Could you please provide us with a minimal reproduction? Please include the Flyway dependencies you are importing as well as a code snippet of your Flyway usage where possible.

Hello,
I'm embedding flyway-core-9.14.1 and flyway-mysql-9.14.1 jars in a tomcat application.
I'm embedding no further dependencies (build system is not using maven)
What I do is define an @Startup class, in those @PostConstruct I do use the flyway migrate call, to install or upgrade the database schema.
Something like:
@Startup
@Singleton(name="DatabaseInit")
@TransactionManagement(TransactionManagementType.BEAN)
public class DatabaseInit {

  @Resource(name = "mydb", type = javax.sql.DataSource.class)
  private DataSource db;

  @PostConstruct
  private void onStartup() {
    boolean cleanDisabled = Boolean.parseBoolean(System.getProperty("flyway.cleanDisabled", "true"));

    Flyway flyway = new Flyway(new FluentConfiguration()
        .cleanDisabled(cleanDisabled)
        .locations("classpath:com/mydb/db/migration")
        .dataSource(db)
    	);
    try {
      MigrateResult migrateResult = flyway.migrate();
      logger.info("{} migrations from {} to {}: {}",
          migrateResult.migrationsExecuted,
          migrateResult.initialSchemaVersion,
          migrateResult.targetSchemaVersion,
          migrateResult.success);
    } catch (FlywayException e) {
      logger.error("database migration failed", e);
    }
  }
}

This used to not require any more dependencies. I see that in the pom the dependency jackson-dataformat-toml was not marked as optional, but it did not cause problems.
Now with 9.17.0, both Gson and commons-text are not marked as optional. But they should not be required for all workloads, so it would be better to be able to not require them.

Are you using a build tool like Maven or adding dependencies directly to the classpath?

I'm using tools that do not rely on maven poms, but let me control the classpath. So basically manage the classpath manually, as well as the content of the war I deploy to tomcat.
That is why we didn't pick Gson automatically: we want to control the content of the war, for several reasons:

performance: each jar, even barely used, has its cost, e.g. on tomcat startup time
legal reasons: need to make sure the licenses of everything we deploy are fine, and everything declared correctly

Thank you for your additional information. I will take this back to the team as these dependencies are required for new functionality put into Flyway 9.17.0. However, the information above raises some thoughts which we need to consider moving forward. Thank you.

Bumping plugin version from 9.16.0 to 9.19.1 solves the problem

It would be great if flyway-core would not depend on new dependencies that are only used for optional features. Reporting is in my opinion not part of core and should be an extra dependency.

Please note that for OSGi, that is a blocker, because flyway-core doesn't import com.google.gson (see Import-Package in MANIFEST.MF) but obviously tries to use it. Even when the gson bundle is correctly deployed and the package com.google.gson exported, flyway doesn't work.

Hello,
I reproduced the issue with flyway 10.11.0: flyway-core explicitly depends on gson
java.util.ServiceConfigurationError: org.flywaydb.core.extensibility.Plugin: org.flywaydb.core.internal.reports.json.InfoResultDeserializer Unable to get public no-arg constructor
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:594)
at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:687)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1259)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1292)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1328)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1412)
at org.flywaydb.core.internal.plugin.PluginRegister.registerPlugins(PluginRegister.java:83)
at org.flywaydb.core.internal.plugin.PluginRegister.getPlugins(PluginRegister.java:73)
at org.flywaydb.core.internal.plugin.PluginRegister.getCopy(PluginRegister.java:96)
at org.flywaydb.core.api.configuration.ClassicConfiguration.configure(ClassicConfiguration.java:1344)
at org.flywaydb.core.api.configuration.ClassicConfiguration.(ClassicConfiguration.java:257)
at org.flywaydb.core.Flyway.(Flyway.java:112)
at org.flywaydb.core.api.configuration.FluentConfiguration.load(FluentConfiguration.java:61)
at com.ds.ven.flyway.tests.TestFlyway.testFlyway(TestFlyway.java:14)
... 38 trimmed
Caused by: java.lang.NoClassDefFoundError: com.google.gson.JsonElement
at java.base/java.lang.J9VMInternals.prepareClassImpl(Native Method)
at java.base/java.lang.J9VMInternals.prepare(J9VMInternals.java:361)
at java.base/java.lang.Class.getConstructor(Class.java:689)
at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:674)
at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:671)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:748)
at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:682)
... 51 more
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonElement
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:574)
at java.base/java.lang.ClassLoader.loadClassHelper(ClassLoader.java:1196)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1111)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1094)
... 58 more

And a new dependency on fasterxml jackson appeared too:
java.lang.NoClassDefFoundError: com.fasterxml.jackson.databind.ObjectMapper
at org.flywaydb.core.extensibility.ConfigurationExtension.copy(ConfigurationExtension.java:36)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:522)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:512)

With the 10.17.2 release, GSON has been removed as a dependency of flyway-core and with flyway no longer uses it directly. This should no longer be an issue so I will close the ticket.


Create getdiscography

At this stage we will work on a function that, given an artist name, will return the whole discography present in our dataset of that artist.

Closed with commit 0677fff1cb5506c7a44cba453d4c9280861b2c0e


SIGSEGV 0xb

Please provide a brief summary of the bug
I'm using Eclipse on daily basis. So when I do something like autocomplete or copy pasting it randomly crashes.
Please provide steps to reproduce where possible

Use Eclipse
Import some random Maven project
Do anything until crash happens

Expected Results
No crashes
Actual Results
This crash
What Java Version are you using?
OpenJDK Runtime Environment Temurin-17.0.7+7
What is your operating system and platform?
Ubuntu 22.04.2 LTS (x64) - Wayland
How did you install Java?
Throughout Eclipse installation wizzard.
Did it work before?
Didn't test.

Did you test with the latest update version?
Yes.

Did you test with other Java versions?
Nope.

Relevant log output
Log is here:
https://pastebin.com/fsKSLWP6

Please update your GTK version, graphics drivers and update to the latest Eclipse IDE version (mostly likely fix).

There is a catch. Switching to XORG x11 display system apparently works. Also updated everything in previous comment.


Simulation Based Inference, ASTR285 Final Project notebook

I have created a new contributing notebook as a final project for the UChicago class ASTR 285: Science With Large Astronomical Surveys. The notebook deals with simulation based inference

I have created a new contributing notebook as a final project for the UChicago class ASTR 285: Science With Large Astronomical Surveys. The notebook deals with simulation based inference

Thanks @xuyikangshi. I will grade this version of the notebook and follow up with you about whether you would like to continue the process of contributing it to the Astro Data Lab.


Don’t stringify buffers in transports

Due to changes in hammock, request-proxy is now serializing buffers as json.

cc: @thanodnl @Raynos

LGTM

Closing this PR, it has been landed via a hotfix in the form of v10.16.2 which has later been merged into master.


[Bug]: KafkaIO.withCheckStopReadingFn does not work

What happened?
If a check stop reading function is provided to the SDF Kafka IO implementation, and that function ever returns true, it will result in a failed check in the Offset based restriction tracker.
Caused by: java.lang.IllegalStateException: Last attempted offset should not be null. No work was claimed in non-empty range [5,<PHONE_NUMBER>854775807).
It appears that this feature has never worked, and will need to be redesigned and reimplemented
Issue Priority
Priority: 2
Issue Component
Component: io-java-kafka

.take-issue

Sorry, commented to wrong issue

this has been fixed, see #22962


Slice renderer red region outside extents

Follow the steps as in #2918
Replace the volume renderer with a slice renderer for vortmag
Change the extents

@stasj - Is this on main, or on branch 2969v4 (the current slice PR branch, #2974)?

@StasJ - Is this on main, or on branch 2969v4 (the current slice PR branch, #2974)?

This was tested with the current release installers

Got it - thanks.

Fixed with PR #2974


Assist: replace unwrap with match

attempt on #3669

bors r+

CI failure is unrelated. Could you rebase on top of https://github.com/rust-analyzer/rust-analyzer/pull/3735?
bors d+


1.0 release

[x] #473
[x] drop old Node and TS versions

[x] #526
[ ] #527
[x] #572
[x] #576

@chriskrycho #527 and #526 should address point 4

I've updated my thinking slightly: I'm going to punt the @dependentKeyCompat and assert for .value and unsafe .error access to a 2.0 (presumably later in the year) with deprecations introduced now so people can use deprecation workflow to tackle them (see #575). That way we can cut 1.0 now, requiring the context argument, and then later make the second set of breaking changes, while giving people a path to opt into that with regression-prevention via deprecation workflow. 🚀 Accordingly, I'm going to extract those two items to a new 2.0 tracking issue and close this with a 1.0 release in short order!

Closed: v1.0.0! 🎉 See #577 to track the remaining two issues.


changed from minutes to seconds

From https://docs.microsoft.com/en-us/power-bi/admin/service-premium-concepts it seems that the overloaded minutes are calculated from a sum of 30 seconds increments and not 30 minutes increments.

@jacobkjaersgaardhansen : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

https://c.yemhis.org/index.php?gid=2022-01-10-000051

@jacobkjaersgaardhansen, thank you for spotting these errors and correcting them.


minor change in math environment in wald_fridman.rst

Will merge this one, since nothing breaks and there's no reason to hold up the whole queue.


[VC] Use event sinker in mccontroller

This change uses client-go EventCorrelator to filter/throttle the same/similar events sent to the tenant control plane.
This change does not use the client-go EventBroadcaster since it uses a heavy weight event dispatch mechanism and it has to be created for each tenant control plane, which means the event cache (a fixed size LRU cache) has to be duplicated for every tenant control plane.
In this implementation, one event cache is used by all tenant control planes with a default 4K entries. Later, we can make the cache size configurable if there are too many virtual clusters.
The scheduler uses the event sinker to notify the tenant control plane about the scheduling result. For example:
kubectl get event -A --kubeconfig=vc-sample-1.kubeconfig
NAMESPACE   LAST SEEN   TYPE     REASON      OBJECT      MESSAGE
test        24s         Normal   Scheduled   namespace   Successfully schedule namespace test with placement {"root-cluster-00001":1}

smart implementation !

/lgtm
/approve


Hallucination metric score is set to 0.0 in one run and 1.0 in another run, despite having the same input values

Describe the bug
Hallucination metric seems to have low repeatability, in terms of what values it assigns to the same input values
To Reproduce
Steps to reproduce the behavior:

Create test cases where actual_output overlaps with context
Use hallucination metric to measure it
Run evaluation for a several times, for the same model output
Check hallucination scores

Expected behavior
The hallucination score is consistently the same or at least similar.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS] Windows 11
Browser [e.g. chrome, safari] Chrome
Version [e.g. 22] 122

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
This problem might be connected with another one (only either 0.0 or 1.0 are assigned to hallucination metric score, instead of using a full continuous space of numbers)

Can you provide an example test case that has this behvaior?


Clarify the state of an instance after a failed update or delete

See issue #566.

LGTM

@pmorie Updates and deletes are not very different in this regard. In both cases, the operations fails if a pre-condition check fails. The broker may not have touched the instance at this point. It is still running as before.
Think of a document management repository that contains documents that must not be deleted for legal reasons. The deletion of the repository must fail. If the instance becomes unusable after such a failure, there is no handle for the end-user to get access to the repository anymore. It would require some admin intervention to either fix this or provide an alternative way to access the repository. That doesn't scale.
A WebHook can minimize the chance of such a situation, but it cannot prevent it. We have to be able to handle that for update and delete operations.

CI failure looks real

@fmui I think we've dropped the ball on this one a little. Anything we still need to do?

I think @fmui is reworking the PR to return a "statusCode" type of property that matches what the HTTP status code would be if it were synchronous.  But I could be wrong.

I have updated the PR as discussed in one of our calls.

@fmui I'm sorry for missing this one for today's call - I'll add it to next week's.
All, please review when you get a chance.

@fmui I'm interested to hear what common status codes you'd expect to see returned (or if there even are common ones).
Also, I'm confused by the sentence matches what the HTTP status code would be if it were synchronous. We don't really mean that, right? This isn't to do with sync vs async; it's to do with allowing the broker to specify what error code it would return if it wasn't conforming to the /v2/service_instances/:guid/last_operation spec where it has to return a 200 OK along with a state field.

@fmui ^^^

The idea is to keep the logic on the broker and the platform the same for synchronous and asynchronous calls in case of an error. For synchronous provision calls, the spec defines the HTTP status codes 400, 409, and 422 (not applicable here). Additionally, we have to consider 5xx status codes as well. If an asynchronous provisioning fails, the status_code field should provide the appropriate status code from the list above. For example, an invalid parameter combination should result in the status code 400.

rebase needed

A number of changes have now been made to this PR, and it has now been rebased, so please can we get another round of reviews from @openservicebrokerapi/osbapi-pmc Thank you!

Sorry it took me so long to review this again @fmui. I've just added some comments, interested to get your feedback!

@fmui another thing missing in the last operation response is whether the failure is retryable or not, see https://github.com/kubernetes-incubator/service-catalog/issues/2505
Service Catalog currently indefinitely retries after getting 200 response with state: failed response. It also performs orphan mitigation every time.

Replaced by PR #637.


feat: add remove method and deprecate clear

:tada: This PR is included in version 2.20.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

shouldn't it be a major release instead? 🤔 it's a breaking change, isn't it?

The functionality is exactly the same for now. The only difference is you will see a deprecation notice until you change to the new function name.


Please ... Help Me to Extract the finger from noisy binary image

Original Captured Image

Binary Image

What i want

Hi @KuntalAdak,
Sorry to disappoint you but the image processing and analysis is not a goal of this project. The main goal is to allow Java users to use common API to access webcams, even using various frameworks. Therefore I would like to avoid off-topic questions like this one.
I may be completely wrong, but I would start by interpolate the angle of the image artifacts using two separate, geometrically aligned cameras (not the one), with some fine tuned correction mechanisms (to map artifact placement in image to position on screen). Then, I would incorporate only these artifacts which are observed by these two distinct cameras (position confirmed by angle and distance from camera 1 and 2). Please note that this is just and idea that came into my mind so I can neither give you any ready to use recipe nor I can confirm this method to be actually working in the existing application.


Include project number in 2020 FWCP report reference

Parsnip River Watershed – Fish Habitat Confirmations (PEA-F20-F-2967)

gitglitch resulted in 500 oops error and duplicate at https://github.com/NewGraphEnvironment/fish_passage_peace_2022_reporting/issues/39. closing in favor of


[Bug] Link in email doesn't work

Some emails (here at least the status change email for a rejected week) contain absolute path URLs, which the cannot be clicked.
See:
https://github.com/KatjaGlassConsulting/ApprovalBundle/blob/main/Repository/ApprovalRepository.php#L710-L714
We need to replace UrlGeneratorInterface::ABSOLUTE_PATH with UrlGeneratorInterface::ABSOLUTE_PATH.
Who is willing to ship a PR to fix it?

Hi Kevin,
the replacement is the same? Is there another value to use than UrlGeneratorInterface::ABSOLUTE_PATH?

Hahaha, copy & paste... :blush:

ABSOLUTE_PATH should create something like /de/approval while
ABSOLUTE_URL should create something like https://www.example.com/de/approval

Maybe you can try it, I am in the middle of a feature branch, which I can't switch, so I can't test right now.

:) I will give it a try and update. :) Thanks

Corrected and released as 2.0.4


[[CHORE]] Remove unreachable code

The function checkLeftSideAssign validates assignment targets and
includes a branch for targets which are applications of the spread/rest
operator. Although the symbol table includes an entry for the ...
token, its definition as an "infix" operator is incomplete and cannot be
used to advance through an expression (e.g. the invalid code 0 ... 1).
Instead, the operator is explicitly consumed in the productions where it
is allowed through the use of the internal spreadrest function. This
means the token is not used to build an expression. Therefore, the
branch in checkLeftSideAssign accommodates a condition that cannot
occur, and it may be removed without altering the behavior of JSHint.

@rwaldron One down, sixty to go...

Coverage remained the same at 100.0% when pulling a29f495075a6a8411a85bdda162c883ce397ae85 on jugglinmike:remove-unreachable-spread-rest into 963d38d4c4f1aa31c373b64dbf08820f211b998b on jshint:master.

Coverage remained the same at 100.0% when pulling a29f495075a6a8411a85bdda162c883ce397ae85 on jugglinmike:remove-unreachable-spread-rest into 963d38d4c4f1aa31c373b64dbf08820f211b998b on jshint:master.


Improve issue and PR templates

What does this PR do?
Improve repo
For resources
Description
I added issue templates and changed a few things in PR template.
Why is this valuable (or not)?
This will close https://github.com/EbookFoundation/free-programming-books/issues/7581
Checklist

[x] Read our contributing guidelines.
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!
@davorpa, could you review this PR?

Could you prepare one more for label discussions?

Could you prepare one more for label discussions?

Yes. But before I do that, why we don't use GitHub discussions if someone want to talk about this repo?

@eshellman

This is an interesting idea, but not something I want to be playing with during october - we are doing almost 100 reviews per day!


Bug bash documentation

Spend a day to read docs of the packages you own, and verify samples and everything

Done


Cannot read property 'match' of undefined when running react-native link amazon-cognito-identity-js

What is the current behavior?
I'm following the react-native Quick Start.
I have an already existing RN project created using react-native init.
Steps I've taken:
yarn add aws-amplify
yarn add aws-amplify-react-native

Now when I type in:
react-native link amazon-cognito-identity-js I get

Here is my package.json:
{
  "name": "myProject",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint src",
    "lint:tough": "eslint src --max-warnings=0",
    "test": "jest",
    "test:watch": "jest --watchAll --env=jsdom",
    "test:coverage": "jest --coverage --env=jsdom",
    "test:coverage:watch": "jest --watchAll --coverage --env=jsdom",
    "flow": "flow"
  },
  "jest": {
    "preset": "react-native"
  },
  "dependencies": {
    "aws-amplify": "^0.4.5",
    "aws-amplify-react-native": "^0.2.16",
    "lodash": "^4.17.10",
    "native-base": "^2.3.1",
    "react": "16.3.1",
    "react-native": "0.55.4",
    "react-native-easy-grid": "^0.1.17",
    "react-native-sound": "^0.10.4",
    "react-native-vector-icons": "^4.3.0",
    "react-native-webrtc": "^1.58.3",
    "react-navigation": "^1.0.0-beta.11",
    "react-redux": "^5.0.6",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0",
    "socket.io-client": "^2.0.3",
    "webrtc-adapter": "^5.0.1",
    "xmpp-ftw": "^2.0.0",
    "xmpp-ftw-disco": "^1.3.0",
    "xmpp-ftw-muc": "^1.5.1",
    "xmpp-ftw-register": "^1.1.8"
  },
  "devDependencies": {
    "babel-eslint": "^8.2.3",
    "babel-jest": "21.0.2",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react": "^6.24.1",
    "babel-preset-react-native": "4.0.0",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "babel-preset-stage-2": "^6.24.1",
    "eslint": "^4.19.1",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-config-prettier": "^2.9.0",
    "eslint-plugin-flowtype": "^2.47.1",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
    "eslint-plugin-prettier": "^2.6.0",
    "eslint-plugin-react": "^7.8.2",
    "eslint-plugin-standard": "^3.1.0",
    "flow-bin": "~0.74.0",
    "jest": "^23.1.0",
    "jest-react-native": "^18.0.0",
    "react-test-renderer": "16.3.1",
    "remote-redux-devtools": "^0.5.12",
    "remotedev-rn-debugger": "^0.8.3"
  }
}

Solution:
From the docs on linking for ios:

I had to add # Add new pods below this line to my app's podfile. Then I could link.


Dates for Lectures

... on our Bonn-specific wiki pages at least the last date 02/02 is a Friday and thus not a lecture day. Please check all dates.

Done.


Enable embedded web server building in flutter

Since flutter can build web app in native javascript code, it could be used to build a embedded web server/app.
I added a flutter-web.bbclass for building an EWS compilation.
This EWS can be powered with nginx or other web engines.

@jwinarske I would appreciate your thoughts on this. I'm currently using this code successfully.

@Gmatarrubia Hello and thanks for the contribution!
This is great, thanks for taking this on.
Looking at this my first impression is that it would be best to incorporate into the existing flutter-app.inc.  just make it a different platform type.  I have something similar planned for building Linux gtk projects.
Let me make a first pass on this and I will provide some further guidance

Yes, that was my first though. But I after some tries I turned to this approach for this reasons:

I don't want to add dependence of flutter-engine. It has a big impact in the building time and it is not needed at all.
There are a lot of steps in compile task that have to be skipped.
Perhaps the complexity of flutter-app class increase too much.

Anyhow, If you consider that It would be worth to try, I can try it.

First pass:  https://github.com/meta-flutter/meta-flutter/pull/373
Validated with gallery web recipe.  Results don't get past loading page on firefox.  Not sure what the required setup there is.  I just loaded it using file://<web>/index.hml.  Is there any special setup?
I split the includes apart while maintaining as much common as possible.  This will make it easier when I get around to adding GTK support at some point, as it will be flutter-gtk.bbclass/flutter-gtk.inc.


[FEAT] Write partial simulated data to file to avoid Out of Memory issue.

Is your proposal related to a problem?
Yes.
I have a 3TB Disk space and 64GB RAM space machine. While generating decennial census simulated data with default error parameters, the virtual memory used by the process reaches close to 94GB. At that point, OS kills the process for out-of-memory issues.
This happens at around 175 th iteration.
Is there any way to Run the  generate_decennial_census() on the whole US dataset in a 64GB machine?
Code snippet:
census = psp.generate_decennial_census( source= Path/to/unzipped/data/director, seed=0, year=2020).
The source data version is :
pseudopeople_simulated_population_usa_2_0_0.
Pseudopeople version: 0.8.3.
Describe the solution you'd like.
Some kind of out-of-core / streaming solution that will write the partial data to files, and reduce RAM usage.
Describe alternatives you've considered.
I am looking if I can use fewer columns of data per record.
However, it will not provide us with an accurate performance investigation of our algorithms.

Hi @joyantabasak13!
Great suggestion. We plan to add distributed data loading, but haven't yet given much thought to out-of-core on a single machine.
One workaround you could use: loop through each of the 50 states one by one, and pass a state filter for each. Presumably, even the largest state will fit into 64GB. You could save out each individual state's data to a file before generating the next.

Did this work? I just got an email from a student running in this same issue.

I'm going to mark this as closed, but please feel free to reopen if you would like to discuss further.

Hello! Sorry, I missed the previous question.
Yes, the solution worked.
I haven't tested it for all the States. But it worked for the states I had tried including comparatively higher population states like Massachusetts & New York.

@joyantabasak13 This has now been released as pseudopeople 1.1.0 🎉


Remove unnecessary defaults

This PR removes the need for the if/else branch on replicaCount  since Kubernetes will set the default of 1 replica anyway.

/lgtm

@johscheuer Please rebase to pass the tests.

It seems the retest does not work in istio/installer repo. just restart the failed test to try.


Coupons Gem is not compatible with rails 3.2.17

I tried using gem with rails 3.2.17 but there was no success, is there a issue with gem or I'm missing something?

Please give any errors to get help. Thank you. :)

The gem has hard dependency on Rails 4.2+. I don't know if it works on older Rails versions because all my apps run in latest Rails version.

@fnando thanks for your reply :+1:


Can the Mask RCNN be trained without the bounding box regressor branch

I want to perform classification and segmentation only on my dataset of satellite images using Mask Rcnn. How can I train the model having only the classification head and mask head and not the bounding box head. The problem is that there are very dense objects in the image and have oriented bounding boxes(8 coordinates), while the mask rcnn takes horizantal bounding boxes with 4 coordinates only.
Please suggest how can I do it or refer me to some similar projects.
Thanks in advance

First, it's not possible to train without bounding box. You need those bboxes as RoIs.
For your second question, take a look at this https://github.com/yangxue0827/R2CNN_FPN_Tensorflow


Tree Sticky Scroll - difference in behaviour when right clicking

Testing #199153

When one right clicks on a node, the node gets the focus indicator

When one right clicks on a sticky node, the node does not get the focus indicator:

I haven't added this because we don't properly support navigating the sticky scroll widget with the keyboard. Will add this together with general keyboard navigation on the widget: #199373


SCSS compile output

I really like your extension for compiling SCSS code in VSCode! Thanks for making it.  When I first installed it, every compile after turning on Watch would show compile output details of files being compiled in the Output pane of VSC. Recently, something changed (no clue what) and it won't do that any more. I don't see any setting to turn this on or off. I'd actually like to control this from the bottom VSC border. Sometimes I want to see the output details, other times, not.

I really like your extension for compiling SCSS code in VSCode!

I'm glad to hear it 😁

... would show compile output details of files being compiled in the Output pane of VSC. Recently, something changed (no clue what) and it won't do that any more. I don't see any setting to turn this on or off.

It sounds like you've been switched over to the v5 RC I published. This version has had a massive overhaul, including to the output window.
The setting is now called showOutputWindowOn and acts more like a logger. The default is Warning, this will only shows anything classified as Warningor over.
Details of the new setting can be seen here. It needs details adding about what/when each of the options will output - which I'll do soon.

Sometimes I want to see the output details, other times, not.

It sounds like you want this on Information when you want to know the files being compiled. Then Warning, Error or None when you don't.

I'd actually like to control this from the bottom VSC border.

I'm not sure if this could be worked in. How would you expect it to work?

Yep! That is the setting that makes a difference. It was set to Trace. I set it to Information and now it's outputing.
For control from the bottom VSC border, I'm thinking clicking on the "Watching..." button there and in the popup menu, offer changes to the output level from there instead of having to go into the .json file or the Settings > Preferences.
As an additional nicety, it would be cool to have a keyboard key-combo I could hold down when I Save that would (for that one time) switch from Trace to some other setting (not sure which one) that would 1. Open the Output panel 2. Then show the generated output.

Yep! That is the setting that makes a difference. It was set to Trace. I set it to Information and now it's outputing.

Glad I could help

For control from the bottom VSC border, I'm thinking clicking on the "Watching..." button there and in the popup menu, offer changes to the output level from there instead of having to go into the .json file or the Settings > Preferences.

Bad news I'm afraid. Currently, clicking activates and deactivated the watching state of the extension. This is a key feature and isn't going to change I'm afraid.
I did think about adding a context menu (alt mouse click), however, that's not available to me in VS Code.

As an additional nicety, it would be cool to have a keyboard key-combo I could hold down when I Save that would (for that one time) switch from Trace to some other setting (not sure which one) that would 1. Open the Output panel 2. Then show the generated output.

I know you can assign a key combination to a command and I could add more commands to programmatically change the setting. However, this might just add unnecessary/confusing bloat to the extension. I'll have to have a look into/think about this.

Closing this issue as the key point is resolved and opening a new issue for the proposed feature

@glenn2223 You stated that clicking on the bottom VSC border toggles watching scss changes to trigger compile... why can't that be top of a dropdown menu there that you see if you click and hold. If you just click like always, could there be a default action which is the same as now (toggle watching)? So users used to clicking still toggle. But click and hold and dropdown appears with explicit choice for watching: on/off plus other menu items?  I don't know what VSC allows but to me that would be cool functionality.


Issue #1110: Add @Inherited to annotation type declarations

Pull request checklist

[x] Please read our contributor guide
[x] Consider creating a discussion on the discussion forum
first
[x] Make sure the PR doesn't introduce backward compatibility issues
[x] Make sure to have sufficient test cases

Pull Request type

[x] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Other (please describe):

Changes in this PR

#1110
Allow components annotated with Dgs* annotations proxies/subclasses to inherit these annotations.

Alternatives considered

Use Spring AnnotationUtils

Perfect timing! Thanks @noemielb.


QSocketNotifier: Multiple socket notifiers for same socket and type Read

Description
What steps will reproduce the problem?

url = 'https://raw.githubusercontent.com/jbrownlee/Datasets/master/wine.csv'
df = read_csv(url, header=None)
Versions

Spyder version: 4.1.4
Python version: 3.7.7
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.4.1 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.16.1 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.7.0                   :  0.7.0 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=1.0                   :  2.4.4 (OK)
pyls >=0.34.0;<1.0.0           :  0.34.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.5 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.0.3 (OK)
spyder_kernels >=1.9.2;<1.10.0 :  1.9.2 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  0.29.17 (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.5 (OK)
scipy >=0.17.0                 :  1.5.0 (OK)
sympy >=0.7.3                  :  None (OK)

Hi @pchristian4481, thanks for the report.
Where are you seeing these messages/errors? Could you paste the full traceback and provide some context?
Thanks!

I've just installed Spyder 4.1.4 and now i've run into the same warning...
After some checking the quickest way to reproduce it on my side is the following:
... simply execute the following lines in a fresh console (e.g. select all + F9 )
 # try to import something that can NOT be found
import asdfasdf

def somefunction():
    pass

>>> Traceback (most recent call last):
>>>
>>>   File "<ipython-input-1-d725d5305948>", line 1, in <module>
>>>     import asdfasdf
>>>
>>> ModuleNotFoundError: No module named 'asdfasdf'
>>>
>>>
>>> QSocketNotifier: Multiple socket notifiers for same socket 1948 and type Read
>>>

ok... I've just realized that there's an even simpler way...
(e.g. it also popps up during normal operations)

start a new console, type 1 and hit enter

@impact27 @dalthviz can you reproduce this?

maybe related to https://github.com/vispy/vispy/issues/1787

no, vispy is definitely not part of the environment I'm currently using
by the way... the warning is cumulative... so after 5 minutes I end up having my console flooded with
the same message on and on again...
Can you think of a possible quick-fix?  (e.g. can i somehow turn off those warnings?)
(I'd really like to keep using v4.1.4 since it fixes the code-cell issue on separate windows which I tend to use extensively...)

I would use https://python.readthedocs.io/en/latest/library/warnings.html#the-warnings-filter to raise the warning as errors. This would hopefully help us by showing where the warning is raised from.

This is probably a bug that happens on Windows only. I'm taking a look at it right now.

Maybe this is related jupyter/qtconsole#332 but now some how the message is being printed in the actual console?

Thank you.
From: Carlos Cordoba<EMAIL_ADDRESS>Sent: Wednesday, July 15, 2020 11:07 AM
To: spyder-ide/spyder<EMAIL_ADDRESS>Cc: pchristian4481<EMAIL_ADDRESS>Mention <
<EMAIL_ADDRESS>Subject: Re: [spyder-ide/spyder] QSocketNotifier: Multiple socket
notifiers for same socket 1960 and type Read (#13275)
This is probably a bug that happens on Windows only. I'm taking a look at
it right now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/13275#issuecomment-658843404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGUKKMXXH3ZYO442OXZLG4DR3XHZFANCNFSM4OYQWMRQ
.
--
This message is intended for the addressee only and may contain Paragon
Research Corporation (PRC) confidential or privileged information.  Use or
distribution of such confidential information is strictly prohibited
without the prior written permission of PRC.  If you have received this
message in error, please contact the sender immediately and delete the
message and attachments from your computer.

I found this was an error in the ipykernel package and submitted ipython/ipykernel#525 to fix it.
@dalthviz, could you test that change locally and let us know if it fixes the problem on your side? Thanks!

@ccordoba12 I was not able to reproduce this in the first place so I'm unsure if checking on my side would have any confirmation effect

I was not able to reproduce this in the first place

Sorry, I thought you were. The steps to do it are

Running %gui qt
Entering continually 1 in the console (as shown above by @raphaelquast).

@ccordoba12 the fix works :+1:

good news 👍    so the way to go is to revert back to v4.1.3 and wait for v4.1.5 ?

@raphaelquast as a quick fix until the fix is delivered through the updates you can download the fixed file from here: https://github.com/ipython/ipykernel/blob/4a05435220c730605ab454001ac3ecc364299736/ipykernel/eventloops.py
and replace the current file eventloops.py under \envs<yourEnvironment>\Lib\site-packages\ipykernel
Backup the current file just in case.
That solved it for me.

@raphaelquast, this is not a problem in Spyder but in one of our dependencies (ipykernel). I hope a new release with my fix will be out soon (we don't have control over that, sorry).

@roterio
... thanks for the suggestion, however I try to avoid manually changing files in the environment if not absolutely necessary
(and in this case v4.1.3 does it's job well enough 😊)
@ccordoba12
OK, thanks for your (always) awesome support, I'll be patient!

Can't wait for a fix - thank you very much everyone :)

@raphaelquast, nice fix.  Thank you.

@pchristian4481  thanks, but the credit should really go to @ccordoba12 and the rest since I haven't done a thing except complaining about the issue 😁

Very good.
From: Raphael Quast<EMAIL_ADDRESS>Sent: Monday, August 3, 2020 10:18 AM
To: spyder-ide/spyder<EMAIL_ADDRESS>Cc: pchristian4481<EMAIL_ADDRESS>Mention <
<EMAIL_ADDRESS>Subject: Re: [spyder-ide/spyder] QSocketNotifier: Multiple socket
notifiers for same socket and type Read (#13275)
@pchristian4481 https://github.com/pchristian4481 thanks, but the credit
should really go to @ccordoba12 https://github.com/ccordoba12 and the
rest since I haven't done a thing except complaining about the issue 😁
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/13275#issuecomment-668080559,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGUKKMV5NUEPO6XYMKUYLA3R63IKVANCNFSM4OYQWMRQ
.
--
This message is intended for the addressee only and may contain Paragon
Research Corporation (PRC) confidential or privileged information.  Use or
distribution of such confidential information is strictly prohibited
without the prior written permission of PRC.  If you have received this
message in error, please contact the sender immediately and delete the
message and attachments from your computer.

Hello,
I am receiving the same flooding warning in Spyder 4.1.5 .
And I receive 5 messages per floor.
Shall I downgrade to 4.1.3 ?

Please update the ipykernel package to its 5.3.4 version to get the fix for this issue.


Add some tests to storage for coverage

Current coverage is 82.90% (diff: 100%)

Merging #12 into master will increase coverage by 0.99%

@@             master        #12   diff @@
==========================================
  Files            14         14
  Lines          1039       1041     +2
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            851        863    +12
+ Misses          129        124     -5
+ Partials         59         54     -5

Powered by Codecov. Last update 33f4d86...e467ba2


need for authentication support

Beacuse the origin php-resque don't support redis authentication, so I chose your php-resque-ex. Then I found out this awsome command line tool, but without redis authentication, >_<
In production environment,  redis authentication is almost mandatory.

It wouldn't be a massive change to add authentication, another call $redis->auth(password) to be added to the redi connections when created? and also to added to php-resque


implement node_executor

only implemented one method, need to do some tests
use the docker functionality to get an SSH machine

node executors work both remotely and locally now

added some tests for local executor
added some test for ssh executors
docker client works now over ssh executors with a test for this as well

not done yet

@despiegk upload/download works fine on ssh executors, they are implemented there
because only in them we have the remote machine details
not sure what to do here in a local executor, rsync needs more info like ip, port, etc which means this is an ssh executor use case no?

@despiegk upload/download works fine on ssh executors, they are implemented there
because only in them we have the remote machine details
not sure what to do here in a local executor, rsync needs more info like ip, port, etc which means this is an ssh executor use case no?


chore: release main

:robot: I have created a release beep boop
create-node: 1.0.5
1.0.5 (2024-05-06)
Bug Fixes

another approach on eslint (16b8f32)
downgraded typescript version because of esling-plugin-sonar (3be87f0)
eslint still required (4e419f7)
letting eslint-plugin-sonar decide what version of tslint it requires (3f42053)
should fix eslint (3539f9a)
should fix eslint (9d87d68)

create: 1.0.12
1.0.12 (2024-05-06)
Bug Fixes

another approach on eslint (16b8f32)
downgraded typescript version because of esling-plugin-sonar (3be87f0)
eslint still required (4e419f7)
letting eslint-plugin-sonar decide what version of tslint it requires (3f42053)
should fix eslint (3539f9a)
should fix eslint (9d87d68)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/templ-project/create/releases/tag/create-v1.0.12 :sunflower:

:robot: Release is at https://github.com/templ-project/create/releases/tag/create-node-v1.0.5 :sunflower:


Presentr with Coordinator

I have two coordinators, ModuleA and ModuleB. ModuleB needs to be displayed as a modal using Presentr but whenever I try to do customPresentViewController it displays it as overFullScreen instead of a modal.
func startWithPresentr(withCallback: CoordinatorCallback?) {
        presentingViewController.customPresentViewController(presentr, viewController: rootViewController, animated: true, completion: nil)
    }

Any ideas on how to show ModuleB as a modal?

project is dead

Is there a recommended alternative?

try pan modal by slackhq: https://github.com/slackhq/PanModal


Register error || "sha" wasn't supplied.

√ What subdomain would you like? ... 709
√ What type of record do you want to use? » MX
√ What should the value of the record be? ... mx1.improvmx.com

× UNHANDLED ERROR
× ERROR → Error
i REASON → HttpError: Invalid request.

"sha" wasn't supplied.
i ERROR STACK ↓
 Error: HttpError: Invalid request.

"sha" wasn't supplied.
    at C:\Users\student\AppData\Roaming\npm\node_modules\@is-a-dev\cli\src\functions\register.js:81:41
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

C:\Users\student>

I didn't have a forked repo though. I think the problem occured when I used numbers as the domain because it worked without the numbers.
Thanks!


Upload with function - using custom functions

Hello,
I am trying to upload images automatically to a business page, the images change their name 4 times a day with a timestamp and a correlative, create a function that if I echo it generates the string I want to upload but at the time of concatenating the timestamp and the correlative to the upload option when uploading the image does not detect as a timestamp or correlative function:
upload #scv_file_file_provider as "upload_master" + timestamp () + "-" + run + ". csv"
Thanks.

Hi @Fry115 yes you can create custom functions. More details and example below -
https://github.com/kelaberetiv/TagUI#helper-functions
https://github.com/kelaberetiv/TagUI/issues/236#issuecomment-403188526
After you create the custom function generate_filename(), you can call it using below -
upload #scv_file_file_provider as `generate_filename()`

Your above line may be is not working because you use quotation marks. There is no need for quotation marks in the text parameter for upload. The backtick ` is used to denote variables and functions as TagUI default context for many steps is text and not variable, to make the usage more like natural human language.

Hi,
I'll try what you tell me, thanks.


EPI: Mirror Trading NFTs on Blur. Assessment and Epic for introduction to Blur team

Mirror Trading Bot for Blur Team: Seeking assessment here.

Closed as resolved on issue of requiring speed.


added as_of interface to the feature store

added as_of interface to the feature store

we should refrain from merging all the prs till the new version of ads as this will update the artifact with the same version in artifactory which is used in conda pack.


multi selection polish

pulling out some todos from #188.

[ ] Copy-paste of multiple lines into an equal number of cursors should paste one line per cursor. Current behavior is to paste all lines (separated by newline) into all cursors

[ ] Transpose (^T) should rotate the contents of selection (non-caret) regions. Currently they're ignored.

[ ] Selection region merging, when one region is forward and the other backward, always resolves the direction of the merged region to forward. I think better behavior would be to match the other parameter (ie the region added later).

[ ] Update of style spans on edit is based on edit summary rather than fine grained edit, so everything from the beginning of the first region to the end of the last loses style. This is recoverable because (according to the current plugin protocol) the plugin will re-highlight all of that, but it's not ideal.

The first of these is really interesting; naïvely I'd expect multi-cursor pasting to broadcast a single copied string to all cursors rather than splitting on newlines, and would only expect different pastes per cursor if the text had been copied from a set of multi-cursor selections. In either case, what happens when the number of objects to paste isn't the same as the number of cursors?
Are both kinds of functionality (broadcast and pointwise paste) accessible in other editors?

@sp3d AFAIK in all common editors with multi-select (Sublime, Atom, VSCode) the way it works is that it broadcasts the copy buffer to all cursors unless the number of cursors is equal to the number of lines, in which case it pastes each line's contents at the corresponding cursor.
The reason is so that when you copy using multiple cursors, it gets put into the clipboard as multiple lines, and then if you move those cursors somewhere else and paste it properly acts like each cursor has its own paste buffer, but without having to make the clipboard actually be a fancy data structure.
I think this is a feature rather than just laziness about making the paste buffer fancy. First of all, I actually use this, I've copied a bunch of lines using a single cursor and then column-selected to paste each line in a different place. It's also not nice to have hidden state in the paste buffer that you can't observe just by pasting, two buffers that paste to the same thing in the single-cursor case should act the same in a multi-cursor case.

Thanks for the info about other editors.
I agree it's handy to be able to paste in a way that splits an N-line selection (or M*N? how do our peers handle copy/paste of multiple multi-line selections?) across N cursors. But I would advocate storing an additional clipboard format that doesn't discard knowledge of how many selections text came from when we copy, and having a way to access paste functionality that explicitly broadcasts or splits.

I acknowledge that model is conceptually cleaner, but it is also substantially more complex to implement, involves learning more operations, and involves hidden state that violates the normal model of what the clipboard is. I prefer the simplicity of "broadcast unless exact match then split" because I don't think the extra cases handled more the complex model are very useful.
I use multi-cursors a lot and have never encountered the case of wanting to paste multiple lines at multiple cursors. I don't know if I've ever even copied multiple lines per cursor.
I also think the fact that every other multi-cursor editor implements copy-paste this way makes this a good way of implementing it if only for compatibility with how people expect multiple cursors to work.
But really I do agree with you that the model is nicer, it's just these other concerns make it not an effective use of implementation effort. If you were to implement it though in a way that works nicely across platforms and interoperating with the native clipboard (I think this would involve adding a custom multi-cursor mime type to the pasteboard along with the plain text and using that if it is present on paste), I don't think I personally would say no, I can't speak for others though. We did discuss this on IRC a while ago and the consensus seemed to be in favor of the normal behavior of other editors.

@sp3d: I’m kind of on your side, in that I do think that some slightly fancier data structure is more elegant and more ‘true’; but I’m also very happy to put that work on some “possible avenue for future investigation”, because I’m really hard-pressed to come up with an actual use-case, and I don’t think it really justifies the development time. But: on IRC I was basically making the argument you’re making now.

There hasn't been much activity here in a while, but it's so nearly finished!
If the last point seems like a plausible first contribution to the project then I can get started.


Document SISeconds

Is SI an intended abbreviation for System Internationale?

Yes, see https://github.com/davedelong/Chronology/blob/221d525d2844a505e6a88998f346656f6dcdd876/Sources/Chronology/Calendar.swift#L14

Thanks for pointing that out. Now I know how to think about some future tests.


Querying a table with 500,000 records is too time-consuming(16566ms)

Is there any solution to speed it up? Below is my code(For security reasons, only part of the code can be provided):
  db.version(1).store(
    `++$id, [uid+msg_type]
  );

  let keys = '[uid+msg_type]'
  let vals = [
    [1001001, 1],
    [1001001, 2],
  ];

  console.time('db cost')
  const db1 = collection
    .getTable<ModelMsg>()
    .where(keys)
    .anyOf(vals)
    .toArray()

  const dbList1 = await db1;
  console.timeEnd('db cost')

// db cost: 16566ms

anyOf() uses IDBCursor, which is much slower than IDBIndex.getAll().
See also #1150.
Can you try what difference you see if you do:
  Promise.all(vals.map(val =>
    table
      .where('[uid+msg_type]')
      .equals(val)
      .toArray()))

@BigTomM Please let me know if my suggestion improved performance in your case?

Hi @dfahlander, thank you very much for your reply！
I made multiple comparisons under the scenario of 500,000 records：
using 'anyOf': 22106 ms
  const db = collection.getTable<ModelMsg>().where(keys).anyOf(vals).toArray();

using 'equals': 6926 ms
  const db = Promise.all(
    vals.map((val: any) =>
      collection.getTable<ModelMsg>().where(keys).equals(val).toArray()
    )
  );

It seems that there is a huge improvement. Although it still can’t satisfy my scenario, it’s already very good.
I’m wondering if I can query the data I want within 1000 ms, because I only want the first 100 records, like below:
collection.getTable<ModelMsg>()
.orderBy('created_at')
.where(keys)
.anyOf(vals)
.limit(100)
.toArray()

// I know "where" and "orderBy" cannot be used at the same time, so I don’t have any good solutions

I tried this method before：
Scenario： The database has 400,000 records [1001001, 1], and only 2 records [1001001, 2],
  const db = collection
    .getTable<ModelMsg>()
    .orderBy('created_at')
    .filter(msg => whereAnyOfFilterGetter(keys, vals)(msg) && filters(msg))
    .limit(10)
    .toArray();

// when vals = [1001001, 1], the big query was done in 30ms;
// when vals = [1001001, 2], the query was done in 17653ms;

Very strange, more records is faster, less records is slower，so this method cannot be used in my project

I tried this method before：
Scenario： The database has 400,000 records [1001001, 1], and only 2 records [1001001, 2],
  const db = collection
    .getTable<ModelMsg>()
    .orderBy('created_at')
    .filter(msg => myFilter(keys, vals, msg))
    .limit(10)
    .toArray();

// when vals = [1001001, 1], the big query was done in 30ms;
// when vals = [1001001, 2], the query was done in 17653ms;

Very strange, more records is faster, less records is slower，so this method cannot be used in my project

That is because .filter() requires IDBCursor which is slower than IDBIndex.getAll().
It is much faster to do the filtering on the resulting array afterwards.
Combine this with limit(X) and do the whole thing in a loop until you have enough results.
That way, you utilize the index for sorting and filter manually but in chunks of let's say 1000 entries. After filtering the number of resulting entries could be checked. If too few, redo the query as
table.where('create_at').aboveOrEqual(lastEntry).limit(1000).toArray()

...then search the result for possible duplicates. If found, slice away the leading part of the array until and including the duplicate.
...then apply the filter again and so on.
A similar algorithm is described here.
Please let me know how this goes!

We had great improvements using @dfahlander 's approach on a tiny table of some few hundred records. Are you considering to change the implementation of .anyof() to use this always? What's the down side?

We had great improvements using @dfahlander 's approach on a tiny table of some few hundred records. Are you considering to change the implementation of .anyof() to use this always? What's the down side?

The downsides on using parallell getAll-queries would be:

Definition of a maximum number of keys to run in parallell. Needs testing to get a good limit.
The result would be sorted differently unless we apply manual sorting on the result
More difficult to implement .offset() and .limit()

The work of dexie@4 will target these issues but there will be no change in dexie@3.


Renamed Runner Dockerfiles

Renamed the runner dockerfiles so that we have proper syntax highlighting for them, as well as a consistent way to map from the image name to the dockerfile. Added a .dockerignore file to avoid uploading things to the daemon that we never use.

@toast-gear done

(Re-resolved the conflict and waiting for the CI to pass...


Feat/lesq 305/blog breadcrumbs relocation [LESQ-305]

Description
Ticket: Move blog breadcrumb out of nav bar
Changes:

Removed breadcrumbs from nav bar on blog/webinar listing and post pages
Added breadcrumb into these pages directly above content
Mobile view should be unchanged

How to test

Go to https://deploy-preview-1912--oak-web-application.netlify.thenational.academy/blog
See the breadcrumbs below the nav
Click on a blog post
You should see the breadcrumbs below the nav bar

Screenshots
How it used to look:

How it should now look:

:tada: This PR is included in version 1.246.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


updating the nav bar to hide feeds page until finished

🗣 Description
Hiding Feeds page
due to no current data being presented needed to hide this page until it gets updated.
frontend/src/components/Header.tsx
commented out line 251-256 to hide page.
💭 Motivation and context

Clients get confused on feeds page when nothing is presented currently.

gives dev team a chance to update the feeds page
🧪 Testing
used local crossed to verify changes
before feeds page changes were made:

after feeds page became hidden from nav bar:

The failed test checks to make sure the navbar code matches the snapshot. Since we are updating the navbar, you will need to run the tests locally using npm test -u inside the frontend directory. This will update the snapshot so the test passes.


bacnet driver not working

I am trying to run the bacnet driver and am getting the following error

Has anyone run this module before or run into this issue?
Please let me know if you need any more information
Thanks

Read through these comments; you'll need to install the bacnet-stack library, and then you can likely re-run setup.py with the bacnet module support uncommented. Try that and then let me know

Thanks for the quick reply. Where should i put the bacnet-stack-0.6.0 folder?
I tired to place it in smap/python and am getting the following error when trying to run python setup.py build

What directory are you running setup.py from? Try running it from within smap/python and not the base directory of the repo

I am running setup.py from smap/python. I can run the swig command by itself though. Here is the complete output from setup.py

Thanks for the help.

So I prefixed python/ to the swig sources in setup.py and that fixed the problem. running setup.py gave the following output for swigging the bacnet extension.

However now when I try to run the bacnet driver i get a recursion error.


Hotfix prevent draft status from notifying creation

It didn't publish the project, as only active projects are the ones that the 2 week cronjob lists.
The email was sent on creation, so preventing that.
For now I disabled the email, but maybe changing the segment event would be better
Related to https://github.com/Giveth/impact-graph/issues/449

Unfortunately, I can't test it on UAT, due to it won't send emails on this environment. ANy ideas?


More ergonomic way of retrieving an IL string operand

What is the feature you'd like to have?
I'd like to have an ergonomic API for retrieving the string referenced by the operand of an IL operation. This may be as easy as just fixing the output of str() on an operand, but I'm not entirely sure as I'm not familiar with the implementation of these APIs.
Is your feature request related to a problem?
Given line 13 in MLIL in this screenshot:

...I want to get the string 'MS Word document scan in progress...\n' out. The only ways that I have been successful have been by doing:
bv.get_ascii_string_at(current_il_instruction.params[1].value.value).value
# or
bv.get_ascii_string_at(current_mlil[13].params[1].value.value).value

...with it selected (so that current_il_instruction refers to that one). If there's a better way right now, please feel free to close a pointer to the right API. But, other possible solutions I came up with like this one:
current_il_instruction.operands[2][1].__str__()

...don't actually get me the full string. They're truncated and return '"MS Word document scan in progres…"' instead.
Are any alternative solutions acceptable?
As mentioned above, if str() just worked on the operand, I think that would be fine? Otherwise, modifying get_string_at() and friends to be able to unpack the value I want would be my suggestion.
I would also accept just having explicit documentation on this as a way to close the issue. I feel like it's a common enough operation that we should at least try to make it more discoverable.
Additional Information:
This came up while trying to help another user with this problem tonight. Their issue was different and involved something that had been outlined, but the solution was similar.

Seems like something to the effect of instr.get_strings_referenced_by_instruction() would be a nice convenience API.


Proposal of Inband CN RTP header extension.

This is to propose an experimental RTP header extension to signal inband comfort noise. For details, please refer to the proposal.

@alvestrand would you take a look at this proposal? Thanks.

Hi,
An update has been made in this CL. PTAL again, thanks!

Now comes a refined version, which I did some formatting and verified by compiling it.


chore: fix bug in local deploy script

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
Summary
(describe what this merge request does)
Implementation highlights
(describe how the merge request does for feature changes, share the RFC link if it has)
Test checklist

[ ] add new test cases
[ ] all code changes are covered by unit tests
[ ] end-to-end tests

[ ] deploy web console with CloudFront + S3 + API gateway
[ ] deploy web console within VPC
[ ] deploy ingestion server

[ ] with MSK sink
[ ] with KDS sink
[ ] with S3 sink

[ ] deploy data processing
[ ] deploy data modeling

[ ] new Redshift Serverless
[ ] provisioned Redshift
[ ] Athena

[ ] deploy with reporting
[ ] streaming ingestion

[ ] with Redshift Serverless
[ ] with provisioned Redshift

Is it a breaking change

[ ] add parameters without default value in stack
[ ] introduce new service permission in stack
[ ] introduce new top level stack module

Miscellaneous

[ ] introduce new symbol link source file(s) to be shared among infra code, web console frontend, and web console backend

how do you use the script? specifying the -c without argument means deploying the console.

Check the sample,
https://github.com/awslabs/clickstream-analytics-on-aws?tab=readme-ov-file#deploy-local-code-for-updating-existing-stacks-created-by-the-web-console

bash e2e-deploy.sh -n modelRedshiftStackName -s Clickstream-DataModelingRedshift-8df0207e9de647b6801369bfae5ac181
Above command will deploy the Web Console regardless of whether the -c option is present or what value is given.


Update README.md

Remove BlocksRuntime from the dependency set.  We build our own copy of BlocksRuntime and use the headers from libdispatch.  We want to ensure that everything sees the correct version of BlocksRuntime.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @gottesmm


fix: omit queries that are set to undefined

Fixes #1481.
It seems we already have a test case for this. However I didn't found how to run it.

Any updates on this? Currently preventing upgrades to 5.x.
/cc @niftylettuce

:tada: v5.0.6 is released to npm, please try it out
npm install superagent@latest

https://github.com/visionmedia/superagent/releases/tag/v5.0.6


nub-context modes do not seem to work

when other modes -other than the default (humanoid)- are assigned to nub-context, nubEffectEvent does not fire for those modes


CNN on surgical site infection

Hello,
I want to build a deep learning model that can predict if a surgical wound (delivery by cesarean section) is infected or not. attached is the  sample images.
1.What pre trained model will you advise for transfer learning ?
2. What will be the best image format to work with between LAB,RGB an HSV

noted. thanks


Steps fail to match as expected when using Scenario Outline

This Issue is a
Possible bug, but maybe just a request for clarification
The problem
If I write a Scenario Outline that uses examples, the example placeholders (e.g. ) cause issues when writing a matching regex in your step definition.
Example
// features/demo.feature
Feature: Demo test

Scenario Outline: I can double a number
  Given I call the doubleANumber function with the number <Num>
  Then It should return the number <ReturnVal>

  Examples:

  | Num | ReturnVal |
  | 1   | 2         |
  | 2   | 4         |
  | 3   | 6         |

// steps/demo.steps.js
const jestCucumber = require('jest-cucumber');
const doubleANumber = require('../demo.js');

const { loadFeature, defineFeature } = jestCucumber;
const feature = loadFeature('../features/demo.feature'));

defineFeature(feature, test => {
  test('I can double a number', ({given, then}) => {
    let val;
    given(/I call the returnANumber function with the number (\d+)/, (num) => {
      console.log(num);
      val = doubleANumber(parseInt(num, 10));
    });
    then(/It should return the number (\d+)/, (returnVal) => {
      expect(val).toBe(parseInt(returnVal, 10));
    });
  });
});

// demo.js
function doubleANumber(num) {
  return num*2;
}

module.exports = doubleANumber;

This throws the following error:
Expected step #1 in scenario "I can double a number" to match "I call the doubleANumber function with the number <Num>"
The issue starts with the line given(/I call the doubleANumber function with the number (\d+)/, (num) => { ... });.
I thought this would work because I'm expecting the captured value from the regex to be a number. However, this fails to match.
If I change the regex to /I call the doubleANumber function with the number (<Num>)/ then it matches and runs, but the captured value sent to the callback is undefined.
If I then change the regex again to a combination of the two: /I call the doubleANumber function with the number (<Num>|\d)/ then this works. It's almost like two parses are happening and the regex needs to support both the placeholder and the expected value type.
You can work around this by replacing the group match with a generic match everything (.*) but this feels messy. Am I missing something, or Is this intended behaviour, and what is the recommended way of working?
*Edit*
I should have been clearer, but when I'm making the changes to the regex in the above replication steps, I'm making the change to both regexes in the given and then steps in order to get the code to run.

Thanks for the bug report!
For scenario outlines, the validation currently happens against the original step text from the feature file instead of the step text replaced with the example values. As you point out, this means that it currently requires a generic regex that can match both the original steps as well as the steps with the replacement values.
Using (.*) is the simplest way to make it work until this is fixed, but I agree that (.*) is not usually considered a best practice.

Thanks for the clarification Ben.  What do you think might be the best solution to this? Will it require a change to the way in which the step definitions are validated?

In the step definition validation, it checks the steps for normal scenarios and scenario outlines the same way, which is to iterate the steps property. However, scenario outlines also have a scenarios property that contains a scenario for each example in the table, and each scenario has steps that have already been parsed with the replacement values for its example in the table.
Therefore, in the step definition validation, I am imagining that in the case of a scenario outline, it could validate against the processed steps for the first example instead of the unprocessed steps on the scenario outline itself.

Fixed in v1.0.3.


[PPP-3405] transformations / ktr exported from BA server contain all BA datasources

Should be merged before https://github.com/pentaho/pdi-ee-plugin/pull/264

@mattcasters,  @brosander, @mattyb149 Could you review this, please?