TypeError: Cannot read property 'stop' of undefined

Hello,
First of all, thanks for the great library! 👍
I'm having a problem when running my test using jest - it happens only intermittently on my machine, but seems to happen all the time in CircleCI.
This is my test code:
let pgContainer: StartedTestContainer;
let pgPort: number;

beforeAll(async () => {
  pgContainer = await new GenericContainer("postgres", "11.5")
    .withEnv("POSTGRES_USER", "postgres")
    .withEnv("POSTGRES_PASSWORD", "postgres")
    .withExposedPorts(5432)
    .start();
  pgPort = pgContainer.getMappedPort(5432);
});

afterAll(async () => {
  await pgContainer.stop();
});

This is the error I get from jest:
Test suite failed to run

    TypeError: Cannot read property 'stop' of undefined

      20 |
      21 | afterAll(async () => {
    > 22 |   await pgContainer.stop();
         |                     ^
      23 | });
      24 |
      25 | describe("Database Integration", () => {

      at services/notifications/src/app.spec.ts:22:21
      at services/notifications/src/app.spec.ts:8:71
      at Object.<anonymous>.__awaiter (services/notifications/src/app.spec.ts:4:12)
      at Object.<anonymous> (services/notifications/src/app.spec.ts:21:21)

Thanks!

Hi @rashid5
Your example shows that pgContainer is assigned the result of starting the container. Unless there's been some exception and the result is undefined it's not possible for pgContainer.stop() to throw.
Could you please share a complete/reproducible example?

Hi @cristianrgreco
Thanks for your response!
Yeah, I know right - it doesn't make sense to me either.
It's hard to get something completely reproducible since the problem is intermittent, but I was able to reproduce it with the pared down but complete example below. I stopped and removed all my docker containers before running, and ran 6 times - 3 passed and 3 failed.
import "reflect-metadata";
import { createConnection } from "typeorm";
import { StartedTestContainer, GenericContainer } from "testcontainers";

let pgContainer: StartedTestContainer;
let pgPort: number;

beforeAll(async () => {
  pgContainer = await new GenericContainer("postgres", "11.5")
    .withEnv("POSTGRES_USER", "postgres")
    .withEnv("POSTGRES_PASSWORD", "postgres")
    .withExposedPorts(5432)
    .start();
  pgPort = pgContainer.getMappedPort(5432);
});

afterAll(async () => {
  await pgContainer.stop();
});

describe("Database Integration", () => {
  test("Test that the createDatabseConnection returns a valid connection to the database", async () => {
    const connection = await createConnection({
      type: "postgres",
      host: "localhost",
      port: pgPort,
      username: "postgres",
      password: "postgres",
      database: "postgres",
      synchronize: true,
      entities: ["src/entities/**/*.ts"]
    });
    expect(connection.isConnected).toBeTruthy();
    await connection.close();
  });
});

Those results are all with the exact same code. Really quite bizarre, right?

Hi @rashid5
My assumption is that the default jest timeout isn't enough to pull the postgres image and start it. The tests are more likely to fail on CI envs as it's unlikely they'll already have the postgres image.
I was also able to reproduce the issue with your code (thanks!) and can verify that it's working after increasing the timeout in the beforeAll:
beforeAll(async () => {
  jest.setTimeout(60000);
  pgContainer = await new GenericContainer("postgres", "11.5")
    .withEnv("POSTGRES_USER", "postgres")
    .withEnv("POSTGRES_PASSWORD", "postgres")
    .withExposedPorts(5432)
    .start();
  pgPort = pgContainer.getMappedPort(5432);
});

Hi @cristianrgreco
Ahh interesting - it's cool that you were able to reproduce the error.
I've tried increasing the timeout all the way to 600000 but I still get the error in CI - I'm not sure but I don't think it can take 10 minutes to pull and start the image, even in CircleCI... On the other hand, it does seem to have made it disappear locally, which would be some evidence in favour of your assumption being correct.
I wonder if building to javascript and then running might make a difference, rather than running using ts-jest...I might try that tomorrow and will let you know.

@rashid5 Could you run your tests with DEBUG=testcontainers set as an environment variable and share the output? I'm curious to see if/where testcontainers is getting stuck.

@cristianrgreco Yep sure (included text for searchability and screenshot for colours):
#!/bin/bash -eo pipefail
echo "$DEBUG"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn test:integration --forceExit --ci --runInBand

testcontainers
yarn run v1.19.2
$ yarn workspace notifications test:integration --forceExit --ci --runInBand
$ jest --testPathPattern=spec\.ts$ --forceExit --ci --runInBand
  testcontainers INFO: Using Docker configuration from DOCKER_HOST: tcp://<IP_ADDRESS>:2376 +0ms
  testcontainers INFO: Using Docker in Docker method +2ms
  testcontainers INFO: Pulling image: postgres:11.5 +346ms
  testcontainers DEBUG: Docker version: 17.09.0-ce +88ms
  testcontainers WARN: Docker environment should have more than 2GB free disk space +0ms
  testcontainers INFO: Creating container for image: postgres:11.5 +9s
  testcontainers INFO: Starting container with ID: d5a13f0e6cd0730b484a84b91710e7eba83f605dfb2f72e1105b7f7efead45f1 +1s
  testcontainers DEBUG: Starting container health checks +506ms
  testcontainers DEBUG: Waiting for host port :42941 +1ms
  testcontainers DEBUG: Waiting for internal port :5432 +2ms
 FAIL  src/app.spec.ts
  ● Test suite failed to run

    TypeError: Cannot read property 'stop' of undefined

      17 |
      18 | afterAll(async () => {
    > 19 |   await pgContainer.stop();
         |                     ^
      20 | });
      21 |
      22 | describe("Database Integration", () => {

      at src/app.spec.ts:19:21
      at step (src/app.spec.ts:33:23)
      at Object.next (src/app.spec.ts:14:53)
      at src/app.spec.ts:8:71
      at Object.<anonymous>.__awaiter (src/app.spec.ts:4:12)
      at Object.<anonymous> (src/app.spec.ts:18:10)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        76.62s
Ran all test suites matching /spec.ts$/i.
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/local/bin/node
Arguments: /root/.yarn/lib/cli.js test:integration --forceExit --ci --runInBand
Directory: /root/project/services/notifications
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Exited with code exit status 1

@rashid5 Looks like the postgres container isn't able to listen on port 5432. I think this is more an issue of your CI environment setup. Are you able to inspect the logs of the postgres container to see what it's doing? I've also found this documentation about using testcontainers in Circle CI: https://www.testcontainers.org/supported_docker_environment/continuous_integration/circle_ci/

@cristianrgreco Ah interesting, thanks for sharing that link. Interestingly what they recommend is how I was running the tests in CircleCI originally, with the 600s timeout, and it was still failing - but it does seem likely that the problem is to do with the CI config in some way, I'm just not sure exactly how.
Feel free to close this issue - I might post an update if I do manage to figure out how to make it work, for anyone who comes across this in future.
Thanks very much for your help :)

@rashid5 So???


Can't reproduce the results on OTB2015 as describe.

Hi!
I can't reproduce the results on OTB2015 as described...
"To reproduce the reuslts on paper, the pretrained model can be downloaded from Google Drive: SiamRPNOTB.model.
zap zap This model is the fastest (~200fps) Siamese Tracker with AUC of 0.655 on OTB2015. zap zap"
I reach to AUC of 0.56...
I did exactly what is written in the readme file.
"cd code
python test_otb.py
python eval_otb.py OTB2015 "Siam*" 0 1
"
What I am doing wrong?
Thank You a lot!!!
Olga

Hi, @olgapeled
I find the problem. You must use Python3.X.
The division in Python 3.x is different with the division in Python2.7.
e.g. this code will produce a different results in python2 and python3.
https://github.com/foolwood/DaSiamRPN/blob/167d0dbb38162cf34c74d51c540a492faf3d6e01/code/utils.py#L53
Since in visual tracking there are time-dependent relationships of each frames. The error will continue to accumulate to a drift. We will fix this python version compatibility problem in recent.
Thanks for this issue.

I meet the same problem.
When I used python 3.6.5, the result on the OTB is 0.57. And after changing the version of python to 2.7.12, the result is 0.65 the same as the author said.

@wosecz You are right!!!
Thank you very much all!!!!!!!!!
Are you planning to publish the training code?

Hi, @olgapeled
I find the problem. You must use Python3.X.
The division in Python 3.x is different from the division in Python2.7.
e.g. this code will produce different results in python2 and python3.
DaSiamRPN/code/utils.py
Line 53 in 167d0db
c = (original_sz+1) / 2
Since in visual tracking there are time-dependent relationships of each frame. The error will continue to accumulate to a drift. We will fix this python version compatibility problem in recent.
Thanks for this issue.

I must use python 2 to reproduce and not python 3....
the code does not reproduce the same results with python 3.
thank you for your very fast response.

All you need to do is replace '/' with '//' in the following two places, if you want to reproduce the 0.65 AUC on the OTB using python3.
https://github.com/foolwood/DaSiamRPN/blob/167d0dbb38162cf34c74d51c540a492faf3d6e01/code/utils.py#L53
https://github.com/foolwood/DaSiamRPN/blob/167d0dbb38162cf34c74d51c540a492faf3d6e01/code/run_SiamRPN.py#L33


Adding dark red and blue as optional date/time colors

Fixes #87

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

closing as stale


add view rbac to 'admin' and 'edit' default roles

Project admins can create/update/delete objects but cannot get/list/watch them. This allows OLM to work as expected for users who are not cluster-admins.
Signed-off-by: Aaron Weitekamp<EMAIL_ADDRESS>

/test e2e-aws

/test e2e-aws-olm

/ok-to-test

/test e2e-aws

/test e2e-aws-olm

@aweiteka Thanks for adding this! Could you run make release to have the changes reflected in our release manifests? Also please remove the changes to 0.7.1 manifests.

@ecordell thanks for the commit.

/approve
/lgtm

/retest

/retest


flinkcdc 拿不到数据库数据

启动flink连接pg数据库 ，请问怎么解决 一直提示这些io.debezium.connector.postgresql.connection.PostgresConnection [] - Cannot obtain valid replication slot 'h_appstore_new_slot_6' for plugin 'pgoutput' and database 'h_appstore_new' [during attempt 23 out of 900, concurrent tx probably blocks taking snapshot.

@PengMinghui973 Could you check if the privilege of the user connecting to the DB is correctly configured? There's a detailed description about permissions required for using Postgres CDC.

Closing this issue because it was created before version 2.3.0 (2022-11-10). Please try the latest version of Flink CDC to see if the issue has been resolved. If the issue is still valid, kindly report it on Apache Jira under project Flink with component tag Flink CDC. Thank you!


playPause() – It works badly.

When use playPause e.g.:
To recording lasting 3 minutes.
0:00 - playPause (play)
2:52 - playPause (pause)
3:00 - end plaing
playPause (play) - again begin from 2:52! Not from 0:00.
The same works with every last pause.

I add to mycode this:
			wavesurfer.stop();
		});```
and work good.

Thanks, @look997! The problem was we didn't set the finished state correctly. Now it should start playing from the beginning after it finishes.


First implementation

Write first a proof-of-concept of FUSE filesystem which use 0-db as backend for metadata and data.
Since 0-db in sequential mode generate id automatically when inserting new data, this id can be used as inode and thus the full low-level fuse implementation can be used.
There will be one namespace dedicated to metadata and one namespace dedicated for files data.
Each entries on metadata namespace defined an inode (directory, file, etc.) and each entries on data namespace defile a file
data block. Blocks are 128k limited.
In addition, 0-db will support data-delegation: moving datafile less/not used and retrieve them on-demand.
FUSE implementation

[x] FUSE low-level file system proof-of-concept
[x] Support directory listing
[x] Support mode change (chmod, chown, touch, ...)
[x] Support rename (partial)
[x] Support file read/write
[x] Support unlink
[x] Support directory remove
[x] Support symlinks
[x] Support hardlinks
[x] Support blocks deletion (for unlink and rename)
[ ] Support internal forget implementation
[x] Support correct overwrite/random write
[ ] Implement caching to improve performance
[ ] Support thread-safe for fuse parallel support (optional)

0-db adaptation

[x] Hook for sending datafile when immuable
[x] Hook for retrieve datafile missing
[ ] Increase amount of datafile possible (scalable)

Performance wise, current implementation reach ~100 MB/s with dd if=/dev/urandom of=test bs=128k count=8192 with local 0-db.
Memory usage of the zdbfs process running is ~2 MB.

Closing this issue, first implementation is done. Some points are missing but they are not needed yet.
New issues will be opened for next steps.


react-native sensitivity adjustment

Is it possible to adjust the sensitivity on react-native as is indicated in the android examples?

@jamesbalcombe83 - yes, it is an optional input argument when creating Porcupine. Please refer to the documentation.


[Feature] LazyVim setup

I tried using this plugin with LazyVim, I spent a lot of time and realized the solution was hidden under the following issue with a cryptic name 😅

#40

So in short, here is how I done it:
lua/plugins/yaml-companion.lua
return {
  {
    "someone-stole-my-name/yaml-companion.nvim",
    ft = { "yaml" },
    dependencies = {
      { "neovim/nvim-lspconfig" },
      { "nvim-lua/plenary.nvim" },
      { "nvim-telescope/telescope.nvim" },
    },
    config = function(_, opts)
      local cfg = require("yaml-companion").setup(opts)
      require("lspconfig")["yamlls"].setup(cfg)
      require("telescope").load_extension("yaml_schema")
    end,
  },
}

Here is
lua/plugins/lualine.lua
return {
  "nvim-lualine/lualine.nvim",
  event = "VeryLazy",
  opts = function(_, opts)
    opts.sections.lualine_z = {
      {
        function()
          local schema = require("yaml-companion").get_buf_schema(0)
          if schema.result[1].name == "none" then
            return ""
          end
          return schema.result[1].name
        end,
      },
      {
        function()
          return " " .. os.date("%R")
        end,
      },
    }
  end,
}

@someone-stole-my-name I can open a PR to update the README.md.

lifesaver, was going crazy!


Use a windshaft-specific name for the test user

Avoids problems with running cartodb-sql-api tests after
windshaft-cartodb tests (as the test database is not cleaned up)

Thanks :)


feature(retry-plugin): add meaningful error stacks

There's no formatting as we want this change to be propagated ASAP to improve created logs of tests using retry plugin.

FYI @shakederin


humioDataPath different from what humio expects

Earlier, when deploying humio to k8s our selves, we mounted humio-data to /data
Now, we have switched to using the operator with, S3 enabled, which have been working for several months with the following volume config:
  dataVolumeSource:
    emptyDir: {}

We want to follow best practices before going live with the operator, so we are trying out NVMe instances on AWS using the following config:
  dataVolumeSource:
      hostPath:
        path: "/mnt/localssd/humio"
        type: "DirectoryOrCreate"

We have also set the podSecurityContext to make sure that the user has the correct permissions.
podSecurityContext:
    fsGroup: 65534
    runAsUser: 65534
    runAsNonRoot: true

We then get the following error when starting a pod:
mkdir: cannot create directory '/data/logs': Read-only file system
ERROR StatusLogger Reconfiguration failed: No configuration found for 'AsyncContext@c387f44' at 'null' in 'null'
Humio data dir must be writable. Tried to write to dir=/app/humio/humio-data
06:26:23.927 [main] ERROR com.humio.core.Context$ - Humio data dir must be writable. Tried to write to dir=/app/humio/humio-data
06:26:23.927 [main] ERROR com.humio.main.ServerRunner$ - Got exception starting pid=1
com.humio.exceptions.HumioException: Humio data dir must be writable. Tried to write to dir=/app/humio/humio-data
	at com.humio.exceptions.HumioException$.apply(HumioException.scala:29) ~[humio-assembly.jar:0.1]
	at com.humio.core.Context$.verifyWritableDirectories(Context.scala:203) ~[humio-assembly.jar:0.1]
	at com.humio.main.ServerRunner$.main(ServerRunner.scala:103) ~[humio-assembly.jar:0.1]
	at com.humio.main.ServerRunner.main(ServerRunner.scala) ~[humio-assembly.jar:0.1]

It looks like we have no control over the /data path which is required by the humio pod to write logs in /data/logs but it seems like the operator is defaulting to /data/humio-data here https://github.com/humio/humio-operator/blob/b5153c9672c04bc2efa66884f027dde075faba43/controllers/humiocluster_pods.go#L50

Could you please check what the permissions are if you check /mnt/localssd/humio on the host itself?
In general you should be able to use e.g. "user-data" which gets executed on EC2 instance startup, which could then mount the ephemeral NVMe disk on /mnt/localssd/humio. If there's multiple NVMe disks, you can also RAID the disks together with RAID-0 and mount that to /mnt/localssd/humio for even better performance. After it is mounted, you can e.g. run chown on the mountpoint to make sure uid 65534 has access to write files inside /mnt/localssd/humio, also something you could do inside something like "user-data".

mkdir: cannot create directory '/data/logs': Read-only file system <- that entry is safe to ignore, since that's just the humio/humio-core container trying to create a directory which we won't be using here since the container outputs are sent to stdout and stderr of the container. Just in case you were wondering if this is a problem as well. I can see however that it might be a little misleading and is likely why you are thinking the mountpoint should be /data and not /data/humio-data.

Thanks for the suggestion.
We ended up running the following script on EC2 instance startup which did the trick:
mkdir /mnt/localssd/humio && chown 65534 /mnt/localssd/humio


Add Obama medal image

Fixes #45. If someone assigns themself to an issue, it has a 10% chance of sending the Obama gives himself a medal image.

SODA!!!!


Fix RP subnet migration

What is being addressed
When resizing the resource processor subnet, the entire RP TF module has been destroyed. That removed its managed identity which effectively makes existing workspaces error on some actions (like update).
How is this addressed

There's no easy way to automatically recover from this situation if the migration has already run.
This adjusts the migration to target the RP's VMSS instead of the entire module, hence keeping its managed identity intact.

/test


Drupal Core - Multiple Vulnerabilities - SA-CORE-2018-006

from https://www.drupal.org/sa-core-2018-006

Thank you


Highlight cidr.

We need to highlight cidr, otherwise, cidr will be as follows.

/cc @geeknoid @linsun

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: gyliu513
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: geeknoid
Assign the PR to them by writing /assign @geeknoid in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gyliu513 Note that this problem has been fixed by https://github.com/istio/istio.github.io/pull/1422.


Limit PodLister to RedisCluster NS

Fixes: #42
When listening the Pods associated to a redis-cluster the controler
should search only in the redis-cluster namespace.

Codecov Report

Merging #43 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   36.86%   36.86%
=======================================
  Files          37       37
  Lines        3423     3423
=======================================
  Hits         1262     1262
  Misses       2039     2039
  Partials      122      122

Impacted Files
Coverage Δ

pkg/controller/pod/control.go
47.82% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@dbenque-1a @sdminonne if you can check this PR. Thanks


Location implementation

Support to geo primitives like geo#Point could be added, maybe under a feature.

Hi guys,
Firstly, great work on this API - it's simple to use and intuitive.
I noticed that the module crashes when geolocation fails, perhaps from garbage data or the geolocation cannot return coordinates.
I have applied a fix in an offline branch created from the main branch and would like to contribute these changes.

Hi @thulasizwe-ntamane, great, do not hesitate to create a pull request !
You can watch for github doc about creating pull request : https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request


Translate Getting Started page

Includes:

Getting Started

Looks good, I didn't spot any mistakes  :thumbsup:


mirrord-cli : reqwest dependency missing "blocking" feature

Bug Description
mirrord-cli uses the "blocking" feature of reqwest:
https://github.com/metalbear-co/mirrord/blob/255fbe55262019f282010951d9d6f8158ec2530d/mirrord-cli/src/main.rs#L193
but does not enable that feature in its toml file
https://github.com/metalbear-co/mirrord/blob/255fbe55262019f282010951d9d6f8158ec2530d/mirrord-cli/Cargo.toml#L26
should look something like this (docs):
reqwest = { version = "0.11.10", features = ["blocking"] }

Steps to Reproduce

Clone main branch (as of this commit)
Open project in dev container (I'm using VSCode remote containers extension)
run cargo check or cd mirrord-cli && cargo check
💥 (see backtrace)

Backtrace
if let Ok(client) = reqwest::blocking::Client::builder().build() {
   |                         ^^^^^^^^ could not find `blocking` in `reqwest`

Relevant Logs
No response
Your operating system and version
local: macOS Monterey version 12.4, container: Debian OS variant buster
Local process
N/A
Local process version
No response
Additional Info
If you have already been working with the source code it may be necessary to rebuild your container to simulate this issue.
I'm not sure if I would call it "cached", but after I solved this issue once "in passing" i was unable to make it happen again regardless of cargo clean ext.

Thanks for the detailed report! Are you interested in sending a PR?


Backlit is not working on kernels starting from version 6.1 and above.

I have two kernels installed in my fedora system. One is 6.0.18, 6.1.8 and 6.1.9. Backlit works on the 6.0.18 version but not on any other versions above it.

Faustus module has issues with kernel 6.1 and above.  A workaround is provided in this fork which can fix the issue. If this doesn't solve your issue, please report back with a proper error log

Thanks it worked.
But now there is another problem. The aurora version 1.3.2 stable works fine but other latest versions are stucked at (install packages) page showing (nothing to install).

It works when i run them with root permissions from terminal but doesn't show the led modes (static, strobing, colour cycle, breathing) .

The reason for aurora to enter setup mode is that Faustus module isn't installed properly.
Anyhow kernel 6.1 or above doesn't need faustus module to control keyboard backlit. This change is being implemented in aurora, starting from 1.7.5-beta+1

I have installed it properly.


Network Graph from SciPy Hierarchical Clustering

Hi,
Using SciPy Hierarchical Clustering how can we create the network graph?
from matplotlib import pyplot as plt
from scipy.cluster.hierarchy import dendrogram, linkage
import numpy as np
generate two clusters: a with 100 points, b with 50:
np.random.seed(4711)  # for repeatability of this tutorial
a = np.random.multivariate_normal([10, 0], [[3, 1], [1, 4]], size=[100,])
b = np.random.multivariate_normal([0, 20], [[3, 1], [1, 4]], size=[50,])
X = np.concatenate((a, b),)
print X.shape  # 150 samples with 2 dimensions
plt.scatter(X[:,0], X[:,1])
plt.show()
generate the linkage matrix
Z = linkage(X, 'ward')
from scipy.cluster.hierarchy import cophenet
from scipy.spatial.distance import pdist
c, coph_dists = cophenet(Z, pdist(X))
c
calculate full dendrogram
plt.figure(figsize=(25, 10))
plt.title('Hierarchical Clustering Dendrogram')
plt.xlabel('sample index')
plt.ylabel('distance')
dendrogram(
Z,
leaf_rotation=90.,  # rotates the x axis labels
leaf_font_size=8.,  # font size for the x axis labels
)
plt.show()
Now how do we plot the network graph like yours instead of dendrogram?
Kindly assist. Thank you!

Hi,
I think that this question would be more suitable for the NetworkX or SciPy discussion groups.
I am closing this issue as not relevant to this project.


Unknown field 'teamUser'

Hello !
I upgraded to the v2, good work thanks!
When I go to /settings/teams, I've got an internal error (500), in the terminal I've got that :
5|umami  | PrismaClientValidationError:
5|umami  | Unknown field `teamUser` for include statement on model Team. Did you mean `teamUsers`?
5|umami  |     at mi.validate (/node_modules/@prisma/client/runtime/library.js:149:91)
5|umami  |     at rn.createMessage (/node_modules/@prisma/client/runtime/library.js:164:13651)
5|umami  |     at /node_modules/@prisma/client/runtime/library.js:177:10955
5|umami  |     at runInChildSpan (/node_modules/@prisma/client/runtime/library.js:70:25817)
5|umami  |     at t._executeRequest (/node_modules/@prisma/client/runtime/library.js:177:10944) {
5|umami  |   clientVersion: '4.12.0'
5|umami  | }

Hello, I'm trying to track down the error. Is your instance using MySQL or postgres?

Hello, I'm trying to track down the error. Is your instance using MySQL or postgres?

Hello! I've got MariaDB!

This is fixed in dev. Will release a hotfix with as many bugs included as we can.

Thanks!


Seting stddev as True, but it should be a float

https://github.com/iwyoo/ConvLSTMCell-tensorflow/blob/787388ad0d63545c8fd756ab46ee25ca54c0310a/ConvLSTMCell.py#L34

Thank you for noticing me. It is now fixed!


Load multiple alphas in one simulating operation.

What is difference between this and #13?

Also, please add description in any issues.


How to import and use the npm component in another project?

Thank you very much for your boilerplate and explanations.
I work a lot with react, but did not yet created a reusable component as an npm packge.
I followed your instructions and wanted to test the created package in a react app built with create-react-app.
In this example I installed the package connect-widgets (which is my npm package with components) directly from github.

Unfortunateley I have no clue how I can actually use the component now.
Isn't there a index.js missing in the boilerplate, which actually exports the things to the projects importing this package?
import MySuperCoolComponent from 'connect-widgets';
results in

import MySuperCoolComponent from 'connect-widgets/src/lib';
results in

Did I forgot a important step here?
When I take a look to the folder node_modules/connect-widgets I don't find a transpiled lib folder, only the untranspiled src.
Since /lib is part of your .gitignore I think it works as expected, but then there is something missing...

The goal would be to have imports like
import { SuperComponent, FancyComponent, UglyComponent } from "connect-widgets"
but I could not figure it out yet.
Thanks for help.

As you pointed out, the /lib folder is listed in .gitignore and therefore not uploaded to Github. If you remove it from .gitignore and commit the lib folder and push to your repo, you should be able to install your component directly from GitHub.
The reason why I still chose to put the lib-folder inside gitignore is because the typical use case is to publish to npm. Npm looks at the .npmignore file instead of .gitignore so the lib folder will be included in the npm repo by default.
Hope that helps!

Thank you for clarification. This makes sense.
While I used Github to just test my "private npm package" I provoked a problem people normally don't have.
With a real npm repository and npm publish it works as expected!


WATIR goes into infinite loop when the element is invisible

WATIR goes into infinite loop when the element is invisible, It's not coming out of the loop in given time of WATIR default time out.

Make sure you are seeing this with Watir 6.8.3
Provide a reproducible test case.

@titusfortner  yes it works fine in WATIR 6.8.4 now. Thanks.


changing column width

Making an issue out of the plans listed in #5. Documenting it for the future.
We could/should widen all of the columns a bit more.
Things we need to keep in mind:

There needs to be enough white space; maybe the valid combinations of columns should add up to around 96%? (this was the standard for the simple-grid library)
sum of column width percentages <= 100%, for valid combinations

The % refers to the width attribute in each .col-# class.
We can get a list of width %s using something like n/12 * 100.

moved to linear


Status/Grafana doesnt work

The link from the sidebar to Grafana doesn't work. The relevant string is transmitted from (1) to (2) but somehow disappears from (3)
(1) written as LASAIR_GRAFANA_URL in
~/lasair4/common/settings.py line 108
(2) gets converted to lasair_grafana_url in
~/lasair4/webserver/lasair/apps/status/views.py line 106
(3) but not available when this template is rendered
~/lasair4/webserver/lasair/templates/includes/sidebar.html line 154

All fixed and deployed to dev and production


python36Packages.readme_renderer: 22.0 -> 24.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-readme_renderer/versions.
meta.description for python36Packages.readme_renderer is: '"readme_renderer is a library for rendering readme descriptions for Warehouse"'.

Checks done (click to expand)

built on NixOS

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 24.0 with grep in /nix/store/98b8ghak9zc84qn1acl26gv4301pmxc8-python3.6-readme_renderer-24.0

directory tree listing: https://gist.github.com/fc30ac3c891f626294acad928832827c

du listing: https://gist.github.com/40fea0f5136900ec7afb0503e65510d2

Rebuild report (click to expand)

24 total rebuild path(s)
6 package rebuild(s)
6 x86_64-linux rebuild(s)
6 i686-linux rebuild(s)
6 x86_64-darwin rebuild(s)
6 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
python27Packages.readme_renderer
python27Packages.restview
python27Packages.twine
python36Packages.readme_renderer
python36Packages.restview
python36Packages.twine

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/98b8ghak9zc84qn1acl26gv4301pmxc8-python3.6-readme_renderer-24.0 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A python36Packages.readme_renderer https://github.com/r-ryantm/nixpkgs/archive/482a6d610f7d8f5294c6fddfcd11d21e0984781e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/98b8ghak9zc84qn1acl26gv4301pmxc8-python3.6-readme_renderer-24.0
ls -la /nix/store/98b8ghak9zc84qn1acl26gv4301pmxc8-python3.6-readme_renderer-24.0/bin

Success on x86_64-linux (full log)
Attempted: python36Packages.readme_renderer
Partial log (click to expand)

tests/test_integration_distutils.py ......                               [  9%]
tests/test_markdown.py .........................................         [ 71%]
tests/test_noextra.py ss                                                 [ 74%]
tests/test_rst.py ................                                       [ 98%]
tests/test_txt.py .                                                      [100%]

============== 64 passed, 2 skipped, 1 deselected in 0.92 seconds ==============
pytestcachePhase
/nix/store/98b8ghak9zc84qn1acl26gv4301pmxc8-python3.6-readme_renderer-24.0

Success on x86_64-darwin (full log)
Attempted: python36Packages.readme_renderer
Partial log (click to expand)

tests/test_integration_distutils.py ......                               [  9%]
tests/test_markdown.py .........................................         [ 71%]
tests/test_noextra.py ss                                                 [ 74%]
tests/test_rst.py ................                                       [ 98%]
tests/test_txt.py .                                                      [100%]

============== 64 passed, 2 skipped, 1 deselected in 0.97 seconds ==============
pytestcachePhase
/nix/store/3awa25s32zldg3knrivmshb40g7gb51j-python3.6-readme_renderer-24.0

Success on aarch64-linux (full log)
Attempted: python36Packages.readme_renderer
Partial log (click to expand)

tests/test_integration_distutils.py ......                               [  9%]
tests/test_markdown.py .........................................         [ 71%]
tests/test_noextra.py ss                                                 [ 74%]
tests/test_rst.py ................                                       [ 98%]
tests/test_txt.py .                                                      [100%]

============== 64 passed, 2 skipped, 1 deselected in 1.93 seconds ==============
pytestcachePhase
/nix/store/yk2dwq3w5vc0m2llb25cx73whyv86xwk-python3.6-readme_renderer-24.0

@GrahamcOfBorg build python2Packages.restview python3Packages.restview

Success on x86_64-linux (full log)
Attempted: python2Packages.restview, python3Packages.restview
Partial log (click to expand)
Doctest: restview.restviewhttp.SyntaxHighlightingHTMLTranslator.link_local_files ... ok
parse_address (restview.restviewhttp)
Doctest: restview.restviewhttp.parse_address ... ok

----------------------------------------------------------------------
Ran 74 tests in 0.192s

OK
/nix/store/cai6ral0pjk2mjqv6jaijd9b0fscnxh2-python2.7-restview-2.9.1
/nix/store/x6bkdn7w9agb1p1adxz1xp91754kv145-python3.6-restview-2.9.1

Success on aarch64-linux (full log)
Attempted: python2Packages.restview, python3Packages.restview
Partial log (click to expand)
Doctest: restview.restviewhttp.SyntaxHighlightingHTMLTranslator.link_local_files ... ok
parse_address (restview.restviewhttp)
Doctest: restview.restviewhttp.parse_address ... ok

----------------------------------------------------------------------
Ran 74 tests in 0.423s

OK
/nix/store/pf8vsps34ddngah4kkqpsifbp61ngkaj-python2.7-restview-2.9.1
/nix/store/m15dckvr6y4hm7xanhvsnxg7b5fbqm7w-python3.6-restview-2.9.1

@GrahamcOfBorg build python2Packages.twine python3Packages.twine

Success on x86_64-linux (full log)
Attempted: python2Packages.twine, python3Packages.twine
Partial log (click to expand)
/build/twine-1.12.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1/lib  /nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1/bin
patching script interpreter paths in /nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1
checking for references to /build in /nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1...
wrapping `/nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1/bin/twine'...
/nix/store/rcm54h3k8lbypf6nfgr8dk2n1blyg1pg-python2.7-twine-1.12.1
/nix/store/8yyn2q12ckp4ipva1ddaiaic2x3zfmna-python3.6-twine-1.12.1

Success on aarch64-linux (full log)
Attempted: python2Packages.twine, python3Packages.twine
Partial log (click to expand)
/build/twine-1.12.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1/lib  /nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1/bin
patching script interpreter paths in /nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1
checking for references to /build in /nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1...
wrapping `/nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1/bin/twine'...
/nix/store/yvjz4zs7i1gf5siyn3rv305n5k8i82jp-python2.7-twine-1.12.1
/nix/store/vz67q6aaib43kj6dpnk2qsf5s4qw4ip0-python3.6-twine-1.12.1


Document CONVOX_RACK, CONVOX_PASSWORD env var

Release Playbook

[ ] Rebase against master
[ ] Code review
[ ] Merge into master
[ ] Verify changes at http://site-staging.convox.com
[ ] Promote release on site-production in the convox/production Rack

 Document CONVOX_PASSWORD, CONVOX_HOST env var


receive_message with SqsClient hangs when message_attribute_names are requested

When specifying message attribute names, the SqsClient hangs trying to receive messages.
ReceiveMessageRequest {
    message_attribute_names: Some(vec![String::from("All")]),
};

Setting this field to None makes the client work.
I've confirmed these message attributes exists by using the aws cli with the same configuration.
aws sqs receive-message --queue-url https://sqs.my_queue --message-attribute-names All

Any pointers? I'm happy to help with the investigation and fix if needed as I'm currently using this on a project.

https://rusoto.org/debugging.html has info on how to capture the requests and responses. If we can get a sample of the request sent to AWS we can compare to the SQS docs and see what we need to fix. 👍

Hello @eschudt , I was unable to reproduce this issue using the code below. I also used both attribute_names and message_attribute_names as the field. Are you still facing this issue?
use rusoto_core::{Region, RusotoError};
use rusoto_sqs::{ReceiveMessageRequest, Sqs, SqsClient};

fn main() {
    let sqs_client = SqsClient::new(Region::UsEast1);
    let resp = sqs_client.receive_message(ReceiveMessageRequest {
        attribute_names: Some(vec![String::from("All")]),
        queue_url: "xxxx".to_owned(),
        ..Default::default()
    });
    println!("resp: {:#?}", resp.sync());
}


Touch capture bugfixes

integrated bugfix where DRAG, RELEASE, CANCEL events weren't capturing touch
added fix so that touch events will only be captured if m_isCapturingTouch is true (which was the intended behavior)

Looking good to me!


Add function UpdateRequestWithContext()

Also renam Context variable in DigestRequest struct to obey naming
conventions. Improve some comments and remove now unnecessary
function DigestRequest.setContext().
Change-Id: I9c348c1ee855a2319f6811b6a008206c563b56c9

renamed


DS-Material Selection different options-schema strategies

The rendering and validation for selection widgets is currently mostly:

schema keyword enum for "scalar-value-selections"/"select single-option"
schema keyword items.oneOf for "array-value-selections"/"select multiple-options"

It should be possible in the future to use:

enum, oneOf for single-option
(items).oneOf for multiple-options and single-option
??

The rendering should be unified if possible.

Release with: @ui-schema/ds-material 0.4.0-alpha.6
Added new hook: useOptionsFromSchema (atm. only in ds-material )
Switched to new unified options rendering, to support enum/oneOf for single-select and oneOf for multi-select - without needing to know what was given in the option-item renderering/parent component.
switched the following components:

SelectChips: items.oneOf
SelectMulti: items.oneOf
Select: enum and oneOf
OptionsRadio: enum and oneOf
OptionsCheck: items.oneOf

There was a bug for oneOf now, used the parentSchema instead of the item-schema for getting the title.

Fixed at this commit, but forgot to tag it.


How to deploy in a different region than us-east-1?

HI there,
Looking forward to trying this stack for linking our Tableau visualisations to our sagemaker endpoints. I am, however, struggling to get the quick start template deployed to eu-west-1 instead of us-east-1.
I am selecting the region in my console as eu-west-1, then going to CF Quick Start, then I'm using the template as linked here:
https://aws-quickstart.s3.us-east-1.amazonaws.com/quickstart-tableau-sagemaker/templates/sagemaker-for-tableau-workload.template
I then enter my VPC, domain, cert details etc.
I suspect what could be breaking and is also confusing is the "Quickstart Bucket Name" and "Quickstart Bucket Region" - I'm leaving this as defaults (with the bucket located in us-east-1). I suspect this could be the problem - but does this then mean I have to copy the contents of your official Quickstart bucket and redeploy in my account to eu-west-1 to be able to deploy there?
Thanks
Nico

@nicokruger I am checking this and get back to you shortly.

@nicokruger This should be fixed in the PR #35 . Can you try again and report back if it resolved the issue?


AT-4.8: Manage the details of any found item

Test Case ID: AT-4.8
User Story: ALTA-4.8 (#131)
As a stock-keeper, I want to be able to manage the details of any found item during an audit, so that I can fix any mistakes I made.
Acceptance Criteria
Given that the user is logged into the mobile application as a stock-keeper,

The user should be redirected to the Audits page where the list of assigned audits is displayed.
The user selects any audit to navigate to the audit's Bins page.
The user selects any bin to navigate to the bin's Items page.
The user is presented with the list of items to be audited and a tab labeled Completed Items. The user selects the Completed Items tab.
The user is presented with the list of validated items and their corresponding status (provided, missing, new). As well, each item contains a Settings button represented as a gear icon.
The user selects the Settings button. A bottom popup appears allowing the user to manage the details of the item with the Edit or Remove buttons. The user can also cancel the operation by selecting the Cancel button.
The user selects the Edit button to leave a comment on a found item and selects the Submit button.
A second pop-up appears to ensure the user that the record is successfully modified. The user selects the Dismiss button to close the pop-up window.

This checkpoint will improve the quality of data captured from the field. Accepted.


Enhancement: auto-reconnect (if needed) when reclaiming a Transport connection from the SMTP connection pool (to avoid needless errors)

Hi, first I'd like to thank the authors of this library, it's just what I needed and the API is awesome.
I have an email notification service that uses 2 different SMTP servers depending on some rules (so they're independent, I have 2 separate Mailer instances).
They sometimes need to send a bunch of emails at the same time, so I'd like to reuse the connections as much as possible to improve performance.
After testing my Mailers with a 60 second expiration time for the connection pool like this:
MailerBuilder.withSMTPServer(host, port, username, password)
    .withConnectionPoolExpireAfterMillis(60000)

One of the SMTP servers is OK with that, but the other seems to allow about 30 seconds before disconnecting the client. I know most servers only allow a few seconds before dropping the connection, but I'd like to take advantage of the first server.
This is the exception I get when the connection times out:
org.simplejavamail.mailer.internal.MailerException: Failed to send email<EMAIL_ADDRESS>reason: Third party error
	at org.simplejavamail.mailer.internal.SendMailClosure.handleException(SendMailClosure.java:97)
	at org.simplejavamail.mailer.internal.SendMailClosure.executeClosure(SendMailClosure.java:89)
	at org.simplejavamail.mailer.internal.AbstractProxyServerSyncingClosure.run(AbstractProxyServerSyncingClosure.java:56)
	at org.simplejavamail.mailer.internal.MailerImpl.sendMail(MailerImpl.java:345)
	at org.simplejavamail.mailer.internal.MailerImpl.sendMail(MailerImpl.java:331)

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 421 Timeout - closing connection
	at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
	at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)
	at org.simplejavamail.mailer.internal.util.TransportRunner.lambda$sendMessage$0(TransportRunner.java:48)
	at org.simplejavamail.mailer.internal.util.TransportRunner.sendUsingConnectionPool(TransportRunner.java:78)
	at org.simplejavamail.mailer.internal.util.TransportRunner.runOnSessionTransport(TransportRunner.java:64)
	at org.simplejavamail.mailer.internal.util.TransportRunner.sendMessage(TransportRunner.java:47)
	at org.simplejavamail.mailer.internal.SendMailClosure.executeClosure(SendMailClosure.java:84)

I guess I could check the cause and retry myself, but maybe a setting could be added to automatically check if the connection is still valid before attempting to send an email?
Like adding at TransportRunner.java:48 :
if (!transport.isConnected()) {
    transport.connect();
}

My previous quick and dirty implementation using JavaMail 1.6 directly reused a single Session/SmtpTransport instance (pretty much like this example: https://stackoverflow.com/a/30932969), checking transport.isConnected() each time before attempting to send an email and that seemed to work OK (it only reconnected as necessary), but obviously it was limited to a single thread.
Thanks!

Hhm, interesting idea. The challenge for me is the fact that the location where the Transport is used is different from the location where the Transport is initialized. On other words, by the time you would want to check if a connection is still there or reconnect, the knowledge is gone and no link back to reinitialize a transport.
I would have to rework the Batch Module significantly to somehow encapsulate the initializing logic so it can be triggered again when the connection is required. It would significantly reduce the risk timeout errors significantly though...

Hhm, maybe not... I already built in a reallocateForReuse into the object pool.

(..)
Like adding at TransportRunner.java:48 :
if (!transport.isConnected()) {
    transport.connect();
}

This is not a good idea, because this is the code used when not using the Batch Module. In this scenario it is assumed any mailing actions finished and close automatically so the JVM won't be blocked. So reusing a Transport instance here and reconnect is against this idiom.
I fixed it in the SMTP Connection Pool sub project, however. Before I update Simple Java Mail and release a new version, could you manually update your smtp-connection-pool dependency to version 2.1.2 and verify it works for you?

I had to update the main project to use a newer version of smtp-connection-pool anyway, so now this change is hiking along for the ride. Enjoy it in 7.7.0!

Wow, awesome! I'm on vacation this week, but I'll test it when I come back
and let you know of any findings. Thanks!
On Mon, Jan 16, 2023, 20:39 Benny Bottema @.***> wrote:

I had to update the main project to use a newer version of
smtp-connection-pool anyway, so now this change is hiking along for the
ride. Enjoy it in 7.7.0!
—
Reply to this email directly, view it on GitHub
https://github.com/bbottema/simple-java-mail/issues/430#issuecomment-1384673900,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAUU53TZIFYM2CRALK4HUBDWSXL2LANCNFSM6AAAAAATKTMI6A
.
You are receiving this because you authored the thread.Message ID:
@.***>

Did you get a chance to have a look?


remove deprecate ciphers in shadowsocks

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.

Is it better to be merged into v5?

Is it better to be merged into v5?

Is it better to be merged into v5?

ss has been removed in the latest version https://github.com/shadowsocks/shadowsocks-windows/releases/tag/<IP_ADDRESS>

Is it better to be merged into v5?

ss has been removed in the latest version https://github.com/shadowsocks/shadowsocks-windows/releases/tag/<IP_ADDRESS>

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
cc @maskedeken

sysctl -w net.core.rmem_max=2500000

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
cc @maskedeken

sysctl -w net.core.rmem_max=2500000

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
cc @maskedeken

sysctl -w net.core.rmem_max=2500000

Should we state this in the guide?

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
cc @maskedeken

sysctl -w net.core.rmem_max=2500000

Should we state this in the guide?

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
cc @maskedeken

sysctl -w net.core.rmem_max=2500000

Should we state this in the guide?

这是quic-go的信息。如果不调整sysctl.conf，quic-go发起连接时也会通过setReadBuffer调大缓存大小，这个出错信息的出现，表示setReadBuffer最终也没有把缓存调整到期望的大小

TestQUICNameServer to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
cc @maskedeken

sysctl -w net.core.rmem_max=2500000

Should we state this in the guide?

这是quic-go的信息。如果不调整sysctl.conf，quic-go发起连接时也会通过setReadBuffer调大缓存大小，这个出错信息的出现，表示setReadBuffer最终也没有把缓存调整到期望的大小


Spurious error when connecting to remote session?

I connected to a remote session as follows:
import fiftyoneas fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("quickstart")

# Remote
session = fo.launch_app(dataset=dataset, remote=True)

# Local
fiftyone app connect --destination [<username>@]<hostname> --port 5151

On the local machine, I see:
Connected to fiftyone on local port 5151
If you are not connecting to a remote session, you may need
to start a new session and specify a port.

App launched

To exit, close the app or press ctrl + c

Then, on the remote machine, I do:
session.view = dataset.take(10)

On the local machine, the App updates as expected. Things seem to be working as expected. However, in the shell running the App, I see this (non-fatal) error:
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/mongoengine/queryset/base.py", line 260, in get
    result = next(queryset)
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/mongoengine/queryset/base.py", line 1590, in __next__
    raw_doc = next(self._cursor)
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/pymongo/cursor.py", line 1164, in next
    raise StopIteration
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/Brian/dev/fiftyone/fiftyone/core/dataset.py", line 1465, in _load_dataset
    dataset_doc = foo.DatasetDocument.objects.get(name=name)
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/mongoengine/queryset/base.py", line 263, in get
    raise queryset._document.DoesNotExist(msg)
fiftyone.core.odm.dataset.DoesNotExist: DatasetDocument matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/socketio/client.py", line 613, in _handle_eio_message
    self._handle_event(pkt.namespace, pkt.id, pkt.data)
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/socketio/client.py", line 497, in _handle_event
    r = self._trigger_event(data[0], namespace, *data[1:])
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/socketio/client.py", line 552, in _trigger_event
    event, *args)
  File "/Users/Brian/dev/env/fifty3/lib/python3.6/site-packages/socketio/namespace.py", line 18, in trigger_event
    return getattr(self, handler_name)(*args)
  File "/Users/Brian/dev/fiftyone/fiftyone/core/client.py", line 64, in on_update
    self.data = self.data_cls.from_dict(data)
  File "/Users/Brian/dev/fiftyone/fiftyone/core/state.py", line 80, in from_dict
    dataset = fod.load_dataset(dataset.get("name"))
  File "/Users/Brian/dev/fiftyone/fiftyone/core/dataset.py", line 83, in load_dataset
    return Dataset(name, _create=False)
  File "/Users/Brian/dev/fiftyone/fiftyone/core/singleton.py", line 36, in __call__
    instance.__init__(name=name, _create=_create, *args, **kwargs)
  File "/Users/Brian/dev/fiftyone/fiftyone/core/dataset.py", line 174, in __init__
    self._doc, self._sample_doc_cls = _load_dataset(name)
  File "/Users/Brian/dev/fiftyone/fiftyone/core/dataset.py", line 1467, in _load_dataset
    raise DoesNotExistError("Dataset '%s' not found" % name)
fiftyone.core.dataset.DoesNotExistError: Dataset 'quickstart' not found

Duplicate of #208


Add missing terminal punctuation

Information about default values is appended to the parameter description in the documentation, so it's important that each description is a complete sentence.

Amends https://github.com/dita-ot/dita-ot/commit/77a0f5ba32a6c7c74baeabd1344c37bae19814a0 from https://github.com/dita-ot/dita-ot/pull/3606.


DateTime? is not mapped in special scenario

Program.txt
I've attached a custom scenario I encountered in which I have type A and Type B , both having 2 properties of type DateTime?  with the same name .
But if I use TinyMapper.Bind before doing the mapping ( I have 2 string properties on the types with different names )  the mapping for DateTime? properties no longer work .
I saw that this is specific to DateTime? properties only. I tried with int? and it works .
I've attached a console application program cs file to reproduce this issue .
Any help would be appreciated .
I'm interested to find out if I'm doing something wrong or if this is a possible bug in TinyMapper .
Cheers,
Claudiu

Hi Claudiu,
It was a bug, sorry. Fixed in 2.0.8 and added a test based on your sample. Thanks!

Cheers mate !
We're integrating the new version .
I'll let you know the feedback after the tests pass.
Thank you !

Everything looks good .
Bug is fixed, I'll close the issue .

Thanks a lot :)


fix: type re-exports

#280  👈
main

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

Join @refcell and the rest of your teammates on  Graphite


[Bug]: Incorrect error displayed when GSheet query is missing 'table heading row index' field

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Incorrect For input string: "" is displayed when 'Table Heading Row Index' is missing on Google Sheet query

Steps To Reproduce

Fill in a Google Sheet query without providing a value for Table Heading Row Index
Run the query and observe error

Environment
Production
Version
Cloud

Correct error is now displayed


Cannot set identifier

Bug type
Component
Component name
MudDataGrid
What happened?
I have a project where every thing is as abstract as possible and to do that i have a class with 100 properties called Col001, Col002 ... Col100.
I use this class inside a MudDataGrid and to display all columns i use reflection and grab only the columns i need and create the TemplateColumns.
Untill here everything is fine but when i try to use the sort function with server reload i need in the GridState to grab the column the user want to filter by, and the only string i get in state.SortDefinition[0].SortBy is a GUID.
@{
    var type = typeof(BrowseData);
    var properties = type.GetProperties();
    columns.Clear();

    for (int i = 0; i < Sed.BrowseColumns.Count; i++)
    {
        string propName = "Col" + (i + 1).ToString().PadLeft(3).Replace(" ", "0");
        var prop = properties.FirstOrDefault(x => x.Name == propName);

        string columnName = Sed.BrowseColumns[i];

       // Option using the propertyColumn
       // <PropertyColumn T="BrowseData" TProperty="string" Property="x => (string)prop.GetValue(x)" Title="@columnName"/>

        // Option using the TemplateColumn
        <TemplateColumn Title="@(columnName)" Class="multiline-text" >
             <CellTemplate>
                 <MudText>@(prop?.GetValue(context.Item)?.ToString()?.Trim())</MudText>
             </CellTemplate>
        </TemplateColumn>

        columns.Add(propName);
    }
}

BrowseData is the class that hold the 100 columns.
As you can see i tried also to use the propertyColumn
Expected behavior
I understand that normally using the lambda expression the component is able to get also the property name that it will give me in the gridstate sortby but it would be just fine to give me the possiblity to pass an identifier like that:
<TemplateColumn ... Identifier="Col001">

Reproduction link
none
Reproduction steps

...
Relevant log output
No response
Version (bug)
6.19.1
Version (working)
No response
What browsers are you seeing the problem on?
Chrome, Edge
On which operating systems are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Template collumn has a property called SortBy. This should work.
look at the unit tests:
https://github.com/MudBlazor/MudBlazor/blob/dev/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridSortableTemplateColumnTest.razor

ok but the sortBy will only give me in the ServerReload the identifier of the column, but the way i added the column doesn't allow me to recognise the column because the identifier given to the column is a random GUID

doesnt it work if you do:
<TemplateColumn Title="@(columnName)" Class="multiline-text" SortBy="x => (string)prop.GetValue(x)">

or
<TemplateColumn Title="@(columnName)" Class="multiline-text" SortBy="@(_ => columnName)">

I need to do the order by on server side because on client side i only have part of the data due to pagination. so i need to understand on the method ServerReload what column the user selected and pass that information to the server that will do the OrderBy

you should be able to use the DataGrid MudDataGrid<TItem> object to get the SortDefinitions.
in these objects you should be able to get all the information to build a request to your server and repopulate the itmes collection
for refferences: https://mudblazor.com/api/datagrid#properties

Normally yes, but because i've created the columns using projection in foreach cycle there seems to be no way to know programmatically wich column the user want to order

Hi,
It would be nice if you attached a TryMudBlazor example to play with.
As a workaround, you can set the Title for the TemplateColumn, then get a ref of your MudDataGrid, iterate through RenderedColumns, find the TemplateColumn by that GUID, and extract the title.

Another option is to create your own TemplateColumn by inheriting Column<T> and override how the PropertyName behaves and use own logic instead of the random guid. I think all the needed tools are available.

@ScarletKuro
I have been browsing for an explanation of how to user serverside sorting with the datagrid.
It seems very weird to me that there is no out of the box solution that works for this scenario.
Are these 2 solutions really the recommended approach?
I have taken the trymudblazor from https://mudblazor.com/components/datagrid#server-side-filtering,-sorting-and-pagination
and added a boolean FixMe to the Element class.
because I want to present "FixMe" as  something else than "True" and "False", I have to use a template column.
What is the correct way to make that sortable serverside?
https://try.mudblazor.com/snippet/cacoOXRuzSeAJKbV
I have also looked at
#9241
To make this easy to work with, I have added our own implementation of TemplateColumn, but I find it hard to believe that this should be needed for this basic use case
@typeparam T
@inherits TemplateColumn<T>

@{
  base.BuildRenderTree(__builder);
}

@code {

  [Parameter]
  public string SortIdentifier { get; set; } = Guid.NewGuid().ToString();

  // we can not override this property directly as it has a private set method
  public override string PropertyName {
    get => SortIdentifier;
  }
}

That is indeed a much easier way to do it.
Thanks a lot.
I was looking for a DisplayFunc property on  but could not find it. I think the documentation should have a bullet added about exactly this, how to customize the displayvalue of a PropertyColumn. At least I did not realize you could do this, instead of using a template column.


help requested for running  'train_emoti_convnet_flip.py' error

Hi,
I am trying to run your code using all the data sets that you have been used except TFD data. I have done      pre processing following your code,but while working with CNN codes,train_emoti_convnet_flip.py gives me error. I have attached my error file here. Can you please give me solution.
error.txt
Thank you!

Were you able to run this? Where are the data sets available?


CMake can't find controller_interface

`--- stderr: ur_controllers
CMake Error at CMakeLists.txt:14 (find_package):
By not providing "Findcontroller_interface.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"controller_interface", but CMake did not find one.
Could not find a package configuration file provided by
"controller_interface" with any of the following names:
controller_interfaceConfig.cmake
controller_interface-config.cmake

Add the installation prefix of "controller_interface" to CMAKE_PREFIX_PATH
or set "controller_interface_DIR" to a directory containing one of the
above files.  If "controller_interface" provides a separate development
package or SDK, be sure it has been installed.

Failed   <<< ur_controllers [2.00s, exited with code 1]
Aborted  <<< myworkcell_support [8.75s]`

This looks like there are dependencies missing. Did you install all the dependencies using the rosdep install command as explained in the README? Did that show any errors?

Yes I was missing the ros dependancies. Thanks


Updated to .NET 4.5.2 and to work with SharpDX 3.0.0

Hi, nobody was raising to a challenge so I did my humble fork. These are some changes I did:

Interop - I basically cloned the auto-generated unit from SharpDX (named it Native) and added another class to SharpCLI to process. Therefore Fixed method is not faked and is fast as was before.
Shader stages - I was trying to solve how to deal with classes instead of IntPtr then I gave up and basically I'm calling (now internal) methods in SharpDX via reflection. Therefore nothing changed except it does reflection (all those MethodInfos can be cached probably).
WP8 - Removed from building scheme - because I can't imagine how it even work with new SharpDX
Mono.CCecil - I updated to <IP_ADDRESS> to be able to utilize autogeneration from 1)
Misc - Quite few basically cosmetic changes there were quite straightforward (ex. SetInputLayer to InputLayer = value, etc.) and also some things that just happened (auto update of some packages) and minor details.

Still remains: Fonts were not visible in my game, I still need to determine whether it's caused by SharpDX or something trivial.
This is my first fork, first pull request, first time with GIT. I hope I didn't messed up something. It just I really need SharpDX Toolkit to be up-to-date. It works with my quite complex project (2D isometric game in early stages). I didn't noticed any slow downs or problems, but I don't use all of the things from Toolkit so let me know.

OK, I fixed that issue with fonts. It was my mistake. Everything is running for me now as it did before in version 2.6.x. No changes required in end-project (except for new Toolkit assemblies obviously).

Someone as already started a similar work #3, Ideally I would prefer If you could join the effort with @tomba I guess that you share basically the same goals?!

Not sure to follow exactly, but having either SharpDX as a submodule of the Toolkit, and referencing directly the SharpCli csproj from there could do the trick (and modify Toolkit target files accordingly)
I don't mind to make this methods public in SharpDX directly.
we can remove support for WP8
same as 1) if sub-module
ok

Hi, thank you for your response. #3 was exactly the reason I started to make modifications, because 1) it's not a pull request by its own admission, 2) it uses Pin instead of Fixed, 3) it didn't solve the main problem ("solved" with calling internal methods) I had.

Toolkit projects files (csproj) already contains SharpDX.PreSettings.targets (and more noteably SharpDX.PostSettings.targets which contains SharpCLI task). After I cloned repository, Source\Tools folder already contained SharpCLI, so the only thing needed was to update Mono.CCecil (to work with .NET 4.5.2) and update line:

if (method.DeclaringType.Name == "Interop" || method.DeclaringType.Name == "Native")
To allow processing of new Native class (copy of now internal Interop). So I agree it (Fixed) requires almost no change.

That would be better I guess, because this is the main reason Toolkit is not compatible (buildable) out-of-the-box. But I can see how the public API looks cleaner without those IntPtrs. :)

I agree submodule would be great solution (this implies changing projects paths to SharpDX projects wherever they'll end-up as a submodule). I was forced to unload SharpDX projects because I don't have SNK, and I wanted to be sure my build of Toolkit will run against 'official' SharpDX build. I can imagine having two sln files (one without SharpDX project references).

New Toolkit will probably lack many of new features (DirectX12), but those can be access directly via SharpDX if one must. I'm using parts of Toolkit, because it contains many classes I would be forced to write anyway without it (I'm talking about hundred of them). I believe many people using Toolkit will be in a similar predicament. So it's cheaper for me to maintain whole Toolkit than split it to separate library with a possible rewrite to better suit my needs. Just to illustrate my motivations a bit.

Huge commits combined with re-indenting the files make these quite impossible to review.
Anyway, one of the motivations with my changes was that Toolkit should be just another library using SharpDX. If Toolkit can't be implemented without pulling in internal SharpDX code, using reflection, etc., how can we expect other users to use SharpDX efficiently...

I don't understand the csproj diffs either. It's caused by just opening (or saving) it in VS2015 I think. But when I look at the indentation it seems to be the same (might be tab indentation though). I don't see that much difference to warrant for a all red/green diff. There were not that much changes and they're usually quite distinct. All the csproj should be basically the same.

tomba, xoofx already said he would be fine with making those internal methods public.  So I don't see why that should be any kind of issue.  I will happily submit a PR to SharpDX itself to make those methods public.
Going to try to pull this and build it... will update this post.

Hi, first of all.. I'm still here ;)

This is my first attempt to work with GitHub, so excuse my mistake. I somehow missed the files that were added. Still not sure why, because they were still in the commit changes.
I will accept any changes that will better this PR. Removing project references seems OK to me. I have whole SharpDX build environment here. I only wanted to build <IP_ADDRESS> for myself, but then I decided to give it up, for anyone interested.
By the way the new SharpDX Toolkit <IP_ADDRESS> is working fine so far (almost half a year). That's good in my book. I can continue my project while using new SharpDX.
I agree that it would be great to have internal methods public again to avoid reflection, but in a meanwhile it works fine.

regards,
Kate

Sorry for delay in replying!  I am juggling work on an FNA port of my app with work on the SharpDX toolkit.  My first attempt at FNA ran smack into a threading issue, so now I want to put some more time in on SharpDX :-)
It is great you are still here, thanks very much for your helpful reply.

I've pulled your change and it got me past the previous issues.
OK, thanks.  I am definitely trying to remove anything I can and take a binary dependency only on SharpDX.
That's fantastic to hear.  I will spend some more time on this to see if I can get to a similar point.
My local repo has new public methods for these and no longer uses reflection, so I've taken a whack at that already.
The System.ComponentModel problem was simply a missing reference to the System assembly from SharpDX.Toolkit.

I am making more progress, but I have encountered another issue you may be able to help with.  At line 307 of Source/Toolkit/SharpDX.Toolkit.Graphics/EffectPass.cs the current code is:
                        // NOTE SmartK8 : Calls internal method
                        MethodInfo setUnorderedAccessViews = shaderStage.GetType().GetMethod("SetUnorderedAccessViews", BindingFlags.NonPublic | BindingFlags.Instance);
                        setUnorderedAccessViews.Invoke(shaderStage, new Object[] { pLinks->SlotIndex, pLinks->SlotCount, graphicsDevice.ResetSlotsPointers });

I modified this to add a new SetUnorderedAccessViewsIntPtr method, called as such:
                       shaderStage.SetUnorderedAccessViewsIntPtr(pLinks->SlotIndex, pLinks->SlotCount, graphicsDevice.ResetSlotsPointers);

However, this does not compile, because the underlying method actually takes four arguments.  From sharpdx\source\sharpdx.direct3d11\devicecontext.commonshaderstage.cs near the end of the CommonShaderStage class:
        internal abstract void SetUnorderedAccessViews(int startSlot, int numBuffers, IntPtr unorderedAccessBuffer, IntPtr uavCount);

        public void SetUnorderedAccessViewsIntPtr(int startSlot, int numBuffers, IntPtr unorderedAccessBuffer, IntPtr uavCount)
        {
            SetUnorderedAccessViews(startSlot, numBuffers, unorderedAccessBuffer, uavCount);
        }

The internal method was the one previously being called by reflection, though -- it appears -- with one argument too few.  So my question is:  what would happen if a reflective call had one argument too few?  Would .NET reflection fill in a null for the final IntPtr argument?
For now I am simply passing pLinks->UavInitialCount as the final argument; we will see how far that gets me :-)
Similarly, these lines:
                        // NOTE SmartK8 : Calls internal method
                        MethodInfo setUnorderedAccessViews = mergerStage.GetType().GetMethod("SetUnorderedAccessViews", BindingFlags.NonPublic | BindingFlags.Instance);
                        setUnorderedAccessViews.Invoke(mergerStage, new Object[] { pLinks->SlotIndex, pLinks->SlotCount, graphicsDevice.ResetSlotsPointers, pLinks->UavInitialCount });

I can find no method on OutputMergerStage named "SetUnorderedAccessViews" with the signature (int, int, IntPtr, IntPtr).  The closest method I can find is:
internal void SetUnorderedAccessViewsKeepRTV(int startSlot, int numBuffers, IntPtr unorderedAccessBuffer, IntPtr uavCount)

Is that the correct method?  For now I am commenting out these calls to mergerStage.SetUnorderedAccessViews.
And finally it looks like there is just one more gosh darn missing app.config file:
4>C:\Git\SmartK8-Toolkit\Source\Tests\SharpDX.Toolkit.Graphics.Tests\app.config : error MSB3249: Application Configuration file "app.config" is invalid. Could not find file 'C:\Git\SmartK8-Toolkit\Source\Tests\SharpDX.Toolkit.Graphics.Tests\app.config'.

But this is the only failure; the actual Toolkit DLLs all build now with only binary dependencies on SharpDX!  So this is real progress!
I need to time out for tonight, but I will work on pushing these changes as pull requests to both the SharpDX and SmartK8 repositories, once I validate that the SharpDX.Toolkit works at all.  I will also try running the tests once I get that final missing app.config file from you.
Thanks again!

I've actually pushed my SharpDX changes to https://github.com/RobJellinghaus/SharpDX and my fork of your repository to https://github.com/RobJellinghaus/SharpDX.Toolkit -- feel free to have a look if you are curious :-)

I am having an issue with bringing up my app with the above branch of the toolkit and SharpDX.  I get an exception thrown during static initialization.  Specifically, this one:
    internal class Native
    {
        public static unsafe void* Fixed<T>(ref T data)
        {
            throw new NotImplementedException();
        }

The call stack is:
 	SharpDX.Toolkit.dll!SharpDX.Native.Fixed<SharpDX.Toolkit.Graphics.EffectShaderType>(ref SharpDX.Toolkit.Graphics.EffectShaderType data) Line 41	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Serialization.BinarySerializer.SerializeEnum<SharpDX.Toolkit.Graphics.EffectShaderType>(ref SharpDX.Toolkit.Graphics.EffectShaderType value) Line 576	C#
>	SharpDX.Toolkit.dll!SharpDX.Toolkit.Graphics.EffectData.Shader.SharpDX.Toolkit.IDataSerializable.Serialize(SharpDX.Toolkit.Serialization.BinarySerializer serializer) Line 125	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Serialization.BinarySerializer.Serialize<SharpDX.Toolkit.Graphics.EffectData.Shader>(ref SharpDX.Toolkit.Graphics.EffectData.Shader value, SharpDX.Toolkit.Serialization.SerializeFlags serializeFlags) Line 541	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Serialization.BinarySerializer.Serialize<SharpDX.Toolkit.Graphics.EffectData.Shader>(ref System.Collections.Generic.List<SharpDX.Toolkit.Graphics.EffectData.Shader> valueList, SharpDX.Toolkit.Serialization.SerializeFlags serializeFlags) Line 903	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Graphics.EffectData.SharpDX.Toolkit.IDataSerializable.Serialize(SharpDX.Toolkit.Serialization.BinarySerializer serializer) Line 153	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Serialization.BinarySerializer.Serialize<SharpDX.Toolkit.Graphics.EffectData>(ref SharpDX.Toolkit.Graphics.EffectData value, SharpDX.Toolkit.Serialization.SerializeFlags serializeFlags) Line 541	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Serialization.BinarySerializer.Load<SharpDX.Toolkit.Graphics.EffectData>() Line 469	C#
 	SharpDX.Toolkit.dll!SharpDX.Toolkit.Graphics.EffectData.Load(System.IO.Stream stream) Line 86	C#
 	SharpDX.Toolkit.Graphics.dll!SharpDX.Toolkit.Graphics.PrimitiveQuad.PrimitiveQuad() Line 15	C#

So this is the static constructor for PrimitiveQuad defined in SharpDX.Toolkit.Graphics/StockEffects/HLSL/PrimitiveQuad.fx:
    public partial class PrimitiveQuad
    {
        private static readonly SharpDX.Toolkit.Graphics.EffectData effectBytecode = SharpDX.Toolkit.Graphics.EffectData.Load(new byte[] { ... }

The problem is really the final line shown below of the beginning of the EffectData.Shader.Serialize method:
            void IDataSerializable.Serialize(BinarySerializer serializer)
            {
                serializer.Serialize(ref Name, SerializeFlags.Nullable);
                serializer.SerializeEnum(ref Type);
                serializer.SerializeEnum(ref CompilerFlags);  <<<--- boom

CompilerFlags is of type EffectCompilerFlags defined in SharpDX.Toolkit/Graphics/EffectCompilerFlags.cs.  So the problem is there is no instantiation of Native.Fixed.
The comment to the SharpDX.Toolkit/Native.cs Native class is:
    /// <summary>
    /// The implementation of this class is filled by InteropBuilder post-building-event.
    /// </summary>
    internal class Native

So it looks like the post-build InteropBuilder step described there is not working properly.  Or else there is something else wrong :-)
Will keep debugging on this, but if anyone knows the likely issue offhand, by all means please reply!  Thanks.

The Native.cs is indeed not implemented and is filled using AfterBuild target with SharpCLI.exe. You might need to modify the SharpCLI in tools and change the lines (also check whether targets file contains SharpCLI.exe Exec.. it should):
563            if (method.DeclaringType.Name == "Interop" || method.DeclaringType.Name == "Native")
654           else if (methodDescription.DeclaringType.Name == "Interop" || methodDescription.DeclaringType.Name == "Native")
It's kinda tough, because I've said I have whole SharpDX build environment set up. AFAIK the Tools folder is not part of this branch.
regards,
Kate

Thank you so much for that tip.  It was exactly what I needed.  I was able to patch SharpCLI as you suggested in my fork of SharpDX, and then copy it into my fork of the Toolkit.  This got around all issues with Native.Fixed.  I was then able to fix a bug in my interop code (simply calling the wrong method), and then in very short order I had everything working -- my app lives again on Windows 10!
And as a bonus, I have a Toolkit fork that successfully builds and runs with only binary dependencies on the SharpDX DLLs.  I think this is ready to make a pull request for.
However, @xoofx has not chimed in here in a while.  Alexandre, are you interested in an update to this PR, in the form of a working Toolkit project that has only binary SharpDX dependencies (not integrated in the same source tree)?  There may still be more cleanup you would like, but I could put some time into this.  Or, if the toolkit is no longer interesting to you, anyone curious can pull from my forks at http://github.com/RobJellinghaus and get what I am currently running in my app.
Thanks again really very much for your invaluable assistance, SmartK8.  My users and I are very grateful!

Hi there, sorry, I'm following this not very closely. Personally (and professionally), I'm no longer using the Toolkit (nor even SharpDX), but I will merge PR for sure, once they are clean and ready.
Quick glance, no need to rename Interop to Native as it implies to patch SharpCli which is unnecessary, just keep Interop name in the Toolkit and this should work just fine.

@RobJellinghaus: I'm glad you made it work.
@xoofx: Agreed. I originally did it to make sure, I was using the right class - to avoid being mixed up with the original Interop. But at this point it can be renamed back, I guess.
I've made it primarily for myself and Rob has it's own fork for himself. At this point it's getting scattered. Everyone is making their own version/build. It would be great to have at least an illusion of "official" version. I don't know what Rob fixed. But if he built on top of my fork + some fixes + he renames Native => Interop. It would be better to use his fork (his eventual PR). Or I can incorporate this in this PR. I'm fine with whatever way. Just let me know. I would then build "official" binaries for SharpDX Toolkit <IP_ADDRESS> for people who just want to use it and not mess with source code. If there even are any people using it left beside us :D
regards,
Kate

I'm looking at getting a VB.net fork up here soon, there are some parts of the toolkit just like in mainline sharpDX that need fixing too.
I'm not sure how to best go about it..... Just remove any of the none byref functions or do we need the  none byref functions?  how should I handle this?
Right now I'm just removing the none byref stuff, seems to work ok but I'm not sure what you C# guys want to do.

If xoofx is moving on, it may be useful to have one of you guys take more of a leadership role in maintaining this project.
About this pr, while I think it would be cleaner to have a toolkit project that only consumes SharpDX binaries, having any functional binary available on nuget would be a good idea. It'd be nice to merge any of these changes that makes the project compatible with SharpDX 3, release a beta nuget package, and then make and release incremental updates as code is improved and issues are fixed.
@RobJellinghaus seems to have the most recent fork. Would we be good merging that and moving from there?


Accept multiple Route Url in the same controller

I'm currently working with ASP.Net Core and I want to be able to version control of the WebApi, for the controller, there's one Route for the actual version (no need to pass the version number) and another to use another version (need to specificate the version in the Url), the code is the following:
[Route("api/fleets")]
[Route("api/v{version:apiVersion}/fleets")]
When I try to create a Swagger spec. document from the NSwag IU it gives me an error saying:
-System.InvalidOperationException: Sequence contains more than one element
And i'm sure that its because of the multiple route, if i comment one of them the program works and let me create the Swagger spec doc.
Is there any way to generate a Swagger doc with the multiple Route?
Thanks

+1
@planasmultimedia If you found any workarounds, please let me know.


First release

Todo

[x] Write readme
[x] Enable to filter path
[x] Enable to configure base controller
[x] Enable to configure base serializer
[x] Add changelog
[x] Add bump gem

Draft of README

Description
Usage

Description
OpenApiAnnotator realizes to generate OpenApi spec by annotating to controllers and serializers.
If you use ActiveModelSerializer, this is the best to generate OpenAPI spec.
Usage
Annotating controllers and serializers, you can generate OpenAPI spec file from these.
Things you have to do are three below:

Configure API meta information
Annotate controllers
Annotate serializers

1. Configure API meta information
You have to set API meta information like:
# config/initializers/open_api_annotator.rb
OpenApiAnnotator.configure do |config|
  config.info = OpenApi::Info.new(title: "Book API", version: "1")
  config.destination_path = Rails.root.join("api_spec.yml")
  config.path_regexp = /\Aapi\/v1\// # If you want to restrict a path to create
end

2. Annotate controller
To define an entity of an endpoint, call the method endpoint in the previous line of an action method. It takes entity expression as the first arg. Entity expression is a model class or an array that contains only one model class.
class Api::V1::BooksController
  endpoint [Book] # 👈It means an array of Book
  def index
    books = Book.limit(10)
    render json: books
  end

  endpoint Book # 👈Just a Book
  def show
    book = Book.find(params[:id])
    render json: book
  end

  endpoint Book # 👈Just a Book
  def update
     book = Book.find(params[:id])
     book.update!(book_params)
     render json: book
  end
end

3. Annotate serializer
To define an schema in components, set type, format, nullable as each field option.
class BookSerializer < ApplicationSerializer
  attribute :title, type: :string, nullable: false
  attribute :published_at, type: :string, format: :"date-time", nullable: true

  has_many :authors, type: [Author], nullable: false
  has_one :cover_image, type: CoverImage, nullable: true
  belongs_to :publisher, type: Publisher, nullable: false
end

done! ✨


Add webpack loader

Webpack can be supported by having a loader for .feature files, similar to what is already done for browserify.
Current workaround when using webpack is to have both webpack for .ts and browserify for .feature. Example (https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues/18#issuecomment-384245388)
on('file:preprocessor', (file) => {
    if (file.filePath.match(/\.(js|jsx)/g)) {
      return webpack(options)(file)
    } else {
      return cucumber()(file)
    }
})

Having loader might be a solution for: https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues/112

I don't understand what you mean, what's the usecase? can you do this as a showcase? I don't want to add things to the codebase just because we can.
The #112 I believe is invalid, as I (and most people) used typescript with import/export.

it's useful for projects where webpack is already configured for transpiling cypress. Right now cucumber preprocessor will use browserify for .feature and everything it will require/import, e.g. step definitions. This means that step definitions won't respect my webpack configuration(and shouldn't since they are transpiled using browserify), so one has to duplicate all configurations for both webpack and browserify

@lgandecki no, I don't share code between tests and app, I just have a configuration for ts paths and webpack aliases that I would like to reuse in both specs and steps

Closed in #115 , thank you so much !


Energy Usage

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
Would be possible to add the usage data for home assistant.   I see it in thr app but not an entity in home
Thank you
Describe the solution you'd like
Being able to read this numbers in HA
Describe alternatives you've considered
None
Additional context
None

In July 2024, I contacted Aquanta support about getting information about energy usage from their API. Their reponse was as follows:

Daniel - thanks for checking in, and we appreciate your engagement. Unfortunately, we don't have plants to publish our API at this time, but we will be sure to let you and the HA community know if that changes.

So, no. It's not possible at this time.


Improve handling of VSCode invocation errors

[x] I have signed the Contributor License Agreement.
[x] This pull request is related to an issue.

Related to #119

Microsoft Reviewers: Open in CodeFlow

LGTM

/azp run


Update message when scan QR code with QR signer account in case the account does not exist

Description the task
Update message when scan QR code with QR signer account in case the account does not exist
To reproduce the issue

[x] In case no account

Steps:

Attach Account A from Browser 1 to Browser 2
On Browser 2, perform send fund
On the Browser 3, sign this transaction then observe the message displayed

Actual: Show incorrect message

Expected: Change to message: "Account has not been imported into this device. Please import an account and try again"

[x] In case Network is inactive

Steps:

Attach Account A from Browser 1 to Browser 2
On Browser 2, perform send fund with Aleph Zero Testnet network
On Browser 1, sign this transaction with Aleph Zreo Testnet network = disconnect

Expected: Change to message: "Inactive network. Please activate (network name) on this device and try again"

[x] Fix bug: Do not show message when network is inactive in case the password remembered

[x] In case external account

Steps:

Attach Account A from Browser 1 to Browser 2 and Browser 3
On Browser 2, perform send fund
On the Browser 3, sign this transaction then observe the message displayed

Expected: Change to message: "The signing feature is not available for this account type"

[x] Other case: No network

Expected: Change to message "The demanded network is currently not available on this device"

Version test: https://file.cdmteck.com/s/4oimk9zDJ8R5Aai/download?path=%2F&files=./899-merge-build-0.7.4-1670384955183.zip
Please update cases:

[ ] In case no EVM account:

[ ] In case inactive network with EVM account


scripts to build DBeaver for all platforms

These build scripts make use of the all-platforms Maven profile to produce DBeaver build artifacts for all supported platforms, including the aarch64 (i.e. Arm64) platforms for Linux and MacOS.

Hello @chirontt
Thanks for your contribution. Please add a description in the PR body.

description updated.

These build scripts make use of the all-platforms Maven profile to produce DBeaver build artifacts for all supported platforms, including the aarch64 (i.e. Arm64) platforms for Linux and MacOS.

Please add more info about what issue you are trying to solve with this PR.

Perhaps this option can be used by default? I believe it shouldn't slow down the build process significantly. It might be better to change build.cmd/build.sh scripts instead.

Yes, it's better to incorporate the scripts in this PR into the existing build scripts, but I don't know why the aarch64 platforms were left out of the existing scripts; I guess they were left out for a reason, so I leave them alone and devise new scripts to accommodate the aarch64 builds in this PR, where I need them anyway.
I think, existing build scripts should default to build all supported platforms, regardless of how long they would take. Then, to enhance it further, there should be some parameter option to build only for specific platform, say Linux, or Windows, to save some build time. But this change won't come from me.
Please close this PR as you see fit, or I will close it myself, while we wait for better PR implementing the above.

I'm going to discuss it with my colleagues first, so please keep it open for now.

After further discussion, we decided to add this flag to our existing build scripts.
You can keep this PR open and just amend the changes.

If the existing build scripts will build the aarch64 platforms (by default or otherwise), then this PR is not needed anymore; no point of keeping it around.

You can submit a new PR that will modify existing scripts.


000_Paper_List.json

Thank you for open-sourcing this tool! I've been using it for a few weeks now and am very happy with it. Could you explain the purpose of the 000_Paper_List.json file?

It serves as a cache for arxiv-dl, preventing repeated downloads of the same papers. It also allows for quick local searches by keyword—either within the 000_Paper_List.json file using Ctrl+F, or via Spotlight Search if you're on a Mac.

Thanks for the explanation! I believe Spotlight already searches through PDF contents. And for deduplication, it’s probably better to check against the actual list of files since they already contain the arXiv ID in their names. The JSON file can get out of sync, for example, if a file is manually deleted.

Well, it includes metadata such as comments (conference acceptance info), code URLs, and BibTeX entries that don't appear in the PDF. I believe that performing a text-based search within the file is faster and more reliable than using Spotlight to scan PDFs, which may have tokenization issues. Plus, Linux and Windows users don't have Spotlight. Overall, I'm just offering a flexible, hacky option—users can determine the use case based on their needs.


CORS Error when accessing backend service

Access to fetch at 'https://staneks.de/apps/md2mobi/' from origin 'app://obsidian.md' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Failed to load resource: net::ERR_FAILED

Not sure what this means but thought I would pass it on.

@SimeonLukas any thoughts on this? would love to use this wonderful plugin :)


[Per Partition Automatic Failover] Utilize CosmosClientOptions to Capture Custom Domain Names to resolve Cx Specified Endpoints

Background:
The Cosmos .NET V3 SDK should be able to expose a list of regional endpoints, using the CosmosClientOptions.RegionalEndpoints to capture the custom (user provided) domain names, so that the account metadata requests can be routed to the correct endpoints, when the SDK is unable to fetch the account metadata using the global endpoint.
Account Setup For 3 regions : Create a cosmos account with 3 regions, P1 (Write), P2 (Read) and P3 (Read). The PPAF configuration from the BE is to failover to P2, in case P1 is unavailable.
Acceptance Criteria: While creating the cosmos client, in the application preferred region, provide P1, P2 and P3 as preferred regions. The user/ customer should be able to provide the list of custom domain names to resolve the endpoints accurately. If the SDK is unable to fetch the account metadata using the global endpoint, it should be able to use the custom regional endpoints to fulfill the operation.
Below is an example of how the SDK will capture the regional endpoints from the end user.
 CosmosClientOptions clientOptions = new CosmosClientOptions()
    {
        ApplicationPreferredRegions = new List<string>()
        {
            Regions.P1,
            Regions.P2,
            Regions.P3
        },
        RegionalEndpoints = new List<string>()
        {
            { "custom.p-1.documents.azure.com" },
            { "custom.p-2.documents.azure.com" },
        },
        EnablePartitionLevelFailover = true,
    };

RegionalEndpoints: few clarifications
-Order matching PreferredRegions?

Clarity on pairing with ApplicationRegion?
Please also expand on why only its needed for PPAF? (i.e. is custom-domain concept new/broken with existing model)


first working version

This is the version as it was extracted from https://github.com/paolochiodi/seneca-zipkin-test.
I only added eslint and linted

Is it ok to merge and publish this or do you prefer to fix those comments before?


Media3 ExoPlayer PlayerView UI - seekbar doesn't work (to change position) and rewind/fast forward buttons are disabled

Version
Media3 1.2.1
More version details
I'm trying to play .m4a audio file (DocumentProvider/SAF URI, e.g: content://com.android.externalstorage.documents/tree/primary%3AVoiceRecorder/document/primary%3AVoiceRecorder%2F2024-02-09%2017h%2016m%2040s.m4a) but I can't change position using seekbar and rewind/fast forward buttons are disabled for some reason. Why?
val player = ExoPlayer.Builder(context).build()
player.setMediaItem(MediaItem.fromUri(audioFileUri))
player.playWhenReady = true
player.prepare()

ui:
AndroidView(
    modifier = Modifier
        .fillMaxSize(),
    factory = {
        // androidx.media3.ui.PlayerView
        PlayerView(it).also { playerView ->
            playerView.controllerHideOnTouch = false
            playerView.controllerAutoShow = true
            playerView.controllerShowTimeoutMs = 0
            playerView.player = player
            playerView.setShowRewindButton(true)
            playerView.setShowFastForwardButton(true)
            playerView.showController()
        }
    },
)

val media3Version = "1.2.1"
implementation("androidx.media3:media3-exoplayer:$media3Version")
implementation("androidx.media3:media3-session:$media3Version")
implementation("androidx.media3:media3-ui:$media3Version")

Devices that reproduce the issue
Samsung S10 (Android 12), Samsung S22 (Android 14)
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
play a sample audio file .m4a
Expected result
seeking is working
Actual result
seeking not working
Media
https://fex.net/s/nx8f9ss
Bug Report

[ ] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

Fixed by settings setConstantBitrateSeekingEnabled:
val player = ExoPlayer.Builder(context)
    .setMediaSourceFactory(
        DefaultMediaSourceFactory(
            /* context = */ context,
            /* extractorsFactory = */ DefaultExtractorsFactory().apply {
                setConstantBitrateSeekingEnabled(true)
            }
        )
    )
    .build()

using: androidx.media3:media3-exoplayer:1.3.0
@HelgeApps  Mentioned solution does not work. Please let me know if there are any else to fix it.


[crud] provide documentation on how to delete a name_en_override in the docstring (or add support for it if you can't currently)

related #1007


Use-case of having the previous state in handlers params

Hi,
The handler functions provided to handle always take the previous state as their only parameter. I feel that I might be misunderstanding something here, can't I use the state from the reducer's first parameter instead?
Thanks!

Good question, I was wondering the same and had to look into it more. I think the reason is because the finish and always hooks are run after success and failure. You can see for LIFECYCLE.SUCCESS the initial state is run through the success handler and then the result of that is run through the finish handler and then the result of that is run through the always handler. https://github.com/lelandrichardson/redux-pack/blob/master/src/handle.js#L66

Right, that makes perfectly sense to me. Thanks for sharing!