hardhat-example project isn't fully functional

Description
The hardhat-example project appears to have missing/incorrect dependencies/config. Only 1/5 tests pass.
  RPC
The address 0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 has<PHONE_NUMBER>370000000000 tinybars
    ✔ should be able to get the account balance (299ms)
Balance before tx:<PHONE_NUMBER>370000000000
    1) should be able to transfer hbars between two accounts
    2) should be able to deploy a contract
    3) should be able to make a contract view call
    4) should be able to make a contract call

Steps to reproduce

Install the project: npm i
Install<EMAIL_ADDRESS>in the project: npm i<EMAIL_ADDRESS>Start hedera-local node in project root: npx @hashgraph/hedera-local start
Run test cmd in project root: npx hardhat test

Device:
OS: macOS 12.2.1
Chip: Apple M1

Additional context
json-rpc-relay container log for 1 of the failed calls which seems to indicate a network config issue particularly with the chainId, I did attempt to set the chainId to 298, 200 and 1 in the hardhat config for the relay network, but none worked.
[2022-08-31 14:47:21.921 +0000] ERROR (relay-eth/49 on e63350e0cd8c): Failed to successfully submit sendRawTransaction for transaction 0x02f87382012a808459682f0086014fa0186f008252089405fba803be258049a27b820088bab1cad205887185174876e80080c080a07e95626e5f8795e15a555bd0f3acc86d47d765822dff57453a1589895ca5e375a0408a1ba43a091c0c5ac727d35100cd7fbd833f7fe528a2643210fd0fb3d6e7c5
    err: {
      "type": "Error",
      "message": "transaction<EMAIL_ADDRESS>failed precheck with status WRONG_CHAIN_ID",
      "stack":
          Error: transaction<EMAIL_ADDRESS>failed precheck with status WRONG_CHAIN_ID
              at SDKClient.<anonymous> (/home/node/app/packages/relay/dist/lib/clients/sdkClient.js:83:27)
              at Generator.throw (<anonymous>)
              at rejected (/home/node/app/packages/relay/dist/lib/clients/sdkClient.js:25:65)
              at processTicksAndRejections (node:internal/process/task_queues:96:5)
    }

Stack traces for failed tests:
  1) RPC
       should be able to transfer hbars between two accounts:
     Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":55,\"error\":{\"code\":-32603,\"name\":\"Internal error\",\"message\":\"Unknown error invoking RPC\"}}", error={"code":-32603}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0x02f87382012a808459682f0086014fa0186f008252089405fba803be258049a27b820088bab1cad205887185174876e80080c080a07e95626e5f8795e15a555bd0f3acc86d47d765822dff57453a1589895ca5e375a0408a1ba43a091c0c5ac727d35100cd7fbd833f7fe528a2643210fd0fb3d6e7c5\"],\"id\":55,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="http://localhost:7546", code=SERVER_ERROR, version=web/5.6.1)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at /Users/user/dev/hedera/hedera-json-rpc-relay/tools/hardhat-example/node_modules/@ethersproject/web/src.ts/index.ts:329:28
      at step (node_modules/@ethersproject/web/lib/index.js:33:23)
      at Object.next (node_modules/@ethersproject/web/lib/index.js:14:53)
      at fulfilled (node_modules/@ethersproject/web/lib/index.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  2) RPC
       should be able to deploy a contract:
     Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":53,\"error\":{\"code\":-32603,\"name\":\"Internal error\",\"message\":\"Unknown error invoking RPC\"}}", error={"code":-32603}, requestBody="{\"method\":\"eth_sendRawTransaction\",\"params\":[\"[encoded data, 4246 characters]\"],\"id\":53,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="http://localhost:7546", code=SERVER_ERROR, version=web/5.6.1)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at /Users/user/dev/hedera/hedera-json-rpc-relay/tools/hardhat-example/node_modules/@ethersproject/web/src.ts/index.ts:329:28
      at step (node_modules/@ethersproject/web/lib/index.js:33:23)
      at Object.next (node_modules/@ethersproject/web/lib/index.js:14:53)
      at fulfilled (node_modules/@ethersproject/web/lib/index.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

  3) RPC
       should be able to make a contract view call:
     Error: invalid contract address or ENS name (argument="addressOrName", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.6.2)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at Logger.throwArgumentError (node_modules/@ethersproject/logger/src.ts/index.ts:277:21)
      at Contract.BaseContract (node_modules/@ethersproject/contracts/src.ts/index.ts:712:20)
      at new Contract (node_modules/@ethersproject/contracts/lib/index.js:1053:42)
      at Function.ContractFactory.getContract (node_modules/@ethersproject/contracts/src.ts/index.ts:1297:16)
      at ContractFactory.attach (node_modules/@ethersproject/contracts/src.ts/index.ts:1260:42)
      at getContractAtFromArtifact (node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:352:26)

  4) RPC
       should be able to make a contract call:
     Error: invalid contract address or ENS name (argument="addressOrName", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.6.2)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at Logger.throwArgumentError (node_modules/@ethersproject/logger/src.ts/index.ts:277:21)
      at Contract.BaseContract (node_modules/@ethersproject/contracts/src.ts/index.ts:712:20)
      at new Contract (node_modules/@ethersproject/contracts/lib/index.js:1053:42)
      at Function.ContractFactory.getContract (node_modules/@ethersproject/contracts/src.ts/index.ts:1297:16)
      at ContractFactory.attach (node_modules/@ethersproject/contracts/src.ts/index.ts:1260:42)
      at getContractAtFromArtifact (node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:352:26)

Hedera network
other
Version
<EMAIL_ADDRESS>Operating system
macOS

@natanasow seems to be the only contributor to any of the 3 examples, none of which seem to run the tests 100%.
The truffle-example doesn't even begin to run the tests and fails with the following trace:
Compiling your contracts...
===========================
> Compiling ./contracts/Greeter.sol
> Artifacts written to /var/folders/nw/7k5l56jn0ngd77ll2zykymhr0000gn/T/test--35109-PSqrzFCnNK4l
> Compiled successfully using:
   - solc: 0.8.15+commit.e14f2714.Emscripten.clang
Error:
    at /Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:331:1
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Migration._deploy (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:68:1)
    at Migration._load (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:54:1)
    at Migration.run (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:202:1)
    at Object.runMigrations (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/index.js:142:1)
    at Object.runFrom (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/index.js:107:1)
    at Object.runAll (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/index.js:111:1)
    at Object.run (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/migrate/index.js:84:1)
    at Object.run (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/core/lib/testing/Test.js:114:1)
    at Object.module.exports [as run] (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/core/lib/commands/test/run.js:115:1)
    at runCommand (/Users/user/dev/hedera/hedera-json-rpc-relay/tools/truffle-example/node_modules/truffle/build/webpack:/packages/core/lib/command-utils.js:184:1)
Truffle v5.5.23 (core: 5.5.23)
Node v16.17.0

The web3js-example tests fail similarly to the hardhat-example with the following tests error trace:
  RPC
The address 0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 has<PHONE_NUMBER>370000000000 tinybars
    ✔ should be able to get the account balance (372ms)
Balance before tx:<PHONE_NUMBER>370000000000
    1) should be able to transfer hbars between two accounts
    2) should be able to deploy a contract
    3) should be able to make a contract view call
    4) should be able to make a contract call

  1 passing (2s)
  4 failing

  1) RPC
       should be able to transfer hbars between two accounts:
     Error: Returned error: Unknown error invoking RPC
      at Object.ErrorResponse (node_modules/web3-core-helpers/lib/errors.js:28:19)
      at /Users/user/dev/hedera/hedera-json-rpc-relay/tools/web3js-example/node_modules/web3-core-requestmanager/lib/index.js:300:36
      at XMLHttpRequest.request.onreadystatechange (node_modules/web3-providers-http/lib/index.js:98:13)
      at XMLHttpRequestEventTarget.dispatchEvent (node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
      at XMLHttpRequest._setReadyState (node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
      at XMLHttpRequest._onHttpResponseEnd (node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
      at IncomingMessage.<anonymous> (node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
      at IncomingMessage.emit (node:events:525:35)
      at endReadableNT (node:internal/streams/readable:1358:12)
      at processTicksAndRejections (node:internal/process/task_queues:83:21)

  2) RPC
       should be able to deploy a contract:
     Error: Returned error: Unknown error invoking RPC
      at Object.ErrorResponse (node_modules/web3-core-helpers/lib/errors.js:28:19)
      at /Users/user/dev/hedera/hedera-json-rpc-relay/tools/web3js-example/node_modules/web3-core-requestmanager/lib/index.js:300:36
      at XMLHttpRequest.request.onreadystatechange (node_modules/web3-providers-http/lib/index.js:98:13)
      at XMLHttpRequestEventTarget.dispatchEvent (node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
      at XMLHttpRequest._setReadyState (node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
      at XMLHttpRequest._onHttpResponseEnd (node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
      at IncomingMessage.<anonymous> (node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
      at IncomingMessage.emit (node:events:525:35)
      at endReadableNT (node:internal/streams/readable:1358:12)
      at processTicksAndRejections (node:internal/process/task_queues:83:21)

  3) RPC
       should be able to make a contract view call:
     Error: This contract object doesn't have address set yet, please set an address first.
      at Object.ContractNoAddressDefinedError (node_modules/web3-core-helpers/lib/errors.js:122:16)
      at Object._processExecuteArguments (node_modules/web3-eth-contract/lib/index.js:728:22)
      at Object._executeMethod (node_modules/web3-eth-contract/lib/index.js:744:68)
      at module.exports (scripts/contractViewCall.js:32:49)
      at async Context.<anonymous> (test/rpc.js:59:17)

  4) RPC
       should be able to make a contract call:
     Error: This contract object doesn't have address set yet, please set an address first.
      at Object.ContractNoAddressDefinedError (node_modules/web3-core-helpers/lib/errors.js:122:16)
      at Object._processExecuteArguments (node_modules/web3-eth-contract/lib/index.js:728:22)
      at Object._executeMethod (node_modules/web3-eth-contract/lib/index.js:744:68)
      at module.exports (scripts/contractCall.js:32:59)
      at async Context.<anonymous> (test/rpc.js:66:5)

@georgi-l95 believes this issue might be related to this one.

HI @mshakeg given the issue is around the WRONG_CHAIN_ID then yes that is the issue.
This should be addressed with the next local-node release.
In the mean time you should be able to configure the relay properties in your docker-compose to use the CHAIN_ID that matches what services expects

Thanks for the reply @Nana-EC , starting up the relay and hedera-local-node services separately using the default .env for both(which both set RELAY_CHAIN_ID and CHAIN_ID to 0x12a) doesn't seem to create the initial sets of accounts hence the balance 0 on the first hardhat example test:
  RPC
The address 0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 has 0 tinybars
    1) should be able to get the account balance

I managed to get a temp workaround, start the hedera-local-node, then in docker shut down the relay container, then in the relay project repo, set the CHAIN_ID in .env to testnet i.e. 0x128, then setup, build and start the relay.

@mshakeg glad you got a work around.
We'll also take a look in conjunction with the local-node updates to see what can be done.
Thanks

Great to hear @Nana-EC , I'll close this issue, given there's already visibility on the earlier issue


Skip servlet filter processing if logger disabled

HttpLoggerForServlets should check logger.isEnabled before creating a LoggedResponseWrapper instance.  If the logger is disabled, the original request and response should be passed through the filter chain without any further processing.

Uhh, duh, this is already done by the doFilter method.  No changes needed.


ros_comm: 1.14.13-1 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository ros_comm to 1.14.13-1:

upstream repository: git@github.com:ros/ros_comm.git
release repository: https://github.com/ros-gbp/ros_comm-release.git
distro file: melodic/distribution.yaml
bloom version: 0.10.7
previous version for package: 1.14.12-1

message_filters

No changes

ros_comm

No changes

rosbag

No changes

rosbag_storage

No changes

roscpp
* Use recursive mutex to fix dead lock (#2209 <https://github.com/ros/ros_comm/issues/2209>)
* Contributors: Chen Lihui, Jacob Perron

rosgraph
* Fix memory leak in rosgraph for kernel < 4.16 and Python 3 (#2165 <https://github.com/ros/ros_comm/issues/2165>)
* Contributors: Alexis Schad, Jacob Perron

roslaunch
* Allow passing _TIMEOUT_SIGINT and _TIMEOUT_SIGTERM as parameters (#1937 <https://github.com/ros/ros_comm/issues/1937>)
* Contributors: Jacob Perron, Martin Pecka

roslz4

No changes

rosmaster

No changes

rosmsg

No changes

rosnode

No changes

rosout

No changes

rosparam

No changes

rospy
* Add current_real docstring in timer.py (#2178 <https://github.com/ros/ros_comm/issues/2178>)
* Do not set self.transport unless persistent in ServiceProxy (#2171 <https://github.com/ros/ros_comm/issues/2171>)
* Fix #2123 <https://github.com/ros/ros_comm/issues/2123>:  Do not raise exception if socket is busy in TCPROSTransport (#2131 <https://github.com/ros/ros_comm/issues/2131>)
* Contributors: Jacob Perron, Kevin Chang, Shingo Kitagawa, 金梦磊

rosservice

No changes

rostest

No changes

rostopic

No changes

roswtf

No changes

topic_tools

No changes

xmlrpcpp
* Keep the persistent connection only if rosmaster supports http1.1 (#2208 <https://github.com/ros/ros_comm/issues/2208>)
* Fix build when gtest is not available (#2177 <https://github.com/ros/ros_comm/issues/2177>)
* Contributors: Chen Lihui, Jacob Perron, Wolfgang Merkt

Holding for Melodic sync


Error running Sourcery after Xcode 16 and converting groups into folders

Hello, great people!
After upgrading to Xcode 16 and converting all groups into folders (to minimize git conflicts), I noticed that I can't run Sourcery anymore. It has something to do with a similar issue that has been resolved.
The error I receive when generating my mocks using Sourcery is:
error: while reading .yml '.sourcery/data-mocks.yml'. 'The element PBXFileSystemSynchronizedBuildFileExceptionSet is not supported.'
Looking at the fix for #1228 I believe the same needs to be done to support the new(?) PBXFileSystemSynchronizedBuildFileExceptionSet used in our .pbxproj files. I assume this new(?) entry is caused by the latest Xcode version and using folders.

@krzysztofzablocki, any update on the issue?

I updated the dependency, just didn't do a new release yet

@krzysztofzablocki, any update or maybe a workaround in the meantime?

@krzysztofzablocki, can we please get an update on this issue?

It's been awhile again. So, any update @krzysztofzablocki? CC: maybe @ilyapuchka, @art-divin?


fix: No I cursor on text in keyboard shortcut

Details

Fixed Issues
$ https://github.com/Expensify/App/issues/29613
PROPOSAL: https://github.com/Expensify/App/issues/29613#issuecomment-1763033428
Tests

Open the app
Press CTRL+J/CMD+J to open keyboard shortcut
Hover on text and observe that I cursor is displayed.
Go to settings > wallet (feature list will be only displayed when no accounts or wallet has been connected)
Hover on feature list text and observe that I cursor is displayed.
Go to settings > workspaces (feature list will be only displayed when no workspace is created yet)
Hover on feature list text and observe that I cursor is displayed.

[x] Verify that no errors appear in the JS console

Offline tests

Open the app
Press CTRL+J/CMD+J to open keyboard shortcut
Hover on text and observe that I cursor is displayed.
Go to settings > wallet (feature list will be only displayed when no accounts or wallet has been connected)
Hover on feature list text and observe that I cursor is displayed.
Go to settings > workspaces (feature list will be only displayed when no workspace is created yet)
Hover on feature list text and observe that I cursor is displayed.

QA Steps

Open the app
Press CTRL+J/CMD+J to open keyboard shortcut
Hover on text and observe that I cursor is displayed.
Go to settings > wallet (feature list will be only displayed when no accounts or wallet has been connected)
Hover on feature list text and observe that I cursor is displayed.
Go to settings > workspaces (feature list will be only displayed when no workspace is created yet)
Hover on feature list text and observe that I cursor is displayed.

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/Expensify/App/assets/85894871/cdc9c639-14a8-4af0-92c5-a2ea1f82963d

Android: mWeb Chrome
https://github.com/Expensify/App/assets/85894871/2efc17c6-e1b6-4eae-9241-d7834b0b1c8f

iOS: Native
https://github.com/Expensify/App/assets/85894871/d59bd921-bc6a-463e-82f2-3ab539fe4de3

iOS: mWeb Safari
https://github.com/Expensify/App/assets/85894871/79a216ed-a77f-4b03-9d24-3c2dbf975ce3

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/85894871/601b4842-6a1b-4962-8248-1fa45bc95e44

MacOS: Desktop
https://github.com/Expensify/App/assets/85894871/a98b02a3-7a2f-4c89-8e9e-920cd267ccb4

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/3069065/26aa79e7-8a65-483e-957b-b99838077528

MacOS: Desktop
https://github.com/Expensify/App/assets/3069065/bf467b5c-3048-42bb-88ae-26211e597e90

Since we're modifying FeatureList, we need to also test other places that FeatureList is used, to make sure we didn't cause regressions there.
@Krishna2323 can you please add more test steps for other pages that use FeatureList to verify nothing is broken there?

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.7-4 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


Saml integration

After the request is merged, below are the things that need to be made sure of

Run Migration
Add config value GATE_URL: 'https://gate.gojek.co.id/'

This has been merged. I looked at this, looks safe to merge. Thanks for this.


Please add method allow Http Proxy with Authentication

Verry nice project, but can you please add Authentication to Http Proxy ?

Done, you can now use http basic auth and provide a username and a password.
but this method of authentication is not secure as any one in the middle can see the encoded username and password in clear text.

Verry helpful. You are the best.
By the way, i can see you have a repository named socks-server, can you please anwser me, how you can make the DNS go through socks5 ? Sorry for my bad english.
Examples : I have a socks5 : <IP_ADDRESS>:3208
But when i use that socks5, and try check my ip address, website show <IP_ADDRESS>, its right, but website show my DNS record is my real ip address 's DNS (without proxying).
How can you make the socks5 (<IP_ADDRESS>:3208) use its (<IP_ADDRESS>) DNS record ?

The spec of the socks version 5 protocol has support for 3 types of addresses (ipv4 and ipv6 addresses and domain names) but it's the client's decision whether to resolve DNS locally or proxy DNS by specifying the domain name inside the request to the socks server.
ex: in firefox you can find an option for whether you'd like to resolve DNS locally or proxy DNS through the socks server:

another example using curl:

the difference between --socks5 and --socks5h is that --socks5 resolves DNS locally but --socks5h sends the domain name as it is to the socks server.
socks 5 spec (rfc 1928): https://www.rfc-editor.org/rfc/rfc1928


--testNamePattern doesn't work as expected -- runs all tests under the file

Expected Behavior
command
npm test -t="needsCheckInOrOut"

should filter out describe blocks having title doesn't start with needsCheckInOrOut, ie. runs single describe block like below.

Current Behavior
Runs all describe blocks under the file.

Context
I have a single test file named index.test.ts and it has some describe blocks that takes longer time to execute. So I want to run certain describe blocks by specifying their title via -t option.
Is that possible through -t option? Or if it's not, is there any alternative for specifying certain describe block under the test file via CLI?
For example, I have those test cases.
needsCheckInOrOut
    ✓ input: Jan 13–18, 2019 (4ms)
    ✓ input: Jan 13–15, 2019 (11ms)
    ✓ input: Jan 15–17, 2019 (1ms)
    ✓ input: Jan 15–Feb 1, 2019
    ✓ input: Dec 31–Jan 15, 2019
  detect language
    ✓ should detect `안녕하세요!숙소 문의드리고싶어서요�혹시 집에서 바다가 보이나요?` to `ko` (730ms)
    ✓ should detect `hello, we are coming from germany and looking forward to staying at your place :)` to `en` (391ms)
    ✓ should detect `Qu'est-ce que vous faites?` to `en` (368ms)
    ✓ should detect `.` to `ko` (353ms)
    ✓ should detect `` to `ko` (593ms)
  send gmail message
    ✓ can send mail subject and body containing non ascii characters (1775ms)
  send message
    ✓ case check-in (17277ms)
    ✓ case check-out (13311ms)
    ✓ case reservation-confirmed (15373ms)

And if I want to test only detect language describe block, then I can to use
npm test -t="detect language"

As a result, only one describe block that has matching title would be tested.
  detect language
    ✓ should detect `안녕하세요!숙소 문의드리고싶어서요�혹시 집에서 바다가 보이나요?` to `ko` (730ms)
    ✓ should detect `hello, we are coming from germany and looking forward to staying at your place :)` to `en` (391ms)
    ✓ should detect `Qu'est-ce que vous faites?` to `en` (368ms)
    ✓ should detect `.` to `ko` (353ms)
    ✓ should detect `` to `ko` (593ms)

npx envinfo --preset jest
  System:
    OS: macOS 10.14.3
    CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
  Binaries:
    Node: 10.15.1 - ~/.nvm/versions/node/v10.15.1/bin/node
    npm: 6.8.0 - ~/.nvm/versions/node/v10.15.1/bin/npm
  npmPackages:
    jest: ^23.6.0 => 23.6.0

Try running the command like this:
 npm test -- -t="needsCheckInOrOut"
As it is stated on the documentation:

Using with npm scripts
If you run Jest via npm test, you can still use the command line arguments by inserting a -- between npm test and the Jest arguments.

Closing this issue as Luanf's answer works.


UIViewAlertForUnsatisfiableConstraints

Hi there, I tried your demo, it works fine but I received UIViewAlertForUnsatisfiableConstraints, even on your demo project. May I ask how do I solve it?

Closed as dupicate.


batteryRead doesn't set hardwareData.battery to 0 if hardware not detected

.batteryVoltage is set to 0 early in setup(). If lc.read() fails, it will still be at 0. Same holds true with the software detection routine.


#1314 admin/additonal legal experience

Author checklist

[ ] Include primary ticket number in title - e.g. "#123 New styling for widget" - and any additional tickets in description
[ ] Fill in the details below and delete as appropriate
[ ] Be proactive in getting your work approved 💪

What's included?
Additional options to allow candidates to add details of judicial undertakings under PQE
How to test?

Find an 'legal' exercise

Make an application to this exercise
When selecting 'The carrying-out of judicial functions of any court or tribunal' under 'Post-qualification experience', you should be given a options to input additional info relating to judicial functions

Who should test?
✅ Product owner
✅ Developers
✅ UTG
Risk - how likely is this to impact other areas?
🟠 Medium risk - this does change code that is shared with other areas

PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

Hey Maria, i've addressed the changes you've requested although i'm not sure about removing the info as in building this out i found it was a little easy to accidentally untick, which might frustrate users if it clears their entered info

Hey Maria, i've addressed the changes you've requested although i'm not sure about removing the info as in building this out i found it was a little easy to accidentally untick, which might frustrate users if it clears their entered info

@tomlovesgithub Hi Tom, yes you are right, but that's why we should clear data from the database when they click 'Save and Continue'.

The entered data doesn't show on Review page.
When I select 'The carrying-out of judicial functions of any court or tribunal' option, enter values and then de-select this option, the values are still saved in the database.

I can no longer replicate either of these issues, could you check it out and see if its fixed?

@tomlovesgithub I've tested again, data for the JO section still stays in the database if clicked 'No', consequently it is displayed on Admin side. I've also noticed that this form is shown on 'Gaps in employment' page but it doesn't save the data in the database.

@tomlovesgithub  For headings, the choice to start each word with an uppercase letter or not is not consistent. Hardly a show-stopper I know, but thought I would notice it:

If you tick the box so that the new form appears but then leave the form blank the system lets to save it like that. It seems to me that perhaps these fields should become mandatory if they are visible or something.

CLicking on The carrying-out of judicial functions of any court or tribunal doesn't ask me to fill extra information. I am using the URL from this PR: https://jac-apply-develop--pr780-1314-admin-additona-sxg2bfsf.web.app/apply/1aYeZX2b7ZF8YICnxwDl/post-qualification-work-experience

It might also be worth adding a note to the end date in case the user is still engaged in the activity and allowing them to leave it blank, but not sure if that is relevant.

@HalcyonJAC
Hi, thanks for the diligent review.

I'm a bit foggy on the exact uses of the data we are collecting but have presented the form to admins and collected feedback; this current version reflects their requests for fields being moved/removed. So as a far as the Date fields i believe this is what's required, but hopefully feedback from YTG will be comprehensive if their are additions/redundancies in the form.
I could have sorely used a <DateRange> or similar component, and think creating one with the logical limitations you've outlined would be useful across the platform, and i had considered it, but deemed it out of scope. I'd be happy to use this as an excuse to get one going however, i think it might be best to park it as a separate issue for now. Happy for a challenge on this
It appears the previously deployed version didn't have the latest changes, should be updated now!

Thanks @tomlovesgithub - all approved 👍

@tomlovesgithub can you please fix tests

This has been sent to UTG today after most recent changes were made.


edited recolor option to true

The boolean "recolor" by default is set to "false" which made the recoloring of all 4 Catppuccin flavors not work. By simply adding the 1 line: set recolor true, the recoloring worked once again.
Thanks for your work on this!
This is also my first PR, so I might've done something wrong, please let me know!

Duplicate of #7

Duplicate of #7

Oh that's my bad for not checking!
Closing this now.


Enhancement: Multiple Dall-e 3 generations per message

What features would you like to see added?
Having multiple Dall-e 3 images generated per message.
More details
In online communities, one of the major complaints about ChatGpt and Dall-e 3 is that the number of generated images per message has dropped from 4 to 1. This has been a major disappointment for many people (some examples 1, 2, 3, 4, 5).
As far as I can tell, there is currently no way to go back to how the things were before. The current replacements are:

Midjourney: even if we agree that Midjourney has the same level of prompt understanding like Dall-e, its interface does not allow it to be embedded in conversations with chat bots.
Bing chat: Bing chat does not have the 1 (or 2) images per message constraint. It is also powered by ChatGpt and Dall-e 3. The problem is that there is no way to find and continue previous chats in Bing; also, typically, people are limited to 5 messages per conversation.
Stable diffusion (and other similar models): prompt comprehension is vastly inferior to Dall-e 3. Also, the ecosystem around it is complex and rapidly changing; in other words, it doesn't just work.

Implementing the similar functionality in Librechat will not only solve all these issues, but for people who pay for the API, can significantly reduce the wait time process (less throttling for API users).
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct

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

Looking at the implementation details, I see that the Dall-e.js should use structured Langchain tools; which is not the hardest part. The more complex part is dealing with the front-end view as the current abstraction (Md based view) does not simply support it.

This is planned with the Assistants API integration, and I've already experimented with this and it's very possible. LibreChat will be able to generate 10 images in the time it takes ChatGPT to generate one:

current progress on this here: https://x.com/lgtm_hbu/status/1749865914315530361?s=20

@danny-avila if you have the code for the current progress somewhere, please share it. I (and I bet other people) can contribute to this issue now and we don't want to redo what you've already done (thanks btw).

@MoezGholami
Here it is:
https://github.com/danny-avila/LibreChat/tree/assistants
https://github.com/danny-avila/LibreChat/pull/1696

Closed by https://github.com/danny-avila/LibreChat/pull/1696


Scripts for flashing binaries

Hello,
I was wondering where the scripts for flashing binaries to the Sparkfun Edge have gone after all Sparkfun Edge-related code and examples have been moved to this repo. In particular, I'm talking about the Python scripts mentioned in steps 4 and 6 of this old tutorial.
When TFLite micro was still included in the main TF repo, such scripts where located under tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts, but now I can't find them anywhere. Where to find them then? Or has the way we deploy binaries to the Sparkfun Edge changed by any chance?

Same problem. Did you find out the solution?

Not yet unfortunately 😐

check my steps
https://github.com/advaitjain/tflite-micro-sparkfun-edge-examples/issues/63#issuecomment-2423936477


Chapter1 homework 3

Pull request from Visual Studio. Worked ?

I've done that thing recommended with remotes/orgin/etc... fetch.. can you please recheck?


We are now in the future, no need to import it

more removal of python2 code

Codecov Report

Merging #655 into master will decrease coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #655     +/-   ##
=========================================
- Coverage   72.01%   71.92%   -0.1%
=========================================
  Files          49       49
  Lines       15910    15837     -73
=========================================
- Hits        11458    11391     -67
+ Misses       4452     4446      -6

Impacted Files
Coverage Δ

androguard/cli/entry_points.py
87.57% <ø> (-0.07%)
:arrow_down:

androguard/decompiler/dad/instruction.py
88.38% <ø> (-0.02%)
:arrow_down:

androguard/core/bytecodes/dvm.py
62.19% <ø> (-0.05%)
:arrow_down:

androguard/decompiler/dad/dataflow.py
98.69% <ø> (-0.01%)
:arrow_down:

androguard/core/bytecodes/mutf8.py
88.46% <ø> (+4.59%)
:arrow_up:

androguard/core/bytecodes/apk.py
63.16% <ø> (-0.16%)
:arrow_down:

androguard/core/bytecode.py
43.01% <ø> (-0.51%)
:arrow_down:

tests/test_dexcodeparsing.py
90.9% <ø> (-0.4%)
:arrow_down:

tests/parse_dex.py
97.7% <ø> (-0.03%)
:arrow_down:

androguard/decompiler/dad/dast.py
12.65% <ø> (-1.04%)
:arrow_down:

... and 12 more

Continue to review full report at Codecov.

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


Don’t use ${{ }} syntax in the run section

https://github.blog/2023-08-09-four-tips-to-keep-your-github-actions-workflows-secure/#1-dont-use-syntax-in-the-run-section-to-avoid-unexpected-substitution-behavior

The affected files have moved:

https://github.com/epiverse-trace/epiverse-trace.github.io/blob/main/.github/workflows/lint-changed-quarto.yaml
https://github.com/epiverse-trace/blueprints/blob/main/.github/workflows/lint-changed-quarto.yaml


JSON link for auto install the library

hi, very nice project.
Is it able to giving the json link for auto library installation with Arduino ?
we could fork and json, but every of your update of pull request would have to pointing back to this master tree.

Hi Xiaolaba,
i can't find how to do It, I know that if you want add a library on library manager of Arduino IDE you must present a request here
https://github.com/arduino/Arduino/issues
but I try to find another solution if there is a method to do that without present subscription.
Bye Renzo

I try to do the request, vote It
https://github.com/arduino/Arduino/issues/10505
Bye Renzo

hello Renzo.
thx for the reply. It is likely the way to add library by the official support, and more there is another way to make "private resipotry" open wide and easy for user installation and auto updated once you have push an update version. I had learned that one time, a bit trivial but it is capable, feel free to try https://github.com/xiaolaba/picoCore
in case you are instresting to try one by yourself, would be my pleasure to tell some detail learned from other pinoneers.

Hi Xiaolaba,
I think that system is only for boards, not for library, Isn't Is?
Thanks Renzo

hi Renzo, I did not fork/build for any library before, I would try to fork this one and tell the result if you do not mind. thx

Closed for inactivity.


Import packge.json (using esm)

Do you want to request a feature or report a bug?
This is a bug report
What is the current behavior?
using oclif with esm and need to import package.json
running the command: oclif manifest and here's the output error:
mycli: Module
    "file:///path/package.json" needs an import
    assertion of type "json"
    Code: ERR_IMPORT_ASSERTION_TYPE_MISSING

but after following the instruction and import packge.json like this:
import pkg from '../package.json' assert { type: 'json' };

then I've got a warning:
ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
OS: Ubuntu 22.04.1 LTS x86_64
@oclif/core: 1.13.10

Hi @vashian, I don't think this issue is related to oclif but feel free to re-open this issue if I'm incorrect.
Both the error and the warning you're describing come directly from nodejs. Which version of nodejs are you using? Node didn't start supporting importing JSON files as modules until version 17.1.0.
See (these docs](https://nodejs.org/docs/latest-v19.x/api/esm.html#json-modules) for more info about the warning.


Added image transformation to the model

I omitted stuff for training in the transform BTW, that for inferecing ATM

Yea that should be fine, only targeting inference for now.
I'll merge this for now just so that all the code is in one place.


detect-non-literal-fs-filename matches inconsistently

detect-non-literal-fs-filename matches all instances of id.open(nonLiteral), but this function name is used for more than the fs module.
On the other hand, when open is imported directly from fs as so:
import { open } from "fs"

the rule fails to fire.

I also noticed that detect-non-literal-fs-filename only works in a few special cases and therefore decided to rewrite that rule.
It's completely work-in-progress right now, but there's a branch in my fork: https://github.com/BuZZ-T/eslint-plugin-security/tree/feature/extend-detect-non-literal-fs-filename.
I'll inform once it's in a PR-ready-state :)

I believe this issue has been fixed in the latest version.
https://github.com/eslint-community/eslint-plugin-security/releases/tag/v1.6.0


Cannot dlopen some GPU libraries - Tensorflow2.0

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):  (using pip install tensorflow-gpu)
TensorFlow version: 2.0
Python version: 3.6.9
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 10.0
GPU model and memory: V100 , memory_limit:<PHONE_NUMBER>4

Describe the problem
I am using tensorflow2.0. The version of cuda installed on my system is cuda 10.0.
I installed tensorflow-gpu. My machine has a gpu-device available and I am trying to get tensorflow-gpu to work.
Provide the exact sequence of commands / steps that you executed before running into the problem
import tensorflow as tf
tf.test.is_gpu_available()
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Output:
2019-11-14 22:27:38.319853: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-11-14 22:27:38.327036: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-11-14 22:27:38.328593: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x560728b482f0 executing computations on platform Host. Devices:
2019-11-14 22:27:38.328624: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Host, Default Version
2019-11-14 22:27:38.330948: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2019-11-14 22:27:40.529184: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x560728c428e0 executing computations on platform CUDA. Devices:
2019-11-14 22:27:40.529229: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Tesla V100-PCIE-16GB, Compute Capability 7.0
2019-11-14 22:27:40.529242: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (1): Tesla V100-PCIE-16GB, Compute Capability 7.0
2019-11-14 22:27:40.531923: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: Tesla V100-PCIE-16GB major: 7 minor: 0 memoryClockRate(GHz): 1.38
pciBusID: 0000:86:00.0
2019-11-14 22:27:40.532794: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 1 with properties:
name: Tesla V100-PCIE-16GB major: 7 minor: 0 memoryClockRate(GHz): 1.38
pciBusID: 0000:d8:00.0
2019-11-14 22:27:40.532945: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533020: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcublas.so.10.0'; dlerror: libcublas.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533090: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcufft.so.10.0'; dlerror: libcufft.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533159: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcurand.so.10.0'; dlerror: libcurand.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533228: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusolver.so.10.0'; dlerror: libcusolver.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533294: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusparse.so.10.0'; dlerror: libcusparse.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533364: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/singularity/3.2.0/libexec:/usr/local/singularity/3.2.0/lib:/usr/local/squashfs/<IP_ADDRESS>/lib64:/usr/local/torque-releases/torque-6.1.2-el7/lib:/.singularity.d/libs
2019-11-14 22:27:40.533381: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1641] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2019-11-14 22:27:40.533434: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-11-14 22:27:40.533451: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165]      0 1
2019-11-14 22:27:40.533463: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0:   N Y
2019-11-14 22:27:40.533474: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 1:   Y N
False

@shahdev ,
Hi when tried from my end i was able to run the code without any issues for CUDA 10.0, kindly find the gist of colab.Thanks!

You need to add cuda, cudnn, cupti to the environment path.
See https://www.tensorflow.org/install/gpu#linux_setup

@shahdev ,
Any update on the issue ?Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

Ubuntu 18.04
Tensorflow 2.1 GPU supported
TensorRT 6.0
CUDA 10.2
Cudnn 7.6.5
This is what I got :
Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2020-04-06 10:30:18.954700: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1096] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-04-06 10:30:18.954795: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102]      0
2020-04-06 10:30:18.955863: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] 0:   N
Killed

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
TensorFlow installed from (source or binary): using pip install tensorflow-gpu
TensorFlow version: 2.1
Python version: 3.7.6
Installed using virtualenv? pip? conda?: pip
2020-04-07 17:04:42.405702: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1592] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2020-04-07 17:04:42.517234: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1096] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-04-07 17:04:42.522151: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102]      0
2020-04-07 17:04:42.525055: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] 0:   N
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation:<PHONE_NUMBER>413389584
]

Tried to re-install the packages and this error shows up :
Can't identify the cuda device. Running on device 0 Segmentation fault (core dumped)

@shahdev if you have tensorflow 2.0 and cuda 10.0, you don't need to install  tensorflow-gpu. Check the tables here. Maybe this is the reason for your error?
I have the same error with tensorflow 2.1 and  cuda 10.2 (I am trying to get cuda 10.1 as suggested in the above link).

You need to add cuda, cudnn, cupti to the environment path. See https://www.tensorflow.org/install/gpu#linux_setup

There is nothing about path on that page

Thanks @ymodak
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Don't forget to adapt python version to yours in above command.

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

Your solution worked like a charm! Tested it on several computers and several GPUs including RTX 2060, RTX 3050, RTX 4060, RTX 4090, and RTX 3090.

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

Think so much, it helps me solve the problem! Excellent Work!!!!

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

Thank you so much, your solution helps me solve the problem! Excellent Work!!!!

For those coming to this and not finding solutions. Use conda packages instead of pip. I completely removed the previous environment and restarted with conda for eveything. Refer to this link - https://stackoverflow.com/questions/59529804/nvidia-cudatoolkit-vs-conda-cudatoolkit

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

I looked for so long to get cuda working with tensorflow. This saved me! Thanks so much

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

It works. Thank you!

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

Thank you. I'm using miniconda and it's work. I add path like this
export CUDNN_PATH="$HOME/miniconda3/envs/tfgpu_2.16.1/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
export PATH="$PATH":"/usr/local/cuda/bin"
In my case, I use "conda create -n tfgpu_2.16.1 python=3.10.12 -y" to create python environment

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

This works for me.
GPU RTX 4050

There is nothing about path on that page

@jbrepogmailcom there is, but it's hidden in the WSL 2 command. Although you don't need Conda to make it working, but you need to add it to your environment by yourself.
Thanks @ymodak
e.g. nano $HOME/.bashrc
export CUDNN_PATH="$HOME/.local/lib/python3.10/site-packages/nvidia/cudnn"
export LD_LIBRARY_PATH="$CUDNN_PATH/lib":"/usr/local/cuda/lib64"
# ...
export PATH="$PATH":"/usr/local/cuda/bin"

Given that /usr/local/cuda points to your actual cuda installation like /usr/local/cuda-11.8. Don't forget to adapt python version to yours in above command.

Is there any good reason why is this solution not officially mentioned in here

Same Warning on Ubunt22.04, python3.10, miniconda3, tensorflow 2.16.2
$ pip install tensorrt
$ echo $LD_LIBRARY_PATH
/home/rkuo/miniconda3/lib/python3.10/site-packages/tensorrt_libs:/usr/local/cuda/lib64:
W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT


Container components links are broken

Please complete the information below:
Where is the problem?
In the third page of the guide Integrating Data with React Native, there are 2 links pointing to (http://makeitopen.com/#containercomponents) which is a broken link, it does not exists.
I guess if they mean to link to:

<EMAIL_ADDRESS>http://redux.js.org/docs/basics/UsageWithReact.html#container-components
https://egghead.io/lessons/javascript-redux-extracting-container-components-filterlink?series=getting-started-with-redux

What is the problem?
Container components links are broken

Please don't change anything below this point.

Page requested: /tutorials/building-the-f8-app/data/
Page requested at: Wed Apr 13 17:45:47 2016
Doc: Integrating Data with React Native

I can submit a PR to correct both links!
PD: Thanks for the guide, extremely useful and informative!

Thanks, seems that Jekyll didn't like the in-page anchor link!


Failed Publish KSM

At task 1
I am failed Publish KSM and not show at alaya.network scan.
first 100KSM from KSM test coins.
this is a second publish KSM test
https://devnetscan.alaya.network/address-detail?address=atp1kpp5gkwqps88auff5hlg50jufxzcwqrv58l22e
my address KSM test coins : 5FCQ9sLESvkcbXMAuKv47SCLe3uRzLGefh4WoFfjiqCbujJF
my address ATP test coins : atp1kpp5gkwqps88auff5hlg50jufxzcwqrv58l22e

balance less than 100, thats show loss 81 KSM at first test.
maybe that can be checked for future.
myPCX mainnet address: 5QeQiaJ1qFVNUXSKB2NutWeFSH72Q9P7WDSVDJ9tYmSDJ6mT
myATP address: atp1nq2hvnqsakcz5rrjajcah6fp7ucq3eyhn663xt

Thank you for your feedback. We checked that when you sent the transaction, the Alaya network was congested for a period of time, which led to a successful release but did not receive the account. Now we have successfully resumed your distribution transaction. I am sorry to have caused you any trouble.


chore: remove comment out code

Removed code that seems to be for debugging.

Coverage remained the same at 95.946% when pulling ed99d10b73edfc13e1979ca9eca69d7f7da6d092 on numb86:patch-1 into fe3d2f3e93c6b8aa77fcaf5644aec381f8cfb213 on power-assert-js:master.

@numb86 Thanks, that line is only for debugging purpose, so safe to delete.
However I have to investigate failing test first. 🤔
Please wait a while.

OK. Thanks!


include OEP-tag decarbonisation pathway

Description of the issue
This comes from #33. The model factsheets use tags which should be represented in the ontology.
Ideas of solution
The tag decarbonisation pathway is used by models 27, 31, 40 and 68
I found this definition (source): A pathway is a transformational process that delivers long-term emissions reductions and sustainable development in collaboration with local communities, businesses and other key actors. It starts with a government’s long-term greenhouse gas emissions reduction goal and then works backwards to identify the technologies, infrastructure and investments that will be required to achieve it.
Workflow checklist

[ ] I discussed the issue with someone else than me before working on a solution
[ ] I already read the latest version of the workflow for this repository
[ ] The goal of this ontology is clear to me

I am aware that

[ ] every entry in the ontology should have a definition
[ ] classes should arise from concepts rather than from words

I like this description. However it is a bit long for using it as definition.

Indeed it is. A suitable parent class is transformative measure (A transformative measure is a process that is an activity that has a direct impact on a specific variable in question.), which already covers large parts of the definition (especially with the connection to policy instrument which is currently discussed in #444 ).
That way, we could exclude the second sentence and only use the first one:
A decarbonisation pathway is a transformative measure that delivers long-term emissions reductions and sustainable development in collaboration with local communities, businesses and other key actors.

I think, a decarbonisation pathway is something different than a transformative measure.  I would see a decarbonisation pathway more as more specific type of the very general policy (defined as: A policy is a specifically dependent continuant that is a deliberate system of principles, rules and guidelines, adopted by an organisation to guide decision making with respect to particular situations and implemented to achieve stated goals.)
So what about: A decarbonisation pathway is a policy that aims at long-term emissions reductions.
@han-f : What do you think?

Hm. I am not sure about the decarbonisation pathway and whether this is actually a policy in every case. Couldn't a decarbonisation pathway also be seen a constraint to some models (e.g. an economic model) under which it has to operate?
And this constraint could for example

be a constraint provided simply for research purposes and to explore how different decarbonisation pathways impact model results,

specify a trajectory to the model so that it arrives at some specified end-point (e.g. -95 % GHG emissions compared to 1990), and where only the endpoint may be specified by a policy?

or something else?

I've checked on the OEP and I've found no data set that uses the tag decarbonisation pathway. So I propose that we simply delete the tag and therefore not define decarbonisation pathway in the OEO.
But can someone please check again on the OEP, maybe I am missed something.

So we want a policy and a model constraint. What about:

A decarbonisation pathway is a policy that aims at long-term emissions reductions. (My proposal above.)
An emission constraint is a constraint that limits the emissions of a scenario time series. Alternative term: decarbonisation pathway.

I got one thumbs-up from @han-f,
@stap-m: Do you agree, too?

Thumbs up for 'decarbonisation pathway'.
For emission constraint I'd change the def like this: An emission constraint is a constraint that determines the emissions a model calculation describes.


No status field after add this plugin

Hi,
After I added this plugin by the following command:

meteor add mizzao:user-status

And I tested, It seem doesn't work. And I checked the user object, there is no "status" field or "status.online" field.
My questions are:

Do I need to manually add field to users collection after added this plugin?
Do this plugin works on local (just development machine) or need upload to server?

Unless this is a recent issue with Meteor 1.3, you're probably using it wrong. I encourage you to check out the demo app (in the repo) and test it out there.

I have this issue as well using Meteor <IP_ADDRESS>. added the package and nothing seems to be updating in the user object. I tried UserStatus.events.on("connectionLogin", function(fields) { console.log('fields', fields) }) on the server just to make sure it was installed and it worked just fine.


Logback capture

This commit stream primarily introduces a new test utility, ConsoleAppenderCapture, intended to aid testing of classes/utilities that rely on the Logback ConsoleAppender to manage  output to System.out and System.err.
The commit stream also includes a minor POM repair to terracotta-utilities-port-chooser to prevent the loss of test output.

After merging this commit, I'll want to release a new version,

Note: when tetsing some tools like config tool, cluster tool, etc, if they are testing with verbose mode and in the same jvm of the test, they will change the internal logback config programmatically.
Example: https://github.com/Terracotta-OSS/terracotta-platform/blob/98381037a8852f50cb1f2f141d77956580b788db/dynamic-config/cli/cli-support/src/main/java/org/terracotta/dynamic_config/cli/command/LocalMainCommand.java#L35-L50

Note: when tetsing some tools like config tool, cluster tool, etc, if they are testing with verbose mode and in the same jvm of the test, they will change the internal logback config programmatically.

Right now, I don't believe any of our tests are examining output of a VERBOSE execution ... (I have a version of this operating elsewhere).  But, the example you show doesn't actually add a ConsoleAppender -- it's changing the encoder and level of an existing one -- so the utility should still support capture in this case.
However, if some method were to dynamically add a ConsoleAppender, this ConsoleAppenderCapture would not be aware of it.  There is an event mechanism within Logback that covers a few events (context start/stop/reset and logger level change) and another that covers error conditions but nothing that announces appender/encoder addition/removals -- if this is done, we're left out.

The only appender involved here is the ListAppender -- no I/O.  Even if it were something like the FileAppender, any I/O errors raised are captured and presented to the StatusAppender that can be observed by a StatusListener or directly through the StatusManager.  No exception is thrown.


TST: stats: add mpmath distribution

Distribution class for creating tests and benchmarks.

Forgot to say, I suppose this could be used in the work towards hypothesis testing? Did you have this in mind as well here?


addEventListener does not work with jQuery objects

This change removed the support for passing jQuery objects to addEventListener (see here for the current state of the file addon/mixins/dom.js). I'm not sure if that was intentional as the documentation still says that they should work.
So either the documentation should be updated or the support for jQuery objects should be added back to the addon. I don't mind fixing either of these but I just wanted to make sure what the intention was before I started the work.

Thanks for reporting! We do not intend to do anything with jQuery so we should update the docs to match the behavior.

Fixed by #57


Looking for a producer-consumer pattern or an example

Hello!
I am looking for a usage pattern that allows me to send messages over a websocket pushed by a producer running on a separate thread.
The producer pushes the messages at arbitrary point in time and because I cannot mix the threads, I cannot call ws->send/publish from the producer's callback (which is running on the producer's thread).
The question is how otherwise to call ws->send/publish on an external event?
Worth to mention my protocol does not assume the client is sending a request and I am responding with a message. In my design, the client wants to simply connect using ws and the server would periodically push messages.
Thank you in advance for any hints or suggestions.

So your real question is how to do inter-process communication, look up unix sockets IPC. This is not an issue, you should have opened in discussion for noobie help https://github.com/uNetworking/uWebSockets/discussions

https://github.com/uNetworking/uWebSockets/blob/master/misc/READMORE.md#threading


Can you provide the code for Spatial-temporal feature extraction?

The Spatial-temporal feature extraction is not provided in your project.

First, the preprocess is the same as: https://github.com/IBM/seizure-type-classification-tuh
Second, this https://github.com/ICLab4DL/GGN/blob/main/eeg_main.py contains the feature composition steps (line 543). You just set args.task == 'generate_data', check the function: generate_tuh_data, you can set a proper time length or default.

Details refer to the suplementary:
https://static-content.springer.com/esm/art%3A10.1038%2Fs41598-022-23656-1/MediaObjects/41598_2022_23656_MOESM1_ESM.pdf


IBM Planning Analytics Pictogram Approval

1. Team name: IBM Planning Analytics
2. Icon name: IBM Planning Analytics icon
3. Please briefly describe what the icon is supposed to represent and the use case(s) its being used for. This will be used in association with the IBM Planning Analytics product, and is meant to represent collaboration and leveraging data to see the full picture of your organization.
4. Box Link: https://ibm.box.com/s/a8bonrkptv7aov7k4nosogpuidhkzkn7
Add in a box link (or other cloud) link to your completed Icon Contribution Template sketch file. Please make sure the permissions are set so anyone can view the icon.
5. Screen Shot
Please add the following screen shots to this issue:

Close-up screen shot of the icon with the pixel grid turned on
Screen shot of the icon in context with your use case.

Hi 👋 this repo is for legacy icons - Could you re-enter this to https://github.com/carbon-design-system/carbon instead? Thanks!

Thanks @asudoh  - do I copy and paste the same info? I don't see a template for a new issue in your link. Thanks!

I think you can copy/paste, but if you'd like, you can choose a template at: https://github.com/carbon-design-system/carbon/issues/new/choose


parse ImageProcessItem Data to raw value

Hi, i am working with SVG
i read about cheat sheet and found this
func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> UIImage? {
     switch item {
     case .image(let image):
         print("already an image")
         return image
     case .data(let data):

     }
 }

i want to ask, is it possible to parse data to svg raw value...
i tried to parse using
data.base64EncodedString()
it's not raw svg content
Thank you in advance

I am not familiar with SVG file. However, if you can find a way to convert your SVG file between Data and UIImage/NSImage, you could implement an ImageProcessor and a CacheSerializer pass it to Kingfisher's manager as an option, then Kingfisher could handle downloading/caching for it.

I used PocketSVG + Kingfisher.
First of all i implemented the ImageProcessor like this:
struct SVGProcessor: ImageProcessor {
    // `identifier` should be the same for processors with same properties/functionality
    // It will be used when storing and retrieving the image to/from cache.
    let identifier = "my.app.svg"

    // Convert input data/image to target image and return it.
    func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? {
        switch item {
        case .image(let image):
            //already an image
            return image
        case .data(let data):
            let frame = CGRect(x: 0, y: 0, width: 250, height: 250)
            let svgLayer = SVGLayer(svgSource: String(data: data, encoding: .utf8)!)
            svgLayer.frame = frame
            return snapshotImage(for: svgLayer)
        }
    }
}

and i have this extra method to convert a CALayer to UIImage:
func snapshotImage(for layer: CALayer) -> UIImage? {
    UIGraphicsBeginImageContextWithOptions(layer.bounds.size, false, UIScreen.main.scale)
    guard let context = UIGraphicsGetCurrentContext() else { return nil }
    layer.render(in: context)
    let image = UIGraphicsGetImageFromCurrentImageContext()
    UIGraphicsEndImageContext()
    return image
}

Let me know if is ok for you.

@Codeido Thanks for the detail explanation!
And you may also want to implement a CacheSerializer if you need to cache the image instead of downloading it again and again. (But I believe since the svg files are usually really small, this would not be a big impact on user experience.)

@Codeido wow nice...
@onevcat noted, i will implement CacheSerializer
Thank you

Revisited implementation with CacheSerializer
//
//  SVGProcessor.swift
//
//  Created by Paolo Musolino on 21/03/17.
//  Copyright © 2017. All rights reserved.
//

import UIKit
import Kingfisher
import PocketSVG

struct SVGProcessor: ImageProcessor {
    let imgSize: CGSize?

    init(size: CGSize? = CGSize(width:250, height:250)) {
        imgSize = size
    }

    // `identifier` should be the same for processors with same properties/functionality
    // It will be used when storing and retrieving the image to/from cache.
    let identifier = "my.app.svg"

    // Convert input data/image to target image and return it.
    func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image? {
        switch item {
        case .image(let image):
            //already an image
            return image
        case .data(let data):
            return generateSVGImage(data: data, size: imgSize)
        }
    }
}

struct SVGCacheSerializer: CacheSerializer {
    func data(with image: Image, original: Data?) -> Data? {
        return original
    }

    func image(with data: Data, options: KingfisherOptionsInfo?) -> Image? {
        return generateSVGImage(data: data)
    }
}

func generateSVGImage(data: Data, size: CGSize? = CGSize(width:250, height:250)) -> UIImage?{
    let frame = CGRect(x: 0, y: 0, width: size!.width, height: size!.height)
    if let svgString = String(data: data, encoding: .utf8){
        let svgLayer = SVGLayer(svgSource: svgString)
        svgLayer.frame = frame
        return snapshotImage(for: svgLayer)
    }
    return nil
}

func snapshotImage(for layer: CALayer) -> UIImage? {
    UIGraphicsBeginImageContextWithOptions(layer.bounds.size, false, UIScreen.main.scale)
    guard let context = UIGraphicsGetCurrentContext() else { return nil }
    layer.render(in: context)
    let image = UIGraphicsGetImageFromCurrentImageContext()
    UIGraphicsEndImageContext()
    return image
}

how get size of image from data? Or proportions weight/height

or something like Aspect fit for svg layer?

@Codeido my code crashes at this line

Probably the type of SVG file that you are passing to PocketSVG is not supported.

@Codeido how can we handle this crash via try-catch?

Try to open an issue on PocketSVG repo, the crash is not referred to Kingfisher.

@Codeido Ohk

@Codeido Have you used SVGKit instead of PocketSVG?

No, I tried only PockerSVG.

@Codeido Can you help me add SVGKit in ImageProcessor file?

I don't have much time to dedicate, but I think that the integration process can be the same of PocketSVG.
Everything you need is in the documentation files (Kingfisher and SVGKit).

@vaibhav-varshaaweblabs  :  SVGKit in ImageProcessor solution 👍
In struct WebpProcessor: ImageProcessor
//Convert input data/image to target image and return it
case .data(let data):                 let imageSVG : SVGKImage = SVGKImage(data: data)                     return imageSVG.uiImage             }
// Then pass it to the setImage methods:
let processor = WebpProcessor() let url = URL(string: "https://yourdomain.com/example.webp") imageView.kf.setImage(with: url, options: [.processor(processor)])

The imageSVG version works fine some of the time but when trying to load multiple images concurrently it crashes hard.

Argument labels '(svgSource:)' do not match any available overloads

For anyone else uses @pmusolino 's code:
It seems that SVGLayer(svgSource: svgString) is not available now,
but we can set its paths after initialization.
And to keep the image proportion, there is a function called SVGBoundingRectForPaths.
static func generateSVGImage(data: Data, width: CGFloat = 250) -> UIImage? {
    if let svgString = String(data: data, encoding: .utf8) {
        let svgLayer = SVGLayer()
        svgLayer.paths = SVGBezierPath.paths(fromSVGString: svgString)
        let originRect = SVGBoundingRectForPaths(svgLayer.paths)
        svgLayer.frame = CGRect(x: 0, y: 0, width: width, height: width * originRect.height / originRect.width)
        return snapshotImage(for: svgLayer)
    }
    return nil
}

@wmadao11  Didn't know about SVGBoundingRectForPaths. Thank you, you saved my day! ❤


rustc: 1.66.1 -> 1.67.0

Description of changes
https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html
built fd on master on {aarch64,x86_64}-{linux,darwin}

Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[x] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

https://github.com/NixOS/nixpkgs/blob/2d449e846ab662913b79e351e70546bf94857232/pkgs/development/compilers/rust/1_67.nix#L10
These won't build on master with 1.67.0, dump_syms build failure?

Got logs, @zowoq? (How long does it take to bail out, anyways?)

   Compiling dump_syms v2.1.1 (/build/source)
error: failed to parse bitcode for LTO module: Explicit gep type does not match pointee type of pointer operand (Producer: 'LLVM14.0.6' Reader: 'LLVM 14.0.6')

error: could not compile `reqwest` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `dump_syms` due to previous error

it doesn't take long to bail out if you build dump_syms directly

I can reproduce this outside of nix sandbox with cargo build --release in the dump_syms repo

some searching lead me to https://github.com/rust-lang/rust/issues/100474
this might require llvm 15, I can't reproduce this error with binarily distributed rust 1.67.0 with fenix (updated locally, not upstream yet) that has llvm 15
not sure if there is a good way to fix this other than waiting for #191132, I have not seen a dump_syms issue which suggests that this update could break other packages as well

cc @mweinelt dump_syms / firefox

I can confirm working firefox build on 1.67+llvm15(#191132).

We should probably switch to LLVM 15 (which is what upstream uses) now anyways, so let's just do it.

Please make sure both go into the same staging cycle, as otherwise firefox will rightfully block the channel.

Please make sure both go into the same staging cycle, as otherwise firefox will rightfully block the channel.

(I don't see why we shouldn't just put them both in this PR, unless you think otherwise?)

I have no strong feelings about how to handle the two, feel free to do what works best for you.

I don't see why we shouldn't just put them both in this PR

Did you mean including the llvm update in this PR, or switching to llvm 15 in this PR once it has been added. I am thinking that we do the latter instead

I don't see why we shouldn't just put them both in this PR

Did you mean including the llvm update in this PR, or switching to llvm 15 in this PR once it has been added. I am thinking that we do the latter instead

Sorry, was under the impression that we landed the bump already. What I meant was the latter, yup.
I think we should mark this as draft until the bump has landed in staging, which should be very soon judging by the recent discussions over there.

rebased and updated to llvm 15, trying to build dump_syms

Bisect says 63f869f5ff10b570fcf3a0d002a7aa25938f6f9f rustc: 1.66.1 -> 1.67.0 broke mesa build as:
mesa> FAILED: src/gallium/frontends/rusticl/libmesa_rust_gen.rlib
mesa> rustc -C linker=gcc --color=always --crate-type rlib --edition=2021 -g -C relocation-model=pic --crate-name mesa_rust_gen --emit dep-info=src/gallium/frontends/rusticl/mesa_rust_gen.d --emit link -Aclippy::all -Anon_snake_case -Anon_camel_case_types -Anon_upper_case_globals -o src/gallium/frontends/rusticl/libmesa_rust_gen.rlib -l static=gallium -l static=libclc -l dylib=drm -L/nix/store/b1wsi4cgaa8z2shavljy6b2xgv0ry4f8-llvm-15.0.7-lib/lib -l dylib=LLVM-15 -l dylib=m -l dylib=z -l dylib=clang-cpp -L/nix/store/b1wsi4cgaa8z2shavljy6b2xgv0ry4f8-llvm-15.0.7-lib/lib -l dylib=LLVM-15 -l dylib=LLVMSPIRVLib -l dylib=z -l dylib=m -L src/gallium/auxiliary -L src/compiler/clc -L /nix/store/fi50i5ylcyivbhhycsaz3jrxlr7zqm5v-libdrm-2.4.114/lib -L /nix/store/h5cq2sbsmhlpl2apg4dw4hvksrg8adwx-zlib-1.2.13/lib -L /nix/store/ingcnm6snwasnis754fxdfnmfa0fl80p-clang-15.0.7-lib/lib -L /nix/store/94hkq499qbg2zhks6y9zd8z3m32h3smb-SPIRV-LLVM-Translator-15.0.0/lib src/gallium/frontends/rusticl/rusticl_mesa_bindings.rs
mesa> error: failed to add native library src/gallium/auxiliary/libgallium.a: Unsupported archive identifier
mesa> error: aborting due to previous error

https://github.com/rust-lang/rust/issues/107334 looks related (rust-1.67 regressed in thin static archive handling, fixed in master).

https://github.com/NixOS/nixpkgs/pull/213873


show completion rate

https://github.com/KentaKudo/crypto-gutenberg/commit/3dad237391f72cff0250b01ec7023dbde983d441
https://github.com/KentaKudo/crypto-gutenberg/commit/d5eacf758f65571bb09c59ed7464843cbcda5dc0


Ctrl+F

Can't seem to reproduce but Sielo seems to crash on ctrl+F

It's possible. Did you were using the floating button during the crashed session or the real toolbars?

I was using real toolbars

Thanks, I'll try to fixe it so.

Are you sure you are using the latest public version (1.10.06) or above ? (This can be see in the "About" section)


Use protobuf from maven and remove jars

Enable fdroid flavour again
Please make sure these boxes are checked before submitting your pull request - thanks!

[X] Run the unit tests with gradlew app:connectedGmsDebugAndroidTest to make sure you didn't break anything (with an emulator running or phone connected)

[X] If you have multiple commits please combine them into one commit by squashing them.

Awesome! Thanks.


Fix integer overflows

Fix two integer overflows.

In left_bits, use wrapping arithmetic, as used in the C version. I checked this gives the correct result for 0x8000_0000.

In align_up, there is still a possible overflow if (a + alignment -1) > usize::MAX. I fixed a case where this could happen in sys_alloc. I did a cursory audit of all uses of align_up (transitively through pad_request, mmap_align, request2size) and I believe there is now always an appropriate check before calling align_up.

Thanks for the merge, can you also do a release?

Sure thing, published


fix: resolve attributes function not handling states correctly

Improve hostProperties function, to avoid mixed states (aria-disabled="true" tabindex="0")

Codecov Report

:exclamation: No coverage uploaded for pull request base (lit-migration@40a06ee). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@               Coverage Diff                @@
##             lit-migration    #2064   +/-   ##
================================================
  Coverage                 ?   90.25%
================================================
  Files                    ?      143
  Lines                    ?    17959
  Branches                 ?      792
================================================
  Hits                     ?    16208
  Misses                   ?     1741
  Partials                 ?       10

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


LoadBalancer.HealthCheck blocked by ipWhiteList middleware

Do you want to request a feature or report a bug?
Bug
Did you try using a 1.7.x configuration for the version 2.0?

[ ] Yes
[X] No

What did you do?
Defined loadbalancer.healthcheck labels for a Docker swarm service that's also using an ipwhitelist middleware. Docker service has multiple replicas.
labels:
  - "traefik.enable=true"
  - "traefik.http.middlewares.vo-white-list.ipwhitelist.sourceRange=${VO_IP_WHITELIST}"
  - "traefik.http.middlewares.vo-white-list.ipwhitelist.ipstrategy.depth=1"
  - "traefik.http.services.vo-app-svc.loadbalancer.sticky=true"
  - "traefik.http.services.vo-app-svc.loadbalancer.sticky.cookie.name=VO-${GLOB_ENVIRONMENT}"
  - "traefik.http.services.vo-app-svc.loadbalancer.sticky.cookie.httponly=true"
  - "traefik.http.services.vo-app-svc.loadbalancer.sticky.cookie.secure=true"
  - "traefik.http.services.vo-app-svc.loadbalancer.healthcheck.path=/status.html"
  - "traefik.http.services.vo-app-svc.loadbalancer.healthcheck.interval=15s"
  - "traefik.http.services.vo-app-svc.loadbalancer.healthcheck.port=8080"
  - "traefik.http.services.vo-app-svc.loadbalancer.server.port=8080"
  - "traefik.http.routers.vo-app-rt.middlewares=404-error, vo-white-list, vo-redirect, x-forwarded-proto, x-forwarded-for, upgrade-insecure"
  - "traefik.http.routers.vo-app-rt.service=vo-app-svc@docker"
  - "traefik.http.routers.vo-app-rt.entrypoints=web"
  - "traefik.http.routers.vo-app-rt.rule=Host(`${VO_HOST}`)"

What did you expect to see?
Expected healthcheck service to call replicas at the given path via the backend addresses and not go through Traefik host or middleware logic. Would expect healthchecks to be going directly to the backend IP address for each replicas to determine which stay in the pool.
What did you see instead?
Output from DEBUG log is confusing though as it looks like the X-Forwarded-* headers are coming from the Docker host machine using Host address (<IP_ADDRESS>) but a docker swarm IP address (<IP_ADDRESS>) is the one being evaluated and blocked by ipwhitelist middleware. Redacted host address but modified to correspond with Docker config above.
time="2019-09-06T14:31:51-04:00" level=debug msg="rejecting request &{Method:GET URL:/status.html Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Connection:[Keep-Alive] Request-Context:[appId=cid-v1:66fee92a-feab-4536-bf2d-977852eea634] Request-Id:[|4cd9a05b-48b12445decd0680.1.] X-Forwarded-For:[<IP_ADDRESS>] X-Forwarded-Host:[${VO_HOST}] X-Forwarded-Port:[80] X-Forwarded-Proto:[http] X-Forwarded-Server:[traefik] X-Ms-Request-Id:[|4cd9a05b-48b12445decd0680.1.] X-Ms-Request-Root-Id:[4cd9a05b-48b12445decd0680] X-Real-Ip:[<IP_ADDRESS>]] Body:0xc0008bddc0 GetBody:<nil> ContentLength:0 TransferEncoding:[] Close:false Host:${VO_HOST} Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:<IP_ADDRESS>:13294 RequestURI:/status.html TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc000ac6570}: \"<IP_ADDRESS>\" matched none of the trusted IPs" middlewareName=vo-white-list@docker middlewareType=IPWhiteLister
Output of traefik version: (What version of Traefik are you using?)

Version:      2.0.0-rc1
Codename:     montdor
Go version:   go1.13rc1
Built:        2019-08-26T17:47:29Z
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?
 command:
   - "--providers.docker.network=lb-net"
   - "--providers.docker.exposedByDefault=false"
   - "--providers.docker.swarmMode=true"
   - "--log.level=DEBUG"
   - "--api=true"
   - "--ping=true"
   - "--entrypoints.web.address=:80"
   - "--entrypoints.web.proxyProtocol.insecure=true"
   - "--entrypoints.web.forwardedHeaders.insecure=true"
   - "--global.sendanonymoususage=false"
   - "--accesslog=true"

N/A

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)
See above

Should I be using the following healthcheck label to references all of the Docker service tasks as the healthcheck hostname?
- "traefik.http.services.vo-app-svc.loadbalancer.healthcheck.hostname=tasks.<docker service name>"

This is a non-issue. I forgot to pass the host header. Corrected using the following label on my Docker service:
- "traefik.http.services.vo-app-svc.loadbalancer.passhostheader=true"