Validations on collections with dynamic elements

What i have is basically a collection of objects. There are inputs with v-model associated to those objects' properties and a button for removing an object from the array. Think of this as a list of contacts.
What the issue refers to specifically is: that when an element is removed from the array (which it's done with splice) the validations of the items left, get messed up. It seems like it stops tracking the items and even after retrying with several other ways, it's still the same.
Some of the solutions that i've tried are:

Using v-bind:key in the template
Using $trackBy with a key consisting in a random generated pseudoId for each element in the array
Instead of using splice for removing the element, replacing the whole array
Using $reset
Combinations of all the options from above

I've noticed that even if i used the $trackBy option and  "printed" the $v object, the key for each object in the collection still corresponds to the item's index in the array.
I'll put some example code below.
Forgive me if there's something wrong with it, i'm writing it from memory, but i hope you get the point

    <input type="text" v-model="person.firstName" />
    <input type="text" v-model="person.email" />
    Email is required
    <button v-on:click="remove(index)>Remove</button>

{
    validations : {
        people : {
            $each : {
                email :  {
                    required : function(email, person) {
                          return (person.firstName && email) || email;
                    }
                }
            }
        }
    },
    data : {
        people : [{     // initialize as empty for showing the empty inputs
             firstName : "",
             email : ""
        }]
    },
    methods : {
        add : function() {
            this.people.add({
                 firstName : "",
                 email : ""
            })
        },

        remove : function(index) {
            if (this.people.length === 1 ) {
                this.people.splice(0, 1, {
                     firstName : "",
                     email : ""
                });
            } else {
                this.people.splice(index, 1);
            }
        }
    }
}

This seems like a bug to me, I will need to test it more, but I think I might recognise it already.
It seems like you are referencing the object directly on array, but through the second parameter. It might be related to #51. While it is a bug (which might be fixed already, to be released), you probably can avoid it by simplifying your logic.
$each: {
    email :  {
        required : function(email, person) {
            return (person.firstName && email) || email;
        }
    }
}

This validator can be simplified to not reference multiple values at once. (A and B) or B means simply B.
$each: {
    email :  { required }
}

I've noticed that even if i used the $trackBy option and "printed" the $v object, the key for each object in the collection still corresponds to the item's index in the array.

That's expected. $trackBy influences the validation state tracking, but original keys are still used as indices on validation object.

Hello @Frizi, thank you for the answer and for the validation advice, but unfortunately it's just part of what the issue is.
The real problem i think it's related to what you said previously about keeping track of changes in arrays and not recomputing the $each validator. At the end, the items left in the array aren't being validated.
Can you let me know if this could be fixed or if it's a known issue/limitation?

Please check it against current master. It contains said fix. I'm only waiting for $params feature to be finally finished and merged, then I'll do the release. If there is still a bug, it can also be fixed before that.

Checked with master. It's working now, but it needed a little bit of workaround.
What i did was generating a pseudo id property to each element and using $trackBy with that id. I said i tried that before and didn't work, but now it's working good
@Frizi Thanks a lot! You may close this issue if there aren't more questions/suggestions :wink:

@sesegura Could you also try without any $trackBy? Default is to track by the key/array index, it should still work.

Already tried but didn't work either.
Also tried with v-bind:key="item.pseudoId and no $trackBy but no results.

Can you post the working example? It's a bug if it doesn't work by default.

This is kind of the setup that is currently working for me:

    <input type="textfield" name="name" v-model="item.name">
    Error
    <button v-on:click="remove(index)">Remove</button>

<button v-on:click="add">Add</button>

{
  validations : {
    items : {
       $each : {
          $trackBy : 'pseudoId',
          name : VuelidateValidations.required
       }
    }
  },
  methods : {
      add : function() {
          this.items.push({
              pseudoId : Math.random(),  // the function i'm using is actually more elaborated than this
              name : ''
          });
      },
      remove : function(index) {
          if (this.items.length === 1) {
              this.items.splice(0, 1, {
                  pseudoId : Math.random(),
                  name : ''
              });
          } else {
              this.items.splice(index, 1);
          }
      }
  }
}

          name : VuelidateValidations.required

This is odd. What you ment is probably
name: {
  required: VuelidateValidations.required
}

What you did should make the actual object required, which is always true. Actually weird it works, I have to test it.

Sorry, i wrote the previous code example from memory, the actual example has that structure with required being inside the name object.
I'll edit my previous comment for making that fix in the example.

@sesegura Thanks, that makes a lot of sense now 😄

I have a similar issue.
I use an array hold a list of choices of a question. Each choice have an input field with v-model bind to the label property of the choice in the array. And in the validation, the label is required.
I put a placeholder choice with empty label in the array for initial rendering. And then when editing an existing question which has a list of choices, I use splice(0) to clean up the placeholder choice and then use push() to add the existing choices.
The validation of the first choice always fails, even after I edit the choice label. And it is kind of fixed by printing the $v object.
Here is the code.

  <input type="text" class="form-control input-sm label-input" v-model="choice.label">

Blank choice is not allowed

validations: {
    question: {
      title: {
        required
      },
      type: {
        required
      },
      choices: {
        required,
        $each: {
          label: {
            required
          }
        }
      }
    }
  }

/* This is the part that I add the placeholder choice */
this.question.choices.push({id: 0, label: '', sortOrder: 1})

The hack I use is print out the first choice in the $v object.

{{ $v.question.choices.$each[0] }}

@sesegura @jamesjieye Please check your issues against latest version.

Bug fixed for me :)

@Frizi I think it will be great to add $trackBy to the collection example in the docs because for now, it's pretty hard to find it.
Actually, I found it in this issue, but not in the docs :)

Sorry folks , how would you validate dynamic select inside datatable
https://user-images.githubusercontent.com/47603281/52724826-74033080-2f86-11e9-9dd5-ea9db4dbfea2.png

Hi folks, im trying to achieve somthing similar but with a select inside a datatable ,but dont know how ,i want to click on validate button to validate all selects like this below:


Access form element dom node

Well so far unsuccessful to get how to manipulate the form.
Let's say you'd want to hide/remove your form after a successful submit
I guess that's pretty simple; but my Winterfell.getDOMNode()'s object remains undefined wherever I check it

Hi there.
You should not be directly manipulating the form, Winterfell has customisations for things like that.
You should not need to get the Winterfell DOMNode as you should already have a reference of what you render it in to. You could can then either remove the node or use React. unmountComponentAtNode to remove the component through React.
PS: You can only use .getDOMNode inside of a react component and by the ref of an element. However you are trying to call .getDOMNode on an un-rendered React component, not an instant of one etc.

Allright thanks, I'll look winterfell's customisations


[MTB] Add Unit Tests for Benchmarks

We can create a Makefile and add the methods to create a test cluster if we are going with the kind and method to create multi-tenants(2 as per our present requirement). Then, we can create different environments or control them placing manifest yaml files with respective benchmarks and using those to validate our benchmark by asserting the output result with the given output next to yaml files.
In this way, a yaml file will be used for configurational checks in which one time that is applied to create a set environment and deleted to create an unset environment. For Behavioral checks many yaml files to create multiple environments to validate them against those.


For Automatically Refresh Data

Hey first of all thanks for the awesome plugin really helpful.Can you please let me know how to refresh the data automatically.Any plan for adding new commands?

Hi @Ravish1  are you find a solution to refresh data automatically ?

Hello @Ravish1 and @Amine8GHRIBI!
I think you need to import dart:async package, then in the initState() method you need to paste this code:
import 'dart:async';
@override
void initState() {
  Timer.periodic(Duration(seconds: 1), (Timer t) => getObdData());
  super.initState();
}

NOTE: you need to replace getObdData() and if you want to change the update duration you also need to replace seconds: 1 with another value.
The getObdData() method looks like this here for an example:
String speed = "N/A";
  void getObdData() async {
    try {
      speed = await BluetoothObd.increment;
      speed = await BluetoothObd.getSpeed;
    } on PlatformException {
      speed = 'N/A';
    }

    print(speed);
}

I hope I could help! :)

Hello @SzeligBalazs  @Ravish1  @Amine8GHRIBI
could you help me get started using this plugin? and does it still work?


Enable arbitrary shell commands for entrypoint

Fix https://github.com/dogecoin/docker/issues/18
Enable to launch arbitrary shell commands using docker run, like docker run -it [image] bash.
Following recommendation from official docker images:

All official images should provide a consistent interface. A beginning user should be able to docker run official-image bash (or sh) without needing to learn about --entrypoint. It is also nice for advanced users to take advantage of entrypoint, so that they can docker run official-image --arg1 --arg2 without having to specify the binary to execute.

[Broken]
Do not work when you're doing the following:
docker run -it [image] -testnet

Do not use dogecoind as default command.

Previous issue fixed.

[Broken]
Do not work when you're doing the following:
docker run -it [image] -testnet

the above command works on main if you add an additional - e.g.: docker run -it [image] --testnet

Do not use dogecoind as default command.
it still automatically executes if i run docker run -it <image> without options.

and if the purpose of this is to allow a beginner to get a bash shell why not use docker exec -it <image> bash?
also keep in mind that both commands will enter the container as root:
root@b6343fc79e8b:~# cd ../
root@b6343fc79e8b:/# ls -l
total 68
drwxr-xr-x   2 root root 4096 Sep 30 12:34 bin
drwxr-xr-x   2 root root 4096 Apr 24  2018 boot
drwxr-xr-x   5 root root  360 Dec  3 23:30 dev
drwxr-xr-x   1 root root 4096 Dec  3 23:30 dogecoin
drwxr-xr-x   1 root root 4096 Dec  3 23:30 etc
drwxr-xr-x   2 root root 4096 Apr 24  2018 home
drwxr-xr-x   1 root root 4096 May 23  2017 lib
drwxr-xr-x   2 root root 4096 Sep 30 12:33 lib64
drwxr-xr-x   2 root root 4096 Sep 30 12:32 media
drwxr-xr-x   2 root root 4096 Sep 30 12:32 mnt
drwxr-xr-x   2 root root 4096 Sep 30 12:32 opt
dr-xr-xr-x 457 root root    0 Dec  3 23:30 proc
drwx------   2 root root 4096 Sep 30 12:33 root
drwxr-xr-x   5 root root 4096 Sep 30 12:34 run
drwxr-xr-x   2 root root 4096 Sep 30 12:34 sbin
drwxr-xr-x   2 root root 4096 Sep 30 12:32 srv
dr-xr-xr-x  13 root root    0 Dec  3 23:30 sys
drwxrwxrwt   1 root root 4096 Dec  3 21:34 tmp
drwxr-xr-x   1 root root 4096 Sep 30 12:32 usr
drwxr-xr-x   1 root root 4096 Sep 30 12:33 var

which i've just tested deleting rm -rf * successfully so maybe we want to reconsider given the emphasis on security?
outside of that i've found a bug not solved by either main or this branch which is attempting to run as daemon:
docker run -it <image> -daemon, docker run -it <image> --daemon, docker run -it <image> dogecoind -daemon, etc. it starts to appear it works but then exits. forgive me if i'm missing something, am fine with the added functionality of simply running docker run -it <image> bash but am wondering if that's the only thing we're accomplishing outside the removing the extra - for args?

It's the expected behavior to enter as root, for example mysql is doing the same. Can't enter as user without specifying --user option. I do not see a way to achieve it, and it can also let user navigate in the container without trouble.
Nice spot for -deamon, not sure what is happening but possibly specific to this argument, not sure what's going on rn.
I'm getting the following error:
$ docker run -it dogecoin -daemon
2021-12-04 00:35:31
2021-12-04 00:35:31 Dogecoin version v1.14.4
2021-12-04 00:35:31 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2021-12-04 00:35:31 Assuming ancestors of block 77e3f4a4bcb4a2c15e8015525e3d15b466f6c022f6ca82698f329edef7d9777e have valid signatures.
Dogecoin server starting

yep, that's the same output i was getting too. and ok regarding root. will
ACK in one sec and leave it up to you and pat to decide whether we should
solve the -daemon flag now or in a separate PR.
On Fri, Dec 3, 2021 at 4:37 PM AbcSxyZ @.***> wrote:

It's the expected behavior to enter as root, for example mysql is doing
the same. Can't enter as user without specifying --user option. I do not
see a way to achieve it, and it can also let user navigate in the container
without trouble.
Nice spot for -deamon, not sure what is happening but possibly specific
to this argument, not sure what's going on rn.
I'm getting the following error:
$ docker run -it dogecoin -daemon
2021-12-04 00:35:31
2021-12-04 00:35:31 Dogecoin version v1.14.4
2021-12-04 00:35:31 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2021-12-04 00:35:31 Assuming ancestors of block 77e3f4a4bcb4a2c15e8015525e3d15b466f6c022f6ca82698f329edef7d9777e have valid signatures.
Dogecoin server starting
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dogecoin/docker/pull/19#issuecomment-985929370, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHTBONHLFJNNB2TZJJQKJFTUPFPDZANCNFSM5I7JFKKA
.


cmsisdap: Change JTAG to SWD sequence to more compatible one

This commit changes the sequence from direct JTAG to SWD sequence to JTAG to Dormant to SWD sequence.

Can someone test out the swd to jtag sequence? I don't have a JTAG target to test with.

I don't think that change is necessarily compatible, not all chips use the dormant mode. I think for chips using SWD version 1, we have to keep the existing sequence.

I started working on something similar in a branch, and passed in the targetsel value to the setup sequence.  Having targetsel / multidrop means that we know that SWD version 2 is used. Andt we can actually connect to the debug port in the sequence, which didn't happen before.
See https://github.com/probe-rs/probe-rs/blob/f831b0546e0756be901ad36c3b6179deaea8e785/probe-rs/src/architecture/arm/sequences.rs#L449

Thanks for working on this anyways! Could you try out my branch, just to make sure it fixes your issue?

Sorry about that, made it into an actual PR: https://github.com/probe-rs/probe-rs/pull/2092 At least CI will yell at me now when it doesn't compile.


Help using the bot

Hi there, i cant seem to find the * button to start using the bot.

Hello! I don't understand the question, what button are you talking about. Can you attach a screenshot?

Hello i'm trying to clone it but i seem lost


[karpenter] add support for Provisioner limits

[karpenter] add support for Provisioner limits
Signed-off-by: Amine Hilaly<EMAIL_ADDRESS>By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shapirov103 @youngjeong46Thank you for the quick review! I addressed all the comments. PTAL

/do-e2e-tests


feat: update design for schema preview page when selected table is empty

Description

Update the page design for the scenario when a user lands on the datasource schema preview page and selects a table which as no data.
It follows this design.
TBD: Cypress test case will be taken next. This PR is being merged into a feature branch hence, won't be available on release. The feature branch will be merged to release only when the Cypress test case has been added.

PR fixes following issue(s)
Fixes #28044
Media
https://github.com/appsmithorg/appsmith/assets/1757421/881874f1-3424-43b7-876d-fa6c900f7a85
Type of change

New feature (non-breaking change which adds functionality)

Testing
How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[x] Manual

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test


[MM-22555] Auto-fill server URLs when deep linking into the Desktop App and the server isn't configured

Summary
This PR add a quality-of-life change to the Desktop App, where now users are able to click on deep links for server they do not have configured in the app, and have the app automatically pre-fill the Add Server modal (or Welcome Screen) for them with the server information. From there, the user can simply click Connect.
On top of this, permalinks will be automatically redirected to under this flow, so you can get to the message you want to see quicker.
Done for 2024 November Hackathon.
Ticket Link
https://mattermost.atlassian.net/browse/MM-22555
Auto-fill server URLs when deep linking into the Desktop App and the server isn't configured

This could probably use an E2E test, but I want to make sure https://github.com/mattermost/desktop/pull/3201 is merged first, as deeplinking from cold is broken without that fix.

@yasserfaraazkhan Adding in case you want to take a peek now, but feel free to defer.


Update footer

Hey Carlos, here's the pr for issue https://github.com/scaffold-eth/se-2/issues/67
I added a placeholder for the color switch icon. Here's how it looks:

Thanks!

Looks great @edakturk14
Just made a tiny tweak to fix the spacing caused by flex.
Before

After


Update online documentation

PR-Codex overview
This PR updates dependencies and refactors code.
Detailed summary

Added a theorem contains_to_mem in Record.lean
Updated imports in PhiCalculus.lean
Modified object attributes in Parallel/Confluence.lean
Updated package URLs and versions in lake-manifest.json

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@Anatolay Great effort on your recent work! 🌟 For future reference, we recommend naming Git branches after ticket numbers (e.g., "44") instead of "docs". This helps streamline our workflow. While this resulted in a -10 point adjustment, your overall balance remains positive at +13. Keep up the good work and let's continue improving together!

@Anatolay Hey there, great job on your contribution! 🎉 You've scored +20 points this time: +25 for the base, but we had to deduct 5 because there was only 1 comment. Remember, more comments can boost your score! We love seeing your code, so keep 'em coming. Every hit-of-code counts (up to 30 points!), and thorough reviews can prevent deductions. Your current balance is +3. Keep up the awesome work!

@eyihluyc Great job on the review! You've earned +15 points: +25 base points, +0.02 per hit-of-code (capped at 30), -10 for having fewer than 6 comments, and +1 per comment (max 20). Your running balance is now +30. Keep up the good work and aim for more detailed reviews to maximize your bonus! 💻🔍


Publish Javadoc to javadoc.io

It would be nice if the following worked:
https://www.javadoc.io/doc/com.amazon.ion/ion-element/latest/index.html
Ion Java does publish a Javadoc artifact:
https://www.javadoc.io/doc/com.amazon.ion/ion-java/latest/index.html

https://www.javadoc.io/doc/com.amazon.ion/ion-element/latest/com/amazon/ionelement/api/package-summary.html 🥳


JSON Arrays

This pull-request adds the ability to read 1D and 2D arrays of Real / Integer / Boolean / String types from JSON files. Functions are added to ExternData.JSONFile to read each of these.
The JSON implementation has been changed to use Parson (https://github.com/kgabis/parson) instead of bsxml-json, as bsxml-json does not support numerical / boolean values or strings containing special characters and it's API for arrays is insufficient.
It is built for Windows 32 and 64 with Visual Studio 2010 and tested with Dymola 2018.

I would accept this until I see a test on Linux :stuck_out_tongue:

Very kind of you to volunteer to test it @dietmarw :-)

It would be great if we can have dynamic 2d arrays for csv, xml, xls and xlsx too for consistency.

Thank you. Merged manually. Updated binaries will follow soon.


Enh #7488: Added StringHelper::explode to perform explode with trimmin...

...g and skipping of empty elements

Code style is wrong
You do not need array_push for simple $array[] = ...;

Sorry for my bad, it's my first step to contribute Yii2, so hope on your patience

Sorry for my bad, it's my first step to contribute Yii2, so hope on your patience.

Its fine, you are always welcome :)

Now it's better?

Now its amazing! Just add your nickname right after change line inside changelog.md.

@SilverFire There is one more thing about algorithm
if ($skipEmpty) {
    if (static::byteLength($value)) {
        $result[] = $value;
    }
} else {
    $result[] = $value;
}

You can refactor it like:
if ($skipEmpty && !static::byteLength($value)) {
    continue;
}
$result[] = $value;

Its shorter and more clean.

@creocoder, you're absolutely right. Here is a new push.
What do you think about this small enhancement? Can it be useful?

@SilverFire Yes, its useful. For example same task i was solved inside mine https://github.com/creocoder/yii2-taggable/blob/master/src/TaggableBehavior.php#L216 . With that method it would be more clean.

I usually combine array_map with array_filter like so:
$value = array_filter(array_map('trim', explode(',', $value)));

Sometimes I add another array_map after array_filter to validate numerics:
$value = array_map('intval', array_filter(array_map('trim', explode(',', $value))));

But it's not really more readable than a simple foreach and I didn't do any benchmarks, so I don't know if it's faster.

I've done a simple benchmark:
            original * 100000: 1.6924879550934
             array_* * 100000: 1.4656081199646
array_* without vars * 100000: 1.4615139961243

@nineinchnick the second looks good, but my try of your benchmark shows another:
PHP 5.5.22
                original * 100000: 0.55539298057556
                 array_* * 100000: 0.69772720336914
    array_* without vars * 100000: 0.63055896759033

PHP 5.6.6
                original * 100000: 0.64687585830688
                 array_* * 100000: 0.73420190811157
    array_* without vars * 100000: 0.65790700912476

http://3v4l.org/cXsaN

I've updated the benchmark a bit and run it myself.
On my computer (i5, PHP 5.6.6) array_* versions are faster but most other machines it's the opposite. In conculsion I'd use the foreach version as it is more readable.

I've updated my benchmark with a version that allows to pass a callable or a string as $trim. This allows more flexibility in filtering. Also, when trimming is disabled, the array_* version are way (2x) faster.

Another update with more argument variants (trim/notrim and empty/noempty) tested at the same time.

I think we need go with array_* methods, its little faster on some test, its little slower on one tests.

On my computer (i5, PHP 5.6.6) array_* versions are faster but most other machines it's the opposite. In conculsion I'd use the foreach version as it is more readable.

Its very controversial conclusion. Its shorter and faster in most tests. I do not think anybody will open StringHelper, move to explode and will spens hours on meditating on its implementation. Readability sometimes make sence. But in general readability does not mean simple for php noobs, in second readability should never affect perfomance especially inside frameworks.

@creocoder I agree after studying the benchark results for a while.

Also agree, that array_* functions look good.
After applying array_filter the array's keys may be nonsequential like this:

1) yiiunit\framework\helpers\StringHelperTest::testExplode
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => 'Disable'
     1 => '  trim  '
-    2 => 'here but ignore empty'
+    4 => 'here but ignore empty'
 )

So need to wrap a result of array_filter with array_values to have sequential keys of an array.
This modification does not decrease performance of function.

#7488

Merged with some adjustments. Thanks!


WIP gnomeExtensions.fuzzy-app-search: init at 4

Motivation for this change
Add support for GNOME extension Fuzzy App Search
The patch is necessary because Nix doesn't use /usr/share/applications and ~/.local/share/applications. I've opened a PR to apply this patch to the extension.
Example in README works:

Things done

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

[X] NixOS
[ ] macOS
[ ] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] 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)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

This is a fork of https://github.com/fffilo/gnome-fuzzy-search but this repo had it's last commit in May 2020. On the GNOME extension page it is listed under the GitHub repo.  Should I rename the package or is this fine?

This is a fork of https://github.com/fffilo/gnome-fuzzy-search but this repo had it's last commit in May 2020. On the GNOME extension page it is listed under the GitHub repo.  Should I rename the package or is this fine?


Fix op resubmit logic in ContainerRuntime

Here is the sequence that does not work:

There 1 op in pending state manager: IdAllocation op
We get to ContainerRuntime.replayPendingStates() as result of resubmit flow.
IdAllocation op is resubmitted, it goes to its own batch

Because this op went through ContainerRuntime.submit(), this.updateDocumentDirtyState(true) is called.

When we are done with resubmit flow (bottom of ContainerRuntime.replayPendingStates()), call into this.updateDocumentDirtyState(true) is made (due to above point - document is dirty)
But pending this.hasPendingMessages() evaluates to false, and thus 0x3d3 is hit - it complains that we can't have document dirty and no pending ops.

Pending state manager does not have any ops - it usually does, as reSubmitBatch() flow flushes them to pending state manager (before we get to step # 4). But due to op being single, there is no flush there, which looks like a bug on its own.
And then hasPendingMessages() does not evaluate correctly, as it does not account for idAllocation batch - including relevant code:
	assert(
		!dirty || this.hasPendingMessages(),
		0x3d3 /* if doc is dirty, there has to be pending ops */,
	);

	private hasPendingMessages() {
		return this.pendingMessagesCount !== 0;
	}

	private get pendingMessagesCount(): number {
		return this.pendingStateManager.pendingMessagesCount + this.outbox.messageCount;
	}

	public get messageCount(): number {
		return this.attachFlowBatch.length + this.mainBatch.length + this.blobAttachBatch.length;
	}

Nice catch. Is there a test we can write for this scenario?


Hexaflake-20240614 change config

The configuration changes have been reverted.

The configuration changes have been reverted.
The run_hexaflake.py file is aligned with the run.py file, mainly by adding a password input before executing the instructions. If it cannot be merged, you can delete it.


Automated cherry pick of #2339: fix managered disk reset not update disk size

Cherry pick of #2339 on release/2.12.
#2339: fix managered disk reset not update disk size

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.12@f015d8a). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release/2.12   #2340   +/-   ##
==============================================
  Coverage                ?    7.1%
==============================================
  Files                   ?     454
  Lines                   ?   71403
  Branches                ?       0
==============================================
  Hits                    ?    5075
  Misses                  ?   65911
  Partials                ?     417

Flag
Coverage Δ

#aFlag
7.1% <ø> (?)

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 f015d8a...22a757d. Read the comment docs.

/approve
/lgtm


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

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


Give more verbose error if connections file is missing

If the user has not generated connection.inc.php file, he should get a more verbose error asking him to add the file.

Could you elaborate more on this? How should the error message be shown? e.g. as JSON or just simple text. Should we also send the status code (maybe 500)?, etc.

I think an appropriate JSON response and an 500 response code would be good enough!

@prabhakar267 : I am a first timer and I would like to take this up if no one is working on this.

Closing since already taken up in v2.


chore: delete obsolete // +build lines

This PR removes outdated // +build build constraints. I used go fix ./... to remove the // +build lines that have become obsolete in Go 1.18. See https://go.dev/doc/go1.18#go-build-lines.

Not needed because of #149


Failed launch in Android 9

Description

Steps to reproduce
just click launch and wait , then failed
this is my renderdoc log

Environment

RenderDoc version: v1.16
Operating System: Android 9
Graphics API: OpenglES 3.1 +
Device : SM-G9700

it is ok that debug my app by snapdragon profiler , but i want renderdoc , please help me

Hi there, your issue has been closed due to not correctly completing the prompted sections. Please read the documentation about filing issues which is linked from the template you used and open a new issue which does fill out the sections properly. Do not reply to this issue with more information, please open a new issue.
As detailed in the documentation and evident by the section title, for "steps to reproduce" you must actually provide steps I can take to reproduce the problem. Most commonly and simplest for everyone would be for example sharing your application or a capture file that shows the problem. If you can't share these publicly you can email me privately with a google drive/dropbox/etc link. If you can't share these even privately you should say that and provide a significant amount of information about what you are doing so I can hope to construct a reproducible test case, or suggest further diagnostic steps. If you don't do any of this your bug report is unlikely to be useful and will be closed like this one.
I try to address all github issues and fix bugs quickly, but badly formatted issues or poorly described bug reports especially are a significant drain on project resources. Taking a few minutes to file a good issue makes a huge difference and will get it addressed faster - everybody wins!
As linked above and in the issue template you were provided with there is documentation going into more detail about what makes a good issue.


Error when running angular 1.3 in production mode

Uncaught TypeError:   Object.getPrototypeOf called on non-objectinstrumentDigest
@ inspector.js:107bootstrapInspector
@ inspector.js:85detectAngular
@ inspector.js:74(anonymous function)
@ inspector.js:24(anonymous function)
@ inspector.js:467

There should be a fix on develop, could you try it ?
Instructions on how to install manually are in the README

I'll check that just after our LKE release :)

Will reopen if there is an issue with it


Unified Mode and MacOS testing

Description
Adds unified_mode to all resources
Add MacOS testing
Issues Resolved
Cookbook does not work on Chef 17
Check List

[ ] All tests pass. See TESTING.md for details.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.

Released as: 2.0.0


deinstall whole arkservertools

title.

To uninstall arkmanager:
arkmanager uninstall-tools

To remove the game server, simply remove the directory it's installed into (e.g. /home/steam/ARK)


[LAB] Week 2_Problem 1_한정진

Problem
Week 2_Problem 1
Source Code
import torch
from random import random
from typing import Callable

##                         Problem 1                          ##
##                                                            ##
##            Arbitary x_train, y_train are given.            ##
##   Suppose that x and y have linear correlation, y=wx+b.    ##
##     In function training(), you should return [w, b].      ##
##          In function predict(), you should return          ##
##            list y_test corresponding to x_test.            ##
##                  Made by @jangyoujin0917                   ##
##                                                            ##

# NOTE : Feel free to use torch.optim and tensor.

def training(x_train : list[float], y_train : list[float]) -> list[float]: # DO NOT MODIFY FUNCTION NAME
    # Data normalization code (prevents overflow when calculating MSE, prevents underfitting)
    # Note that you need to convert [w, b] to the original scale before returning value
    # w = w * (y_max - y_min) // normalization 이후에 다시 원래 값으로 만들기 위해서서
    # b = b * (y_max - y_min) + y_min
    y_min = min(y_train)
    y_max = max(y_train)
    normalize = lambda y : (y - y_min)/(y_max - y_min) # normalization test zpdltm

    ### IMPLEMENT FROM HERE

    num = len(y_train)
    for i in range(num):
      y_train[i] = normalize(y_train[i])
    # print(y_train)

    # alpha = 0.05

    x_train = torch.tensor(x_train)
    y_train = torch.tensor(y_train)
    # 모델 초기화
    W = torch.zeros(1, requires_grad=True)
    b = torch.zeros(1, requires_grad=True)
    # optimizer 설정
    optimizer = torch.optim.SGD([W, b], lr=0.01)

    nb_epochs = 1999 # 원하는만큼 경사 하강법을 반복

    for epoch in range(nb_epochs + 1):

      # H(x) 계산
      hypothesis = x_train * W + b

      # cost 계산
      cost = torch.mean((hypothesis - y_train) ** 2)

      # cost로 H(x) 개선
      optimizer.zero_grad()
      cost.backward()
      optimizer.step()

      # 100번마다 로그 출력(정규화하기 전의 값이 나옴옴)
      # if epoch % 100 == 0:
      #     print('Epoch {:4d}/{} W: {:.3f}, b: {:.3f} Cost: {:.6f}'.format(
      #         epoch, nb_epochs, W.item(), b.item(), cost.item()
      #     ))
    W = W * (y_max - y_min) # normalization 이후에 다시 원래 값으로 만들기 위해서서
    b = b * (y_max - y_min) + y_min

    ### normalization 안했을 경우 가능함.
    # num = len(y_train)
    # x_bar = sum(x_train)/num
    # y_bar = sum(y_train)/num
    # b1=0.0
    # b2=0.0
    # for i in range(num):
    #  b1 += y_train[i]*x_train[i]
    #  b2 += x_train[i]**2
    # b = (float) (b1-x_bar*(num)*y_bar)/(float) (b2-(num)*(x_bar)**2)
    # w = y_bar - b*x_bar
    # print(w,b)

    return (W, b)

def predict(x_train : list[float], y_train : list[float], x_test : list[float]) -> list[float]: # DO NOT MODIFY FUNCTION NAME
    pass ### IMPLEMENT FROM HERE
    x_test = torch.tensor(x_test)
    w,b = training(x_train, y_train)
    y_test = x_test * w + b
    return y_test

#if __name__ == '__main__':
#    x_train = [0.0, 1.0, 2.0, 3.0, 4.0]
#    y_train = [2.0, 4.0, 6.0, 8.0, 10.0] # Note that not all test cases give clear line.
#    x_test = [5.0, 10.0, 8.0]
#
#    w, b = training(x_train, y_train)
#    y_test = predict(x_train, y_train)
#
#    print(w, b)
#    print(y_test)

x_train = [0.0, 1.0, 2.0, 3.0, 4.0]
y_train = [2.0, 4.0, 6.0, 8.0, 10.0] # Note that not all test cases give clear line.
x_test = [5.0, 10.0, 8.0]

w,b = training(x_train, y_train)
w, b = training(x_train, y_train)
y_test = predict(x_train, y_train, x_test)

print(w, b)
print(y_test)

Description
Problem 1

Arbitary x_train, y_train are given.
Suppose that x and y have linear correlation, y=wx+b.
In function training(), you should return [w, b].
In function predict(), you should return
list y_test corresponding to x_test.
Made by @jangyoujin0917

Output (Optional)
No response

You should not contain print statement or single quote(') to get score for auto-grading.

This issue is closed now because of the lack of progress.


Small clarification around switchable behaviours

Hi, just a small clarification around switchable behaviours - the current documentation gives the impression that the behaviour will take effect for only one message (after which it would perhaps revert to the previous behaviour), which is not the case.
Thanks

Thanks!


Customer requests "Find Method" feature

Customer has requested a "Find Method" feature in the projects browser. A good start would be to add a menu item to the category browser that will present a list of methods with a "keystroke search" feature similar to the current Find Class dialog.
VisualWorks has a similar feature which could be used as a model.

I happened to be on a test class Sunit tab, having run a test, when I tried the new findMethod feature and what happened was an error:
Jadeite error dialog:
JadeiteSUnitInClassPresenter does not understand #findMethod

Sunit tab walkback fixed in https://github.com/GemTalk/Jadeite/commit/4f1007341084a4455f6fe2017d0b692ca9a2e729

With no class selected in the project browser, find method is enabled but does nothing.

Fixed in 3.0.64 https://github.com/GemTalk/Jadeite/commit/9de37ea7c538800f6075bee2da12bc9407539f31


combining properties into their shorthand

Would be great if you could incorporate https://github.com/frankmarineau/shrthnd.js
Input:
body {
	font-size: 1em;
	line-height: 1.2em;
	font-family: Helvetica;
	font-weight: 300;
	font-style: italic;
}

Output:
body {
	font: italic 300 1em/1.2em Helvetica;
}

There's no need to reopen it @hellier. I just meant we are aware of font shorthands not being processed. I am closing it as a duplicate.

Oh my bad. Sorry, forgot I had posted it.

No problem!


Unable to install .Net for Bicep on Macbook Air M1

Does this occur consistently? - YES
Repro steps:

Opening Bicep file
Starting the Bicep extension

Action: bicep.activate
Error type: Error
Error Message: Failed to install redacted:url runtime v5.0.
Version: 0.4.1008
OS: darwin
OS Release: 21.1.0
Product: Visual Studio Code
Product Version: 1.62.3
Language: en

Call Stack
extension.js:2:1934487
o extension.js:2:1922034

We think we have this fixed in the latest builds of the VS code extension in main. Would you be willing to try installing the VSIX file manually by following these instructions: https://github.com/Azure/bicep/blob/main/docs/installing-nightly.md?

Closing - I think this is fixed based on my experience so far


Tradução: BasicOperators.md - Compound Assignment Operators

Traduza o conteúdo de BasicOperators.md - Compound Assignment Operators

🏃🏻♂ Running...


[R&D] explore adding webhints?

never seen this before but saw this in a convo between TS team members:
https://webhint.io/docs/user-guide/hints/hint-typescript-config/

This seems very useful

However, maybe we should start with just documenting it. Perhaps in a "suggested packages" section of the docs?

yeah cool. we've yet to discuss this at all but what are your thoughts on adding this to the github readme vs the doc site content? duplication warranted? or consolidate on one or the other? your call im just happy to help. i agree this thing is pretty useful esp since it seems officially endorsed.


Metric AI service

This is the python service implementation of the Epic attached.
a few concepts in this service:

A job: A list of namespaces of a cluster to be watched, selected by user, similar to the watchlist we already have in log anomaly detection
A job run: run metric analysis for a job at the requested timestamp.

What's included in this PR:

Http server in main.py: provide a few APIs, the most important one is /run_job/{job_id}/, which is the logic to run a job. The other APIs are used by gateway plugin.
filter_anomaly_metric.py defines the rules to filter out normal metrics.
the model dir, cnn_model.py defines the structure of the CNN model and metric_pattern_classification.py defines the logic to train/eval/predict with the model.
Grafana_dashboard_utils.py defines functions to create/delete dashboardjson.
the tests dir: unit-test

Should we track model.pth with git lfs?

Should we track model.pth with git lfs?

yes

Regard to the model file, @AmartC  will move it to Opni's internal S3 bucket.


re-add rkt as "archived" project

rkt should still be listed on landscape as an archived project, similar to OpenTracing.  Somehow rkt was removed along the way.

Build failed because of:
Empty twitter for StorageOS (member): https://twitter.com/Storage_OS
Empty twitter for StorageOS: https://twitter.com/Storage_OS
Empty twitter for Spotinst Functions: https://twitter.com/spot_hq
Empty twitter for Karmada: https://twitter.com/karmada_io
rkt either has no crunchbase entry or it is invalid


How to create simple shared anchor program using SharingWorldAnchorManager.cs

Overview
I would like build a simple application that allows multiple users to connect to a server, and see an object in the same space in their physical environment despite where they launched the application in the room. I have several programs that use UNet sharing, and I have different programs that use World Anchors, but I am having trouble figuring out where to start when it comes to combining the two.
This was the tutorial I followed when building my networking applications: https://www.linkedin.com/pulse/share-hologram-hololens-emulator-unity3d-using-unet-krishnan-unni
Is there a way to make this solution compatible with the SharingWorldAnchorManager so that the objects spawned will appear in the same space for all clients?
Thank you, any help is appreciated.
Unity Editor Version
Unity 2017.2.1p2

Hi Thomas
I think you should have a look at the examples section. There are two of them that achieve what you're looking for. Given that you're already familiar with UNet, I would start with this one
Thanks

Thanks Jose,
I imported this example and tested it on two devices. If you are able to, would you mind telling me how this project is supposed to be functioning? When we ran it, the anchors for the other device did not seem to be in the correct locations, and I am wondering if there is something wrong, or if I am misunderstanding how this project is supposed to function.

Hi we have also had the same issues of anchors not appearing at correct locations. Pulling June 18 branch did not fix it , as was suggested in the other issue that i commented on.

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


BenchMark

Describe your question
一些线下能过的测试线上是过不了的，请问这是为什么呢？
这样子debug起来会非常麻烦哦
难道有一些特殊情况你们不打算告诉我们，就看着我们做错吗？？？？？？？？

线下能过，线上理论能过，只是2组不同的随机生成的数据防止你们打表罢了

@redhecker @magicoyong
OJ上的题目和公开的测试文件是一样的，没有额外的特殊情况，建议检查一下是不是DDL之类的有问题

we've released all test data and straightly specify all corner cases in the javadoc to make it more possible for you to get a higher score, whereas we did not do so in the past few years, and the newly built oj platform is intended to help you finding problems early instead of being deducted after submitting your code
you already enjoyed the best ever project experience with the solid foundation we provided. while most students could get the same (expected) results in the oj, shouldn't you check your code before challenging us???
PLEASE DO THE CHECK:

confirm that you didn't write any platform dependent code
when testing locally, create the database as we specified CREATE DATABASE sustc WITH ENCODING = 'UTF8' LC_COLLATE = 'C' TEMPLATE = template0;
your submitted jar is the latest version, and your sql file can correctly initialize the database. some students modify the ddl in ide's console, without updating their sql file


Changes for devise 4.9.0

https://github.com/heartcombo/devise/commit/f08e0ad24aa6fec6f585247c0465e0d46c6d8a94
https://github.com/heartcombo/devise/commit/88625d488f43bfc804b3c63437b463e71e9211b5
https://github.com/heartcombo/devise/commit/49ed129c4057569761278467ea2ab331223a1b80

Closes #330.
Additionally:

Modify tests so they check devise's _error_messages.html.erb
Adjust how the resource name is looked up in registrations/edit.html.erb to match devise's lookup

This PR currently points to git to load devise 4.9.0. Will wait for their release to merge.


Support split tab view

Is your feature request related to a problem? Please describe.
Support showing tabs side by side like VSCode's side by side editor view.
Describe alternatives you've considered
N/A

Closing as the major parts of the work is done.


Unable to compile: Duplicate interface definition for class 'FLAnimatedImageView'

Hi there!
I'm having problems compiling my app after adding react-native-fast-image.
After running react-native link react-native-fast-image, I receive a bunch of duplicate interface definition for class 'FLAnimatedImageView' and property has a previous declaration errors.
Here's a subset of the errors I receive:
In file included from /Users/manuelthomsen/Coding/experiments/expo/woodn/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/SDWebImage/FLAnimatedImage/FLAnimatedImageView+WebCache.m:16:
In file included from /Users/manuelthomsen/Coding/experiments/expo/woodn/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/FLAnimatedImage/FLAnimatedImage/FLAnimatedImage.h:13:
/Users/manuelthomsen/Coding/experiments/expo/woodn/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/FLAnimatedImage/FLAnimatedImage/FLAnimatedImageView.h:22:1: error: duplicate interface definition for class 'FLAnimatedImageView'
@interface FLAnimatedImageView : UIImageView
^
In module 'FLAnimatedImage' imported from /Users/manuelthomsen/Coding/experiments/expo/test/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/SDWebImage/FLAnimatedImage/FLAnimatedImageView+WebCache.h:14:
/Users/manuelthomsen/Library/Developer/Xcode/DerivedData/test-ftzdxdyafvkexabeahltbammdnfq/Build/Products/Debug-iphonesimulator/FLAnimatedImage.framework/Headers/FLAnimatedImageView.h:22:12: note: previous definition is here
@interface FLAnimatedImageView : UIImageView
           ^
In file included from /Users/manuelthomsen/Coding/experiments/expo/test/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/SDWebImage/FLAnimatedImage/FLAnimatedImageView+WebCache.m:16:
In file included from /Users/manuelthomsen/Coding/experiments/expo/test/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/FLAnimatedImage/FLAnimatedImage/FLAnimatedImage.h:13:
/Users/manuelthomsen/Coding/experiments/expo/test/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/FLAnimatedImage/FLAnimatedImage/FLAnimatedImageView.h:26:48: error: property has a previous declaration
@property (nonatomic, strong) FLAnimatedImage *animatedImage;

Any ideas on how to solve this?
This is a basic expo app that has just been detached.
Tested on RN v. 46 and 47.
Thank you!

same problem here. please help

Same problem here :)

+1

Blowing away the contents of my ios/build folder cleared this for me.  The error only happened from react-native run-ios and wasn't reproducible from xcode directly.

@DylanVann I'm having this issue as well. Any thoughts on how to solve the compile error? I'm getting a build fail both from react-native run-ios and from xcode

@jacksontbryan Did that. It did not solve the problem for me. It occurs when building for iPhone 5s and iOS version 9.0

I'm also encountering this issue. No idea how to fix it, or where it suddenly came form.

Product-> Clean and then 'rm -rf ~/Library/Developer/Xcode/DerivedData/*' did the trick for me.

Cmd + Shift + K did it for me

same problem here ... cleaning and deleting derived data does not work here

Product -> Clean did the trick. Good suggestion!

I’ve just delete project/ios/build folder and command react-native run-ios  and it works fine!

@rouge3351 Thanks for this. Saved me lots of time figuring it out. :)

None of proposed fixes works for me.

@luco did you really try all three things?

rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ios/build
in xcode Cmd + Shift + K

Did you try building from xcode and command line
@DylanVann is there any chance you could look into fixing this in the code. This is sucha a terrible annoyance for everyone using this library and it happens regularly. I have no idea what has to be setup in xcode to make this disappear, but there must be something, as I haven't gotten these errors from any other library.

@MrLoh Apparently doing this steps the error went away. I'll be monitoring this. Thanks a lot!

This is really annoying indeed.
I'm subscribing for news!

Same problem here. Running Project -> Clean and wiping the derived data folder did not work for me. If it helps at all, my project is set up with CocoaPods (though I manually linked the library in the build phases step).

@broskoski Did you do all the above suggested steps in @MrLoh 's last comment?

@ruipaulo thanks, yes I did.

Also had this problem and couldn't solve it by performing all of the above steps.
I'm on a detached expo project, which means that i don't have an ios/build folder, so i couldn't do that one.
Had to uninstall as it was preventing me from building entirely.

node_modules
react-native packager cache
xcode clean
xcode derived data
react native ios/build

There are a lot of places things can get cached and mess things up when using React Native. Try clearing all those and I'm certain you won't have any more issues.
There's not really anything I could do to this library that would prevent these issues. I have dealt with these issues using many other libraries.
IMO React Native should have a clean command that handles all of these cases.

@DylanVann I know, that it is probably super hard to find the bug that is causing this. On the other hand, it is happening consistently once or twice per week in our project. This is only and always caused by fast-image (we have also many other native libraries in the project). I know that there is probably no easy fix for this, but I think this issue should remain open as long as it is not fixed. Maybe at some point somebody might come up with a solution. This is a relevant bug, it is costing us at least an hour dev time per week and many users coming new to your library might spent hours trying to fix find a solution. This shouldn't be perceived as nagging, we love your library, but this is a relevant bug.

This happens in completely fresh build environments, e.g. when using continuous integration tools. It actually makes CI completely untenable with respect to iOS builds.

I do not recommend doing this, but our extremely unacceptable and voodoo workaround was that after trying to build normally and getting above errors, to build separately, and add the library statically to the project (the libFastImage.a).
Unacceptable, voodoo, but the only way we got it to works :)

I am wondering if the issue is caused because there is actually a duplicate?
Looks like its included twice.

I'm no xcode expert though

As @foggy1 mention, this happens on fresh build environments, making it useless with CI tools.
@brenwell I saw the same but I don't understand how it works iOS nor why it works after cleaning the project.
Any light over here?

@brenwell They are the same file. Not sure why it's included twice but if that could be resolved, all users here could finally check Parallelize Builds again...

+1

I'm looking into it a bit more. I have run into this.
I cannot replicate the issue on a new project though.

I made some changes to the FastImage project that might fix this.

Set deprecated ALWAYS_SEARCH_USER_PATHS to NO. (e7ba4a7f789d883f4dbbe526612e70a2501d7be5)
Fix FLAnimatedImage header search path. (883dc0664dfd6ca26a1b8bece161abd3b9184cf1)
Remove FLAnimatedImage from FastImage project since it's already included in SDWebImage. Installation remains the same as before when using CocoaPods. (a2d9fe2c71693721fec56e9cfe258a373a651b71)

The changes are published as v4.0.4. Please let me know wether or not you're still experiencing this issue after upgrading.

Awesome. Will check thanks

Getting same issue on version 4.0.4
Removed build folder, removed node modules, cleared watchman, installed node modules, npm reset cache, deleted all derived data. cleared xcode cache. Not sure what else to do :/

I haven't seen the issue since I upgraded to 4.0.4 that doesn't mean it won't appear though
For anyone interested here is my clean all the things script
# react-native
    watchman watch-del-all
    rm -rf node_modules && npm install
    rm -rf $TMPDIR/haste-map-react-native-packager-*
    rm -rf $TMPDIR/react-native-packager-cache-*
    rm -rf $TMPDIR/metro-bundler-cache-*

# xcode
    xcodebuild -project ios/vs2.xcodeproj -configuration Release clean
    xcodebuild -project ios/vs2.xcodeproj -configuration Debug clean
    rm -rf ~/Library/Developer/Xcode/DerivedData
    rm -f /ios/build

 # cocoapods
    pod deintegrate --project-directory=./ios/
    rm -rf ./ios/Pods
    pod install --project-directory=./ios/

There were some issues with v4.0.4, they should be resolved in the latest version (v4.0.6). See: https://github.com/DylanVann/react-native-fast-image/issues/189

Thanks @DylanVann . This solved the issue for me 🙏

I am on 4.0.8 and still getting this issue

You will probably still have this issue immediately after you upgrade to v4.0.8.
Do a clean build (xcode clean / rm -rf ios/build). I haven't seen this issue again since doing that.

OK, I got this issue again and solved by doing a xcode clean and removing ios/build folder.

@DylanVann we are seeing this on latest version of react-native-fast-image with React 0.57. Not sure if 0.57 has anything to do with it. The biggest problem is that we use CI to build our releases, which always start from a clean state. We are consistently getting the issue with every build.
One thing we have noticed is that another one of our dependencies, the Braze/Appboy SDK, also depends on SDWebImage.
Has any further light been shed on this issue? We are going crazy trying to make any progress on resolving this.

@dmkmedina: Pinging @theonetheycallneo as he was the one on our team who got it sorted out. I'll be honest, it wasn't straightforward.

Xcode 10 has a new build system. I had same problem in Xcode 10. I found that switching to the Legacy Build Systems solved the problem.
To switch to the legacy build system do the following:

[ ] File -> Project/Workspace Settings...
[ ] Under Build System choose: Legacy Build System

@dmkmedina Our solution wasn't ideal, but we forked the react-native-fast-image and stripped out their SDWebImage.framework, then had their iOS project inherit from our parent umbrella iOS project:
https://github.com/FreebirdRides/react-native-fast-image/commits/master
We then manually linked our parent iOS project to SDWebImage with Appboy's latest bundled release of SDWebImage.
Basically, we been manually linking frameworks on our umbrella, then we fork any conflicting libs and have them correctly inherit from the parent.
Hope that helps shed some light.

Currently, I am on
"react-native-firebase": "^5.1.0",

and I am facing
/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Flutter:
Just press Cmd + Shift + K in Xcode and then rebuild it.


Renumber parts from 6.12.9 on to accommodate the new test for DM20s

added at this slot.

Merge closes Fix #90


[2020-u3-rls] Fix class voting for kNN

Description
Fix class voting for brute force and kdtree methods of k-Nearest Neighbors

/intelci: run

http://intel-ci.intel.com/eaf9b447-4401-f1fa-ba68-8cdcd4b723a1

http://intel-ci.intel.com/eaf9bddb-fae7-f1b2-9a95-8cdcd4b723a1


Minor cleanup and improvements

Went through and made sure all _log_attributes were correct
Went through and made all appropriate Transformers inherit the EnvironmentKeyMixin
Upgraded the ClarifaiAPIExtractor to use v2 of the API
Adjusted TensorFlowInceptionV3Extractor to output in the same format as other object recognition extractors, i.e. using objects as columns instead of the label_1 score_1 format
Fixed bug in stemming filter by removing the WordNetLemmatizer since it does not have a .stem method

Builds are failing cause of an issue with the indicoio library, but it should be resolved soon: https://github.com/IndicoDataSolutions/IndicoIo-python/pull/232/files. Going to merge anyways.


Snapping to zones can't be cancelled through Esc key

Microsoft PowerToys version
0.53.3
Running as admin

[X] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
Hi
Esc doesn't cancel snapping to zones anymore

Start dragging a window
Rightclick
Press 'Esc' on your keyboard.

✔ Expected Behavior
Snapping to zone should be cancelled
❌ Actual Behavior
The window is snapped instantly
Other Software
No response

Thanks for your message. This is a Duplicate of #6938.

Duplicate of #6938


Update import project toolbar icon to be blue

Update the import project toolbar icon to match the other toolbar icons

Coverage decreased (-0.09%) to 37.555% when pulling e8b04aa4d9d0ca02a1c64a4c6d09ac7b2c629312 on kisantia/updateIcon into 69a96a7d5df4267aa94dc07c8d76b5376ad0f299 on main.


Testing!

Zendesk ticket #2 has been linked to this issue and is now the primary ticket.

Zendesk ticket #1 has been linked to this issue and is now the primary ticket.

Zendesk ticket #1 has been linked to this issue and is now the primary ticket.


Update README.md

Add <kbd> tags and added JSON syntax highlighting to code block

Cool thanks.
I think it looks nice to have the dashes inside the kbd like this:

Possibly remove the dashes, but keep the keys separate.

@noseglid, I amended the commit

I don't see any changes from the first commit.
Pro tip: Don't amend the commit, simply push a new commit and history can be followed.

This error is in no way related to this PR. I think it's safe to pull

Cool, thanks mate!


Removing db datasource name limitation as it's been removed

This is no longer a limitation.

This was removed with today's doc release for the updated page of the Prisma Data Proxy, here's the diff: https://github.com/prisma/docs/pull/3187/files#diff-76b3e4f4fb005c0d6a48f0f80df6e03e030e8b7ebcee8b4be1c55b105d1ba657

Thanks @zachtil. Closing.

Thanks @zachtil


Question:  What is the scope of input validation?

I think this code should be handled by input validation.
If it move to input validation(Ex. ... Validator.Fluent.cs), the Handler code will be simpler as shown below.
// Before
var parsePermissionNameResult = Enum.TryParse<PermissionName>(command.PermissionName, out var permissionName);
_validator.If(
   parsePermissionNameResult is false,
   Error.InvalidArgument($"{command.PermissionName} is not a valid PermissionName"));

if (_validator.IsInvalid)
{
    return _validator.Failure();
}

// After
var permissionName = Enum.Parse<PermissionName>(command.PermissionName);

Hey,
pull request #169 was added to move this validation to fluent validation (with additional extension metod for enums).
In this pr there a change for performance - next memory cache was introduced (for caching ValidationResultCache) so that in FluentValidationPipeline we dont need to call CreateValidationResult that used reflection and casting to object. Nevertheless, it comes with complexity (in cache initialization). So if for someone complecity is too big, he can use CreateValidationResult in old way.
Additionally, there were so minor fix.

If there are no more questions about this topic I close this issue.

@dr-marek-jaskula
If method "public static TResult CreateValidationResult<TResult>(this ICollection<Error> errors)" is used, an exception occurs.
.MakeGenericType(typeof(TResult).GenericTypeArguments[0])

This is because method "MustBeAnEnum" does not use IList<Error>.
I think method "CreateValidationResult" needs improvement.

@hhko
Recently I added additional check
        if (typeof(TResult) == typeof(Result) || typeof(TResult) == typeof(IResult))
        {
            return (ValidationResult.WithErrors(errors) as TResult)!;
        }

this part typeof(TResult) == typeof(IResult) should fix the problem.
Additionally, I extended MustBeAnEnum method also by additional check
            if (int.TryParse(value, out var _) || Enum.TryParse<TEnum>(value, out var _) is false)
            {
                context.AddFailure(Error.InvalidArgument($"'{value}' is not a valid {typeof(TEnum).Name}").Serialize());
            }

This part
int.TryParse(value, out var _)
Will secure the user input like '4'.
Use the latest version to check it


Support Falcon uri templates in exempt_routes

This updates process_resource() to use the req.uri_template when checking
against the exempt_routes configuration. This allows one to exempt templated
routes rather than just hard-coded, static ones.
Addresses loanzen/falcon-auth#11

Coverage remained the same at 92.609% when pulling b485b5608db33a459ce90a09fafb2532c70f5053 on fix-get-auth-token-issuer into 61124cb54d9c01602f6dc77da01a3e4bc83a860e on master.

Coverage remained the same at 92.609% when pulling b485b5608db33a459ce90a09fafb2532c70f5053 on fix-get-auth-token-issuer into 61124cb54d9c01602f6dc77da01a3e4bc83a860e on master.


Not working on 1.0.2

Not sure the issue, how can I troubleshoot?

Never mind, I had to add the file extension for the files I was working on. Perhaps there could be a setting to "enable for all" or for only some by extension?

+1. I often copy-paste a text-sample to atom to count the words. By default a unsaved file is set in plain text mode. It would be great if wordcount could be enabled by default on new unsaved files as well.

+1 on default, non-saved files as well. I have the same use case as @skycaptain

sure, valid feature request, I just adjusted the "error". also PR's welcome ;)


Allow for Columns to stay on screen for horizontal scrolling (Frozen Columns)

With very wide tables which require the user to scroll horizontally you can lose track of which item you are acting upon if you have semantic data (ie. a unique identifier) in the first few columns.
Would be nice to have an option to have "floating" or "fixed" column to ensure column is always visible.

This has landed in the master branch, but requires further testing.


Re-import Sri Dasam Granth English Translations

Differences:

Replace “ and ” with "
Replace ‘ and ’ with '
Split translations across 2 lines for Benti Choupai Sahib
Small typo corrections
Correct duplicate translations (same translation for 2 lines, rare case)

If anyone can get a physical or digital copy of this, that would be great.

Requires physical proof to reference

Closed in favor of #1392


It is recommended that you use websocket to get device status instead of requesting API

Hello,
There are some problems in the way of getting the device status of your project. Although the request device list (/api/user/device) can get all the device status, too many requests for the interface will cause great pressure on the coolkit server. It is recommended to use websocket to monitor and get the latest status of the device in real time.
Relevant document address: https://coolkit-technologies.github.io/apiDocs/findStatus_en.html
It can improve your project and hope to adopt it.
Thank you!

Hi @coolkit-carl ,
Thanks for your comments. Is the link provided valid? I'm unable to access the site.
Thanks!

Hi @coolkit-carl ,
Thanks for your comments. Is the link provided valid? I'm unable to access the site.
Thanks!

Sorry，This is the correct url address：
https://coolkit-technologies.github.io/apiDocs/findStatus_en.html

Thanks @coolkit-carl ,
The API documentation will be a welcome addition to those actively working on this project.
As mentioned in the readme of the original repo, I'm no longer maintaining this project. It would be best to pass this info on to the maintainers of the homebridge-ewelink-max fork.

Thanks @coolkit-carl ,
The API documentation will be a welcome addition to those actively working on this project.
As mentioned in the readme of the original repo, I'm no longer maintaining this project. It would be best to pass this info on to the maintainers of the homebridge-ewelink-max fork.

OK, I see, thank you for your reply.

@fabianoflnsp @ronnieroberts making you aware of this request to use the proper API to get device status.


Change I2C Bus Reset to handle interrupted READ sequences.

The current bus reset code does not handle interrupted READ cycles.
If a SLAVE device was in a READ operation when the bus was interrupted, the SLAVE device is controlling SDA.
The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.
If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH.
So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.

Yea, i my fault.
I'll fix it.
Chuck.

Thanks for contributing this fix, @stickbreaker . These commits have been cherry-picked with some other I2C fixes and should be merged to master shortly.


Bugfix/remote enclave error handling

Codecov Report

Merging #669 into master will increase coverage by <.01%.
The diff coverage is 99.25%.

@@             Coverage Diff              @@
##             master     #669      +/-   ##
============================================
+ Coverage     99.49%   99.49%   +<.01%
- Complexity     1855     1869      +14
============================================
  Files           285      286       +1
  Lines          5542     5570      +28
  Branches        275      276       +1
============================================
+ Hits           5514     5542      +28
  Misses            5        5
  Partials         23       23

Impacted Files
Coverage Δ
Complexity Δ

...om/quorum/tessera/enclave/rest/ClientCallback.java
100% <100%> (ø)
2 <2> (?)

.../tessera/enclave/EnclaveNotAvailableException.java
100% <100%> (ø)
2 <1> (+1)
:arrow_up:

...a/com/quorum/tessera/service/ServiceContainer.java
100% <100%> (ø)
7 <0> (ø)
:arrow_down:

...rum/tessera/enclave/rest/RestfulEnclaveClient.java
99.22% <99.17%> (+0.12%)
28 <26> (+11)
:arrow_up:

Continue to review full report at Codecov.

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


Question about Diversity loss

Thanks for your great work! But I am confused about the reason why diversity loss works . The paper says that it's a regularization term to encourage complementary decisions.  Why we need complementary decisions from experts?  Don't  we want the same correct answer?  If the experts'  decision is diverse , how can we assure  the final output is correct?

Our architecture is based on the notion of multi-expert models, which is based on bias-variance tradeoff. The reason for introducing multiple experts is to reduce variance. The best way for variance reduction using multi-experts is to have completely independent multi-expert models trained on independently sampled p(x) (data distribution). However, this is not feasible in the real world, since we have only one dataset.
In our setting, we leverage two differences between experts to maintain a lower correlation: one is the randomness in training and parameter initialization and the other is the diversity regularization. Without both randomness, each expert will be the same (because back-propagation does not distinguish the experts), and every expert will give the same output.
As a thought experiment, in your case, if every expert has the same prediction, the will be no variance reduction and we do not even need more than one expert, as the aggregated experts have the same prediction as each of them.

as the aggregated experts have the same prediction as each of them.

Thanks for your explanation!


pop up error 'to view this content, install and set up web browsing app' on Android device

I'm trying to use the plugin in my ionic app to redirect user to market place (Google Play, App Store).
It works on IOS, but not work on Android.
It shows the error 'to view this content, install and set up web browsing app' when my app redirect user to Google Play, anyone has idea on this?
// coding
import { Market } from '@ionic-native/market/ngx';
.......
constructor(private market: Market)
.......
openMarket(){
this.market.open('https://play.google.com/store/apps/details?id=com.nextmedia');
}

You should pass package, in your case com.nextmedia not whole link.


Update README.md

Removes every occurrences of ObjectController since it is deprecated.

In this case the validation paths should be changed from firstName to model.firstName

Ah stupid me, half-way done work :8ball:
I'll correct this PR.

@bcardarella I've updated the tests examples, but since a Controller can validate its own properties without referring to its model, the correction does not seem necessary.
In the examples, we may want to explicitly say a controller always validates its model properties for better comprehension, or use component, which would leverage the ambiguity.