Any way to provide custom config to ClickHouse?

Hey team,
I'm adapting the docker-compose file from Plausible to make it work on dokku.
I'm using this dokku-clickhouse plugin, and everything works fine.
However, in the docker-compose file, they're adding 2 custom .xlm configuration files for Clickhouse, via docker's volume feature:
  plausible_events_db:
    image: yandex/clickhouse-server:<IP_ADDRESS>
    volumes:
      - event-data:/var/lib/clickhouse
      - ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
      - ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro

Do you have any idea on how I could provide those 2 config files to the clickhouse container?

Here's what I tried:

it seems the only volume mounted by the plugin is -v "$SERVICE_HOST_ROOT/data:/var/lib/clickhouse" (also see clickhouse dockerfile). I thought about copying the 2 custom .xml files in the data directory to make them available to the container, and then...
I thought I could use CLICKHOUSE_CUSTOM_ENV to pass a config to clickhouse and tell it to load the custom configs from the data directory from step 1. But I can't find any ENV on clickhouse side that would let me pass a custom folder to load config from.

In fact it seems that clickhouse expects any custom configuration to be stored in 2 specific folders, /etc/clickhouse-server/config.d/*.xml and /etc/clickhouse-server/usert.d/*.xml, see https://github.com/ClickHouse/ClickHouse/tree/master/docker/server#volumes and https://clickhouse.tech/docs/en/operations/configuration-files/.
If there's no way currently to load / create on-the-fly a custom configuration, do you think it would be possible to add an option to this dokku plugin to mount 2 additional volumes for custom configuration files? E.g. add something along the lines of -v "$SERVICE_HOST_ROOT/config/config.d/*.xml:/etc/clickhouse-server/config.d/*.xml" -v "$SERVICE_HOST_ROOT/config/users.d/*.xml:/etc/clickhouse-server/users.d/*.xml"?
Thanks

There isn't a way to do * for mounting afaik. We also currently don't have the ability to add custom docker options to services, which would enable this. The latter is something we'd like to do (there is an issue in the dokku-redis plugin for that).
Do you know if the docker image has any special way to specify extra configs for either of those things?

I'm not sure, their doc is not really crystal clear.
It seems possible to mount a custom config.xml, e.g. -v /path/to/your/config.xml:/etc/clickhouse-server/config.xml. But that's probably a pain to have to copy the WHOLE config just to customize a few lines, esp. since it changes quite often.
However—and if I understand correctly—there might be a way to make customizations by mounting .sh scripts in /docker-entrypoint-initdb.d/, as these scripts would be run when service starts (see https://github.com/ClickHouse/ClickHouse/tree/master/docker/server#how-to-extend-this-image).
E.g. if dokku-clickhouse could mount smthg like -v "$SERVICE_HOST_ROOT/config/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/", then I could probably write a script which would create my custom config file (/etc/clickhouse-server/config.d/logging.xml)?

Yeah that might work. Does that directory have anything in it by default?

No, it's empty:
julien@b-dokku-test-20210412 ~  $ dokku clickhouse:enter plausible_events_db
-----> Filesystem changes may not persist after container restarts
root@2ce2b82a9bc6:/# la
bin  boot  dev  docker-entrypoint-initdb.d  .dockerenv  entrypoint.sh  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@2ce2b82a9bc6:/# la docker-entrypoint-initdb.d/
root@2ce2b82a9bc6:/#

Also: https://github.com/ClickHouse/ClickHouse/blob/master/docker/server/Dockerfile#L87

In that case, I think we can create an entrypoint directory in the service data dir and have it be mounted. A user can create the service, stop it, populate the directory with their scripts, then start again. Thoughts?

A user can create the service, stop it, populate the directory with their scripts, then start again.

Is starting + stopping the service first required? Oh, because the data dir doesn't exist before that?
I never used the service data dir before, so don't have an opinion on where the entrypoint dir should live. But yeah, seems fine!

It's not necessarily required, but service creation starts the service so you'd either need to have a way to not do that or pre-create the directories (which idk if we fill in not created ones).

As the service already mounts -v "$SERVICE_HOST_ROOT/data:/var/lib/clickhouse", would that mean that the entrypoint dir will be available to the container from both /docker-entrypoint-initdb.d/ and /var/lib/clickhouse/docker-entrypoint-initdb.d/? Would that be an issue?

We'd want to create something like $SERVICE_ROOT/entrypoint and then have a mount flag like -v "$SERVICE_HOST_ROOT/entrypoint:/docker-entrypoint-initdb.d".
We also should add this to the info output for the service so that end-users know what the path is that they can add entrypoint files to.

👍

This was implemented in #14 and released in 0.7.0 of the plugin.


Performance tweaks for animated images

          1 Warning

:warning:
Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

  Generated by :no_entry_sign: Danger

@Adlai-Holler I actually looked into using NSCache, but if we did that we wouldn't be able to shrink and expand our render ranges based on the frequency of the memory warning. In addition, we need to keep track of what is and isn't in the cache at any time so we'd have to monitor the cache with delegate methods. Overall seemed more trouble than keeping a dictionary ourselves.


Dockerfile CMD env substitution

The latest dockerfile change:
CMD ["esmd", "--etc-dir", "/esm.sh", "--cache", $CACHE, "--db", $DB, "--fs", $FS "--cdn-domain", $CDN_DOMAIN]

Those env vars are not going to be substituted unless a shell is wrapping them

updated, thanks!


Implemented custom data types support in DBMSs

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
no

Tests pass?
yes

Fixed issues
#7640

This is the alternative implementation of PR #14819, #14836
TODO:

[x] Code idea
[ ] Discuss and approve it @yiisoft/reviewers @yiisoft/core-developers
[ ] Add popular types for PgSQL, MySQL
[ ] Enhance tests coverage
[ ] Write docs
[ ] Merge

In comparison to previous implementations, this one provides DBMS-agnostic classes of expressions (ArrayExpression, JsonExpression) that are simply a DTO.
Expression building is moved builders that implement ExpressionBuilderInterface and are DBMS-specific. I would like to implement wider JSON support in DB abstraction layer based on this PR.
Dear reviewers, please ignore imperfect PHPDocs. They are, but we need to agree design first. Thank you

Love the approach! I'm all for it.

I do not like the idea - it seems to overcomplicated for the purpose.
If you wish to grad develoepr ability to configure particular condition building it is better to be done via QueryBuilder::$conditionBuilders. All we need to be is add an ability to specify particular builder as a PHP callback (or a object matching certain interface if you can not live without it) with following signature:
function (QueryBuilder $queryBuilder, string $operator, array $operands, array &$params) : string {
    return 'SQL';
}

Particular condition builder may accept different data types for the $operands including db\Expression or any other complex object.
Obviously QueryBuilder will need an additional public setter for the $conditionBuilders, like following:
public function setConditionBuilders(array $conditionBuilders)
{
    $this->conditionBuilders = array_merge($this->conditionBuilders, $conditionBuilders);
}

Such approach will be much more flexible, allowing of handling both custom data types and operators.

Implemented custom data types support in DBMSs

Such statement is incorrect regardless to this PR, as well @SilverFire's late attempts of solving original issue, since it covers only query condition composition, while Array DB type support require handling of the array data at the INSERT and UPDATE statement as well.
In order to grand support for ARRAY or JSON DB data types, there should be granted ability to pass  PHP arrays as a column value for the insert() and update() functions.
If you wish to solve the issue using custom TYPE-based classes - they should be implemented at the level of yii\db\ColumnSchema instead of  database expressions.

Having both QueryBuilder::$conditionBuilders and QueryBuilder::$expressionBuilders intoduces 2 different appraoches fot doing the same thing. If it is an object interface for condition composition you want - QueryBuilder::$conditionBuilders should be entirely removed in favor of QueryBuilder::$expressionBuilders and any complex operators should be composed via custom db\Expressions classes.
E.g. instead of following code:
$rows = (new Query())
    ->from('item')
    ->where(['in', 'id', [1, 2, 3]])
    ->andWhere(['between', 'date', '2017-09-01', '2017-10-01'])
    ->all();

the following code should be used:
$rows = (new Query())
    ->from('item')
    ->where(new InExpression('id', [1, 2, 4]))
    ->adnWhere(new BetweenExpression('date', '2017-09-01', '2017-10-01'))
    ->all();

Generally you suggestion it makes sense, but in wise-versa logical direction.
Expression – is a Data Transfer Object (DTO) for dataset, that can be somehow compiled to some SQL statement (operators, string, array, JSON, etc)
Condition – is an aggregate of multiple Expressions that can be compiled to SQL condition.
In means that we can create create condition classes (SimpleCondition, InCondition, ExistsCondition) that implement ExpressionInterface and create builders for each of them (or for logical groups of them). This kind of refactoring should also reduce complexity of QueryBuilder and make each expression more testable.

Ha, you've posted nearly the same while I composed my message.

E.g. instead of following code:
$rows = (new Query())
    ->from('item')
    ->where(['in', 'id', [1, 2, 3]])
    ->andWhere(['between', 'date', '2017-09-01', '2017-10-01'])
    ->all();

the following code should be used:
$rows = (new Query())
    ->from('item')
    ->where(new InExpression('id', [1, 2, 4]))
    ->adnWhere(new BetweenExpression('date', '2017-09-01', '2017-10-01'))
    ->all();

In order to keep BC we can transform the first into the second automatically.

In general, @klimov-paul already expressed my initial suggestions for the PR.
I'll review it in detail a bit later but I love the idea and I really like the way it's implemented. @SilverFire, keep it rolling! 👍

Added another bunch of effort in this PR.

Implemented JSON and Array support for PgSQL (in ActiveRecord layer as well)
Added PdoValue class to deprecate array-based ([$value, \PDO::PARAM_LOG]) type casting

Future iterations plan:

JSON for MySQL
Merge expressionBuilders and conditionBuilders as discussed above with @klimov-paul

Sorry for long delays between commits. AR & DBAL is one of the most complex parts in Yii so it's not easy to apply changes there and stay concentrated for a long time.

Merged! That is a huge improvement over query builder architecture and I'm glad that Yii has it now. Will allow to easily extend QB syntax in any direction possible. Thank you very much for working on it and finishing it.

Excellent! Can't wait to use it! 👍

Was there ever a deprecation period regarding using arrays for bindValues?
Because the switch to PdoValue without having some kind of grace period broke yii2-audit.

Yes, it is deprecated since 2.0.14 and will be completely removed in 2.1.
Until that time arrays are silently converted to PdoValue objects.

I assume that you are referring to regular inserts only then?
I have a bug report on the yii2-audit component. It stopped working since 2.0.14.
We traced it back to the changes in bindValues().
Our component directly calls bindValues() for batch insertion (it is a public function after all).
The call can be found here and has worked for the last 2 years but fails since this PR.
As it is now, there is no grace period for code directly calling bindValues() since the is_array part was completely replaced:

This break was not intended. Could you create a separate issue? We can probably fix it in <IP_ADDRESS>


Configuration#1: Step#1:  simulating alpha_S=0.2, matter: q_0=1 | matterlbt: q_0=1.5: matterlbt04

run the simulation with the above config by jetscape,
transfer the final state hadron to the related directory named as config-XX-final-state-hadrons
after doing step1 on all 12 simulations go to step 2 for the configurationX

ported into Excel for overleaf


MM-47072 : Migrate "components/suggestion/emoticon_provider.jsx" to Typescript

Summary
Migrate "components/suggestion/emoticon_provider.jsx" to Typescript
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/21127
JIRA: https://mattermost.atlassian.net/browse/MM-47072
Related Pull Requests
None
Screenshots
Nona
Release Note

Hello @AbhinavVihan,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

/release-note-none

Let us know if you run into any problems doing that. The type for ProviderResults in particular might be difficult without using an any right now since this code wasn't written with static typing in mind.

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Hi @AbhinavVihan. Is there anything you're stuck on with this that we could help with?

@M-ZubairAhmed, Can you please check the latest commit for strict type checking.
Thanks

/update-branch

@michelengelen, Could you please take another look?

@michelengelen, Could you please take another look?

@AshishDhama is this ready for another round of reviews? It does look like there are still some remarks from @M-ZubairAhmed missing

/update-branch

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

/e2e-test

Successfully triggered E2E testing!
GitLab pipeline | Test dashboard

/update-branch

/update-branch

The web app now lives in the webapp/channels over in https://github.com/mattermost/mattermost-server. We decided to move it to be a monorepo to make both development and our CI pipelines easier, but it's unfortunately disruptive right now. We've updated our setup docs and added some steps for migrating to working with the monorepo.
Copying the changes over there hopefully shouldn't be too hard. There's a few changes to file paths (such as the code living in a dedicated src subdirectory), but most things should look the same as they do now.
Let us know if you could use any help with this. Hopefully the process is smooth.

Hello there! Could you please open the PR in the mattermost-server as part of the monorepo? I will be closing this PR for now. Thank you very much for your understanding and cooperation in this matter.


Add Mish activation function

The Mish activation function is missed in KotlinDL.
Read more about Mish: A Self Regularized Non-Monotonic Neural Activation Function
The desired PR addressing this issue should include:

[ ]  Implementation of activation class named as MishActivation (you can take inspiration from the implementation of HardSigmoid  as reference) added to the Activations.kt file
[ ]  Documentation of activation function
[ ]  JUnit tests in api  module
[ ]  Support for export of activation function to JSON (see ModelSaver.kt)
[ ]  Support for import of activation function from JSON (see ModelLoader.kt)

P.S. If you want to take this ticket, please leave the comment below
P.P.S Read the Contributing Guidelines.
The reference implementation could be taken from tensorflow-addons

Hi, @digantamisra98! Please leave a comment here to assign this ticket to you.
As I understand, you are the author of the Mish paper, a really great paper and results!

@zaleslaw Yes, I am taking this up and will be happy to add others over the weekend (hopefully). Thank you for your compliment and willingness to add it in the library :)

@digantamisra98 I hope that KotlinDL could be more faster and open to DL innovations, will wait review request from you

The PR is ready for review (I don't know if I can like request a review on the PR itself unless I'm a collaborator with write access).


STORM-1946: initialize lastHeartbeatTimestamp before starting heartbeat task

When storm stars a large number of ShellBolt-s that consume a lot of CPU time to initialize, it creates a lot of contention between processes for CPU resource. That leads to BoltHeartbeatTimerTask being fired up after 1 second delay before setHeartbeat() assigns initial value to lastHeartbeatTimestamp variable.
As a result when BoltHeartbeatTimeTask fires up for the first time, getLastHeartbeat() returns value of 0. This in turn leads bolt to die with "subprocess heartbeat timeout" message.
The fix is to place setHeartBeat() before BoltHeartbeatTimerTask is created. The patch for this is attached.

+1 Great finding.


Version
3.2.20
Steps to reproduce
When i try to use

.eslintrc.js
module.exports = {
  root: true,
  env: {
    browser: true,
    node: true
  },
  parserOptions: {
    parser: 'babel-eslint'
  },
  extends: [
    '@nuxtjs',
    'plugin:nuxt/recommended',
    'plugin:prettier/recommended'
  ],
  plugins: ['prettier'],
  // add your custom rules here
  rules: {
    'vue/no-v-html': 0,
    'vue/valid-template-root': 0,
    'vue/order-in-components': 1,
    'no-console': 0,
    'space-before-function-paren': 0,
    'prettier/prettier': [
      'error',
      {
        endOfLine: 'auto'
      }
    ]
  }
}

.prettierrc
{
  "trailingComma": "none",
  "semi": false,
  "singleQuote": true,
  "proseWrap": "never",
  "endOfLine": "auto"
}

What is expected?
There should be no bug
What is actually happening?
   5:8   error  Delete `·`                                    prettier/prettier
   6:7   error  Identifier '__sfc_main' is not in camel case  camelcase
   6:22  error  Delete `;`                                    prettier/prettier
  12:2   error  Delete `;`                                    prettier/prettier
  18:10  error  Replace `⏎····count⏎·` with `·count`          prettier/prettier
  22:4   error  Delete `;`                                    prettier/prettier
  25:4   error  Delete `;`                                    prettier/prettier
  26:2   error  Delete `;`                                    prettier/prettier
  28:16  error  Identifier '__sfc_main' is not in camel case  camelcase
  28:26  error  Delete `;`                                    prettier/prettier

I'm using nuxt 3 with bridge, but i don't think that matters. It works well without Prettier of course. Thank you for any help.

This is not a valid bug report. It also doesn't seem to be related to Vue?

@posva could you at least write me a hint on how to fix this or at least make ignore this errors?
If I'm right that prettier check this after compilation-time, is even possible to fix this?


Add "Test Connection" button to loader configuration modals

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1370
Originally created by @DouweM on 2019-12-05 16:21:35

In https://gitlab.com/meltano/meltano/issues/1217, we added a "Test Connection" button to extractor configuration modals, but we should have one for loaders as well!

View 6 previous comments from the original issue on GitLab


AgIsoUniversalTerminal open

Hello, is AgIsoUniversalTerminal open now? Hope to get help. thanks

Let's keep things like this in the discussions or the Discord/Telegram 😉


Expose Executer via factory class

this allows to extend the give classes and more flexible for own use.

just expose an function like createExecuter for internal and external use in the Factory-Class? Or What about an new Factory-Class still for the Executer itself and Resolver-Factory can use this Factory internal itself or just extends the Executer-Factory?

just expose an function like createExecuter for internal and external use in the Factory-Class?

Sounds about right, but just an idea at this point and we'd have to take a look at this more in-depth.

Or What about an new Factory-Class still for the Executer itself and Resolver-Factory can use this Factory internal itself or just extends the Executer-Factory?

Extending implies an "is a" relationship, not sure "ResolverFactory is a ExecutorFactory" is reasonable. Composition over inheritance?
Not sure a dedicated ExecutorFactory is worth the effort, especially since we've started moving away from factory classes where possible to improve DX. I agree that adding this as a method to the ResolverFactory might not be perfect, but perhaps might make sense from a KISS perspective?

divide the two section should the best case and the last change does not have any BC breaks. in case of DI, nobody say you have to use a factory-class, it will just create for you the "best" case of composition.

push :P


二维码都已过期

Describe the bug

Your Example Website or App
0
Steps to Reproduce the Bug or Issue
0
Expected behavior
进群
Screenshots or Videos
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
No response

已更新


{CI} Add resolve issues logic

Add automated workflows to align with the .NET SDK repo：

When work on an issue is believed to be complete, the Azure SDK team member responsible for communicating that status may apply the issue-addressed label.

When the bot that monitors the repository detects the issue-addressed label, it will respond with the message:
“Hi @issue-author. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been resolved. If you believe that further discussion is needed, please add a comment with the text “/unresolve” to remove the "issue-addressed” label and continue the conversation.”

For issues where the issue-addressed label was applied:
a. If no action is taken, the issue is closed by the bot after 7 days of no activity with the message:
“Hi @issue-author, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.”
b. If the original author of the issue uses the /unresolve command to remove the issue-addressed label, the issue is left open for continued discussion and the “needs-team-attention” label is applied.
c. If a comment is left with the /unresolve command by a person other than the original author of the issue or an internal team member, the bot responds with the message:
“Please open a new issue with your scenario and details if you would like to discuss this topic with the team.”
d. If the issue-addressed label is removed by an Azure SDK team member directly, the issue is left open but no additional label is applied.
e. If an Azure SDK team member adds a label that indicates work is ongoing for the issue, the issue-addressed label is removed. The following labels are considered:
-  needs-team-attention
- needs-author-feedback
- Service Attention
- needs-triage
- needs-team-triage

CI

We can't test this feature before merging this PR, but we can add this config in portal and export to json file.
So actually the fabric bot portal will make sure this configuration is syntactically correct.


Required authentication changes for SAT 3.19

Summary and Scope
See commit messages
Testing
Built images and ran a basic sanity test on internal system.
Pull Request Checklist

[X] Version number(s) incremented, if applicable
[X] Copyrights updated
[X] License file intact
[X] Target branch correct
[X] CHANGELOG.md updated
[X] Testing is appropriate and complete, if applicable
[X] HPC Product Announcement prepared, if applicable

mbp-ekamin:sat ekamin$ snyk container test artifactory.algol60.net/sat-docker/unstable/cray-sat:3.19.3-20230111172444_c8755f3
...
Testing artifactory.algol60.net/sat-docker/unstable/cray-sat:3.19.3-20230111172444_c8755f3...

Organization:      eli.kaminhpe.com
Package manager:   apk
Project name:      docker-image|artifactory.algol60.net/sat-docker/unstable/cray-sat
Docker image:      artifactory.algol60.net/sat-docker/unstable/cray-sat:3.19.3-20230111172444_c8755f3
Platform:          linux/amd64
Base image:        alpine:3.15.6
Licenses:          enabled

✔ Tested 71 dependencies for known issues, no vulnerable paths found.

According to our scan, you are currently using the most secure version of the selected base image

output of testing: https://gist.github.hpe.com/eli-kamin/fa99d8a5d7084d094f3df35e525837f7


[EXE-1630] Pushdown aiq_day_start

[EXE-1630]
Add pushdown support for the new function from https://github.com/ActionIQ/flame/pull/488. Note this PR should go in after that PR, because we have to build/publish Flame with the new function, then use that version here.
Also had to add some generic stuff for pulling from s3/artifactory (mostly copied from the stuff we did in the Spark3 version of this code at https://github.com/ActionIQ/spark-snowflake/pulls?q=is%3Apr+is%3Aclosed
Test Notes
Added a unit tests that verifies the result and the Snowflake query. It runs against a real server, export these params to configure it:
export SNOWFLAKE_TEST_ACCOUNT="aws"
export SKIP_BIG_DATA_TEST=true
export SPARK_LOCAL_IP=<IP_ADDRESS>
export SPARK_CONN_ENV_SFURL=xxxx
export SPARK_CONN_ENV_SFUSER=xxx
export SPARK_CONN_ENV_SFPASSWORD=xxx
export SPARK_CONN_ENV_SFWAREHOUSE=DEMO_WH
export SPARK_CONN_ENV_SFDATABASE=TEST_DB
export SPARK_CONN_ENV_SFSCHEMA=PUBLIC
export SPARK_CONN_ENV_DBTABLE=SPARK_SNOWFLAKE_CI

Then to run. Note the integration test will hit the live server and output the queryId, so you can check the query on the server like https://app.snowflake.com/axipjne/actioniqp/#/compute/history/queries/01aeb429-0408-303e-0000-8ac500b49312/detail
sbt test
sbt it:test
// sbt it:testOnly net.snowflake.spark.snowflake.PushdownEnhancement02

Deploy
sbt publish should put it in artifactory

Wrong repo, using our internal one


feature: Add a new floating window

Feature request
An example would be something like telescope.nvim

I think the configuration should be something like this.

windows = {
    ---@type "right" | "left" | "top" | "bottom"| "float"
    position = "float",
    ...
}

Motivation
No response
Other
No response

Sorry, we won't support floating windows.

Would love it if you reconsidered. https://github.com/CopilotC-Nvim/CopilotChat.nvim has a nice implementation.
Thank you for your hard work :+1:

we support floating windows in the past, and it has too much code.
Unless we can simplify our windows management, which is pretty much on our backlog for now, we won't have bandwidth to support floating windows.


crash the electron application.

Press the caps lock key and some media keys, it crashes the electron application.

IOHook Version: 0.9.3
Node.js version :  16.14.0,
electron version : 11.5.0:
Operating System : Mac OS

this is avoided if you load iohook in the renderer process instead of main.

I want to use load iohook in main process. any other solution for this.


[PE-D][Tester D] editBook function updates even with invalid entries

I added a book called the hunger games and tried to edit the borrow and due date when it was not borrowed by anybody. I have attached my input and the message i got after I entered the input. It seems to have successfully changed dates attached to the book that do not exist.

Labels: severity.Low type.FeatureFlaw
original: sembcorpp/ped#3

Bug exists. Need to add a check if borrower exists if only editing borrow date and due date.


Add support for encoding data

On the parachain, we need to be able to ABI-encode data which will ultimately end up being passed to Solidity contracts. Since the data is ABI-encoded, the contracts won't have to expend gas decoding the data.
The encoding routines were copied over from https://github.com/rust-ethereum/ethabi/blob/master/ethabi/src/encoder.rs

@Rizziepit I'm just CC'ing you here to make you aware of the this library which the parachain uses to decode and encode data produced by Solidity contracts on the Ethereum side. No need to review unless you want to.


Create a legend for all diagrams

The legend is linked only in the building block sections.
It is also valid for Business Context sections as far as I can see.
It is not entirely correct for Technical Context sections because I can't quite figure out what was meant by some colors in those diagrams. Maybe we can address this in the next daily.

Also the green-filled box is described as "a context or an environment" here, which matches the context diagrams, but in some of the building block diagrams we have green-filled boxes with the component's name, like a header.

Yep, I was thinking those should be removed altogether. Seems like we just copy-pasted them from Conceptboard. And since our sections have titles, we don't need those green boxes.

Looks like there are 3 lines of conflict in the touched diagram now!
Should be fairly easy to solve

Looks like there are 3 lines of conflict in the touched diagram now!
Should be fairly easy to solve

Conflict resolved + the green boxes from the API diagrams were removed.


Substitute BLAS usage in PTDF calculation

The current implementation uses BLAS matrix inversion and multiplication which doesn't scale as well as other methods commonly used like LU decomposition or parallel sparse array inversions.

Experiment with MKL x-ref: https://github.com/lanl-ansi/PowerModels.jl/pull/849


[stable/concourse] Resolve #15945 fix issue with broken default SSM configuration

…onfiguration

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes https://github.com/helm/charts/issues/15945

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

oooh wooow, nice catch! thank you, @lukeplausin !

/ok-to-test

/lgtm


Issues with symbolic links

🐛 Bug Report

[x] Not working coverage collection for symbolic links.
[x] Typescript setup not working with symbolic links but JS works.

To Reproduce
I made example project: https://github.com/nomadzetetic/monorepo.
Project contains 2 folders: /account and /shared. /account/src/shared -> symbolic link to /shared folder.
Steps to reproduce the behavior:

Pull this example project https://github.com/nomadzetetic/monorepo
cd account
npm install
npm run test

Expected behavior
In coverage report should be files from account/src/shared.
Link to repl or repo (highly encouraged)
repl.it demo
envinfo
System:
    OS: macOS 10.15.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  Binaries:
    Node: 12.13.0 - ~/.nvm/versions/node/v12.13.0/bin/node
    Yarn: 1.21.1 - ~/.yarn/bin/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v12.13.0/bin/npm
  npmPackages:
    jest: ^26.0.1 => 26.0.1

I am facing the same problem. I have created a symbolic link folder and all tests passed, however coverage doesn't match the symbolic link folder.
Do you design it on purpose or any plan to fix it? Waiting your reply.

I am facing the same problem. I have created a symbolic link folder and all tests passed, however coverage doesn't match the symbolic link folder.
Do you design it on purpose or any plan to fix it? Waiting your reply.

I think it's instambul issue. I moved to yarn workspaces solution.

I have solved this problem by configure:
collectCoverageFrom: [
    '<rootDir>/src/**/*.ts?(x)',
    '<rootDir>/packages/**/src/**/*.ts?(x)',
    '!**/build/**',
],

I link my shared folder to position packages/**/src/shared.
And I think add enough glob pattern can also solve it like  <rootDir>/src/**/**/**/**/**/**/*.ts?(x)


Misleading suggestion from Performance/DeletePrefix cop

Expected behavior
Expected RuboCop Performance to not flag reported method as an offense.
Actual behavior
RuboCop Performance flagged the reported method as an offense and recommended replacing the gsub call with delete_prefix call.
C: [Correctable] Performance/DeletePrefix: Use delete_prefix instead of gsub.

The suggestion is misleading because delete_prefix works akin to sub in that only the first encountered match is deleted in contrast to gsub which continues deleting matches beyond the first match.
Steps to reproduce the problem
# Utility method to ensure that given +input+ string starts
# with a single forward-slash.
# If given input starts with multiple slashes, a copy of the
# input is returned after stripping extra slashes.
def Foo.ensure_single_leading_slash(input)
  result = input.to_s.gsub(/\A\//, '')
  "/#{result}"
end

RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
You can see extension cop versions (e.g. rubocop-performance, rubocop-rails, and others) output by rubocop -V,
include them as well. Here's an example:
1.38.0 (...)
  - rubocop-performance 1.15.0

/\Asomething/ regexp will match maximum 1 substring of the string (at the beginning of the string), so gsub will only delete the first occurrence (if any) at the beginning of the string, so acts like sub.

Apparently, you're right, @fatkodima. My tests were wrong.
Sorry for the noise.


Replace pandas.DataFrame with PyArrow.Table for nullable int typing

CATEGORY
Choose one

[x] Bug Fix
[x] Enhancement (new features, refinement)
[x] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY
Load raw query result data into a PyArrow.Table structure, which handles nullable integer columns correctly. Convert Table to pandas.DataFrame when necessary for data manipulation.
Fixes https://github.com/apache/incubator-superset/issues/8225
Note: this PR also (re)sets the default configuration RESULTS_BACKEND_USE_MSGPACK = True based on the benchmarks below, and the coupling with PyArrow.
TODO

[x] Finish porting .columns method to SupersetTable
[x] Remove explicit dtype logic from PrestoEngineSpec
[x] Fix failing tests

TEST PLAN

Ensure correct query operations in SQL Lab and Explore views, via synchronous and async queries.
Test against columns including mixed integer + NULL values.

ADDITIONAL INFORMATION

[x] Has associated issue: https://github.com/apache/incubator-superset/issues/8225
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS
@betodealmeida @john-bodley
BENCHMARKS (2019-12-30)
All metrics below are averages over at least three runs on a local Superset installation running with a Postgres metadata and analytics DB (Macbook Pro 2.6 GHz, 32GB). The queries run here are selecting 100K rows from the birth_names table in the example datasets.

Instantiation of the new SupersetTable object in SQL Lab was slightly faster than SupersetDataFrame at 99.72444661ms vs<PHONE_NUMBER>ms, respectively.
Memory usage for the PyArrow.Table (5659776 bytes) was significantly lower than the Pandas DataFrame (22259209 bytes).
Serialization for async queries is where the biggest performance gains are. PyArrow performed better in nearly all metrics, with the following standouts:

On master, serialization/deserialization of the dataframe via json takes an average of ~7750ms
Pyarrow (with msgpack disabled) reduces this cycle to ~2850ms
Enabling msgpack in the serialization workflow further reduces this to ~1700ms, representing a ~78% performance improvement.

One last issue with datetime timezone support to address.

@robdiciuccio an issue was reported recently at Airbnb where nullable booleans weren’t being reported correctly, i.e., NULL was being cast to false per here.
Is this something which will be resolved by using PyArrow?
cc: @etr2460 @graceguo-supercat

@john-bodley PyArrow serialization appears to handle this case correctly. Test case added
in https://github.com/apache/incubator-superset/pull/8733/commits/a6e6b797209676f97a1c6c6a7ed631e2594411e5.
I'm hoping to wrap up the remaining timezone issue on this PR later this weekend or Monday (I'm out today).

Codecov Report

Merging #8733 into master will decrease coverage by 0.03%.
The diff coverage is 99.04%.

@@            Coverage Diff             @@
##           master    #8733      +/-   ##
==========================================
- Coverage   65.91%   65.88%   -0.04%
==========================================
  Files         483      484       +1
  Lines       24158    24127      -31
  Branches     2770     2770
==========================================
- Hits        15923    15895      -28
+ Misses       8057     8054       -3
  Partials      178      178

Impacted Files
Coverage Δ

superset/db_engine_specs/bigquery.py
38.15% <ø> (-1.85%)
:arrow_down:

superset/db_engine_specs/presto.py
21.74% <ø> (-0.74%)
:arrow_down:

superset/db_engine_specs/base.py
80.93% <ø> (-0.19%)
:arrow_down:

superset/sql_lab.py
78.24% <100%> (+0.2%)
:arrow_up:

superset/dataframe.py
100% <100%> (+5.51%)
:arrow_up:

superset/db_engine_specs/postgres.py
85% <100%> (+1.66%)
:arrow_up:

superset/views/core.py
72.15% <100%> (-0.02%)
:arrow_down:

superset/table.py
98.75% <98.75%> (ø)

superset/sql_validators/presto_db.py
82.43% <0%> (-2.08%)
:arrow_down:

superset/models/schedules.py
88.88% <0%> (-2.03%)
:arrow_down:

... and 7 more

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 e6be519...9315309. Read the comment docs.

Profiling info added in the description (good news!). Unless there are any additional concerns (particularly around date detection) or testing against additional analytics databases, I think this should be ready to go.

Spoke too soon, investigating some dashboard discrepancies with the example data.

Dashboard discrepancies were due to stale cache. Retested dashboards and SQL Lab with fresh example data in postgres and mysql. LGTM.

@mistercrunch @willbarrett I propose merging this; any comments or good to go?

Hi @robdiciuccio I am trying to deploy this feature to airbnb production. But I got many errors from Presto queries:
Unserializable object ['silver.braavos_staging.revenue_validation_detail_metrics'] of type <class 'numpy.ndarray'>
or
Not implemented type for list in DataFrameBlock: struct<author_type: string, locale: string>
The full stack trace:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2463, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.6/dist-packages/flask_appbuilder/security/decorators.py", line 168, in wraps
    return f(self, *args, **kwargs)
  File "/home/grace_guo/incubator-superset/superset/utils/log.py", line 59, in wrapper
    value = f(*args, **kwargs)
  File "/home/grace_guo/incubator-superset/superset/views/core.py", line 2291, in results
    return self.results_exec(key)
  File "/home/grace_guo/incubator-superset/superset/views/core.py", line 2342, in results_exec
    json.dumps(obj, default=utils.json_iso_dttm_ser, ignore_nan=True)
  File "/usr/local/lib/python3.6/dist-packages/simplejson/__init__.py", line 399, in dumps
    **kw).encode(obj)
  File "/usr/local/lib/python3.6/dist-packages/simplejson/encoder.py", line 296, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/lib/python3.6/dist-packages/simplejson/encoder.py", line 378, in iterencode
    return _iterencode(o, 0)
  File "/home/grace_guo/incubator-superset/superset/utils/core.py", line 383, in json_iso_dttm_ser
    "Unserializable object {} of type {}".format(obj, type(obj))
TypeError: Unserializable object ['silver.information_schema.tables'] of type <class 'numpy.ndarray'>

So i have to revert this feature from airbnb's release branch. Please take a look. We should also consider revert this PR from master branch.

@graceguo-supercat thanks for flagging. This should be fixed in https://github.com/apache/incubator-superset/pull/8946


Build: enable the swift-driver on Windows

The swift-driver works on Windows is in the process of becoming the
default driver on Windows.  This enable the last piece of the
swift-driver support in SPM.
[One line description of your change]
Motivation:
[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]
Modifications:
[Describe the modifications you've done.]
Result:
[After your change, what will change.]

@swift-ci please test

@swift-ci please smoke test


Fix force scrolling to the top repeatedly when use 'Always use "Follwing" Tab'

The original implementation uses the literal "following" string to detect the "Following" tab, but the string is localized to some strings in a non-English locale.
For instance, the "Following" tab is localized to "フォロー中" in Japanese locale.

In this PR, use localized "following" text from DOM to check "following" tab is selected.
fix #209, #206

Thanks for this @mactkg, I don't have this problem having X in English but the change makes sense to me. I'll implement this myself for the next update with a small tweak.

Thanks for your review. I'm look forward to fix this issue!

Agh, already fixed :D


feat: more async file operations

This PR aims to add these operations:

[x] OpenFile
[x] CreateSocket
[x] CloseFile
[x] CloseSocket
[x] Shutdown

Closes #124

IORING_OP_SOCKET is available since 5.19. Should we drop this support?

Although I'm the author of this PR, personally I don't recommend to merge it as is. It does sync operations on unsupported platforms, which may cause confusion.


React Native New Architecture support Done

feat: added fabric example
fix: example testing
fix: removed unwated scripts
feat: new architecture support done

Thank you @SolankiYogesh. I don't currently have time to review & test. If anyone can review it? :)

@RomualdPercereau  i can review and test it if you can add me into your team

Thanks @SolankiYogesh !
Do you use this in production at the moment?
These methods are missing for Android.
@ReactMethod
 public void enable(final Boolean enabled) {
   // no op
 }

 @Override
 public Map<String, Object> getConstants() {
   final Map<String, Object> constants = new HashMap<>();
   constants.put("IsAndroid", true);
   return constants;
 }

enable seems to be just a stub,
getConstants might cause some regression for some devs
For iOS while there's enableInSilenceMode method, enable is missing.
enable vs enableInSilenceMode - these serve different purposes in iOS:

enable: Uses AVAudioSessionCategoryAmbient - sound is muted when phone is in silent mode
enableInSilenceMode: Uses AVAudioSessionCategoryPlayback - sound plays even in silent mode

@RomualdPercereau maybe let's consider releasing alpha version with the new arch and ask devs to test it with us. I'll try to run some tests as well

@Okelm i think both methods are not required because. enable is for IOS only and for IsAndroid  i am directly using Platfrom.OS
ok let me check again all code and yes i am currently using this patch in my product app

ok yes enable method is missing let me add
`
RCT_EXPORT_METHOD(enable : (BOOL)enabled) {
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory:AVAudioSessionCategoryAmbient error:nil];
[session setActive:enabled error:nil];
}
`

As long as there's no plan to ditch Windows support this will require Windows new arch rewrite as well.


Unable to pull DockerHub "library" images from Artifactory mirror with CRI plugin

Description
We run an internal Artifactory 6.5.15 mirror for several Docker registries. We are able to successfully pull from these mirrors using the CRI plugin mirror configuration for everything except the DockerHub mirror for library images. Other mirrors appear to work, as do DockerHub images that are outside the library.
I'd like some suggestions on how to effectively troubleshoot this issue. I've attached a debug log for the pull of alpine:latest and quay.io/coreos/etcd for reference.
Steps to reproduce the issue:

Configure mirrors in /etc/containerd/config.toml as follows (and restart containerd):

# The "plugins.cri" table contains all of the server options.
[plugins.cri]
  # "plugins.cri.registry" contains config related to the registry
  [plugins.cri.registry]
    # "plugins.cri.registry.mirrors" are namespace to mirror mapping for all namespaces.
    [plugins.cri.registry.mirrors]
      # this is the default docker.io endpoint, provided here for easy overriding
      [plugins.cri.registry.mirrors."docker.io"]
        endpoint = ["https://artifactory-dockerhub.cloud.mycompany.com"]
      [plugins.cri.registry.mirrors."quay.io"]
        endpoint = ["https://artifactory-quay.cloud.mycompany.com"]

Ensure that no proxies are set (to avoid the fallback behavior of trying the "real" URL instead of the mirror)
Run crictl pull alpine:latest and observe failure; run crictl pull quay.io/coreos/etcd and success

Describe the results you received:
# crictl pull alpine:latest
FATA[0030] pulling image failed: rpc error: code = Unknown desc = failed to resolve image "docker.io/library/alpine:latest": no available registry endpoint: failed to do request: Head https://registry-1.docker.io/v2/library/alpine/manifests/latest: dial tcp <IP_ADDRESS>:443: i/o timeout
# crictl pull datadog/agent:latest
Image is up to date for sha256:bd0a7373ebd406ee22c95c6f56d67c53f5a96e79b8c6f5278a7afb7069bffd0a
# crictl images | grep datadog
docker.io/datadog/agent                                   latest               bd0a7373ebd40       141MB
# crictl pull quay.io/coreos/etcd
Image is up to date for sha256:563140596254cfdf709312e9ca7e5c7f6096df2b8e019d36d1112933f4a75e2d

Describe the results you expected:
# crictl pull alpine:latest
Image is up to date for sha256:cdf98d1859c1beb33ec70507249d34bacf888d59c24df3204057f9a6c758dddb
[containerd_log.txt](https://github.com/containerd/containerd/files/3098877/containerd_log.txt)
# crictl pull datadog/agent:latest
Image is up to date for sha256:bd0a7373ebd406ee22c95c6f56d67c53f5a96e79b8c6f5278a7afb7069bffd0a
# crictl pull quay.io/coreos/etcd
Image is up to date for sha256:563140596254cfdf709312e9ca7e5c7f6096df2b8e019d36d1112933f4a75e2d

Output of containerd --version:
$ containerd --version
containerd github.com/containerd/containerd v1.2.5 bb71b10fd8f58240ca47fbb579b9d1028eea7c84

containerd_log.txt

I also tried the direct image links with ctr and see similar results:
# ctr images pull artifactory-dockerhub.cloud.mycompany.com/datadog/agent:latest
artifactory-dockerhub.cloud.mycompany.com/datadog/agent:latest:                  resolved       |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:5fbe2c87d4c4c2d9fc2d4bf45e39b0572f7f3f8ff906e3a77515a3308ab0c2cf: done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:f7a7835e79f5522f52e077f45bc2cc8e71b9674e2eb46bebd9c2f5fcd6943e0e:    done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:bd0a7373ebd406ee22c95c6f56d67c53f5a96e79b8c6f5278a7afb7069bffd0a:   done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:5483a654a8012cd4f328d699f219c1761bab4b6fd1d5f2ca3bb8aca2d5aa53c3:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:735f4085dd1cd6f2e1581185bf2f81c1603068825ae85afcfb5470d1ebf0b449:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:51edcb040a6b418c680a82c448798c7b15dfc8ba841e38150590e9bffe67890f:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:bb5c2e5f091343a9c7e541a71f2bf326df8ae92395b223091a323ec27e7a7ec3:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:87344516b9130a2acc66c9ffe22cfa7d8cc0fd6aeb7459a092e37c4bf07985e2:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:4900711879fb48ef28b25e55b23506a632ebd16233c7a546f41b5140820aa99b:    done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:3af69c94dfc8597b927f3c3e2aa14a153667c67954433cd853e1f0d35b413883:    done           |++++++++++++++++++++++++++++++++++++++|
elapsed: 3.5 s                                                                    total:  134.9  (38.5 MiB/s)
unpacking linux/amd64 sha256:5fbe2c87d4c4c2d9fc2d4bf45e39b0572f7f3f8ff906e3a77515a3308ab0c2cf...
done

# ctr images pull artifactory-dockerhub.cloud.mycompany.com/docker.io/library/alpine:latest
artifactory-dockerhub.cloud.mycompany.com/docker.io/library/alpine:latest: resolving      |--------------------------------------|
elapsed: 0.7 s                                                    total:   0.0 B (0.0 B/s)
ctr: failed to resolve reference "artifactory-dockerhub.cloud.mycompany.com/docker.io/library/alpine:latest": could not resolve digest for artifactory-dockerhub.cloud.capitalone.com/docker.io/library/alpine:latest

docker pull and crictl with CRI-O for the library images seems to work fine, so this appears to be containerd specific.

ping @AkihiroSuda @dmcgowan

I wonder if there is a non-rooted regex match on docker.io/library somewhere because from the log it would appear it is not talking to artifactory mirror, but back to DockerHub itself:
time="2019-04-12T21:40:55.166249570Z" level=error msg="PullImage "alpine" failed" error="failed to resolve image "docker.io/library/alpine:latest": no available registry endpoint: failed to do request: Head https://registry-1.docker.io/v2/library/al>

specifically: no available registry endpoint: failed to do request: Head https://registry-1.docker.io/v2/library/al...

It works for me with the following config:
[plugins.cri.registry.mirrors."docker.io"]
  endpoint = ["https://mirror.gcr.io","https://registry-1.docker.io"]

I checked your containerd log. I think containerd does try to get the image from artifactory-dockerhub.cloud.mycompany.com, but got an Unauthorized error:
time="2019-04-12T21:40:24.527483596Z" level=debug msg="PullImage using normalized image ref: "docker.io/library/alpine:latest""
time="2019-04-12T21:40:24.527550346Z" level=debug msg=resolving
time="2019-04-12T21:40:24.527567197Z" level=debug msg="do request" request.headers=map[Accept:[application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+jso>
time="2019-04-12T21:40:24.611032492Z" level=debug msg="fetch response received" response.headers=map[Server:[Artifactory/6.5.15] X-Artifactory-Id:[ef33eabd182fcd96a8a18e66aca6988218c121dc] X-Artifactory-Node-Id:[ip-10-21-145-70] Docker-Distribution->
time="2019-04-12T21:40:24.611380456Z" level=debug msg=Unauthorized header="Bearer realm="https://artifactory-dockerhub.cloud.mycompany.com:443/artifactory/api/docker/dockerhub/v2/token",service="artifactory-dockerhub.cloud.mycompany.com:443""
time="2019-04-12T21:40:24.625290968Z" level=debug msg="do request" request.headers=map[Accept:[application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+jso>
time="2019-04-12T21:40:25.165357607Z" level=debug msg="fetch response received" response.headers=map[X-Artifactory-Filename:[list.manifest.json] Content-Disposition:[attachment; filename="list.manifest.json"] Docker-Distribution-Api-Version:[registr>
time="2019-04-12T21:40:25.165683950Z" level=debug msg=resolving
time="2019-04-12T21:40:25.165773819Z" level=debug msg="do request" request.headers=map[Accept:[application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+jso>
time="2019-04-12T21:40:55.166249570Z" level=error msg="PullImage "alpine" failed" error="failed to resolve image "docker.io/library/alpine:latest": no available registry endpoint: failed to do request: Head https://registry-1.docker.io/v2/library/al>

In containerd, when pulling image, we try mirrors one by one in order, and if none of the mirrors works, we try to pull the image without mirror directly.
See the logic here. https://github.com/containerd/cri/blob/master/pkg/server/image_pull.go#L251
I think in you case, containerd should have tried artifactory-dockerhub.cloud.mycompany.com, but didn't get through. So it tried to pull docker.io/library/alpine directly without mirror, which goes to registry-1.docker.io. That's why you see the no available registry endpoint error reported here https://github.com/containerd/cri/blob/master/pkg/server/image_pull.go#L281.
Can you try pulling with artifactory-dockerhub.cloud.mycompany.com/library/alpine:latest directly? Does it work? I guess it doesn't.

For me it also works. We've been using this for a while. Similar config to Random-Liu.

The reproduction case seems to have a bug in it. There are changes being considered in CRI to allow fallbacks. Please see Random Liu's instructions for debugging and reproducing, if there is still an issue feel free to re-open.

I am also facing this issue
Please verifify the steps i have performed.

Import docker image using tar.gz file (private tar file)
docker import .tar.gz :
docker save :-o testimage.tar
crictl images
docker.io/library/              025bf97099229       535MB
ctr -n=k8s.io images import testimage.tar :

when i try to create a deployment using created image got below error
Type     Reason   Age                     From     Message

Warning  Failed   58m (x2 over 64m)       kubelet  Failed to pull image ":": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/:": failed to resolve reference "docker.io/library/:": failed to do request: Head https://registry-1.docker.io/v2/library//manifests/: dial tcp <IP_ADDRESS>:443: i/o timeout
Warning  Failed   34m (x11 over 107m)     kubelet  (combined from similar events): Failed to pull image ":": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library":": failed to resolve reference "docker.io/library/:": failed to do request: Head https://registry-1.docker.io/v2/library/**/manifests/_**: dial tcp <IP_ADDRESS>:443: i/o timeout

I am also facing this issue
Please verifify the steps i have performed.

Import docker image using tar.gz file (private tar file)
docker import .tar.gz :
docker save :-o testimage.tar
crictl images
docker.io/library/                                                                                025bf97099229       535MB
ctr -n=k8s.io images import testimage.tar :

when i try to create a deployment using created image got below error
Type Reason Age From Message
Warning Failed 58m (x2 over 64m) kubelet Failed to pull image "{name}:{tag}": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/{name}:{tag}": failed to resolve reference "docker.io/library/{name}:{tag}": failed to do request: Head https://registry-1.docker.io/v2/library/{name}/manifests/**_{tag}**: dial tcp <IP_ADDRESS>:443: i/o timeout Warning Failed 34m (x11 over 107m) kubelet (combined from similar events): Failed to pull image "{name}:{tag}": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library"{name}:{tag}": failed to resolve reference "docker.io/library/{name}:{tag}": failed to do request: Head https://registry-1.docker.io/v2/library/{name}/manifests/**_{tag}_**: dial tcp <IP_ADDRESS>:443: i/o timeout``

check your image pull policy..?


Clippy warning inside macro, docs for unsafe trait missing Safety section

This is happening with the 0.24.0 release, not sure about other versions. Because it's inside the macro, I couldn't see an obvious way to ignore the warning w/ the usual method. This is a warning but I have warnings upgraded to errors in our CI.
error: docs for unsafe trait missing `# Safety` section
  --> crates/wasm-sdk/src/lib.rs:8:5
   |
8  | /     wit_bindgen::generate!({
9  | |         world: "bulwark:plugin/platform",
10 | |     });
   | |______^

For the time being I ended up just disabling it on the command line, but it's likely to also affect anyone using our SDK as it also triggers for our own macros which are wrapping the generate! macro.

Created a PR to fix.


ansible-navigator config just clears screen and returns blank

ProductName:	macOS
ProductVersion:	11.2.1
BuildVersion:	20D74
Python 3.9.2
ansible-navigator 0.6.0
same when running :config within the TUI

Which ansible/ansible-core/ansible base version is installed and how was it installed?
Is ansible-config available in your $PATH and does it work?
I'm not able to reproduce this on macOS 11.2.3, py38.

well it's working now!
pip list
ansible           3.2.0
ansible-base      2.10.7
ansible-navigator 0.6.0
ansible-runner    2.0.0a1


Throttled image rate using ROS

Hello,
I recently cloned the OVC3b module with great success. However, when I connect the module to my laptop with USB-C, the image rate is lower than what I get on the OVC (15-20Hz instead of 33Hz). Have you ever experienced such a result? I would like to avoid compressing the image to avoid additional latency.
I really appreciate the effort put into this project.
Thank you !

Hi!
First of all how many cameras are you trying to subscribe to in parallel? You might reach bandwidth issues if you are running a lot of those and your USB is not fast enough.
We had some issues of laptops USB controllers not being fast enough, can you run:
iperf3 -s on your laptop and
iperf3 -c <your_laptop_ip> on the OVC
and report the results? Ideally you should get something in the 2.7-3.2Gbps range but I have seen laptops go as low as 1.6Gbps. This is the maximum bandwidth that you have over USB and you can use it together with the image size and frame rate to see if you are being bandwidth limited or not.

Luca, thank you so much for your help.

First of all how many cameras are you trying to subscribe to in parallel? You might reach bandwidth issues if you are running a lot of those and your USB is not fast enough.

The three cameras and the IMU work simultaneously. But on the laptop side, I only tried to subscribe to one camera.
 The bandwidth result is much lower than what you mentioned.
I'm currently using a USB-C to USB-C cable, I'll try on a different hardware with various cables. I will keep you informed of the result.

Hi!
You are running at USB2 speed, I think the issue is that you might be using
one of those cables that is designed for charging devices and doesn't
actually have all the USB3 signal wires (this is usually done to cut
costs). Try to find a cable that is certified for USB3 and you should be
good to go!
On Wed, Mar 17, 2021, 6:08 PM augustebleu @.***> wrote:

Luca, thank you so much for your help.
First of all how many cameras are you trying to subscribe to in parallel?
You might reach bandwidth issues if you are running a lot of those and your
USB is not fast enough.
The three cameras and the IMU work simultaneously. But on the laptop side,
I only tried to subscribe to one camera.
Here is the result of the command line on laptop side:

Server listening on 5201
Accepted connection from <IP_ADDRESS>, port 43302
[  5] local <IP_ADDRESS> port 5201 connected to <IP_ADDRESS> port 43304
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  43.3 MBytes   364 Mbits/sec
[  5]   1.00-2.00   sec  45.4 MBytes   381 Mbits/sec
[  5]   2.00-3.00   sec  45.5 MBytes   382 Mbits/sec
[  5]   3.00-4.00   sec  45.1 MBytes   378 Mbits/sec
[  5]   4.00-5.00   sec  45.5 MBytes   382 Mbits/sec
[  5]   5.00-6.00   sec  45.5 MBytes   382 Mbits/sec
[  5]   6.00-7.00   sec  45.1 MBytes   378 Mbits/sec
[  5]   7.00-8.00   sec  45.5 MBytes   382 Mbits/sec
[  5]   8.00-9.00   sec  45.5 MBytes   382 Mbits/sec
[  5]   9.00-10.00  sec  45.0 MBytes   378 Mbits/sec
[  5]  10.00-10.04  sec  2.03 MBytes   380 Mbits/sec

[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.04  sec   453 MBytes   379 Mbits/sec                  receiver
You just pointed out the right problem I guess. The bandwidth result is
much lower than what you mentioned.
I'm currently using a USB-C to USB-C cable, I'll try on a different
hardware with various cables. I will keep you informed of the result.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/osrf/ovc/issues/37#issuecomment-800958567, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACFQQBWPU5HVREMYRRXJ26DTEB5QZANCNFSM4ZKEUFWA
.

By trying with a brand new USB3.0 cable, on another computer, the problem is now solved!


rPackages: sparklyr environment variables

This PR sets the default SPARK_HOME and JAVA_HOME for R's sparklyr package using a patch for .onload. Preset value take precedence. SPARK_HOME points to python3Packages.pyspark rather than pkgs.spark because the former is actively maintained.
Is there a way to automatically infer and set the python version in this line?
${pkgs.python3Packages.pyspark}/lib/python3.10/site-packages/pyspark

@alexvorobiev
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

Yes, you can get the prefix from the python interpreter:
${pkgs.python3Packages.pyspark}/lib/${pkgs.python3Packages.python.libPrefix}/site-packages/pyspark

Thanks @jbedo. Done.

Result of nixpkgs-review pr 219439 run on aarch64-darwin 1


NO REVIEW : Object picking example

An example of object picking technique with object outlining on the selected object.

@JekiXD @vadimb892 review please

@vadimb892 @JekiXD review please

Also when resize window, image is stretching and object picking doesn't work correctly.

I made canvas fixed size, so now picking shouldn't break on resize. However, now if you make window too small, canvas won't fit into it, and you won't be able to see the entire scene. I decided on this solution over proper scene resizing because it would complicate code much and make it less readable and also it is somewhat out of scope of demo purpose.


Websocket connection closed after 60 secs

Environment

VerneMQ Version: 1.9.1
OS: erlio/docker-vernemq:1.9.1-alpine
VerneMQ configuration (vernemq.conf):

allow_anonymous = off
persistent_client_expiration = 1w
max_online_messages = 10000
max_offline_messages = 1000
listener.max_connections = 10000
plugins.vmq_webhooks = on
plugins.vmq_webhooks.priority = 1
vmq_webhooks.webhook_reg.hook = auth_on_register
vmq_webhooks.webhook_reg.endpoint = http://auth:5000
vmq_webhooks.webhook_sub.hook = auth_on_subscribe
vmq_webhooks.webhook_sub.endpoint = http://auth:5000
vmq_webhooks.webhook_pub.hook = auth_on_publish
vmq_webhooks.webhook_pub.endpoint = http://auth:5000
vmq_webhooks.webhook_pub.no_payload = on
plugins.vmq_diversity = on
vmq_diversity.auth_postgres.enabled = on
plugins.vmq_passwd = off
plugins.vmq_acl = off
plugins.vmq_bridge = off
log.console = console
log.console.level = debug
nodename =<EMAIL_ADDRESS>distributed_cookie = vmq

Cluster size/standalone: 1 node
paho js mqtt client 1.1.0
Chrome 76, Firefox 68 running on Ubuntu 18.04

Expected behavior
The websocket connection should not close when subscription messages are still being received.
Actual behaviour
The websocket connection closes after 60 secs unless a message is published, even though messages are received and client keep alive is set to 5 min.
The problem only affects websocket connections, not a direct mqtt connection.
The problem happens both when connecting to the broker through a loadbalancer over the Internet and when running the broker locally over localhost.
The problem does not happen when connecting to a mosquitto broker over websockets using the same client.
The VerneMQ log just shows: 14:05:47.091 [debug] stop due to disconnect

Hi, thanks for reporting. I was able to confirm the behaviour and we'll see if we can figure out what's going on. I suspect our recent upgrade of the websocket library might have something to do with it.

Hi @tobdub we just merged a fix for this which will be part of VerneMQ 1.9.2. Thanks again for reporting!


cmd/go/internal/fmtcmd: support format files in multiple directories

What version of Go are you using (go version)?

$ go version
go version go1.16.3 darwin/amd64

What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ianwoolf/Library/Caches/go-build"
GOENV="/Users/ianwoolf/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/ianwoolf/code/go/pkg/mod"
GONOPROXY="*.10101111.com"
GONOSUMDB="*.10101111.com"
GOOS="darwin"
GOPATH="/Users/ianwoolf/code/go"
GOPRIVATE="*.10101111.com"
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/ianwoolf/code/go/src/go/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3f/x8jl0lgx629d_5bz0537gxnm0000gn/T/go-build3157445082=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
the function go/internal/load.PackagesAndErrors only support the files with all patterns referring to either:
- Files that are part of the same directory.
- Explicit package paths or patterns.

So go fmt do not support files in multiple directories, a command like go fmt a/a.go b/b.go will get an error msg named files must all be in one directory; have.....
But go fmt support mulitple pkg, e.g: go fmt a/ b/.
It seems that files in multiple directories should be supported.
What did you expect to see?
could go fmt files in muliple directories. such as: go fmt a/a.go b/b.go
What did you see instead?
get error msg like named files must all be in one directory; have....

cc: @robpike @martisch

cc @jayconrod @matloob @rsc @ianlancetaylor via https://dev.golang.org/owners

In general the arguments to go subcommands follow https://tip.golang.org/cmd/go/#hdr-Package_lists_and_patterns:

Many commands apply to a set of packages:
go action [packages]

Usually, [packages] is a list of import paths.
…
As a special case, if the package list is a list of .go files from a single directory, the command is applied to a single synthesized package made up of exactly those files, ignoring any build constraints in those files and ignoring any other files in the directory.

In theory go fmt could be made to accept wider patterns than the other subcommands, but at the moment I don't see a compelling reason to do so — it adds a fair amount of complexity to the go fmt implementation in order to support a use-case that seems can already be handled fairly straightforwardly using xargs or a similar command wrapper.

@ianwoolf, is there a particular use-case that cannot be handled without this? Otherwise, I don't think it's worth the extra complexity of deviating from the patterns accepted by the other go subcommands.


Adding processors to the configuration-values.json file

I want to use the filter processor to tell the aws-otel collector exclude a specific namespace when collecting logs.
For that I tried to reference the respective configurations on the custom configuration-values.json file I constructed to deploy aws-otel when using the eks-addon.
The point is that when reviewing the Add-on configuration schema against the values are validated, I don't see in the format structure, a place for the processors attribute. So when executing my custom json values file I got this error:
eks-add-on aws eks update-addon \
    --cluster-name "jupiter-staging" \
    --addon-name adot \
    --configuration-values file://configuration-values.json \
    --resolve-conflicts=OVERWRITE

An error occurred (InvalidParameterException) when calling the UpdateAddon operation: ConfigurationValue provided in request is not supported: Json schema validation failed with error: [$.collector.containerLogs.pipelines.logs.processors: is not defined in the schema and the schema does not allow additional properties, $.collector.processors: is not defined in the schema and the schema does not allow additional properties]

It means that collector.containerLogs.pipelines.logs.processors is not a valid structure according to the aws addon schema .. also collector.processors. This is the configuration-values.json file where I am referencing the processors attribute and gave me the above error:
{
  "admissionWebhooks": {
    "namespaceSelector": {},
    "objectSelector": {}
  },
  "affinity": {},
  "collector": {
    "containerLogs": {
      "exporters": {
        "awscloudwatchlogs": {
          "log_group_name": "/aws/OpenSearchService/domains/my-app/error-logs-from-aws-otel",
          "log_stream_name": "aws-otel-logs"
        }
      },
      "pipelines": {
        "logs": {
          "cloudwatchLogs": {
            "enabled": true
          },
          "processors": [
            "batch",
            "filter/namespace_exclude"
          ]
        }
      },
      "resources": {
      "limits": {
        "cpu": "1000m",
        "memory": "4Gi"
      },
      "requests": {
        "cpu": "700m",
        "memory": "256Mi"
      }
    },
      "serviceAccount": {
        "annotations": {
          "eks.amazonaws.com/role-arn": "arn:aws:iam::218610432265:role/eksctl-my-app-staging-addon-iamserviceaccoun-Role1-OEH458IHZuzm"
        }
      }
    },
    "otlpIngest": {
      "pipelines": {
        "traces": {
          "xray": {
            "enabled": false
          }
        }
      },
      "resources": {
      "limits": {
        "cpu": "1000m",
        "memory": "4Gi"
      },
      "requests": {
        "cpu": "700m",
        "memory": "256Mi"
      }
    },
      "serviceAccount": {
        "annotations": {
          "eks.amazonaws.com/role-arn": "arn:aws:iam::218610432265:role/eksctl-my-app-staging-addon-iamserviceaccoun-Role1-OEH458IHZuzm"
        }
      }
    },
    "processors": {
      "batch": {},
      "filter/namespace_exclude": {
        "logs": {
          "exclude": {
            "match_type": "strict",
            "resource_attributes": [
              {
                "key": "k8s.namespace.name",
                "value": "amazon-cloudwatch"
              }
            ]
          }
        }
      }
    }
  },
  "kubeRBACProxy": {
    "resources": {
      "limits": {
        "cpu": "1000m",
        "memory": "4Gi"
      },
      "requests": {
        "cpu": "700m",
        "memory": "256Mi"
      }
    }
  },
  "manager": {
    "env": {
      "ENABLE_WEBHOOKS": "true"
    },
    "resources": {
      "limits": {
        "cpu": "1000m",
        "memory": "4Gi"
      },
      "requests": {
        "cpu": "700m",
        "memory": "256Mi"
      }
    }
  },
  "nodeSelector": {},
  "replicaCount": 1,
  "tolerations": []
}

It seems the EKS adot addon does not support addding processors. Am I right?
I've tried then to customize a config.yaml file and apply it via kubectl apply .., and the changes are not reflected on the config map, neither in the daemonset when I restart it to get the changes.
Why this behavior?
It seems since the aws-otel is being managed by the EKS addon, it keeps a sync of its changes only via the addon or aws eks tool (being this cloud-formation under the hook), so that is why the changes I applied manually are not reflected?
If so, how can I apply processors and custom configurations to aws-otel collector when it is managed by the eks-addon? Is that not possible?
If that is the case are there another alternatives to deploy aws-otel on EKS without using the eks-addon so I can get more flexibility an control of customizations actions like this? I could not find a helm chart or a repository with another way to deploy it.
I will appreciate your input on this subject. :)

I found these OpenTelemetryCollector resources samples to add configurations to the collector.  A set of scenarios here are described.
:)


Whenever I open a link, windows first turns on wsa, Is there a way to change this behavior?

Is your feature request related to a problem? Please describe
Whenever I open a link, windows first turns on wsa, Is there a way to change this behavior?
Describe the solution you'd like
I would like the link to directly open the default app specified in windows 11 rather than checking wsa apps first.
Describe alternatives you've considered
No response
Please specify the version of Windows Subsystem for Android
2309.40000.2.0

Having the same issue, it's really annoying when i click a link and WSA just turns on, a partial workaround was taking away the app permission for the URLs, but it only works temporarily, because after rebooting the PC clicking the links will turn WSA on again, even when it still says the app don't have permission to open these URLs.

Duplicate of #342


Unexpected key(s) in state_dict

Hello, many thanks for your wonderful work, when I load the pretrained/midas/dpt_beit_large_512.pt, I meet a RuntimeError as follows:
RuntimeError: Error(s) in loading state_dict for DPTDepthModel:
Unexpected key(s) in state_dict: "pretrained.model.blocks.0.attn.relative_position_index", "pretrained.model.blocks.1.attn.relative_position_index", "pretrained.model.blocks.2.attn.relative_position_index", "pretrained.model.blocks.3.attn.relative_position_index", "pretrained.model.blocks.4.attn.relative_position_index", "pretrained.model.blocks.5.attn.relative_position_index", "pretrained.model.blocks.6.attn.relative_position_index", "pretrained.model.blocks.7.attn.relative_position_index", "pretrained.model.blocks.8.attn.relative_position_index", "pretrained.model.blocks.9.attn.relative_position_index", "pretrained.model.blocks.10.attn.relative_position_index", "pretrained.model.blocks.11.attn.relative_position_index", "pretrained.model.blocks.12.attn.relative_position_index", "pretrained.model.blocks.13.attn.relative_position_index", "pretrained.model.blocks.14.attn.relative_position_index", "pretrained.model.blocks.15.attn.relative_position_index", "pretrained.model.blocks.16.attn.relative_position_index", "pretrained.model.blocks.17.attn.relative_position_index", "pretrained.model.blocks.18.attn.relative_position_index", "pretrained.model.blocks.19.attn.relative_position_index", "pretrained.model.blocks.20.attn.relative_position_index", "pretrained.model.blocks.21.attn.relative_position_index", "pretrained.model.blocks.22.attn.relative_position_index", "pretrained.model.blocks.23.attn.relative_position_index".

You should have included the whole error code, I ran into the same issue that is the only reason I found the issue.
Under folder midas go to file base_model.py
 if "optimizer" in parameters:
        parameters = parameters["model"]

  self.load_state_dict(parameters)

You need to indent the last line so it looks something like below.
 if "optimizer" in parameters:
        parameters = parameters["model"]

        self.load_state_dict(parameters)

I hope this fix your issue, you may need to do pip install timm==0.6.7 as the current version of timm seem to be incompatible.
Also when you use the sample image in data folder, make sure you check the name of the folder and the file.


Mouse button 4 still not working for back

OS: Arch Linux 4.4.5
Issue Descriptions: Though the changelog said that mouse button back should be working, I am still experiencing no response when pressing mouse button 4 to go back.
Steps to Reproduce: Open gpmdp, click on an album, press mouse button 4.

Mouse button 4? Can you open xev and send me the output of your back button?

https://gist.github.com/davorb/aa1fce1678e49b4abd8ab312cc0b8bc4

@davorb Is your back button not working either?

Okay I need some more input from either of you before I can fix anything here.  @davorb You are registering key 8 as back, which is the correct key so everything should be working. @ThurnisH41ey If you have mouse button 4 registered as the back button, what mouse are you using? Buttons 4 and 5 are usually the scroll wheel.

ButtonPress event, serial 32, synthetic NO, window 0x1800001,
root 0x1d1, subw 0x0, time 7961025, (577,684), root:(591,740),
state 0x10, button 8, same_screen YES
ButtonRelease event, serial 32, synthetic NO, window 0x1800001,
root 0x1d1, subw 0x0, time 7961149, (577,684), root:(591,740),
state 0x10, button 8, same_screen YES

Maybe it's not MB4 then. I'm using a Mionix Naos 7000

I'm not sure how the package system works on arch, etc, but is it possible for you to run this from shell and capture the output? The native module should be spitting out an error if the window is failing to register. Other than that I'm not sure specifically what would be causing the issue, as you both have mouse button 8 triggering xev.

Stable builds should fix this in the future, aka gpmdp-git in AUR because it's pre-built by Circle CI. The current non-stable branch on the AUR (aka google-play-music-desktop-player-git) won't build correctly until all the dependencies have been met, which are not present in PKGBUILD.

@jostrander I maintain both AUR packages. Could you specify what I'm missing in the non-stable package? It builds, installs, and runs for me, though I don't have enough mouse buttons to test this functionality.

Currently in order for the mouse functionality to be built, the libx11-dev (ubuntu) package equivalent needs to be present, or at the very least the X11 headers for both 32 and 64 bit. I tried searching but I'll be honest my Arch knowledge is pretty slim. The stable build as I said is fine because you're pulling the pre-built deb which is built with all the dependencies.
This is the build error I was receiving on Arch this morning when I tried downloading the PKGBUILD and building/installing:

It looks like it may be related to not having the equivalent of multiarch libs installed (ia32-libs/debian).
I would like to separate the build tooling out so that you can build a better package for arch, or independently build each package in general for linux to avoid issues like this in the future.

Yep, looks like it won't build on a fully 32-bit or 64-bit system due to the build process building both by default. If you're running on a 64-bit Arch installation, edit /etc/pacman.conf, uncomment the multilib repository, and install gcc-multilib. This should allow you to build and install.
Sadly, because of the way Arch works, this effectively limits the package's compatibility to the subset of 64-bit Arch users that have multilib enabled (since 32-bit Arch can't build 64-bit packages period). If the build tools could be managed in such as a way that allowed building only a specific architecture at a time, then this problem would be solved. Until that time, I'll add gcc-multilib as a build dependency for the unstable package.
All of that being said, this shouldn't have anything to do with mouse buttons issues. :confused:

Well unfortunately the mouse uses my custom built node native module to capture buttons 8 and 9 for the gpm window because electron doesn't capture them, and if that fails to build the deb will still continue because its only an optional dependency, but the buttons won't work. I was able to get the master branch to build from master and work with my mouse, but couldn't get you're pkgbuild to build correctly and work with the mouse buttons (I'm assuming) from the errors above.

Gotcha. If you uncomment the multilib repository and run sudo pacman -Syy gcc-multilib, you should be good to go to use my PKGBUILD. Would you then be able to see if your module is being built?

I will spin up the VM and see what I can do, if you don't mind, where am I uncommented multilib?

in /etc/pacman.conf there should be two lines that look like
#[multilib]
#Include = /etc/pacman.d/mirrorlist

Uncomment those, then run sudo pacman -Syy gcc-multilib. Should be good. Note that I've not ever combined -Syy with a package name, so if that doesn't work, try pacman -Syy and then pacman -S gcc-multilib.

Still missing X11 dev headers in the master build processes:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status

However mouse buttons are working without issue for me now via AUR.
@ThurnisH41ey @davorb can you update your packages and see if it fixes the issue?

Hey,
Sorry for the late reply @jostrander. I just built it on my machine (Ubuntu 15.10) and it works great.
Thanks!

@jostrander
Little late, but wanted to let you know I added libx11 dependencies to the unstable pkgbuild as make dependencies.

@BrianAllred @jostrander Can I close this issue now considering the AUR's packages now build?
We can watch #894 for further progress

@MarshallOfSound Yes, I can confirm the back and forward shortcuts work using the AUR package. Found a mouse with enough buttons, lol.

I think it would be safe to close this issue and track #894 for future updates as the mouse buttons were only a side effect.


[BUG] Updating a TransformedTargetForecaster with Deseasonalizer breaks

From discord help-desk, @foobar
from sktime.forecasting.theta import ThetaForecaster
from sktime.forecasting.compose import TransformedTargetForecaster
from sktime.transformations.series.detrend import Deseasonalizer
from sktime.datasets import load_airline

all_df = load_airline().to_frame()

model = TransformedTargetForecaster(
    [
        ("deseasonalize", Deseasonalizer(model="additive", sp=12)),
        ("forecast", ThetaForecaster()),
    ]
)
train_df = all_df["1949":"1950"]
model.fit(train_df)
model.update(y=all_df["1951"])

Gives an error TypeError: _fit() got an unexpected keyword argument update_params
Workaround: Pass Deseasonalizer into a OptionalPassthrough object
i.e.  sktime.transformations.series.compose.OptionalPassthrough(Deseasonalizer(...))

confirmed, the line with the _fit call should not have update_params in it, that is not a fit parameter.


Support loading assets from disk in Electron

Hi, I'm running my game in Electron and am having trouble loading any asset with a file:// url. I'm trying to load an asset selected by the user. For example in the preload method I'm calling:
this.load.image('test', 'file:///some/file/on/my-computer.png')

This was working until<EMAIL_ADDRESS>Now, I don't get any errors from the loader and no network requests are sent. When I try creating a GameObject with the test sprite, it is completely transparent.
Please advise how to work around this.
Thanks so much!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Why did you close this? Did you manage to resolve it?

no, didn't manage to resolve but wasn't able to reproduce starting from https://github.com/electron/electron-quick-start and adding phaser then rendering a game. even worked in an iframe, so it must be something very specific to my setup that is broken

I was having issues with Electron dealing with file paths as well, which I talked about here.
Additionally, the issues I was having with file:/// not working actually resolved themselves when I switched from electron-webpack to electron-prebuilt. So, I suspect this may be more of an issue with Electron.

OK, I actually figured out my specific issue: on preload I was calling game.scene.stop(key) for all game.scene.keys which turned out to also include the scene that was trying to preload things. This seems like the expected behavior in this case, though it would be nice to get some sort of warning like: Stopping a scene before preload has finished!

Well, that's an edge case and then some! Will have a think about implications of stopping a scene during preload.


After 60 days feed is down, displaying 'Session Expired'

After installing and activating on April 1 it looks like the token never refreshed.
Error: api request error: 190 Error validating access token: Session has expired on Sunday, 31-May-20 10:12:48 PDT. The current time is Monday, 01-Jun-20 08:12:02 PDT.

Thanks for any help!

@benjamin-hull
I am facing same issue

@benjamin-hull
I am facing same issue, please help me what should I do.

Hi @baronferguson - sorry for the delayed response: Github just refuses to send me the notifications I want on this repo!
Did this originally work and then stop? If so, then it sounds like there's an issue with the scheduling service which is supposed to refresh the token. Are you able to email me (available in my profile) with the specific address of your agent on Heroku so I can see more?

Another thing to check, for both @baronferguson and @creatpixinfotech - if you log into your Heroku dashboard, and go to the Resources tab for your app, you should see 3 Add-ons: Heroku Postgres, MemCachier and Temporize Scheduler. Could you just confirm that all three are there?
If so, click the 'Temporize Scheduler' link to open the scheduling dashboard - you should see a single entry in the 'Events' table, showing the recurring event and the time it's supposed to re-run.

@benjamin-hull
Thanks Ben. We will do it and let you know our feed is working or now.

Hi @benjamin-hull thank you for looking into this! I really appreciate all your hard work and for continuing to follow up.
All three Add-ons are present: 1) Heroku Postgres, 2) MemCachier, and 3) Temporize Scheduler.
Within Temporize everything looks the same as your example as well as the single event. I will email you the app url.

I'm having the same problem. I tried triggering manually and checked heroku logs and looks like the refresh url is throwing an exception:
line: /app/lib/instagram_token_agent/client.rb:45:in signature' #<NoMethodError: undefined method webhook_secret' for nil:NilClass>
So seems like "app" in https://github.com/companionstudio/instagram-token-agent/blob/master/app.rb#L148 is nil. Should that be "settings" instead?

@benjamin-hull similar to @nburt my cron is also triggering a 500 error:

When I click to find out more I see the following:

I would really appreciate it if there's anything that can be done to resolve any issues with this. It's a fantastic tool which we're using more & more.
If there's any more detail I can provide, please let me know!

@benjamin-hull similar to @nburt my cron is also triggering a 500 error:

When I click to find out more I see the following:

I would really appreciate it if there's anything that can be done to resolve any issues with this. It's a fantastic tool which we're using more & more.
If there's any more detail I can provide, please let me know!

Facing this same issue! I love this app so far, but unsure of how to get it back to being operational. The issue sounds the exact same as the others in this thread.

I'm experiencing the same issue but have no new information to add. My screenshot would look very similar to @adaptpatrick and @mariohoyos92 (error 500 with "An unhandled lowlevel error occurred." in the response body). I really appreciate the work done on this project!

I am having the same issue. Got this set up and working great on June 1 and today it stopped working. My temporizer looks just like the screenshots above. I have all 3 of the resources named above.

Hi all - This is fixed as part of issue #21. If you update your agent to 1.0.2, this will be resolved.
Instructions for updating your app are available in the wiki.


Only increment alpha version on dev builds, leave minor version unchanged

Pushing to master currently increments the minor version number and adds suffix -alpha.1:
0.6.1-alpha1 → 0.6.2-alpha.1
Instead a dev build should increment the alpha version:
0.6.1-alpha1 → 0.6.1-alpha.2

Never mind, the releases api hides prereleases so bumping versions for dev builds works.


Create new group with not registered employees and manager

[ ] create a group with all the ones from the employee and manager group and the comittee members group that haven't registered yet

Uid: 4a394897-7028-4d69-a5a4-22caa174fcba
Name: BCC Managers and Employees not registered to REP1223
Also for the record all groups can be viewed at https://admin.groups.bcc.no/


Add verbose logging support for debugging

>>> requests.settings.log = True
# Logs all HTTP Traffic to stderr

>>> requests.settings.log = steam_like_object
# Logs all HTTP Traffic to given stream

>>> requests.settings.log = False
# [Default] No HTTP Logging

I can't find any documentation on this and it doesn't work for me, even after pip installing right from GitHub:
In [9]: import requests

In [10]: requests.settings.log = True
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/Users/fletcher/Work/Current/twrss/<ipython-input-10-e3570368ba7d> in <module>()
----> 1 requests.settings.log = True

AttributeError: 'module' object has no attribute 'settings'

In [11]: requests.__version__
Out[11]: '0.10.2'

What am I doing wrong?


commenting closed folds

Actual behavior: When I press \cc (in normal) with the cursor on a closed fold, only the first line of the fold is commented. Same for \c  etc.
Expected behavior: I guess it would be more useful and intuitive if \cc etc. operated on the whole fold. At the moment this can be achieved by doing V\cc (which admittedly is very little extra work).

Thanks for the request, but this is a duplicate of #315. See my comment there for why this is not practical to implement and some alternatives depending on the functionality you want. The short version is that we're just an action that operation in the way normal VIM actions operate: on the current cursor, line, or range.

Oh, sorry for re-raising a closed issue.


_mockLocalStorage2.default.removeItem is not a function

I am executing a function
export function removeLocalData(key) {     try {         localStorage.removeItem(key);     } catch (err) {         console.log(err);     } }
I get an error removeItem is not defined. What could be the issue?

Hi! I'm afraid you're on you own here. _mockLocalStorage2 looks suspicious, there is no such a name in the code. Anyway, I have not used this lib for a long time and cannot help. It's here just to save someone a bit of typing. It's unlikely that someone else would stamp on your question and decided to help sooner than you can solve this issue yourself. Anyway, if you succeed with this issue, please put a comment or PR for others who come. Thx!

I got it to work, but I'm unsure if it's a bug or it should be used in that specific way only.
So, the error probably arose because it was mentioned in a test. As soon as it was imported at the compile time of the test, it started working. Probably it was meant to be used at compile time, but the specified documentation didn't make it clear.
Thanks for your time :)


Collisions in dbt_scd_id while calculating snapshots

Describe the bug
The snapshot calculation relies on the Teradata HASHROW function. The dbt_scd_id is generated for each row based on the provided unique_key and the current timestamp. However, the HASHROW function produces a 4-byte hash, which is highly prone to collisions. For instance, the values d3dadd49420542fb49ffbf6a77349b45 and 34f325fe5a4216f27357328b61c9eccb both produce the same hash 02-27-E3-B4. Similarly, the numbers 162181727 and 880145039 generate the same hash 2E-5B-FE-DD. In a source with 36 million numbers, we have over 180 thousand duplicate dbt_scd_id.
These collisions cause the snapshot update to fail with the error: [Error 7547] Target row updated by multiple source rows.
Steps To Reproduce
Create a source with the provided values as IDs and then try to create a snapshot of them.
Expected behavior
Calculating the snapshot without errors.
Screenshots and log output
The output of dbt --version:
Core:
  - installed: 1.7.11
  - latest:    1.8.0  - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:
  - teradata: 1.7.2 - Up to date!

The operating system you're using:
Windows 11
The output of python --version:
Python 3.11.3
Additional context

I had the same problem, would be nice if they can fix that! @rafaelkrysciak In the mean time you can redefine the macro that generates the hash:
{% macro teradata__snapshot_hash_arguments(args) -%}
    usrlib.hash_md5({%- for arg in args -%}
        coalesce(cast({{ arg }} as varchar(200)), '')
        {% if not loop.last %} || '|' || {% endif %}
    {%- endfor -%})
{%- endmacro %}

You may have to install hash_md5 on your system first...

Thanks @datenbaecker. It works fine 👍

@rafaelkrysciak , the fix for this issue is available in dbt-teradata 1.8.0 release.


Page crashed on page.pdf()

I'm facing a weird issue. I'm opening a page and increasing that page height through evaluate. $('body').css('height', '2000px'). Then rendering it for pdf in a4 portrait At that point, my page crashed. And there is no specific error message.

Error: Page crashed!
at Page._onTargetCrashed (/home/puppeteerTest/node_modules/puppeteer/lib/Page.js:156:24)
at CDPSession.Page.client.on.event (/home/puppeteerTest/node_modules/puppeteer/lib/Page.js:132:56)
at emitOne (events.js:116:13)
at CDPSession.emit (events.js:211:7)
at CDPSession._onMessage (/home/puppeteerTest/node_modules/puppeteer/lib/Connection.js:232:12)
at Connection._onMessage (/home/puppeteerTest/node_modules/puppeteer/lib/Connection.js:119:19)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
at Receiver.receiverOnMessage (/home/puppeteerTest/node_modules/ws/lib/websocket.js:720:20)
at emitOne (events.js:116:13)
at Receiver.emit (events.js:211:7)
at Receiver.dataMessage (/home/puppeteerTest/node_modules/ws/lib/receiver.js:414:14)
at Receiver.getData (/home/puppeteerTest/node_modules/ws/lib/receiver.js:346:17)
at Receiver.startLoop (/home/puppeteerTest/node_modules/ws/lib/receiver.js:133:22)
at Receiver._write (/home/puppeteerTest/node_modules/ws/lib/receiver.js:69:10)
at doWrite (_stream_writable.js:397:12)

Without increasing the height of the body, pdf renders in 1 page which is suppose to have multipage. The rest of the pages are hidden. That is why I tried to increase the height of the body.
Note:

The issue doesn't occur all the time. For other pages, it worked just fine for the same scenario. The only difference between the two pages is the error page is a responsive web page
page.screenshot() works just fine. The issue only occurs with the pdf.
The same scenario works fine in phantomjs page.render();

Please provide a script to reproduce the issue and test results in the latest version of Puppeteer.

Reports without a repro are not actionable for us. Please re-open an issue with a repro script/test page and the latest version of Puppeteer if the issue affects.


Added german translations to strings.xml

@RocketChat/android
Changes: Added mutiple german translations
Screenshots or GIF for the change: -

 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.

Faild checks don't seem to are directly related to the changes made...

@Jan-NiklasB It has failed because you send the PR to the master branch. It should be pointed to develop. I have changed it already. Could you fix the conflicts, please?

Sure, I will do it as soon as I'm at home.
For the "mit" which means "with" I don't exactly know where this sentence is used so I translated it in a way that made the Most sence.
The Translation back to english would be " Login with FB" but in german the word by word translation doesn't makes much sence (which would be "Mit FB fortfahren") since continue or fortfahren has multiple meanings in german and would be Not very precise.
So you must decide how it should be translated... ;)

Perfect @Jan-NiklasB! Thanks for explaining (and teaching a little bit of German here).
Taking advantage: Is Analytics verfolgung enough/good in German? If so let's only remove the Google word.
Thank you.

We'll be grateful if you fix the conflict here too. Thanks!

@filipedelimabrito You're welcome :D
I think for people who've no lingual relation to german like e.g. dutch or swiss german it's really hard to learn.
Especially the grammar xD (german grammar is sometimes very difficult, even for germans).
I changed the analytics string to "Daten für Analysezwecke" what means "data for analyzing purposes", I think that should be presice enougth for everyone.