TB-3296 Add diamond asset

What 🕵 🔍
Add diamond asset required by the payment UI story.

References 📝 🔗

TB-3296

Codecov Report

Merging #64 (ae5ddd2) into main (279e565) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
- Coverage   49.92%   49.89%   -0.03%
==========================================
  Files          54       54
  Lines        1955     1956       +1
==========================================
  Hits          976      976
- Misses        979      980       +1

Impacted Files
Coverage Δ

lib/src/linden/xassets.dart
4.26% <0.00%> (-0.03%)
: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 279e565...ae5ddd2. Read the comment docs.


Best way to schedule per environment?

In some environments I may want to run a job more often, in other environments I may not want to run a job at all.
What is the best way to have different job schedules per Rails environment?  Considering that most non-prod environments would have the same schedule so I would prefer not to have multiple versions of the same schedule everywhere.
I am using the sidekiq yml to schedule the jobs.
Are the jobs scheduled on the client side and not the server or both, and is there a way to restrict it to the client?
Thanks

Hi @sterankin
You can have smth like this in your sidekiq.yml config file:
production:
  :verbose: false
  :logfile: ./log/sidekiq-production.log
  :schedule:
    SampleJob:
      args: ['production']
      every: '20s'

development:
  :verbose: true
  :logfile: ./log/sidekiq-development.log
  :schedule:
    SampleJob:
      args: ['development']
      every: '7s'

In the example below, "ThisTask" was scheduled ok in the development environment, but "SomeOtherTask" was not scheduled, my assumption would be that since "SomeOtherTask" sits outside of the environments, then it should get scheduled everywhere?
---
:concurrency: 5
:pidfile: /tmp/sidekiq.pid
development:
  :concurrency: 5
  :schedule:
    this_task:
      cron: '00 23 * * *'
      class: ThisTask
qa:
  :concurrency: 5
integration:
  :concurrency: 25
staging:
  :concurrency: 25
production:
  :concurrency: 25
  :schedule:
    this_task:
      cron: '15 22 * * Sun'
      class: ThisTask
:queues:
  - default

:schedule:
  some_other_task:
    cron: '00 22 * * *'
    class: SomeOtherTask

The config file is loaded by Sidekiq, although it honours environments, any key overrides the value from the global. You'd need a merge-like feature, which sidekiq doesn't provide.
YAML alisases and anchors should work here. See https://gist.github.com/bowsersenior/979804
Also take a look at http://yaml.org/YAML_for_ruby.html


Add CommonJS default export via Babel plugin

Should fix #13.

Thanks! This looks great! Trying it out locally before merging

It doesn't look like this works.
From the docs:

This plugin follows the babel@5 behavior - add the module.exports if only the export default declaration exists.

I think only is the key word here. Cxs exports more than one thing

@jxnblk ah, that’s too bad, but it makes sense. Thanks for the quick review.


[Update] Refactor ethers adapter and pin ethers version

#4430  👈
main

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

Join @jnsdls and the rest of your teammates on  Graphite


Cleanups and additions for the Aho-Corasick replacement stuff

Most notably adds an option to make case-insensitive replacements. Other options are provided as a courtesy. Fiddly DFA/NFA settings are not provided as auto_configure automagically sets up DFA if the matches array has less than 100 items.

with 5000 calls and The Syndicate have cunningly disguised a Syndicate Uplink as your PDA-Francis Davies on your belt. Simply enter the code "423 Delta" into the ring message select to unlock its hidden features. as test input, the benchmarks are:

default shakespearify: 2.282
case-sensitive rust-g: 0.333
case-insensitive rust-g: 0.355
replacements array supplied with haystack with case-insensitive rust-g: 0.379

Non-default matchkinds may have added benefits.


Highly suspect values from single-shot measurements.

I am getting highly suspect values from single shot measurements.
As low as 217 ppm, with wild swings to 700, indoors.
I don't think they are correct.
I feed ambient pressure (991 currently, in my location) and wait for the data ready signal.
But I am getting nonsense back.
Is my sensor broken? Is single-shot function broken?
...
SensirionI2CScd4x cdos;
...
static void setupCO2Sensor(void)
{
  cdos.begin(Wire);
}

static void calibrateCO2Sensor(uint16_t pressure)
{
  const uint16_t err = cdos.setAmbientPressure(pressure);
  assert(err == 0);
}

In the main loop:
  // Request a co2 measurement.
  uint16_t err = cdos.measureSingleShot();
  assert( err == 0 );

  // Get the barometric pressure.
  const uint16_t pre = updateBarometer();

  // Calibrate the co2 device.
  calibrateCO2Sensor(pre);

  for (int attempt=0; attempt<10; ++attempt)
  {
    uint16_t rdy = 0xffff;
    uint16_t err = cdos.getDataReadyStatus(rdy);
    assert(err==0);
    Serial.println(rdy);
    if ( (rdy & 0x7ff ) != 0 )
    {
      uint16_t co2;
      float temperature;
      float humidity;
      uint16_t err = cdos.readMeasurement(co2,temperature,humidity);
      assert(err==0);
      Serial.println("co2:");
      Serial.println(co2);
      Serial.println("temperature:");
      Serial.println(temperature);
      Serial.println("humidity:");
      Serial.println(humidity);
      update_status_lines( pre, co2 );
      break;
    }
    if ( attempt==9 )
    {
      Serial.println("co2 data never became ready.");
    }
    delay(1000);
  }

Note: for some single shot measurements, the data rdy signal is never shown.

Hi @stolk
Thank you for reaching out to us. Did you consider the details mentioned in the datasheet regarding single shot measurements?
Here's the section from https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/9.5_CO2/Sensirion_CO2_Sensors_SCD4x_Datasheet.pdf
The relevant part is marked in bold, but please read the whole thing.
3.10 Low power single shot (SCD41)
In addition to periodic measurement modes, the SCD41 features a single shot measurement mode, i.e. allows for on-demand
measurements.
The typical communication sequence is as follows:

The sensor is powered up.
The I2C master sends a single shot command and waits for the indicated max. command duration time.
The I2C master reads out data with the read measurement sequence (chapter 3.5.2).
Steps 2-3 are repeated as required by the application.
 After a power cycle, the initial two single shot readings should be discarded to maximize accuracy. The idle current in
between measurements is 0.15 mA (typ.), respectively 0.2 mA (max.). The energy consumed per single shot typically is 243 mJ
(296 mJ max.).
As for the periodic measurement modes, the automatic self-calibration (ASC) is enabled per default in single shot operation.
The automatic self-calibration is optimized for single shot measurements performed every 5 minutes. Longer measurement
intervals will result in less frequent self-calibration sequences. Note that no self-calibration is issued if the sensor is power-cycled
between single shot measurements Please consult Chapter 3.7 for a detailed description of the automatic-self calibration and
the corresponding commands.

I suspect an unstable power supply has caused this issue.
I have moved to automatic sample mode, and a different microcontroller, and the measurement values are more stable now.


scrollbar up and down arrows do not work in IE 9.

Hi guys,
I have a ui-grid and I need to enable the scroll bars. The problem is when I click the up and down arrows. These are not working and I do not get any error.
Does someone have any idea how to fix this or where should I start looking ?
Best regards
Henry

With the recent change to using native browser scrollbars as part of our container, rather than scrollbars in their own container, I'd expect this to be solved.  @alexandery, could you confirm?

@PaulL1  I will be able to try the new version out in the next few day, possibly early next week as it is not very simple for me to migrate from RC-16 to the latest with the changes in paging/pagination + CSS issues on IE9 in the latest release seem to affect my code again. I should be able to migrate soon enough and then I will test this feature.

This works in IE9 now.

OK, thanks, closing.

@PaulL1
Hi Paul I am on version 3.0.0-RC.18 and cannot see that change, Am I using the right version?

Try using the unstable, or looking at the tutorials.


ReferenceError: Property '_setGlobalConsole' doesn't exist

Describe the bug
As soon as I ran app got following error

Requiring module "..\gromainui\node_modules\react-native-draggable-flatlist\lib\index.js", which threw an exception: ReferenceError: Property '_setGlobalConsole' doesn't exist, js engine: hermes

To Reproduce
Just implement the basic Draggable Flatlist. then you can see this error
Platform & Dependencies

Platform: android
React Native version: 0.63.2
Reanimated version: 2.0.0-rc.2
React Native Gesture Handler version: 1.9.0

Additional context
Please note that for the first time when I run the app, everything was fine. After working for some time got the error suddenly.

looks like a bug with hermes/reanimated: https://github.com/facebook/hermes/issues/444

looks like a bug with hermes/reanimated: https://github.com/facebook/hermes/issues/444

@computerjazz Thank you for your response. I have gone through following issues,
facebook/hermes/issues/444
react-native-reanimated/issues/1640
And realized that many people are facing this issue because of react-native-reanimated and there is no fix as of now. Is there any alternative or is it possible to use react-native-draggable-flatlist without depending on react-native-reanimated?
Even though it's  a great package unable to use it because of mentioned error. Please suggest any alternative.

@computerjazz Thank you for your response. I have gone through following issues,
facebook/hermes/issues/444
react-native-reanimated/issues/1640
And realized that many people are facing this issue because of react-native-reanimated and there is no fix as of now. Is there any alternative or is it possible to use react-native-draggable-flatlist without depending on react-native-reanimated?
Even though it's  a great package unable to use it because of mentioned error. Please suggest any alternative.

there is no way to use this package without reanimated.

there is no way to use this package without reanimated.

closing as the issue is outside the scope of this package

closing as the issue is outside the scope of this package

I have resolved the error by following this thread,
https://github.com/software-mansion/react-native-reanimated/issues/1640

I have resolved the error by following this thread,
https://github.com/software-mansion/react-native-reanimated/issues/1640


[ ipvansih  proxy list not working

Hello everyone
I have problems in proxy socks5
When I  import ipvanish proxy list  socks 5
It doesn t work
Please could  anyone helpe me
Thanks

OB1 is not supported anymore, switch to OB2


Support Unity Package Manager

It would be cool if the project would support the Unity Package Manager.
I have made a start to this in my fork  if you wanted to check it out.
The only major thing is I removed the examples as the developer can't remove them if they want because packages are immutable. I'm not really sure how to handle that.
If you want to go down this route I can make a way to turn off examples so developer doesn't need to see them.
Thanks for this code, it is very handy :)

There is a way to include examples, I've already reorganized the files on my fork. I'd say it's good to merge, the only thing that might need changing are the URLs in package manifest, to be to @marijnz's liking.

Nice I didn't know you could do that with the folder names. I need to look into how UPM works. It was a better idea to make it a new branch too. I knew someone would've done this already but I couldn't be bothered going through each fork to see if someone had. I think I will delete my fork and use yours now 😄
One thing I'm confused by though is Unity ignores the Example~ folder so would a developer be able to see the examples in use without manipulating the directory name or path?
Also, your fork doesn't have the new editor skin fixes, but I wouldn't pull from upstream just yet, there is a compiler error caused by #14 but I've made a fix in #17 waiting to be merged. Its a simple fix though, so you could pull it and then create a PR with your fork? That's to say Marijnz even wants to go this way.

I just discovered OpenUPM  would be even cooler to add it to this

One thing I'm confused by though is Unity ignores the Example~ folder so would a developer be able to see the examples in use without manipulating the directory name or path?

Yes, it's a feature of the package manager. It looks like this:

Also, your fork doesn't have the new editor skin fixes, but I wouldn't pull from upstream just yet, there is a compiler error caused by #14 but I've made a fix in #17 waiting to be merged. Its a simple fix though, so you could pull it and then create a PR with your fork? That's to say Marijnz even wants to go this way.

That'd be an unrelated change in my PR so I'll wait for that to get sorted out in this repo and then I'll update mine and make a PR.

Didn't see the examples feature before. Looks good. I'd merge a PR if there is one :)

Made the PR #18

Hi, when I go to https://openupm.com/packages/com.marijnzwemmer.unity-toolbar-extender/ I don't yet see a install version available. I'm using this package in my own package and the creator of OpenUPM asked me if I was interested in publishing it there as well, which I am, but I rely on your package being available there first. When could I expect the install on OpenUPM to work as expected for your package?

Hi @marijnz,
I'm the creator of OpenUPM. All you need to do is creating a new GitHub release v1.2.0 from your master branch. Our build pipelines will catch up in 5~10 minutes to release a package.
Further reading

Managing release with CLI: https://medium.com/openupm/how-to-maintain-upm-package-part-4-managing-package-release-with-cli-972ff5311163
Or managing release with CI: https://medium.com/openupm/how-to-maintain-upm-package-part-2-f352fbf5f87c

https://openupm.com/packages/com.marijnzwemmer.unity-toolbar-extender/
Thanks. It looks good.

Thanks! Now I can update my package to use this one as well :D


FR: Ability to disable some commands in command palette

Is Your Feature Request Related to a Problem? Please Describe.
I only use the linter on-demand because i have many files that i don't want to lint and it would be too time-consuming/complex to update all files so i could use linting project-wide.
I want to keep the extension enabled but I'm paranoid that I'm going to lint all files.
Describe the Solution You'd Like
I want to disable some/all commands from the command palette (commands pictured below)

Describe Alternatives You've Considered

Being really careful.
Going through thousands of my notes and updating them so they dont get accidentally linted.

Additional Context
n/a

why other options like ignoring folders is not viable here.

I have a lot of folders, and each folder's contents vary of files I'd like linted and files I would not like linted. I am also likely to add folders over time and forget to update my ignored list.

Could you explain why using Ctrl+S is not viable for your use case?

Because I still might accidentally choose "lint all files" in the command palette.

Thanks for helping me better understand what is going on here.

I appreciate the response - thanks for wanting to better understand the problem.

Gotcha. Is there a reason to have the commands be able to be disabled when they require you to select ok to at least 1 modal dialog? Just checking to make sure that is not enough of a deterant for you.

Gotcha. Is there a reason to have the commands be able to be disabled when they require you to select ok to at least 1 modal dialog? Just checking to make sure that is not enough of a deterant for you.

Oh. I ... didn't actually know that there was a confirmation dialog — I hadn't used the command because I didn't wanna mess up my vault 😅 That makes a lot of sense and does alleviate my want for this FR. I'll go ahead and close. Thank you 👍


Fix int to uint implicit cast error when use mat3 uniform in compatibility renderer

This should fix #81473
In _get_global_shader_uniform_from_type_and_index, we should use unit to do the math when the uniform is an index to the global table.
But this commit might have other implications, feel free to correct me !

Thanks!

Cherry-picked for 4.1.4.


Web: Hot Restart leads to multiple instances

Hi, we have some issues when using hot restart for web.
It seems to open a new database/connection each time you perform a hot restart and when inspecting the memory with Chrome, we see that with each hot restart a new drift_worker will be added. Reloading the page works fine, so it's most likely only an issue during development.
The same issue happens with the flutter_web_worker_example, only not as easily visible there. But if you add a print statement in the allEntries subscription it will be executed multiple times, as often as you performed hot restarts.
Is there any way to close the connections/workers so we can use hot restart during development?

I think a proper solution is blocked by https://github.com/flutter/flutter/issues/10437. Hot restarting a Flutter web seems to reset state, so there really is a second database connection being created. There's not much we can do about that. The problem is that the old connection uses native web APIs like workers that aren't closed automatically because we still have event listeners attached to them.
This workaround seems to clean up resources by storing the pending database in a JavaScript global and fetching the old database after a restart to close it afterwards. That seems to do the trick, but it feels very hacky.
diff --git a/examples/flutter_web_worker_example/lib/main.dart b/examples/flutter_web_worker_example/lib/main.dart
index fb611392..7b58607f 100644
--- a/examples/flutter_web_worker_example/lib/main.dart
+++ b/examples/flutter_web_worker_example/lib/main.dart
@@ -1,3 +1,5 @@
+import 'dart:js_util';
+
 import 'package:drift/drift.dart' as drift;
 import 'package:flutter/material.dart';
 import 'package:flutter_web_worker_example/src/database/database.dart';
@@ -25,6 +27,13 @@ class _DatabaseSampleState extends State<_DatabaseSample> {

   @override
   void initState() {
+    if (hasProperty(globalThis, 'database')) {
+      final oldDatabase = getProperty<MyDatabase>(globalThis, 'database');
+      oldDatabase.close();
+    }
+
+    setProperty(globalThis, 'database', database);
+
     database.allEntries().watch().listen((event) {
       setState(() {
         allItems = event;