filter/select by property

$persons = ....
$lars = 'Lars'
$larses = selectByProperty($persons, ['name' => $lars]);

much less verbose than:
$persons = ....
$lars = 'Lars'
$larses = select($persons, function ($person) use ($lars) {
    return $person->name == $lars;
});

It could work with multiple properties too, plus nesting. Like graphQL.
The name, alternatively, could be 'where'.
Good idea?
Ive created an implementation here: https://github.com/Erikvv/array-utils-php/blob/master/src/Ve/Where.php
It's a bit too large to be contained in one function.

I think a where() function would be an awesome addition. Wanna work on a pull request?

If you add it, I'd suggest changing the order of your parameters so that your 'where' properties are the first param, and your data param is second; and also, curry it.  This would let you do something like:
`$selectByLars = selectByProperty(['name' => 'Lars']);
$larsPeople = $selectByLars($people);`
OR
`$notEmpty = function($x) { return !is_empty($x); };
$haveLars = compose(
$notEmpty,
selectByProperty(['name' => 'Lars'])
);
if($haveLars($people) { ... }`

Switching the argument order would be inconsistent with the other functions.
The same for currying by default: none of the other functions do this. You can still use a curry function.

Closing because of inactivity


Remove dup kernel & ensure global kernels point to the right interpreter

For #7994

Codecov Report

Merging #7996 (2af1865) into main (354ef09) will decrease coverage by 0%.
The diff coverage is 66%.

:exclamation: Current head 2af1865 differs from pull request most recent head 35341f6. Consider uploading reports for the commit 35341f6 to get more accurate results

@@          Coverage Diff          @@
##            main   #7996   +/-   ##
=====================================
- Coverage     70%     70%   -1%
=====================================
  Files        364     364
  Lines      22392   22308   -84
  Branches    3413    3402   -11
=====================================
- Hits       15835   15775   -60
+ Misses      5174    5159   -15
+ Partials    1383    1374    -9

Impacted Files
Coverage Δ

.../localPythonAndRelatedNonPythonKernelSpecFinder.ts
82% <66%> (-1%)
:arrow_down:

...ience/variablesView/variableViewMessageListener.ts
77% <0%> (-23%)
:arrow_down:

.../client/datascience/interactive-window/identity.ts
64% <0%> (-22%)
:arrow_down:

...ent/common/application/webviewViews/webviewView.ts
67% <0%> (-11%)
:arrow_down:

src/client/datascience/jupyter/kernels/kernel.ts
74% <0%> (-3%)
:arrow_down:

src/client/datascience/jupyter/kernelVariables.ts
56% <0%> (-3%)
:arrow_down:

src/client/debugger/jupyter/kernelDebugAdapter.ts
82% <0%> (-1%)
:arrow_down:

...datascience/editor-integration/cellhashprovider.ts
70% <0%> (-1%)
:arrow_down:

src/client/datascience/jupyter/jupyterServer.ts
54% <0%> (-1%)
:arrow_down:

...ce/raw-kernel/liveshare/hostRawNotebookProvider.ts
75% <0%> (-1%)
:arrow_down:

... and 15 more


Array keys with dots not supported

Just doing some stress testing. I tried the code below, but don't work in that scenarios.
<?php

require_once "./vendor/autoload.php";

use HiFolks\DataType\Block;

$arr = [
    'matrix' => [
        'main.actor' => 'Keanu Reeves',
        'imdb' => 8.7
    ],
    'independence_day' => [
        'main.actor' => 'Will Smith',
        'imdb' => 7
    ],
    'The.Abyss' => [
        'main.actor' => 'Ed Harris',
        'imdb' => 7.5
    ]
];

$movies = Block::make($arr);

$a = $movies->get('matrix.main.actor');

print_r($a);

$b = $movies->get('The.Abyss.imdb');

print_r($b);

$c = $movies->get('The.Abyss.main.actor');

print_r($c);

Maybe something like this could solve this issue? I don't know.
$a = $movies->get('matrix."main.actor"');

Hi @llagerlof thank you for testing the library.
To avoid conflict with the chars in the keys and the char used for determining the nested level, I introduced the charNestedKey parameter. By default, is a dot ., but you can change it in the case you need it.
I don't know if you already took a look at that parameter:
$a = $movies->get(
    'matrix#main.actor',
    charNestedKey: '#'
);

Let me know if it can help.

I'm going to close this issue because I think the charNestedKey is the solution.
If you have additional questions feel free to open new issues.
Thank you!


Typing '/' as subreddit name breaks the application

This is the error that I get:
 Traceback (most recent call last):
 File "main.py", line 102, in <module>
 main()
 File "main.py", line 83, in main
 page.loop()
 File "/usr/lib/python3.4/site-packages/rtv-1.0a2-py3.4.egg/rtv/subreddit.py", line 43, in loop
 self.prompt_subreddit()
 File "/usr/lib/python3.4/site-packages/rtv-1.0a2-py3.4.egg/rtv/subreddit.py", line 89, in prompt_subreddit
 self.refresh_content(name=out)
 File "/usr/lib/python3.4/site-packages/rtv-1.0a2-py3.4.egg/rtv/subreddit.py", line 67, in refresh_content
 self.reddit, name, self.loader)
 File "/usr/lib/python3.4/site-packages/rtv-1.0a2-py3.4.egg/rtv/content.py", line 332, in from_name
 sub = reddit.get_subreddit(name, fetch=True)
 File "/usr/lib/python3.4/site-packages/praw-2.1.20-py3.4.eg /praw/__init__.py", line 1017, in get_subreddit
 return objects.Subreddit(self, subreddit_name, *args, **kwargs)
 File "/usr/lib/python3.4/site-packages/praw-2.1.20-py3.4.egg/praw/objects.py", line 1346, in __init__
 subreddit_name = json_dict['url'].split('/')[2]
 TypeError: 'NoneType' object is not subscriptable
 sys:1: ResourceWarning: unclosed <socket object at 0x7f253b2b5d68>
 /usr/lib/python3.4/importlib/_bootstrap.py:2150: ImportWarning: sys.meta_path is empty

I think I figured it out. Just with the way content.py checks /. Going to submit a pull request.

Thanks.
I have some thoughts on switching subreddits in general...
It would be nice to support for all of the following formats:

/r/python
/r/python/new
/r/python/rising
/r/python/controverisal
/r/python/top

with optional backslash at the end

/r/python/
/r/python/new/
...

Using the same convention, we can link back to the front page. I have torn feelings about this one because /r/front already exists as a valid subreddit and using it as an alias feels kinda dirty.

/r/front
/r/front/new
/r/front/rising
...

Support for multireddits also fits in nicely

/r/python+linux
/r/python+linux/new
...

And of course we need to be able bad input without crashing

/r//
/r/this/is/fake/
/r/python/banana

I think at this point it would be best to just refactor the whole from_name() function. I see two options moving forward.

Stick to pure python using functions like split('/') and endswith('/new') an be careful around edge cases
shudder Regular Expressions

I don't think were going to have to use regex. I can see it by working in this way
1)Function to check for invalid backslashes
In this function it can:
1)Check for backslash at beginning. If there is, raise error
2)Check for backslash at end. If there is, remove it.
3)Now, after step two, there should only be one backslash if it is a valid input.
Here, we check if there is only one backslash. If not, raise error.
2)name, display_type = name.split('/')
3)Check display_type to see if they are valid. If not, raise error.
4)Deal with multireddits. Not sure what we are doing with it so I'll leave that out, but here seems like a logical place to fit it.
5)Check if subreddits are valid.
6)Get subreddits, with a different return depending on display_type.
I'm not sure about the front alias. I guess it could work, sort of like we already have it, but right before step 4, or 5 there can be a check if name = 'front' and have seperate return statements depending on what display_type equal like this:
    if name == 'front':
        if display_type == 'new':
            return cls('New', reddit.get_new(limit=None), loader)
        if display_type == 'top':
            return ...

I think this sounds like a good approach.

The display type should be optional, so we don't want to raise an error if there is no backslash. Something like this should work for step 2.
split_name = name.split('/')
if len(split_name) == 1:
    sub_name, display_type = split_name[0], 'hot'
elif len(split_name) == 2:
    sub_name, display_type = split_name
else:
    raise error

I instead just had display_type default to 'hot' so that it works like how reddit does it automatically. Just finished reworking it. About to submit it. Didn't deal with multireddits, but I still feel it should be merged since that is a slightly seperate issue than dealing with backslahes.

Marking this as closed. We may want to revisit once multireddits are implemented.


Fix broken link for labels of issues in CONTRIBUTING.md

Signed-off-by: Soumya<EMAIL_ADDRESS>
What this PR does / why we need it:
This PR fixes the broken "labels of issues link" in CONTRIBUTING.md.
Which issue this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #2059

Please review whenever you are free, @ashishranjan738. :)

Glad to do that. :)
Please merge when possible. 😀


[GNOME/Wayland] Clicking on collapse/show arrow doesn't opens the menu

System information:

Fedora 36 Wayland
DBeaver 22.0.5 (installed from flathub)

Connection specification:

N/A

Describe the problem you're observing:
Clicking on collapse/show arrow doesn't opens the menu, 'dragging' action is initiated instead.
I've seen that also when clicking on cells it's not easy to edit the content because of the same behaviour.
Video attached.
Steps to reproduce, if exist:
Click on one of the arrows besides the entries in 'Database Nevigator'.
Include any warning/errors/backtraces from the logs
(DBeaver:20): Gtk-WARNING **: 21:28:56.288: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)
Video del 24-05-2022 21:20:40.zip

Attached Video of Dbeaver on Xorg
Video Xorg.zip

Original issue in Eclipse
https://bugs.eclipse.org/bugs/show_bug.cgi?id=486068

These warnings seems to due to popup windows not mapped to a parent, which needs to be addressed on Wayland.
Might be related to Eclipse issues:  529022 and 532941


Ability to run ruby_bundle without gemfile_lock attribute

Currently when running a ruby_bundle without the gemfile_lock attribute results in the following error
ERROR: An error occurred during the fetch of repository 'vagrant_bundle':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_maarten/8c4bfcd606c4d7b95cf418885251b08c/external/bazelruby_rules_ruby/ruby/private/bundle/def.bzl", line 198, column 28, in _ruby_bundle_impl
		result = bundle_install(runtime_ctx, result)
	File "/private/var/tmp/_bazel_maarten/8c4bfcd606c4d7b95cf418885251b08c/external/bazelruby_rules_ruby/ruby/private/bundle/def.bzl", line 138, column 13, in bundle_install
		fail("bundle install failed: %s%s" % (result.stdout, result.stderr))
Error in fail: bundle install failed: The deployment setting requires a Gemfile.lock. Please make sure you have
checked your Gemfile.lock into version control before deploying

The documentation (https://github.com/bazelruby/rules_ruby#54-ruby_bundle) suggests that it's possible to run ruby_bundle without passing the gemfile_lock attribute. This is backed-up by the conditional in the code which checks for the presence of the gemfile_lock attribute https://github.com/bazelruby/rules_ruby/blob/master/ruby/private/bundle/def.bzl#L125-L126.
The problem is that the set_bundler_config hardcodes the deployment and frozen settings to true (https://github.com/bazelruby/rules_ruby/blob/master/ruby/private/bundle/def.bzl#L56-L58) which enforces that any bundle install command requires a Gemfile.lock file.
Disabling these settings as follows seems to help in the case of no Gemfile.lock:
    bundler_config = {
        # "deployment": "false",
        "standalone": "true",
        "force": "false",
        "redownload": "false",
        # "frozen": "true",
        "path": BUNDLE_PATH,
        "jobs": "20",
        "shebang": runtime_ctx.interpreter,
    }

I can't remember why we added these bundler settings but perhaps it's so that the bundle can be vendored?
If you can investigate the implications of not putting deployment into bundle config I could be convinced to drop that.


feat: Add Token Refresh Implementation to Network Layer

It applies token authentication to the network requests before a network call is made. The expiry duration is saved and it is applied before a network request is queued.
Authentication:

[ ] Token authentication before a network request
[ ] Refresh expired token before making a network request
[ ] Only one token refresh call for all async network requests
[ ] Only one token refresh call for all sync network requests
[ ] No looping of network calls during network problem

It's confusing that all the work here with time is done in seconds.
It seems easier and clearer to convert authResponse.expiresIn to milliseconds and work with them.


feature(ui-ux): meta chain faq

What this PR does / why we need it:
Additional comments?:

Update MetaChain to two words

Update MetaChain to two words in some of the faq answers

Confirmed by PM that it should be MetaChain instead. Will change all instances of Meta Chain on defichain.com in a separate PR


Fix for stomping the users collection

Also added emails:1 to the publication.  Seems like it should have been there.

Fix for #45.

Very nice! Thanks for this PR, and sorry that it has taken us so long to get to it. I have two small nitpicky things, let me know what you think:

I think we don't need to create the collection on the server side. I would create it client-side only, then it won't add a collection to the actual Mongo DB.
Can we name it plural? So AnalyticsUsers.

The collection name is plural now.  It's client-side only.  Package.js only adds the file to the client.

Thanks @dan335 !

I think this is missing the subscription, it won't work without that. We should test and update the examples before merging PRs.

Oh, sorry... I might have written that too soon... I see it's a universal publication. I'll test it now.


Fixed #28553 -- Fixed annotation mismatch with QuerySet.values()/values_list() on compound queries.

ticket-28553
Unit test taken from https://github.com/django/django/pull/16577.

Thanks for the comments @felixxm 🙏

@David-Wobrock Thanks 👍 Unfortunately, it doesn't work when values()/values_list() is called on a compound query, e.g.
    def test_union_multiple_models_with_values_list_and_annotations(self):
        ReservedName.objects.create(name="rn1", order=10)
        qs1 = ReservedName.objects.annotate(row_type=Value("rn"))
        self.assertSequenceEqual(
            qs1.union(qs1).values_list("row_type", flat=True), ["rn1"]
        )

see ticket-28900 which was marked as a duplicate.

Hey @felixxm
Thanks for bringing up this ticket.
After digging a bit, I don't think it's really a duplicate, as the fix will include other changes. It's related to the way the SELECT values are pushed down into the combined queries, and not so much about the ordering of annotations.
I'd be in favour of re-opening ticket-28900 (I'll tackle it next) and moving forward on this bug fix.
What do you think? :)

It's one thing to have the annotation targeted via values respect the specified order (like it's done here) and makes sure that mixing of field references with annotations and extra is also respected. It seems that it's the latter that is reported and should be fixed here.
When Query.set_values is called it assigns .values_select which is already ordered and should be usable in SQLCompiler.get_select to take a different approach then starting with extra, adding selected columns, and ending with annotations. That's the crux of the problem here I believe
https://github.com/django/django/blob/39d1e45227e060746ed461fddde80fa2b6cf0dcd/django/db/models/sql/compiler.py#L229-L276

It appears that adding support for proper SELECT member ordering through values is the last remaining blocked to provide a deprecation path for QuerySet.extra(select, where, order_by) #16681. This would allow to reduce the scope of support for .extra() to only table additions.

Thanks for bringing up this ticket. After digging a bit, I don't think it's really a duplicate, as the fix will include other changes. It's related to the way the SELECT values are pushed down into the combined queries, and not so much about the ordering of annotations. I'd be in favour of re-opening ticket-28900 (I'll tackle it next) and moving forward on this bug fix. What do you think? :)

Agreed :+1:


[WIP]feat:EditableTable

[中文版模板 / Chinese template]
🤔 This is a ...

[ √] New feature
[ ] Bug fix
[ ] TypeScript definition update
[ ] Bundle size optimization
[ ] Performance optimization
[ ] Enhancement feature
[ ] Refactoring
[ ] Update dependency
[ ] Code style optimization
[ ] Test Case
[√ ] Branch merge
[ ] Site / documentation update
[ ] Demo update
[ ] Workflow
[x] Chore
[ ] Release
[ ] Other (about what?)

🔗 Related issue link：https://github.com/VisActor/VTable/issues/1616

💡 Background and solution

📝 Changelog

Language
Changelog

🇺🇸 English

🇨🇳 Chinese

☑ Self-Check before Merge
⚠ Please check all items below before requesting a reviewing. ⚠

[ √] Doc is updated/provided or not needed
[√ ] Demo is updated/provided or not needed
[√ ] TypeScript definition is updated/provided or not needed
[ √] Changelog is provided or not needed

🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough

过几天我会把测试demo结果提交


gtk::STYLE_PROVIDER_PRIORITY_* should be u32

These are defined as unsigned ints in Gtk. Additionally them being i32 requires a cast before being able to use them properly with StyleContext::add_provider() as intended.

Its defined in manual part https://github.com/gtk-rs/gtk/blob/4a602797abc45adc12d453e14e4a9fa966cceb07/src/lib.rs#L179-L183
Feel free to make PR with fix (as you can check that it really working)

I modified just that file, but then I got a conflict because the FFI types are i32s. I would think the fix should be in the FFI bindings and not in this file, though I could cast them. I'll need some more time to dig into this as I've never dealt with FFI or gir and I don't understand how it works yet.

As FFI binding also auto-generated by gtk's gir files, and it says
    <constant name="STYLE_PROVIDER_PRIORITY_FALLBACK"
              value="1"
              c:type="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK">
      <doc xml:space="preserve">The priority used for default style information
that is used in the absence of themes.

Note that this is not very useful for providing default
styling for custom style classes - themes are likely to
override styling provided at this priority with
catch-all `* {...}` rules.</doc>
      <type name="gint" c:type="gint"/>
    </constant>

So we can only add as u32 to these lines if most functions that it used require u32

By way, on not-crate version of gtk IMHO was added some conversion from u32 to i32 and back (don't fount it now), so may be adding .into() to your code also works.

I think guess the introspection tools assigned gint type by default because C defines aren't typed. If some functions still take i32 instead of u32 that should be handled via type rewriting (also #246).


Extract start and end positions from a PairwiseAlignment

Hello, I have a feature request, that is related to some other open issues related to the API of this package.
Currently, there is no API to extract the start and end positions from a PairwiseAlignment. It would be great if the client can easily extract the location of matches (start, end) between the reference and the sequence of the PairwiseAlignment object.
Here is the hack that I wrote to solve this problem for myself, but it would be great if the API could expose an abstraction for locations of matches, or some analogous methods/functions so that the client doesn't have to mess with internal "private" fields.
function GetPairwiseAlignmentSeqStart(aln::PairwiseAlignment)
    return aln.a.aln.anchors[1].seqpos + 1
end

function GetPairwiseAlignmentRefStart(aln::PairwiseAlignment)
    return aln.a.aln.anchors[1].refpos + 1
end

function GetPairwiseAlignmentSeqEnd(aln::PairwiseAlignment)
    return aln.a.aln.anchors[end].seqpos
end

function GetPairwiseAlignmentRefEnd(aln::PairwiseAlignment)
    return aln.a.aln.anchors[end].refpos
end

Thanks for your consideration, hope this suggestion is helpful for both users as well as the designers and implementors of this package.

I believe the first and last reference positions are stored in Alignment. Two of the proposed functions might simplify to the following.
function firstref(aln::PairwiseAlignment)
    return aln.a.aln.firstref
end

function lastref(aln::PairwiseAlignment)
    return aln.a.aln.lastref
end


Detect the broadcast intent is from SMS Retriever API by adding the SmsRetriever.SEND_PERMISSION permission to receiver.

I got the Intent Redirection vulnerability error from Play Store;

So I added the SmsRetriever.SEND_PERMISSION permission to receiver as described in the docs below.
Remediation for Intent Redirection Vulnerability <- Google Help Center article
Request one-time consent to read an SMS verification code

@ctnataman I have taken your master branch but still, my app got rejected from play store.

Can you help me is above issue still persist ?

No resolved


You can render through blocks by using mechanical spawner

Describe the Bug
Not sure why but you can x-raying by placing mechanical spawner
Reproduction Steps

obtain mechanical spawner
place it on the ground and nearby blocks
X-ray
...

Expected Result
X-raying should not happened?
Screenshots and Videos

Crash Report or Log
https://mclo.gs/ySF74Zv
Operating System
Windows 10
Mod Version
0.0.9.c-36
Minecraft Version
1.19.2
Forge Version
47.1.3
Other Mods
modernfix, ferritcore
Additional Context
My minecraft version is 1.20.1 and the mod version is 0.0.14.e-22

I know how to fix this, I will open a PR with it


Autoform.getFieldValue not reactive?

So I just went through the fun drill of switching all of my getFieldValues from (formId, fieldName) to
(fieldName, [formId]).  Now it seems I've lost reactivity of all of these functions.
I can insert AutoForm.getFieldValue("returnTripType", "tripType"); in the developer console and get the expected result, but it is not reactively grabbing the field value as it changes.  I have a console.log in my template helper returning the result "undefined" so it seems like it is only running once before the form has even rendered.  Here's an example of the code:
quote.html
<template name="QuoteTool">
    {{#autoForm schema="DepartRouteQuote" id="tripType"}}
        {{> afQuickField name='returnTripType' id="selectlegoption" label=false value="Round Trip"}}
    {{/autoForm}}

    {{> Route1}}

    {{#if roundTrip}}
        {{> Route2}}
    {{/if}}
</template>

quote.js
Template.QuoteTool.helpers({
    roundTrip: function() {
        var returnType = AutoForm.getFieldValue("returnTripType", "tripType");
        console.log("returnTripType: "+returnType);
        if (returnType == 'Round Trip') {
            return true;
        } else {
            return false;
        }
    }
});

schema.js
DepartRouteQuote = new SimpleSchema({
    returnTripType: {
        type: String,
        allowedValues: ["Round Trip","One Way", "Multi-Leg"],
        defaultValue: "Round Trip",
        autoform: {
            type: "select-radio-inline",
            options: 'allowed'
        }
    }
});

As I mentioned before, the console.log only runs once, returning undefined.  I can select the various returnTripTypes options and the getFieldValue function never fires.  Since getFieldValue only returns undefined, template "Route2" does not display when the page loads even though the returnTripType is set to the default value of "Round Trip".

@BradRyan Try using getFieldValue without the formId in quote.js:
var returnType = AutoForm.getFieldValue("returnTripType");

From the changelog:
Compatibility break: The function signature for AutoForm.getFieldValue is reversed from (formId, fieldName) to (fieldName, [formId]) with formId optional. You should not pass the formId argument when using it in a helper that is run within the context of the form.

I am seeing the same the same issue as @BradRyan.  When I remove the formId from getFieldValue call, I see this error in the console:
Exception in template helper: TypeError: Cannot read property 'clean' of undefined
    at Object.autoFormGetFormValues [as getFormValues] (http://localhost:3000/packages/aldeed_autoform.js?95e4d3c1e4a248502de2befc9436a32b15999fa3:2188:5)
    at Object.autoFormGetFieldValue [as getFieldValue] (http://localhost:3000/packages/aldeed_autoform.js?95e4d3c1e4a248502de2befc9436a32b15999fa3:2250:22)
    at Object.Template.scoresPage.helpers.totalScore (http://localhost:3000/client/templates/seasons/scores_page.js?4fa83b81b6270e5226ac78347e2c608a7d0a6f67:33:21)
    at http://localhost:3000/packages/blaze.js?b0fa84e3d7a352d325a81441bf2b6dd19cb7e554:2787:16
    at http://localhost:3000/packages/blaze.js?b0fa84e3d7a352d325a81441bf2b6dd19cb7e554:1607:16
    at http://localhost:3000/packages/blaze.js?b0fa84e3d7a352d325a81441bf2b6dd19cb7e554:2835:66
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?b0fa84e3d7a352d325a81441bf2b6dd19cb7e554:3383:12)
    at http://localhost:3000/packages/blaze.js?b0fa84e3d7a352d325a81441bf2b6dd19cb7e554:2834:21
    at Spacebars.call (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:172:18)
    at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:109:25)

HTML:
<template name="scoresPage">

	Enter Scores for Week:
	<select class="form-control" id="selectWeek">
	  <option value="0">1</option>
	  <option value="1">2</option>
	  <option value="2">3</option>
	</select>

	{{#autoForm id="updateScores" type="update" collection="Seasons" doc=selected}}

	  {{#afEachArrayItem name=selectedWeek }}
		{{> afQuickField name=this.name label=holeLabels}}
		Total Score: {{totalScore this.name}}
	  {{/afEachArrayItem}}

          <button type="submit" >Submit</button>
        {{/autoForm}}

</template>

JS:
Template.scoresPage.helpers({
  holeLabels: function() {
    var holeLabel = 'Hole ' + String(this.index + 1);
    return holeLabel;
  },
  selectedWeek: function() {
    return Session.get("selectedWeek");
  },
  totalScore: function(fieldName) {
    return AutoForm.getFieldValue(fieldName);
  }
});

Template.scoresPage.events({
    "change #selectWeek": function (event, template) {
        var week = $(event.currentTarget).val();
        Session.set("selectedWeek", "schedule." + week + ".scores");
    }
});

Schema:
Schemas = {};

Schemas.Season = new SimpleSchema({
    userId: {
        type: String,
        optional: true
    },
    userName: {
        type: String,
        optional: true
    },
    tenantId: {
        type: String,
        optional: true
    },
    year: {
        type: String,
        optional: true
    },
    teamName: {
        type: String,
        optional: true,
        label: "Team Name"
    },
    schedule: {
        type: [Object],
        optional: true
    },
    "schedule.$.week": {
        type: Number,
        optional: true,
        defaultValue: 1
    },
    "schedule.$.totalScore": {
        type: Number,
        optional: true,
        defaultValue: 1
    },
    "schedule.$.scores": {
        type: [Number],
        optional: true
    }
});

Collections = {};

Seasons = Collections.Seasons = new Mongo.Collection("seasons");

Seasons.attachSchema(Schemas.Season);

Hi all. I had this problem too that took me hours to fix haaaa!
What I did was try to open Chrome's console tool while still in my meteor project and try the ff:
AutoForm.getFieldValue('helloField'); //undefined
AutoForm.getFieldValue('helloField', 'helloForm'); //undefined
AutoForm.getFieldValue('helloForm', 'helloField'); //yey! it works

I tried to do
meteor update aldeed:autoform

but it won't update (Your packages are at their latest compatible versions.)
After that, I followed meteor's suggestion which is to
meteor add<EMAIL_ADDRESS> => Errors while adding packages:

While selecting package versions:
error: conflict: constraint<EMAIL_ADDRESS>is not satisfied by 5.0.2.
Constraints on aldeed:autoform come from:
<top level>
<EMAIL_ADDRESS>
even the 5.0.0 is not satisfied. Now I'm currently stuck with 4.2.2 and current solution is
AutoForm.getFieldValue('helloForm', 'helloField'); //yey! it works

Hope this helps!

Having exact the same issue. Calling AutoForm.getFieldValue from console delivers the current field value, however nothing changes reactively from the Template.helper function. Using version  5.0.2 and trying to get the value of a select2 box.

@j3omal, there could be some issue with using it on array fields. Not sure.
@BradRyan, I'm assuming yours works when you remove formId arg.
@miri-am, it may not work reactively with select2, but if you use the latest version of my autoform-select2 pkg with select2 4.0, I think it probably will.

@aldeed thanks. After trying it without the formId arg, it also work with select2. Why is it not working "reactively" as documented: AutoForm.getFieldValue(fieldName, [formId])?

@miri-am, you'll need to post a link to a reproduction repo if it's not working reactively. We can only cause reactive update if we know the value changed, and with third party libraries, sometimes the events we're using don't fire so we don't know the value changed.

sorry, I was not clear enough. It DOES work reactively with select2. I was just wondering why the formId as a parameter to getFieldValue breaks functionality - it only works without it. Anyways, for me it is working now. Thanks

oh, ok. I'm not exactly sure why it breaks with formId. It's possible it could be fixed, but for now it's best to omit if executing within the reactive context of a form.

@aldeed @williamkhshea  Hmmm well my inclusion of the form Id is very like the issue then.  Thanks for the input.
My concern is that I have a part of my app where I am using multiple forms with the same schema in the same template.  Will having multiple instances of the same form within a single template cause issues?  I reverted back to an older version, so I'll have to test to see.
Here is the scenario... I'm trying to create a multi-leg route, each route with an origin, 2 potential waypoints, a destination, and a departTime (all part of the same schema).  The user can create multiple routes, so rather than having a unique template for each route, I was generating a new form with a unique route Id.  I put a simplified example below.
html
<template name="QuoteTool">
{{#each RouteLeg}}
   {{> RouteTemplate}}
{{/each}}
</template>

<template name="RouteTemplate">
{{#autoForm schema="DepartRouteQuote" id=routeNumber}}
{{> afQuickField name='pickup' placeholder="Pickup Location"}}
{{> afQuickField name='departTime' placeholder="Pickup Time" value=getDepartTime}}
{{> afQuickField name='address' id="waypt1" class="waypoint" placeholder="Location #2"}}
{{> afQuickField name='address' id="waypt2" class="waypoint" placeholder="Location #3"}}
{{> afQuickField name='dropoff' placeholder="Dropoff"}}
{{/autoForm}}
</template>

js
Template.RouteTemplate.helpers({
  var routeNo = this.routeNumber;
  var departTime = AutoForm.getFieldValue(routeNo, "departTime");  // This is the I have it set up in version<EMAIL_ADDRESS>  var departTimeNew = AutoForm.getFieldValue("departTime"); // This is how I should set it up in version 5.0 +

  // do something with depart time
});

So my QuoteTool template potentially has up to 5 forms with the same Schema.  If I understand correct, var departTimeNew that I wrote out in my helper should be reactive and grab from the correct form.  Right?  And if I have a helper outside of the form, I can call var departTimeNew = AutoForm.getFieldValue("departTime", formId); and it will still work reactively?
Sorry for my confusion.  I missed the bit about excluding formId for reactivity.  I won't be able to test my case until later this week or the weekend.  Thanks!

@BradRyan I think multiple forms with same schema should be fine. The helpers look up the tree to the closest containing autoform. My goal is eventually to not require an id on the form but allow passing a selector when not within the form. But for now many things rely on a required id still.

Spent some time debugging this today.
Theres an expectation that changes in an afFormGroup template must be triggered by the actual HTML input DOMNode. Wherever the data-schema-key is defined within your template.
It would be nice if reactivity was tracked through the AutoForm.addInputType valueOut method.
But if you're running into this problem, be sure that changes to your input element are propagating up.

It does not rerun while calling AutoForm.getFieldVale inside an autorun callback.
The code looks like:
Template.myTemplate.onCreated(function(){ // There is an autoform in this template
  this.autorun(function(){
    console.log(AutoForm.getFieldValue('title'));
  });
});

It does not rerun after the first run even when I add the formId (But it works if I put the code in a helper).

@ChJJin I have the same problem. I can not run it onCreated or onRendered.
Did you find a workaround?

@aldeed  Yes there are issues with array fields, (When removing items in the middle of the array) There are several bugs opened with this issue. I have spent a couple of days looking at the issues XD


automatically disconnects after 5 seconds

Running the basic midi device example connects for only 5 seconds, then automatically disconnects.
running windows 11.

I'm having the same issue, connects and sends 3 or 4 messages then disconnects and won't reconnect without re-pairing the ESP32S3.

Found a work around for windows 11.  Installing the KORG-BLE midi driver and setting the Bluetooth Helper service to Automatic seems to allow a stable connection with the ESP32S3.  Shows up as a midi IN without any need for additional software like MIDIBerry or loopMidi etc...

Ah great! I had found a solution using loopMidi and Midi Berry however this worked only when using the Arduino-BLE-MIDI by lathoub (https://github.com/lathoub/Arduino-BLE-MIDI) and didn't seem to work with the ESP32-BLE-MIDI by Max22.
good to know that there is a simpler solution with KORG-BLE.

I'm still having disconnection issues with my Windows 10 using the lathoub's BLE-MIDI on my ESP32 WROOM after installing the KORG-BLE driver. This is so frustrating. I believe my laptop has Bluetooth 5.2 or 3. Not sure if that's the issue or not.

Can I ask how your devices appear in Windows?
I'm on Windows 10 and are having a lot of problems getting my esp32 to work at all with Windows. No problems with my iOS device. I've installed KORG BLE-MIDI Device driver (the r4-version that is suppose to fix issues introduced by an update to Windows)
But my device still just shows under Bluetooth - no device under Sound, video and game controllers other than the KORG-device.

Do you manually choose a driver for your device?


Can't retrieve model ChemGPT-1.2B from the store!

Is there an existing issue for this?

[X] I have searched the existing issues and found nothing

Bug description
I've been trying to use ChemGPT-1.2B, but I'm getting this error Can't retrieve model ChemGPT-1.2B from the store !.
Just FYI, I have successfully used the following models. It appears that I'm having the issue with only this model ChemGPT-1.2B.

GPT2-Zinc480M-87M
ChemBERTa-77M-MLM
ChemGPT-19M

How to reproduce the bug
transformer = PretrainedHFTransformer(kind='ChemGPT-1.2B', notation='selfies', dtype=float)
features = transformer(smiles)

Error messages and logs
  0%|          | 0.00/736 [00:00<?, ?B/s]
  0%|          | 0/7 [00:00<?, ?it/s]
---------------------------------------------------------------------------
ModelStoreError                           Traceback (most recent call last)
File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/loader.py:100](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/loader.py#line=99), in PretrainedStoreModel._load_or_raise(cls, name, download_path, store, **kwargs)
     99     modelcard = store.search(name=name)[0]
--> 100     artifact_dir = store.download(modelcard, download_path, **kwargs)
    101 except Exception:

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/modelstore.py:239](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/modelstore.py#line=238), in ModelStore.download(self, modelcard, output_dir, chunk_size, force)
    238     mapper.fs.delete(output_dir, recursive=True)
--> 239     raise ModelStoreError(
    240         f"""The destination artifact at {model_dest_path} has a different sha256sum ({cache_sha256sum}) """
    241         f"""than the Remote artifact sha256sum ({modelcard.sha256sum}). The destination artifact has been removed !"""
    242     )
    244 return output_dir

ModelStoreError: The destination artifact at [/Users/chunj/Library/Caches/molfeat/ChemGPT-1.2B/model.save](http://localhost:8889/Users/chunj/Library/Caches/molfeat/ChemGPT-1.2B/model.save) has a different sha256sum (4d8819f7c8c91ba94ba446d32f29342360d62971a9fa37c8cab2e31f9c3fc4c5) than the Remote artifact sha256sum (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855). The destination artifact has been removed !

During handling of the above exception, another exception occurred:

ModelStoreError                           Traceback (most recent call last)
Cell In[6], line 1
----> 1 features = transformer(smiles)

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/base.py:384](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/base.py#line=383), in MoleculeTransformer.__call__(self, mols, enforce_dtype, ignore_errors, **kwargs)
    359 def __call__(
    360     self,
    361     mols: List[Union[dm.Mol, str]],
   (...)
    364     **kwargs,
    365 ):
    366     r"""
    367     Calculate features for molecules. Using __call__, instead of transform.
    368     If ignore_error is True, a list of features and valid ids are returned.
   (...)
    382
    383     """
--> 384     features = self.transform(mols, ignore_errors=ignore_errors, enforce_dtype=False, **kwargs)
    385     ids = np.arange(len(features))
    386     if ignore_errors:

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/sklearn/utils/_set_output.py:316](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/sklearn/utils/_set_output.py#line=315), in _wrap_method_output.<locals>.wrapped(self, X, *args, **kwargs)
    314 @wraps(f)
    315 def wrapped(self, X, *args, **kwargs):
--> 316     data_to_wrap = f(self, X, *args, **kwargs)
    317     if isinstance(data_to_wrap, tuple):
    318         # only wrap the first output for cross decomposition
    319         return_tuple = (
    320             _wrap_data_with_container(method, data_to_wrap[0], X, self),
    321             *data_to_wrap[1:],
    322         )

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/base.py:207](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/base.py#line=206), in PretrainedMolTransformer.transform(self, smiles, **kwargs)
    204 mols = [mols[i] for i in ind_to_compute]
    206 if len(mols) > 0:
--> 207     converted_mols = self._convert(mols, **kwargs)
    208     out = self._embed(converted_mols, **kwargs)
    210     if not isinstance(out, list):

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/hf_transformers.py:367](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/hf_transformers.py#line=366), in PretrainedHFTransformer._convert(self, inputs, **kwargs)
    358 def _convert(self, inputs: list, **kwargs):
    359     """Convert the list of molecules to the right format for embedding
    360
    361     Args:
   (...)
    365         processed: pre-processed input list
    366     """
--> 367     self._preload()
    369     if isinstance(inputs, (str, dm.Mol)):
    370         inputs = [inputs]

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/hf_transformers.py:326](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/hf_transformers.py#line=325), in PretrainedHFTransformer._preload(self)
    324 def _preload(self):
    325     """Perform preloading of the model from the store"""
--> 326     super()._preload()
    327     self.featurizer.model.to(self.device)
    328     self.featurizer.max_length = self.max_length

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/base.py:90](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/base.py#line=89), in PretrainedMolTransformer._preload(self)
     88 """Preload the pretrained model for later queries"""
     89 if self.featurizer is not None and isinstance(self.featurizer, PretrainedModel):
---> 90     self.featurizer = self.featurizer.load()
     91     self.preload = True

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/hf_transformers.py:209](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/trans/pretrained/hf_transformers.py#line=208), in HFModel.load(self)
    207 if self._model is not None:
    208     return self._model
--> 209 download_output_dir = self._artifact_load(
    210     name=self.name, download_path=self.cache_path, store=self.store
    211 )
    212 model_path = dm.fs.join(download_output_dir, self.store.MODEL_PATH_NAME)
    213 self._model = HFExperiment.load(model_path)

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/loader.py:81](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/loader.py#line=80), in PretrainedStoreModel._artifact_load(cls, name, download_path, **kwargs)
     79 if not dm.fs.exists(download_path):
     80     cls._load_or_raise.cache_clear()
---> 81 return cls._load_or_raise(name, download_path, **kwargs)

File [~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/loader.py:103](http://localhost:8889/lab/tree/~/miniconda3/envs/datamol/lib/python3.11/site-packages/molfeat/store/loader.py#line=102), in PretrainedStoreModel._load_or_raise(cls, name, download_path, store, **kwargs)
    101 except Exception:
    102     mess = f"Can't retrieve model {name} from the store !"
--> 103     raise ModelStoreError(mess)
    104 return artifact_dir

ModelStoreError: Can't retrieve model ChemGPT-1.2B from the store !

Environment

Current environment
molfeat 0.10.1
pytorch 2.4.0
rdkit 2024.03.5
macOS Ventura 13.6.7
scikit-learn 1.5.2
Used conda to install molfeat

Additional context
I'm using my local laptop + Jupyter Lab.

Hi @hisplan, sorry for late response.
It's likely that you have loss internet while downloading a previous version.  Clearing the molfeat cache (/Users/chunj/Library/Caches/molfeat/ in your case) should help. Try removing the ChemGPT folders.
Otherwise, can you check if the instructions in https://github.com/datamol-io/molfeat/issues/29 or https://github.com/datamol-io/molfeat/issues/84 have solved your issue ?

I cleared the molfeat cache, tried again as follows, but still didn't work. The error message was pretty much the same as before.
transformer = PretrainedHFTransformer(kind='ChemGPT-1.2B', notation='selfies', dtype=float)
features = transformer(smiles)

Looking at the error message more carefully, it looks like the SHA256 checksum didn't match. Here's the part of error message I noticed:
ModelStoreError: The destination artifact at [/Users/chunj/Library/Caches/molfeat/ChemGPT-1.2B/model.save](http://localhost:8889/Users/chunj/Library/Caches/molfeat/ChemGPT-1.2B/model.save)
has a different sha256sum (4d8819f7c8c91ba94ba446d32f29342360d62971a9fa37c8cab2e31f9c3fc4c5)
than the Remote artifact sha256sum (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855).
The destination artifact has been removed !

Any idea?


detect cross repository unused methods

we would love to find methods which are marked as @api but are no longer used in any of the comsuming repos of our internal library repositories.
I am thinking about dumping collector call-site data into a file and process such dumped files with the rules.
this would allow me to combine the call-site data of several repositories and use it to feed the rules detect unused methods, even across repositories.
would this be something you are interessted in?

I think this is different use case and better fits for a standalone project that can build on this one :)
This package only deals with current project and I want to keep it that way.


Improved load-on-pan events

This is an initial implementation of the fix suggested in issue #688
3 new events have been added:

onLoad, called when panning in either direction
onLoadBefore, called only when panning left (replacing onLoadMore)
onLoadAfter, called only when panning right

I have left onLoadMore unchanged for now, so that this fix wont break anything. If we go this route, I recommend deprecating it as soon as possible to make the API more consistent.
Alternatively, we break backwards compatibility and use onLoadMore for everything 😄

Good luck with this PR. Unfortunately, @rrag didn't answer to any PR for a long time. So people ended up forking and using their own versions.

@aleksspeaker would you recommend any fork in particular? I like this library, but the fact that it doesn't seem to be maintained is a concern. Thanks!


Adding doc for contributors and maintainers.

What/Why?
This PR is to discuss and document how to release a new version of nmesos.

@felixgborrego Can you flesh out the bullet list so that I can try to build and release a new version. I will then update/finalize the document with anything that I discover is (maybe) missing from the initial description.

Hi @felixgborrego. Hope you got settled (at least a little bit :)). Can we try to get this documented this week? - RT

@felixgborrego LOL ... when you left Nitro you got removed as a contributor. Just added you again.

@rolandtritsch Added notes about how to release.
You will also need to change the public repo where to publish the .tgz used for the brew formula as the public Nitro S3 bucket may not be available to you.

@rolandtritsch Added notes about how to release.
You will also need to change the public repo where to publish the .tgz used for the brew formula as the public Nitro S3 bucket may not be available to you.

Yep. Your instructions worked. But I do not have access to the Nitro S3 bucket.
I think we have the following options ...

@felixgborrego asks Nitro to make the bucket (or a new bucket) available to all contributors
@rolandtritsch sets up a bucket on his private S3 account and will make that bucket available to all contributors (and we are using this going forward)

Thoughts? (@felixgborrego @mihaitodor @relistan @patoms)
PS: In case the bucket changes we need to make the following changes ...

change the url in the README
change the url in the Formula

Anything else?

@rolandtritsch sets up a bucket on his private S3 account and will make that bucket available to all contributors (and we are using this going forward)

I think this is probably the easiest way.

I think we have the following options ...

@felixgborrego asks Nitro to make the bucket (or a new bucket) available to all contributors
@rolandtritsch sets up a bucket on his private S3 account and will make that bucket available to all contributors (and we are using this going forward)

Thoughts? (@felixgborrego @mihaitodor @relistan @patoms)

Heads up. I will go with Option 2.

@patoms @felixgborrego Just FYI ... just merged the new release process.


fixed bug in CertificateRegistry

What does this PR (Pull Request) do?
This PR adds exception handling and logging where the TR code interfaces with the tomcat-native library to create or modify the SSL Host data structures used by openssl. The exception handling prevents TR from saving host configurations when they do not get successfully written to the native structures in openssl. Therefore TR will continue to try and update them each time it polls for SSL cert changes. This PR also fixes a bug that may have been unregistering the native SSL host configurations with JMX causing them to become eligible for untimely garbage collection.
This PR does not change any functionality of TR and does not affect the documentation. One unit test has been added to demonstrate that failed updates will cause TR to attempt the update again the next time it retrieves SSL certs from TO.

[x] This PR is not related to any Issue

Which Traffic Control components are affected by this PR?

CDN in a Box
Traffic Router

What is the best way to verify this PR?

First start Traffic Router and wait for it to finish initializing.
Go into Traffic Portal and add a new certificate for an existing HTTPS delivery service.
Wait for 5 minutes. There should be a log message in the TR logs indicating that new certificate has been loaded for the delivery service.
Use 'curl' to connect to the delivery service that has the updated certificate and then verify that the new certificate is being used by observing the 'curl' output. The expiration date in the curl output should match the expiration date set on the certificate.

If this is a bug fix, what versions of Traffic Control are affected?

master (79897553d46a)
3.0.0
3.0.1 (RC1)

The following criteria are ALL met by this PR

[X] This PR includes tests OR I have explained why tests are unnecessary
[X] This PR includes documentation OR I have explained why documentation is unnecessary
[X] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[X] This PR includes any and all required license headers
[X] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[X] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4341/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4505/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4519/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4548/


Ensure kernel parameters are absent from both GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT

See https://github.com/hercules-team/augeasproviders_grub/issues/52#issuecomment-734251681
This patch expresses basically what I think should happen, but I don't know why it's not removing the parameter from GRUB_CMDLINE_LINUX_DEFAULT. Could use some help with this.

Coverage increased (+0.1%) to 95.506% when pulling 53b9b4389dd99056ee03a4298c35f9d6924e8152 on kenyon:ensure-absent-from-both into 5378c628516c30742e2ba4fdf4dfcae9db458280 on hercules-team:master.

Hello!
This fix is not merged yet?

@toggetit yes, not merged, because I couldn't get it to work correctly.


2015 FRQ to PBL Associations and Reflection

Blog or describe how PBL/CB are teaching similar concepts in regards to Java.
Expecting clear, well described, and well formatted associations between FRQ to Java Code contained in final project.
Focus in on key themes for associations, i.e. if theme of FRQ is 2D array and you specify key algorithm, show how 2D array usage in final project is similar.
FRQ 1: 2D Arrays and Arrays/Array List
The main focus of FRQ 1 was manipulation of 1D and 2D arrays and using conditionals to test if the elements of an array are diverse.
GamesessionApiController.java:

We didn't directly use 1D or 2D arrays in our PBL, but we implemented a leaderboard to rank users based on their game session times. The part List sessionList acts like a 1D array, where each element represents a distinct game session. For each use we traverse their list of game session times with nested for loop to find the minimum time, which is similar to iterating through a 1D array, like in the FRQ where we iterated through to check if the sums were unique.
FRQ 2: Classes
This FRQ focused on Java classes and the necessary components within it, such as private instance variables, constructors, and methods. We create a HiddenWord class and used OOP and string manipulation to for a word guessing game.
Person.java:

For our PBL we implemented a public Person class for the login feature. The Person class has private instance variables of a person (email, password, name, dob, roles), constructor to initialize the object from the API with all the information, a custom method getAge calculates the age from their dob, and getters. It is a pretty standard Person class for login.
FRQ 3: Array/Array List
This FRQ introduced me to the concept of a sparse array, which is a data structure that represents arrays with a default value of zero and stores non zero elements in it, and how to access values, iterate through, and modify it. We didn't use sparse arrays in our PBL, but I think using the concept of our sparse array for the spot the difference game for phishing emails could be really useful if we were to implement it with images. The images could be represented using a sparse array of pixels, where the normal parts of the email image are the "default zeroes" and the suspicious parts would be the "non zero elements". Then based on where the user clicks, check if the point for where they click are at the same position of where the suspicious parts are represented in the sparse array. This would be helpful in optimizing memory usage in improving the efficiency of the game. We would only focus on storing the coordinates/pixels of the suspicious parts and reduce the amount of data overall we need to manage, which is important especially since we would want to use a high-resolution image. Using a sparse array would also be easy to update the position of the suspicious parts in each phishing email scenario as the levels increase, as we would adjust the positions.
FRQ 4: Methods and Control Structures
This FRQ dealt with interfaces, classes, methods, etc. to check if a number was in a group or multiple groups. I was a little confused with interfaces and classes at first so I did some research, basically a java class can inherit another class and multiple interfaces, while an interface can inherit other interfaces. Interfaces allows for creation of a contract that specifies the behavior that a class must implement. In our project, we used inheritance with public interfaces in our login feature.
PersonJpaRepository.java:

PersonJpaRepository interface handles data access related to Person entities, which represent the users in our system. It extends "JpaRepository<Person, Long>" to inherit the methods for standard CRUD operations specifically for Person entities. Within this interface there are methods crucial to the login process like findByEmail(String email) to retrieve user info based on their email, and findByEmail andPassword(String email, String password) to verify and authenticate user credentials. Also, custom queries like findByLikeTermNative(String term) allow for more complex search criteria, which could be used for features such as user search.
Overall Reflection of FRQ to PBL
After doing these FRQs and associating the key concepts between each FRQ and my group's final project's key concepts, I better understand what I need to work on and what concepts I have proficiency in.
The questions that I struggled on and need to work on those areas are FRQ 3, that dealt with sparse arrays, and FRQ 4 that dealt with methods, control structures, and interfaces. I had a hard time combining each part of the problem together and filing in the incomplete parts in a way that actually make it into a running program. Also specifically for FRQ 3, the sparse array really confused me at first so I had to use external sources to understand it. In the context of the AP exam, it's critical to thoroughly go through each condition and given piece of information while managing time to best understand and implement their requirements. I also need to understand when to convert arrays to strings, and iterating and modifying collections (ArrayList). I think I've become better at using a main method for testing and traversing of 1D and 2D arrays with iteration (for, while, nested loops, backwards, etc.).
Even though for several of the problems, College Board doesn't require us to completely finish each part into a running program, I must be familiar with these concepts as the are utilized in the bigger picture, seen by the associations between the FRQs and our PBL. A main goal I have for trimester 3 is not only just studying/completing FRQs, but also drawing relationships between them and our projects to make sure I am fully understanding the concept and how to implement them in a working program. This will strengthen my readiness not only for the AP exam, but also my programming in the future.

Bonus scoring graded 1.125 basis
Frq 1: 1. complete with running code with a small reflection at the end.
Frq 2: 1. also completed with running code, with example runtime. also has a reflection at end which focuses on the main focuses of the frq.
Frq 3: 1.1. Frq completed with running code and discusses research into FRQ topic at the end. The explanation for frq is thorough.
Frq 4: 1.1. Frq is completed with running code and elaborates on the topics utilized within the frq at the end.
(+) relations between PBL and frqs are displayed and clearly shown.
(+) writeups feel thorough and display a high level of understanding without dragging on.
(-) the reflection is kind of long, I don't know if Mort has the patience to read all of that tbh. It's good content but I think extra code has a bigger impact most of the time.

frq
score

1
0.9

2
0.9

3
1

4
0.95

3.75/3.6


Add character / word based diff

We need to show character or word based diffs sometimes.

I first tried to utilize the Pharo code, but it seemed deeply embedded in a particular use case and not reusable within the time I had available. I ended up using a Python library (which probably is not an option for GT proper): https://github.com/seandenigris/Pharo-Enhancements/blob/master/src/PharoEnhancements-GToolkit/PeCharacterDiff.class.st


fix: available pod is negative

What type of PR is this?

What does this PR do?

fix: available pod is negative
Which issue(s) does this PR fix?

Fixes #281
Special notes for your reviewer:

Does this PR introduce a user-facing change?

/assign @wangyizhi1

/approve
leave lgtm to @wangyizhi1

/lgtm


fix: security noopener

Checklist

[ ] Resolve issue/feat. n°
[x] security patch
[ ] tests are included
[ ] documentation is changed or added
[ ] existing message properties have been updated with new phrases
[ ] new (i18n) language set have been added
[ ] improvement to make view conforms with WCAG 2.1 AA

Description of change

verified ✅


Hotkey-fix

None choice now exists and WORKS for hotkeys

This will fix the Choice hotkeys being unselectable error


daytona start should provide some feedback or a "spinner"

It would be great to have some feedback as reassurance to the user that the command is working and that the workspace is starting. Just a charm "spinner" could do it, but if you have some msgs from the starting process that could also be ok.

/bounty $20

/attempt #915

/attempt #915

/attempt #915


Add mymanga.me

Would be nice if you could add mymanga.me ;)

Done. :)

thanks :)

Slight issue. You may want to change the match to not handle the main comic page(e.g http://www.mymanga.me/manga/009_RECYBORG)


15$ for solving +++ Adding and removing points with directions doest work properly

+++ 15$ for the one who solves this issue on bountysource +++
https://www.bountysource.com/issues/40802861-adding-and-removing-points-with-directions-doest-work-properly
The library im using is ngmap https://ngmap.github.io/
@allenhwkim:
Im not the first one who had this problem.
https://github.com/allenhwkim/angularjs-google-maps/issues/460
But i have created a plunker:
http://plnkr.co/edit/oHtF6sTY5KOujWM8Vj3G?p=preview
So if you play around with the add buttons on the bottom of the map, you will see that the directions will produce failures after a while. The markers than doesnt match to the directions.
I would be really grateful if anyone could help me.

The yellow markers are on the route. As you can see, the origin, the destination and the waypoints are correct, but somehow it doesnt update it on the map.

Heres our solution!!
http://plnkr.co/edit/hC47rBNQkVGTgYw4J137?p=preview
The problems is that the ngMap don't refresh correctly, so we just add a ng-if with a variable to refresh the directions directive, hopes this helps you!


baqup example fails when there's a horizontal rule in the document

The example uses an xml parser and this fails on
 tags. Elements in your quip will fail conversion:

It will have an error like:
skipping backup: mismatched tag: line 1013, column 39

I was able to fix this by changing the xml parser dependency:
def parse_document_html(self, document_html):
        """Returns an `ElementTree` for the given Quip document HTML"""

        document_xml = ""+document_html+""
        return lxml.html.fromstring(document_xml)


When using react-s-alert in project, double alerts are shown when react-bootstrap-table are mounted.

Hello!
We have some trouble with React-bootstrap-table in our project. We're using react-s-alert-component internally in our project and in all views that we are using react-bootstrap-table, we get 2 alerts when calling Alert.info (for example).
I think react-bootstrap-table use react-s-alert internally and somewhere define an  global < Alert > and because of this, we get alerts twice.
Can you provide a boolean in options or something, where you then can disable the global < Alert > internally in react-bootstrap table and then depend that it is defined in the parent project?
I think this is also an issue when you have 2 react-bootstrap-tables mounted at the same time..
We're not using tables in all our views, so we can not depend that we always have a react-bootstrap-table present where < Alert > is defined, so we need a way to not mount the < Alert > in react-bootstrap-table.
Thanks in advance.
PS. The version of react-s-alert you are using in react-bootstrap-table does use Object.Assign() which is not supported in IE11. When trying to show an alert in IE11 the application fails. Just a hint to also update react-s-alert in your project to a newer version.We have polyfilled this in our project at the moment and are using a newer version of react-s-alert where this is fixed, but it is not fixed in the version that react-bootstrap-table are using.

@widdde yes, I know this issue, if we have more than one table, will popup multiple alerts. That's why I create react-bootstrap-table2 and remove the alert dependency from react-bootstrap-table2.
However, I already stop to implement the new feature on react-bootstrap-table, but your suggestions is good, I'll give a props to not render the Alert inside the react-bootstrap-table and also update
Thanks

Thanks for the reply and fix :)
We will migrate to React Bootstrap table2 when it is available :)

@widdde sure, but it still need the time to develop ;)

@widdde fixed on v4.2.0 add renderAlert={ false } on BootstrapTable. Also update the version of react-s-alert. thanks

Thank you @AllenFang !
Will test 4.2.0 asap! :)


Bluetooth: Mesh: Transport seg send timeout

Resolves a corner case where the segmented sending would be rescheduled
before the segments were done sending. This would happen if the
processing of each segment took longer than the retry delay. The
consequence of this was that some segments were resent multiple times at
the cost of other segments, occasionally causing a loss of transfers.
Rearranges, realigns and documents seg_tx structure bitfields in
transport.c. Removes bitwidth of counter fields, and collecting all flag
fields into one byte.
Signed-off-by: Trond Einar Snekvik<EMAIL_ADDRESS>

cc @michal-narajowski
Retested MESH/NODE/TNPT/*


Make login explicit and refactor generate_client_tr_id

What do you think of this change?
This pull request makes the login command explicit instead of implicitly occurring as part of the EppClient constructor. It also moves generate_client_tr_id into a instance method and uses micros instead of secs.

What do you think of this change? It decouples login/logout from the client.


feat(tech-insights) Add option to override description in result renderer

Hey, I just made a Pull Request!
With this PR I'm adding a new extension for the tech-insights.
Currently, the end users were allowed to override the BooleanCheck component with something else. In our case, we were showing some extra information while hovering the component using the metadata information (which would be different depending on the check result).
However, we found it more useful to have the ability to also override the description. So I just extended the CheckResultRenderer to define a description as well (exactly in the same way as it was done for the component). But with the difference that it can be a string or a React component. The default renderer will use the same .check.description value and, in case the renderer is not found, the fallback will be also the same .check.description (same value as before).
So far, I tried this out in our internal Backstage instance, and we were able to use, for example, the MarkdownContent component, which allows us to extend the current description with other links depending on the check result.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@Xantier do you wanna take a look through this?

@iain-b do you wanna take a look at this?


No support for building deploy jars in scala

See bazelbuild/bazel#468

It's unclear to me from that ticket what work is remaining to be done on the rules_scala side...care to elaborate?

i think this is a duplicate of #20


Class12 feature

Problem:
Create a chart with data collected from polling, and prevent the same image from appearing in the subsequent round.
Solution:
(chart)
Import chart.js and create canvas element in index.html. Get reference to it in js/app.js and render by invoking makeItemChart(): store item names and likes in local arrays, item.names = label, item.likes = data. Set colors.
(img algorithm)
Assign item to temp variable previous(Left, Middle, Right). Validate new object against previous and already rendered objects. If validation fails, keep iterating until the item instance is unique. Then display on page.
Notes:

can I refactor the validation with switches?

Problem:
Create a chart with data collected from polling, and prevent the same image from appearing in the subsequent round.
Solution:
(chart)
Import chart.js and create canvas element in index.html. Get reference to it in js/app.js and render by invoking makeItemChart(): store item names and likes in local arrays, item.names = label, item.likes = data. Set colors.
(img algorithm)
Assign item to temp variable previous(Left, Middle, Right). Validate new object against previous and already rendered objects. If validation fails, keep iterating until the item instance is unique. Then display on page.
Notes:

can I refactor the validation with switches?

Problem:
Create a chart with data collected from polling, and prevent the same image from appearing in the subsequent round.
Solution:
(chart)
Import chart.js and create canvas element in index.html. Get reference to it in js/app.js and render by invoking makeItemChart(): store item names and likes in local arrays, item.names = label, item.likes = data. Set colors.
(img algorithm)
Assign item to temp variable previous(Left, Middle, Right). Validate new object against previous and already rendered objects. If validation fails, keep iterating until the item instance is unique. Then display on page.
Notes:

can I refactor the validation with switches?


Paradox ruby prompt

I added a ruby-info on the RPROMPT looks nice and I am going to use it :) I added comments in the code and no extra function.


Datagrid Master Detail View Design

Select one ...  (check one with "x")
[ ] bug
[ ] feature request
[x] enhancement

Description
The datagrid master detail view allows users to dive into the details of particular items in the datagrid and quickly navigates between them. Today the Clarity provides the expandable row solution to show the details of particular items in the datagrid. However, we've heard use cases of using tabs, table, datagrid, stackview, etc. in the expandable view and the current solution might not scale well in these scenarios. The following paragraphs will describe our proposal to solve this problem.
Use cases under consideration

View the detail of an item in the datagrid
Quickly navigates between the detail views of different items
Select an item in its detail view and take actions
Select multiple items in their detail views and take actions
View datagrid/table/stackview in the detail view
Switch between tabs in the detail view
Drill down to one more level of detail of the detail view

Future use cases under consideration
Drill down to more levels of details
Single Select
Click the detail view icon to bring up the detail view.

Clicking on the icon again or clicking on the close button on right upper corner will close the detail view.

Demo

Multi-select
Similar to single-select, click the detail view icon to bring up the detail view. Clicking on the icon again or clicking on the close button on right upper corner will close the detail view.

Demo

Show tabs, datagrid, table, stackview, etc. in the detail view
Tabs
Sometimes the detail view contains a lot of information and tabs are used to categorize it:

Datagrid/table/stackview
Sometimes the detial view contains datagrid, table or stackview:

If the items in the datagrid/table/stackview contains more details for the users to dive into, show the details in a pop-up:

When there are very few items in the master view

Expand the height of the first column to the height of the detail view, with a maximum height specified. Show blank space below the rows:

The Title of the Detail View
The title of the detail view doesn't have to match the content in the first column of the master view. It's defined by the product.

Expandable Datagrid
This is an available component of Clarity: https://vmware.github.io/clarity/documentation/v0.11/datagrid/expandable-rows
When the item has not much detail to show and it's text-only, expandable datagrid will be a quick and neat solution.

 Please!
Also, give us a way to interact with the Fat Cell and nested Tabs via routerLink and this is golden.

wow this looks good, cant wait to be able to take advantage of it!

Questions & comments from our meeting

how are visually indicating that "item name" opens the detail pane?

use an icon in place of expand caret?
won't have expand and master detail in same datagrid at the same time

where does the "item name" column header go?
fat cell subtext isn't a11y against background color, needs to be darker
can clicking on the identifier ever do something other than open the detail?
what do interactions look like on shorter datagrids?

10 rows
6 rows
are they viable?

clicking row that selects and opens details won't work
we don't use link text to perform actions, though this seems more like navigating and could work
sorting, how do we see it?
nested datagrid opens modal, how are we communicating the difference?
how do fat cell-extra column values work with show/hide columns?
what do we use if there is no item name?

we need recommendation on identifier
what about when datagrid columns can be dragged or reordered?
or when datagrid identifier is hidden?

need designs that include pagination, current design covers pagination
lose visibility on filtering-sorting on non-identifier columns

refactor filter to show all filters?

how is the width of the identifier column determined?

what about narrow datagrids?

what does "fat cells" expand in place mean?

@vmwareux-vivian and @reddolan
Can we update this ticket with the final details from our discussion that week? That way we can wrap up the UX piece and get it queued for implementation.
Thanks!

@vmwareux-vivian and @reddolan
Please see last comment...

@mathisscott Hi Scott, I updated the ticket two weeks ago, and have sent the link out to Red for review. If there's anything I missed in here, please let me know.
@reddolan Hi Red, do you have any comment on this write-up?

@reddolan ^

Nice and valuable component 😄

@vmwareux-vivian there are no "fat cell" examples or content describing them and how they work. There are some questions and things to address in the comment above

@vmwareux-vivian @mathisscott everything looks good to me.
Note: we decided to hold off on implementing the "fat cell" design

Any progress on this? Where does it stand on the priority list?

We haven't started development on it yet. It is one of the highest priority items in our backlog though.

@jacobbutton We haven't started development on it yet. It is one of the highest priority items in our backlog though.

Hello, is this component planned for a particular release already? We have some pending designs based on it and I would like to find out if we should wait for it or use alternative approach :)

This sounds like it would probably be a better fit for core pages in my app.
I currently have 34 core set of data (tables) that have their own pages. Each has filter box at top (outside datagrid) to allow easy searching of key columns. clicking on a row then opens a large modal which has details and various tabs with further details and possibly lists.
I had been thinking of moving from modals to actual page nav passing in the selected record id. but navigation is typically back and forth on items in the list, so the master detail view looks like it could be the best fit and cleanest from a UI perspective.
Great to hear it is on your list.
I would also then setup route to the page so can bring it up showing a particular list item. Like to always have the ability to drilldown from other parts of the system that may list that item.

@reddolan Any updates on when we can expect this to be released? A very rough estimate would also do.

@halachliyskid
We haven't started implementation yet and we presently don't have this feature queued up. A better question would be when do you need this by?
I should be able to give you an idea if it will or won't be available.

This is great information to have, @jacobbutton
Currently, the implementation of this component feature is blocked by in-progress datagrid work as well as a redesign and implementation of datagrid pagination.
You can always look at our Work In Progress page to get an idea of where things are and what's coming next.

@mathisscott The current items in the Work in Progress Page are all with deadlines such as August/September/November. Does this mean that it is safe to assume that there is no way this component is released before November (probably even later)?

I understand progress on this is being blocked by current in queue items, but I'd love to at least see this added to the Work In Progress wiki Next Up section so I know it's getting some love and still on the priority list.

@mathisscott I see 1 important thing is missing here - how is it gonna look in mobile view? As far as I can see, using same layout in mobile view will be barely usable, with lots of scrolling involved.

You can always look at our Work In Progress page to get an idea of where things are and what's coming next.

Hi! @mathisscott - thanks for the link to your board!
I already visited it a couple of weeks ago and noticed this design/issue here is listed as 'in progress' on your WorkInProgress page and also on your Zenhub board then and now.
But in Github it's still displayed as 'open' - would be great if you could clarify what the different status mean: does 'In progress' on the zenhub board imply there is already someone working on this one?
And I noticed the assigned milestone '2.0 Stretch - due March 15th' got renamed to 'Post 2.0 - due May 31st'
-> can you give me a rough guess when this one here will be finished?
Thanks!

GitHub only has Open/Closed status, so ZenHub gives more detail and In Progress means its being actively developed (by me). We renamed the milestone to be more accurate, since 2.0 is mostly set by now.
There is no estimate that I can give beyond sometime after 2.0 lands.

Hi @mathisscott ,
Can we expect this to be part of 2.2 release ?

@tarangkhandelwal
It's been in a holding pattern in review while the team focused efforts on improving accessibility. @gnomeontherun would have the best idea of when this feature will get back in queue.

I was really hoping this would have been a higher priority by now. Accessibility is important and everything, but this is a major structure and navigation pattern that I think a lot of development teams have been waiting for.

@jacobbutton I understand and feel the same way. I'm working on it and want it to be finished too. It is a complex interaction that itself has accessibility issues to iron out to ensure it is correct. We never give exact dates or deadlines, but this is on the short term priorities and targeted for 2.x.

added this to the 2.0 milestone on Dec 20, 2018
modified the milestones: 2.0, 2.0 Stretch on Feb 27
modified the milestones: Post 2.0, 2.1 on May 31
modified the milestones: 2.2.0, 2.2.1 11 days ago
modified the milestones: 2.2.1, 3.0 3 days ago

What the hell is going on? Honestly, I can understand delays, and other priorities coming up. But developers that have come to rely on your framework need some sort of reliable predictability of when expected and highly anticipated features are going to release. Our development timelines depend on it!
From what I can tell the code for this feature was written back in early January. I know you've had a redirect towards accessibility, and I can appreciate that but I, and I feel a lot of other people, are growing increasingly frustrated.

@jacobbutton
As you can imagine, anything involving the datagrid is extremely complicated. Detail pane is currently back in development and we are targeting a release for it no later than the middle of October.
It was moved to 3.0 because it requires a breaking change in the datagrid DOM structure that might cause problems for consumers doing advanced things with the datagrid (like using wrappers and such).
Our plan, however, is to release it as part of a "preview" or "beta" so that people can use the Detail Pane without having to upgrade to Angular 9, deal with the other breaking changes in 3.0, or wait until the November-December official release of 3.0 to use it.
Your frustrations are heard and hopefully this helps alleviate them somewhat.

Is there an example documentation page for this component?
Im searching in datagrid, but could not find it. :(

Documentation is pending, but you can see our demo here https://github.com/vmware/clarity/blob/master/src/dev/src/app/datagrid/detail/detail.html

Documentation is pending, but you can see our demo here https://github.com/vmware/clarity/blob/master/src/dev/src/app/datagrid/detail/detail.html

Im looking for example at
https://clarity.design/documentation/datagrid/structure
What is the minimum required angular version when clarity v3 GA is released?

@shravansofts
Angular 8

We will certify it for Angular 9 actually. If there are no breaking changes on Angular's side that affect us to support Angular 8, we will be able to support both, but we don't know yet.

Is there going to be a way to incorporate the router to get to a particular item?
How difficult would that be to do?

We will certify it for Angular 9 actually. If there are no breaking changes on Angular's side that affect us to support Angular 8, we will be able to support both, but we don't know yet.

Could you provide realistic date for Clarity v3 GA release?
We want to decide upon version for our product stack upgrade work.

Our release policy is here: https://medium.com/claritydesignsystem/updating-the-clarity-release-and-support-strategy-c1e37f7d5a0
Our date depends upon Angular's next release.


show blank page after presented in form sheet style on Swift iPad App

I have a Swift project. I want to present this picker in form sheet on iPad. But it shows me a blank view, see screenshot at the end pls.
Steps to reproduce:
0- I'm using Xcode 7.1.1
1- new a Master-Detail Application in Swift
2- add CTAssetsPickerController to Podfile and run pod install
3- change the MasterViewController
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        PHPhotoLibrary.requestAuthorization({ (status) -> Void in
            dispatch_async(dispatch_get_main_queue(), { () -> Void in
                // init picker
                self.assetsPicker = CTAssetsPickerController()

                // set delegate
                self.assetsPicker.delegate = self

                // set default album (Camera Roll)
                self.assetsPicker.defaultAssetCollection = .SmartAlbumUserLibrary

                if UIDevice.currentDevice().userInterfaceIdiom == .Pad {
                    self.assetsPicker.modalPresentationStyle = .FormSheet
                }

                // present picker
                self.presentViewController(self.assetsPicker, animated: true, completion: nil)
            })
        })
   }

4- run the app and add an entry by clicking on the "+" on the right bar button of MasterViewController
5- click on the new cell inserted above. At this time above code will be called.
6- show a blank page as the image following.

Thank you very much. :)

I did above steps with an Objective-C project. And I found the code works well in Objective-C. But I haven't done anything else but translate the code from Swift to Objective-C. I think there may be bugs in Swift.
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

   [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
       dispatch_async(dispatch_get_main_queue(), ^{

         // init picker
         CTAssetsPickerController *picker = [[CTAssetsPickerController alloc] init];

         // set delegate
         picker.delegate = self;

         // set default album (Camera Roll)
         self.assetsPicker.defaultAssetCollection = PHAssetCollectionSubtypeSmartAlbumUserLibrary;

         // to present picker as a form sheet in iPad
         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
              picker.modalPresentationStyle = UIModalPresentationFormSheet;
         }

         // present picker
         [self presentViewController:picker animated:YES completion:nil];
       });
    }];
}

@wjiuxing Noted and thanks.

Hi, I just wanted to share: I've been experiencing the same issue. I tried not using the defaultAssetCollection property, and that fixed it. Any ideas why?
Thanks

I'm getting the same blank screen, but in an Objective-C project.
Trying to get my head around it. Did you fix this?

Please refer to #160.


Merge pull request #2 from Azure/master

Master

Description

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] I have read the contribution guidelines.
[x] The pull request does not introduce breaking changes.

General Guidelines

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

Testing Guidelines

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

SDK Generation Guidelines

[x] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[x] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[x] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

@iyerrb,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@iyerrb please reopen this PR if you have any files that got changed.
Currently this PR has no files plus please describe what is this PR about, use the PR template.


Add allow_other option. Also, make error on unknown options more clear.

Addresses my issue #17.

@vieux, could you help me understand why the build is failing?

@koenlek sorry, can you fix the conflict, I'll take a look right after

@vieux It took me a while to find some time to fix it. I think I've fixed it now, but strangely enough, I cannot get any custom build of the plugin to work anymore, even when I build the upstream master vieux/sshfs:next wont work. What I even tried, without luck, was:
# Cleanup
docker plugin disable vieux/sshfs:next
docker plugin rm vieux/sshfs:next
docker plugin disable vieux/sshfs:latest
docker plugin rm vieux/sshfs:latest

# Make & enable:
git checkout upstream/master
make
docker plugin enable vieux/sshfs:next

# Create volume:
docker volume create -d vieux/sshfs:next -o sshcmd=<me>@localhost:<my_home> -o password=<pw> test_home
docker run -it --rm -v test_home:/home/test ubuntu:16.04

But I get this error:
docker: Error response from daemon: error while mounting volume '/var/lib/docker/plugins/dc0a1b11f7ced0e73a4bc6c54e9d54a1b1a169978185a52add9fd45e2b2e6657/rootfs': Post http://%2Frun%2Fdocker%2Fplugins%2Fdc0a1b11f7ced0e73a4bc6c54e9d54a1b1a169978185a52add9fd45e2b2e6657%2Fsshfs.sock/VolumeDriver.Mount: dial unix /run/docker/plugins/dc0a1b11f7ced0e73a4bc6c54e9d54a1b1a169978185a52add9fd45e2b2e6657/sshfs.sock: connect: no such file or directory.

If I remove plugins again and install official plugin (docker plugin install vieux/sshfs), all works fine again...
I really don't understand. I use latest docker version on Ubuntu 16.04. Any help would be highly appreciated.

Could someone review this PR and get it merged?

@koenlek Could you share the validation steps, I can hep verify if needed.

Ok, to test, just run this with the current plugin:
# First we make an sshfs volume that points to you home direcotry at localhost
docker volume create -d vieux/sshfs -o sshcmd=<you>@localhost:$HOME -o password=<your_pwd> ssh_home

# Next we try to list the files as root, which is fine:
docker run -it --rm -v ssh_home:/tmp/home ubuntu:16.04 ls /tmp/home

# Now we try to list it as another user (UID=1000 in this case), which fails with a permission denied:
docker run -it --rm -u 1000:1000 -v ssh_home:/tmp/home ubuntu:16.04 ls /tmp/home

Now let's build the new plugin:
docker plugin disable vieux/sshfs:next # is not needed first time
docker plugin rm vieux/sshfs:next # is not needed first time
make
docker plugin enable vieux/sshfs:next

No lets again with the next plugin (vieux/sshfs:next), with the -o allow_other option:
# First we make an sshfs volume that points to you home directory at localhost, WITH the allow_other option.
docker volume create -d vieux/sshfs:next -o allow_other -o sshcmd=<you>@localhost:$HOME -o password=<your_pwd> ssh_home_next

# Next we try to list the files as root, which is fine:
docker run -it --rm -v ssh_home_next:/tmp/home ubuntu:16.04 ls /tmp/home

# Now we try to list it as another user (UID=1000 in this case), which succeeds too:
docker run -it --rm -u 1000:1000 -v ssh_home_next:/tmp/home ubuntu:16.04 ls /tmp/home

Please note that I found the whole behaviour of docker a bit buggy when testing this and switching between different versions of the plugin. Sometimes I just made a 'clean start' by removing all the sshfs plugin based volumes, removing the sshfs plugins (latest + next) and then restarting the docker daemon.

@vieux I found another bug which was introduced in #20. If you did not supply any port, the whole plugin would crash upon a docker run -v <sshfs_vol>:<some_path> <docker_img> call. I patched it in my last commit.
@vieux What I find strange is that the latest master branch version of the plugin wasn't pushed yet to the official docker plugin registry (because the version from docker plugin install vieux/sshfs does not contain this bug...). After this PR is merged, will it be released to the official registry?

@vieux or @cybertk: did you find the time to review this already?

@vieux reminder...

@koenlek sorry about that. LGTM!

@koenlek I pushed at vieux/sshfs:next if it seems to be stable, I'll probably cut 1.1


Track building of fat module in CICD

Description:
We need to monitor the health of the building fat module during our release pipeline to ensure early detection of any potential issues.

Scope: new CI/CD job to build and validate fat module artifact.


IP radius source interfaces

Issue Type

[ ] Template enhancement
[x] Role enhancement
[ ] Documentation enhancement (avd.sh)

Is your feature request related to a problem? Please describe.
IP radius source interfaces should be configurable.
Describe the solution you'd like
Structure from ip tacacs can be reused.
Describe alternatives you've considered
None
Additional context
Add any other context or screenshots about the feature request here.

Will create a new Data Model for IP Radius Source Interface as follows:
ip_radius_source_interfaces:
    - name: <interface_name_1 >
      vrf: < vrf_name_1 >
    - name: <interface_name_2 >
      vrf: < vrf_name_2 >

To create the following rendered Cli:
ip radius vrf MGMT source-interface Management1
ip radius vrf RED source-interface Ethernet1


Expose Utils to create token instances as part of the public API.

These utils will be needed in use cases users create instances directly.
specifically:

Additional Token emitting in custom token patterns.
When using an hand built lexer to create a Chevrotain Token vector.

done as part of
https://github.com/SAP/chevrotain/issues/423
http://sap.github.io/chevrotain/documentation/0_26_0/modules/_chevrotain_d_.html#createtokeninstance


Figure out how message checking and additions should work

Right now, the schema is extremely strict in checking message fields. It expects all messages to have every field in the schema, no more, no less. This is less than optimal for making things work with any sort of backward compatibility, which we will no doubt have to support as people build apps then abandon them.
It might be worth making it so that adding fields to a message and adding new messages is ok, but removing fields from messages can never happen. If we do this, we should also remove the maximum field count check from the schema, so that if we receive a message without all the fields we expect, we can try and deal with it.

Moving to metafetish/buttplug-schema#1


Fixed silent failures and hung application when a standalone service …

…fails to initialize.
Issue:
Previously, if JobScheduler failed to start, the application would hang and no error would be reported.
Solution:
Added a listener to the ServiceManager in ServiceBasedAppLauncher that logs failures of the services and shutdowns Gobblin on failure of a service.
Also separated the quartz scheduler as an independent service managed in the ServiceManager. This is necessary because otherwise, when JobScheduler fails, its shutDown method cannot be called, so the scheduler cannot be closed, causing the application to hang. As a separate service, the ServiceManager will shutdown the scheduler correctly.

@chavdar can you review?

LGTM.

Pleas fix the FindBugs warnings.


Implement SE-0068: Expanding Swift Self to class members and value types

What's in this pull request?

Implementation start on SE-0068. This does not yet implement allowing Self to refer to the dynamic type in non final classes outside of function signatures, just expanding Self to value types.
Resolved bug number: (SR-1340)

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

A smoke test on macOS does the following:

Builds the compiler incrementally.
Builds the standard library only for macOS. Simulator standard libraries and
device standard libraries are not built.
lldb is not built.
The test and validation-test targets are run only for macOS. The optimized
version of these tests are not run.

A smoke test on Linux does the following:

Builds the compiler incrementally.
Builds the standard library incrementally.
lldb is built incrementally.
The swift test and validation-test targets are run. The optimized version of these
tests are not run.
lldb is tested.

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@tkremenek Here is a PR which implements most of SE-0068 for Swift 3

@swift-ci smoke test

@joewillsher thanks!  Will have a couple people review this change.

What happens if you use Self inside a non-Self-returning class method? Does it still work?

It does work yes, at least on a local version of this code which completes the proposal and allows Self to refer to the dynamic self in classes. It should work here too — it just won't refer to the dynamic type.

I’m running tests on that updated version now — I can submit it as another PR when it is ready.

@jrose-apple I have made a bunch of these changes as well as finish of the rest of the SE proposal implementation, but there are still a few issues.
I’m on UK time so I can’t work on it any more right now — sorry if this means it will miss Swift 3.

Adding Self to dynamic contexts has proven difficult — it ends up hitting lots of SILGen edge cases when the DynamicSelfType and the concrete type get used interchangeably.
I’m going to have to look at changing the hasDynamicSelf mechanism on functions and figure out how to cannonicalise non-final-class's DynamicSelfType without all the special cases it has now.
I will close this PR now and will open a new one when that work is complete.

@slavapestov and @rjmccall have some short- and long-term ideas for improving how Self types get lowered in SIL. The current representation is pretty bogus. You might want to coordinate with them.

Thanks Joe. Slava and John I would really appreciate some pointers here, this proposal needs some significant changes to this area and I’m not sure how to approach it. I’d be happy to work on implementing any ideas you have, thanks.

I think the proposal as written is reasonable, but the compiler implementation needs a lot of work to live up to it.

@joewillsher I think a good start is to put 'Self' behind a staging flag for now.
Another thing to try is to give 'self' the dynamic 'Self' type in all class methods, not just those returning 'Self', again, guarding this with a staging flag. Presently, this will result in some optimizer regressions, but it might allow you to make more progress with the language change.


DAP uninstall - Verify each task is uninstalled

An investigation needs to be done on each task to verify that each uninstall step successfully reverts each installation step. There are 3 roles that need to be covered (see uninstall_conjur_node.yml) 1. configure_node 2. setup_dependencies 3. setup_conjur_apps
DOD
configure-node

[ ] chef
[ ] cluster
[ ] conjur
[ ] health
[ ] info
[ ] journald
[ ] nginx
[ ] postgres
[ ] seed
[ ] syslog
[ ] ui
[ ] unlock-at-boot
[ ] unlocker

setup_dependencies

[ ] chef
[ ] etcd
[ ] nginx
[ ] openssl
[ ] postgresql
[ ] ruby
[ ] syslog
[ ] utils

setup_conjur_apps

[ ] evoke
[ ] possum
[ ] ui

opened in wrong repo :o


restore: set workload=olap

We do this in the dump command (https://github.com/planetscale/cli/blob/12faa1658517b2677877c9cf5821c1550c7b2c3f/internal/cmd/database/dump.go#L143), I think we probably want to in the restore command as well.
This should make imports more smooth for more users, I believe.

I don't think you can insert in olap mode.