[Bug]: MudExDialog and DefaultFocus

Contact Details
<EMAIL_ADDRESS>What happened?
Default focus with MudExDialog does not work, while it is ok with MudDialog. C.f. discussion #108 .
Example code:
@page "/mudexdialanddefaultfocus"

@using MudBlazor.Extensions.Options

@rendermode @(new InteractiveServerRenderMode(prerender: false))

<MudDialogProvider></MudDialogProvider>

<MudExDialog Visible="true"
             DefaultFocus="DefaultFocus.None"
             OptionsEx="new DialogOptionsEx
             {
                 CloseButton=true,
                 BackdropClick=false,
                 Position = DialogPosition.Center
             }">
    <TitleContent>MudExDialog+MudTextField</TitleContent>
    <DialogContent>
        <MudTextField @bind-Value="TextValue">Text Field 1</MudTextField>
        <MudTextField @bind-Value="TextValue2" AutoFocus="true">Text Field 2 with AutoFocus</MudTextField>
    </DialogContent>
</MudExDialog>

@code
{
    public string TextValue { get; set; } = default!;
    public string TextValue2 { get; set; } = default!;
}

Expected Behavior
Default focus as per MudDialog
Example code:
@page "/mudexdialanddefaultfocus"

@rendermode @(new InteractiveServerRenderMode(prerender: false))

<MudDialogProvider></MudDialogProvider>

<MudDialog Visible="true"
           DefaultFocus="DefaultFocus.None"
           Options="new DialogOptions
           {
               CloseButton=true,
               BackdropClick=false,
               Position = DialogPosition.Center
           }">
    <TitleContent>MudDialog+MudTextField</TitleContent>
    <DialogContent>
        <MudTextField @bind-Value="TextValue">Text Field 1</MudTextField>
        <MudTextField @bind-Value="TextValue2" AutoFocus="true">Text Field 2 with AutoFocus</MudTextField>
    </DialogContent>
</MudDialog>

@code
{
    public string TextValue { get; set; } = default!;
    public string TextValue2 { get; set; } = default!;
}

Output:

Screenshots
No response
Reproduction link
No response
What application type are you referring to?
ServerRendered
Custom Application Type
No response
MudBlazor.Extension Version
<IP_ADDRESS>
MudBlazor Version
7.15.0
What .net Version are you using?
.Net8
What browser are you using?
Chrome
Sample Solution
No response
Pull Request
No response
Code of Conduct

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

Thanks for reporting. I will have a look at it

I fixed it. But version not released yet. However preview package with this fix is available 2.0.8-prev-2411231414-main

Many thanks. Tested and sounds ok -;)

your welcome. Version is released in 2.0.8


Homebrew Formula is broken

When trying to install awstools via homebrew (as per the readme), I get the following error:
Running `brew update --preinstall`...
==> Tapping sam701/awstools
Cloning into '/usr/local/Homebrew/Library/Taps/sam701/homebrew-awstools'...
remote: Enumerating objects: 30, done.
remote: Total 30 (delta 0), reused 0 (delta 0), pack-reused 30
Receiving objects: 100% (30/30), done.
Resolving deltas: 100% (9/9), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sam701/homebrew-awstools/awstools.rb
awstools: Calling bottle :unneeded is disabled! There is no replacement.
Please report this issue to the sam701/awstools tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/sam701/homebrew-awstools/awstools.rb:8

Error: Cannot tap sam701/awstools: invalid syntax in tap!

So it looks to me like you're trying to use a feature that was deprecated and is now disabled:
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sam701/homebrew-awstools/awstools.rb
awstools: Calling bottle :unneeded is disabled! There is no replacement.

I'm on MacOS Monterey and Homebrew 3.4.3

PR was merged, tap works and brew install works again for me.


build: update to sdk v1.2.0

Signed-off-by: Mike<EMAIL_ADDRESS>

Please close in lieu of this PR
https://github.com/edgexfoundry/app-service-configurable/pull/81


Specify package for aliases

Useful for running tests for a specific package
will update docs approved

Thanks, /cc @samoht who asked about this

Great, thanks!

Merged, I updated a bit the documentation as it didn't reflected exactly the meaning. In particular, it's fine to omit the (package ...) field even when multiple packages are defined. It just mean that the tests will be run as part of every package


Error: Unable to resolve module react-native-elements

Hi,
it seems te snippet usesreact-native-elements instead of @rneui/themed.
This SO answers at the question are all about installing react-native-elements, but I hesitate to install the package since I don't want concurrent installations to run in parallel.
Am I missing something ?
PS: Thanks for such a clean and robust library ❤

By the way some suggestions are not exactly accurate with recent version


Register weaveDNS resolver address in weaveDNS

nginx can reverse proxy/load balance across servers by domain name as long as a resolver is specified explicitly in the configuration (system resolver cannot be used, presumably as it does not have a non-blocking API). At the moment this would require determining the IP address from /etc/resolv.conf and injecting it into the configuration, which is a little awkward. Fortunately the resolver address can itself be specified by hostname, and this is looked up (with the system resolver) when nginx starts. Consequently if each weaveDNS peer were to publish a well known name (e.g. weavedns.weave.local) pointing to the correct resolver IP, this name could be used in the nginx configuration and the system would bootstrap itself automatically with no need to preprocess configuration files.

if each weaveDNS peer were to publish a well known name

A lookup of that would return a random weavedns instance (currently) and a random shuffle of all results (eventually), which is not what we'd what.

By 'correct resolver IP' I mean the docker bridge IP in the current implementation - I am relying on this being the same on every node admittedly.

perhaps publish weavedns-$(hostname).weave.local?

Assuming you could construct an nginx configuration that did a similar interpolation such that the same config would work on any host, yes. Or perhaps you've found a use for (locally scoped) CNAMEs...

Hmm. locally scoped CNAME. That's an interesting idea.

Referencing #636.

We could add a special flag in the API that would hide a name from mDNS (a trivil change), so we could register dns.weave.local. from the weave script when starting WeaveDNS...

or have a naming scheme, e.g. X.local.weave.local would only ever return locally registered entries.

I would prefer a ident naming scheme: it would be much easier to implement. We currently have two fake idents: weave:expose and weave:remote. We could add something like weave:local, weave:private, etc

Interesting idea.
I can see how the ident based scheme would work in the current mDNS implementation, e.g. we would not return records with a weave:local ident in response to an mDNS query. And I guess in the gossip based implementation we'd exclude such records from the gossip.
The advantage is that we are not overloading names even more. The disadvantage is that the selection is made at record creation rather than query time. i.e. we say "I want these records to be locally visible only" instead of asking "what local records are there for this name?"

So, if no one objects, I will add a fake ident weave:local and I will register there a dns.<local-domain> that will not be exported via mDNS...

See discussion in #1058 for why this isn't necessary, i.e. docker run --add-host weavedns:$(weave docker-bridge-ip) does the trick.


Raise the minimum RSA modulus size to 1024 bits.

The first publicly known instance of a 512 bit RSA modulus being factored was in 1999.
In 2009, an individual cracked a 512 bit RSA modulus by themself with a single PC.
The "Factoring as a Service" paper, showing that such keys could be broken in a few hours for tens of dollars, came out in 2015.
In 2018, OpenSSL v1.1.1 set its minimum RSA modulus size to 512 bits. This is still the minimum as of OpenSSL v3.3.1.
People still use 512 bit RSA keys without realizing that they're catastrophically weak.
This should be easy to stop.
I propose the following deprecation stages:

OpenSSL limits RSA key generation to a minimum of 1024 bits, but still allows such keys to be loaded/used.
OpenSSL drops support for verifying signatures for RSA keys smaller than 1024 bits.
OpenSSL fully drops support for RSA keys smaller than 1024 bits.

A more conservative approach could temporarily include an option in openssl.conf to temporarily re-enable dangerously weak keys while systems are updated.

(1) seems pretty reasonable to do right now
(2) and (3) seem plausible, but I imagine that would likely want to be done on a major release boundary.
Would you be willing to submit a PR for this?  (1) is likely pretty straightforward to accomplish by updating RSA_MIN_MODULUS_BITS

RSA_MIN_MODULUS_BITS is checked in ossl_rsa_sp800_56b_check_public, which is in turn called from ossl_rsa_validate_public.
Doing some tests though, it doesn't seem like anything breaks when trying to load/use a 512 bit RSA key when compiled with RSA_MIN_MODULUS_BITS 1024.
I can definitely submit a PR to make that change, though I'd like to understand under what circumstances ossl_rsa_sp800_56b_check_public is called.
Might also be worth updating DH_MIN_MODULUS_BITS at the same time.

As a data point on what the ecosystem is doing, Mbed TLS enforces 1024 bits for generation since 2023, i.e. it's already at stage 1. Our motivating example was a confusion between bits and bytes; it also solved the problem of confusing sensible ECC or symmetric bit-sizes with RSA bit-sizes. I've put stages 2/3 up for consideration on our planning board for our next major release.


.github: Disable flow validation in flaky tests

The flow validation of cilium connectivity test has been reported to be flaky in several of the ci-xxx tests [1, 2, 3]. To reduce CI noise, we can disable flow validation until the flakes are fixed.
1 - https://github.com/cilium/cilium/issues/16292.
2 - https://github.com/cilium/cilium/issues/16291.
3 - https://github.com/cilium/cilium/issues/16096.

ci-multicluster

ci-gke

ci-aks

I updated the branch to also disable in the Kind1.19 test given it's also failing there (cf. https://github.com/cilium/cilium/issues/16392).

ci-gke

ci-aks

ci-multicluster

So cilium connectivity test --flow-validation=disabled doesn't actually disable flow validation: https://github.com/cilium/cilium/runs/2726941249?check_suite_focus=true...

Al team reviews are covered. The Kind1.19 test is passing. Other triggered tests are running the master version, not this PR version. Marking as ready to merge.


Fuel Types not working

Latest version of Advanced Generators, BuildCraft and Thermal Expansion (Beta) MineFactory for Minecraft 1.7.10.
Have seen the note on the home page and I'm using the EnderIO version <IP_ADDRESS>2, so should be above the version listed as causing a problem? Willing to accept this as the cause though. We do not have Forestry.
The only fuel being accepted by default is BioFuel, although NEI does show information for both RocketFuel and BC's Fuel they won't be accepted by the Generator.
Attempting to pipe all fuels in through waterproof gold pipes from a BC tank to the fluid intake block, set up must be correct as BioFuel is accepted.
I haven't had chance to check if this can be fixed by sepcifing over riding config files yet, will update with if that works later today.

sorry to bring this up again, but i dont know anything about coding, please can i have the complete config and instructions on what to do with it and where to put it. Thanks.

At work at the moment let me see if I can find it for you
On 10 Nov 2015 12:49 p.m., "airsoft-slayer"<EMAIL_ADDRESS>wrote:

sorry to bring this up again, but i dont know anything about coding,
please can i have the complete config and instructions on what to do with
it and where to put it. Thanks.
—
Reply to this email directly or view it on GitHub
https://github.com/bdew/generators/issues/13#issuecomment-155411933.

@airsoft-slayer now I'm at home and able to check over a few things the instructions above are valid, the file lives in your Minecraft/Config folder where ever you've installed it to, simply add the config file and put in the values in the format above. Start the game/server and those values will be present.
Can't really help much more without more details.

I've added a crapton of default values for fuels from many mods since this issue was orifinally opened.
What exactly are you missing?

@bdew ,fuels from buildcraft, ic2 and ender io are not being recognized by the generator, with the fuel slot saying "empty". I am running version <IP_ADDRESS> of advanced generators.

All those should be working, look in yout forge log, it should have a list of all registered fuels (look for "Turbine fuels:")


fixed FormatNegotiator, Gzip and Minify execution order

Same as f9eaf5bacd02b596f6ea5910ddad27b4a2a68c6a.

Hi @schnittstabil
Thanks for your contribution, but I'm not sure if this this a good idea. Let's take the following scenario:
$middlewares = [
    Middleware::minify(),

    function ($request, $response, $next) {
        $minifiedContent = (string) $response->getBody();

        return $next($request, $response);
    }
];

In this case, the $minifiedContent variable contains the unminified content because the previous middleware is executed after it. This is the confusing thing about this onion style middlewares. So, I try to follow the following rule:

If the logic of a middleware can be executed in one step, execute always before the nested middlewares

This allows to insert the middlewares in a more intuitive order.
$middlewares = [
    Middleware::formatNegotiator(), //resolve the content type
    Middleware::fastRoute($route),  //execute the routes
    Middleware::minify(),           //minify the result
    Middleware::gzip(),             //gzip compress the minified content
];

This is what I try to do, but I'm open to discussion if you think there's a better way.

I agree with pull request author, gzip and minification middlewares are modification wrappers. Putting them to top of chain has more sense as in this case you declares that all content generated by your pipeline has to be modified.
If you not doing so, you will have to insert new middleware in a middle of your chain, which is not very obvious.
I think the general confusion is about mixing endpoints (middlewares containing application) and filters (wrappers).

In Zend Expressive (as in framework i'm using) there is no middlewares after endpoint found (which is right, middleware should not decide if it enabled or not):

Meaning you will not be able to use your version gzip and minify wrappers in flow, as they need to be in green area.

This allows to insert the middlewares in a more intuitive order.

$middlewares = [
    Middleware::formatNegotiator(),
    Middleware::fastRoute($route),
    Middleware::minify(),
    Middleware::gzip(),
];

Despite it is not possible in Slim and Zend Expressive, IMO it is not more intuitive.
E.g.: Where should we put an auth middleware?

Before Middleware::gzip() means that rejected requests are not gzipped
After Middleware::gzip() means that the auth middleware can't write an error message to the body, because it is already gzipped

Ok, I always considered the router middleware like any other middleware, but may be wrong. I not full convinced yet with this approach, but if Slim, Zend Expressive and other frameworks works like this, and people understand that this is the way it should to be, I'm ok with this.
Thanks for the feedback

Many thanks for v3.12.4.

You're welcome
On Jan 30, 2016 8:06 PM, "Michael Mayer"<EMAIL_ADDRESS>wrote:

Many thanks for v3.12.4.
—
Reply to this email directly or view it on GitHub
https://github.com/oscarotero/psr7-middlewares/pull/20#issuecomment-177278180
.


Currently Not working with sddm

Please describe the issue in as much detail as possible, including any errors and traces
I have everything installed properly. Tests works. Although the IR light nor howdy in general is working on the SDDM greeter or the SDDM lock screen. When signing on over to the TTY screen, it will say detecting face, but throws the DLIB module missing error which I actually have properly installed for both python 2.7 and python 3.7 from the OpenCV website. I have checked the config files, and all py scripts in this repo. I am not finding the problem. I also added the auth for the sddm linked to the pam.py.
Thanks in advanced.

I've searched for similar issues already, and my issue has not been reported yet.
Linux distribution (if applicable): Kali Linux 2019.1, KDE, SDDM, 4.19
Howdy version: 2.5.1

Any Update?

I'm not 100% sure what the issue is here, especially if you're sure dlib is installed correctly. I've seen some users fix this by calling pip install as a subprocess within compare.py but i wouldn't recommend that.

I think this has something todo with SDDM not behaving with PAM, as i was having this issue, i switched to GDM, and it worked.

If SDDM is to blame then i can't do anything about it, but there's not a lot of activity on this issue so it might be a small problem

Closing due to inactivity

I have done all the recommendations here, even prior to my issue post. I
have also done the recommendations for the import cv2 error. All while I
have everything installed correctly.
John Poli Modica
Cyber Security Professional
CybernetiX S3C
https://CybernetiX-S3C.net/
On Wed, Jan 29, 2020, 6:14 PM Marko Shiva Pavlovic<EMAIL_ADDRESS>wrote:

@boltgolt https://github.com/boltgolt @DavidM42
https://github.com/DavidM42 It works on my machine. :D
Well in case of sddm you have two files in /etc/pam.d/ sddm and
sddm-greater that you need to edit and add auth sufficient pam_python.so
/lib/security/howdy/pam.py
Then once you logout and try to login all you have to do is press > button
for login on sddm or click enter it depends on theme I think.
But once you trigger the password verification the camera will light up
and if you have setup face recognition you can log in with that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/boltgolt/howdy/issues/181?email_source=notifications&email_token=AJKEEZYLAN3FIQHQB7PU2PDRAIEXFA5CNFSM4HCZLAIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJDMEY#issuecomment-580007443,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJKEEZYI3KPA3IYIAA3V65TRAIEXFANCNFSM4HCZLAIA
.

I'm still having an issue.
John Poli Modica
Cyber Security Professional
CybernetiX S3C
https://CybernetiX-S3C.net/
On Sat, Feb 1, 2020, 11:21 AM John Modica<EMAIL_ADDRESS>wrote:

I have done all the recommendations here, even prior to my issue post. I
have also done the recommendations for the import cv2 error. All while I
have everything installed correctly.
John Poli Modica
Cyber Security Professional
CybernetiX S3C
https://CybernetiX-S3C.net/
On Wed, Jan 29, 2020, 6:14 PM Marko Shiva Pavlovic <
<EMAIL_ADDRESS>wrote:

@boltgolt https://github.com/boltgolt @DavidM42
https://github.com/DavidM42 It works on my machine. :D
Well in case of sddm you have two files in /etc/pam.d/ sddm and
sddm-greater that you need to edit and add auth sufficient pam_python.so
/lib/security/howdy/pam.py
Then once you logout and try to login all you have to do is press >
button for login on sddm or click enter it depends on theme I think.
But once you trigger the password verification the camera will light up
and if you have setup face recognition you can log in with that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/boltgolt/howdy/issues/181?email_source=notifications&email_token=AJKEEZYLAN3FIQHQB7PU2PDRAIEXFA5CNFSM4HCZLAIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKJDMEY#issuecomment-580007443,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJKEEZYI3KPA3IYIAA3V65TRAIEXFANCNFSM4HCZLAIA
.

Try these steps maybe it will help, had same problems in kde neon
https://github.com/boltgolt/howdy/issues/302#issuecomment-595167414

Try these steps maybe it will help, had same problems in kde neon
#302 (comment)

This works for me in KDE Neon in loggin Screen.


Incorrect serialisation of a non-[ObjectLiteral] class that is derived from an [ObjectLiteral] class

The following code records the Name property of the Employee class as null -
https://deck.net/f4e3b86a9b687112b7b5e980540f32d6
public class Program
{
    public static void Main()
    {
        var x = new Employee("Test", "R123");
        var json = JsonConvert.SerializeObject(x);

        Console.WriteLine(json);
    }
}

[ObjectLiteral(ObjectCreateMode.Constructor)]
public class Person
{
    public Person(string name)
    {
        Name = name;
    }

    public string Name { get; }
}

public class Employee : Person
{
    public Employee(string name, string role) : base(name)
    {
        Role = role;
    }

    public string Role { get; }
}

If the Person class has the [ObjectLiteral] attribute removed then it works. Alternatively, if the Employee class has the [ObjectLiteral] attribute added then it also works.
Do you think that it would be possible to change the [ObjectLiteral] behaviour so that derived types have to have it if their base type as it? That would probably avoid a lot of complexity (and it's already enforced the other way; derived types may not have [ObjectLiteral] if their base types don't). I'm about to raise one more case that will relate to this..*
* (see #55 - though I realised, when I raised that issue, that it wouldn't be enough to require that derived types of [ObjectLiteral] also be [ObjectLiteral]; I think that any types that are properties of [ObjectLiteral] - and any derived from those types - would also have to be [ObjectLiteral]??).

Related issue
https://github.com/bridgedotnet/Bridge/issues/3235

Hi!
Just run your test case with dev branch.

create new ClassLibrary project on .NET Framework 4
install Bridge.Newtonsoft.Json 1.3.0 package (bridge 16.5.0 comes in the bundle)
Paste the code above within the namespace block of the Class1.cs file (for simplicity)
Build
Open bin/Debug/Bridge/index.html in google chrome
Open console (F12)
Result:

{"Name":"Test","Role":"R123"}

So, Name is no longer null. At least as far as the test case above is concerned, Bridge 16.5.0 addresses the issue (with Newtonsoft.Json 1.3.0!).
Thanks for reporting this issue, @ProductiveRage! Your feedback is great, and the report, clear and easy to reproduce!


feat(volume): nfs volume support (#2300) (#2302)

Backport
This will backport the following commits from k8s-27/main to k8s-25/main:

feat(volume): nfs volume support (#2300) (#2302)

Questions ?
Please refer to the Backport tool documentation

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2404

Questions ?
Please refer to the Backport tool documentation


Read csv with naive data, column filters and datetime/timedelta units

Closes #507, and introduces additional CSV import features.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 30 (30.0%)  changed or added relevant lines in 3 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.09%) to 64.895%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

flexmeasures/data/queries/data_sources.py
1
4
25.0%

flexmeasures/utils/unit_utils.py
3
10
30.0%

flexmeasures/cli/data_add.py
5
16
31.25%

Files with Coverage Reduction
New Missed Lines
%

flexmeasures/cli/data_add.py
1
31.25%

flexmeasures/init.py
2
81.82%

Totals

Change from base Build<PHONE_NUMBER>:
-0.09%

Covered Lines:
6522

Relevant Lines:
9431

💛  - Coveralls

Definitely something went range with merging. I believe I now have reverted all mistakes introduced.


Separation of web portal and monitoring node(s) (for distributed/regional monitoring)

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
New Monitor, UI Feature, Other
🔖 Feature description
This would allow the installation of monitoring notes in various cloud regions, with a centralized web front end. When building a monitor, you could select which monitoring nodes would be involved in the health check, and health checks would be executed from all those selected nodes, and reported on.
This would allow the ability to have a single monitor execute health checks from multiple regions, which could indicate regional internet issues (latency, outages, etc.), but also allow for a centralized front-end, separating the worker processes that do the health checks, from being inadvertently impacted by front end web usage.
✔ Solution
Once nodes are enrolled on the main server (as in, installed in multiple cloud regions, then linked/associated to the main web front-end server), when a user creates a new Monitor, they would select all the nodes they want to take part in the health check.  Viewable statistics would display the results from each location, notify accordingly, and even notify whether completely down, or just regionally (listed as "partially down" or "down regionally").
❓ Alternatives
None that's self-hosted. Several service providers offer such capabilities.
📝 Additional Context
none

This would be awesome.  I'm brand new to Uptime Kuma, and my particular use case is trivial compared to a full multi-cloud monitoring requirement, but I would still love to see this.  The problem I'm having is monitoring "public" services from within my network since my modem does not support hairpin nat.  It would be amazing to have an external probe that checks my "public" services and reports that to uptime kuma.

Please please!


Add interface to allow more

Today the package is nice and solve the problem quiet nicely. But there is some shortcut present, with some hardcoding that force to use the package in a certain way.
Some extra work to add some interface and service layer could open some door, like having the tenant detail (configuration, domain, whatever) coming from an API (or a filesystem or whatever data system).
Just by using a repository service that give you the tenant and domain, even if it seems useless open everything
If you choose to droop this idea, at least be explicit about the requirement because it's a big limitation.
What's my usage?
I have some services that communicate together. Each service rely on a specific tenant. Some service inside a specific tenant have specific configuration. But The fact that it's this or this tenant is declared inside a service that expose it through an API ... It could also came from a filesystem (like we start with). So for me the fact that I need an extra schema just for the tenant is useless, but all the other mechanism exposed in this package are totally interesting so it's bad that I need to override several class just to implement a version without database...
thanks

Do you mean that tenants themselves should be changed into a repository w/ an interface, instead of requiring Eloquent?

Not changed, just add interface that are what's required. So instead of assuming that Tenant Interface is an eloquent model just use the interface for itself.

Right. As I mentioned on Discord, we did this in v2 (with Redis & Eloquent storage drivers supported out of the box), and it eventually became extremely limiting.
We use a ton of Eloquent features in all of the peripheral logic (e.g. commands), which makes using an interface painful.
It's much better to find a way to make Eloquent work for you, e.g. by syncing the data somehow or by using an alternative driver (such as https://github.com/baopham/laravel-dynamodb).

Ok, like I say, not problem, but in this case, update the website or the documentation to make it more explicit that it's considered as mandatory or something similar.

I think this explains that models are used clearly enough: https://tenancyforlaravel.com/docs/v3/tenants
Thanks for the suggestion either way!


WIP: Improves gitignore performance & adds (future) option for force-commit of gitignored files

This PR contains #444 and builds upon it.
Changed to WIP: testing on a collection of large repositories with nested .gitignore some inconsistencies have been identified
The problem: having gitignore matcher acting in the worktree on the diffs results in traversing over potentially massive trees of file names of directories which are fully excluded (think e.g. of a vendor/ gitignore record for Go modules). This is noticeably slow.
Solution: Unless forcing an ignored file into the commit, one could exclude these files at the file system level in the noder (as originally suggested), so the noder would not dive into the directory at all and save uncovering and then removing thousands of files. This PR combines the two approaches: if force disabled, then files are ignored at the file system level, if force is enabled, file system delivers the full tree and files are ignored in the diff, however those marked M or D in the worktree are forced through, along with all in staging. The point here was not to implement the force, but to speed up the normal case, and force comes as an added value, albeit not integrated into Status or Commit. Currently it is just a var flag set to false and only reset to true in the test to demo that force would work this way if added to Status and Commit.

Won't fix now, maybe later


Fixed typo spits -> splits in Source.java docs

Read the documentation contribution guide and it says no JIRA ticket is required for trivial documentation changes such as typos.

merged into 1.12 by 3ecd68edc7e06d853057c25ddc79ee23c26d5d12


Generate Custom Website Code

[x] By pressing the generate link button, return a link that allows other users to connect to the website and allow them to watch videos in sync as mentioned in issue #2.

OK. 150 pts.

issue #3 addressed. + 150 pts


change blossom-ci to ACL security format [skip ci]

Fixes # .
Description
Requested by security to prevent DDOS. The new format is provided by blossom team.
Status
Ready/Work in progress/Hold
Please ensure all the checkboxes:

[x] Codeformat tests passed locally by running ./runtests.sh --codeformat.
[ ] In-line docstrings updated.
[ ] Update version and changelog in metadata.json if changing an existing bundle.
[ ] Please ensure the naming rules in config files meet our requirements (please refer to: CONTRIBUTING.md).
[ ] Ensure versions of packages such as monai, pytorch and numpy are correct in metadata.json.
[ ] Descriptions should be consistent with the content, such as eval_metrics of the provided weights and TorchScript modules.
[ ] Files larger than 25MB are excluded and replaced by providing download links in large_file.yml.
[ ] Avoid using path that contains personal information within config files (such as use /home/your_name/ for "bundle_root").

/build


Control over general Velero Backup Spec that gets exposed or allow listed via NAB CRD spec.

The Velero Backup CR consists of a plethora of Backup Spec options. It might be desirable to have a control over the spec that is exposed or may be allowlisted for non-admin users.

For instance, Backup Spec IncludedNamespaces should by default be the non-admin user's namespace as this is a scoped backup operation
Another instance is mentioned in the relevant discussion of cluster admins wanting to set a default backup TTL for all the non-admin users
Or maybe the cluster-admins want to enforce that only fs-backups should be used for volumes, so defaultVolumesToFSBackup should be true for all non-admin backups

Might need some design, current approach of accepting values from cm is added in main deisgn

As mentioned in https://github.com/migtools/oadp-non-admin/issues/35, this also needs to apply to Restore specs
@shubham-pampattiwar can you please update issue title to reflect this (or better to have one issue per object?)

@mateusoliveira43 Done, updated


ADS: Unify List Component

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #3392   👈

This comment was auto-generated by Graphite.


Add DynamicArrayInput for handling variable-length array fields

Variable length array fields (such as line-dasharray) are currently fixed-length in the editor.
In the case of line-dasharray, it has no default defined in the v8 spec, so its default value is an empty array, making it entirely uneditable.
This adds a DynamicArrayInput for use with all array fields that do not have a fixed length. Adding and removing fields works similar to ZoomSpecField.
Fixed-length array fields still use ArrayInput.

Looks sold to me! @orangemug you want to merge?

Looks like I missed a couple files in my original commit - it has been updated accordingly.

Anything else you need from me before this can be merged?

@tbarsballe apologies for taking so long to get back to you, I've started a new job recently so haven't had much free time. Seems to work perfectly, thanks for the PR!

Thanks for merging.


Content Altered - Causing display issues

We've seen that content via Postal appears to be altered in such a way that when Gmail receive it, the content is completely different.
I have sent the message from our mailer system directly to Gmail and the content is perfect but only that which goes via Postal gets completely altered.
Could anyone think of why this would happen?

Could this be related to #106? Otherwise, are you able to explain how the content has been altered?

I don't believe so but I am doing some further testing and comparing side by side one via postal and the same message not. Wanted to just see if anyone else had seen the same thing.

Thanks. If you can identify exactly how it was changed, I'm sure we can track it down.

It appears to be just the way that Gmail displays via the web view. If you view your Gmail mails via IMAP the content appears the same.
However, the content type changes.
Direct from server:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
Via postal:
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
When I download the original message of that going via postal to that not, the content is the same but when I "view original" in Gmail's interface, the lines are wrapped and suspect it is the quoted-printable parsing the content as text instead of HTML.

Further to that. It may be related to #106 but in a different way.
We were sent a HTML only message without a text counterpart.
When we sent with a text counterpart, the HTML part was shown correctly with a different content-type output.
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1_ee079b92370ca00e8276bdc0b6cc7d33"

--b1_ee079b92370ca00e8276bdc0b6cc7d33
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

test plain text.

--b1_ee079b92370ca00e8276bdc0b6cc7d33
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

We'll look into this. To work around it, you should be able to disable tracking and the message shouldn't be touched at all.

HTML only email with tracking enabled has display issue. Anyone one working on it?
If not, could you specify the problematic code.

If this issue is related to the content type of message parts, have a look at https://github.com/atech/postal/pull/376

I pulled changes and tested for email without text part. still same issue.

I confirm the problem. It's still exists.

to get graphic about this (what I think is the same issue)...
with tracking:

without tracking:

i need both tracking and non-borked html emails. if anyone can tell me where to start digging into the postal source, i'll try to fix this and post a PR.

If you're only sending a HTML version, that might be related. Does that happen when sending a text version as well as HTML?

This looks specifically with the content-encoding of the HTML part, or perhaps the content-encoding of the message as a whole.

Just on HTML emails and only those from a particular source. HTML emails passing through the same postal server with the same settings that originate from a discourse forum are not altered with tracking enabled. The messed up email shown above originates from a WooCommerce online store.
The discourse forum emails have both plain text and html parts and are multipart / alternative encoded. The messed up WooCommerce email has no plain text part.

@catphish can you tell me where to look in postal's source for whatever content-transfer-encoding mangling it does when it pushes a tracking pixel into a message?

The discourse forum emails have both plain text and html parts and are multipart / alternative encoded. The messed up WooCommerce email has no plain text part.

So the ones that are being messed up are those with only HTML content and no text part. If so, that's what we found and adding a text part was the only "workaround" currently.

@iammattmartin thanks for that pointer. I installed a plugin on the WooCommerce site that just adds a plain text part to all outgoing emails and it's "fixed". i'm glad it's working now, but this is a total kludge.
I looked at lib/postal/message_parser.rb where the tracking pixel is getting inserted into the email. It kinda sorta made sense and i'm pretty sure that the issue is somewhere in either the function / method generate or the function / method parse_parts but I'm not a ruby dev so the code looks foreign to my pythonic / PHP eyes and I'm totally unfamiliar with whatever mailing library is in use here.
could it be as simple as the fact that in parse_parts it's setting the content_transfer_encoding for each part to nil?

Is there a fix for this in the works? One of my sites is affected too. Thanks!

The work around remains adding a text part.

Thanks @iammattmartin. The issue is that we wanted to roll this out to several of our clients who all use WP sites. We would have to intercept all mail calls to add a text only part to the emails. And if something went wrong, then things would get messed up. I think a more reliable fix would be just making sure Postal can handle emails without the text part. Of have an option for Postal to generate it.

@nhadsall it definitely would be better to have this fixed in Postal.
In the mean time, this WP plugin which adds a plain text part to any WP emails that don't have one, is working across all the sites I manage which all send email through Postal: https://wordpress.org/plugins/lh-multipart-email/

Thanks @pjv. I found that one too. It worked on one site, but not another. We realized the issue was the plugin that was intercepting wp_mail() and sending with to the Postal server. I assume it was the priority used by the various hooks in each plugin.

@nhadsall which plugin are they using to send mail to postal? I've standardized on this one: https://wordpress.org/plugins/wp-mail-smtp/

Since 2017, no idea why this was even closed back then, when was clearly not solved until today.


Delta sync

A generalized way to handle changes in data on the server while client was offline without refetching all data after reconnect as well as transparently execute initial data loading without requiring user to have all data locally already for app to function.
I completely understand that this is not a client only feature but this library seemed to be the best place to start a discussion on how we would go about establishing a standardized way to achieve this capability (server to client data replication) when leveraging a graphql backend
Describe the solution you'd like

Client side API that allows to specify which data should be delta synced from the server to the client and how in a non boilerplate manner
Server side requirements to support delta sync
Establish overridable conventions

Describe alternatives you've considered

AWSAppSync

Its AWS only
No support for apollo >2.5 local state management and local resolvers

Custom built on graphql

Well ... it would be custom building a central component of what a lot of folks need

custom build on top of puchdb

requires couchdb compatible db on server vs graphql endpoint

@ssd71 This is the top level issue that we have moved from offix that covers the work you are doing. As you see this is very old requirement coming from community and it is really exciting to see us finally moving that forward (on different repo). I have added it to post top level progress on the work we have done

Graphback.dev now supports datasynchronization in beta phase. Please check our documentation


adding stock to product

Trying out saleor and having some issues setting up the stock on a product.  I suspect that something isn't installed properly or i'm using the wrong version of something.  First I get this error on startup.  The site comes up and I can add products and view cart ect..
saleor/.env/local/lib/python2.7/site-packages/model_utils/managers.py:105: RemovedInDjango110Warning: 'get_all_related_objects is an unofficial API that has been deprecated. You may be able to replace it with 'get_fields()'
  rel for rel in model._meta.get_all_related_objects()

/media/storage/home/kirk/projects/saleor/.env/local/lib/python2.7/site-packages/materializecssform/templatetags/materializecss.py:53: RemovedInDjango110Warning: render() must be called with a dict, not a Context.
  return template.render(context)

using this url http://<IP_ADDRESS>:8000/dashboard/products/1/stock/add/
which calls into
saleor/saleor/dashboard/product/views.py
in stock_edit where stock = Stock() is called I get exception
  File "/media/storage/home/kirk/projects/saleor/.env/local/lib/python2.7/site-packages/django/db/models/base.py", line 459, in __repr__
    u = six.text_type(self)
  File "/media/storage/home/kirk/projects/saleor/saleor/product/models/base.py", line 272, in __str__
    return '%s - %s' % (self.variant.name, self.location)
  File "/media/storage/home/kirk/projects/saleor/.env/local/lib/python2.7/site-packages/django/db/models/fields/related_descriptors.py", line 179, in __get__
    "%s has no %s." % (self.field.model.__name__, self.field.name)
RelatedObjectDoesNotExist: Stock has no variant.

product_pk	u'1'
product	<saleor.product.models.base.Product(pk=1, name=u'cats')>
request	<WSGIRequest: GET '/dashboard/products/1/stock/add/'>
stock_pk	None
stock	Error in formatting: RelatedObjectDoesNotExist: Stock has no variant.

After attempting to add stock the page flashes and nothing happens.
Babel==2.2.0
BabelDjango==0.2.2
Django==1.9.2
Markdown==2.6.5
Pillow==3.1.1
PyJWT==1.4.0
Unidecode==0.04.19
argparse==1.2.1
boto==2.39.0
braintree==3.24.0
cffi==1.5.0
cryptography==1.2.2
cssselect==0.9.1
cssutils==1.0.1
dj-database-url==0.4.0
dj-email-url==0.0.4
django-absolute==0.3
django-bootstrap3==6.2.2
django-cache-url==1.0.0
django-countries==3.4.1
django-emailit==0.2.2
django-materializecss-form==1.0.1
django-model-utils==2.4
django-mptt==0.8.0
django-offsite-storage==0.0.8
django-payments==0.9.1
django-prices==0.4.11
django-redis==4.3.0
django-selectable==0.9.0
django-versatileimagefield==1.3
djangorestframework==3.3.2
enum34==1.1.2
fake-factory==0.5.3
funcsigs==0.4
google-i18n-address==1.0.7
google-measurement-protocol==0.1.5
idna==2.0
ipaddr==2.1.11
ipaddress==1.0.16
jsonfield==1.0.3
lxml==3.5.0
maxminddb==1.2.0
maxminddb-geolite2==2015.0708
mock==1.3.0
pbr==1.8.1
premailer==2.9.7
prices==0.5.7
psycopg2==2.6.1
purl==1.2
py==1.4.31
pyasn1==0.1.9
pycparser==2.14
pytest==2.8.7
pytest-django==2.9.1
pytz==2015.7
redis==2.10.5
requests==2.9.1
satchless==1.1.3
six==1.10.0
stripe==1.29.1
suds-jurko==0.6
uWSGI==2.0.12
wsgiref==0.1.2
xmltodict==0.9.2

Hi,
Which database engine do you use?

sqlite
On Fri, Feb 12, 2016 at 3:09 AM, Artur Smęt<EMAIL_ADDRESS>wrote:

Hi,
Which database engine do you use?
—
Reply to this email directly or view it on GitHub
https://github.com/mirumee/saleor/issues/476#issuecomment-183278909.

Getting the same problem, have tried with both SQLite3 and Postgres, default settings

@artursmet @slippers

Open up saleor/dashboard/templates/dashboard/product/stock_form.html

Add this line: {{ form.quantity_allocated|materializecss:"s12 m4 l2" }} underneath {{ form.quantity|materializecss:"s12 m4 l2" }}

quantity_allocated is a required field of the form but isn't there.
Guessing you guys updated the model without editing the interface.

Thank you.  Maybe they would like a pr?

Good catch, I've excluded the field and added a test to make sure it works.


[SPARK-4122][STREAMING] Add a library that can write data back to Kafka ...

...from Spark Streaming.
This adds a library that can writes dstreams to Kafka. An implicit also has been added so users
can call dstream.writeToKafka(..)

Sure. I will work on a short design doc soon

Here is a design doc: https://docs.google.com/document/d/1jy160SNSJyrkck7rM9IFrFxa3OFQbPwv3S-pH0rGyjU/edit?usp=sharing

@harishreedharan Thanks for the design doc. Can you make it open for public to comment :)

Done!

@tdas @harishreedharan Any updates on this?
Since we're incorporating Kafka <IP_ADDRESS> and that there is a new Producer API, there might be a need to start over.
It might be interesting to think about pooling producers (as well as consumers, for that matter) also.

I have a branch of the directStream api that caches consumers.
It had no noticeable impact on processing time.   Even at 100 partitions /
200ms batches on a production-like workload.
On Wed, Apr 29, 2015 at 3:37 PM, Ben Fradet<EMAIL_ADDRESS>wrote:

@tdas https://github.com/tdas @harishreedharan
https://github.com/harishreedharan Any updates on this?
Since we're incorporating Kafka <IP_ADDRESS>
https://github.com/apache/spark/pull/4537 and that there is a new
Producer API
http://kafka.apache.org/082/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html,
there might be a need to start over.
It might be interesting to think about pooling producers (as well as
consumers, for that matter) also.
—
Reply to this email directly or view it on GitHub
https://github.com/apache/spark/pull/2994#issuecomment-97577120.

Interesting, thanks a lot for sharing your findings.
Any info regarding producers?

I have a version of this here: https://github.com/harishreedharan/spark-streaming-kafka-output
I am not sure this is going to make it to core spark, but you can use that one. At some point, I will get this populated to the cloudera mvn repo for ease of use.

@BenFradet  That's a good point. This is dropped off my radar but I really would love to have this in. @harishreedharan Let;s plan to get this in 1.5.0 release. Ping me after 1.4.0 release so that it does not fall off my radar again. :)

If there is interest, I might change the code to do writes from an RDD and use the RDD as the basis for the stream (a la Direct Kafka Stream - @koeninger route)

THAT IS A NEAT IDEA. We should have bindings for both RDD and DStream.

@harishreedharan Thanks a lot for sharing, I will have to test that.

@harishreedharan Any chance I can use your version from the Spark Java API?

I have not tested it. Go ahead and try it out and let me know.
On Friday, May 1, 2015, Pavan Sudheendra<EMAIL_ADDRESS>wrote:

@harishreedharan https://github.com/harishreedharan Any chance I can
use your version from the Spark Java API?
—
Reply to this email directly or view it on GitHub
https://github.com/apache/spark/pull/2994#issuecomment-98316465.

--
Thanks,
Hari

@tdas
Also, as we were discussing with @harishreedharan, there is the issue of broadcasting the producer config.
Indeed, if we restore our streaming context from a checkpoint with getOrCreate we'll get an exception when trying to use the broadcast variable as broadcast variables are not checkpointed, this has already come up on the mailing list.
Maybe we should open a separate jira for this as this seems to be a valid use case afaic.

The best way to use a broadcast variable is to make a transient lazy
singleton.
See the way I suggested for Accumulators in
https://issues.apache.org/jira/browse/SPARK-5206
On Tue, May 12, 2015 at 11:16 AM, Ben Fradet<EMAIL_ADDRESS>wrote:

@tdas https://github.com/tdas
Also, as we were discussing with @harishreedharan
https://github.com/harishreedharan, there is the issue of broadcasting
the producer config.
Indeed, if we restore our streaming context from a checkpoint with
getOrCreate we'll get an exception when trying to use the broadcast
variable as broadcast variables are not checkpointed, this has already come
up on the mailing list
http://apache-spark-user-list.1001560.n3.nabble.com/NullPointerException-on-reading-checkpoint-files-td7306.html
.
Maybe we should open a separate jira for this as this seems to be a valid
use case afaic.
—
Reply to this email directly or view it on GitHub
https://github.com/apache/spark/pull/2994#issuecomment-101372599.

Thanks for the advice.

I am planning to refactor this quite a bit anyway. I plan to update this with an RDD friendly version which can be used to implement one for DStreams too. Once I get to working on this, I will update this.

@tdas
I was thinking we should maybe document this use case in the checkpointing section of the streaming programming guide, since it's basically the same issue with broadcast variables, accumulators and external RDDs.
What do you think?

Yes, I plan to do so when I update the documentation for Spark 1.4 soon.
On Mon, Jun 1, 2015 at 2:33 AM, Ben Fradet<EMAIL_ADDRESS>wrote:

@tdas https://github.com/tdas
I was thinking we should maybe document this use case in the
checkpointing section of the streaming programming guide
http://spark.apache.org/docs/latest/streaming-programming-guide.html#checkpointing,
since it's basically the same issue with broadcast variables, accumulators
and external RDDs.
What do you think?
—
Reply to this email directly or view it on GitHub
https://github.com/apache/spark/pull/2994#issuecomment-107380655.

Great!

I will get around to this in a few days.

Build triggered.

Build started.

Test build #36857 has started for   PR 2994 at commit 0a45f1a.

This patch does not merge cleanly.

Test build #36857 has finished for   PR 2994 at commit 0a45f1a.

This patch fails PySpark unit tests.
This patch does not merge cleanly.
This patch adds no public classes.

Build finished. Test FAILed.

@harishreedharan any updates on this? Could you rebase to master?

Sure, if there is interest in this. I have a version of this on the cloudera github (which I pushed there, since I didn't see much interest in having this in spark itself). I will port it over.

Hi @harishreedharan, I think this is a nice feature which is very helpful for user who tries to write DStream back into Kafka. The implement is very neat too.
Could you please rebase the code so that we have the opptunity to push it into spark?

I will get back to this one in a week or so

@harishreedharan , dose this pr release with 1.6?

I am closing this PR. I have put this up here: https://github.com/cloudera/spark-kafka-writer


Clarification on Drift Values Along X and Y Axes in Stage 3 Output Files (Fig 3106)

Instrument
NIRSpec (Stages 1-3)
What happened?
In the Eureka! Quickstart, between the Stage 3 output data files, I would like to clarify where I can find the drift values along the x-axis and y-axis. I mean the data in the y-axis in the plot of Fig. 3106.
S3_wasp39b_ap6_bg7_SpecData.h5: This file includes keys like centroid_y, centroid_sy, x, and y, but I am unsure where to find the drift values along the axes.
Could you please point me to the relevant datasets or provide guidance on how to compute the drift values for both axes (x and y)?
Error traceback output
No response
What operating system are you using?
No response
What version of Python are you running?
No response
What Python packages do you have installed?
No response
Code of Conduct

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

As noted in the figure caption of Fig 3106 on our Eureka! Outputs page on readthedocs, this figure is only made for Hubble/WFC3 observations (and not JWST observations which I presume you are working on). Figures 3104 and 3105 can be made for JWST observations and show the drift/jitter in the spatial direction; the values from these plots are stored in the centroid_y and centroid_sy variables of the SpecData.h5 files from Stages 3 and 4 and the LCData.h5 file from Stage 4. In Stage 4, Figure 4103 can be made if you set recordDrift to True - this figure shows the drift/jitter in the spectral direction based on a cross-correlation computation, and the data plotted in the figure is stored in the centroid_x variable of the LCData.h5 file output by Stage 4. In my experience, the drift/jitter in the spectral direction is normally very small and insignificant, and the cross-correlation computation only really works when there are clear stellar features in the bandpass which means the computation doesn't really work for MIRI/LRS observations. Meanwhile, drift/jitter in the centroid_y and centroid_sy parameters is also normally quite small but is more frequently useful in removing some correlated noise in the observations


[Bug] choice of directory to store config/recent file information [sf#27]

Reported by jdubery on 2003-04-23 22:32 UTC
On Windows, wxGlade makes a bad choice of
directory in which to store its config. and recent file
information.
The code uses os.path.expanduser(~...); on first
glance this is a good choice but there are problems.
The library function relies on the environment
variable HOME, using the working directory if that is
absent. On some of the PCs I use wxGlade on the
HOME environment variable is already defined for
another piece of (antisocial) software - resulting in
config files being put in an unhelpful place. On the
others it is undefined - and as wxGlade changes the
working directory it can never find the config
information it wrote last time it was run.
Would be good if the software could check for an
environment variable WXGLADE_CONFIG (or some
other specific name) and if it exists use its contents
as the directory in which the config files live. This
should be implementable in a safe cross-platform
manner - the call os.path.
expandvars("$WXGLADE_CONFIG") would be a good
place to start.
I don't consider this a major bug, but it is a bit
annoying on what is becoming a rather nice tool.

Commented by agriggio on 2003-04-24 10:00 UTC
Logged In: YES
user_id=375945
This definitely makes sense. I'll put it on my TODO list


Add a variable for showing repo name

I find that when working with multiple repositories – or especially with git submodules – it can be useful to see in the prompt which one I'm currently in. (This will often be the current working directory, but not always.)

IMHO this is kind of useless; it uses the local file system to assume that you checked it out in a way that matches the repo name. Personally, I almost never do that.
I think it would be much more useful if it used this instead:
basename "$(git config --local remote.origin.url)" .git
(The quotes are if, for some reason I can't think of, they undefined 'origin'; it will return blank.)

Hi @AaronDMarasco-VSI, thanks for looking at this.
I guess everyone has their own way of using Git. Personally, I always check out repositories using git clone so the local directory name does match, but my remote isn't always called "origin".
However, we should be able to make it robust to both use cases. How about something like this:
if repo=$(git config --local remote.origin.url 2> /dev/null); then
    git_repo="($(basename "$repo" .git))"
elif repo=$(git rev-parse --show-toplevel 2> /dev/null); then
git_repo="($(basename "$repo"))"
else
    git_repo=""
fi

@paulaltin that sounds good to me if you add some inline comments to each concerning what you're trying to compute (I know rev-parse is kinda esoteric).
That said, I'm just a bystander here; I have no special privs on this repo.

OK, I've updated it and added some inline comments. Thanks for your input @AaronDMarasco-VSI

Noooo need it, if repo name is huge then gonna annoying. Ignore nor add into alternate preferences, do not suggest it to make it default.
Default:
Yes! PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND"
No! PROMPT_COMMAND="find_git_repo; find_git_branch; find_git_dirty; $PROMPT_COMMAND"

find_git_repo just makes the variable available. It doesn't put it in your prompt. Leaving it in PROMPT_COMMAND is reasonable if you ask me; it's likely much faster than find_git_dirty.


Another Dumb Question: Filters?

Been trying to grok this all morning.  I can't seem to write a basic filter.  Here's what I've tried:
S.filter(() => S.map(S.prop('myProp') === true))(arr);  <-- returns my entire dataset, i.e. no filtering
S.filter(() => S.prop('myProp') === true)(arr);   <-- returns an empty array
What am I missing?

In both cases you're passing a function into filter that doesn't take any parameters. () => ...
Filter should take a function that will accept an item of your list, and return a boolean. In this case, you want it to return true if the property myProp has a value of true.
S.filter((item) => item.myProp === true)(arr)
You could use Sanctuary functions to replace that lambda, but I think putting it that way makes it very clear.
I also want to mention that Sanctuary has a Gitter chat room as well. It might be quicker to get answers to your questions there.

  :-(  Thanks @Bradcomp .  I had gotten myself so twisted around trying different things that I missed the easy part...
Headed over to chat room now...


LeapMotion not recognised by the programm

I downloaded your files from github and maked the program start. It works with the options --interactive --no-vr. I can use the commands "object" and "center" and "over" etc in the command window (Windows 7). But my hand movements seems not to be recognised. As if the programm didn't recognised the LeapMotion. But I can see my hand in the LeapMotion Visualizer.
Have you any idea why it doesn't work?

Can you include your platform and the hardware used?
This project was done with the 2.0.9 SDK (source for SDK is here). If you're using a more recent LeapMotion, you probably need to replace the SDK with the new one, which will probably break the controllers.
One last thing : you may want to use the v0.5 branch, the version on master was still a WIP when we quit working on it.

Hello,
I am using Windows 7 and Blender 2.74. And I replaces Leap.py, Leappython.pyd and Leap.dll with the versions that are in the last SDK I downloaded, ie. 2.2.3.
But it does not work better. Now, when I do: python server.py --interactive, it accepts every this, but "object", "pottery", "paint". And it shows always the same error for those command lines: example: -in the server.py command window: " paint ERROR:root:Undefined controller paint Traceback <most recent call last File "server.py", line 89, in  if not interpret_command: File "C:\Users\my.name\Documents\Github\leapmotion_blender\commands.py", line 53, in interpret_command retval = _cmd_mapping[cmd]<> File "C:\Users\my.name\Documents\Github\leapmotion_blender\controllers\init.py", line 193, in set_current_controller raise ValueError<'Undefined controller %s' % ctrl> ValueError: Undefined controller paint " And it exits from python. -in the blender command window: "mode_texture_paint {} Ending Exception ignored in: <bound method BBQOperator.del of <bpy_struct, BBQOperator invalid>> Traceback : File "", line 99, in del File "C:\Program Files\Blender Foundation\Blender\2.74\scripts\modules\bpy_types.py", line 590, in getattribute properties = StructRNA.path_resolve<self, "properties"> ReferenceError: StructRNA of type BBQOperator has been removed Blender quit" Have you any idea to help me further? Could it be because I am using Blender 2.74 or because I am using Windows?
But I noticed, in the file "C:\Users\my.name\Documents\Github\leapmotion_blender\controllers\init.py", line 188, there is: defined_controllers = {} So it seems to me that it is normal that at line 192, ctrl is not in defined_controllers, because defined_controllers is empty, and so it says 'Undefined controller' line 193. Or have I misunderstood something?

Have you tried using the v0.5 branch? Like I said, the master branch is pretty unstable. The blame is commit 761136265ebe62dac72d8c81e91014cc880f76a0, where the controllers were refactored and the dictionary used for naming controllers was cleared (called by the commands module here). You can restore the mapping here which should probably solve the problem.

Thank you very much. (And I am sorry, I didn't understood first what you meant about v0.5 branch.
Now in the server.py command window, there is no error when typing "object" for example. But when I start "blender -P "path\blender.py" in the other whindow, it gives an error:
"AL Lib:  UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead found bundled python: C:\Program Files\Blender Foundation\Blender\2.74\python
Starting
ERROR:root:[WinError 10049] L'adresse demandée n'est pas valide dans son contexte
Traceback :
File "", line 144, in invoke
OSError: [WinError 10049] L'adresse demandée n'est pas valide dans son contexte"
So the  "BBQ Operator" commande in Blender does not work anymore.
I put '<IP_ADDRESS>', 1337 in both blender.py line 144 and server.py line 60. And now there is more error.
But there is still this Fail to set frequences and blender does not react with my hand movements.

This error is indeed pretty strange. As I recall, we had the Blender plugin
running in Python 3, the Leap and VR server under Python 2 (only version
supported by the Leap SDK at the time). I can't remember the version of
Blender we were using though.
On Tue, Jun 23, 2015 at 11:30 AM lazachemou<EMAIL_ADDRESS>wrote:

Thank you very much. (And I am sorry, I didn't understood first what you
meant about v0.5 branch.
Now in the server.py command window, there is no error when typing
"object" for example. But when I start "blender -P "path\blender.py" in the
other whindow, it gives an error:
"AL Lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
found bundled python: C:\Program Files\Blender
Foundation\Blender\2.74\python
Starting
ERROR:root:[WinError 10049] L'adresse demandée n'est pas valide dans son
contexte
Traceback :
File "", line 144, in invoke
OSError: [WinError 10049] L'adresse demandée n'est pas valide dans son
contexte"
So the "BBQ Operator" commande in Blender does not work anymore.
I put '<IP_ADDRESS>', 1337 in both blender.py line 144 and server.py line 60.
And now there is more error.
But there is still this Fail to set frequences and blender does not react
with my hand movements.
—
Reply to this email directly or view it on GitHub
https://github.com/BlenderBQ/BBQ/issues/1#issuecomment-114419703.

The pottery mode works! I can make the object rotate. But I can't grab or change the size of the object or sculpt the object.
But thanks for your help!
I will look what I can do.


Have maven run in batch mode

Adds the -B flag to the MESOS_JAR target's maven build

Filed https://reviews.apache.org/r/49422/


Fix Progress Bar Layout Issue

Description:
Resolves layout issue causing blank space before progress bar.
Fixes - #704
Changes:
Adjusted CSS styling for the progress bar container to remove unnecessary space.
Here is the updated progress bar -

Testing:
Verified fix on Chrome (Version 129.0.6668.90), and Windows 10.
Checklist:

[x] Verified fix resolves layout issue.

Great contribution to Hacktoberfest'24! 🎉

Great contribution to Hacktoberfest'24! 🎉

Thank you for merging ❤


Repository language issues

I have a repository on github ( https://github.com/Distjubo/MinecraftLauncher/ ), it contains a lot of .java files, and only 2 .css files. I would appreciate it if you could somehow detect the quantity of a certain file type :)

Hi @Distjubo - the language statistics are by overall volume of contents in each language and the CSS file is ~130kb.
You can manually ignore CSS files using our overrides as described here: https://github.com/github/linguist#overrides


question: how to debug clone step

I'm trying to setup the demo environment as described at https://agola.io/tryit but the run stops at the clone step as if it the working directory wasn't empty:
agola go example - Failed
build go 1.11 amd64 - Failed

Task setup - 6s
Starting pod.
{"status":"Trying to pull repository docker.io/library/golang ... "}
{"status":"Pulling from docker.io/library/golang","id":"sha256:6b22e2541e01bc831cfd6575f8f56f458a489f7e95de2f1a8aa9e13f72514144"}
{"status":"Digest: sha256:6b22e2541e01bc831cfd6575f8f56f458a489f7e95de2f1a8aa9e13f72514144"}
{"status":"Status: Image is up to date for docker.io/golang:1.11-stretch"}
Pod started.
Creating working dir "~/project".

Clone repository and checkout code - 1s
+ mkdir /root/.ssh
+ chmod 700 /root/.ssh
+ touch /root/.ssh/id_rsa
+ chmod 600 /root/.ssh/id_rsa
+ touch /root/.ssh/known_hosts
+ chmod 600 /root/.ssh/known_hosts
+ [ -n ]
+ cat
+ STRICT_HOST_KEY_CHECKING=yes
+ [ -n 1 ]
+ STRICT_HOST_KEY_CHECKING=no
+ cat
+ git clone git@<IP_ADDRESS>:user01/agola-example-go.git .
fatal: destination path '.' already exists and is not an empty directory.

How can I properly debug the clone step?
Thanks

@camandel I just tried the demo from scratch and I cannot reproduce it (see below: same golang image sha256)
And I cannot understand how ~/project cannot be not empty since in the golang image it doesn't exits. It's the same image used to execute the official agola run (i.e https://run.agola.io/org/agola/projects/agola.proj/runs/0000001ei649k-0000000000056)
Have you changed something in the agola-example-go run definition (.agola/config.jsonnet)?
If you haven't changed nothing, the unique difference I see is the Task setup output provided by the docker daemon when pulling the image. Can you provide the docker version you're using (to debug if your docker version does something strange when providing a working dir to the exec step like agola does)?
About your question (how to debug clone step) the right place is not the github issue tracker (since it's for issue, enhancement request etc...) but the agola forum at https://talk.agola.io
Task setup - 3s
Starting pod.
{"status":"Pulling from library/golang","id":"1.11-stretch"}
{"status":"Digest: sha256:6b22e2541e01bc831cfd6575f8f56f458a489f7e95de2f1a8aa9e13f72514144"}
{"status":"Status: Image is up to date for golang:1.11-stretch"}
Pod started.
Creating working dir "~/project".

Clone repository and checkout code - 1s
+ mkdir /root/.ssh
+ chmod 700 /root/.ssh
+ touch /root/.ssh/id_rsa
+ chmod 600 /root/.ssh/id_rsa
+ touch /root/.ssh/known_hosts
+ chmod 600 /root/.ssh/known_hosts
+ [ -n ]
+ cat
+ STRICT_HOST_KEY_CHECKING=yes
+ [ -n 1 ]
+ STRICT_HOST_KEY_CHECKING=no
+ cat
+ git clone git@<IP_ADDRESS>:user01/agola-example-go.git .
Cloning into '.'...
Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 14 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (14/14), 6.62 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2/2), done.
+ git fetch origin refs/heads/master
From <IP_ADDRESS>:user01/agola-example-go
* branch master -> FETCH_HEAD
+ [ -n 4ed0e258d6482310aedea3cff0ae8bbd7573737c ]
+ git checkout 4ed0e258d6482310aedea3cff0ae8bbd7573737c
Note: checking out '4ed0e258d6482310aedea3cff0ae8bbd7573737c'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 4ed0e25... config.yml: use config version v0 instead of v1

@camandel

If you haven't changed nothing, the unique difference I see is the Task setup output provided by the docker daemon when pulling the image. Can you provide the docker version you're using (to debug if your docker version does something strange when providing a working dir to the exec step like agola does)?

In this case my assumption is that you have a very old docker version that doesn't support the workdir option in the exec command:
https://docs.docker.com/engine/reference/commandline/exec/ says that workdir is provided from docker api v1.35 that from this matrix: https://docs.docker.com/develop/sdk/#api-version-matrix is from docker version 17.12
So it just ignores this option and execute the command in the root of the image (or image define WORKDIR).
So the solution is to do like we do with the k8s driver where we use a custom exec command to set the working dir https://github.com/agola-io/agola/blob/c1ff28ef9f0baedc3d6580570ccf2cdf7d6cb933/internal/services/executor/driver/k8s.go#L682 or require the minimal docker deamon version as 17.12.

@sgotti
Yes, you are right. I was using a very old version for Fedora 30 (docker-1.13.1-67.git1185cfd.fc30.x86_64). After upgraded to the latest available on fedora repositories (moby-engine-18.06.3-2.ce.gitd7080c1.fc30.x86_64) I got this error running "agora serve":
2019-08-03T12:41:15.971Z        FATAL   cmd/serve.go:60 err: Error response from daemon: client version 1.39 is too new. Maximum supported API version is 1.38

Installing the latest version of docker CE  (docker-ce-19.03.1-3.fc30.x86_64) solved the issue.
Thanks

@camandel
created PR #80. With this everything should work correctly also with old docker versions.

2019-08-03T12:41:15.971Z        FATAL   cmd/serve.go:60 err: Error response from daemon: client version 1.39 is too new. Maximum supported API version is 1.38

Thanks. Opened PR #81 to fix client/server version mismatches
Thanks for reporting your issue and for the feedback!


[FIX] spelling of "Urgent" label

[FIX] spelling of "Urgent" label

This issue was moved to gmailgem/gmail#22


Can't disable all generators

I would like to use oapi-codegen purely for its custom generation from templates feature and disable all built in templates. However, this isn't possible because the tool overrides my choice to disable the echo-server, models, and embedded-spec generation through the config.
It looks like this is caused by this code block:
https://github.com/oapi-codegen/oapi-codegen/blob/f6622e749b8c59683109c53c4554eaf6e2bb9374/pkg/codegen/configuration.go#L93-L103
If all fields of o.Generate are false, then IsZero returns true and reenables these templates.
Possible fixes could be changing this to IsNil, or moving the UpdateDefaults call to be prior to unmarshaling the config.

Interesting - I'm not sure that we'd considered that before where you don't want to use any of the existing generation - what's the use-case?

I'd like to generate structs from the OpenAPI schemas for consumption by internal code, but I don't want to implement the code generation from scratch. Possibly would like to generate some interface implementations for those structs too.
oapi-codegen has done the heavy lifting of decoding the schema and templating code and I'd like to utilise it. There may be other reasons this wouldn't work though, I didn't get too far into seeing if it would work out.

OK, so https://github.com/oapi-codegen/oapi-codegen#generating-api-models is probably a good start, and then you can modify the templates for the resulting model code if you'd like?

I think there were some extra methods being generated that I couldn't control, since enabling Models executes multiple templates.
But upon further thought, I'm not sure my idea will work anyway. To make the struct transformations I want I'd need to call some functions inside the template, and oapi-codegen uses pure text/template instead of something like Sprig.
Feel free to close this unless you have any other ideas. Thanks!


Evaluation on UCF-101

HI,
Can you explain how did you evaluate on the available test split of UCF-101? What frames are the inputs and outputs?

Hi, thanks for your interest in our work.
We followed the settings from Voxelflow (you can download the preprocessed frames [here]), except that we did not use the motion masks for evaluation.
The inputs are frame_00.png, frame_02.png, and the target output is frame_01_gt.png.
We didn't do any fine-tuning for UCF-101, and just used these 379 triplets for evaluation.

Thanks! Also, can you mention what is the time distance between these frames frame_00.png and frame_02.png? Similarly, what is the time gap (in seconds or milliseconds) between frames in Vimeo triplet and septuplet datasets?

As I remember, UCF-101 was 30fps, which makes the time distance between frame_00 and frame_02 to be 1/15 sec. (~ 67ms).
I'm not sure about Vimeo90K datasets, but assuming that online existing videos are typically taken as 24fps or 30fps, I guess it should be about the same.


Checked in sdk is broken on MIPS

/home/rmacnak/dart1/sdk/tools/sdks/linux/dart-sdk/bin/dart-mips: relocation error: /home/rmacnak/dart1/sdk/tools/sdks/linux/dart-sdk/bin/dart-mips: symbol __gnu_compact_pr2, version CXXABI_1.3 not defined in file libstdc++.so.6 with link time reference

This prevents running the test suite. Copying a locally build VM on top of the checked in one works around the problem.

This looks like a dynamic library version mismatch problem.  What version of glibc and libstdc do you have?  What system are you running on?  We haven't rebuilt mips for a long time, so you are welcome to check in your built version, or send it to me.  Is it mipsle?

Debian 8.6, mipsel
gcc --version
gcc (Debian 4.9.2-10) 4.9.2
/sbin/ldconfig -p | grep stdc++
libstdc++.so.6 (libc6) => /usr/lib/mipsel-linux-gnu/libstdc++.so.6
/sbin/ldconfig -p | grep libc.so
libc.so.6 (libc6, OS ABI: Linux 2.6.32) => /lib/mipsel-linux-gnu/libc.so.6
I didn't make note of the Debian version I had the last time this worked, but it's possible it stopped working for me due to an update.  Would a binary rebuilt against these newer libraries still be compatible with, say, the mips bots?

The ldd -v command will show you which versions of the libraries are needed by the dart executable, and which ones you have.  You can check both the checked-in executable and the one you built yourself.  You can also search the missing function name, to see when it was introduced (or discontinued).  The mips bots haven't run for a long time - I'll be building new ones from the toolkits used by our clients - two separate ones, and checking them on the hardware.

Mips support removed.  Closing bug.


Changing the delimiter to avoid collisions with hyphens used in variables

Instead of using "-" as a delimiter, now a relatively safe ";" is used.
Also, instead of string.Format, string interpolation is now used.

@dermitzos I updated my request. However, if you resolve the issue this week, I think my request will not be required.

Closing this issue as this has been fixed in #5.


Provide an API to allow a task output to be declared as an outgoing artifact of the project

Currently, there is no reliable and public API to allow a particular output of a task to be declared as an outgoing artifact of a project. The artifacts { } block and associated APIs basically accept either an AbstractArchiveTask or a File + 'builtBy' task reference.
For a task type other than AbstractArchiveTask, a plugin must use the later option, which means that the output file must be known when the artifact is declared, or the artifact declaration deferred until the output file is known (whenever that might be). Neither of these options is reliable when the build directory or task output is later changed.
There are other downsides to this pattern. From a performance perspective the work to calculate the File, which may include file system access to resolve/canonicalize/normalize/validate the output location, must be performed every time the build is configured, rather than on demand when the artifact is required, say via a project dependency. The pattern is also lossy in that the artifact represents the output of a specific task is not retained, meaning we have fewer options to help a user visualize the relationship.
Expected Behavior
Continue to build on the Provider<RegularFile> and Provider<Directory> concepts introduced in #2305 to allow instances of these types to be used to declare an outgoing artifact. This will allow a plugin to easily and reliably wire in a task output that is defined using these types as an outgoing artifact.
Current Behavior
See the description above. There is no reliable way to implement this important use case at the moment.

This would be used by the C++ and Swift plugins to declare the outputs of a project. It should later be used to fix a number of issues with the java-library plugin.

@adammurdoch Is this still planned for 4.2-rc1?

@adammurdoch Could you please close this issue if you deem it ready for release? Otherwise let's just move the milestone to 4.3-rc1.

@bmuschko sorry, i meant to close this yesterday. It's done now.


Can't import Bestiary 2 - Crystal Dragon, Great Wyrm

Can't import statblock:
Crystal Dragon, Great Wyrm      CR 18
XP 153,600
Male great wyrm crystal dragon (Pathfinder RPG Bestiary 2 98)
CG Gargantuan dragon (earth, extraplanar)
Init +3; Senses dragon senses, tremorsense 120 ft.; Perception +34
Aura frightful presence (360 ft., DC 31), scintillating aura (60 ft., DC 30)
Defense
AC 40, touch 5, flat-footed 40 (-1 Dex, +35 natural, -4 size)
hp 362 (25d12+200)
Fort +24, Ref +15, Will +20
DR 20/magic; Immune paralysis, sleep, sonic; SR 29
Offense
Speed 60 ft., burrow 30 ft., climb 30 ft., fly 250 ft. (clumsy)
Melee bite +34 (4d6+18/19-20), 2 claws +33 (2d8+12/19-20), tail slap +31 (2d8+18), 2 wings +31 (2d6+6)
Space 15 ft.; Reach 10 ft. (15 ft. with bite)
Special Attacks breath weapon (60-ft cone, 24d4 sonic, Reflex DC 30 half), crush (Medium creatures, DC 30, 4d6+18), tail sweep (30-ft., 2d6+18, DC 30)
Spell-Like Abilities (CL 25th; concentration +34)
At will—color spray (DC 20), glitterdust (DC 21), rainbow pattern (DC 23)
3/day—prismatic spray (DC 26), stone to flesh (DC 25)
1/day—imprisonment (DC 28)
Sorcerer Spells Known (CL 13th; concentration +22)
6th (5/day)—disintegrate (DC 25), true seeing
5th (8/day)—feeblemind (DC 24), persistent image (DC 24), seeming (DC 24)
4th (8/day)—dimension door, illusory wall (DC 23), phantasmal killer (DC 23), stoneskin
3rd (8/day)—displacement, lightning bolt (DC 22), major image (DC 22), protection from energy
2nd (8/day)—blindness/deafness (DC 21), eagle's splendor, invisibility, minor image (DC 21), mirror image
1st (9/day)—alarm, feather fall, magic aura, silent image (DC 20), unseen servant
0 (at will)—acid splash, arcane mark, detect magic, detect poison, ghost sound (DC 19), mage hand, message, read magic, touch of fatigue (DC 19)
Statistics
Str 35, Dex 8, Con 27, Int 22, Wis 23, Cha 28
Base Atk +25; CMB +41; CMD 50 (54 vs. trip)
Feats Critical Focus, Deceitful, Great Fortitude, Greater Vital Strike, Improved Critical (bite), Improved Critical (claw), Improved Initiative, Improved Vital Strike, Lightning Reflexes, Multiattack, Power Attack, Vital Strike, Weapon Focus (bite)
Skills Acrobatics -1 (+11 to jump), Appraise +34, Bluff +41, Climb +48, Disguise +38, Fly +13, Intimidate +37, Knowledge (dungeoneering) +34, Knowledge (geography) +34, Perception +34, Sense Motive +34, Stealth +15, Survival +34
Languages Common, Draconic, Dwarven, Elven, Terran, Undercommon
SQ ray reflection, razor sharp
Ecology
Environment any underground (plane of earth)
Organization solitary
Treasure triple
Special Abilities
Blindsense (60 feet) (Ex) Sense things and creatures without seeing them.
Breath Weapon (60-ft cone, 24d4 sonic, Reflex DC 30 half, usable every 1d4 rounds) As a standard action, affect an area with elemental damage (Ref half).
Burrow (30 feet) You have a Burrow speed.
Climb (30 feet) You have a Climb speed.
Critical Focus +4 to confirm critical hits.
Crush (Medium creatures, 4d6+18, DC 30) A flying or jumping Huge or larger dragon can land on foes as a standard action, using its whole body to crush them. Crush attacks are effective only against opponents three or more size categories smaller than the dragon. A crush attack affects as m
Damage Reduction (20/magic) You have Damage Reduction against all except Magic attacks.
Darkvision (120 feet) You can see in the dark (black and white only).
Dragon Senses (Ex) See four times as well as a human in dim light and twice as well in normal light.
Fly (250 feet, Clumsy) You can fly!
Frightful Presence (360 ft., 5d6 rounds, DC 31) Those in area of effect become frightened or shaken (Will neg.)
Immunity to Paralysis You are immune to paralysis.

Immunity to Sonic You are immune to sonic damage.
Low-Light Vision See twice as far as a human in dim light, distinguishing color and detail.
Power Attack -7/+14 You can subtract from your attack roll to add to your damage.
Ray Reflection (Ex) An ancient crystal dragon's scales reflect ray spells back upon the ray's source if the ray fails to overcome the dragon's spell resistance.
Razor Sharp All of a crystal dragon's natural attacks deal slashing damage.
Scintillating Aura (60 ft., DC 30) A great wyrm crystal dragon radiates an aura of scintillating color from its jeweled scales to a radius of 60 feet. All within this area must make a Will save each round to avoid being stunned (if the victim has 15 or fewer Hit Dice) or confused (if
Spell Resistance (29) You have Spell Resistance.
Tail Sweep (30-ft., 2d6+18, DC 30) As a standard action, deal damage in half circle to foes 4+ sizes smaller (Ref half).
Tremorsense (120 feet) Sense creatures and objects in contact with ground or water.
Vital Strike Standard action: x2 weapon damage dice.

I used Hero Lab to produce this statblock.  For greater accuracy, you might want to use one of the online resources.  Hero Lab can truncate some of the text.  All the other statblocks from Bestiary 2 imported -- a total of more than 96% imported.

Used your latest module that was available as of this morning.

Should import with v0.4.0 apart from

[ ] Spell-Parse Errors (i'm entering these separately)


Built-in support in utility poles for energy from other mods

It'd be nice if somehow, someway, we could put our cool ELN power and our RF lines on the same poles - for simplicity sake. It'd sure make power distribution alot easier.
This doesn't need to be very advanced; maybe a few tiers of special wires made just for the occasion.
They could be as complex or simple, cheap or expensive, and effective or as nerfed as y'all want it to be.
In short; make transmission poles have more purposes than just transporting ELN power from A to B.

I think its easier to make eln power connectors and use immersive engineering wires and poles.

I think we had discussed this at length, and basically the idea is to let people place isolators similar to how Immersive Engineering does it, and then make your own pole. We might also provide place-able poles that you can just slap whatever mod's isolators on.

That thought came to my head after submitting that - IE-like connectors.
What about the ability to add a platform on the side of ELN poles to put the special connectors onto?
ELN2 could add like I said, a platform on the side of utility poles, and maybe a IE-like connector for ELN connections in special occasions?
I think it'd be nice to wire say a house to the pole using the hanging wire like you'd see IRL and being able to connect a normal cable to that connector.


Remove const from LevelEnum

const is not required in front of enum. TS does not let you reassign an enum anyway, so this should provide better compatibility.
fixes: #382

See https://github.com/chalk/chalk/pull/373

Duplicate of https://github.com/chalk/chalk/pull/373

const is not required in front of enum. TS does not let you reassign an enum anyway, so this should provide better compatibility.

I don't think you understand what the const modifier does in this context: https://www.typescriptlang.org/docs/handbook/enums.html#const-enums

Fair point, did not come across that in my admittedly brief research.


[Relay] Higher order reverse mode automatic differentiation that work with control flow

as promised, it is simpler then the first order case, as using reference and closure in the object language(Relay) instead of the metalanguage(C++) simplify our code.
reference code is also here, but is on a seprate pr (#2489 ). we can merge this after merging #2489 .
@ZihengJiang @junrushao1994 @masahi @reminisce can you guys review?

Where is the testcase for control flow?

@merrymercy can you open an issue to track the first order AD tuple support?

@merrymercy this version support tuplegetitem using exprmutator. there is just no need for any code for it.
i will add a test for tuple, and control flow.

@MarisaKirisame  How about using tuple as arguments and return value? Some ops will use tuple as arguments, e.g. concatenate.

@merrymercy I had wrote a test case using tuple, and a test case using adt, higher order function, closure, pattern matching(control flow) and recursion. do i address your issue?

@merrymercy can you review?

Could you add my testcase? This example still crash.

def test_tuple_arg():
    shape = (10, 10)
    dtype = 'float32'
    t = relay.TensorType(shape, dtype)
    x = relay.var("x", t)
    y = relay.var("y", t)
    tup = relay.var('tup', relay.TupleType([t, t]))
    func = relay.Function([tup], relay.TupleGetItem(tup, 0))
    print(func)
    back_func = relay.ir_pass.infer_type(gradient(func))
    back_func = relay.ir_pass.dead_code_elimination(back_func)
    print(back_func)

We should suppot tuple as arguments and return value in both first order and high order AD.

I found the generated back_func is very complicated and sometimes redundant (both in first order case and higher order case) . How do we execute them efficiently? Do we need more optimization passes or do we need a powerful runtime?

@merrymercy

the test case will not work. the interface can only use Tensor as of now, but you can use whatever you want inside them. is there any need for it? you can always flatten it before passing in. I would prefer to do it on a seprate issue as i am really busy working on the partial evaluator.
i am working on a partial evaluator pass which will take care of this right now.

Some operators use tuple as arguments (e.g. concatenate) and return value (e.g. split).
We have to use tuple because we don't know the number of arguments.
I am happy to leave it to the next PR, but this feature is necessary.

@merrymercy can we leave it in next pr then? i am working on the Partial Evaluator, and it need this branch as test case. fixing this branch mean less rebasing.

@merrymercy can you approve if you give thumb up?


Submariner fails to install "route and agent" on k3s

Hello,
I'm new to submariner and I'm trying to get it working with k3s. I have followed the prereqs and made sure I have unique CIDRs for pods and services as well as a unique DNS suffix.
The broker installs just fine against my first (Single node) k3s cluster. But when I try and deploy the route and agent, I get the following error:
$ subctl join --kubeconfig us-west-2 broker-info.subm --disable-nat
* broker-info.subm says broker is at: https://<IP_ADDRESS>:6443
? What is your cluster ID? us-west-2
* No available node, skipping labeling
 ✓ Deploying the Submariner operator
* Discovering network details
? What's the ClusterIP service CIDR for your cluster? <IP_ADDRESS>/17
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1e9dcc3]

goroutine 1 [running]:
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.getPodCIDR(0x0, 0x0, 0x0, 0x0, 0xf, 0x0, 0x0)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/join.go:214 +0x1c3
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.joinSubmarinerCluster(0xc00054e000, 0xc00030fce0)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/join.go:185 +0x274
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.glob..func2(0x308e5c0, 0xc0002e1ec0, 0x1, 0x4)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/join.go:98 +0x214
github.com/spf13/cobra.(*Command).execute(0x308e5c0, 0xc0002e1e80, 0x4, 0x4, 0x308e5c0, 0xc0002e1e80)
        /go/src/github.com/submariner-io/submariner-operator/vendor/github.com/spf13/cobra/command.go:830 +0x2ae
github.com/spf13/cobra.(*Command).ExecuteC(0x308e840, 0x1ea1c80, 0xc000673f88, 0xc0000aa058)
        /go/src/github.com/submariner-io/submariner-operator/vendor/github.com/spf13/cobra/command.go:914 +0x2fc
github.com/spf13/cobra.(*Command).Execute(...)
        /go/src/github.com/submariner-io/submariner-operator/vendor/github.com/spf13/cobra/command.go:864
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.Execute(...)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/root.go:55
main.main()
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/main.go:22 +0x2f

This is k3s v1.17.2+k3s1 that is being installed as follows:
CLUSTER_CIDR='<IP_ADDRESS>/17'
SERVICE_CIDR='<IP_ADDRESS>/17'
K3S_VER='v1.17.2+k3s1'
HOSTNAME='us-west-2'

curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=$K3S_VER INSTALL_K3S_EXEC="server --no-deploy traefik --cluster-cidr $CLUSTER_CIDR --service-cidr $SERVICE_CIDR --cluster-domain $HOSTNAME.local" sh

I'm installing nginx instead of traefik.
Any help would be great! Thanks!

"No available node, skipping labeling" means there's no worker node to label as the gateway, ie there's only the one master node and subctl does not label the master node as k8s disallows scheduling of user workloads on the master.  I suspect the subsequent panic was related to that. You can add the submariner.io/gateway=true label manually

"No available node, skipping labeling" means there's no worker node to label as the gateway, ie there's only the one master node and subctl does not label the master node as k8s disallows scheduling of user workloads on the master. I suspect the subsequent panic was related to that. You can add the submariner.io/gateway=true label manually

Thanks @tpantelis,
But it looks like labeling these nodes seems to get past that one warning. But I'm still getting the same TRACE:
 subctl join --kubeconfig us-west-2 broker-info.subm --disable-nat
* broker-info.subm says broker is at: https://<IP_ADDRESS>:6443
? What is your cluster ID? us-west-2
* There are 1 labeled nodes in the cluster:
  - us-west-2
 ✓ Deploying the Submariner operator
* Discovering network details
? What's the ClusterIP service CIDR for your cluster? <IP_ADDRESS>/17
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1e9dcc3]

goroutine 1 [running]:
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.getPodCIDR(0x0, 0x0, 0x0, 0x0, 0xf, 0x0, 0x0)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/join.go:214 +0x1c3
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.joinSubmarinerCluster(0xc0002aef00, 0xc000408030)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/join.go:185 +0x274
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.glob..func2(0x308e5c0, 0xc000516d80, 0x1, 0x4)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/join.go:98 +0x214
github.com/spf13/cobra.(*Command).execute(0x308e5c0, 0xc000516d40, 0x4, 0x4, 0x308e5c0, 0xc000516d40)
        /go/src/github.com/submariner-io/submariner-operator/vendor/github.com/spf13/cobra/command.go:830 +0x2ae
github.com/spf13/cobra.(*Command).ExecuteC(0x308e840, 0x1ea1c80, 0xc0006b9f88, 0xc0000aa058)
        /go/src/github.com/submariner-io/submariner-operator/vendor/github.com/spf13/cobra/command.go:914 +0x2fc
github.com/spf13/cobra.(*Command).Execute(...)
        /go/src/github.com/submariner-io/submariner-operator/vendor/github.com/spf13/cobra/command.go:864
github.com/submariner-io/submariner-operator/pkg/subctl/cmd.Execute(...)
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/cmd/root.go:55
main.main()
        /go/src/github.com/submariner-io/submariner-operator/pkg/subctl/main.go:22 +0x2f

The panic emanated from join.go - it wasn't able to determine the Pod CIDR dynamically and blew up before it could prompt for it:
func getPodCIDR(clusterCIDR string, nd *network.ClusterNetwork) (string, error) {
	if clusterCIDR != "" {
		...
		return clusterCIDR, nil
	} else if len(nd.PodCIDRs) > 0 {  ---> line 214
		return nd.PodCIDRs[0], nil
	} else {
		return askForCIDR("Pod")
	}
}

So  L214 needs to check for nd != nil as getServiceCIDR does so it prompts.
To work around it for now you can pass --servicecidr on the command line.

Thanks @tpantelis,
--servicecidr alone wasn't enough. I had to pass --clustercidr as well.
subctl join --kubeconfig us-west-2 broker-info.subm --disable-nat --servicecidr=<IP_ADDRESS>/17 --clustercidr=<IP_ADDRESS>/17

This did the trick!
Thanks again!

Sorry I meant --clustercidr - it correctly prompted for the servicecidr already.
Reopening for tracking as we need to fix the panic.

PR: https://github.com/submariner-io/submariner-operator/pull/198


MessageList Infinite Scroll Bottom with loading spinner

Is there a way to have a message list's infinite scroll work in the similar way to a conversation lists infinite scroll?
Currently the MessageList's infinite scroll is at the top, I would like it at the bottom with a loading spinner like a twitter feed.
Is this possible?

@pateljoel Thanks for the question.
Displaying the loader on the bottom is not yet supported out of the box.
I can add new property loadingMorePosition = "top"|"bottom", and onYReachEnd to <MessageList />.
Will it be ok for you?

@pateljoel Yep, this is fine with me.

@supersnager Also, the other day I tried to join the Discord but the link was invalid.

Done in v1.4.0
This feature requires<EMAIL_ADDRESS>New <MessageList /> properties:

loadingMorePosition
autoScrollToBottom
onYReachEnd

Example:  https://chatscope.io/storybook/react/?path=/story/components-messagelist--loading-more-at-the-bottom
@pateljoel Please let me know if it works for you.
Thanks also for the info about the problem with the link to the Discord :)

@supersnager I've tried this out and it looks and works good, but every time I load the message list, the onYReachEnd keeps getting called because the scrollbar knob is by default positioned at the bottom.
Is it possible to position the scrollbar knob at the top of the list instead of the bottom?

@pateljoel Have you tried to set autoScrollToBottom property of the <MessageList /> to false?

@supersnager I've used the prop already, and it still scrolls to the bottom.

@pateljoel Do you mean it scrolls down automatically after the first render? Or do you scroll down after adding more messages?

@supersnager sorry, it scrolls down automatically after the first render.

@pateljoel Ok thanks for the clarification. I will add a separate property for it.

Done in: v1.5.0
Doc: https://chatscope.io/storybook/react/?path=/story/components-messagelist--disable-auto-scroll-to-bottom-on-first-render


[com.google.fonts/check/vendor_id] warn if PYRS is the Vendor ID

com.google.fonts/check/vendor_id
Observed behaviour
Vendor ID check passes if PYRS is used, but this is the default for [PYRS Fontlab Ltd. / Made with FontLab].
Expected behaviour
Check should WARN and advise to check the Vendor ID since PYRS is a default entry from FontLab generated binaries.
Resources and exact process needed to replicate
(Please provide here an URL to a font file that appears to cause the issue, and the exact steps from updating to the latest code on the main branch to reproduce the Observed Behaviour. We need this in for replicating the issue and fixing it :)

Thank you @felipesanches!


Update cats-effect to 3.5.5

About this PR
📦 Updates org.typelevel:cats-effect from 3.5.4 to 3.5.5
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (3.5.4).
You might want to review and update them manually.
README.md

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-effect" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.typelevel", artifactId = "cats-effect" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, version-scheme:early-semver, old-version-remains, commit-count:1

Superseded by #237.

Superseded by #238.


feat: Add log messages and colors

Added log messages and colors.
Example:

Add a quiet option please, because these log messages will break my use case
(I'm using bayfiles * >urls.log to have a file with raw urls)

Added verbose option.
bayfiles-cli myfile.jpg => log messages won't appear.
bayfiles-cli myfile.jpg -v => log messages will appear.

please rename it to "quiet", verbose is when it is not quiet ;)


How to create allowedValues dependent on another field?

Here's my schema:
AdminSchema = new SimpleSchema({
  // ... removed for brevity
  // all the guilds this admin can update.
  ownedGroups: {
    type: [String],
    minCount: 1,
    maxCount: 5,
    allowedValues: function () {
      return Groups.find({ private: false }).map(function (doc) {
        return doc._id;
      });
    }
  },
  // snip snip this out.
  // set the current "context" of the web app
  // the "group" they're currently administrating
  "settings.context.group": {
    type: String,
    allowedValues: function () {
      // herein lie the problem
      return this.field('ownedGroups').value;
    }
  }
});

Of course, this is failing saying "this.field" is not defined.
Is it possible to set allowed values based on the values of another part of the schema?

This can be done by using a custom validation function and returning the string "notAllowed" if it should not be allowed.