Cannot find module 'react-native'

Describe the bug
When building, I am getting Cannot find module 'react-native'.
11:01:33 AM: (@netlify/plugin-nextjs onBuild completed in 621ms)
11:01:33 AM:
11:01:33 AM: ────────────────────────────────────────────────────────────────
11:01:33 AM:   4. Functions bundling
11:01:33 AM: ────────────────────────────────────────────────────────────────
11:01:33 AM:
11:01:34 AM: Packaging Functions from netlify/functions directory:
11:01:34 AM:  - next_image.js
11:01:34 AM:  - next_donate/next_donate.js
11:01:34 AM:  - next_index/next_index.js
11:01:34 AM:  - next_keyword_go/next_keyword_go.js
11:01:34 AM:  - next_news/next_news.js
11:01:34 AM:  - next_news_category_category/next_news_category_category.js
11:01:34 AM:  - next_news_year_month_day_slug/next_news_year_month_day_slug.js
11:01:34 AM:  - next_petitions/next_petitions.js
11:01:34 AM:  - next_petitions_sharecode/next_petitions_sharecode.js
11:01:34 AM:
11:01:53 AM:
11:01:53 AM: ────────────────────────────────────────────────────────────────
11:01:53 AM:   Dependencies installation error
11:01:53 AM: ────────────────────────────────────────────────────────────────
11:01:53 AM:
11:01:53 AM:   Error message
11:01:53 AM:   A Netlify Function failed to require one of its dependencies.
11:01:53 AM:   Please make sure it is present in the site's top-level "package.json".

11:01:53 AM:   In file "/opt/build/repo/packages/site/netlify/functions/next_index/next_index.js"
11:01:53 AM:   Cannot find module 'react-native'
11:01:53 AM:   Require stack:
11:01:53 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/<EMAIL_ADDRESS>11:01:53 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/<EMAIL_ADDRESS>11:01:53 AM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/<EMAIL_ADDRESS>11:01:53 AM:   -<EMAIL_ADDRESS>11:01:53 AM:   -<EMAIL_ADDRESS>11:01:53 AM:   -<EMAIL_ADDRESS>11:01:53 AM:   -<EMAIL_ADDRESS>
To Reproduce
https://app.netlify.com/sites/resistbot-website-ed6e4f/deploys/60bf9343df755e0008b22f0e
Some reference content that very closely matches my issue:

https://github.com/netlify/next-on-netlify/issues/33
https://github.com/netlify/next-on-netlify/issues/157
https://github.com/netlify/next-on-netlify/issues/103

Our repo is private but would gladly give someone collaborator access as needed.
Expected behavior
Not sure what code I use that requires react-native (perhaps conditionally?) but this works locally.  Might be correlated to switching to target: 'experimental-serverless-trace', but that's not clear.
Versions

Next.js: 10.2.3

[[plugins]]
  package = "@netlify/plugin-nextjs"

[[plugins]]
  package = "netlify-plugin-submit-sitemap"

If you're using the CLI to build

Building in the netlify UI

If you're using file-based installation

netlify.toml:

[build]
  command = "yarn build"
  publish = ".next"
  environment = { NETLIFY_USE_YARN = "true", NEXT_IMAGE_ALLOWED_DOMAINS = "cdn.sanity.io", ACTIVE_ENV="staging" }

[context.production]
  environment = { ACTIVE_ENV = "production" }

[[plugins]]
  package = "@netlify/plugin-nextjs"

[[plugins]]
  package = "netlify-plugin-submit-sitemap"

  [plugins.inputs]
  baseUrl = "https://resist.bot"
  sitemapPath = "/sitemap.xml"
  providers = [
    "google",
    "bing",
  ]

[[plugins]]
  package = "@sentry/netlify-build-plugin"

  [plugins.inputs]
    sentryOrg = "<redacted>"
    sentryProject = "<redacted>"

@chris-erickson hey chris! i ran this by some engineers who work on https://github.com/netlify/zip-it-and-ship-it.
suggestions:

can you try adding esbuild to your netlify.toml? per https://docs.netlify.com/configure-builds/file-based-configuration/#functions
if that doesn't work, would you mind giving us a minimal public repo that reproduces the issue? 🙏  we try to avoid private repos when possible for a few reasons. appreciate your understanding!!!

Can I do this even if I'm not specifying any functions manually?  I'm 100% using Next.js routes (no "api functions").  Happy to try this out a bit but I've extricated the third-party React component that had tentacles in RN for whatever reason.
[functions]
  node_bundler = "esbuild"

yes, you can! though the main point of trying it would be to see if it resolves the react-native module error that you reported, so i'd try it out on that version of your site. otherwise we can probably mark this as closed!

I've updated to this, but now am bumping into this problem: https://github.com/netlify/netlify-plugin-nextjs/issues/209
{
  "errorType": "Runtime.ImportModuleError",
  "errorMessage": "Error: Cannot find module '../../chunks/433.js'\nRequire stack:\n- /var/task/netlify/functions/next_petitions_sharecode/next_petitions_sharecode.js\n- /var/task/next_petitions_sharecode.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
  "trace": [
    "Runtime.ImportModuleError: Error: Cannot find module '../../chunks/433.js'",
    "Require stack:",
    "- /var/task/netlify/functions/next_petitions_sharecode/next_petitions_sharecode.js",
    "- /var/task/next_petitions_sharecode.js",
    "- /var/runtime/UserFunction.js",
    "- /var/runtime/index.js",
    "    at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
    "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
    "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
    "    at Module._compile (internal/modules/cjs/loader.js:999:30)",
    "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
    "    at Module.load (internal/modules/cjs/loader.js:863:32)",
    "    at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
    "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
    "    at internal/main/run_main_module.js:17:47"
  ]
}

As one prior error message requested, I added the external modules (for some dynamic imports I use, I suspect):
[functions]
  node_bundler = "esbuild"
  external_node_modules = ["@ampproject/toolbox-optimizer", "next"]

Will consider closed for now, as there's too many moving parts here for me to pursue it, but once the bundler is working perhaps I can come back to it.  Thanks!


Unhandled error in background task: Odd-length string

Describe the bug
After running Hummingbot, as the first message on the log pane, I see the following error.
async_utils - Unhandled error in background task: Odd-length string (See log file for stack trace dump)
Steps to reproduce

Build from source
./start
Observe log pane

Release version
1.24.0
Type of installation
Source
Attach required files
logs_hummingbot.log

Did you manage to solve the problem?

No, I couldn't.

from the log, it is an error reported when parsing the yml configuration file. It may be a configuration problem.

Reproduced when running docker

2024-05-24 06:53:02,742 - 14 - hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: Odd-length string
Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper
    return await c
  File "/home/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 127, in call_async
    return await self.schedule_async_call(coro, timeout_seconds, app_warning_msg=app_warning_msg)
  File "/home/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 116, in schedule_async_call
    return await fut
  File "/home/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 79, in _coro_scheduler
    fut.set_result(await coro)
  File "/opt/conda/envs/hummingbot/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/hummingbot/hummingbot/client/config/security.py", line 65, in decrypt_all
    cls.decrypt_connector_config(file)
  File "/home/hummingbot/hummingbot/client/config/security.py", line 71, in decrypt_connector_config
    cls._secure_configs[connector_name] = load_connector_config_map_from_file(file_path)
  File "/home/hummingbot/hummingbot/client/config/config_helpers.py", line 668, in load_connector_config_map_from_file
    _load_yml_data_into_map(config_data, config_map)
  File "/home/hummingbot/hummingbot/client/config/config_helpers.py", line 750, in _load_yml_data_into_map
    config_validation_errors = cm.validate_model()  # try coercing values to appropriate type
  File "/home/hummingbot/hummingbot/client/config/config_helpers.py", line 199, in validate_model
    self.decrypt_all_secure_data()
  File "/home/hummingbot/hummingbot/client/config/config_helpers.py", line 237, in decrypt_all_secure_data
    decrypted_value = Security.secrets_manager.decrypt_secret_value(attr=traversal_item.attr, value=value)
  File "/home/hummingbot/hummingbot/client/config/config_crypt.py", line 59, in decrypt_secret_value
    value = binascii.unhexlify(value)
binascii.Error: Odd-length string

compose file used:
version: "3.9"
services:
  hummingbot:
    container_name: hummingbot
    # image: hummingbot/hummingbot:latest
    build: # Uncomment this and comment image if you want to build it locally
      context: .
      dockerfile: Dockerfile
    volumes:
      - ./conf:/home/hummingbot/conf
      - ./conf/connectors:/home/hummingbot/conf/connectors
      - ./conf/strategies:/home/hummingbot/conf/strategies
      - ./conf/controllers:/home/hummingbot/conf/controllers
      - ./conf/scripts:/home/hummingbot/conf/scripts
      - ./logs:/home/hummingbot/logs
      - ./data:/home/hummingbot/data
      - ./certs:/home/hummingbot/certs
      - ./scripts:/home/hummingbot/scripts
      - ./controllers:/home/hummingbot/controllers
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "5"
    tty: true
    stdin_open: true
    network_mode: host
    #  environment:
    #    - CONFIG_PASSWORD=a

Steps to reproduce:

Clone hummingbot source (development or latest)
Modify the docker compose file to build local image
Run docker compose up -d then docker attach hummingbot

Same issue here
Installed from source on Ubuntu 22.04.4 LTS
10889 - hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: Odd-length string
Traceback (most recent call last):
File "/home/cjelsa/hummingbot/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper
return await c
File "/home/cjelsa/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 127, in call_async
return await self.schedule_async_call(coro, timeout_seconds, app_warning_msg=app_warning_msg)
File "/home/cjelsa/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 116, in schedule_async_call
return await fut
File "/home/cjelsa/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 79, in _coro_scheduler
fut.set_result(await coro)
File "/home/cjelsa/miniconda3/envs/hummingbot/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/cjelsa/hummingbot/hummingbot/client/config/security.py", line 65, in decrypt_all
cls.decrypt_connector_config(file)
File "/home/cjelsa/hummingbot/hummingbot/client/config/security.py", line 71, in decrypt_connector_config
cls._secure_configs[connector_name] = load_connector_config_map_from_file(file_path)
File "/home/cjelsa/hummingbot/hummingbot/client/config/config_helpers.py", line 668, in load_connector_config_map_from_file
_load_yml_data_into_map(config_data, config_map)
File "/home/cjelsa/hummingbot/hummingbot/client/config/config_helpers.py", line 750, in _load_yml_data_into_map
config_validation_errors = cm.validate_model()  # try coercing values to appropriate type
File "/home/cjelsa/hummingbot/hummingbot/client/config/config_helpers.py", line 199, in validate_model
self.decrypt_all_secure_data()
File "/home/cjelsa/hummingbot/hummingbot/client/config/config_helpers.py", line 237, in decrypt_all_secure_data
decrypted_value = Security.secrets_manager.decrypt_secret_value(attr=traversal_item.attr, value=value)
File "/home/cjelsa/hummingbot/hummingbot/client/config/config_crypt.py", line 59, in decrypt_secret_value
value = binascii.unhexlify(value)
binascii.Error: Odd-length string

In my case, Odd-length issue happens only when I use ./start , not when I start the bot using ./bin/hummingbot.py


Terminal outputs "Unhandled event" when keys are pressed

When I run the app the terminal shows

"Unhandled event w" when "w" is pressed in the 3D viewer.
Can we change this so this is not printed? I noticed this sentence is printed for most keys pressed in the 3D viewer.

When I pressed "q" on the 3D viewer the app stopped responding. Is this something similar to the w behaviour we could avoid?
Originally posted by @DanicaSTFC in https://github.com/TomographicImaging/iDVC/pull/218#pullrequestreview-1822060923

This is a viewer problem. @DanicaSTFC please open an issue there.

Opened issue here https://github.com/vais-ral/CILViewer/issues/376#issue-2118570393


Subqueries do not compose

[x] Bug Request

I can't seem to get the subqueries to "compose".  Tried different combinations of sObject and sObjectRelationshipName but nothing seems to work.
Description
        let x = {
            "fields": [],
            "sObject": "Account",
            "subqueries": [
              {
                "fields": [
                  {
                    "text": "Id"
                  },
                  {
                    "text": "Name"
                  }
                ],
                // "sObject": 'Contacts', //tried with different variations of these two params... nothing works:
                "sObjectRelationshipName": "Contacts",
                "subqueries": []
              }
            ]
        }
        let s = composeQuery(x);

AssertionError: expected 'SELECT  FROM Account' to equal 'SELECT (SELECT Id, Name FROM Contacts) FROM Account'
+ expected - actual
  -SELECT  FROM Account
  +SELECT (SELECT Id, Name FROM Contacts) FROM Account

I was able to work around this by just pushing it to a new field like so:
let subqry = {
  "fields": [{
      "text": "Id"
  }, {
      "text": "Name"
  }],
  "sObject": "Contacts"
  "subqueries": []
}

let parent = {
  "fields": [{
      text: `(${compose(subqry)})`
  }],
  "sObject": "Account",
  "subqueries": []
}```

Not ideal, but it works for now.  I might take a stab at trying to fix it once I get the query generator I'm working on wrapped up)

@ChuckJonas - the way that subqueries are setup is the in the list of fields there is a reference to the subquery child relationship API name, then the actual query should be in the subquery array.
Again, I am open to feedback on this structure.  Maybe it would make more sense to have the subquery directly in the field instead of stored as a separate array?
So in your example above it should be structured like the example below:
let x = {
    "fields": [
      {
        "text": "Id"
      },
      {
        "subqueryObjName": "Contacts"
      },
    ],
    "sObject": "Account",
    "subqueries": [
      {
        "fields": [
          {
            "text": "Id"
          },
          {
            "text": "Name"
          }
        ],
        "sObjectRelationshipName": "Contacts",
        "subqueries": []
      }
    ]
}
let s = composeQuery(x);

Here is a unit test you can reference:
  {
    testCase: 13,
    soql: 'SELECT Name, (SELECT LastName FROM Contacts) FROM Account',
    output: {
      fields: [
        {
          text: 'Name',
        },
        {
          subqueryObjName: 'Contacts',
        },
      ],
      subqueries: [
        {
          fields: [
            {
              text: 'LastName',
            },
          ],
          subqueries: [],
          sObjectRelationshipName: 'Contacts',
        },
      ],
      sObject: 'Account',
    },
  },

ahh interesting.... The syntax is a little confusing, but I can see why you might want to keep the subqueries out of the select.  Your current setup has the added benefits of preventing Cannot follow the same aggregate relationship twice (maybe?).
I would say do whatever fits your needs best.  I'm using this library in a typesafe query generator of an typescript ORM I wrote.  Because it often is run in the browser, I think I may end up needing to write my own code to compose the queries (simply due to the added overhead of antlr).

ya, that seems to match up what bundlephobia show.  Also, looks like it's "tree shakable", so if your using it with webpack, and not using all the functionality, it will probably be even smaller.
I'd really like to include my query generator directly in ts-force (instead having ts-force-qry as a peer package), but it would increase the overall size by ~ 5x.
Not sure it REALLY matters in this day in age.  Especially since I'm typically also using a component library like antd which is 1.8mB :hurtrealbad:

@ChuckJonas - check out the recent changes (on master, released as a beta).  There updates in the examples in the README for composing queries with the new structure.
Also, I have added comments for various fields on the README (and in the soql models TS file) denoting which fields are not expected to be populated if you are composing a query.
Let me know if you have any questions or have suggestions on doc updates or code/type changes after you spend some time using it.


Keep user logged in and sign out

Adds ability to keep user logged in if the app is canceled - may want to set a timer on this?
Also adds the ability for a user to be signed out.

Closes #11 and #24


Don't have blur

Hello, I have about blur in viewcontroller. Issue in example. Thanks
https://drive.google.com/open?id=1TY-jqAnzHrwcu9x5FwPn3QQogX7_0zga

Hi @PiPyL that's because aViewController's view has a white background.
You should open Main.storyboard and set the backgroundColor to clear or set it through code in the viewDidLoad.


done my task making main/gallary in group project css and html

made gallery section

nono you´re fired


Make load balancers use combiner locks

Built on #9662, this is the end of this PR series

This looks good -- only one substantive issue.

Reviewed 30 of 30 files at r1.
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.

src/core/ext/lb_policy/grpclb/grpclb.c, line 590 at r1 (raw file):

  grpc_lb_policy_args args;
  memset(&args, 0, sizeof(args));
  args.client_channel_factory = glb_policy->cc_factory;

I think we need to set args.combiner here, in order to make sure that the RR policy uses the same combiner as the grpclb policy.

src/core/ext/lb_policy/pick_first/pick_first.c, line 63 at r1 (raw file):

  /** remaining members are protected by the combiner */

  /** the selected channel (a grpc_connected_subchannel) */

No need for the type in the comment anymore.

src/core/ext/lb_policy/pick_first/pick_first.c, line 203 at r1 (raw file):

  }

  /* No subchannel selected yet, so acquire lock and then attempt again */

The "acquire lock" part of the comment is no longer accurate.

Comments from Reviewable

I think I hit all review comments (and fixed remaining bugs)

I think you mean git submodules were deliberately badly designed.
In any case, fixed :)


Add consistency to method chaining DocBlocks

As discussed in fluent interface return type vs return self #7193, this changes remove occurrences of class names and self keyword from the DocBlocks

Updated to latest discussion developments

Per my comment on that thread, I'm closing this; self is preferred. I will open a separate pull request making those changes.


Bicycle access is not correct

This route should go along the cycle network:
https://routeplanner.bike.brussels/?sb=true&o=4.3317550,50.8767605&d=4.3979127,50.8699507&p=profile1#15.82/50.9054/4.3905?sb=true&o=4.3883232,50.9072541&d=4.3869881,50.9046013&p=profile1

This way for example cannot be accessed:
https://www.openstreetmap.org/way/207467480

The problem here is not the mentioned way, but the roundabout. The 'cycleway=no' is wrongly interpreted as 'no access for cyclists'.


[Bug][teambition] test connection not work

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
test connection fail on list page

test connection success even though auth is wrong

What do you expect to happen

test connection success on list page
test connection fail when auth is wrong

How to reproduce

create a teambition connection
test connection

Anything else
No response
Version
main
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

https://github.com/apache/incubator-devlake/pull/5066 have solved this issues.

@likyh  how to config the teambition ？


CJA - Export Dataset availability - ambiguos release status.

Hey team,
please appreciate the following about Export Dataset feature:

This page  is reporting the following statement:
"Currently limited release, full release for Customer Journey Analytics customers is expected in June 2024."

This linked page is reporting anything about the limited release.

If the release is actually limited could you please add a "limited availability" label in the linked page?
If not, could you please remove the "limited release" note in the linking page?
Thanks,
Alberto
Issue in ./help/use-cases/data-export/export-datasets.md

Thanks for pointing this out. Fixed in the docs by removing the limited release note.


Implement StatsRecorder.record(MeasureMap).

Two commits:
#### Give TAG_CONTEXT_KEY a default value (an empty TagContext).
Implement StatsRecorder.record(MeasureMap).
This record overload uses the current TagContext.  I also split StatsRecorderTest into StatsRecorderTest and NoopStatsRecorderTest.

Codecov Report

Merging #529 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #529      +/-   ##
============================================
+ Coverage     89.95%   90.02%   +0.06%
- Complexity      564      565       +1
============================================
  Files           110      110
  Lines          2350     2355       +5
  Branches        208      208
============================================
+ Hits           2114     2120       +6
+ Misses          181      180       -1
  Partials         55       55

Impacted Files
Coverage Δ
Complexity Δ

...c/main/java/io/opencensus/stats/StatsRecorder.java
100% <100%> (ø)
4 <1> (+1)
:arrow_up:

...n/java/io/opencensus/tags/unsafe/ContextUtils.java
83.33% <100%> (+16.66%)
1 <1> (ø)
:arrow_down:

...census/implcore/trace/export/SpanExporterImpl.java
90% <0%> (+1.66%)
6% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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

I split the tags changes into a different PR, #533.  Only the last two commits in this PR are new.

Thanks!


Fix/#148 fix react hooks

Add this plugin to lumin/package.json in multiplatform structure: "rollup-plugin-copy": "^3.3.0"
Update the path to app.js in the main.js to: import MyApp from '../../src/app.js';
Update the rollup.config.js to include dedupe: ['react']

Codecov Report

Merging #149 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #149   +/-   ##
=======================================
  Coverage   92.91%   92.91%
=======================================
  Files           8        8
  Lines         663      663
  Branches      126      126
=======================================
  Hits          616      616
  Misses         43       43
  Partials        4        4

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 f9cd82f...5514f82. Read the comment docs.


Reload comic cover

The wrong comic was put in the wrong series. I fixed this but Kuboo keeps showing (In Recently viewed and whe I opened the series) the old cover. Ubooquity shows the correct cover after it re-scanned the directories.
Didn't know that Kuboo kept this in a different place - I assumed it was what Ubooquity had available.
How can I force Kuboo to reload the cover?

You can try to clear cache

Excellent .. That solved the issue.
On Wed, Oct 10, 2018, 6:57 PM Seth Chhim<EMAIL_ADDRESS>wrote:

You can try to clear cache
[image: screenshot_20181010-185413]
https://user-images.githubusercontent.com/11790350/46770674-519e9500-ccbe-11e8-827d-189a27ca6a55.jpg
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sethchhim/Kuboo/issues/43#issuecomment-428761147, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQFDDLQK273x_YuP2dRNehjFZtvVmp89ks5ujntlgaJpZM4XWeZx
.


The introductions of EventMesh Connector and EventMesh Storage are incorrect

https://github.com/apache/eventmesh-site/blob/master/docs/instruction/03-runtime.md
Current EventMesh Connector is different from the initial EventMesh Connector, and it is a standalone service now. The initial EventMesh Connector was later changed to EventMesh Storage, but the relevant instructions in the documentation were not changed, resulting in users not knowing how to use Storage and Connector, and even attempting to use Storage or Connector in the wrong way.
For example:

The content of the file is the mapping from the plugin instance name to the plugin instance, see eventmesh-connector-rocketmq plugin module for details.

implementation project(":eventmesh-connectors:eventmesh-connector-rocketmq")

#connector plugin
eventMesh.connector.plugin.type=rocketmq

// Example: Load the RocketMQ plugin
implementation project(":eventmesh-connectors:eventmesh-connector-rocketmq")

Now eventmesh-connector-rocketmq as Connector, it does not run as a plugin, here they should be eventmesh-storage-rocketmq.
Additionally, all of the image paths in this document are incorrect. They should be /static/images/... instead of /images/....
(Related issue https://github.com/apache/eventmesh/issues/4680. CC @VishalMCF.)

@pandaapo @Pil0tXia I am glad that I pointed out an important issue. It was indeed confusing.

May I help with this issue? I am a bit new to GitHub but have taken some courses on it if that's ok. However, I'm not new to writing up documentation.

Sure go ahead
On Wed, 3 Jul 2024 at 07:24, Whitegabriella789 @.***>
wrote:

May I help with this issue? I am a bit new to GitHub but have taken some
courses on it if that's ok. However, I'm not new to writing up
documentation.
—
Reply to this email directly, view it on GitHub
https://github.com/apache/eventmesh-site/issues/159#issuecomment-2204886526,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQYCBCXKVLCA7LMUUTY6C73ZKNKVBAVCNFSM6AAAAABKITIITGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBUHA4DMNJSGY
.
You are receiving this because you were mentioned.Message ID:
@.***>


In Firefox, multiline code snippet gets rendered on single line

I added a repl session to show some examples of buffer/slice, and it seems like the lines are rendered on a single row:

I checked the html real quick, and the code is wrapped in a pre so I'm not sure why it looks like this.

The source text is this (retrieved from the textarea):
Example usage

```
janet:1:> (def buf @"ABCDE")
@"ABCDE"
janet:2:> (buffer/slice 0)
error: bad slot #0, expected string|symbol|keyword|buffer, got 0
  in buffer/slice
  in _thunk [repl] (tailcall) on line 2, column 1
janet:3:> (buffer/slice buf 0)
@"ABCDE"
janet:4:> (buffer/slice buf 0 1)
@"A"
janet:5:> (buffer/slice buf 0 -1)
@"ABCDE"
janet:6:> (buffer/slice buf 1 3)
@"BC"
```

Oh interesting, I think it's a combination of moondown rendering the markdown and then and highlightjs highlighting it.
It seems to only happen when I try to use the three backticks, if I indent four spaces for code it doesn't happen. I'll have to see how I can get sundown to recognize three backticks instead of indentation

No nevermind it was way simpler than that, just my bad styling choices:
pre > code p {
  line-height: 0; /* deleting this fixed it */
}

Of course the whole goal of line was to stop it from having a crazy amount of padding, but maybe that's an actual markdown tweaking thing I should do

I can see that the issue is fixed. But yeah, I agree about the padding. I think the marked area in the image does not really correspond to the source text (that is, there's only one empty line between the "Example usage" and the code block.

But I'm closing this, as the issue is fixed.


Bug encountered with aspect ratio when trying to render a .MP4 Link as an image

Error code
ERROR  Invariant Violation: [1089,"RCTView",{"aspectRatio":"<<NaN>>"}] is not usable as a native method argument
Reproduce Bug
cd examples/react-native-marked-sample/

in const.ts add a link to an MP4 file for example [Mp4 file](https://lemmy.world/pictrs/image/462a776a-971c-49f8-a54f-4306397c1b6a.mp4)

yarn start --ios

Cause
Inside MDImage.tsx on line 45 the function fetchOriginalSizeFromRemoteImage is attempting to get the size of the image and set its aspect ratio.
	const fetchOriginalSizeFromRemoteImage = () => {
		Image.getSize(
			uri,
			(width: number, height: number) => {
				setImageState({ isLoading: false, aspectRatio: width / height });
			},
			() => {
				setImageState((current) => {
					return {
						...current,
						isLoading: false,
					};
				});
			},
		);
	};

On IOS if the link is to a .MP4 file for example Mp4 file then the height and width value will return 0. 0 / 0 returns NaN which then throws that error.
Proposed Fixes
I have tried a few things that have worked to fix the issue, but I am not sure about their implementation and would like some input.

simply check if height and width are 0 and if they are add default values.

(width: number, height: number) => {
    if(height || width === 0){
          height = 100,
          width = 75
        }
    setImageState({ isLoading: false, aspectRatio: width / height });
    },

Problem
This will lead to a blank image being rendered which is annoying and looks bad

in Renderer.tsx add an exception for .mp4 files and instead of rendering the image, render text to the link instead.

	image(uri: string, alt?: string, style?: ImageStyle): ReactNode {
		const key = this.getKey();
		if (uri.endsWith(".svg")) {
			return <MDSvg uri={uri} key={key} />;
		}
		if (uri.endsWith(".mp4")) {
			return (
				<Text
					accessibilityRole="link"
					accessibilityHint="Opens in a new window"
					key={this.getKey()}
					onPress={onLinkPress(uri)}
					style={style}
					selectable
				>
					{uri}
				</Text>
			);
		}
		return <MDImage key={key} uri={uri} alt={alt} style={style} />;
	}

Problem
This will only render the text in black since there is no access to Text Styles here. Meaning if the user is using dark mode they wont be able to see the text.
PR
I would be wiling to submit a PR with changes but wanted to get some input on some solutions. Thank you!

@travis-racisz Thanks for the bug report. Looks like its a parsing issue. As per marked.js tokenization It should render a link instead of an image (see demo). We need to debug and apply a fix here. I'll look into it.

@travis-racisz can you please share a repro?

I should clarify, I made a mistake in the original issue. The issue turns up when the mark down has an ! in front of it like
![MP4](https://lemmy.world/pictrs/image/462a776a-971c-49f8-a54f-4306397c1b6a.mp4)
Here is an example of how it is being rendered by Marked.
I still think the problem is with setting the aspect ratio of the image in MDImage.tsx
another solution
if you check the value of imageState.aspectRatio to ensure it isnt returning something unexpected like NaN and give it the value of undefined which is the default value. that will fix the issue
<ImageBackground
	source={{ uri: uri }}
	style={{
		width: "100%",
		aspectRatio: imageState.aspectRatio ? imageState.aspectRatio : undefined,
	}}

Here is another proposed solution that will mirror the behavior of the marked demo without giving the same error as before

Fix released in v5.0.7


Networksharedcontainer

Exposing a new property NetworkSharedContainerName, to populate the network shared container name
Signed-off-by: Madhan Raj Mookkandy<EMAIL_ADDRESS>

Hi @madhanrm, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@jhowardmsft Can you please merge and tag.

Can you squash your commits first. Thanks

Leave a comment

Closing this, as I messed up my branch.


Change Report Issue button to reflect current status of the deprecation

It would be nice if the report issue button behaved similarly to the Uncaught Error notification's report issue button. So if the error/issue has already been reported the button changes visually to inform the user, and they know it's not necessary to go and report it.
The button could still link through to the logged issue's page as it does now, but just give the information to the user without them having to click and open up the link to find out.

This is how it currently looks for a deprecation that has already been reported.

This should have been fixed in #46.

@eboracus Can you share the version of Atom you're using and the exact steps which reproduce the problem shown in the screenshot? (Assume I have only Atom installed, no packages.)

This is with v1.0.2 and I can't reproduce the above in strict safe mode as I can only display the deprecation in question with the offending packages enabled. linter-clang in this case (which I guess needs linter to actually activate itself), with only these two packages installed I get the above screenshot. So at least from clean Atom the steps should be: install/load these two packages -> load atom -> click on deprecation message in status bar and the button displays as shown, thought the issue is reported.

Ahhh, thanks for clarifying. I totally misunderstood your report -- I thought you were saying that existing issues were not detected correctly.
Yeah, the "Report issue" button checks for existing issues when clicked, not before that. I guess it would be nice if the behavior matched the Notifications package. Gonna add the "enhancement" label to this :+1:

This issue was moved to atom/atom#18176


Pirate route fix-rework

changes to all that's linked to the pirate route, now not being a way to advance the lvl 11 quest.
Won't work if you try it before accepting the my_path_id() change/PR.
TODO:
1- test it :|
2- from the snippet in pirate.ash, add a "belowdecks unlocker helper" for paths such as LKS which still have an incentive to open belowdecks (shouldn't go in pirate.ash, though, as it's definitely not relevant enough for there)
3- From the same snippet, add a "O Cap'm, My Cap'm" helper, somewhere? It'd pretty much be the only reason anyone would want to go there now, after all... (Should possibly go in a new file, in the "Sets" folder, instead of in pirate.ash, which is in "Quests"...)
(Could get the same "treatment" as Sets/Old Level 9 quest.ash)

There are some conflicts that need to be resolved here.
Also, can we make this a Draft PR until its ready please?


Error - 'Something' went wrong

I'm having a hard time trying to authenticate my spotify app on localhost. I have my redirect_uri set as localhost:8888/callback (have also tried it with http://)at my developer account, but I get this error page when terminal prompts me to enter the URL I'm being redirected to.
I am running my server using python -m SimpleHTTPServer 8888, and entering at terminal python script.py username.
this is my python script:
scope = 'user-library-read'

if len(sys.argv) > 1:
	username = sys.argv[1]
else:
	print "Usage: %s username" % (sys.argv[0],)
	sys.exit()

token = util.prompt_for_user_token(username, scope, client_id='myId', client_secret='mySecret', **redirect_uri='localhost:8888/callback'**)

if token:
	sp = spotipy.Spotify(auth=token)
	results = sp.current_user_saved_tracks()
	for item in results['items']:
		track = item['track']
		print track['name'] + ' - ' + track['artists'][0]['name']
else:
	print "Can't get token for", username

what could be wrong? please help

Hi @patalanov! I'm not sure this is the best project to ask for support. I think Spotipy would give you a better chance.
I can give it a try though. Do you know what URL is being requested when you see that Error - 'Something' went wrong?

Hi! When I run the script on terminal, browser opena a tab, and I get this (terminal):
 User authentication requires interaction with your
            web browser. Once you enter your credentials and
            give authorization, you will be redirected to
            a url.  Paste that url you were directed to to
            complete the authorization.

Opening https://accounts.spotify.com/authorize?scope=user-library-read&redirect_uri=localhost%3A8888%2Fcallback&response_type=code&client_id=my_id in your browser

Enter the URL you were redirected to:

thanks

First thing I notice is that you need to add http:// in front of your redirect_uri. Then, if you haven't changed the client_id, you need to change it to the one you have obtained when created your application on the developer site.

I've tried it both ways, Pérez...with and without http://, and have changed it accordingly both in the script and on developer site, saving the changes...
and I have the client_id obtained...
I just ommited it for security reasons..
Sent from my iPhone

On May 18, 2016, at 7:22 PM, José Manuel Pérez<EMAIL_ADDRESS>wrote:
First thing I notice is that you need to add http:// in front of your redirect_uri. Then, if you haven't changed the client_id, you need to change it to the one you have obtained when created your application on the developer site.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Here's what we can do to troubleshoot this:

Make sure your server is listening in that redirect_uri. You can curl http://localhost:8888/callback or try to access it from a browser. Add some log message and see if it is printed when accessing that URL.
As a way to find out if your redirect_uri is set up correctly, you could follow the steps in the Web API Tutorial. Put in your app credentials and redirect_uri and run the project. You might be interested in testing the authorization code flow. If everything works, then the problem is in your Python code.
As the last resource, I encourage you to move this issue to the Spotipy project and get some help there. I'm not familiar with that wrapper nor Python, so I can't be very helpful.

@patalanov I am having the same issue and believe the issue may lie in thequerystring library not parsing the url properly. Did you get to the bottom of this?

@Pau1fitz sure, PRs are more than welcome!


Support for Raspberry Pi 64 bit (aarch64)

The Linux containers don't seem to support aarch64 on my Raspberry Pi 4 full node (Raspbian 64)
Linux raspberrypi 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux
root@raspberrypi:/ # docker logs machinaris
standard_init_linux.go:207: exec user process caused "exec format error"
Thanks!

I wanted to setup my NanoPi M4 board as a harvester and had the same issue.  I got it working by
building docker image on the device. Essentially building it for an aarch64.

clone the git repo
edit and comment chia-plotter builds in the dockerfile (since they failed to build on my device)
run docker build .
run the docker container with the new image
put fake chia-plotter file in the bin folder because the webapp & api fails to load if it can't find it

i still ran into some weird issues but now it's running fine. Sorry for the vague details but hope it puts you on the right track.

I tried cross-building the image for aarch64 with
docker buildx build --progress plain --platform linux/arm64 --build-arg CHIA_BRANCH=1.2.2 --build-arg FLAX_BRANCH=main .

but ran into:
#5 271.1 Errors were encountered while processing:
#5 271.1  libc-bin
#5 271.2 E: Sub-process /usr/bin/dpkg returned an error code (1)
#5 ERROR: executor failed running [/bin/sh -c apt-get update 	&& apt-get install -y 		acl 		apt 		bash 		bc 		build-essential 		ca-certificates 		curl 		git 		jq 		nfs-common 		openssl 		python3 		python3.9-distutils 		python3.9-venv 		python3-dev 		python3-pip 		python-is-python3 		sqlite3 	sudo 		tar 		tzdata 		unzip 		vim 		wget 		cmake 		rsync 		libsodium-dev 		iputils-ping 			&& rm -rf 		/tmp/* 		/var/lib/apt/lists/* 		/var/tmp/*]: exit code: 100
------
 > [package_stage 2/2] RUN 	apt-get update 	&& apt-get install -y 		acl 		apt 		bash 		bc 		build-essential 		ca-certificates 		curl 		git 		jq 		nfs-common 		openssl 		python3 		python3.9-distutils 		python3.9-venv 		python3-dev 		python3-pip 		python-is-python3 		sqlite3 	sudo 		tar 		tzdata 		unzip 		vim 		wget 		cmake 		rsync 		libsodium-dev 		iputils-ping 			&& rm -rf 		/tmp/* 		/var/lib/apt/lists/* 		/var/tmp/*:
------
error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c apt-get update 	&& apt-get install -y 		acl 		apt 		bash 		bc 		build-essential 		ca-certificates 		curl 		git 		jq 		nfs-common 		openssl 		python3 	python3.9-distutils 		python3.9-venv 		python3-dev 		python3-pip 	python-is-python3 		sqlite3 		sudo 		tar 		tzdataunzip 		vim 		wget 		cmake 		rsync 		libsodium-dev iputils-ping 			&& rm -rf 		/tmp/* 		/var/lib/apt/lists/* 	/var/tmp/*]: exit code: 100

Any ides if this is just a problem wenn cross-building or did you have the same problem, when building directly on your NanoPi M4, @raspi-ninja?

Hi! For those with Raspberry Pi 64-bit systems, please give the latest ghcr.io/guydavis/machinaris:develop image a try.  As of latest build, the arm64 architecture is enabled, but I don't have any hardware to try running it.  Here's the details on GHCR and DockerHub.
In particular, you'll need an existing Machinaris controller running on another PC, as it really only makes sense to launch a Machinaris worker (mode=harvester) on the RaspPi I think. Please let me know how things go.  In particular, please provide the logs.  Thanks!

Heard from a user on Discord that this is working well for his RaspberryPi.  Will ensure this becomes part of regular build process.

Closing as released in v0.5.2 now.

Hi @guydavis ,
Just tried fresh install of docker image in Raspberry Pi 4 using .yml from docker app.
Initially got error (using :latest in yml) .. which brought me to this issue
pi@raspberrypi:~/machinaris $ sudo docker-compose up -d --force-recreate
Pulling machinaris (ghcr.io/guydavis/machinaris:latest)...
latest: Pulling from guydavis/machinaris
ERROR: no matching manifest for linux/arm/v7 in the manifest list entries
Then changed to :develop, which allowed me to create image, however docker container doesn't run and is showing the following message..
pi@raspberrypi:~/machinaris/machinaris/docker $ sudo docker logs machinaris
standard_init_linux.go:228: exec user process caused: exec format error
standard_init_linux.go:228: exec user process caused: exec format error
Apologies for tagging against older closed issue, let me know if you would like a new issue raised?

Hi, sorry.  Sounds like you are trying to run with a 32-bit RaspPiOS version.  This isn't supported by Machinaris or by Chia.  Please try to switch to a 64-bit OS if you can.
As for the :develop images, they support x86_64 only for speed of build time.  They won't run on any RaspPi device, so please stick with the :latest images which is the latest official release.

Hi @guydavis ,
Sorry, meant to check earlier and forgot, yeah you are correct, I'm using 32bit OS.. I had assumed the new download was 64 bit, my mistake.  Thanks for prompt reply.

Hi @guydavis , just a follow up to say it is all working after install 64bit OS.  Thanks for your help.


Possible glitch in Bonfire: Confirm the Ending Challenge

Challenge Bonfire: Confirm the Ending has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function end(str, target) {

  var myArray = str.split("");
  var whichWord = myArray.pop(-1);
  var whichLetter = whichWord.substr(-1);

  if (whichWord === target || whichLetter === target) {
    return true;
  } else {
    return false;
  }
};

end("Bastian", "n", "");

My code seems to work flawlessly except for the "name" test, but the "name" test is exactly the same as the "specification" test so I see no reason why it will not accept my code. I believe there may be a bug within this challenge.
If I'm missing something, please let me know. I have searched the forums and online and couldn't find any information on my exact issue, so I posted this as a new bug.
Here are the tests and whether or not my code passed them:
assert(end("Bastian", "n") === true, '"Bastian", "n" should return true.'); (PASSED)
assert(end("Connor", "n") === false, '"Connor", "n" should return false.'); (PASSED)
assert(end("Walking on water and developing software from a specification are easy if both are frozen.", "specification") === false, '"Walking on water and developing software from a specification are easy if both are frozen.", "specification") should return false.'); (PASSED)
assert(end("He has to give me a new name", "name") === true, '"He has to give me a new name", "name" should return true.');"He has to give me a new name", "name" should return true. (FAILED)
assert(end("If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing", "mountain") === false, '"If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing", "mountain" should return false.'); (PASSED)

This is not an issue with the tests. In your solution myArray is an array of every individual character of the input, so when you pop off the end whichWord is only the last letter, meaning your code will always return false when the string being looked for is more than 1 character.
I can see where you're going though -- you meant to be splitting myArray at every space. Take note that while this solution would pass all the tests it wouldn't quite be correct for some other input. For example, that approach would return false for end("He has to give me a new name", "me") since me would not match name or e, but it should return true. A test case should probably be added to account for this.

@ltegman is right, this is unfortunately an error with your code, not the bonfire. I've created a pull request with the test case suggested above to prevent an incorrect solution.
Good luck :)

I altered my code and passed the challenge. I believe the issue here is the language used to describe the challenge, as well as the recommended method to solve it.
I submitted two commits to improve this challenge here: #3674 & #3676.


Uninstalling guacamole ws service doesn't remove fw rules

Describe the bug
Uninstalling a Guacamole workspace service for VMs does not remove the firewall rules. Just seems to be missing from the template:
https://github.com/microsoft/AzureTRE/blob/18d53d5cb4b2cc384eeaa6a72f31177b8a945606/templates/workspace_services/guacamole/template_schema.json#L121
Please  do close this if this is the intended behaviour, but I couldn't see why it should be!
Steps to reproduce

Create Guacamole workspace service in a TRE (with UI)
Delete service
Find that the fw rules for the deleted object are still there

@t-young31 yes, looks like that is missing.
@damoodamoo  can you confirm deleting rules in pipeline should work fine?


ocamlPackages.hex: 1.0.0 -> 1.2.0

Motivation for this change
Support for OCaml 4.06
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg eval


X270 trackpad does not work after sleep

After the lid is closed and the laptop goes into sleep, the trackpad becomes unresponsive to any inputs, I think I may be something to do with the synaptic driver as the keyboard remains functional, any help would be great!!

I've been experiencing this issue off and on myself and I've been unable to get to the bottom of it, but I've also not had a lot of time to investigate. I'll try to take a look soon.


Refactoring done and reduced some functions complexity and work-time

Describe changes
I implemented/fixed _ to achieve _.
Pre-requisites
Please ensure you have done the following:

[done ] I have read the CONTRIBUTING.md document.
[ not done] If my change requires a change to docs, I have updated the documentation accordingly.
[ not done any integrations] If I have added an integration, I have updated the integrations table and the corresponding website section.
[ tested ] I have added tests to cover my changes.

Types of changes

[ done ] Bug fix (non-breaking change which fixes an issue)
[ functional changes ] New feature (non-breaking change which adds functionality)
[ exceptional changes ] Breaking change (fix or feature that would cause existing functionality to change)
[ done ] Other (add details above)

I ran formatting / linting script and pushed the respective fixes on your develop branch, not sure why they don't show up in this PR though

It shows there is an issue to merge with the b5f37b7 branch which is not changed by myself.

It shows there is an issue to merge with the [b5f37b7](https://github.com/zenml-io/zenml/commit/b5f37b765effcdb6746d82d060eb7cbac77ea23e) branch which is not changed by myself.

Yeah you can ignore that, no worries

CI already passed on your last commit so I think this should be ready to merge 🙌
@thanseefpp again big thanks for the PR, really appreciated 🙏


Allow to customize date picker

Use pattern similar to CustomInputComponent in https://github.com/jaredpalmer/formik#field-

Check #12 PR. It's mostly what you proposed.


Making first link visible.

Hi, thanks for the great library!
I noticed that Test1 button in then demo: ( http://fisshy.github.io/react-scroll-example/basic/index.html ) is not selected by default which is part of requirement I have for my page. What would be the way I make it selected immediately after page is loaded?

Hi, thanks!
The demopage is not updated to the latest version
In you page you can call "scrollSpy.update();"
var React   = require('react');
var Scroll  = require('react-scroll');
var scrollSpy  = Scroll.scrollSpy;

var Page= React.createClass({
  componentDidMount: function() {
    scrollSpy.update();
  },
});

Thanks for the prompt replay! This helped. I'm having one more issue.
I need to have 2 links pointed to 1 element. And of of links (Signup) only when it's not under "signup" element. You can see more details at screenshots:
https://www.evernote.com/l/AEfREglY1ktNCoWaSG9CDKbylK_8V642eqU
https://www.evernote.com/l/AEfLa7bzyMpDz4e3GGBbR7ADwHdfV45ObBA
Looks like you can have only 1 link per Element. How do I solve it?
My code:
AnchorNavigation

 links = [{href: 'signup', messageId: 'ShopBack Rewards'},
        {href: 'education', messageId: 'How to Earn Cashback'},
        {href: 'widget', messageId: 'Exclusive Promotions'}];

renderLinks = (links) => {
        return links.map((linkData, idx) => {
            return (
                <li key={'anchor-href-' + idx}>
                    <Link offset={idx === 0 ? -50 : 0 }
                          to={linkData.href}
                          spy={true}
                          smooth={true}>
                        {linkData.messageId}
                    </Link>
                </li>
            );
        });
    };

Partner

            <Row>

                <AnchorNavigation links={this.links}/>

                <Signup/>

                <Education/>

            </Row>

Partner, Education
            <Element
                     name="signup">

            </Element>

With "DirectLink" you can skip the "name" on the elements and use "id" only and then you can map as many as you want.

I changed my code to DirectLink and element to use id and it didn't help. Exactly the same behaivior. I also tried to run examples. But after I do "npm run examples" I see no output. You can see it here:
https://www.evernote.com/l/AEdZZki1EfxClYlsWPMk-bOe-cASMtoPLoE

Hi, any help with this one?

Hi, sorry for the delay.
I solved it with this
<Link activeClass="active" className="test8" to="same" spy={true} smooth={true} duration={500}>Same target</Link>
<Link activeClass="active" className="test9" to="same" spy={true} smooth={true} duration={500}>Same target</Link>

<Element id="same" className="element">
  Two links point to this
</Element>

scrollSpy.update(); does not set the first link active sometimes.how to fix that

I am facing the same issue that scrollSpy.update() is not selecting the first link by default.  Is there an update or workaround for this issue?

This one should be solved in v1.6.7

@fisshy For some reason, the upgrade still didn't do it for me.  What worked for me was basically storing the ref value of the first Link element and using Scroll.scroller.setActiveLink() function to make it active on component mount.


Set absolute expiration time instead of time elapsed

Is your feature request related to a problem? Please describe.
Our team use netbird on a daily basis, but netbird's expiration of 24 hours frequently interrupts VPN connection during work hours.
For instance I connect at 10:00am on Monday,  but on Tuesday I start 1 hour earlier, then it's guaranteed my connection will disconnect mid-development after an hour.
Describe the solution you'd like
Would be great if we could set an expiration time (like at 12:00 AM everyday instead of every 24 Hours).
This way, though everybody needs to re-login every day in the morning, significantly less people be interrupted during active usage.
Describe alternatives you've considered
Of course it would be best if there would be a feature to alert user around 30 minutes prior to expiration whether to extend the session but I assume it would be a major update?
Additional context
Thank you.

Hi!
Interesting thing. Never thought about it. Maybe 25h would help? Or probably the logic of netbird should be rewritten? What do I mean? Usually you don't leave laptop or computer in active mode. When you stop work, you put it to sleep mode. And then strange thing occurs. Like netbird could not connect and return 403 Okta error. I think the relogin should occur right after getting out of sleep mode, so the session would not be interrupted during the day work. And yes, I totally agree that it is annoying when the session is closed in the middle of your work. Let's say you was downloading file over ssh... and it is not always when you can download only remaining part so you are forced to start from the very beginning.

Ideally there would be a way to force re-authentication to start a new session. I don't use a laptop and I run into this problem every single day.


Basic split writer.

Introduces a basic split writer taking a splitter function and a base path, which internally splits and writes a passed points batch into files inside the base path with the keys provided by the splitter function as filenames.

I'd like to understand better why this should be a trait instead of a struct. My first thought is whether we actually need more than one splitting function. The second is that IMO in a perfectly composable world, we wouldn't need a PlySplitWriter and RawSplitWriter but have a struct S2Splitted<T: NodeWriter>, maybe even S2Splitted<T: NodeWriter, L: S2Level> that implements NodeWriter itself. I guess the difficulty with that is that the splitter needs to create new inner writers, and the CubeNodeWriter prevents us from making new(path) a trait method *. Then again, do we really want to support using this with anything other than RawNodeWriter?

One way around is to have a SimpleNodeWriter extension to NodeWriter that introduces an additional new_in_dir(path: PathBuf) -> Self method that would not be implemented by CubeNodeWriter.

Yes, the difficulty are the inner writers, since their construction needs different parameters. I thought about getting around this by providing something like a "get cube/encoding for key" function, which can be passed to the constructor of a possible CubeSplitWriter. And yes, it was also my thinking that we can use the splitter also during octree generation for writing cubes.

What do you think about adding an encoding parameter to the new() method. I.e. either
pub enum Encoding {
    Plain,
    ScaledCentered(Vector3<f64>, f64, PositionEncoding),
}

pub trait NodeWriter<P> {
    fn new(dir: &Path, codec: Encoding) -> Self;
    fn write(&mut self, p: &P) -> Result<()>;
}

or, to eliminate the inner match against each point
struct ScaledCentered<Dtype> {
    origin: Vector3<f64>,
    edge_length: f64,
}

trait Codec {
    fn encode_pos(v: &Vector3<f64>) -> impl WriteLE;
}

impl Codec for ScaledCentered<u16> {...}

pub trait NodeWriter<P, C: Codec> {
    fn new(dir: &Path, codec: C) -> Self;
    fn write(&mut self, p: &P) -> Result<()>;
}

?

I agree that we don't need as much flexibility for now... I refactored the writers in #300 and implemented an easier version here.
@nnmm ptal, first #300 and then this one...

PTAL @nnmm
I integrated an open mode to specify whether to truncate the files when opening them and unified the application of the encoding to all writers.

Thanks for the review, Nikolai!

@wally-the-cartographer merge

Merge requested by authorized user feuerste. Merge queue now has a length of 1.


A question about experiment setup

Hi,
Thanks for your amazing work.
I would like to ask a step concerning the "3.1 Experiment step" in the paper.
In the paper, you stated that "G uses clean images from DIV2K [59], Flickr2K [60], BSD68 [61], Kodak24 [62], and Urban100 [63] to generate realistic noisy-clean image pairs". I assume this step is in the (b) training phrase and the generated (fake) noisy images and corresponding real noisy images will be inputted into two discriminator to train them.
However, some of the datasets (Flickr2K, Kodak24, Urban100) you used in this phase don't contain noisy images. I don't know how could the training of the two discriminator be done in the phase. Or you just add gaussian noise to these three dataset and regard them as real noisy images.
Thanks in advance for the clarification.

Correct


kube-shell: init at 0.0.21

Motivation for this change
Nice shell for kubectl 😄
I don't know if development/tools is the most appropriate place for this though. I'll happy to change it otherwise.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

@grahamcofborg build kube-shell

Failure on x86_64-linux (full log)
Attempted: kube-shell
Partial log (click to expand)
Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/d2lby71mdysch4frj7kpb93n94rs0012-kube-shell-0.0.21.drv' failed

Failure on aarch64-linux (full log)
Attempted: kube-shell
Partial log (click to expand)
Reading https://pypi.org/simple/kubernetes/
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'kubernetes' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for kubernetes<3.0.0,>=0.10.0
error: Could not find suitable distribution for Requirement.parse('kubernetes<3.0.0,>=0.10.0')
builder for '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed with exit code 1
error: build of '/nix/store/mazws7dhrzljh7r50zw72rk2ra977dz0-kube-shell-0.0.21.drv' failed

Success on x86_64-darwin (full log)
Attempted: kube-shell
Partial log (click to expand)
wrapping `/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21/bin/pyrsa-sign'...
wrapping `/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21/bin/pyrsa-verify'...
wrapping `/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21/bin/wsdump.py'...
running install tests
.
----------------------------------------------------------------------
Ran 1 test in 3.611s

OK
/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21

Success on x86_64-darwin (full log)
Attempted: kube-shell
Partial log (click to expand)
/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21

Success on x86_64-darwin (full log)
Attempted: kube-shell
Partial log (click to expand)
/nix/store/mrj8972g4hpy1anhsclvh6apy7hwhx3d-kube-shell-0.0.21

Seems like the build failures were due to some network error?
Download error on https://pypi.org/simple/kubernetes/: [Errno -2] Name or service not known -- Some packages may not be found!

Still kind of weird that it only succeeded in Darwin 😕

It is probably a sandbox issue. Darwin should fail but the sandbox is broken.

Do you think it's a matter of retrying @matthewbauer? I tried to build using Ubuntu and also worked. I can try NixOS too if that helps.

This one is pretty stale by now. Will look at it again and open another PR if necessary :+1: Thanks!


Add support for JsonPropertyNameAttribute from System.Text.Json

With the new json serializer from Microsoft the [JsonPropertyName] attribute comes to replace the old [JsonProperty]. However, swagger is not taking the value from this new attribute.

Full support for System.Text.Json is next up on the backlog (once I get v3.0.0 released) and due to some recent refactorings should be relatively trivial. So, hopefully within the next month

hi there - i just came across this and i'm facing the same problem. i wanted to use the [JsonPropertyName] as swagger does not seem to be very case sensitive when dealing with parameters.
any progress here?

I'm also very interested in this feature

Changes are in master. Can preview by downloading latest preview from myget.org. Closing in on the official release


material/bottom_app_bar.dart is out of sync with gen_defaults/lib/bottom_app_bar.dart

Description
When you execute dart dev/tools/gen_defaults/bin/gen_defaults.dart on the master branch, It should not make any changes to packages/flutter unless a new template is added for a PR.
However, I see this bottom_app_bar.dart is out of sync with gen_defaults/lib/bottom_app_bar.dart on master after https://github.com/flutter/flutter/pull/106525.
(I also noticed this with other recently landed classes but they seemed to be fixed now).
Steps to reproduce

git clone git@github.com:flutter/flutter.git

cd flutter and dart dev/tools/gen_defaults/bin/gen_defaults.dart

cc: @darrenaustin @elbeicktalat

Ooops. I missed this in the review. The tokens were updated on master and so we need to regenerate them with the latest from master. As this PR already got reverted this morning for another reason (#106525), I will go ahead and fix this when I attempt to reland the original PR. Thanks for pointing this out.


doc: add Git CMD, Node.js and Python 3.8 to ThirdPartyToolProfiles

Summary of the Pull Request
Added Git CMD profile.
Added Node.js profiles.
Added Python 3.8 console (from the Microsoft Store) profile.

References

PR Checklist

[ ] Closes #xxx
[x] CLA signed. If not, go over here and sign the CLA
[x] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed
Added into profiles.json and opened tabs with each profile.

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

Thanks for the doc contribution! We're going to take a bit of a break from adding third-party profiles, because I think the document has gotten a little long. I'd love to have you come back when we have a better story here.
Thanks for understanding!


instagram 403 error.

Hi.
instagram image links return "The requested URL returned error: 403".

We're not aware of any problems with Instagram. For example, this URL:
https://images.weserv.nl/?url=https://scontent-ams4-1.cdninstagram.com/v/t51.2885-19/s150x150/43913439_271376060236760_4813838902005596160_n.jpg%3F_nc_ht%3Dscontent-ams4-1.cdninstagram.com%26_nc_ohc%3De9M4NoF07IQAX8au_sq%26oh%3D083b3e28c829b2e2ab9cf35608aff21d%26oe%3D5EFAD4E7

Just works. Have you properly percent-coded the given URL (?url=…)?

Hope this helped, please feel free to re-open if questions remain.

Hello.
this JSON error appears instead of picture data
{"status":"error","code":404,"message":"The requested URL returned error: 403"}

Hello.
this JSON error appears instead of picture data
{"status":"error","code":404,"message":"The requested URL returned error: 403"}

@BZHDeveloper Did you remove any query parameters from the media link? They are required, otherwise you'll get a 403.

@BZHDeveloper Did you remove any query parameters from the media link? They are required, otherwise you'll get a 403.


Configurable lists of memory stats to collect

WHAT
Makes the memory field stat collection configurable.
NOTE
One thing to note is that the proc_used field will not be backwards compatible and people will need to change their graphs, etc. There are ways to go around this but they all seem hacky. Let me know what you think.

hrm, ideall procs_used would remain backwards compatible. What of {processes_used, procs_used} allowing a {Metric, Name} format for options, where some_atom => {some_atom, some_atom} ? Otherwise we'll have to go for a major version bump, which is fine too.

@ferd Yeah I like that idea, will change the PR

@ferd updated and squashed the commits.

Pushed to hex.


Character duplicating at start of word when using delete or backspace

Environments where this bug was reproduced:
OS: MacOS, Windows
Browser: Chrome (Firefox not afflicted)
Source application (when copy/paste): Acrobat Reader, Acrobat Pro, Preview (MacOS), TextEdit (MacOS), PDF viewer (within Chrome)
Installed version(s) of ember-rdfa-editor: 3.3.0 (used on production) & 3.7.1 (tested locally)
Steps to reproduce:

Copy/paste or type text inside the editor (in the example below, Lorem ipsum dolor sit amet, consectetur adipiscing elit from a plain-text TextEdit file)
Either do the following:

Put your cursor after a word (that is followed by at least two words) and start deleting characters (using delete key) until you reach the second consecutive word.
Put your cursor after a word (that is followed by at least one word) and start using the backspace key to delete the last character of that word.

The first characters of that consecutive word is now duplicated and the two words are now joined as one word.

Example video (the first set is using delete, then second is using backspace):
https://github.com/lblod/ember-rdfa-editor/assets/18174827/e8714b89-39e0-4f4b-8ec3-20e7989fa8ea
Code usage within our codebase:

https://github.com/kanselarij-vlaanderen/frontend-kaleidos/blob/development/app/components/web-components/vl-rdfa-editor.hbs
https://github.com/kanselarij-vlaanderen/frontend-kaleidos/blob/development/app/components/web-components/vl-rdfa-editor.js

After some further debugging, it seems like this issue is actually a rather specific Chrome bug 😐
If the following criteria are met within Chrome this issue seems to occur:

You have a element with contenteditable="true" on it.
That element has or inherits (the latter one is important) styling on the ::first-letter pseudo-element (For example color: red), even if it is (re)set to the default browser value (Eg. as a reset after defining it as a base style).

Similar issues also occur when using (or, again, inheriting) different pseudo-element styling (like ::selection) on elements with contenteditable="true".
I think I have a possible solution to fix this within Kaleidos, so I'll go ahead and close this issue.
Sorry for taking up some your time, but thanks for the help!

that's... kind of insane
thanks for figuring this out and alerting us


Additional pure CSS components

First off, excellent work with tachyons. I find it very beneficial from both a learning/mastering CSS standpoint and from a creative standpoint (much easier to override things here than with bootstrap).
Has there been any talk of adding additional components to showcase? Some possibilities:

Accordian
Progress bar
Modal
Rating/checkboxes

The difficulty I imagine is creating these things without adding too much (or any) custom CSS, as that would defeat the purpose and be counterproductive in the greater context of tachyons.

Tachyons is the CSS Lego you use to build out those components. It's not a UI Kit on its own.
I personally don't think it should go that way, because it removes it's composable nature
E.G. Here's a progress bar.
`

`
Which results in:

You need to supply the dynamic width of the inner div with your own JS choice.

Nice one on the progress bar, Lucas (Adam should add to Components examples). Tabeth, I was recently trying to crack star/half star ratings with Tachyons. I had to add a class to render with :before (there may be a better way)
.half-star:before {
      content: '\2605';
      position: absolute;
      overflow: hidden;
      width: 50%
    }

While not a UI kit per se, ultimately we build UIs with it. I think the docs and components will grow to reflect that over time.

We will make additional css components, but closing this issue as it's a bit vague and abstract. Don't know if we'll do a half star though.

No half-star? Forget it.


Bad Flash

ref: https://github.com/adafruit/Adafruit_nRF52_Bootloader/issues/63#issuecomment-
I'd appreciate that. It might actually be working, but possibly I am missing a step. I downloaded your project and was able to build the bootloader hex file (I made no changes to the code) and flashed it using a JLink:
nrfjprog -e -f nrf52
nrfjprog -f nrf52 --program _build_mdk-usb-dongle/nrf52840_xxaa.hex
nrfjprog -f nrf52 --reset

But now the board "appears" to be bricked. None of the LED light up, no OTA DFU shows up when I scan for devices in NRF Toolbox. I can still recover the board by reflashing the Adafruit bootloader.
I then tried adding the hex file I exported from my Arduino, but it didn't seem to do anything at all.
nrfjprog --program sketch.ino.feather_nrf52840_express.hex  -f nrf52

@dsteinman Moving this here since it's related to this bootloader instead of the Adafruit one.
A couple of things with the flash:

You need to flash the compiled board with the _s140 soft-device bundled with it. The Nordic Secure Bootloader can't start unless the soft device is present. If you've got one of the boards I've tested with on hand you can grab a pre-compiled hex from the releases page: https://github.com/charlesportwoodii/kaidyth_nrf52_bootloader/releases

Which board are you using? Adafruit nRF52840 Feather Express? Or are you using a MDK USB Dongle?

I don't have an Adafruit nRF52840 Feather Express to test with at the moment but I can get one. The SparkFun Pro nRF52840 Mini board will probably be the best one to flash since it only has a single LED bound to 1,7.

If you flash this board you won't have any LED's since I don't have a board specific implementation for the Feather Express yet, but it should boot up and show up as Kaidyth DFU in the Nordic Connect iOS/Android app and as a new com/serial device on your computer for the USB interface.
Once you've verified the bootloader works you then need to flash the application. The Nordic Secure Bootloader needs a signed app zip. If you just flash the hex file the bootloader doesn't know the start address of the application and won't run it.
To generate that, you need to run the following command:
nrfutil pkg generate --hw-version 52 --application-version 1 --application /path/to/sketch.ino.feather_nrf52840_express.hex --sd-req 0xB6 --key-file /path/to/kaidyth_nrf52_bootloader/default_private.pem app_dfu_package.zip

Once you have an app_dfu_package.zip, you can either flash it over bluetooth from the NRF Connect app, or flash it over USB serial by running:
nrfutil dfu usb-serial --package /path/to/app_dfu_package.zip -p <serial_port>

On Linux <serial_port> will be /dev/ttyACMX, on MacOS it'll be /dev/cu.usbmodemxxxx and on Windows that'll be COMX, replace x with the actual usb device since it'll vary.
I only have a few of the chips on hand but can work on getting a Feather Express to try it out on and make the appropriate tweaks for. I have a few different applications running with this setup so this should all work.
Let me know if you have any issues with this. If the bootloader doesn't advertise then I'll need to make a custom definition for it to align the pins up.

Ah, okay that make sense, yes I had never flashed the S140 softdevice.
I have been trying to get it to work but I'm still stuck on the bootloader and softdevice steps.  I actually do have the Sparkfun 52840 mini board as well, but I don't have a JTag plug for it.
But I tried flashing the sparkfun-pro-mini_bootloader-0.1.0_s140.hex from your releases page to my Adafruit board anyways
nrfjprog -f nrf52 --program sparkfun-pro-mini_bootloader-0.1.0_s140.hex --chiperase --verify

But there was no difference as far as I can tell, still bricked.  If you can tell me the procedure you used to generate these release files I can try to make one for the Adafruit board.
Could I possibly be still missing a step?  Or could the difference in the boards matter?  I thought the Sparkfun and Adafruit's boards were almost identical hardware-wise.

Okay, on the Adafruit board it looks like the Sparkfun firmware is at least loading correctly.  Once I flash it and reset, I can see the Kaidyth DFU BLE device shows up in NRF Toolbox, and the /dev/cu.usbmodem device shows up on OSX.  I can also perform the DFU update either mode - however in both cases the board now stuck/bricked in what looks like DFU mode.  The BLE Device and USB are now gone, and both the Adafruit Neopixel (red only) and Red status LED are on.  Resetting has to effect.  If I hard reset only the Red status stays on and the Neopixel is now off.

I'm looking to source a feather right now, Adafuit has them out of stock so I need to find another retailer who has one. Might take a few days to ship in.
At the moment, any firmware flashed to the 52840 feather in gonna "look" dead since the BSP lights aren't configured for that board. It should still advertise correctly though as you noted even if the bootloader LEDs don't work yet.
What are you flashing to the board? If you flash something and it stops advertising/showing the /dev/cu.usbmodem that means it's left bootloader mode and is running your application. The sparkfun bootloader has LEDs on pin 7 and 14, which on the feather map to a gpio pin instead of an actual LED, so any LEDs lighting up aren't coming from the bootloader.
If you do a double reset (double tap reset really quick) the board will go back into bootloader mode and you'll see the USB device/ble advertisement return.
If you're using Arduino, add some Serial.print somewhere in your code. That should trigger a new usb modem device to appear and you can debug your sketch on the board that way.

I really appreciate your help on this.  I think it's close to working, or I have missed some simple step.  Here are the exact commands I'm running, I can reproduce the problem every time.
nrfjprog -e -f nrf52
nrfjprog -f nrf52 --program sparkfun-pro-mini_bootloader-0.1.0_s140.hex
nrfjprog --reset -f nrf52

I created the dfu package just as you said:
rfutil pkg generate --hw-version 52 --application-version 1 --application mysketch.ino.feather_nrf52840_express.hex --sd-req 0xB6 --key-file default_private.pem app_dfu_package.zip

I can perform DFU over BLE, and the nrfutil dfu usb-serial .. command works as well.  But once the DFU is finished the device is bricked.  Resetting does nothing, I can't use Arduino's serial monitor to connect, and there's no /dev/cu.usbmodem device anymore, and no DFU BLE device is found.   I don't even have Nordic's SDK installed so I don't exactly know how to debug what's going on here.

@dsteinman Can you clarify a few things for me?

You were right!  Something in my sketch was causing the problem.  I simplified it right down to just a Serial and LED sketch and everything worked as expected.
I was fairly quickly able to nail down exactly what part of the Arduino sketch that was the problem:  Adafruit's Bluefruit library is not compatible, I presume because of the Nordic SDK or SoftDevice version mismatch.
Bluefruit.begin();

I guess until Adafruit catches up to the latest Nordic versions these libraries won't be usable with this bootloader.

The Bluefruit Arduino libs don't actually touch anything with the Nordic SDK, they just interact with the soft device. Both this bootloader and the Adafruit one use s140 6.1.1, so if the sketch is hanging it's probably a RAM conflict between the softdevice and something else on the chip.
I did read something regarding the soft device and neopixel ram region conflicting: https://forums.adafruit.com/viewtopic.php?f=8&t=129210. It's possible that there's a ram conflict which causes the app to hang
Are you able to flash the Blufruit bleuart sketch bundled with the blufruit library as-is to the device and have it work?
Once I get a device I can check the RAM regions with SEGGER and see if anything is clashing.

Yeah I can run the Blufruit bleuart sketch when I upload using Arduino & Adafruit's bootloader, but with your bootloader and flashed with nrfutil then it's failing.  Arduino is hanging when I open the Serial monitor.

Okay, that's almost certainly a RAM conflict, start address issue, or uicr_bootloader_start_address setting that needs to be changed somewhere. This bootloader has a slightly different start address that Arduino doesn't like.
I don't know exactly how Arduino handles that but it's certainly a solvable problem. Once I get this device in particular I can debug it further on chip.

Okay, thanks again for doing this, I'll check it out again if you figure it out.
This is a really good project BTW, it fills a big a gap between Arduino and the Nordic SDK.
Your bootloader also worked with this web version of the Nordic OTA DFU: https://github.com/thegecko/web-bluetooth-dfu which was what I was really interesting in getting working.

Glad to hear the web interface is working. I hadn't explicitly tested that yet.
Feather chip should arrive sometime this weekend for testing.
I played around with a few other boards I had to see if I could reproduce the crash. While I wasn't able to get the chip to advertise, I didn't see that it had crashed - everything within my void loop() (just toggling an LED back and forth) was working just fine. A memory region conflict would have triggered a hard crash so I'm not exactly sure why it isn't advertising. The Arduino stuff doesn't really care about the Nordic SDK used in the bootloader so I'm not sure what's happening.
I spent way too long tinkering with the Arduino variants though that I at this point I'm going to wait until I get an actual feather that has the variant.h already setup for me.
My next update won't be until after I get the chip and can play around with it actually.

Feather arrived and I was able to play with it.
I've merged in a formal board definition with working LED's so you can check the status of the board. The red LED should be solid and the blue LED should blink while in DFU mode. As long as you're able to get back into DFU mode from anywhere via the double reset trick, the bootload itself is functionally fine.
Regarding the Bluefruit libraries...
I've racked my head against everything I can think of at the present. I've tried a couple of things:

Tracing Bluefruit.cpp
Modifying the linker settings
Tracing the bootloader to make sure the app loads correctly
Verified soft device versions match

As far as I can tell, the bootloader hands off to the application normally, then the Bluefruit library itself hangs.
My best guess at the moment is that something with usb/softdevice is handing at around Bluefruit.cpp#462. If I give the linker bad options it halts here as expected, but I can't seem to trace any further than that short of without a full fledged debugger for Arduino.
Unfortunately I can't seem to get SoftwareSerial to write to my uart serial breakout  to see if it's solely a problem with the USB serial bus or if it's actually getting further on in the process but hanging somewhere else. I'm leaning towards a USB bus issue in bluefruit since I get log data with a bad linker address but don't when I'm using the default.
I'll obviously keep playing with it, but I suspect there's something wrong with the Bluefruit lib that is causing this interaction to be unhappy. This is actually my first time playing with Arduino so I might be missing something obvious when working through the Bluefruit libs. Their library might be tightly coupled to the bootloaders they have written, rather than being general enough to work with the Nordic Secure bootloader, which this also doesn't seem to work with.

Looks like someone with the stock Nordic bootloader is also having the issue: https://github.com/adafruit/Adafruit_nRF52_Arduino/issues/200#issuecomment-447921050. It looks like that issue was closed without resolution, so it looks like Adafruit just might not support it.
In that case you might be on your own either finding or writing a more standard nRF52 BLE library for Ardunio.

Thanks Charles, I appreciate the time you spent taking a look.  At the very least we have a better idea what's going on.
I wouldn't have the time or skillset to write my own BLE library to replace Bluefruit, but I can't help but think there might be a lot of other people who might be in a similar situation as me - wanting to migrate away from Adafruit's bootloader but still use Arduino and Adafruit's BLE libraries.  Perhaps it would be worthwhile opening a specific issue in "Adafruit_nRF52_Arduino" to raise awareness of your bootloader and that Bluefruit BLE issues might be able to be fixed.

Sure. Just to clarify though this issue is related to the Nordic Secure Bootloader, which this is built off of. If you flash the example secure_dfu to the board you'd get the same error.
adafruit/Adafruit_nRF52_Arduino#200 (comment) seems to already raise the issue, and Adafruit doesn't seem to be putting any support into it.
I'm not able to rewrite their library at this time. I'm sure some people could use Arduino nRF52 BLE but I don't have the time right now to undertake that. Given this is an upstream issue I'm going to close this issue out. My advice would be to write your own app using the Nordic SDK for any BLE functionality you need, at least until Adafruit can support the secure bootloader.


⚠ Bofrost.at has degraded performance

In e035d13, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1211 ms

Resolved: Bofrost.at performance has improved in 3ff4f07 after 306 days, 16 hours, 44 minutes.


Extracting closure type arguments and return type

Not a bug. Just a help request.
I have a struct the looks like this:
struct Environment {
  var call1: () -> Void
  var call2: () -> Foo
  var call3: (Foo) -> Void
  var call4: (Foo, Bar) -> Bazel
}

And I would like to get for each ivar, the arguments in and the return type:
call1: ()
call2: ()
call3: (Foo)
call4: (Foo, Bar)
---
call1: Void
call2: Foo
call3: Void
call4: Bazel

All I seem to have access to is typeName, which I could try using split on.
{% for element in var.typeName|split:" -> " %}
    {% if forloop.first %}
        parameters: {{ element }}
    {% endif %}

    {% if forloop.last %}
        return type: {{ element }}
    {% endif %}
{% endfor %}

But I'm hoping I've just overlooked something about function types and there was an easier way. 🤞
I'm hoping for something like method which has parameter lists and return type.
Thanks!

we have closure type that should have all the stuff https://cdn.rawgit.com/krzysztofzablocki/Sourcery/master/docs/Classes/ClosureType.html

Yes that's exactly the shape I'm interested in. Thanks.
May I ask how I get access to a ClosureType from the above type? When I loop through the instanceVariables, this is all I see:
Variable:
    name = call1,
    typeName = () -> Void,
    isComputed = false,
    isStatic = false,
    readAccess = internal,
    writeAccess = internal,
    isMutable = true,
    defaultValue = nil,
    annotations = [:],
    attributes = [:],
    isFinal = false,
    isLazy = false,
    definedInTypeName = Optional(Environment),
    actualDefinedInTypeName = Optional(Environment)

Variable:
    name = call2,
    typeName = () -> Foo,
    isComputed = false,
    isStatic = false,
    readAccess = internal,
    writeAccess = internal,
    isMutable = true,
    defaultValue = nil,
    annotations = [:],
    attributes = [:],
    isFinal = false,
    isLazy = false,
    definedInTypeName = Optional(Environment),
    actualDefinedInTypeName = Optional(Environment)

Variable:
    name = call3,
    typeName = (Foo) -> Void,
    isComputed = false,
    isStatic = false,
    readAccess = internal,
    writeAccess = internal,
    isMutable = true,
    defaultValue = nil,
    annotations = [:],
    attributes = [:],
    isFinal = false,
    isLazy = false,
    definedInTypeName = Optional(Environment),
    actualDefinedInTypeName = Optional(Environment)

Variable:
    name = call4,
    typeName = (Foo, Bar) -> Bazel,
    isComputed = false,
    isStatic = false,
    readAccess = internal,
    writeAccess = internal,
    isMutable = true,
    defaultValue = nil,
    annotations = [:],
    attributes = [:],
    isFinal = false,
    isLazy = false,
    definedInTypeName = Optional(Environment),
    actualDefinedInTypeName = Optional(Environment)

I'm spoilt by strong types in Swift, and I'm not sure how to navigate this. Appreciate any assistance.

you should be able to use typeName.closure when typeName.isClosure

Thanks so much!
For anyone else that found this helpful, here is my stencil: https://gist.github.com/rjchatfield/6472bbc5a977aacf407d1a59e524ab6f


SimpleOn and SimpleOff button not documented

On the System tab on the main RPICam Web interface there is a button labeled SimpleOn or SimpleOff.
I cannot find this documented on the wiki or anywhere and it appears to just toggle between states on the button without any effect.
What is this button meant to do?

turning it on shows a Simple button in top right hand corner to allow you to switch to screen just showing camera and no menus, and then can click Full button to switch back

Thank you.
Is this documented on the wiki somewhere?

It is described in the section 2.1 Basic usage

Ok, I see it now... I was searching the wiki for 'SimpleOn' (the button label).
Thanks.


Revert the revert https://github.com/libra/libra/pull/4783

Motivation
Fix the gossip/discovery issue.
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

confirmed cluster test works

@bors-libra r=gregnazario

:pushpin: Commit 27e41df has been approved by gregnazario

:hourglass: Testing commit 27e41df07df73be0806c243e91a55627e06a7d28 with merge f50eeea23363d6e07184694702d7a98c8f4ef2c6...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: gregnazario
Pushing f50eeea23363d6e07184694702d7a98c8f4ef2c6 to master...


Expose mesh structures in DB through API

Motivation
It would be super useful to be able to look at the mesh at the consensus level and see how every miner acted in the past, it's not easy to read anomalies of 50 blocks pointing to 50 blocks in every layer and more, but with such visualization we might be able to recognize faulty nodes whether because of bugs or adversarial nodes..
Task
Basically we should expose an API endpoint to read layers, epochs and blocks from the database, since we can only care about
data inside the database this might not add a lot of synchronization complexity.
this should return all the data we have about these objects, for example for a block we would want the header as well with the view, votes and the active set size.

We need to figure out what is the appropriate api service to add these too. If this block data is part of the mesh which is in consensus and supposed to be identical across all nodes after tortoise verified the block's layer then it should go into the mesh api service. If this data is different from node to node then it should go into the node service which is designed to display data as the node sees it which may be different than the state of other nodes. So, it will be helpful if we can list the data we want to add and it is possible that some data is node-specific and some is mesh- wide.
Also - are these data structures you mention above stable in the node and ready for api integration? @y0sher

Actually they aren't final yet, they are about to change when the verifying tortoise will be merged. This data is mesh data, should or consistent across nodes (maybe not for recent layers).

Layers, epochs, blocks, etc. are already exposed through the API - I think there are two questions to ask here:

What's missing? E.g., we don't show things like edges/votes right now
Does the interface need to be different for a specific use case, e.g., debugging or analysis? Right now you can only see blocks via layers, maybe we'd want a different endpoint to dump all block data, or to fetch a block by block ID, that sort of thing

for debugging and analysis, this is a real time view to see how miners behave, with blockchains and their explorers usually a block is created every few minutes and it's pretty easy to see its content and the previous block which he points to, this way you can see how every miner behaves.. with mesh this is a little bit trickier because even if you have access to all this information ins some structural format it will still be hard to follow. and yet I think this could be a very powerful debugging tool.
basically what's missing could be just adding view and vote edges in block's info (textually) and linking to the block pointed and it's layer, we could probably show more interesting info like the identity that created this block and other block she created..

Makes sense. Some of this stuff is already there, e.g., smesher that created a block, but adding the other stuff would be nice for debugging. I don't see any real harm in adding this to the existing endpoints consumed by the explorer/dash backend, they can just ignore data items they don't care about. Or we could think about designing a new, more detailed debug endpoint if we think the use cases are really different.


Configurable titles for menu extension points

This is related to #147746, which is closed for comment.
It appears that menu items (contribution points) now support a title attribute. But those title values do not appear to be used by the menus - the command titles are used.
As #147746 points out, commands run in different contexts can have different meanings. E.g. when a 'Delete' command is applied to a tree node via a context menu, the context is a single item and the command is usually spelled 'Delete' or 'Delete {singular form}'. When that same command is run from the command palette, it might provide a pick list and support multiple items and so the command is spelled 'Delete {plural form}'.
Example:
{
  "contributes": {
    "commands": [
      {
        "command": "sample.delete",
        "title": "Delete Samples"
      }
    ],
    "views": {
      "explorer": [
        {
          "id": "samples"
        }
      ]
    },
    "menus": {
      "view/item/context": [
        {
          "command": "sample.delete",
          "when": "view == samples",
          "title": "Delete"
        }
      ]
    }
  }
}

In this example, a right-click on a node in the samples view shows 'Delete Samples' rather than 'Delete'.
It's possible to create multiple commands as a work-around, but this is quite a bit more complexity as the additional commands must be removed from the command palette, in addition to the additional configuration. And this just to modify the title shown in a particular context.
I'm not sure if the current behavior is intentional or not so I'm opening this as a feature request.

It appears that menu items (contribution points) now support a title attribute

That is not correct. All UI related properties must be defined for the command, not for a possible rendering location. However, when defining a command you specify a shortTitle. Menus (as consumer of these UI properties) will then decide to use the long or short title


Add line-height to a/button to fix inconsistency

Having a button next to a (buttonized) link presented with different heights.

Also, as you might be able to see from the attached image, I had to force the font-family for the button. (I'm sure there is a better way to fix it.)

Thanks @edlinkiii! I had to do a slight tweak, but appreciate you catching this. It's been added to v1.3.


Creation time of different tags

While pushing images to Harbor, if the same image is tagged with different tags, the creation time of the UI is the same for all the tags.
Following steps can be used to reproduce:
docker pull hello-world
docker tag hello-world <IP_ADDRESS>/abcd/hworld:1.0
docker push <IP_ADDRESS>/abcd/hworld:1.0
docker tag hello-world <IP_ADDRESS>/abcd/hworld:2.0
docker push <IP_ADDRESS>/abcd/hworld:2.0

In this case, the creation time for both the tags would be the creation time when the second image is pushed.

@srm912
The creation time is from the docker registry. It should be same for the same image even it's tagged with different tags. The time is the 'docker build' time.

@steven-zou This makes sense from the registry POV. But as a Harbor end user, two tags/images having the same creation time might be slightly confusing. And from the perspective of the end user, how did I manage to update the time of an earlier tag when that particular tag wasn't even touched.
I get it that this is the correct functionality from the docker perspective, but on the Harbor UI it might cause the user to be confused.

I don't think we plan to fix this.
Closing.


Check if we can generate beans.xml for MP automatically

It may be useful to add a feature to generate beans.xml if not present in a project for Helidon MP applications.
This could be done using an annotation processor that would be automatically included in our dependency tree.
Must be possible to disable it (exclusion, compiler option)

Hmmm, have mixed feelings about this one. Developers should control what is and what is not a bean. What if classes don't satisfy the requirements of a CDI bean? That would result in a startup exception.


Vim/Tmux not taking the full size of the window

Which operating system does the issue occur on?
MacOS 10.14.3
Please look at the following screenshot:

The green is the color of the terminal and vim has a different color to make it pop out more.
As you can see there's a border to the right and bottom. This doesn't seem to happen on iTerm.

If there is not enough space for another cell, the additional content has to be filled with something.
If it is desired that the additional content is spread evenly, there's a configuration setting for that in the config file.


HV-1400 Replace remaining package.html files with equivalent package-info.java

https://hibernate.atlassian.net/browse/HV-1400

I also replaced occurrences of <code> with {@code }.

Merged, huge thanks for that!

+1, that's very helpful!