Trouble running assistant.py

After i run the code in the environment it have this bugs and I couldnt find way to solve it

pubnub subscription completed
Segmentation fault

What means by segmentation fault and how to solve it???

I'm on the same boat as you. As far as I understand, it's because the google-assistant-library for Python has been deprecated and replaced with the google-assistant-service, which has removed the hotword functionality which this module relies on, but I could be wrong.
If I'm not wrong, however, I hear it's a convoluted process involving downgrading Raspbian's glibc to a version that works with the deprecated google-assistant-library, which should make the library work once more but could break at any minute since the library has been deprecated anyways, meaning this is just a hacky temporary solution. I have no idea how to downgrade glibc, though, so I think this is a dead end for now. Either this module finds a workaround to the hotword problem or google updates their SDK to include hotword functionality again (Hands-free activation in here: https://developers.google.com/assistant/sdk/overview.html#features ).

My assistant.py works, it shows pubnub subscription completed and hello from python!! but google assistant wont work.
Guys plz help
p me out.

My understanding is the 1.0.1 library is not compatible with Buster, and causes segmentation fault. This worked for me:
cd ~
source env/bin/activate
python -m pip install --upgrade google-assistant-library==1.0.0
My understanding is the 1.0.1 library is not compatible with Buster. This worked for me.


Why the difference in patch extraction approaches (random vs. sequential) for iterable and in-memory datasets?

Hello, thanks for creating this package!
I am training various Noise2Void (+V2, Struct) models on 3D SPIM data and need to use the PathIterableDataset since my training images are rather large (1024,1024,1024) and the patches (64, 128, 128) don't all fit into system and especially GPU memory, particularly when using augmentations. I was wondering why there is a difference in patch extraction schemes when using the iterable dataset (random) vs. the in-memory dataset (sequential). In particular, I am wondering whether there is a higher probability of over-representing the same regions of the training data when using random patch extraction, since the total number of patches is still given by image_shape / patch_shape.
I have noticed that my trained models can have trouble when inferring on images with more high intensity information, even though these images were also used for training. Please see the below image, where the top row is the validation images and the bottom three rows are the model predictions, all set to the same display range (0-100). Certain predicted images have the minimum intensity  raised abnormally high. I am wondering if this could be due in part to the patch extraction method, and if a non-overlapping sequential method could help. I will work on implementing this myself. Otherwise, I am curious if you have any advice for why this could occur and how to mitigate it. Thanks!

Hi @carshadi !
Thanks for sharing your example!!!
Could you give more details on your images? Are you training on multiple images? Can you show some full slice examples? That would help to get a sense of the heterogeneity of the training data. What are the "cratio" and are some plots totally white because of the intensity scaling (your abnormally high background)? And what are the histograms at the bottom?
I am wondering how ubiquitous are the high intensity areas, and whether, if they are scarce, the reason for your issue is that they are not seen often enough to be allow the model to converge well for these structures?
structN2V seems like it did not converge well, the images look strange.
If you have multiple images, I'd try training independent networks on each image and compare the results. In case the noise models are very different from one image to the other for some reason, this could prevent proper convergence.
I would be surprised if the problem is the patching. Long story short, the reason for the different patching strategies has more to do with technical debt than reasoning and experience... We are currently in the process of rewriting the datasets, to be easier to maintain and be compatible with NGFF, and will probably stick with the random patching.
Random patching is the way to go usually. It provides more diversity than non-overlapping sequential patching for two reasons: (i) the patches are different from one epoch to the other, (ii) a fixed sequential patching limits where different structures are in the patches (fixed grid). With a lot of data the difference should be very minimal. Note that the random patching simply leads to less probability to see the pixels on the edges (patch // 2 from the border), but all other pixels have the same probability to be selected each epoch. Some overlap happens, but it is averaged out over the epochs. As part of the dataset rewriting, we will benchmark this properly to show it once and for all in this project.
If you do implement the sequential patching for testing purposes, please let us know how it goes!

Hi @jdeschamps ,
I appreciate your quick response and apologize for my late reply!

Could you give more details on your images?

Certainly, I am training these networks using 7 sub-volumes of shape 1024^3 that are all taken from the same whole-brain volume with shape (Z: 28790, Y: 28746, X: 62301). I split each training volume into 8 tiles with shape 512^3 and hold out 1 tile for validation, which are shown in my previous image.
The full dataset was acquired using light sheet fluorescence microscopy on a ~3X expanded cleared specimen. In our case, the foreground are neurites (axons+dendrites) labelled with a fluorescent marker (GFP+AF488). The stochastic nature of the labelling and expression can mean some neurons are brightly labelled while others are much dimmer, resulting in a wide range of signal intensities, which are roughly correlated with neuron type and brain area. This is also true for the background noise distribution, which can vary due to differences in tissue autofluorescence across the brain. The 7 training volumes were taken from different regions of the brain, and have different intensity characteristics which should ideally cover much of the possible variation.
Here is a neuroglancer link showing the full brain dataset these images were taken from. You'll notice that the background is very low (~10-30 counts) compared to the signal (~100-50000 counts)
The histogram at the bottom shows the intensity distribution for each raw validation image. Some examples have much brighter neurons, which accounts for the longer histogram tail. These brighter examples were "whited out" after prediction when using the same intensity scaling for all images.
Our goal with the denoising is to improve compression ratios for lower storage costs, since in theory we could remove much of the high frequency information while retaining signal fidelity. The 'cratio' is the compression ratio of the predicted data after encoding with Blosc Zstd.

If you have multiple images, I'd try training independent networks on each image and compare the results. In case the noise models are very different from one image to the other for some reason, this could prevent proper convergence.

I can try this. In the end though, we will probably want a single trained network to be able to cover all of the possible variation within a single brain, since it could be non-trivial to apply multiple networks in different regions of the same dataset. I will also try including more training examples and training for a longer period to see if the model will converge. I did only train these models for ~25k steps, so perhaps more epochs will help as well.
I see the reasoning behind the random patching, and agree that this is probably not the reason behind the intensity scaling issue. I will keep training and let you know how it goes. Thanks!

Interesting, thanks for sharing! (just love the neuroglancer link, so handy)
So all the tiles from the microscope have different dynamical ranges. CAREamics will compute a mean and std over the entire training dataset, which will lead to non optimal normalization of the patches (since depending on the tile, they would have different intensities).
Have you considered normalizing the tiles individually before feeding them to CAREamics?
You could have a zero-mean and unit-variance normalization per tile, then train CAREamics, predict and apply the inverse normalization operation if you want to recover the intensity.


feat: add propagated changelogs last

also add separator between the changelogs
I think it becomes easier to read due to the varying size of headlines

/cc ankitm123 tomhobson babadofar


Updates activate_virtualenv, closes #1371

. is actually a source alias. But it works better, since source is not supported in raw sh.
As it was discussed in https://github.com/pypa/pipenv/issues/1371 some systems do not have bash installed.
Prove link: https://askubuntu.com/questions/25488/what-is-the-difference-between-source-and

Something is broken. https://travis-ci.org/pypa/pipenv/jobs/336429982#L557
No idea what is it or why it is broken.

Hey again @sobolevn, thanks for putting this together. I reran the tests and things are working as expected. I think this should be alright, but I'd like to get confirmation, ideally from another maintainer, that this works on all of our current supported shells (PowerShell, Windows' CMD.exe, zsh, csh, bash, and fish). Once we have those verified, I think we'll be set here.

I did look into this and it seemed correct. I can test it out on a few other shells later today

rebase required

@kennethreitz done!

thanks for this (hopefully) subtle improvement!

Please, see fish-shell/fish-shell#4294
. it's removed from Fish Shell


Could not import MarkdownIt in Ember CLI

I've installed markdown-it via both bower and npm and trying to import it in my Ember app. But Could not import it.
I'm trying to use Markdown-it in Ember Helper. First I installed it with Bower and tried to import it. In Brocfile.js
app.import('bower_components/markdown-it/dist/markdown-it.js');

In helper:
import MarkdownIt from "markdown-it";

This is showing error Could not find module: markdown-it. Then I tried to use Ember-browserify and install Markdown-it via npm. I tried to import it in helper
import MarkdownIt from "npm:markdown-it";

export default Ember.Handlebars.makeBoundHelper(function(input){
    var result = MarkdownIt.render(input);
    return new Ember.Handlebars.SafeString(result);
});

This is showing error TypeError: a.default.render is not a function.
I also tried using /* global MarkdownIt */. Nothing is working.

No ideas. I'm not familiar with tools you use. Not sure this question is related to this repo.

Ok, I'm closing it for now.

I am experiencing the same problem. With all due respect are you sure its is a good idea to close the ticket as irrelevant? EmberJS is one of the most popular MVC's out there.


respect createElement return type for JSX

🔍 Search Terms
JSX createElement
✅ Viability Checklist

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
[X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
respect type information for:

declare namespace React {
    function createElement<Ret extends JSX.Element, Props extends object> (
        component: (props: Props) => Ret,
        props: Props,
    ): Ret;
    namespace JSX {
        interface Element { o: null }
    }
}

function Component (x: {}) { return { o: null, a: null }; }

<Component /> satisfies { o: null, a: null };

📃 Motivating Example
to support framework write limit for children types, i.e. <ul> can only contain <li>;
even algebraic effect handler programming for required provide/inject context.
💻 Use Cases

What do you want to use this for?
What shortcomings exist with current approaches?
What workarounds are you using in the meantime?

Duplicate of #21699.


WIP: Update to .net core 3.1.

What does the pull request do?

Update sample apps to netcoreapp3.1
Remove netfx targets from samples as they seem to interfere somehow with net core targets
Pin SDK in global.json.

Maybe we can bump benchmarks as well? Since I was always doing that manually anyway.

It also would be great to multi target .net standard 2.1 as well in the main projects.

Ah yeah, I also need to bump unit tests.
Not sure about dual-targeting .net standard 2.1, what does everyone think? Is it likely to cause us any problems?

Also /Packages/Avalonia.csproj multi-targets netstandard2.0;net461;netcoreapp2.0 - not sure why it does this, do we want to change that to 3.1 too?

Ok, seems nuke is failing on .NET core 3.1, looks like we're going to have to upgrade it, but there have been a lot of breaking changes between 0.12 and 0.24, so this looks like it's not going to be as straightforward as I'd hoped. Marking this PR WIP for now.

Could we use both .NET Core 3.1 and the oldest supported one instead? We are targeting netcoreapp2.0 TFM anyway.

Ah yeah, i meant to change Avalonia.DesktopRuntime to 3.1 as well. Is there any reason to target 2.0 still?

OSX 10.12 is not supported by .NET Core 3.1. Not sure if we care about that.

@kekekeks It looks like only 7% people use macOS 10.12 at the moment and it is shrinking (according to https://gs.statcounter.com/macos-version-market-share/desktop/worldwide).
@grokys It would be good to figure out .Net Standard 2.1 support soon, since it is blocking certain work (like improving our string tokenizers and providing more span based optimizations).

What exactly will perform better with the tokenizer under. Net Standard 2.1?

@Gillibald Almost everything :) Since it currently works on substrings https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Utilities/StringTokenizer.cs#L43. And .Net Standard 2.1 adds ReadOnlySpan<T> based overloads for parsing, so we could do tokenization without allocations.
https://apisof.net/catalog/System.Double.TryParse(ReadOnlySpan<Char>,NumberStyles,IFormatProvider,Double)

It'd be great if we could move all our targets to netstandard2.1 and netcoreapp3.1. so many perf stuff in it as @MarchingCube said.

netstandard2.1 is not supported by net4xx TFMs. Which makes it impossible to run our unit tests on Mono. That would be a road blocker for mobile platform support :-1:

IIRC Mono does support netstandard2.1 but there’s just no good way with the standard tooling to do it.

@jkoritzinsky That's simply because there is no desktop Mono target framework moniker. It has to reuse net4xx while being a superset of that API.

Also, keep in mind, that while .NET 5 will have Mono as a runtime option, Xamarin platforms aren't migrating from the full mono codebase anytime soon.

I don’t know if you saw the new TFM design spec for .NET 5, but Xamarin is planning on moving to a .NET 5 based TFM if all goes according to plan.

If I understand correctly, the BCL will still be based on mono/mcs/class rather than one from dotnet/runtime repo.

Now that I’m not sure about. But considering a very significant portion of the BCL is shared, I wouldn’t worry about BCL differences being our problem. Our Mono-specific issues have almost always been runtime issues around either bugs or underdefined behavior.

Also, keep in mind that since we'd be shipping our NativeControlHost in the next release, embedding WPF/WinForms controls into Avalonia is now possible. With existing Avalonia into WPF/WinForms embedding, the drop of net4xx TFM support effectively removes a rather painless way of migrating existing applications, people will have to update their existing WPF code first instead of migrating to Avalonia directly.

I think we should do the following:
Make Avalonia.dll a ref assembly for all of Avalonia that targets netstandard2.0 with its implementation assembly just type-forwarding. Make the rest of the assemblies implementation-only and multitargetting. That way we can have a unified API surface on all platforms, have “public” types we don’t expose to users, and use platform-specific APIs under the hood for performance.

Make the rest of the assemblies implementation-only and multitargetting.

That would conflict with how AppBuilder currently works. Right now it's only provided by netcoreappXX and net4XX TFMs. On mobile it's provided by backend-specific Avalonia.iOS and Avalonia.Android packages. It's not provided by netstandard2.0 dll.

AppBuilder is in the Avalonia.Desktop package right? I was referring to the stuff in the Avalonia package only. Sorry about not clarifying that.

AppBuilder in Avalonia package itself.

For now I'd suggest to write the list of things that we need from netstandard2.1 and see if those could be polyfilled. It's not like we need Span overloads for System.IO.Stream.

I did try using a the span parse overloads on Geometry.Parse, this did reduce the number of allocations but actually had only a small speed increase, the underlying double parsing code is slow and dominates, probably because it has to allow for every possible formatting option.  There are possibly bigger gains by using custom number span parsing (compatible with net standard 2.0) or better still do the parsing in xamlil at build time.

Could we just #if stuff depending on the target framework? Or would that be too much of a hassle?

I’m fine with using #if per TFM. I want the ref assembly though to ensure that our public surface area is consistent.

the underlying double parsing code is slow and dominates, probably because it has to allow for every possible formatting option

I guess we should just use some specialized parser.

@grokys @kekekeks please let me know if you need any help with updating the build.

Thanks @matkoch! Am I right in thinking that nuke 0.12 doesn't support .net core 3.1?

I honestly don’t know about the compatibility implications between
netcoreapp2.0 and netcoreapp3.0 but I can at least say that we made the
switch with version 0.23 of nuke. do you really want to stay at 0.12?
On Tue 18. Feb 2020 at 22:00, Steven Kirk<EMAIL_ADDRESS>wrote:

Thanks @matkoch https://github.com/matkoch! Am I right in thinking that
nuke 0.12 doesn't support .net core 3.1?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AvaloniaUI/Avalonia/pull/3571?email_source=notifications&email_token=ABGGB7R3NRQW7GXLEU5F73TRDRD7NA5CNFSM4KVIVA2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEME3W3I#issuecomment-587840365,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGGB7QZGKK3W7LQAPEIP43RDRD7NANCNFSM4KVIVA2A
.

I'd suggest to leave the Nuke-based project as is and update it in a separate PR.

I've merged in #3596 (which updates the nuke build to 0.24) and CI now passes. Unmarking as WIP.


[Enhancement] - Implement fix for layout shift when overflow is hidden

Solves issue #1139
Description
This pull request addresses a layout shift issue triggered when the categories button in the navigation is clicked. The problem occurs due to the dynamic nature of the scroll bar, which dissapears when the overflow is set to hidden and causes unexpected layout adjustments, impacting user experience negatively.
Changes Made

Modified the CategoriesNavDesktop component and implemented a simple solution that adds a margin equal to the width of the missing scrollbar to compensate when the overflow property is set to hidden.

Impact

Resolves the layout shift issue, counters the abrupt shifts caused by the dissapearance of the scroll bar.
Improves the visual consistency and stability of the interface when interacting with the categories button.

Testing

Manually verified that the layout remains stable and consistent under various scenarios, including different viewport sizes.

Your feedback is much appreciated :raised_hands:

Hi @MohammadxAli @kudlajz @e1himself
I would appreciate it if you could take some time to review this pull request and provide your feedback. Your insights would be valuable in improving the quality of the code.
Thanks in advance for your time and attention!
Best regards,

@MohammadxAli My original account has been hacked , Someone was able to gain total access of it . Even the 2FA was changed.
Kindly close this PR and I will be opening a new one incorporating your suggestions.

@MohammadxAli My original account got hacked , someone was able to gain total access of it . Even the 2FA was changed. I have taken up the matter with github and opened a ticket. I hope they are able to help. For now, kindly close this PR and I will be opening a new one incorporating your suggestions.
Thanks a bunch, Sumair Qaisar

Hey @sumairq, I'm sorry that your account got hacked.
After discussing it as a team, we've decided not to move this PR forward. Unfortunately, we also won't be accepting any PRs from @smith-business or yourself. Our primary objective is security first, and given the current situation, we're uncomfortable making any further progress with this PR, knowing that your devices or accounts might be at risk of distributing harmful software.

Hi @MohammadxAli
Let me clarify the complete picture about what happened.
First of all my account never got compromised before. It's the only time. Call it a lapse of judgement on my part.
Secondly I have reinstalled my operating system to ensure nothing malicious remains within my system.
The problem happened when a mysterious "recruiter" tried to reach out to me through linkedIn . They appeared to be legit. They shared a figma design with me and had a website. Although I must say I did miss some red flags.
That fake recruiter wanted me to clone their repo as a pretext for preparing me for the supposed "interview". As soon as I cloned the repository and installed the packages to run the project in my local environment. I recieved automated emails from Github that some activity is happening in my github account. Someone changed the email from<EMAIL_ADDRESS>my email to<EMAIL_ADDRESS>All of sudden I lost access to my account. I thought it promt to convey the message wherever I was collaborating through my newly created account (totally uncompromised and safe).
Luckily they changed the username so I was able to create a fresh account with my old username.
I did some research, and found out that apparently the hacker did session hijacking on my account by getting me to open malicious file/script that he then used to dump my session and move it to their browser.

It is my humble request to you to not punish me for something I was a victim of.
I have made sure that nothing malicious remains within my system or browser by reinstalling my ubuntu operating system and have resolved to not clone or run any project locally unless I am 100% certain of the company's legitimacy.
Here is my LinkedIn
https://www.linkedin.com/in/sumairq/
I can provide a reference from the team I was working with at Mozilla as an open-source developer in an attempt to restore trust.
I have graduated from Microverse Coding bootcamp and can get references from them as well.
Or any other way to prove that I am a legitimate developer aiming to contribute to prezly and by no means attempting to compromise its code.
Regards,
Sumair

@MohammadxAli
After rebasing the PR seems to be showing other recent commits as well.
For reference to the latest changes I made, look at the last commit (Refactor solution (making it simpler))
I was reading about this. Got an explanation here:
https://github.com/orgs/community/discussions/51948#discussioncomment-5536787

Hi @MohammadxAli :wave:
Cleaned the commit history in my PR. Now it's ready for review. :+1:


How to create related data

Hi!
I cannot figure out how to correctly create data related to other data. The documentation provides an example with a blog post and comments. But it is not shown how to correctly create comments.
If I understand the documentation and the spec correctly, we only use the route POST /posts/1/relationships/comments to attach an existing comment to a blog post.
Apparently, to create a comment, we must use the standard route POST /comments. If so, then the information passed in the request should look something like this:
{
  "data": {
    "type": "comments",
    "attributes": {
      "comment": "My comment"
    },
    "relationships": {
      "post": {
        "data": {
          "type": "posts",
          "id": "1"
        }
      }
    }
  }
}

Next, I probably have to write my processing in the controller, etc. Am I right? Or does the related data need to be created in some other way? For example, we can simply add the post_id field to the attributes of the new comment.

I found my mistake. I listed the blog as readOnly in the comment scheme.

same problem here

This is all unit testing and working in production. @RobyCigar if you're having problems you'll need to provide more detail.

sorry for my response,
heres my problem, I tried to follow this docs where the reader can create a resource with the corresponding relationships https://laraveljsonapi.io/docs/2.0/tutorial/05-creating-resources.html
I tried to follow the same step, i have the following ProductSchema.php
// other code
    /**
     * Get the resource fields.
     *
     * @return array
     */
    public function fields(): array
    {
        return [
            ID::make(),
            Str::make('name')->sortable(),
            Str::make('description')->sortable(),
            Number::make('stock')->sortable(),
            Number::make('price')->sortable(),
            DateTime::make('createdAt')->sortable()->readOnly(),
            DateTime::make('updatedAt')->sortable()->readOnly(),
            BelongsTo::make('product-categories', 'productCategories'),
        ];
    }
// other code

and ProductRequest.php
class ProductRequest extends ResourceRequest
{

    /**
     * Get the validation rules for the resource.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'name' => ['required', 'string', Rule::unique('products', 'name')],
            'description' => ['nullable'],
            'stock' => ['required', 'integer'],
            'price' => ['required', 'integer'],
            'product-category' => JsonApiRule::toOne()
        ];
    }

}

heres the Product model
class Product extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'description',
        'price',
        'stock',
        'product_category_id'
    ];

    public function serving($model) {
        dd($model);
    }

    public function productCategories(): BelongsTo {
        return $this->belongsTo(ProductCategory::class, 'product_category_id');
    }
}

and heres my table definition
       Schema::create('products', function (Blueprint $table) {
            $table->id();
            $table->string('name', 50)->nullable(false);
            $table->string('description');
            $table->integer('price');
            $table->integer('stock');
            $table->foreignId('product_category_id')->on('id');
            $table->timestamps();
        });

I tried to fill the product resource with product-category relationships with these payload
{
    "data": {
        "type": "products",
        "attributes": {
            "description": "In",
            "price": 20000,
            "stock": 10,
            "name": "How"
        },
        "relationships": {
            "product-categories": {
                "data": {
                    "type": "product-categories",
                    "id": "2"
                }
            }
        }
    }
}

but somehow the product_category_id column is not there

So the serving() thing has nothing to do with what you're trying to do, so you can disregard that.
The problem is in the rules() method of your validator. You've got this:
'product-category' => JsonApiRule::toOne()

but shouldn't it be this?
'product-categories' => JsonApiRule::toOne()

we only fill validated data, so if your validation is wrong the value won't be transferred over to the model.

thank you so much, i didnt notice that the rules() is mapped to the schema, i thought it map to the model directly.
again thank you for the awesome library


Check assumptions of inputs for flowStats.R

Fail fast and helpfully if the inputs to these functions are not correct. Assumptions: data.frame with two numeric columns called "flow" and "year".

fixed #12 by adding stop message
if(!is.data.frame(flow.ts) || any(names(flow.ts) != c('flow', 'year'))) {
    stop("flow.ts must be a data.frame with columns 'flow' and 'year'")
  }


amTimeAgo with different timezones

I have an issue at the moment where my server returns a timestamp in UTC, and the user's computer is UTC + 1 (BST). This means that an action they just performed says '1 hour ago'.
I'm using {{activity.timestamp | amTimeAgo}}, would {{activity.timestamp | amUtc | amTimeAgo}} fix this?
I would just test myself but I don't have access to the endpoint right now.

Update: I've now tested using {{activity.timestamp | amUtc | amTimeAgo}} and unfortunately it doesn't fix the error.

Has no one faced this issue?

Does the time returned from the server have timezone information in it? Could you provide sample data? I believe the amUtc pipe just puts the moment object in UTC mode, which just changes how the information is displayed/manipulated.

@nicolassharp give {{ activity.timestamp | amFromUtc | amLocal | amTimeAgo }} a try. The amLocal may not be necessary, but you could try it just to be safe. Make sure you’re on version 1.7.0 of this package.


UseSqlite method Not Found!

I follow the step but  DbContextOptionsBuilder  class doesn't have   UseSqlite  method , Then I find UseSqlite is a extension method in
SqliteDbContextOptionsBuilderExtensions
in Microsoft.EntityFrameworkCore.dll
How can I add this assembly?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b34c4871-adc3-0d13-6f20-6f6ac1f65e91
Version Independent ID: ea1742b3-808b-d449-3308-6847a9f339f9
Content: Add a model to an ASP.NET Core Razor Pages app with Visual Studio Code
Content Source: aspnetcore/tutorials/razor-pages-vsc/model.md
Service: unspecified
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

See https://docs.microsoft.com/en-us/aspnet/core/fundamentals/metapackage?view=aspnetcore-2.1#migrating-from-microsoftaspnetcoreall-to-microsoftaspnetcoreapp

@Rick-Anderson thank you~

Using ubuntu and get this error.
jeff@jeff-ThinkPad-T420:~/dev/RazorPagesMovie$ dotnet aspnet-codegenerator razorpage -m Movie -dc MovieContext -udl -outDir Pages/Movies --referenceScriptLibraries
Building project ...
Finding the generator 'razorpage'...
Running the generator 'razorpage'...
Could not load file or assembly 'System.Collections.Immutable, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
RunTime 00:00:07.11
dotnet --version
2.1.300

@jtshannon

'System.Collections.Immutable, Version=<IP_ADDRESS>,

That's pretty old. What does you .csproj file look like?

I had the same issue. Tried to add the reference as @billschen said but I got an exception at the dotnet ef database update.
Found out you need the following package instead (also giving a version to prevent warnings):
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.1.1"/>
and not Microsoft.EntityFrameworkCore.Sqlite.Core


Add option to silence portal noise

Changes:
Silences periodic portal noise and adds option to enable it.
Adds the feature as exists in 1.17

I will cherry pick from 1.17, no need to PR again


GET file:///C:/Users/Administrator/AppData/Local/Programs/Terminus/resources/app.asar/dist/[object%20Module] net::ERR_FILE_NOT_FOUND

GET file:///C:/Users/Administrator/AppData/Local/Programs/Terminus/resources/app.asar/dist/[object%20Module] net::ERR_FILE_NOT_FOUND
Version: 1.0.120
Platform: win32 10.0.18362
Plugins: none

Looks like it's the same issue i've created here #3217


Upcoming K8s v1.27 removes util functions being used.

https://github.com/Mirantis/cri-dockerd/blob/master/network/hostport/hostport_manager.go#L70 Is currently using conntrack.Exists which was removed in the upcoming K8s v1.27.0 https://github.com/kubernetes/kubernetes/pull/115103. The code will need to be modified to account for this.

I was responsible for removing the unused code in k8s.io/kubernetes/pkg/util, and if allowed i would like fixing the issue in cri-dockerd that has arisen.

Was this covered in #177 or are there additional changes that will need to be made?

I think we should be good closing this issue out, though the actual work to vendor in K8s 1.27 will still need to be done.

Additionally, k8s.io/kubernetes/pkg/util/bandwidth has been deprecated. In the k3s-io fork I ended up with a commit that I can try and upstream this week. See https://github.com/Mirantis/cri-dockerd/commit/de6550a2f066ecf567ea87c2b23dfc354db52508


Make the function timeCalc return an array

[https://github.com/Susmita-Dey/all-round-calculator/blob/main/package/index.js](Link to the file) ### Line number 181
if the timeCalc function is set to return an array instead of a string, the user can implement the data in the code as per requirement, which in case of an hard-coded string makes it difficult.

[https://github.com/Susmita-Dey/all-round-calculator/blob/main/package/index.js](Link to the file) ### Line number 181
if the timeCalc function is set to return an array instead of a string, the user can implement the data in the code as per requirement, which in case of an hard-coded string makes it difficult.

Can you elaborate more like what you wanna change and what would be the outcome?
P.S. Screenshots are welcome.

[https://github.com/Susmita-Dey/all-round-calculator/blob/main/package/index.js](Link to the file) ### Line number 181
if the timeCalc function is set to return an array instead of a string, the user can implement the data in the code as per requirement, which in case of an hard-coded string makes it difficult.

Can you elaborate more like what you wanna change and what would be the outcome? P.S. Screenshots are welcome.

https://gist.github.com/SteveSayantan/85773e3a0f6b1f1f34553a341a87175c
This function returns an array containing all the data which may help making this reusable.

Check this out This function returns an array containing all the data which may help making this reusable i.e. user can use it multiple times as per requirement.

Yes, I get it. But you need to make more improvements in your code.


TIM-142 feat:New Announcement Card

#97  👈
main

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

Join @tamrivera05 and the rest of your teammates on  Graphite


Versions of language-filter above v3.0.1 don't work

We recently updated Sanity and all the plugins to the latest versions. For the language filter only the dropdown menu is shown, but when I choose different languages nothing happens, only the language gets deselected from the dropdown menu and nothing else.
We previously had Sanity v3.7, now we have v3.14.1
For the language-filter any version above v3.0.1 does not work from our testing.

Are you able to log the result of your filterField function to confirm it's intercepting fields as expected?

It is not. Logging inside the function yields no results - sorry, I forgot to mention this on GitHub after saying it on Slack 🤦♂
Not that it helps, but just for reference: https://sanity-io-land.slack.com/archives/C9Z7RC3V1/p1688368828527809

Got it, are your internationalized object fields just inline objects? For example:
export const localeString = defineType({
  title: 'Localized string',
  name: 'localeString',
  type: 'object',
  fields: [ ...

Or have you registered it as a custom type? And use it like so:
    defineField({
      title: 'Localized string (OBJECT)',
      name: 'localeStringObject',
      type: 'localeString',
    }),

You may need to register it as a custom type in order to show and hide the fields.

@SimeonGriggs we have the same issue, and yes we're using internationalised object fields

  languageFilter({
    supportedLanguages: [
      ...languages.map(language => ({
        id: language.name,
        title: language.title,
      })),
    ],
    defaultLanguages: [languages[0].name],
    documentTypes: [],
    filterField: (_enclosingType, field, selectedLanguageIds) =>
      !languages.map(lang => lang.name).includes(field.name) ||
      selectedLanguageIds.includes(field.name),
  }),

Using the same filterField function as yours (checking that the member name is not a language OR that it is a language and is currently selected), mine is still working in the latest version.
I can recreate the issue reported here, but can resolve it with the filterField function.

I'd like to recreate a version of the filterField that worked in a previous version and does not in this newer one. There should not have been a breaking change between versions here for this logic.

@SimeonGriggs I cant even get filterField to log out anything
languageFilter({
    supportedLanguages: [
      ...languages.map(language => ({
        id: language.name,
        title: language.title,
      })),
    ],
    defaultLanguages: [languages[0].name],
    documentTypes: [],
    filterField: (_enclosingType, field, selectedLanguageIds) =>

      // THIS NEVER FIRES
      console.log(selectedLanguageIds)

      !languages.map(lang => lang.name).includes(field.name) ||
      selectedLanguageIds.includes(field.name),
  }),

Am I missing something obvious that has changed?

@spacedawwwg Still working on recreating the issue with your code examples...

Your documentTypes array is empty in this snippet?
The object example uses field names en and fr but your languages array has locale/market pairs like en_GB and ar_SA – can you confirm your field names share the same values as your language ID's?

@SimeonGriggs

documentTypes was an empty array actually, it can be removed as we moved to use the options to enable it for specific schemas instead as this must have just been left by mistake.
no, my example above using en, fr was just pseudo code - our real languages use the en_GB and ar_SA pattern. All languages are modelled like this:

export const languages: Languages = [
  {
    name: 'en_GB',
    code: 'en-GB',
    title: 'English',
    direction: 'ltr',
  },
  {
    name: 'ar_SA',
    code: 'ar-SA',
    title: 'Arabic',
    direction: 'rtl',
  },
  // etc.
  ...
]

That's it!
Objects in document types where the configuration was on the schema – and not in the plugin config – weren't being run through the custom object input.


Can't resolve babel-polyfill

Issue only present in 1.5.6. 1.5.5 is fine.
ERROR in ./node_modules/material-ui-superselectfield/lib/SuperSelectField.js
Module not found: Error: Can't resolve 'babel-polyfill' in '[path]/node_modules/material-ui-superselectfield/lib'
@ ./node_modules/material-ui-superselectfield/lib/SuperSelectField.js 21:0-25
[rest of stacktrace in my project]
webpack: Failed to compile.

Have you tried to install the babel-polyfill npm package?
npm install babel-polyfill

I don't (targeting modern browsers with my Babel config so it's unneeded), but I also don't see that listed in the README as a dependency? And if it is... isn't that a pretty bloated dependency to have?

I included babel-polyfill recently to resolve issues with IE11 (issue #44)
i included it in dev-dependencies to avoid bloating the lib and it seemed to resolve the issue....
If you have a better idea to add support for IE11, i'm open (better than saying "no support")

Could you not rely on the end user to include it? i.e. if you target modern browsers you can leave it, if you target older browsers you'll need to include that or otherwise polyfill the environment.

indeed i thought of just replacing includes with indexOf but then got errors with .find() then with another ES6 method, and so on...
I target definitely modern browsers, but IE11 seems to be still largely used...
Problem is i'm using create-react-app, which is polyfilling only the demos site, not the lib. That's why i added a script in package.json for just polyfilling the lib.
How would you cover both of these aspects?

Wouldn't the solution be to transpile the module with Babel before you ship it? Yes, it's unideal to have transpiled/dist files in your repo, but that has to beat having Babel effectively forced as a dependency on the user's side.

Thing is it's what i were doing since quite some time:
"buildLib": "babel src/SuperSelectField.js -o lib/SuperSelectField.js"
But apparently this issue#44 made me realized babel didnot transpile properly unless added babel-polyfil....

Hmm... what do other modules out there do? Surely they're not all restricting themselves to ES5/a subset of ES6+?

babel-polyfill is actually part of babel-node cli, so if you require it as part of your lib, it will give an error as such babel-polyfill - error Error: only one instance of babel-polyfill is allowed. I think it should be up to the application that is trying to use the lib, to do the babel-polyfill (for the entire application), in terms of developing the lib, you can simply add babel-polyfill into webpack-dev-server.config as part of the entry like such.
  entry: {
    main: [
      // only- means to only hot reload for successful updates
      'webpack/hot/only-dev-server',
      'babel-polyfill',
      './main.js'
    ]
  },

It's actually really hard to use the lib in another environment where they are also running the babel-polyfill, I've had to fork this and remove it.

ok i think this issue is solved by latest releases.


Error creating teamviewer web application

Hi, im creating teamviwewer cotainer using your image baase,
All its ok using jlesage/baseimage-gui:ubuntu-20.04-v4 but i got this error when container starting:
[app         ] System has not been booted with systemd as init system (PID 1). Can't operate.
[app         ] Failed to connect to bus: Host is down

What do you have in your startapp.sh ?


Scroll while touching

Hi All,
I have a list of labels in a page which I want to be able to scroll. Currently, I can only get the list to scroll if I touch the screen, drag my finger, then release. The scrolling only happens once I release. What I would like is to be able to touch, drag to scroll, then release. Is there something I have to configure in the list object? Or is it something to do with my touchpad read function?
  /* Scrollable List of script names */
  lv_obj_t* script_list;
  script_list = lv_list_create(scriptSelect.scr, NULL);
  lv_obj_set_width(script_list, lv_obj_get_width(lv_obj_get_parent(script_list)));
  lv_obj_set_height(script_list, lv_obj_get_height(lv_obj_get_parent(script_list)) - 55);
  lv_obj_align(script_list, NULL, LV_ALIGN_IN_TOP_MID, 0, 0);

bool ex_tp_read(lv_indev_data_t *data)
{
  bool retval;

  /* Read your touchpad */
  touchUpdateState();
  touchGetCalPos(&touch_data);
  /* data->state = LV_INDEV_STATE_REL or LV_INDEV_STATE_PR */
  /* data->point.x = tp_x; */
  /* data->point.y = tp_y; */
  data->point.x = touch_data.cal_x;
  data->point.y = touch_data.cal_y;

  if (touch_data.touch_state.touch_detected)
  {
    data->state = LV_INDEV_STATE_PR;
    retval = TRUE;
    cmdResetIdleTimer();    /* Any touch when idle should reset idle timer */
  }
  else
  {
    data->state = LV_INDEV_STATE_REL;
    retval = FALSE;   /*false: no more data to read because we are no buffering*/
  }
  return retval;
}

Issue #204 might be helpful.

I see some issued in your TP read function:

In releases state data->point.x/y should be set to the last pressed value.
You should return TRUE only if there is more data to read (you have buffered some data). In your case, it seems you should return FALSE in every case.

I think PressAction and relaease action only shoud once.
try this code:
`bool retval = FALSE;
bool ex_tp_read(lv_indev_data_t *data)
{
/* Read your touchpad */
touchUpdateState();
touchGetCalPos(&touch_data);
if (touch_data.touch_state.touch_detected)
{
data->point.x = touch_data.cal_x;
data->point.y = touch_data.cal_y;
if(!retval)
{
data->state = LV_INDEV_STATE_PR;
retval = TRUE;
}
cmdResetIdleTimer();    /* Any touch when idle should reset idle timer */

}
else
{
data->state = LV_INDEV_STATE_REL;
retval = FALSE;   /false: no more data to read because we are no buffering/
}
return retval;
}`

There was no activity here for 1 month so this issue has been closed. If you continue to have problems please reopen the issue.

Sorry for not responding sooner. Thank you for your suggestions which have addressed my scrolling issue.

@bernpuc Glad to hear it!


fixed issue 6144 by removing redundant docstring in quantum_info.Kraus

Summary
Fixes #6144
The documentation for quantum_info.Kraus had an incomplete and redundant statement: 'The Kraus representation for a quantum channel $\mathcal{E}$ is a set of matrices $[A_0, ... A_{K-1}]$ such that'. This line has been removed from the docstring, as the remaining documentation conveys the required information completely.
Details and comments

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


[Sentry] Update pub.dev package to current repo version

The pub.dev page for the package lists the current version of the package being 3.0.1, while the repo is currently up to version 5, and states that "Versions below 4.0.0 are deprecated.".

duplicate of https://github.com/flutter/flutter/issues/58575


Vehicle.odometer is string instead of float for HyundaiBlueLinkAPIUSA.py

Hyundai / Kia Connect version:  v3.10.5
Python version: Python 3.9.13
Operating System: Windows 10 + Raspberry Pi BullsEye

Description
A user (USA, Bluelink, IONIQ 5) is using my hyundai_kia_connect_monitor. The problem is that it expects a float for Vehicle.odometer, but apparently for HyundaiBlueLinkAPIUSA.py it returns a string in miles, e.g. "522".
I would expect that this Vehicle.odometer string was converted to a float. I assumed it was a float for doing calculations and could use .f formats. Of course I can change it only at my side in hyundai_kia_connect_monitor, but would it not be better to convert it to float in the setter in hyundai_kia_connect_api? I also need to get the odometer_unit and missing a getter for this (only protected Vehicle._odometer_unit is available).
What I Did
I made local modifications to Vehicle.py and utils.py, to safely convert a non-float to float.
Added get_float method to utils.py
def get_float(value):
    if value is None:
        return None
    if isinstance(value, float):
        return value
    if isinstance(value, int):
        return float(value)
    if isinstance(value, str):
        try:
            return float(value)
        except ValueError:
            return value  # original fallback
    return value  # original fallback

Added get_float call and added Vehicle.odometer_unit to Vehicle.py
    @property
    def odometer_unit(self):
        return self._odometer_unit

    @odometer.setter
    def odometer(self, value):
        float_value = get_float(value[0])
        self._odometer_value = float_value
        self._odometer_unit = value[1]
        self._odometer = float_value

I can make a pull request if you find this approach is how it should be.

Out of curiosity, is this returning the actual float value of the odometer? i.e. 1,234.1 miles?
If we have that level of precision coming back from BlueLink, I see no reason for not reflecting that data the same way on the API.

@dbolger Nope, it does return a string without decimals.
Part of the Vehicle dump of the user, where the 552 is the actual mileage in the car.
         _odometer='552',
         _odometer_value='552',
         _odometer_unit='mi',

@ZuinigeRijder That's a shame, but that makes sense now that I look at the BlueLink app on my phone.

I haven't had the chance to review, but does the remaining range return a float from Hyundai or in this API? At least in Home Assistant, I'm seeing that value as with a decimal place. That may be that integration doing that, but some consistency would be nice.

Home assistant integration is taking care of it.

@cdnninja I can make a pull request if you find this approach is how it should be.

Works for me.  I am not familiar enough with best practice to comment.

@cdnninja See this pull request #435


Collision Sphere

Hello,
Is there plans to create functionality similar to the CollisionSphere in Unity?
http://docs.unity3d.com/ScriptReference/Physics.OverlapSphere.html
The reason I ask is how would you recommend making something like a stargate using Matter.js? Where the player and stargate are both "Bodies.circle". I'd like to detect when there is a collision however I don't want them to actually physically collide and bounce off each other. I would just like to know when they overlap so then I can teleport the player.
Thanks

I think what you want is to set body.isSensor = true (docs) and then use the engine collisionStart (docs) event to find the collision you are interested in. Check out the sensors example.

Hopefully my last post helped you resolve your issue, so closing this. Feel free to reply if you need more help.


Errors reported during concurrency: Unexpected end of stream

i have two keydb servers, use active replication, and use haproxy, errors reported during concurrency: Unexpected end of stream
redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.      at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:202)      at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:43)      at redis.clients.jedis.Protocol.process(Protocol.java:155)      at redis.clients.jedis.Protocol.read(Protocol.java:220)      at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:318)      at redis.clients.jedis.Connection.getOne(Connection.java:296)      at redis.clients.jedis.Jedis.zincrby(Jedis.java:1568)

Hi @hezhiqiang
This can happen if KeyDB decides to close a connection, or if the server crashes.  Do you still have the logs from KeyDB from when this occurred?

This actually looks like the INCR crash we fixed back in 5.3.2.
Closing unless new information (like the callstack) is provided.


text_frame.word_warp=True does not take effect.

Here is a snippet of my code:
prs = Presencation('empty_template.pptx')
slide = prs.slides[0]
text_box = slide.shapes.add_textbox(left, top, width, height)
tf = text_box.text_frame
tf.word_warp = True
for line in lines:
para = tf.add_paragraph()
para.text = line
para.alignment = PP_ALIGN.DISTRIBUTE
para.line_spacing = 1.1
font = para.font
font.size = Pt(14)
font.name = "Times New Roman"
prs.save('test.pptx')
Any suggestions? Thx!

I made a mistake, the setting should be word_wrap, not word_warp. lol.


SCMOD-3427: Updated to use new jep-talon base image

DO NOT MERGE: This cannot be merged until the jep-talon base image is fixed to start deploying even though it is based on a snapshot base image.

MERGE ISSUE RESOLVED


Pull an Image from a Private Registry

imagePullSecrets is in spec section of pod
but documentation its mentioned that its in container section ..

It was not an issue


FMU is not instancing

Dear,
Below, you can find a piece of code that I use for instancing my models (build by AMESIM).
Why I'm able to load FMU: simple_multiplier3  and is FMU: Linked_Parameter_FMU not loading?
            // Create the instance
            string modelIdentifier = fmd.CoSimulation.modelIdentifier;
            string guid = fmd.guid.ToString();
            Console.WriteLine($"{modelIdentifier} - {guid}");

Linked_Parameter_FMU.zip
simple_multiplier3.zip
            using (var fmu = new FmuInstance(modelIdentifier + ".dll"))
            {
                // Setup
                fmu.Log += Fmu_Log;
                fmu.StepFinished += Fmu_StepFinished;
                fmu.Instantiate(modelIdentifier + "_Instance", Fmi2Type.fmi2CoSimulation, guid, "", false, true);
                Console.WriteLine("Types platform: " + fmu.GetTypesPlatform());
                Console.WriteLine("Version: " + fmu.GetVersion());
                fmu.SetupExperiment(false, 0, 0, true, 1000);
                fmu.EnterInitializationMode();
                fmu.ExitInitializationMode();

               // Simulate
                SimulateHEV(fmu);

                // Terminate the fmu
                fmu.Terminate();
            }

Hey, I'm sorry that I let you wait for so long.
Right now I'm running Linux and don't have Visual Studio installed so I can't check your FMUs directly. Do you have any error message? Which line fails?
One issue I frequently ran into were missing dependencies. If your FMU is dynamically linked against another DLL which is not in your system path, instantiating the FMU will fail. I have debugged these cases using the dependency walker. Since the fmu is just a *.zip archive, you can extract the DLLs. Make sure that you match your architecture (x86 or x64).

Closing it because it is most likely an isssue of the FMU itself.


Warn users if legacy google-app-engine plugin is installed

fixes #768
This PR adds a startup check for the existence of the bundled "Google App Engine Integration" plugin. With the changes in https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/780, the two cannot be running at the same time, as our plugin has been merged with theirs.

See also https://github.com/GoogleCloudPlatform/gcloud-intellij/pull/651 for a similar PR.

@etanshaul Do you have any feedback on the wording here?  It would also be nice if there were some notice about this change from Jetbrains that we could link to here, as well. Does something like that exist?

cool! does the ide still throw an exception if both plugins are enabled (i.e. prior to removing the old plugin using the new dialog)?

There is no notice anywhere. I think we'll be ok for now with the wording we settle on here.

Yep, it will throw an exception. The user would actually see something like this:

At first I was thinking that this would be acceptable since the exception doesn't prevent us from warning the user, and if anything, it provides clear evidence that action needs to be taken. Now I'm having second thoughts - what do you think?

For wording, here's a first take at tweaking it - I only made minor changes:
You are running an old plugin (Google App Engine Integration) that conflicts with the installed Google Cloud Tools for Java plugin.

Please click here to deactivate the old plugin.

I just changed a couple words and shortened it (also notice the multi-line). Feel free to iterate on this too.

I wonder if there's a way to direct link to deactivate the old plugin (rather than just opening the plugin page). Something like opening up the plugin page, disabling the old plugin automatically and having that row highlighted would be cool, but I don't know if its possible.

I was wondering that as well - I'll look into that option a bit more.

Looks good! Just need to fix the checkstyle problems (and maybe see if we can have better deep linking into the plugin page).

Just curious - was the update to the FacetType id not needed? I see you reverted it.

I originally changed the facet name to avoid an exception that IDEA throws at startup when it tries to load duplicate facets.  I reverted because I realized that changing the facet name will break any existing projects that reference it.
Now I'm trying to look into other strategies for avoiding that exception.

Good call.
Just off the top of my head - what if, on plugin initialization, we check for the conflicting facet type (coming from the old plugin) and then remove or rename them? This would depend on the plugin initialization hook (e.g. CloudToolsPluginInitializationComponent) being called before our facet is loaded and after the old facet is loaded.

I just noticed that the IDE error dialog (when a plugin throws an exception for instance) has a direct link to disable a plugin:

Clicking on  "disable plugin" opens the following:

@etanshaul The only remaining issue here is that duplicate facet exception that's thrown when intellij attempts to load two google-app-engine facets (one from this plugin, and one from the old bundled plugin).
The exception is annoying, but as far as I can tell there really aren't any other negative consequences to the user. The exception will be immediately followed by our warning that the old plugin should be disabled. I'd be ok with that behavior if you are.
If not, I'd love any suggestions for how to prevent the duplicate facet from being loaded and/or suppress
s the exception.

remind me - why can't we rename our facet? Is it because of a concern for users who were previously using the old plugin with a facet configured?

Indeed. As we discussed, I'm going to see if we can 1) give our facet a new name, 2) detect that a legacy project is using the old facet, and 3) reconfigure that project to point to our new facet.

Closing because #780 has been merged into master. Will reopen new PR with master as base.


Use media queries, grid, and in CSS file to make desktop version

Used media queries in your CSS file to make a desktop version of the Figma template using Flexbox and Grid.

Used a min-width media query of 768px, used navigation links when in desktop version, removed duplicate code, and used Figma button styles and interactions.

Used list for navigation links, fixed Hamburger menu src, resume link, and "See project" link.


Allow users to send access request messages via Discord

Ideally I'd still like to wait for the logo asset before merge, but it's not a blocker and that can easily be its own commit anyway.

Thank you for the contribution @vabold 🎉


promscale runtime: out of memory

I read the docs: https://github.com/timescale/promscale/blob/master/docs/high-availability/prometheus-HA.md,and i have using Promscale with Prometheus deployed in High Availability (HA) mode.
promscale version: 0.1.4
prometheus version: 2.14.0
I have three promscale instance,one of then is read-only and another two are write-only  by prometheus HA. All of promscale are behind LoadBanlance.But now i got error about

prometheus-srv1:
Jan 13 13:32:54 promethues-srv1 promscale[2499]: {"caller":"write.go:50","level":"debug","msg":"Election id 10: Instance is not a leader. Can't write data","ts":"2022-01-13T05:32:54.906Z"}
Jan 13 13:32:54 promethues-srv1 promscale[2499]: {"caller":"write.go:50","level":"debug","msg":"Election id 10: Instance is not a leader. Can't write data","ts":"2022-01-13T05:32:54.933Z"}
Jan 13 13:32:55 promethues-srv1 promscale[2499]: {"caller":"write.go:50","level":"debug","msg":"Election id 10: Instance is not a leader. Can't write data","ts":"2022-01-13T05:32:55.358Z"}
Jan 13 13:32:55 promethues-srv1 promscale[2499]: {"caller":"write.go:50","level":"debug","msg":"Election id 10: Instance is not a leader. Can't write data","ts":"2022-01-13T05:32:55.510Z"}

prometheus-srv2:
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"runner.go:330","level":"info","msg":"Initializing leader election based on PostgreSQL advisory lock","ts":"2022-01-13T05:28:04.207Z"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"election.go:83","level":"info","msg":"leader election started: acting as leader","ts":"2022-01-13T05:28:04.219Z"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"config.go:137","level":"warn","msg":"database can only handle 4 connection; connector has 8 procs","ts":"2022-01-13T05:28:04.219Z"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"client.go:91","level":"info","msg":"host=xxxxxxxxxxxx port=xxxx user=postgres dbname=prometheus password='****' sslmode=prefer connect_timeout=10","numCopiers":2,"pool_max_conns":4,"pool_min_conns":1,"ts":"2022-01-13T05:28:04.219Z"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"query_engine.go:17","level":"debug","msg":"Lookback delta is zero, setting to default value","ts":"2022-01-13T05:28:04.519Z","value":"5m0s"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"runner.go:172","level":"info","msg":"Starting up...","ts":"2022-01-13T05:28:04.519Z"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"addr":":9201","caller":"runner.go:173","level":"info","msg":"Listening","ts":"2022-01-13T05:28:04.519Z"}
Jan 13 13:28:04 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":10000,"ts":"2022-01-13T05:28:04.715Z"}
Jan 13 13:28:05 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":10000,"ts":"2022-01-13T05:28:05.614Z"}
Jan 13 13:28:11 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":90500,"ts":"2022-01-13T05:28:11.444Z"}
Jan 13 13:28:11 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":7221,"ts":"2022-01-13T05:28:11.450Z"}
Jan 13 13:28:11 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":6922,"ts":"2022-01-13T05:28:11.739Z"}
Jan 13 13:28:11 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":7126,"ts":"2022-01-13T05:28:11.965Z"}
Jan 13 13:28:12 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":7248,"ts":"2022-01-13T05:28:12.794Z"}
Jan 13 13:28:13 promethues-srv2 promscale[69783]: {"caller":"write.go:90","level":"info","msg":"Samples write throughput","samples/sec":100014,"ts":"2022-01-13T05:28:13.725Z"}
Jan 13 13:28:29 promethues-srv2 promscale[69783]: fatal error: runtime: cannot allocate memory

who one know how to resolve it?

The two write nodes compete with the leader, and the node called the Leader writes frequently, then the 8GB memory runs out, causing the server to restart, and the PromScale starts competing with the Leader again, and the cycle repeats

Or does promScale 0.1.4 not support high availability and only support single nodes?

I suggest using the new HA mode in promscale, based on cluster and replica labels.

@AlyssaBetty We have deprecated the old HA model and as Harkishen mentioned 0.1.4 is too old to comment. The latest Promscale as of today is 0.10.0 we have also added a new HA model in Promscale based on Prometheus external labels.
I would recommend you to update Promscale to the latest versions for the team to better assist you!
If this helps you, can you close this issue?

@AlyssaBetty closing this issue, as 0.1.4 version is too old to comment and assist. If you have any questions on this feel free to re-open the issue.


avoid facades in permission class

I think this contains more than it should, also it adds a couple of calls to Core::make

If you're still trying to get this merged, please reopen. I feel like this pull was a mistake because it contains a commit that does not describe the changes.


Can I activate Bluetooth on jambox?

I know this does not make sense while using any of the jamming aps,
but I would like to be able to stream audio to and from the Raspberry Pi.
I installed all the bluetooth packages but
systemctl status bluetooth
still lists bluetooth as dead.
There is a tab for Bluetooth in the main settings menu, but when activated,
it says that
blueman manager cannot continue because the Bluez service is inactive,
because either there is no bluetooth hardware (there is, I even plugged in
a USB dongle just to make sure) or the bletooth service could not be started.
sudo systemctl start bluetooth.service
sudo systemctl enable bluetooth.service
seem to have no effect.
Is that a bug or a feature, or am I doing something wrong?

Sorry, it's so easy (but actually hard to find):
in
/boot/config.txt
comment the line
dtoverlay=disable-bt
after reboot, you have bluetooth running.


@lamy

https://play.google.com/store/apps/details?id=com.themestime.mac.ui.launcher

Full karabaew


[REEF-454] Allow for per-job queues

This adds YarnDriverConfiguration that can be filled out by an application and merged into their DriverConfiguration to set the queue to submit the job to.
This also makes sure the YarnClientConfiguration.YARN_QUEUE_NAME is actually used (it wasn't). It now provides the default for when the new per-job setting isn't used.
Lastly, this change deprecates JobSubmissionEvent.getQueue() which was never used in the first place. Its purpose is now served by the mechanism introduced here.
JIRA:
REEF-454

This looks good to me. I don't have access to "test and merge" action yet, do I?

@tcNickolas You can run the tests on your machine via mvn clean install. Report back whether that passes for you. Maybe we can convince @jwang98052 to merge it with that information :-)

It passes on my machine. (I got the change via {{git pull https://github.com/Microsoft-CISL/incubator-reef REEF-454}})

I rebased this onto current master and fixed the checkstyle violations found by that.

Tests on HDInsight pass.

I completed my review.

This PR got merged.


WithExpectedExitCode ignored when the tool exit code is zero

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched issues to ensure it has not already been reported

Cake runner
Cake .NET Tool
Cake version
2.3.0
Operating system
Windows
Operating system architecture
64-Bit
CI Server
No response
What are you seeing?
This bug is related to the new feature added in Cake 2.3.0.
Firstly, let's say I have an executable built with C# with the following signature static async Task Main(string[] args) (notice Task rather than Task<int>). In other words, my executable does not return a numerical exit code and therefore the exit code is assumed to be zero. I haven't tested it, but I am assuming you could also reproduce this exact same problem with an executable with the following signature: static async Task<int> Main(string[] args) coupled with this line in the body of the "Main": return 0;.
What's important in order to reproduce the problem I am describing is that the exit code of the executable must be zero. I fully understand that zero typically signifies that the tool completed successfully but that's not always the case.
Secondly, let's say that my Cake script contains the following:
Command(
	new CommandSettings
	{
		ToolName = appName,
		ToolExecutableNames = new[] { appName, $"{appName}.exe" },
		ToolPath = $"{publishDir}{appName}.exe",
	}.WithExpectedExitCode(1234),
	new ProcessArgumentBuilder()
		.Append("nopause")
};

Notice that I specified "1234" as the expected exit code. In this scenario, my executable returns zero and I have specified that the expected exit code should be 1234. I expect an exception to be thrown to let me know that the exit code does not match the expected value but that's not what I observe. I observe that my Cake script completes successfully, and no exception is thrown.
I investigated this situation and I believe I discovered what's causing this problem in Cake.Core/Tooling/Tool.cs. Line 101 invokes the custom exit code handler and correctly identifies that zero is not the expected exit code and line 103 invokes ProcessExitCode. However, the logic in the ProcessExitCode method on line 115 throws an exception IF AND ONLY IF the exit code is different than zero which, in the scenario I presented is not the desired behavior.
https://github.com/cake-build/cake/blob/2e23e6f647e00e8ab0e8dc5a9ec2382f99659b45/src/Cake.Core/Tooling/Tool.cs#L101..L120
Again, let me repeat that I completely understand that a "zero" exit code typically signifies success, but I don't think Cake should hard code this logic which has the side effect of overriding the custom exit code handler as I have demonstrated in my scenario.
What is expected?
I expect an exception to be thrown which would let me know that the exit code does not match the expected value.
Steps to Reproduce
As I stated previously, there are two conditions that must be met to reproduce this problem:

The executable must return zero (either because Task<int> Main returns zero or Task Main does not return a numerical exit code which consequently is assumed to be zero)
The CommandSettings when invoking Command must define a non-zero expected exit code

When these two conditions are met, I expect an exception but instead my Cake script completes successfully.
Output log
No response

Hmm not sure I'm following if I have this console
public static class Program
{
    public static async Task Main(string[] args)
    {
        await Task.CompletedTask;
    }
}

Executing that will return 0 in PowerShell
> dotnet run
> $LASTEXITCODE
0

And in Cake
Context.Tools.RegisterFile(MakeAbsolute(File("./bin/Debug/net7.0/Test.exe")));

Command(
    new [] { "Test.exe", "Test"}
);

when executed

If I change co
public static class Program
{
    public static async Task Main(string[] args)
    {
        await Task.CompletedTask;
        throw new Exception("WOW");
    }
}

it won't return zero in PowerShell
> dotnet run
> $LASTEXITCODE
Unhandled exception. System.Exception: WOW
   at Program.Main(String[] args) in C:\temp\priv\test\Test\Program.cs:line 6
   at Program.<Main>(String[] args)
                                   -532462766

And in Cake
Context.Tools.RegisterFile(MakeAbsolute(File("./bin/Debug/net7.0/Test.exe")));

Command(
    new [] { "Test.exe", "Test"}
);

when executed
Unhandled exception. System.Exception: WOW
   at Program.Main(String[] args) in C:\temp\priv\test\Test\Program.cs:line 6
   at Program.<Main>(String[] args)
Error: Test.exe: Process returned an error (exit code -532462766).

And with expectedExitCode -532462766
Context.Tools.RegisterFile(MakeAbsolute(File("./bin/Debug/net7.0/Test.exe")));

Command(
    new [] { "Test.exe", "Test"},
    expectedExitCode: -532462766
);

it won't fail
Unhandled exception. System.Exception: WOW
   at Program.Main(String[] args) in C:\temp\priv\test\Test\Program.cs:line 6
   at Program.<Main>(String[] args)

same if I remove the throw in console
public static class Program
{
    public static async Task Main(string[] args)
    {
        await Task.CompletedTask;
    }
}

it won't fail, am I right to say that that's what unexpected? And you wanted an error like
Error: Test.exe: Process returned an error (exit code 0).

?
That would mean something like
diff --git a/src/Cake.Common/Tools/Command/CommandAliases.cs b/src/Cake.Common/Tools/Command/CommandAliases.cs
index 7f1f3fb0..e32aa486 100644
--- a/src/Cake.Common/Tools/Command/CommandAliases.cs
+++ b/src/Cake.Common/Tools/Command/CommandAliases.cs
@@ -8,6 +8,7 @@ using System.Linq;
 using Cake.Core;
 using Cake.Core.Annotations;
 using Cake.Core.IO;
+using Cake.Core.Tooling;

 namespace Cake.Common.Tools.Command
 {
@@ -425,8 +426,7 @@ namespace Cake.Common.Tools.Command
             {
                 ToolName = toolExecutableNames.First(),
                 ToolExecutableNames = toolExecutableNames,
-                HandleExitCode = exitCode => exitCode == expectedExitCode
-            };
+            }.WithExpectedExitCode(expectedExitCode);

             return settingsCustomization?.Invoke(settings) ?? settings;
         }
diff --git a/src/Cake.Core/Tooling/ToolSettingsExtensions.cs b/src/Cake.Core/Tooling/ToolSettingsExtensions.cs
index 4011095f..72e1cef4 100644
--- a/src/Cake.Core/Tooling/ToolSettingsExtensions.cs
+++ b/src/Cake.Core/Tooling/ToolSettingsExtensions.cs
@@ -3,6 +3,7 @@
 // See the LICENSE file in the project root for more information.

 using System;
+using System.Globalization;
 using Cake.Core.IO;

 namespace Cake.Core.Tooling
@@ -147,6 +148,8 @@ namespace Cake.Core.Tooling
         /// <returns>The tools settings.</returns>
         public static T WithExpectedExitCode<T>(this T toolSettings, int expectExitCode)
                where T : ToolSettings
-            => toolSettings.WithToolSettings(toolSettings => toolSettings.HandleExitCode = exitCode => exitCode == expectExitCode);
+            => toolSettings.WithHandleExitCode(exitCode => exitCode == expectExitCode
+                                                ? true
+                                                : throw new CakeException(exitCode, string.Format(CultureInfo.InvariantCulture, "Process returned an unexpected exit code {0}.", exitCode)));
     }
 }

But regardless a process will always have an exit code.
A work around, for now, would be to use WithHandleExitCode and supply your own func.

@devlead to reproduce the problem I outline you must meet two conditions:

The executable must return zero
You must specify a non-zero expected exit code in your Cake script

In this scenario I expect an exception to be thrown by Cake because the exit code does not match the expected value. However, I observe that my Cake script completes successfully, and no exception is thrown.
As I have stated, I believe the root of this issue is that zero is hard coded in Cake.Core/Tooling/Tool.cs on line 115.

The issue is that exit code is marked as handled if exitCode == expectExitCode, but otherwise it's handled by standard tool execution, so essentially zero or handled.
This is why to change this behavior something like above
-            => toolSettings.WithToolSettings(toolSettings => toolSettings.HandleExitCode = exitCode => exitCode == expectExitCode);
+            => toolSettings.WithHandleExitCode(exitCode => exitCode == expectExitCode
+                                                ? true
+                                                : throw new CakeException(exitCode, string.Format(CultureInfo.InvariantCulture, "Process returned an unexpected exit code {0}.", exitCode)));
     }

to work like you describe above.
Unsure if this is the desired behavior, but above diff would result in that behavior change.

@devlead Here's unit test to demonstrate the problem

        [Fact]
        // This unit test demonstrates the problem reported in GH-4013.
        // The command's exit code is zero and the expected exit code is any non-zero value (I used '1234' for demonstration purposes).
        // In this scenario, I expect Cake to throw an exception because the exit code does not match the expected value.
        // Currently this unit test fails because Cake does not throw the expected exception.
        // The reason why Cake currently does not throw an exception is because zero is hard-coded on line 115 in Cake.Core/Tooling.Tol.cs
        // Zero is hard coded to mean that the command was successful, and the expected exit code is completely disregarded.
        public void Exception_Thrown_when_command_exit_code_is_zero_and_expected_value_is_non_zero()
        {
            // Given
            const int actualExitCode = 0;
            const int expectedExitCode = 1234;

            var fixture = new CommandRunnerStandardOutputFixture
            {
                Settings =
                {
                    HandleExitCode = exitCode => exitCode == expectedExitCode
                }
            }
            .GivenStandardOutput(string.Empty);

            fixture.ProcessRunner.Process.SetExitCode(actualExitCode);

            // When
            var result = Record.Exception(() => fixture.Run());

            // Then
            AssertEx.IsCakeException(result, "dotnet: Process returned an error (exit code 0).");
        }

The issue is that exit code is marked as handled if exitCode == expectExitCode

This is exactly the problem. In the scenario I'm presenting, the exit code is zero and the expected exit code is non-zero. They are not equal and therefore I expect Cake to throw an exception.

Yes, but the delegate is used for if exit code is essentially already handled or not, and that's what it does.
So if a behavior should be changed it IMHO wouldn't be there but in the WithExpectedExitCode extension method.

Yes but it's only processed if HandleExitCode returns false. An expected exit code is something that was added with Command without changing the internals of the Cake process, so Zero is the only known good it has. To only allow it to return true or failed would mean changing the internals or changing the delegate as in the example above in the extension method.

My suggestion is to replace this code:
if (!settings.HandleExitCode?.Invoke(exitCode) ?? true)
{
    ProcessExitCode(process.GetExitCode());
}

with something like this:
if (!settings.HandleExitCode?.Invoke(exitCode) ?? true)
{
    const string message = "{0}: Process returned an error (exit code {1}).";
    throw new CakeException(exitCode, string.Format(CultureInfo.InvariantCulture, message, GetToolName(), exitCode));
}
else
{
    ProcessExitCode(process.GetExitCode());
}

The goal is to always throw an exception when HandleExitCode returns false (this would fix the problem I highlighted) and invoke ProcessExitCode when it returns true to preserve the current behavior.


Add generic script processing

Enables calling arbtirary modules as scripts  through NeMo-Skills, e.g.,
ns run_cmd --module nemo_skills.training.prepare_sft_data \
    --cluster=local \
    ++input_files=...

Thanks! Can you please also update tests/test_data_preparation.py to run through this new interface?

Actually one more thing before merging - can you please do this ^

Just one more place to change and good to merge after that. No need to rerun gpu tests https://github.com/Kipok/NeMo-Skills/blob/main/nemo_skills/pipeline/utils.py#L222

Thanks! Can you please also update tests/test_data_preparation.py to run through this new interface?

Actually one more thing before merging - can you please do this ^

Done:  https://github.com/Kipok/NeMo-Skills/pull/240/files/496fd38057a890a171ffaa460c0ba266f2d386e0..69e4b1add5316083a986e3df4151ecfc0142f4f8

@titu1994 FYI - might be useful to you guys if you need some custom post/pre-processing on clusters. Can be chained with any other commands using expname/run_after


Emit a descriptive error when running the generator on iOS, tvOS, or watchOS

The _OpenAPIGeneratorCore library and swift-openapi-generator executable are mostly an implementation detail of the OpenAPIGenerator plugin, all vended by the swift-openapi-generator package.
The generator runs at build time to generate code, but the _OpenAPIGeneratorCore library shouldn't actually be linked by adopters's target, which is documented correctly here (Step 7 of https://swiftpackageindex.com/apple/swift-openapi-generator/0.1.3/tutorials/swift-openapi-generator/clientxcode#Configuring-your-target-to-use-the-Swift-OpenAPI-Generator-plugin), but it's also easy to get it wrong and link it when adding the package in Xcode.
We should make it so that a clear, descriptive error is emitted when someone links the generator module itself to a non-macOS/Linux target.

One example question on the developer forums: https://developer.apple.com/forums/thread/732178


Error in VS code

I have this error, can someone help me ?

Have you tried running 'flutter doctor' and followed instructions, if any?
If you go to where you installed the Flutter SDK and go to flutter/bin, there should be two files, one is dart.bat and another simply dart. If not, you might have a corrupted SDK and should try to download and reinstall it.

This is what flutter/bin should contain. I'm on Linux, but I believe that other platforms should be the same.

I have to open dart.bat or dart ?

Yes, I tried to run "flutter doctor". It was when I tried to run that this error appeared. And what should I do with dart.bat and dart ? Open them ?

Go to Extensions >> Dart >> Extension Settings, as shown below:

In the search bar on the top, after @ext:dart-code.dart-code, type SDK. Then, scroll down till you find an option called "Dart: Sdk Path", then click on "Edit in settings.json".

In the dart.sdkPath field, type in "<Path to the file I mentioned above>". In my case, its "C:\\flutter\\bin". If your using Windows, remember to use two backslashes to prevent errors caused by the escape sequences.

If this problem happens on not just VSCode, e.g. Android Studio, you should edit your environment variables. See the "Getting Started" section in the official Flutter docs.

Yes, I tried to run "flutter doctor". It was when I tried to run that this error appeared. And what should I do with dart.bat and dart ? Open them ?
@GZGavinZhao

Go to Extensions >> Dart >> Extension Settings, as shown below:

In the search bar on the top, after @ext:dart-code.dart-code, type SDK. Then, scroll down till you find an option called "Dart: Sdk Path", then click on "Edit in settings.json".

In the dart.sdkPath field, type in "<Path to the file I mentioned above>". In my case, its "C:\\flutter\\bin". If your using Windows, remember to use two backslashes to prevent errors caused by the escape sequences.

If this problem happens on not just VSCode, e.g. Android Studio, you should edit your environment variables. See the "Getting Started" section in the official Flutter docs.

Wow ok thank you, I'll test this tomorrow, I'll tell you if it works or not. Thank you in advance.

Yes, I tried to run "flutter doctor". It was when I tried to run that this error appeared. And what should I do with dart.bat and dart ? Open them ?
@GZGavinZhao

Go to Extensions >> Dart >> Extension Settings, as shown below:

In the search bar on the top, after @ext:dart-code.dart-code, type SDK. Then, scroll down till you find an option called "Dart: Sdk Path", then click on "Edit in settings.json".

In the dart.sdkPath field, type in "<Path to the file I mentioned above>". In my case, its "C:\\flutter\\bin". If your using Windows, remember to use two backslashes to prevent errors caused by the escape sequences.

If this problem happens on not just VSCode, e.g. Android Studio, you should edit your environment variables. See the "Getting Started" section in the official Flutter docs.

@GZGavinZhao
Wow ok thank you, I'll test this tomorrow, I'll tell you if it works or not. Thank you in advance.

Hi @RamazanEray
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Add mail notification

I'm trying in my branch to add notification by mail.
Do you think is a good idea?
Bye

I suggest to use https://github.com/smartinez87/exception_notification for email exception notification.


Upgrade go-diff to 1.2.0

Description:
Upgrade the go-diff dependency to 1.20.
Checklist:

[ ] Does your PR pass tests?
[ ] Have you written new tests for your changes?
[ ] Have you lint your code locally prior to submission?

Closing this because the tests are failing, and I no longer need this updated in my gitleaks development workflow.


Ysharma/hoodie 95

Primary change:

Adding S3 in Hoodie supported schemes

Other minor changes:

Adding docs for S3 configs required for hoodie compatibility
Option parser for HoodieClientExample

Test: Able to run the HoodieClientExample and create table on S3.

Will fix the PR and post back


(Slightly adapt) A logo

What do you think about an own logo? We could take the Manifolds.jl logo

and replace the 3 geodesics by a solution of some nice ODE? A curve that makes clear it is definitely on the sphere and looks a little fancy?
Lets maybe keep this in mind and when we come to some nice ODE we can easily adapt the logo script from Manifolds.

OK, sure, we can have a different logo for ManifoldDiffEq.jl.

Similar to https://github.com/JuliaManifolds/ManifoldDiff.jl/pull/44 we could replace one element (I would propose the green one) with some curvy line that is maybe  a solution of an ODE or looks nice (a spiral maybe?) I will think about it.


Gradle plugin 6.0.2 for multi-module Gradle project very slow compared to <IP_ADDRESS>

We are using the owasp dependency check plugin in the context of a multi-module Gradle project. To get a overall result for the project we invoke the dependencyCheckAggregate task. With version <IP_ADDRESS> this took ~5 min for our project on central Jenkins server, when we changed to 6.0.x the time went up to ~16 min. We had seen this already with older versions of the owasp dependency plugin, which seems to be related to the aggregation of results for the different sub modules.

Was that just on the first execution of ODC 6.x? Or is this after the database has been populated?  ODC 6.0 creates a full new database as there were breaking changes.

In our tool chain we spin off a new docker container for each build, so that the database is downloaded every time. This behaviour hasn't changed between <IP_ADDRESS> and 6.0.2. Let me know, if you need additional data that I should provide.

No the behavior hasn't changed - but if you want a faster build cache the
data directory or move to using a centralized database...
On Tue, Sep 29, 2020 at 8:54 AM Alexander Dietzsch<EMAIL_ADDRESS>wrote:

In our tool chain we spin off a new docker container for each build, so
that the database is downloaded every time. This behaviour hasn't changed
between <IP_ADDRESS> and 6.0.2. Let me know, if you need additional data that I
should provide.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jeremylong/dependency-check-gradle/issues/201#issuecomment-700682956,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGSVQSOPKBDZXYTEXKTTMDSIHKKBANCNFSM4R5NSRYA
.

I know that downloading the database takes some time and that we can improving the timing by centralizing this, but for all our single module projects the times haven't changed much between <IP_ADDRESS> and 6.0.2, only the multi-module projects, which leads me to the conclusion that the issue could be related to the aggregation of the results from the different modules.

Can anyone experiencing this issue provide how they are calling aggregate? Specifically what I'm wondering is if aggregate is being called on every module (which is wasteful) or if it is just being called once?
Next - do you see a difference between 6.0.1 and 6.0.2 or is it really the 5.x branch to the 6.x branch?
Finally - when looking at the difference between the executions if you add -info a summary of execution times for each analyzer is listed:
Analysis Started
Finished File Name Analyzer (0 seconds)
Finished Dependency Merging Analyzer (0 seconds)
Finished Version Filter Analyzer (0 seconds)
Finished Hint Analyzer (0 seconds)
Created CPE Index (1 seconds)
Finished CPE Analyzer (2 seconds)
Finished False Positive Analyzer (0 seconds)
Finished NVD CVE Analyzer (0 seconds)
Finished Sonatype OSS Index Analyzer (0 seconds)
Finished Vulnerability Suppression Analyzer (0 seconds)
Finished Dependency Bundling Analyzer (0 seconds)
Analysis Complete (2 seconds)
Generating report for project

Are people seeing a specific analyzers time increase?

From what I have seen in the logs so far it seems that the aggregate is executed on every module, Regarding the question with the versions, it changed with 6.x and is no difference between 6.0.1 and 6.0.2.

It is wasteful to execute aggregate on every module - the aggregate by itself runs against the child modules. When you run aggregate on each child module you end up getting a report in each modules build directory. If you just are looking for the aggregate report you can run it just on the top level project and get a single report.

Good point, will change the build file and verify that the results are the same. If so, then this could resolve the issue. :-)

I changed the build so that meanwhile the timing is much better and so we can close this issue.


Where to download ShapeNet-Images

To run a trial for geometrics, I need to have downloaded the Shapenet images dataset arleady... I am stuggling where to find this dataset. I have the Shapenet core dataset, of meshes.... but that doesn't come with corresponding images.  The Shapenet website requires some sort of administrative approval...

This should answer your question
https://github.com/NVIDIAGameWorks/kaolin/issues/120#issuecomment-574046657


RATIS-874. Fix AppendEntry validity checks to take the SnapshotIndex into account

This Jira aims to fix the following:

Before sending an appendEntry request to follower, leader checks the validity of the request be verifying if the follower has the previous log entry. But if the follower had installed a snapshot, the previous could be missing and the appendEntry would still be valid. Hence, the SnapshotIndex should be factored in while checking the validity of appendEntry request. Leader should store Follower's SnapshotIndex for this.

When follower receives appendEntry request, it checks the validity of log entry - the first index of the log entry is exactly 1 more than the last log index. During this check, the snapshotIndex should also be considered i.e. the first index of the log entry can be 1 more than the last log index or the snapshotIndex.

After Ratis server is restared, it loads all the available log segments. But logs with end index < last snapshot index should not be loaded. There can be gaps in the log segments upto the snapshotIndex if a snapshot was installed from leader node.

Fixed checkstyle and one unit test - TestSegmentedRaftLog.
Other failing unit tests pass locally.

Thanks @lokeshj1703 for the reviews and comments. Fixed the missing %d. Will merge after CI runs.

Thank you @lokeshj1703 for the reviews. Failing unit tests are unrelated and pass locally. Merging this PR.


Problem in Dicom Database

There is a bug when loading DICOM images from DICOM Database to be displayed in the Slice Viewers. The corresponding images are not displayed on the visualization areas when the 3D Slicer user interface is in Spanish. However, when the interface is in English, French or Portuguese, the aforementioned images are displayed. The versions that we tested were 5.3.0, 5.4.0, and 5.5.0. In all these versions, this problem remains. It seems that the bug is originated when using the DICOM Database (Add DICOM Data + Load) since when we use the option Load Data Sample the images are displayed.

Interesting - are there any log messages?  Does it happen for all dicom data, or only data with Spanish language metadata?  Maybe you can share an anonymized dataset that demonstrates the problem?

We are not using DICOM images in Spanish We are using the images from the database used in the African workshopThe problem does not come from the images,  it originates from 3D Slicer Sw, specifically in the DICOM database module. It seems to me that the problem comes when the Load bottom is clicked because there are not images that are displayed in the slicer view window We tested the same DICOM images database changing the language of the slicer GUI,  the images are displayed using English, French and Portugues but not when using Spanish Envoyé de mon iPhoneLe 14 sept. 2023 à 11:58 AM, Steve Pieper @.***> a écrit :
Interesting - are there any log messages?  Does it happen for all dicom data, or only data with Spanish language metadata?  Maybe you can share an anonymized dataset that demonstrates the problem?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

@lassoan has a developer version that can be tested in Spanish for comparison with other languages.

The problem is that Python string translation placeholders (text in curly braces {}) were translated.
Weblate detected the issue and displayed a big red error:

Weblate is quite amazing that it can list all these issues so they can be all fixed up easily:
https://hosted.weblate.org/translate/3d-slicer/3d-slicer/es_419/?q=check:python_brace_format
We should keep the translations error-free to make validation errors stand out.
We could also make string translation more robust: check if there are placeholders in the string. If there are then check if all placeholders in the source text are also found in the translated text and if there is any mismatch then log a warning and not use the translated string.

I've fixed placeholder errors in all translations above 10% (except in the new automated Arabic translation - I wrote to the author to take care of that: https://discourse.slicer.org/t/translation-of-3d-slicer/31665


Running vae.py throws error

Hi,
when trying to run vae.py (by copy/paste) with Keras 2.4.3 I get the error "When subclassing the Model class, you should implement a call method.".
I have tried to implement the call method and integrate the architecture, but then more errors appear. Can you help?

Hi, I was able to successfully run Variational Autoencoder https://keras.io/examples/generative/vae/ using Tensorflow/Keras 2.13.1.
Here is the attached Gist for reference. Thanks!


todo: skip the 48-hour check if it's a code-and-learn PR

Those PRs usually have code-and-learn labels.

I'm on it! Should be quick, for once :D

Landed in #92 !


Nonces not removed by OpenIdConnectAuth

When the OpenIdConnectAuth backend makes a call to authorize a request, it creates a nonce. Once a response is received, this nonce should be removed from the database (e.g. Association table for Django). The backend does not currently do this, resulting in a table that grows without bound.

Should be fixed by now.


Getting ethers from LimeChain Fork until 5.0.0

Codecov Report

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

@@           Coverage Diff           @@
##           master     #229   +/-   ##
=======================================
  Coverage   97.48%   97.48%
=======================================
  Files          77       77
  Lines        3019     3019
=======================================
  Hits         2943     2943
  Misses         76       76

Continue to review full report at Codecov.

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


GitLens not working against PR review files

As a follow-up to this tweet:
When reviewing changes using the official GitHub pull request extension it would be nice to use the features of GitLens either within the review/diff mode of the pull request extension or a quick way (shortcut?) to open a PR review file in a way that it can be used with the GitLens extension.
For code reviewing the combination of both whould be a powerful tool!

Thanks! 🎉