Can install local plugin without sudo?

Install local plugin without sudo.

phamnhuvu@Phams-Mac-mini ~ % appium plugin install --source=local /Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin
Attempting to find and install plugin '/Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin'
✖ Linking plugin from local path
Error: Command 'npm link --no-package-lock /Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin' exited with code 243
npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path ../../../../Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin
npm ERR! dest /usr/local/lib/node_modules/appium-flutter-driver-plugin
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink '../../../../Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin' -> '/usr/local/lib/node_modules/appium-flutter-driver-plugin'
npm ERR!  [Error: EACCES: permission denied, symlink '../../../../Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin' -> '/usr/local/lib/node_modules/appium-flutter-driver-plugin'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../../../../Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin',
npm ERR!   dest: '/usr/local/lib/node_modules/appium-flutter-driver-plugin'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR!      /Users/phamnhuvu/.npm/_logs/2021-09-15T07_36_15_333Z-debug.log

Install local plugin with sudo.

phamnhuvu@Phams-Mac-mini ~ % sudo appium plugin install --source=local /Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin
Password:
Attempting to find and install plugin '/Users/phamnhuvu/Documents/GitHub/eibanam/plugins/appium-flutter-driver-plugin'
✔ Linking plugin from local path
Plugin<EMAIL_ADDRESS>successfully installed

Did your node command was installed as sudo?

@KazuCocoa yes

But I can install images by this appium plugin install images command without sudo

I wouldn't do this. It means you have your node modules set up so that they are not writable by your user. You want to sudo chown $USER: /usr/local/lib/node_modules first, that way you can run npm install and link commands without sudo.


Add version to package.json

Added required version field to package.json so it can be pulled in using NPM

thanks for contribution 👍


[Feature] Event sourcing

Feature
Generic Event Sourcing for your applications.
Simply create Events and implement the EventSourcingContract, add those needful methods.
Once dispatch, event will be recorded into events table

Codecov Report
Base: 98.92% // Head: 97.51% // Decreases project coverage by -1.41% :warning:

Coverage data is based on head (095aa4c) compared to base (6336551).
Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main       #5      +/-   ##
============================================
- Coverage     98.92%   97.51%   -1.42%
- Complexity       72       75       +3
============================================
  Files            27       28       +1
  Lines           186      201      +15
============================================
+ Hits            184      196      +12
- Misses            2        5       +3

Impacted Files
Coverage Δ

src/Models/Event.php
64.28% <64.28%> (ø)

src/Listeners/EventSourcingListener.php
100.00% <100.00%> (+100.00%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Bump version for Jan 2020 dev

Codecov Report

Merging #9087 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #9087      +/-   ##
==========================================
- Coverage   57.12%   57.12%   -0.01%
==========================================
  Files         551      551
  Lines       29100    29100
  Branches     4395     4395
==========================================
- Hits        16623    16622       -1
- Misses      11570    11571       +1
  Partials      907      907

Impacted Files
Coverage Δ

src/client/common/utils/platform.ts
70.58% <0%> (-5.89%)
:arrow_down:

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 56e2488...2e6499a. Read the comment docs.


check null and timeout HttpListener

@songurov hi
Thanks for PR
But it makes sense to crash, if we wouldn't find RendererProperty.
And it does not make sense to throw exception every 5 sec. (We don't know how often user updates files)

Did it fix any bug/issue ?

you know what the problem with the windows is that it does not work at all so yes it throws it does not make sense it was the idea that the listner is not blocked and nothing happens about this I have a callback the idea was that I do not work or it does not work I see that there were cases where he can fall to null ref that makes some changes

you know what the problem with the windows is that it does not work at all so yes it throws it does not make sense it was the idea that the listner is not blocked and nothing happens about this I have a callback the idea was that I do not work or it does not work I see that there were cases where he can fall to null ref that makes some changes

could you please rebase to head of master and push only that changes which are related to issue?
Without refactoring.
:)


Fixed error message check in remote rendering tests

Description
We changed some error message on the remote rendering service side, because the old messages were more confusing than helping. This broke the tests here, because it compared to the old messages still.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Properties that start with _ should be suppressed by PropertyName

Expected Behavior

No errors are thrown.
Observed Behavior

ktlint Foo.kt
/Users/goooler/StudioProjects/DemoApp/adapter/src/main/kotlin/io/goooler/demoapp/adapter/rv/core/Foo.kt:4:17: Backing property not allowed when 'private' modifier is missing (standard:backing-property-naming)
/Users/goooler/StudioProjects/DemoApp/adapter/src/main/kotlin/io/goooler/demoapp/adapter/rv/core/Foo.kt:4:17: Backing property is only allowed when a matching property or function exists (standard:backing-property-naming)

Summary error count (descending) by rule:
  standard:backing-property-naming: 2

Steps to Reproduce

Foo.kt:
open class Foo {

  @Suppress("PropertyName")
  protected val _bar = mutableListOf<String>()
}

Run ktlint Foo.kt.
Context
Related to:

#2332
#2612

Your Environment

Version of ktlint used: CLI 1.3.0

@Suppress(PropertyName) currently only suppresses the property-naming rule (code).


Debug info preservation in convert-local-access-chains pass

Fixes #3820

Thank you for your review. I updated it. PTAL!


javax.portlet.name is incorrect

With this current javax.portlet.name, the contents of view.jsp is not displayed. Fixed the name to be view.jsp properly displayed.

Just started reviewing :) :octocat: Sent from GH.

Reviewed and sent changes here: https://github.com/gamerson/liferay-blade-samples/pull/54

Fixed here: https://github.com/liferay/liferay-blade-samples/pull/46
Thanks @yasuflatland-lf


Fix git push error for protected CLA branch

The pull request is created from master636858535699611668 to master to fix git push error for protected CLA branch

@Taojunshen : Thanks for your contribution! The author, @, has been notified to review your proposed change.


Add derivatives for mvn

Summary
This PR adds derivatives for the multivariate_normal_lpdf.
Tests
Added the derivative tests in test/unit/math/rev/prob/multi_normal_test.cpp
Side Effects
No
Release notes
Added hand-calculated derivatives for the multivariate normal lpdf.
Checklist

[x] Copyright holder: Sean Pinkney
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[ ] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

The derivative tests fail with
./stan/math/prim/prob/multi_normal_lpdf.hpp:237:11: note: in instantiation of function template specialization 'Eigen::Matrix<double, -1, 1>::operator=<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>' requested here
     half = mdivide_left_ldlt(ldlt_Sigma, y_val_minus_mu_val);

The offending code is at https://github.com/stan-dev/math/blob/208658abe91cc8dc36c77ca240a52f3ad7fcfc25/stan/math/prim/prob/multi_normal_lpdf.hpp#L239. I believe the ldlt_factor needs to be a double but it's passing a const stan::math::var_value<double>. This is beyond my current cpp skills.

Benchmarks
Slower for size 1 and 2, about the same for 4, and starts to get faster at 8 and up.

I.e.
python3 ./benchmarks/benchmark.py "multi_normal_cholesky_lpdf(real, real, matrix) => real" --skip_similar_signatures --overloads Mix

@bgoodri this doesn't benchmark any faster than the current autodiff code. Does it make sense to add this for stability or should we just keep the current autodiffed code?

@bgoodri this doesn't benchmark any faster than the current autodiff code. Does it make sense to add this for stability or should we just keep the current autodiffed code?

I would say that if it is no slower, then having the analytical derivatives is worth it because it consumes less RAM.

@SteveBronder this should be good for a review once the CI finishes

@spinkney, just letting you know there are merge conflicts; @SteveBronder approved the PR!

@serban-nicusor-toptal does CI need to be restarted? I've never seen this error before.

Jenkins shenanigans, everything looks fine now!


Chapter 2, End-to-End Machine Learning Project

I couldn't fetch the data for the project, and the author's source code even also failed. There could be some problems with the database or the source. I am a freshman. Can anyone help me to handle this?

Hi @ZavierLyu ,
It looks like your Python installation is not quite finished, since it cannot open an SSL connection (to download the data using HTTPS).
Did you follow the installation instructions on the project's home page? In particular:

Any Python 3 version should be fine, preferably 3.5 or 3.6 (TensorFlow support for Python 3.7 is coming soon). If you don't have Python 3, I recommend installing it (Python ≥2.6 should work, but it is deprecated so Python 3 is preferable). To do so, you have several options: on Windows or MacOSX, you can just download it from python.org. On MacOSX, you can alternatively use MacPorts or Homebrew. If you are using Python 3.6 on MacOSX, you need to run the following command to install the certifi package of certificates because Python 3.6 on MacOSX has no certificates to validate SSL connections (see this StackOverflow question):
$ /Applications/Python\ 3.6/Install\ Certificates.command

In short, I think you just need to open a terminal and run the command /Applications/Python\ 3.6/Install\ Certificates.command
Then restart Jupyter and try again.
Hope this helps,
Aurélien

@ageron Thanks for such detailed explanation, sorry to bother you with my little issue. My problem's been solved. Really appreciate what you did for the book and these teachings.

@ageron Thanks! It was very useful.

Installed python 3.7 through brew. Also tried $pip3 install --upgrade certifi.
Still don't see Python directory under Application. I am on OSX 10.15.1. /Library has Python directory but no install or certificates. Please advise. Thanks.

@BigDataPlayers what issues do you have? Can you run python from the terminal?

Thanks for checking in. I’ve switched back to Python 3.7.5. It’s all working now. The SSL Certificate issue has been resolved.

Can you please help on this ?

Hi @FifteenTen ,
You seem to be running on Ubuntu, right? Are you running a MacOSX virtual machine using VirtualBox?
I'm not sure what you're trying to do with the pip install command, normally you shouldn't have to do that, only run the Install\ Certificates.command script (I think you may be missing a space after the backslash).
In any case, what problem did you initially run into? I'd be happy to help, but you must give me much more details.

IHello @ageron ,
You seem to be running on Ubuntu, right? Are you running a MacOSX virtual machine using VirtualBox? - Yes.
Is the Install should directory?
Python is installed at /usr/bin/python3.8
So issue is if I am trying to install any package then it will give above error.
I gave an example.

Thanks for the details. This issue doesn't seem related to this project, it looks like a Python installation issue. But I can try to help.
Did you try adding the space? Install\ Certificates.command instead of Install\Certificates.command? Your screenshot shows the latter, which is wrong.

this is the latest one
fteenten@fifteenten-VirtualBox:/$ Install\ Certificates.command
Install Certificates.command: command not found
fifteenten@fifteenten-VirtualBox:/$

Hi @FifteenTen ,
The Install\ Certificates.command script is normally located in the /Applications/Python\ 3.8/ directory, so you need to enter the full path:
/Applications/Python\ 3.8/Install\ Certificates.command

If you are new to the command line, then I kindly suggest you watch a intro video to command lines, such as this one.
Hang in there, it will work eventually! 👍

You can have look here is the Application directory available in my mac
system
[image: Screenshot 2022-03-30 at 4.08.17 PM.png]
So it seems that there is no such python file.
Could you please help me on it.
*Best Regards *
Ramesh Chand Rebari+91 85618 21525LinkedIn :
www.linkedin.com/in/ramesh-chand-rebari-3959b9131
On Tue, Mar 15, 2022 at 12:45 AM Aurélien Geron @.***>
wrote:

Hi @FifteenTen https://github.com/FifteenTen ,
The Install\ Certificates.command script is normally located in the /Applications/Python
3.8/ directory, so you need to enter the full path:
/Applications/Python\ 3.8/Install\ Certificates.command
If you are new to the command line, then I kindly suggest you watch a
intro video to command lines, such as this one
https://www.youtube.com/watch?v=ogWoUU2DXBU.
Hang in there, it will work eventually! 👍
—
Reply to this email directly, view it on GitHub
https://github.com/ageron/handson-ml/issues/339#issuecomment-1067192201,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYE5NTL4B6FO55G55PMG7TLU76F3VANCNFSM4GMSOW4Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi
Here is the screenshot from the virtual machine
[image: Screenshot from 2022-03-30 16-19-49.png]
Here you can the applications folder.
Thanks
*Best Regards *
Ramesh Chand Rebari+91 85618 21525LinkedIn :
www.linkedin.com/in/ramesh-chand-rebari-3959b9131
On Mon, Mar 14, 2022 at 2:14 PM Aurélien Geron @.***>
wrote:

Thanks for the details. This issue doesn't seem related to this project,
it looks like a Python installation issue. But I can try to help.
Did you try adding the space? Install\ Certificates.command instead of
Install\Certificates.command? Your screenshot shows the latter, which is
wrong.
—
Reply to this email directly, view it on GitHub
https://github.com/ageron/handson-ml/issues/339#issuecomment-1066519056,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYE5NTLHBH3BCEQWFFGJVLLU734ADANCNFSM4GMSOW4Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

Now it is solved, Thanks Ageron.
*Best Regards *
Ramesh Chand Rebari+91 85618 21525LinkedIn :
www.linkedin.com/in/ramesh-chand-rebari-3959b9131
On Fri, Mar 11, 2022 at 11:44 AM Aurélien Geron @.***>
wrote:

Hi @FifteenTen https://github.com/FifteenTen ,
You seem to be running on Ubuntu, right? Are you running a MacOSX virtual
machine using VirtualBox?
I'm not sure what you're trying to do with the pip install command,
normally you shouldn't have to do that, only run the Install
Certificates.command script (I think you may be missing a space after the
backslash).
In any case, what problem did you initially run into? I'd be happy to
help, but you must give me much more details.
—
Reply to this email directly, view it on GitHub
https://github.com/ageron/handson-ml/issues/339#issuecomment-1064807424,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYE5NTIN62BKVHDHMZ72TTLU7LQFNANCNFSM4GMSOW4Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>


Document Bosh Director API endpoint for disks

Checked the following link and don't seem to find the API endpoints listed for fetching disks data from the Director. (Additional options like orphaned_disks etc. would also help)
Please let me know if you'd be fine with a Pull Request for these

For the record: The API endpoints we're talking about here are those of the disks_controller


Update OAuthSwift?

Your OAuthSwift submodule is at version 2.0.0. 2.2.0 was released in 2021. Do you want to update to it?

Hi @ryandesign
I'll have to double check but I'm pretty sure it's no longer used. It was for weather through the old Yahoo! API. So probably need to remove it completely. I'll double check and let you know, thanks for mentionning it!


Provide separate values for Air Quality, PM2.5 and PM10

The current code performs an average of VOC and dust level to calculate the air quality:
https://github.com/joe-ng/homebridge-dyson-link/blob/master/DysonEnvironmentState.js#L21
In the current HomeKit Accessory Protocol there exist more characteristics:

Air Quality (=VOC level)
https://developer.apple.com/documentation/homekit/hmcharacteristicvalueairquality
Air Particluate Density in micrograms/m^2 (for PM2.5 and PM10)
https://developer.apple.com/documentation/homekit/hmcharacteristicvalueairparticulatesize

This would be great indeed.
There seems to be a characteristic for VOCs (besides the overall air quality) as well.


API Gateway - Customise DEFAULT_5XX gateway response

Amplify CLI Version
12.12.4
Question
I would like to customise the response template for DEFAULT_5XX gateway response (see image below).

I tried to override the API in my Amplify project by using the code following code but always fail to build the project.
export function override(
  resources: AmplifyApiRestResourceStackTemplate,
  amplifyProjectInfo: AmplifyProjectInfo
) {
  new CfnGatewayResponse(resources.restApi.stack, 'MyGatewayResponse', {
    restApiId: resources.restApi.ref,
    responseType: 'DEFAULT_5XX',
    statusCode: '500',
    responseTemplates: {
      'application/json': JSON.stringify({ message: 'Internal Error' }),
    },
  });
}

Hey @dtmorgan , Thank you for bringing this up. Unfortunately, overriding the GatewayResponse is not currently supported. We are marking this as a future request for the team to evaluate further.


Navbar Enhancements, Theme Persistence, and Scroll Percentage Display

…om right scroll div

Closes #54
Changes proposed

Active Tab Highlight: The current page's tab is now highlighted with a bold font, blue color (#2563eb), and bottom border for better navigation clarity.
Dynamic Link Detection: Added logic to dynamically assign the active class to the link matching the current URL path.
Theme Persistence: Improved auto-theme selection to persist user-selected themes (light/dark) across page navigation. The selected theme is now applied when users navigate between Home, About, and Chatbot pages.
Scroll Percentage Display: Fixed the scroll percentage display logic in the bottom-right scroll div, ensuring the scroll value is now displayed properly as users scrolls through the page.

Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[X] This PR does not contain plagiarized content.
[X] The title of my pull request is a short description of the requested changes.

Screenshots

Before change

After change

…om right scroll div
Closes #54
Changes proposed

Active Tab Highlight: The current page's tab is now highlighted with a bold font, blue color (#2563eb), and bottom border for better navigation clarity.
Dynamic Link Detection: Added logic to dynamically assign the active class to the link matching the current URL path.
Theme Persistence: Improved auto-theme selection to persist user-selected themes (light/dark) across page navigation. The selected theme is now applied when users navigate between Home, About, and Chatbot pages.
Scroll Percentage Display: Fixed the scroll percentage display logic in the bottom-right scroll div, ensuring the scroll value is now displayed properly as users scrolls through the page.

Check List (Check all the applicable boxes)

[x]  My code follows the code style of this project.
[ ]  My change requires changes to the documentation.
[ ]  I have updated the documentation accordingly.
[x]  This PR does not contain plagiarized content.
[x]  The title of my pull request is a short description of the requested changes.

Screenshots
Before change

After change

great workjust a minor change, the scroll percentage is not visible in dark mode desktop view,

Fixed that scroll percentage is not visible in dark mode desktop view issue.

LGTM 🚀  @jitendrasuthar1998


[Bug] Cosmos subgraph indexing wrong 'rewards' event

Bug report
Hi guys,
I was trying to use cosmoshub subgraph on hosted service to index rewards and proposer_rewards events happening while distributing rewards to validators https://docs.cosmos.network/v0.50/build/modules/distribution#beginblocker.
High level description of events happening
rewards is event which happens every block and this is basically reward for attestation, since there are 180 active validators there should be around 180 rewards events per block
proposer_reward is an event which happens every block but only once, since there is only 1 block proposer chosen before block happens.
Unfortunately even if I am trying to track both events - I am ending up in a situation like both tracked events are resolved to proposer_reward. This can be easily reproduced using example in your documentation ->  https://github.com/graphprotocol/graph-tooling/tree/main/examples/cosmos-validator-rewards
Even if query per every block should return around 180 events (since we are not sure validators are always 100% responsive) it is returning only 1 event per block.
My subgraph.yaml:
specVersion: 0.0.5
description: Validator Delegations Example
schema:
  file: ./schema.graphql
dataSources:
  - kind: cosmos
    name: CosmosHub
    network: cosmoshub-4
    source:
      startBlock: 17680000
    mapping:
      apiVersion: 0.0.7
      language: wasm/assemblyscript
      entities:
        - ValidatorReward
      eventHandlers:
        - event: rewards
          handler: handleReward
        - event: proposer_reward
          handler: handleProposerReward
      file: ./src/mapping.ts

My mapping.ts:
export function handleReward(data: cosmos.EventData): void {
  const height = data.block.header.height;

  const amount = data.event.getAttributeValue('amount');
  const validator = data.event.getAttributeValue('validator');

  let reward = new ValidatorReward(`${height}-${validator}`);

  reward.amount = amount;
  reward.validator = validator;
  reward.blockHeight = `${height}`;

  reward.save();
}

export function handleProposerReward(data: cosmos.EventData): void {
  const height = data.block.header.height;

  const amount = data.event.getAttributeValue('reward');
  const validator = data.event.getAttributeValue('validator');

  let reward = new ValidatorProposerReward(`${height}-${validator}`);

  reward.amount = amount;
  reward.validator = validator;
  reward.blockHeight = `${height}`;

  reward.save();
}

My schema:
type ValidatorReward @entity {
  id: ID!
  amount: String!
  validator: String!
  blockHeight: String!
}

type ValidatorProposerReward @entity {
  id: ID!
  amount: String!
  validator: String!
  blockHeight: String!
}

Example query:
query MyQuery {
  validatorRewards(
    first: 10
    where: {blockHeight: "17860023"}
  ) {
    amount
    blockHeight
    validator
  }
  validatorProposerRewards(
    first: 10
    where: {blockHeight: "17860023"}
  ) {
    amount
    blockHeight
    validator
  }
}

Output from query:
{
  "data": {
    "validatorRewards": [
      {
        "amount": "613251.550000000000000000uatom",
        "blockHeight": "17860023",
        "validator": "cosmosvaloper1z8zjv3lntpwxua0rtpvgrcwl0nm0tltgpgs6l7"
      }
    ],
    "validatorProposerRewards": [
      {
        "amount": "",
        "blockHeight": "17860023",
        "validator": "cosmosvaloper1z8zjv3lntpwxua0rtpvgrcwl0nm0tltgpgs6l7"
      }
    ]
  }
}

Problems:

As you can see in attached output - even if we index rewards event there is only one per block - which is not true since there is always around 180 and we can confirm by querying the network
NODE_RPC_ADDRESS/block_results?height=17860023 (If node was not historical it may be hard to achieve so old data, but every block returns around 180 events of this type)
What is more validator address related to this indexed rewards event points to an address which did a proposal in this block. So looks like rewards event is trying to point proposer_reward what can be true since there was only one event of that type in this block (and in every other block as well there is only 1).
And the second problem is that if we index proposed_reward and try to extract reward attribute we miss value. Key of this attribute should be 'reward' according to https://docs.cosmos.network/v0.50/build/modules/distribution#beginblocker

But after some of my tests it looks like it's under 'amount' attribute. Not sure if subgraph is wrong or cosmos documentation is outdated.

Thanks in advance, if needed I can provide more information but I think it should be clear what is the issue and can be easily reproduced even by using example: https://github.com/graphprotocol/graph-tooling/tree/main/examples/cosmos-validator-rewards.
Relevant log output
No response
IPFS hash
No response
Subgraph name or link to explorer
https://thegraph.com/hosted-service/subgraph/wojciechowskip/cosmoshub-4
Some information to help us out

[ ] Tick this box if this bug is caused by a regression found in the latest release.
[ ] Tick this box if this bug is specific to the hosted service.
[X] I have searched the issue tracker to make sure this issue is not a duplicate.

OS information
None

Block data from firehose looks fine for this. Looks like it could be an issue in the Graph node end. I'll try to dry-run the logic to find what's the root cause behind this.

Hi @cometcrafter, how is it going? :)
Using the graph for Cosmos I've also realized MsgWithdrawDelegatorReward is not present after indexing, meaning that the graph is also failing to catch this one.

I believe this issue is fixed with the solution for https://github.com/graphprotocol/graph-node/issues/5111
@alex-pakalniskis pls close.


pgAdmin 4 - login page

Issue:
Sorry if it's just me not being able to use the tool properly, but I searched a lot and did not found any answers.
After docker-compose up I go to localhost:5050 and the login page of pgadmin4 is displayed. I don't know how to access the databases without this login (e-mail), nor have any ideia of which login is the screen talking about... How to proceed? Thanks in advance!

Expected behavior:
I expected to see the pgdmin4 interface

Reproduce:
Clone the project then start the postgres and pgadmin containers, then access <IP_ADDRESS>:5050 or localhost:5050

My bad, did not see the official container page with default login/password.

For future reference
Username<EMAIL_ADDRESS>Password : admin
Let's get this into the docs!


Actualisation scripts are not active until reload

On any page of the site, unless you reload the page, actualising scripts are not active

Should be fixed, needs to be validated


Add support for check in datalog generation from manifest.proto

For now, we will support simple checks. However, given that it is datalog, it may not be hard to support disjunctions and conjunctions.

This is done as of #96 . We have the C++ class to generate the Datalog strings and can produce objects of that class from snippets of textproto . At this point, we just need to generate those classes from top-level Manifest proto structures.


example/fluidsim imageio issue

The scipy library for image reading is deprecated, with the functionality now in the imageio library. However, when I use this library the backward differentiation fails.
The only change made is to use imageio instead of scipy.misc in the line
from imageio import imread
which results in the error:
TypeError: Can't differentiate w.r.t. type <class 'imageio.core.util.Image'>
I suppose I could work around this by converting the image into a numpy array, but I wondered if you had a more native approach to working with images now.

I just replicated the old scipy.misc.imread functionality with Pillow instead:
from PIL import Image
def imread(fname):
    return np.array(Image.open(fname))

This works well. I could send you a pull request if you want to keep the example up-to-date.


UofT-DSI | Python - Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Implemented changes to read .csv files, extract information from the files, and test for errors.
What did you learn from the changes you have made?
I learned how to use python to implement the mentioned changes.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
N/A
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
The challenges were coming up with the correct code and syntax. To overcome this challenge, I had to review our lecture notes and look up nb functions.
How were these changes tested?
Tested in practice file and results matched expected answer.
A reference to a related issue in your repository (if applicable)
N/A
Checklist

[Y ] I can confirm that my changes are working as intended

Assignment marked.


[Feature] Change Map Pin Colour on Map Widget

Summary
Change Map Pin Colour in Map widget.
Motivation
It is important to distinguish different locations (pins) of the maps with a different colour? Would be be nice to have a property in the Default Makers property.
Additional Context
This is the about the Map widget.

@lahiruelectrily thanks for the feature request 😄 , We will look into this soon and get it prioritised!

Thanks
On Fri, 1 Oct 2021 at 15:46, Somangshu Goswami @.***>
wrote:

@lahiruelectrily https://github.com/lahiruelectrily thanks for the
feature request 😄 , We will look into this soon and get it prioritised!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appsmithorg/appsmith/issues/7620#issuecomment-932103245,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVRIJ24WGVMJKUUJQ6AGAYLUEWDANANCNFSM5ELOHEOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@wmdev0808 Send the SVG over the DM, here is how it looks

Hi @billyrudi 👋 we have a feature request for leaflet open here #5492

Hi @Nikhil-Nandagopal Is the feature Change Map pin color on Map widget working now?
Really need to incorporate this.

@Akash926988 this is fixed and working now; To know more, checkout our maps docs; See the default properties were you place you pins on the map, you can add the prop color to customize your pin


search during device rotation

Hi,
thanks for your blog post. Good job.
There is some problem:
if you click search and before items load you rotate device,
search request dropped and nothing will be displayed.
Thanks again

Hi!
I dont manage subscription and dont save data. If you want, you can save subscription.


Rule: add external labels of prometheus

Thanos, Prometheus and Golang version used
Prometheus: 2.4.3
Thanos v0.1.0

What happened

10+ k8s clusters
one prometheus-operator(with thanos sidecar)  in each cluster
the prometheus has external_labels: cluster_id: '10000'
use thanos-ruler, with the rule

    - name: general.rules
      rules:
      - alert: TargetDown
        annotations:
          message: '{{ $value }}% of the {{ $labels.job }} targets are down.'
        expr: 100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10
        for: 10m
        labels:
          severity: warning

when any of the clusters match the rule, on thanos-ruler: alerts, just got TargetDown (1 active) with labels: alertname="TargetDown" job="kubelet" severity="warning"
the alertmanager, /api/v1/alerts/groups got

          "alerts": [
            {
              "labels": {
                "alertname": "TargetDown",
                "job": "kubelet",
                "severity": "warning",
              },
              "annotations": {
                "message": "50% of the kubelet targets are down."
              },
              "startsAt": "2018-11-06T09:39:29.644233109Z",
              "endsAt": "0001-01-01T00:00:00Z",
              "generatorURL": "",
              "status": {
                "state": "active",
                "silencedBy": [],
                "inhibitedBy": []
              },
              "receivers": null,
              "fingerprint": "b7bf125fefa57dab"
            }
          ]

So, in the end, We can't figure out which cluster hitted the rule
What you expected to happen
Is possible to add the external_labels of the Prometheus instance into the rule alert info? or just I did make the config right?
After read the codes of Thanos, I found t https://github.com/improbable-eng/thanos/blob/master/cmd/thanos/rule.go#L609, It seems after the query from Prometheus instance, the labels with no more labels after count by.
each Prometheus address will eval all rules via this function, is this the right place to add the labels?
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components

Anything else we need to know

Thanks :)

Use the BY (*, cluster_id) to resolve the problem, Close.
expr: 100 * (count(up == 0) BY (job, cluster_id) / count(up) BY (job, cluster_id)) > 10


Wrong data with multiple streams established simultaneously

Hi, I'm facing an issue where multiple streams with different grip-channel will receive data of other grip channel. It won't happen on the initial connection, instead it happens when pushpin calls the url in grip-link returned by the initial connection, and when both stream are established in nearly same time.
My header is like this
"Grip-Channel": "1076063"
"Grip-Link": "</stream/subscribe/transaction?id=01EH2>; rel=next"
I've tried on pushpin, as well as fanout hacker plan. Both are able to simulate this issue.
Any idea why? Thanks.

Hi Marcus,
Pushpin does "request collapsing" if it would need to request the same link on behalf of multiple connections. Also, any GRIP instructions in the response to that request will be applied to the connections. Could it be that you're responding with the wrong Grip-Channel header(s) in the link response, causing the subscribed channels to change?


Bump version from 1.0.2 to 1.1.0

This is the diff I'm planning to go with: https://github.com/gds-operations/vcloud-core/compare/v1.0.2...gds-operations:dafde8f

Other than my comment above :+1:


Can't build - GitVersion Fail

Hi, not sure if its an issue with gitversion or this project (I havent used gitversion before).
When I clone the project, I cant build it, each project generates the same error
Error	MSB4057	The target "RunGitVersion" does not exist in the project.	SparkplugNet C:~userfolder~.nuget\packages\gitversion.msbuild\5.10.3\tools\GitVersion.MsBuild.targets	8
None of the project files have a target named RunGitVersion and the docs for the library dont really mention this as a requirement (or at all), the documentation in fact pretty much says, install it and it will work, which is super helpful :)
If I just remove the gitversion library from the solution everything works as expected, however I'd like to solve this.
If you think this is something to do with that library, I can ask over there

it was a corrupt package cache.


Feature/264 implement imagebutton

Initial imagebutton implementation based on existing image and button implementations.  Can provide testbench if desired.

 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.:x: nabond251 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Pressing the Move tool shortcut only works when the current tool is not Select

Godot version:

3.3.2 stable mono
OS/device including version:

win10 64
Issue description:

Pressing the "W" hotkey to select the "Move" tool does not work if you first press the "Q" hotkey to select the "Selection" tool.
Steps to reproduce:
Press the hotkey "Q", this should select the "Select" tool
Press the "W" hotkey, this should select the "Move" tool but that doesn't happen.
Press the "E" hotkey, this selects the "Rotation" tool and you can now press the "W" hotkey and it will work properly and the "Move" tool will be selected.
Minimal reproduction project:

I can't reproduce this on the master branch and 3.3, both in the 2D and 3D editors (which have a different implementation in the codebase, so the distinction is important).

Hi, I have restarted the editor and now it works, there is something that triggers various errors in the editor. This error was also triggered and solved by restarting the editor:
https://github.com/godotengine/godot/issues/41793

Ok this error is triggered when zooming in the atlas selector:

When a tilemap node is selected, the keyboard shorcuts {A,S,X,Z,W} from the tilemap panel overrides.
For example, when pressing 'S', instead of 'Scale Mode' from the main panel, it executes 'Rotate Right' from the tilemap panel. Similarly, 'W' is trying to 'Clear Transform', instead of 'Move Mode'.
You'll have to bring focus back to the main panel by pressing a non overriden shortcut like 'E' for 'Rotate Mode', then the main panel shortcuts work. But subsequently pressing shortcuts will execute from both panels. e.g. pressing 'S' will both select 'Scale Mode' and 'Rotate Right' the tilemap tiles.

This is really a bigger issue with colliding keyboard shortcut handling across panels in a global context.

This is fixed in master but it can't fixed universally in 3.x for backwards compatibility reasons. Nonetheless, it may be possible to hack around this to make it work better in 3.x. cc @EricEzaM

I'm not really familiar with the 3.X codebase so I'm not sure how it would be fixed.


model weight file become smaller after prompt tuning?

 Is that normal? What's the reason behind that?
In order to use the finetuned model, I need to set ADD_LINEAR_LAYER: True. Is there anything else we need to change?

Thank you for raising this issue. I will need to taking a closer look. I did not notice this issue before.

i have the same question, when i promt tuning the weight file reduced from 3.5GB to 800M. Is that normal?

hi,when i finished the prompt tuning, how to do inference?

@Colin97 hi，have you solve the model weight reduced problem？

@Colin97 hi, could u please offer the original "glip_large_model.pth" file to me? I can not get any weight files from https://huggingface.co/GLIPModel/GLIP/blob/main/glip_large_model.pth for unknown reason.

这是来自QQ邮箱的假期自动回复邮件。 您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


Move non-genomics code

This resolves #475 by removing the non-genomics specific code which has been migrated to bdg-utils, and pointing at bdg-utils where necessary. Specifically, we've moved the:

SparkFunSuite
Parquet reimplementation
Metrics
Instrumentation

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/567/Build result: FAILUREGitHub pull request #478 of commit 64e27525d3b0b4ad7abe129d822c8192a31ad1fe automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision 93cb1940a73c7a2b9fb05142628e5c04c2d757c4 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 93cb1940a73c7a2b9fb05142628e5c04c2d757c4 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 2.3.0,centosTriggering ADAM-prb ? 2.2.0,centosTriggering ADAM-prb ? 1.0.4,centosADAM-prb ? 2.3.0,centos completed with result FAILUREADAM-prb ? 2.2.0,centos completed with result FAILUREADAM-prb ? 1.0.4,centos completed with result FAILURE
Test FAILed.

I expect this failure because I was building against https://github.com/bigdatagenomics/bdg-utils/pull/19. This will pass once https://github.com/bigdatagenomics/bdg-utils/pull/19 is merged.

Ta-da! And, this now is working with @nfergu's work from #514 on top, and building against https://github.com/bigdatagenomics/bdg-utils/pull/19. The build will fail here though, since we haven't merged https://github.com/bigdatagenomics/bdg-utils/pull/19 upstream.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/568/Build result: FAILUREGitHub pull request #478 of commit 0caf693a58d58201a27b5c1d681bb82051981b07 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision 33636cc5c1192c50966bb7fb69ff33cbef865994 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 33636cc5c1192c50966bb7fb69ff33cbef865994 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 2.3.0,centosTriggering ADAM-prb ? 2.2.0,centosTriggering ADAM-prb ? 1.0.4,centosADAM-prb ? 2.3.0,centos completed with result FAILUREADAM-prb ? 2.2.0,centos completed with result FAILUREADAM-prb ? 1.0.4,centos completed with result FAILURE
Test FAILed.

Switching to SparkFunSuite in bdg-utils will revert the work I did in ADAM to fix all the test bind errors. We need to port that into bdg-utils.

@massie thanks for catching that! I will port that right now.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/569/Build result: FAILUREGitHub pull request #478 of commit 71efd4685fe5afcf39d156a0573e10dd96d9f482 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision 6ef8e422b2ce48dc47493ed1eb850c1d9dec76f0 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 6ef8e422b2ce48dc47493ed1eb850c1d9dec76f0 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 2.3.0,centosTriggering ADAM-prb ? 2.2.0,centosTriggering ADAM-prb ? 1.0.4,centosADAM-prb ? 2.3.0,centos completed with result FAILUREADAM-prb ? 2.2.0,centos completed with result FAILUREADAM-prb ? 1.0.4,centos completed with result FAILURE
Test FAILed.

Jenkins, retest this please.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/570/Build result: FAILUREGitHub pull request #478 of commit 71efd4685fe5afcf39d156a0573e10dd96d9f482 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision 6ef8e422b2ce48dc47493ed1eb850c1d9dec76f0 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 6ef8e422b2ce48dc47493ed1eb850c1d9dec76f0 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 2.2.0,centosTriggering ADAM-prb ? 1.0.4,centosTriggering ADAM-prb ? 2.3.0,centosADAM-prb ? 2.2.0,centos completed with result FAILUREADAM-prb ? 1.0.4,centos completed with result FAILUREADAM-prb ? 2.3.0,centos completed with result FAILURE
Test FAILed.

Once https://github.com/bigdatagenomics/bdg-utils/pull/22 is merged, this will pass.

Jenkins, test this please.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/571/Build result: FAILUREGitHub pull request #478 of commit 71efd4685fe5afcf39d156a0573e10dd96d9f482 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision 6ef8e422b2ce48dc47493ed1eb850c1d9dec76f0 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 6ef8e422b2ce48dc47493ed1eb850c1d9dec76f0 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 1.0.4,centosTriggering ADAM-prb ? 2.3.0,centosTriggering ADAM-prb ? 2.2.0,centosADAM-prb ? 1.0.4,centos completed with result FAILUREADAM-prb ? 2.3.0,centos completed with result FAILUREADAM-prb ? 2.2.0,centos completed with result FAILURE
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/572/Build result: FAILUREGitHub pull request #478 of commit ea77c10bb28d01771b8c60baff8910594d526d81 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision cc1e819a0f1930f38a1e30509db24aa12b3280e4 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f cc1e819a0f1930f38a1e30509db24aa12b3280e4 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 1.0.4,centosTriggering ADAM-prb ? 2.3.0,centosTriggering ADAM-prb ? 2.2.0,centosADAM-prb ? 1.0.4,centos completed with result SUCCESSADAM-prb ? 2.3.0,centos completed with result FAILUREADAM-prb ? 2.2.0,centos completed with result FAILURE
Test FAILed.

Jenkins, retest this please.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/573/Build result: FAILUREGitHub pull request #478 of commit ea77c10bb28d01771b8c60baff8910594d526d81 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/478/merge^{commit} # timeout=10Checking out Revision cc1e819a0f1930f38a1e30509db24aa12b3280e4 (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f cc1e819a0f1930f38a1e30509db24aa12b3280e4 > git rev-list d8e02d9f8f96c10595d575b7d0c5729f61cd8edc # timeout=10Triggering ADAM-prb ? 1.0.4,centosTriggering ADAM-prb ? 2.3.0,centosTriggering ADAM-prb ? 2.2.0,centosADAM-prb ? 1.0.4,centos completed with result SUCCESSADAM-prb ? 2.3.0,centos completed with result FAILUREADAM-prb ? 2.2.0,centos completed with result FAILURENotifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'
Test FAILed.

Jenkins, test this please.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/574/
Test PASSed.

Now that this really is passing, I've cut a new bdg-utils release. I'll update this PR once that release is present in Maven Central.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/575/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/576/
Test PASSed.

Thanks, Frank!

@fnothaft -- looks great! Just tried the latest version locally and it works well.
Just one comment: I think the Timers object should be in ADAM rather than bdg-utils as it contains ADAM-specific timers. I'll raise separate PRs to move it.

@nfergu ah, drat! You are indeed correct! I'd created an earlier version that did that correctly ;). Thanks for catching this, and I'll review and merge your two PRs shortly.


feature/401: add a simpler solution

Codecov Report

Merging #120 (ed5d079) into master (678bc75) will increase coverage by 0.00%.
The diff coverage is 84.61%.

:exclamation: Current head ed5d079 differs from pull request most recent head b6c880e. Consider uploading reports for the commit b6c880e to get more accurate results

@@           Coverage Diff           @@
##           master     #120   +/-   ##
=======================================
  Coverage   72.00%   72.00%
=======================================
  Files         673      673
  Lines       11914    11925   +11
=======================================
+ Hits         8579     8587    +8
- Misses       3022     3026    +4
+ Partials      313      312    -1

Impacted Files
Coverage Δ

leetcode/0401.Binary-Watch/401. Binary Watch.go
28.20% <84.61%> (+17.49%)
:arrow_up:

Continue to review full report at Codecov.

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


[graph] Better fail logic for v2 pull concurrency

The process of pulling an image spawns a new goroutine for each layer in the image manifest. If any of these downloads fail we would stop everything and return the error, even though other goroutines would still be running and writing output through a progress reader which is attached to an http response writer. Since the request handler had already returned from the first error, the http server panics when one of these download goroutines makes a write to the response writer buffer.
This patch prevents this crash in the daemon http server by waiting for all of the download goroutines to
complete, even if one of them fails. Only then does it return, terminating the request handler.

im confused.... see https://github.com/docker/docker/pull/15322/files#diff-bdbf2e13ae0427283eb8b2d36ddf9354R447
why is it exit status 0 when image verification fails?

I know why your test is not working.
On each test these are run before and after: https://github.com/docker/docker/blob/master/integration-cli/check_test.go
So it doesn't have the modified layer.

I've updated the downloads to make them cancel-able. This way we don't have to wait for other downloads when the first one has already failed. however, we still wont know if a download failed until all of the dependent layer downloads have completed and been extracted :-( We could certainly do more work to separate this pipeline more cleanly but it might be too much work so close to a release.

@jlhawn I think you've matched the current behavior, so I don't see concerns with the code, as it is.
One possibility might be to allocation an io.Pipe for each download. Calling the Close method on the writer end will shutdown the copy process. This also has the advantage that you don't need to include ReadCloserWithError.

@stevvooe I had thought about using io.Pipe because it comes with the convenient CloseWithError method but that would require yet another goroutine to "pump" the pipe. Is that okay with everyone?

I guess in exchange it would allow me to drop another goroutine for each downloader, so it's strictly a reduction in the number of goroutines there are now I guess.

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.

Oh well, I was reviewing that.

Sorry, something weird happened when I pushed this branch with no changes. I've opened a new PR to just do the minimum thing we need to avoid a crash in the daemon: https://github.com/docker/docker/pull/15353


Usermodel relationships

Reference issue:
fastapi-users/fastapi-users#751
This PR aims to allow relationships to be both stored and read on the User model, so that relationships may be retrieved on e.g. GET /me
This is achieved by minor tweaks on the create() and _get_db_user() methods respectively, using only code from ormar itself.
One test has been added, all tests are passing.
Thank you for your work, I really enjoy using FastAPI-Users!

Hi @LonelyVikingMichael and thank you for tackling this!
I see that you added a .select_all() statement and it indeed looks like a solution. However, I'm concerned about one thing: let's say that I have objects tied to a user (let's say, blog posts). By doing this, we'll always retrieve every related blog posts each time we get the user, right? While it makes sense for objects like "roles", like you show in the unit test here, it's not for blog posts. Imagine a big application with lot of objects tied to a user (which is often the case), we would be bloated with irrelevant data.
I was thinking about this: we could add an optional select_related class property in __init__ that would be a list of relations we want to retrieve when we get the user. Thus, the end developer could select the objects they want to query in /me routes (e.g. roles, but not blog posts).
Then, we could do .select_related(self.select_related) instead of .select_all. What do you think about this?

Oh, you are absolutely right.
I like your proposed solution, that should work. I will do a quick test to see what we can pass to select_related() as a default - it would be nice to have it optional.

I guess it would be better if we let the responsibility of saving related objects to the end user. If they really need to save it all at once, they could easily overload the method.

Hey Frankie
Is anything else required to get this approved?

Hmm, no, it sounds good! Sorry, it was out of my mind!


On request failure like a 401 or 403 no body is shown

On request failure like a 401 or 403 no body is shown

Body is added for the failed requests.


cURL 60 Error

App Request:
$notification2 = array(
'endpoint' => 'https://fcm.googleapis.com/fcm/send/eJvet3Zq_qc:APA91bEdD9UGzgxYrwjz87FpNo7nAV9T5kLQyaI0zwAQq4irCWQ0WP1ArWRPrmLAopShqWq4OhaB56zkBbADX6oSYQgWnc7wVg0Je0Y8WWP7aCiXtZ9Vq5VJ4aSoFrObxvylD7yCPtOU', // Chrome
'payload' => '234',
'userPublicKey' => 'BPSSJ1tqqp1DFDo7hPN1KAIfwbyQi53W-WBdkYQJ6jqRVSXf1KTzuEVsy0g0wU55XodwnlLS2XYnGxFVPNhl4DQ=',
'userAuthToken' => 'JqpRCrwrwFKPxc5BwNT1WQ==',
);
$webPush->sendNotification(
$notification2['endpoint'],
$notification2['payload'],
$notification2['userPublicKey'],
$notification2['userAuthToken']
);
var_dump( $webPush->flush() );

Application Response :
bool(false)
array(1) {
[0]=>
array(3) {
["success"]=>
bool(false)
["endpoint"]=>
string(188) "https://fcm.googleapis.com/fcm/send/eJvet3Zq_qc:APA91bEdD9UGzgxYrwjz87FpNo7nAV9T5kLQyaI0zwAQq4irCWQ0WP1ArWRPrmLAopShqWq4OhaB56zkBbADX6oSYQgWnc7wVg0Je0Y8WWP7aCiXtZ9Vq5VJ4aSoFrObxvylD7yCPtOU"
["message"]=>
string(134) "cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)"
}
}
Done Already
in php.ini file
curl.cainfo = "C:/xampp/php/ext/cacert.pem"

It looks like you edited the wrong php.ini (you should edit the one in apache config) or the path to cacert.pem is wrong.

It's Xampp so php.ini is in php folder, wamp server has 2 php.ini files one in apache & other one is php folder.
my cacert.pem is right , I have checked it & I am also running on https://localhost

Hi, I'm sorry but I can't take time to troubleshoot other people's server configuration. This issue is not closely related to WebPush. You may have more help from StackOverflow or a simple search via Google.


Feature request: make Album thumbnails description configurable

It would be nice to change teh description / labels of the album thumbnails, for example replace the creation date with the number of pictures in the album etc.

Hi @hDoubleU71. My target is to keep the configurations and options in Lychee as basic as possible. I decided not to show the photo count as it's more or less irrelevant and just a detail. A description has to be bigger to be readable, which would cover to much of the album thumbnail.


Feature request: UUPS Proxy

Is your feature request related to a problem?
UUPS is the best approach for introducing contract upgradability.   UUPS offers several key benefits:

UUPS offers a simplified model versus previous proxy standards
UUPS is secure because the logic itself authorizes its own upgrade.  This is an advantage over having an external proxy responsible for upgrade authoririty.
A clean implementation of UUPS is already provided by OpenZeppelin and will minimize the impact and change required for this project
UUPS is more flexible for the storage layout than other proxies.  This improves the long term maintainability for the contract.
UUPS is gas efficient
UUPS is transparent to the user
UUPS is the trusted and preferred approach to proxy contracts
Deployment of the logic contract may cost less gas than a full contract deployment

Describe the solution to the problem
No response
Describe the uses cases for the feature
No response
Additional details
No response

Closed by #7


Account stuck In Pending_Update state

Attempted to with draw from my account on Thursday Aug 26 using the pool as described in the docs resulted in an rpc state error, move of account state to "pending _update" subtraction of funds from pool account and not change to btc wallet balance.
Request made:
pool accounts withdraw --trader_key=0288096be9917f8ebdfc6eb2701635fe658f4eae1e0274dcce41418b3fb5145732 --amt=1000000 --sat_per_vbyte=5 --addr=tb1qe3ueyx8jhlj4h0s6mgywmtl8vlwxqkgkgp3m3s
{
Result:
It first gave me an rpc state error (rpc=errror state must be....) and then moved the state to pending_update.
The withdrawal amount has been subtracted from my pool account balance.
The withdrawal amount ins not reflected in my btc wallet balance.
After no change in state overnight I stopped and restarted  poold and lnd.  I repeated the poold restart again Aug 30.  The state has remained in pending_update.
Expected behavior**

Withdrawal request was expected to result in the movement of the withdrawal amount from my pool account to the specified btc wallet.
Actual behavior

Withdrawal request resulted in the following:
It first gave me an rpc state error (rpc=errror state must be....) and then moved the account state to pending_update.
The withdrawal amount has been subtracted from my pool account balance.
The withdrawal amount ins not reflected in my btc wallet balance.
To reproduce

Unknown
System information

Standalone

NA

CLI

poold version 0.3.2-alpha
lnd version 0.11.99-beta commit=v0.11.0-beta-303-gf98c74319cbf32d608cdd1cfc5fa077107538351

AWS EC2 t3.medium (2 vCPU)

Ubuntu 18.04.5 LTS

2021-08-31 10:34:04.843 [INF] LLMD: Version: 0.3.2-alpha commit=
2021-08-31 10:34:04.844 [INF] LNDC: Creating lnd connection to localhost:10009
2021-08-31 10:34:04.853 [INF] LNDC: Connected to lnd
2021-08-31 10:34:04.934 [INF] LNDC: lnd version: v0.11.99-beta, build tags 'signrpc,walletrpc,chainrpc,invoicesrpc'
2021-08-31 10:34:04.939 [INF] LNDC: Using network mainnet
2021-08-31 10:34:04.939 [INF] LNDC: Waiting for lnd to be fully synced to its chain backend, this might take a while
2021-08-31 10:34:04.968 [INF] LNDC: lnd is now fully synced to its chain backend
2021-08-31 10:34:05.039 [INF] LLMD: Auction server address: pool.lightning.finance:12010
2021-08-31 10:34:05.046 [INF] CLDB: Checking for schema update: latest_version=1, db_version=1
2021-08-31 10:34:05.047 [INF] RPCS: Starting trader server
2021-08-31 10:34:05.078 [INF] RPCS: Connected to lnd node www.lightningcentral.com with pubkey 02f727419f6756954fbf17d4ada36e6180e05c17c50d7442ef160ed50b90e6af52
2021-08-31 10:34:05.605 [INF] ACCT: Waiting for 3 confirmation(s) of account
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2021-08-31 10:34:05.644 [INF] RPCS: Trader server is now active
2021-08-31 10:34:05.650 [INF] LLMD: Starting gRPC listener
2021-08-31 10:34:05.651 [INF] LLMD: Starting REST proxy listener
2021-08-31 10:34:05.653 [INF] LLMD: RPC server listening on <IP_ADDRESS>:12010
2021-08-31 10:34:05.653 [INF] LLMD: REST proxy listening on <IP_ADDRESS>:8281
2021-08-31 11:06:17.748 [INF] RPCS: Received new block notification: height=698404
2021-08-31 11:14:21.951 [INF] RPCS: Received new block notification: height=698405
2021-08-31 11:24:32.175 [INF] RPCS: Received new block notification: height=698406
2021-08-31 11:33:43.308 [INF] RPCS: Received new block notification: height=698407
2021-08-31 11:34:56.490 [INF] RPCS: Received new block notification: height=698408
2021-08-31 11:35:56.664 [INF] RPCS: Received new block notification: height=698409
2021-08-31 11:52:55.226 [INF] RPCS: Received new block notification: height=698410
2021-08-31 12:00:51.429 [INF] RPCS: Received new block notification: height=698411
2021-08-31 12:24:18.861 [INF] RPCS: Received new block notification: height=698412
2021-08-31 12:25:18.266 [INF] RPCS: Received new block notification: height=698413
2021-08-31 12:34:52.383 [INF] RPCS: Received new block notification: height=698414
2021-08-31 12:37:33.488 [INF] RPCS: Received new block notification: height=698415
2021-08-31 13:01:39.778 [INF] RPCS: Received new block notification: height=698416
2021-08-31 13:07:10.344 [INF] RPCS: Received new block notification: height=698417
2021-08-31 13:24:29.440 [INF] RPCS: Received new block notification: height=698418
2021-08-31 13:29:15.514 [INF] RPCS: Received new block notification: height=698419
2021-08-31 13:29:27.281 [INF] RPCS: Received new block notification: height=698420

Does the issue persist if you're able to update to the latest version of lnd?
Which backend (btcd, neutrino, tcd) is the lnd node using?

You should also update to the latest version of Pool! 0.3.2 is quite old and many bugs have been fixed since then.

We just updated to the latest versions of pool and lnd.  Unfortunately the pending_update state persists.
We are using btcd as our backend.

Can you post the log of the most recent startup (since the upgrade) please? I just checked on the server side and the account 0288096be9917f8ebdfc6eb2701635fe658f4eae1e0274dcce41418b3fb5145732 doesn't seem to exist... Something's weird here.

oh wait....that trader_key is from the example copied from the documentation....how can I best, securely get you my trader key?

can I DM guggero on slack?

Yes, you can DM me there, same username as on GitHub.

done

Update: I found what possibly went wrong (server side most likely) and working on a solution to fix it. Funds are SAFU!

Update: I was able to fix the account state on the server side and we are currently in the process of recovering/syncing the account state on the client side.

It is solved !  Account is open again, funds secure.
Yaaay !
Thanks for all the help !!

Yay indeed :) Thank you for your patience on this.
Going to close the issue here, we're tracking the problem that lead to this internally with another issue.

Turns out this issue was fixed in Pool v0.3.3-alpha with https://github.com/lightninglabs/pool/pull/152.


[5.6] Add saveManyOrFail method to HasOneOrMany

Based on saveMany() and saveOrFail() methods.
Two use cases

Save a new post with new post_images or fail
Save new post_images or fail

This way in both scenarios the developer can enforce using the transaction.

No tests.

That's up to you. Taylor decides whether features get added, but we don't accept or wait for PRs without tests.

If you add tests, I'll reopen the PR of course.


Error: %1 is not a valid Win32 application.

How to solve it? Thanks!

reinstall node-sass solved this problem.


SMC: auto-wrap option for commit description

HI! I think it would be nice to add an auto-wrap option to tell VSCode "Please automatically put a new line on my commit description whenever current line I am typing exceeds git.inputValidationLength characters".

#2718


For Related Content on collection details and work edit pages, change "Link title" label to "Link text"

See wireframes: https://projects.invisionapp.com/share/EQXC9CLKCR2#/screens/420954309_v_Item_1_Edit


Can we run part of Selenium and Karate together?

Hi,
I have been using REST assured for past 2 years. When I see karate my first impression is wow. I'm in the process of trying to incorporate karate in my automation suites.
I have requirement to run API test first and then to ensure such changes reflected in web application. In such case how to integrate?
Currently, I'm using Cucumber BDD - Java, Selenium +Rest Assured. I achieved above integration test by hitting rest call and verifying in UI. In such scenario, I write code in step definition for REST and UI.
Could you please let me know? is it possible to implement such scenario with Karate?

@muthucrr glad you like karate :)
If I understand you correctly you would like to use Karate to make some REST calls, keep the returned data in memory and use that data to run Selenium tests. Is that right ?
I got a similar request from someone else, so I'm certainly going to consider this as a feature request.
Suppose you get a Java API to run a feature file and get access to the returned context as a HashMap, I think this would solve your need. Have a look at the documentation on calling other feature files.  Let me know what you think. To simplify things, all JSON can be auto-converted to Map-s as well. Or wait, maybe you just need a helper API to get some JSON value by JsonPath and maybe you are all set.
Let me know what you think. In the meantime you can try calling a Java custom class from your Karate feature, use a static variable to store the values you need for Selenium and somehow figure how to run the Selenium test just after the Karate test in the same JVM.

Hi Peter Thomas,
Thanks for your detail and quick response, I appreciate your help.
I'm not sure above approach works for me, if you look at attached snapshot below, I did write put request (API test) and UI Test in one feature file which runs in TestNG and my test runner class extends "AbstractTestNGCucumberTests". But, I see in Karate, we extends KarateRunner.
I believe this is not only my requirement, most of people who develop framework with Integration suites like API and UI in one framework may experience this problem.
I implemented/achieved this in Rest Assured without any issue but I want to try with Karate  sot that it will my team who are manual testers and no programming experience.
May be I'm wrong on something, Could you please take a look that it's still possible to implement the same requirement with Karate?
I can wait if it's feature requirement takes sometime. Mean while I try to do only core API test with Karate.

Still not sure if I understand, but how about this.
Use the parallel execution approach, this does not depend on TestNG so you can use it in your existing Abstract TestNG Cucumber test whatever: https://github.com/intuit/karate#parallel-execution - and just set the number of threads to 1.
I am closing this issue.

Hi Peter Thomas,
Karate is simply wow. I got to meet you at a conference and was lucky to view the demo of Karate first hand from you. Following up on the initial question in this thread, could you please guide us on how we can run Karate and Selenium together? I currently have a selenium TestNG based UI automation framework for my UI tests to which I would like to add the Karate backend automation framework. Thanks much for your time.

@nVidiaPriyadarshini glad to hear this !
I think there are a few teams using Karate and Selenium successfully: this is advice I gave someone on Stack Overflow: https://stackoverflow.com/a/47233301/143475
Later the same team reported success: https://stackoverflow.com/q/47795762/143475
So if you still have questions, you can ask it on Stack Overflow and I can ask other team (whom I know) to respond as well.  Hope this helps !

Hi Thomas, Thanks for this great tool. Is possible for you to show me how we can use karate and selenium webdriver together?
What I need is the following:
suppose I call rest or soap webservices through karate and I get for examle Order number  in response as output. Now I want to login in User interface and I want to use the Order number which I got in the resonse of the webservice. Can you explain me how can I do that. I have seen calling java from karate  but I could not follow that.
Thanks for everything and I am grateful.
Regards,
Alireza

@alirezanl79 please look at the links in the comment just before yours.
if you have already read that and still cannot follow, I cannot help you. please post these kinds of questions on stack overflow and maybe someone else will be able to help you.


Delete dev folder from the ppafm directory.

We need to do similar to what has been done in https://github.com/Probe-Particle/ppafm/issues/119.

I think those are all Prokop's things, so I'll assign him on it. I guess all of those files already exist on the prokop-dev branch, so it should be as simple as just delete the whole folder from main.

We can also delete these lines from the MANIFEST.in as part of this issue: https://github.com/Probe-Particle/ppafm/blob/4ddfa0485e49a73c4611a159402860498f5e6300/MANIFEST.in#L13-L14

xclude ppafm/dev/*

what does it mean ?

How I can see and set priority of the issue? I don't see it anywhere?

The MANIFEST.in file is responsible for telling the pip packaging system which files should go into the built package. I had to manually add those lines to specify that the ppafm/dev folder should not go into the pip package even though it's in the ppafm folder.

@ProkopHapala , is there anything that prevents the deletion of the dev/ folder? I started messing around with the code recently and I would appreciate any simplification. Yeah, the existence of one more folder is not a big deal, but still, whenever I change something, I try to check whether there are possibly other parts of the code that depend on the part I have changed and might be broken by it. The less places I have to look into, the better.

I try to check whether there are possibly other parts of the code that depend on the part I have changed and might be broken by it. The less places I have to look into, the better.

You don't have to check if something break inside /dev folder. Just ignore it, please. If you delete it i will heva not idea what I was doing there 5 years ago.


C++ initializer list not recognized

Issue: VS Code will not accept C++ initializer list
[GCC] Error Reported relative to EACH line of the source code (84 errors in total):
{
"resource": "/home/jim/CodeProjects/HexGameProject/HexGame/Source/gamepiecemanager.cpp",
"owner": "cmake-build-diags",
"code": "undefined",
"severity": 8,
"message": "expected primary-expression before '0'",
"source": "GCC",
"startLineNumber": 597,
"startColumn": 27,
"endLineNumber": 597,
"endColumn": 1000
}
Installed Version; Code-OSS Ver. 1.27.2
Installed Extensions:
C/C++
C/C++ Snippets
Clang-Format
CMake
CMake Tools
Git History
Material Icon Theme
Shader languages support for VSCode
Source Code:
namespace Engine
{
class UTF32 //char character, unicode value
{
private:
std::map<uint8_t, unsigned long> CharCodeMap =
{
{u8' ', 0x20},
{u8'!', 0x21},
{u8'#', 0x23},
{u8'$', 0x24},
{u8'%', 0x25},
{u8'&', 0x26},
{u8'(', 0x28},
{u8')', 0x29},
{u8'*', 0x2a},
{u8'+', 0x2b},
{u8',', 0x2c},
{u8'-', 0x2d},
{u8'.', 0x2e},
{u8'/', 0x2f},
{u8'0', 0x30},
{u8'1', 0x31},
{u8'2', 0x32},
{u8'3', 0x33},
{u8'4', 0x34},
{u8'5', 0x35},
{u8'6', 0x36},
{u8'7', 0x37},
{u8'8', 0x38},
{u8'9', 0x39},
{u8':', 0x3a},
{u8';', 0x3b},
{u8'<', 0x3c},
{u8'=', 0x3d},
{u8'>', 0x3e},
{u8'?', 0x3f},
{u8'@', 0x40},
{u8'A', 0x41},
{u8'B', 0x42},
{u8'C', 0x43},
{u8'D', 0x44},
{u8'E', 0x45},
{u8'F', 0x46},
{u8'G', 0x47},
{u8'H', 0x48},
{u8'I', 0x49},
{u8'J', 0x4a},
{u8'K', 0x4b},
{u8'L', 0x4c},
{u8'M', 0x4d},
{u8'N', 0x4e},
{u8'O', 0x4f},
{u8'P', 0x50},
{u8'Q', 0x51},
{u8'R', 0x52},
{u8'S', 0x53},
{u8'T', 0x54},
{u8'U', 0x55},
{u8'V', 0x56},
{u8'W', 0x57},
{u8'X', 0x58},
{u8'Y', 0x59},
{u8'Z', 0x5a},
{u8'[', 0x5b},
{u8']', 0x5d},
{u8'^', 0x5e},
{u8'_', 0x5f},
{u8'`', 0x60},
{u8'a', 0x61},
{u8'b', 0x62},
{u8'c', 0x63},
{u8'd', 0x64},
{u8'e', 0x65},
{u8'f', 0x66},
{u8'g', 0x67},
{u8'h', 0x68},
{u8'i', 0x69},
{u8'j', 0x6a},
{u8'k', 0x6b},
{u8'l', 0x6c},
{u8'm', 0x6d},
{u8'n', 0x6e},
{u8'o', 0x6f},
{u8'p', 0x70},
{u8'q', 0x71},
{u8'r', 0x72},
{u8's', 0x73},
{u8't', 0x74},
{u8'u', 0x75},
{u8'v', 0x76},
{u8'w', 0x77},
{u8'x', 0x78},
{u8'y', 0x79},
{u8'z', 0x7a},
{u8'{', 0x7b},
{u8'|', 0x7c},
{u8'}', 0x7d},
{u8'~', 0x7e}
};
void GamePieceManager::Create_GPF_Map()
{
uint32_t Ndx{};
GPF_Map.insert({0x30, {u8'0', ++Ndx}});
GPF_Map.insert({0x31, {u8'1', ++Ndx}});
GPF_Map.insert({0x32, {u8'2', ++Ndx}});
GPF_Map.insert({0x33, {u8'3', ++Ndx}});
GPF_Map.insert({0x34, {u8'4', ++Ndx}});
GPF_Map.insert({0x35, {u8'5', ++Ndx}});
GPF_Map.insert({0x36, {u8'6', ++Ndx}});
GPF_Map.insert({0x37, {u8'7', ++Ndx}});
GPF_Map.insert({0x38, {u8'8', ++Ndx}});
GPF_Map.insert({0x39, {u8'9', ++Ndx}});

}

Please file this issue against the c++ tools extension


Adding optional spanlogs feature for converting OTEL traces to logs

I'm starting this as a draft PR since it would need at least a little cleanup + adding more settings on the spanlogs object.  It also is only targeting the v1.x code currently. Before I dive into any other changes, I'd like to get some feedback from the maintainers & community to see how you'd prefer seeing this implemented.

@petewall - I don't know if you get tagged in draft PRs, but when you get a chance, please let me know your thoughts on this PR's direction. No worries if you just haven't had a chance to reply


[3.6] Audio category in Project Settings shows as collapsible section

Tested versions

Reproducible in 3.6.stable
Not reproducible in: 3.5.3.stable

System information
Windows 10, Godot 3.6
Issue description
In the Project Settings of the Godot Editor starting from 3.6, the Audio category now shows up as collapsible, with a "General" tab underneath it containing the backported audio settings from 4.x.
In 3.5.x, the Audio category was a standalone entry.
This led me to think the audio settings in Godot 3.6 were straight up removed, because I'd click the General button expecting the audio settings to be there instead.
You have to click the name of the collapsible category to access the Audio settings now. No other category in the Project Settings behaves like this.
Audio category in Godot 3.5:

Audio category in Godot 3.6:

Note that the header does not completely light up when selected, and you can click the general tab thinking you've opened the actual audio settings. The general tab contains TTS and iOS related settings.

Steps to reproduce
Open the Project Settings in Godot 3.6 after loading any project (even a blank one) and look for the Audio category.
Minimal reproduction project (MRP)
N/A

Duplicate of #96883 ?

Closing as duplicate, better to discuss on original issue.

I didn't realize there was an existing issue. Sorry!

I didn't realize there was an existing issue. Sorry!

No worries, sometimes it's difficult to find the duplicates and it's far better to risk a duplicate than not creating an issue if you aren't sure. :+1:


How to generate gt.mat file for new dataset?

Hello! I am trying to create a new dataset using a different set of texts/words and was able to generate the image containing the new texts. However, I want to crop the individual texts using the code mentioned here: https://github.com/ankush-me/SynthText/issues/174 but it appears that it needs a "gt.mat" file. I tried to do this by adding a line of code within the visualize_results.py
viz_textbb(rgb, [charBB], wordBB)
print ("     image name   : ", colorize(Color.RED, k, bold=True))
print ("  ** no. of chars : ", colorize(Color.YELLOW, charBB.shape[-1]))
print ("  ** no. of words : ", colorize(Color.YELLOW, wordBB.shape[-1]))
print ("  ** text         : ", colorize(Color.GREEN, txt))
gt_file = {"imnames": k, "wordBB": wordBB, "charBB": charBB, "txt": txt} ## added this

then eventually saving gt_file as a gt.mat file using scipy.io. However whenever i use this gt.mat to the code mentioned above to crop word patches, i get an error:
Traceback (most recent call last):
  File "crop.py", line 146, in <module>
    do_work(opts,synth_dat)
  File "crop.py", line 104, in do_work
    np.random.shuffle(i_range)
  File "mtrand.pyx", line 4529, in numpy.random.mtrand.RandomState.shuffle
  File "mtrand.pyx", line 4532, in numpy.random.mtrand.RandomState.shuffle
TypeError: 'range' object does not support item assignment

I feel like the error is coming from my generated gt.mat because of its format. Would just like to ask how to properly create a gt.mat file that can be used as an input to the cropping code?
Thank you very much and thank you btw for this wonderful project. I've been learning it for weeks and love it so much!

Check the dataset readme file for a description of gt.mat.

Thank you very much for this! Appreciate this a lot :)

Hello @ankush-me I am so sorry for another question. I am just wondering how I can generate text by line and not repeating? Ex. this is my txt file

and I am hoping to generate an image that can render text per line ex. "present concerned" are in 1 wordBB instead of separate BB. and not have repeating words (ex. if it is already rendered in img 1, it will not anymore be rendered in img 2)
This is the current one i am having now. It can be seen that "differs" is rendered twice and "from" is rendered by itself instead of "from most"

Thank you very much in advance. I really really appreciate all your efforts and help. Please stay safe always

Check this.
You will also need to edit how the text is sampled (I guess) in text_utils.py to sample whole blocks or multiple lines of text here.

Hi @ankush-me. Thank you very much for this! Just edited sample_word in text_utils.py and it works as if it is ready line by line! I will post the code here soon for future reference. I'm just wondering why not all texts in "sample_word" / text_utils are placed on the image? It seems that only some of the words/texts actually make it to the final generated image.

It depends on many factors like font size, text length, segment size etc.
May be this is helpful.

@ankush-me  Thank you very much for these! Really appreciate all the help and esp. this opensource project!

Hi @ankush-me. Thank you very much for this! Just edited sample_word in text_utils.py and it works as if it is ready line by line! I will post the code here soon for future reference. I'm just wondering why not all texts in "sample_word" / text_utils are placed on the image? It seems that only some of the words/texts actually make it to the final generated image.

would you like to share the edited sample_word method here？

hi @CNZedChou ! I'm sorry i forgot to post the code. But this is what i did:
In text_utils.py i changed sample_word() to this:
 def sample_word(self,nline_max,nchar_max,niter=100):
        rand_line_index = np.random.choice(len(self.txt))
        rand_line = self.txt[rand_line_index]

        return rand_line

what this does is it chooses a random line instead of a random word from your line striped-text source (self.txt). Also make sure to change text_type to 'WORD' in render_sample() so that it will always choose sample_word():
text = self.text_source.sample(nline,nchar,'WORD')

hi @CNZedChou ! I'm sorry i forgot to post the code. But this is what i did:
In text_utils.py i changed sample_word() to this:
 def sample_word(self,nline_max,nchar_max,niter=100):
        rand_line_index = np.random.choice(len(self.txt))
        rand_line = self.txt[rand_line_index]

        return rand_line

what this does is it chooses a random line instead of a random word from your line striped-text source (self.txt). Also make sure to change text_type to 'WORD' in render_sample() so that it will always choose sample_word():
text = self.text_source.sample(nline,nchar,'WORD')

cool! thanks for your patient reply. Well, it's a pity that a line with whitespaces still will be separated into several wordBBs. My idea is to compute the minAreaRect for those wordBB from a same text to generate the LineBB which is used in computing wordBB from charBB. here

@CNZedChou Ahh yes the words will still be separated into several wordBBs. In my case, i needed to crop the words as a phrase/several words. This is what i did. Not sure if it can help though. I just used the final outputs' points to combine the words within the phrases (since i know the points for word 1 and word 2, i can combine them through these points).
def crop_words(text_im, wordBB, txt):
    count = 0
    H = 80 # height of output cropped img
    W = 160 # width of output cropped img
    i = 0
    k = 0
    while i < wordBB.shape[-1]: # total number of words
        bb = wordBB[:,:,i] # word
        bb2 = bb # if single word
        if k < len(txt): # if smaller than number of txt render in img
            phrase = txt[k] # individual phrase/word
            if len(phrase.split()) == 2: # if number of words within the phrase is 2
                try:
                    W = 300
                    bb2 = wordBB[:,:,i+1] # get wordBB of word as pts2 and pts3
                    i = i + 1 # skip word for next iteration
                except IndexError:
                    pass
            elif len(phrase.split()) == 3:
                try:
                    W = 400
                    bb2 = wordBB[:,:,i+2]
                    i = i + 2
                except IndexError:
                    pass

            pt1x = round(bb[0][0]) # pt 1 x
            pt1y = round(bb[1][0]) # pt 1 y
            pt2x = round(bb2[0][1])
            pt2y = round(bb2[1][1])
            pt3x = round(bb2[0][2])
            pt3y = round(bb2[1][2])
            pt4x = round(bb[0][3])
            pt4y = round(bb[1][3])
            pts0 = np.float32([[pt1x,pt1y],[pt2x,pt2y],[pt3x,pt3y],[pt4x,pt4y]])
            pts1 = np.float32([[0,0],[W,0],[W,H],[0,H]])
            M = cv2.getPerspectiveTransform(pts0,pts1)
            result = cv2.warpPerspective(text_im,M,(W,H))
            #result = cv2.cvtColor(result, cv2.COLOR_BGR2RGB)
            out_path = "Output Images"
            filename = os.path.join(out_path, phrase + '.png')
            if os.path.exists(filename):
                cv2.imwrite(os.path.join(out_path, phrase + '_' + str(count) + '.png'), result)
                count = count + 1
            else:
                cv2.imwrite(filename, result)
        k = k + 1
        i = i + 1

def crop_main(db_fname):
    db = h5py.File(db_fname, 'r')
    dsets = sorted(db['data'].keys())
    print ("total number of images : ", colorize(Color.RED, len(dsets), highlight=True))

    for k in dsets:
        rgb = db['data'][k][...]
        charBB = db['data'][k].attrs['charBB']
        wordBB = db['data'][k].attrs['wordBB']
        txt = db['data'][k].attrs['txt']

        crop_words(rgb, wordBB, txt)

        print ("     image name   : ", colorize(Color.RED, k, bold=True))
        print ("  ** no. of chars : ", colorize(Color.YELLOW, charBB.shape[-1]))
        print ("  ** no. of words : ", colorize(Color.YELLOW, wordBB.shape[-1]))
        print ("  ** text         : ", colorize(Color.GREEN, txt))

    db.close()

Hi, @clairerity , my idea is accomplished by calculating the line BB with charBBs in this line.

Well, I wonder if you have any idea for another problem: When lines are too close together, the boxes between lines overlap. Did you have any experiences before?
![BB overlaps example] (https://user-images.githubusercontent.com/44132433/155338659-9b45bbca-2a9c-4381-baea-1f4601d132c5.png)

hi @CNZedChou wow that's great!! would you mind sharing your code for this?
Regarding the lines being too close together, i think this is related to this issue 112


Taking screenshot from fragmentScenario fails due to main application thread

Expected behaviour
A screenshot is taken
Actual behaviour
> Task :app:connectedDebugAndroidTest
Starting 1 tests on Pixel_3a_API_30_x86(AVD) - 11

com.example.screenshotfailing.ExampleInstrumentedTest > basicTest[Pixel_3a_API_30_x86(AVD) - 11] FAILED
	java.lang.RuntimeException: java.lang.RuntimeException: This method can not be called from the main application thread
	at androidx.test.runner.MonitoringInstrumentation.runOnMainSync(MonitoringInstrumentation.java:441)

> Task :app:connectedDebugAndroidTest FAILED

Steps to reproduce

Configure the library according to Readme instructions
Initiate the fragment in tests via launchFragmentInContainer
fragmentScenario.moveToState
fragmentScenario.onFragment { compareScreenshot(it) }
Run test with executeScreenshotTests -Precord

Reproducible project
https://github.com/MrXlebNick/shot-fragmentscenario.git
Version of the library
4.3.0

Solved by
fragmentScenario.onFragment {
        Single
                .fromCallable {
                    compareScreenshot(it)
                }
                .subscribeOn(Schedulers.io())
                .subscribe()
}


Possible to define elm type and encoder & decoder from typescript?

Currently this library allow one to define typescript type and elm type and encoder & decoder from combinator (source code) written in elm.
Is there another way. That allow one to define elm type and encoder & decoder from typescript type (parse from source code) or combinator functions / ast written in typescript ?

If I'm understanding what you're describing, having an equivalent of elm-ts-json but where you write an Encoder/Decoder in TypeScript and it syncs with Elm (something like https://github.com/gcanti/io-ts), it's unfortunately not possible.
One of the interesting differences between Elm and TypeScript is that in Elm, you have to "prove" everything to the compiler. But in TypeScript, you can give type information and tell the TypeScript compiler to "just trust me on this."
You could generate an Elm decoder or encoder from TypeScript types, but I've talked about the reasons why I think that approach is limiting and not ideal (just my personal opinion).
So one of the unique advantages of taking a Decoder or Encoder written in Elm and turning syncing it with types in TypeScript is you don't have to generate any TypeScript code, just TypeScript types.


Integration of Hyperledger Burrow EVM

Description of the Change
This PR introduces changes necessary for integration of the Hyperledger Burrow EVM as a static library.

Benefits
Ability to run smart contracts on top of Iroha blockchain.

Possible Drawbacks
Larger binaries.

Usage Examples or Tests [optional]

Alternate Designs [optional]

Burrow storage (in Burrow) — Eugene
Burrow storage (in Iroha) — Eugene
Query — Mikhail
Command — Eugene
Go part — Alexander
All other small parts — we will decide according to review from Andrey

Partial review progress:
Go code:

[ ] Alexander

Query:

[ ] Mikhail

Comand:

[ ] Eugene

Burrow storage (in Burrow) — Eugene

it is written mostly by Eugene and is hardly distinguishable from the whole go part IMHO

Burrow storage (in Iroha) — Eugene

this is actually in #493


Non-power-of-2 pointlight2d texture renders wrong

Godot version
4.1.1.stable.official
System information
Windows 10, GeForce RTX 2080, driver <IP_ADDRESS>49, "forward_plus"
Issue description
I'm very new to Godot, so please forgive me if I misunderstood or messed up something.
When setting textures for PointLight2D "sometimes" it renders weird if the texture dimensions are not power of two.
"Sometimes" - because I'm not always able to reproduce this. But once it happens it happens always.
Also, sometimes it shows up in the editor as well, sometimes only in run mode.

Steps to reproduce

create new project, create new 2D scene
add Polygon2D, draw a large polygon, adjust color so that it's somewhat darker than full white
add PointLight2D, set texture to GradientTexture2D
create radial falloff texture: white at center to black at sides
set texture dimensions to 30x30 pixels
move light into the polygon
run project, be amazed
set gradient light texture dimensions to 32x32 pixels
run project, no it's fine

Minimal reproduction project
New Game Project.zip

Did some testing and found that it is broken in the Forward+ and Mobile renderers as of 4.2 dev. Specifically values from 17 to 31 for Gradient height only. Width had no errors for me regardless of setting.
Compatibility renderer draws it correctly.
Digging through renderer code is beyond me but hopefully this helps narrow it down for those in the know!

Could you post a screenshot of what the "correct" result is. From the picture above it is hard to tell what is broken


Deps.json_validation_rhino declaration is missing

Describe the bug
Gradle build fails because Deps.json_validation_rhino is not declared in the buildSrc module.
Expected behaviour
I expected that cloning and building the project from main would work.
Steps to reproduce the issue

Clone repo
Open in Android Studio
Initial build fails

Possible Fix
Add json_validation_rhino to Versions- and Dependencies-objects under buildSrc.

Thank you for finding it @anskaal ! Prepared PR with the fix: https://github.com/eu-digital-green-certificates/dgca-app-core-android/pull/26


minor changes for Medline index writer

As I'm doing the performance test, I noticed a few issues, so I decided to makes some minor changes to Medline Data Schema and Medline Index Writer.

@chenlica Please take a look at these minor changes. I think it's okay to merge.

Looks good to me.


Yield Aggregator - Fetch current Pickle JAR APY numbers

Right now the yield aggregator has hardcoded the USDC pickle jar APY from https://app.pickle.finance/jars
We should research how to retrieve the actual APY numbers.

I followed up on this; I forgot we had this issue open.
@larrythecucumber321:
Hey buddy. The live APR (i.e. your exact PICKLE APR) can be seen on the frontend but otherwise, it can be derived through calculations. But if you haven't locked any DILL, then it will be the low number in the range
But the data annoyingly comes from several places, but this hopefully points you in the right direction https://github.com/pickle-finance/pickle-ui/blob/master/containers/Gauges/useJarGaugeApy.ts#L52
Gauges can all be fetched from here https://etherscan.io/address/0x2e57627ACf6c1812F99e274d0ac61B786c19E74f#code
But since you're only interested in USDC, this is the particular gauge https://etherscan.io/address/0x9e1126c51c319A1d31d928DC498c9988C094e793#code


Feature 1311 update vehicles

Summary of the discussion
Convert existing vehicle classes by propulsion type into equivalent classes to establish an inferred multi-hierarchical structure within vehicles.

Type of change (CHANGELOG.md)
Added

current collector: A current collector is a energy converting component that transfers electrical energy between a stationary conductor and an grid supplied electric vehicle.
gas turbine vehicle: A gas turbine vehicle is a vehicle that uses a gas turbine for propulsion.
jet fuel vehicle: A jet fuel vehicle is a gas turbine vehicle that uses a jet fuel turbine.
jet fuel turbine: A jet fuel turbine is a turbine fueled with jet fuel. (Alternative labels: aviation turbine and jet turbine.)

Updated

Adapt electric vehicle and convert to equivalent class: An electric vehicle (abbreviated as EV) is a vehicle that uses one or more ~electric motors for propulsion~ electric traction motor.
Adapt battery electric vehicle and convert to equivalent class: A battery electric vehicle (BEV) is an electric vehicle that stores energy in ~an on-board battery~ traction battery.
Adapt grid supplied electric vehicle and convert to equivalent class: A grid supplied electric vehicle is an electric vehicle that ~uses~ has a current collector to use electrical energy ~via a conductor~.
Adapt internal combustion vehicle and convert to equivalent class: An internal combustion vehicle is a vehicle ~powered by~ that uses an internal combustion engine for propulsion.
Convert fuel cell vehicle, diesel vehicle, gasoline vehicle, gas vehicle, compressed gas vehicle, liquefied natural gas vehicle, liquefied petroleum gas vehicle and plug-in hybrid electric vehicle to equivalent classes.
Add axiom to e-bike: e-bike 'has part' some 'traction battery'.

Workflow checklist
Automation
Closes #1311
PR-Assignee

[ ] 🐙 Follow the Pull Request Workflow
[ ] 📝 Update the CHANGELOG.md
[ ] 📙 Add #'s to term tracker item

Reviewer

[ ] 🐙 Follow the Reviewer Guide
[ ] 🐙 Provided feedback and show sufficient appreciation for the work done

Thank you very much for thoroughly reviewing this large PR. I accepted all your change proposals.