How skip highlights day

Hi, can u fix this? I have some problem.
I have automatically added 3 days at the dayclick event, can I skip the days that have been highlighted? for example highlights on the 16th and 17th and I automatically added from the 15th for the next 3 days.
the final result I want to get is the 15th 18th and 19th.
Thanks..

When you highlight days you know those days somewhere in your code.
When you had the 3 days you just have to compare those days to the highlight days, and skip any you want.
I think it's a problem in your algorithm, not the lib ;)

oke. thanks for your answer. i ll fix my algorithm..
Thanks

Thanks for your answer. I will fix my algorithm.
Thanks


Usersnap Feedback - On submit a case: Drop down menu cuts off long selection items. *Should be [...]

Sender<EMAIL_ADDRESS>Comment: On submit a case: Drop down menu cuts off long selection items. *Should be addressed by moving all this left side bar stuff to the middle column below the quick submit entry fields.

Jesi
Open #31 in Usersnap Dashboard

Download original image
Browser: Safari 10 (macOS Sierra)
Referer: https://participedia.xyz/new/case
Screen size: 1280 x 800 Browser size: 1280 x 735
Powered by usersnap.com

This issue was moved to participedia/usersnaps#5


Mail chimp email sign up doesn't work.

Describe the bug
A clear and concise description of what the bug is.
I've added the env vars for mail chimp. I use the component to try to sign up to the email. It does nothing.
To Reproduce
Steps to reproduce the behavior:
I used this component:
<BlogNewsletterForm title="Sign Up" />

with these env vars filled in:
MAILCHIMP_API_KEY=
MAILCHIMP_API_SERVER=
MAILCHIMP_AUDIENCE_ID=

I get the following error even when using a valid email:
Unhandled Promise Rejection: SyntaxError: The string did not match the expected pattern.
Failed to load resource: the server responded with a status of 404 ()

Expected behavior
A clear and concise description of what you expected to happen.
One should be able to sign up to get emails.
Screenshots
If applicable, add screenshots to help explain your problem.

**System
This is deploying to verbal with all default settings.
Browser Info (if display / formatting issue):

Device safari, on a Mac, as well as on a Phone.
Browser safari
Version I have this error and I've had my users also complain about this error.

Additional context
Add any other context about the problem here.

Just tried it out and it works for me. Do note that if you had generated the api key from mailchimp's platform, it takes the form of xxxxxxxxx-us3. xxxxxxxxx corresponds to MAILCHIMP_API_KEY and us3 should be the value of MAILCHIMP_API_SERVER.

My id has xxxxx-us21  I tried with us3 as well.
I get this error from my local env:
Error: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:399:5)
    at ServerResponse.origSetHeader [as setHeader] (node:_http_outgoing:645:11)
    at ServerResponse.setHeader (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/base-server.ts:471:16)
    at sendJson (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/api-utils/node.ts:264:7)
    at ServerResponse.apiRes.json (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/api-utils/node.ts:508:29)
    at NewsletterHandler (webpack-internal:///(api)/./node_modules/pliny/chunk-3QSZ5LSS.js:53:21)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at eval (webpack-internal:///(api)/./node_modules/pliny/chunk-3QSZ5LSS.js:58:32)
    at Object.apiResolver (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/api-utils/node.ts:531:5)
    at DevServer.runApi (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/next-server.ts:800:5)
    at Object.fn (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/next-server.ts:1209:27)
    at Router.execute (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/router.ts:457:26)
    at DevServer.run (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/base-server.ts:849:23)
    at DevServer.run (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/dev/next-dev-server.ts:1037:14)
    at DevServer.handleRequest (/Users/andrewobrigewitsch/Documents/Work.nosync/full-stack-blog/node_modules/src/server/base-server.ts:752:14) {
  code: 'ERR_HTTP_HEADERS_SENT',
  page: '/api/newsletter'
}

If your id is xxxxx-us21, that means xxxxx should be assigned to MAILCHIMP_API_KEY and us21 to MAILCHIMP_API_SERVER.

I tried this:
MAILCHIMP_API_KEY=xxxxxxxxxxxxxxxx
MAILCHIMP_API_SERVER=us21
MAILCHIMP_AUDIENCE_ID=xxxxxx

I still get the same error.


This theme is invalid and cannot be activated

Fatal Errors
Must-fix to activate theme
Replace<EMAIL_ADDRESS>and<EMAIL_ADDRESS>with {{price monthly_price currency=currency}} and {{price yearly_price currency=currency}} after fetching tier data with {{#get "tiers"}}
There is no longer a global @price object. You need to use {{#get "tiers"}} to fetch all the tiers and get access to the {{price monthly_price currency=currency}} or {{price yearly_price currency=currency}} for each tier
Find more information about the {{price}} helper here.
Affected files:
members/signup.hbs<EMAIL_ADDRESS>and<EMAIL_ADDRESS>should be replaced with {{#get "tiers"}}

Confirm.
Ghost version: 5.12.0

Thanks for the heads up. Should be fixed in ef6567c560e9b02828f1494264746c38d4848b39.


Treats markdown link text as URL

If I have a markdown where the link text is a broken link, but the actual link target is a valid URL,
$ cat test.md
[https://dummyexample.gov/notexist (archive.org link)](https://web.archive.org/web/20241129184733/http://example.com)

I would expect it only checks the web.archive.org link, but it checks both the link-text and the URL
$ lychee -v test.md
   [ERROR] https://dummyexample.gov/notexist
     [200] https://web.archive.org/web/20241129184733/http://example.com

Issues found in 1 input. Find details below.

[test.md]:
   [ERROR] https://dummyexample.gov/notexist

🔍 2 Total (in 2s) ✅ 1 OK 🚫 1 Error

This seems to relate to https://github.com/lycheeverse/lychee/issues/949#issuecomment-2400908728 except this is a slightly different case (as a markdown parser might helpfully convert http://example.com to http://example.com - but it would surely be nonsensical to ever do the same for dummyexample.gov in the initial example - it would be a link inside a link)

Yeah, we started treating plaintext links in HTML files as false-positives in https://github.com/lycheeverse/lychee/pull/1528. Something similar could work for Markdown files.
@markogalevski fyi


Data providers for RulesEngine

Currently RulesEngine supports any data source due to it taking input in json. However users still need to write all the CRUD operations for the data source to use it as a service.
RulesEngine should provide data providers which:

can be plugged into project as a library
can perform all the CRUD operation on the underlying data source
allows user to extend and create their own data providers

Now that's an excellent topic!  :)
I have to compliment this project - I just wish that I had discovered it sooner!  It seems that we have been developing in parallel for the past several years.  We both seem to be in that small faction who has an affinity for rules engines.  :)
This problem with data providers is one that I've also grappled with - I even started to create some solutions for it.  In my case, I was developing a rules engine that was somewhat focused on integration with the Ethereum platform, along with a Blazor rules editor (for mainly demo purposes).  Truth be told, though...despite a decent set of functionality offered by my engine, your code is much more polished and professional than my hobby/vanity project.  :)
I'm definitely interested in contributing in some way, especially with a few ideas.  Any interest in discussing the potential that could come from collaboration?

Hi @jaerith, I had a look into your work and i must say i am impressed :) I have been bit busy lately and would love help from community to take things forward.
If you want, i can share my proposed approach here and can get your feedback on it.

and i must say i am impressed

Thanks!  It's more of a proof of concept than anything.  But it's been fun to work on and does showcase some potential.

If you want, i can share my proposed approach here and can get your feedback on it.

Absolutely!
If you've found it yet, you can probably see my approach.  It involves a data domain as the first step, which enables a user to define a data domain or which can be automatically backfilled via an adaptor (the schema from a database, etc.).  This adaptor (which can also be implemented by the user) can also then define the CRUD operations.
Is your proposal something like that?  Or is there some C# wizardry that you have up your sleeve?  :)
I'll admit that my solution is more straightforward and "meh".  Not so dazzling.  :P

Just to ensure we both are talking about the same thing. The main idea here is allow users to host workflow/rule files in some store.
If you are talking about letting user call some database to get some data in Rules, it is possible by injecting custom class. https://github.com/microsoft/RulesEngine/wiki/Getting-Started#resettings
You can create any class, static or instance based and use it in Rule.

I will share my proposal for data source providers:

Currently RulesCache stores workflows as a concurrent dictionary.
First we would need to remove workflow cache out along with the CRUD operations in it. We could name it InMemoryWorkflowProvider.
Then create an interface from this InMemoryWorkflowProvider which would be used in RulesEngine.
We would need to tweak our CRUD methods in RulesEngine to async

Users can then pass whichever Provider they want to use in Constructor or via ReSettings. Default would be InMemoryWorkflowProvider
Users can also implement the interface to connect to their desired storage as source.
We could also provide data source providers for commonly used storage e.g. file storage, sql etc.

Just to ensure we both are talking about the same thing. The main idea here is allow users to host workflow/rule files in some store.

Ah!  I see.  Yes, I was talking about something different, namely abstracting the data record that's shown in your examples as "input1".  Basically, instead of an in-memory class, it would be a composite class that aggregates multiple data sources.  So, "input1.username" would be bound to a column on a database table, "input.account_value" would be bound to a contract's holding on the Ethereum blockchain, etc.  But, yes, that's a different conversation.

In that case use just needs to implement GetData method and call whatever source they want. They can also pass IQuerable to build the query in rules

Yes, that's very handy!  Users won't want to deploy an engine that can't extend functionality.

I will share my proposal for data source providers:

Interesting proposal!  It would be a cool option as a user of the engine, to be able to implement an interface that retrieves the rules.  And, of course, provider templates could cover a lot of bases and show the user how it's done.  Now, would it still load all the rules at once, or would it load them as needed?  Could rules be added to the engine during operation, so that the engine would never need to go down?
Also, would this interface allow the user to control how the rules are traversed, like a NextRule() method on the interface?  So that the user could implement and plug their own algorithm for rule traversal (Rete, non-Rete, etc.)?
It's funny - due to circumstances, my approach to my engine was more centered on the data (i.e., the "input1" record).  Now that we're talking, I suddenly realized that I neglected some interesting thoughts about the workflow.  :)

Now, would it still load all the rules at once, or would it load them as needed?

For starters, i would prefer on demand loading, assuming users can host any number workflows, it is better to load only what is required.

Could rules be added to the engine during operation, so that the engine would never need to go down?

Yes, that is possible currently as well. We would surely extend it to data source provider.

Also, would this interface allow the user to control how the rules are traversed, like a NextRule() method on the interface?

That is a different problem all together. We do have a feature called Actions which can be executed post rule execution.
We also have an inbuilt action called EvaluateRule which allows rules to be chained one after the other. There is still lot of work left in documenting all the possible ways you can use it but you can refer basic example here - https://microsoft.github.io/RulesEngine/#evaluaterule

So that the user could implement and plug their own algorithm for rule traversal (Rete, non-Rete, etc.)?

This is currently out of scope. I am unable to find a way to add that feature without adding more complexity.

For starters, i would prefer on demand loading, assuming users can host any number of workflows, it is better to load only what is required.

I would be tempted to do the same.  My only concern would be that "lazy loading" of the rules might rule out any possibility of validating the entire rule tree in the future (looking for paths that logically will never execute, etc.).  That is, of course, if you were considering validation.  Despite good intentions, I never got around to it in my project.  I'm entirely too lazy.  :)

Yes, that is possible currently as well. We would surely extend it to data source provider.

In general, I still need to dig more into the code, especially in how the flow actually works as depicted in the JSON files.  Are there any diagrams that illustrate how the flow works, using a JSON example as a reference?

Also, if this interface provides a way for the engine to ingest rules from a data source provider and if there is way to add rules to the engine instance, will this interface provide a way to serialize the rules back to the source provider?  Or would that be another interface?
Also, is there any long-term interest in what I had mentioned before, about an abstraction of the input record?  Or is that not in the current scope?  It might be interesting to some users, who might want to lock the actual data (on a table, etc.) during the rules' execution instead of performing the rules on an in-memory copy.


Export to EBNF grammar for ISLa together with ISLa constraints

If Langium would support the export to EBNF, we would be able to use other tools as well.
One of these tools would be ISLa - a tool for generating inputs along a EBNF grammar. We could also output constraints about types of some rules.
Other tools out there might also exist, but to be honest, I personally have not seen that much, because implementors normally use their own grammar language. But one of these is a visualizer.

Interesting thought, I have two concerns about this though:

How do we deal with cross references? Can this only be used for parser fuzzying?
Our terminal definition language is way more powerful than EBNF. We allow terminals such as terminal ID: /\p{L}*/u which cannot be represented in EBNF. /\w*/ might already be too complex. Also, terminals can be created through the TokenBuilder programmatically, without being known to the CLI at all.

about the cross-references: As far as I understood ISLa, the fuzzing is only about syntax

BUT: You can add constraints to require that a rule is expanded to a certain integer, like str.to.int(<NumericLiteral>) > 1024, or require some length or content.
You can even require that a variable for an imperative language is defined before used (very simplified, I think):forall <rhs> in <assgn>:
  exists <assgn> declaration:
    <rhs>.<var> = declaration.<lhs>.<var>

we could add a similar constraint for cross-references... might be harder for type-unions

about the token definitions: good point! So, it is not always possible. We would have to expand the RegExp to characters inside of the EBNF generator.

One last thing that I am worrying about is, that EBNF has no notion of Lexer-Rule nor Hidden tokens? We could simulate that by inserting these Non-Terminals everywhere. But I do not like this path...


duplicated fork event

While exploring 2017 github archive data, we found that there seems to duplicated events. For example, there can be two fork events with same information except created_at date and the event id. (Same actor, same repo, and same forkee id)
Is it caused by the API capturing the same event multiple times? If so, is it safe to assume that we should use the latest record? Thanks!

Interesting. We don't modify the created_at or any of the payload data, so the fact that multiple events are coming up means that the GH API provided multiple events. Do you have some particular examples you can share? How far apart are these events?
In theory, couldn't the user fork once, delete the repo (I don't think there is an event for this) and fork again? E.g. if I fork into wrong org, or some such?
@annafil any other ideas? :)

@igrigorik those are all great questions, and I think you covered my initial guesses on this as well :)  If the event_id is different, it is likely that multiple distinct events are being sent by the API.
@bluecoco if you could share some examples, I can try to track down if this is the same event re-occurring, or actually a user forking multiple times, as @igrigorik suggested.

When I was investigating the issue, I tried fork, unfork and refork test and my event api showed different forkee.id. But in the cases we found in the data the forkee ids are the same.
The events time are very close, about half an hour apart.
One pair of examples here (may not contain all the fields):
{
"payload": {
"forkee": {
"updated_at": "2017-08-30T13:02:10Z",
"private": false,
"has_wiki": true,
"full_name": "Leitnin/Repetier-Firmware",
"owner": {
"avatar_url": "https://avatars1.githubusercontent.com/u/9035220?v=4",
"site_admin": false,
"login": "Leitnin",
"type": "User",
"id": 9035220
},
"id": 101881905,
"description": "Firmware for Arduino based RepRap 3D printer.",
"has_pages": false,
"open_issues_count": 0,
"has_projects": true,
"watchers_count": 0,
"size": 16466,
"public": true,
"has_issues": false,
"has_downloads": true,
"name": "Repetier-Firmware",
"language": "HTML",
"created_at": "2017-08-30T13:02:06Z",
"pushed_at": "2017-08-25T14:46:54Z",
"extension": {},
"forks_count": 0,
"default_branch": "master",
}
},
"created_at": "2017-08-30T13:33:43Z",
"actor": {
"avatar_url": "https://avatars.githubusercontent.com/u/9035220?",
"login": "Leitnin",
"id": 9035220
},
"id": "6529932288",
"repo": {
"id": 2323906,
"name": "repetier/Repetier-Firmware"
},
"type": "ForkEvent",
"public": true
}

{
"payload": {
"forkee": {
"updated_at": "2017-08-29T21:39:52Z",
"private": false,
"has_wiki": true,
"full_name": "Leitnin/Repetier-Firmware",
"owner": {
"avatar_url": "https://avatars1.githubusercontent.com/u/9035220?v=4",
"site_admin": false,
"login": "Leitnin",
"type": "User",
"id": 9035220
},
"id": 101881905,
"description": "Firmware for Arduino based RepRap 3D printer.",
"has_pages": false,
"open_issues_count": 0,
"has_projects": true,
"watchers_count": 0,
"size": 16466,
"public": true,
"has_issues": false,
"has_downloads": true,
"name": "Repetier-Firmware",
"language": null,
"created_at": "2017-08-30T13:02:06Z",
"pushed_at": "2017-08-25T14:46:54Z",
"extension": {},
"forks_count": 0,
"default_branch": "master",
}
},
"created_at": "2017-08-30T13:02:06Z",
"actor": {
"avatar_url": "https://avatars.githubusercontent.com/u/9035220?",
"login": "Leitnin",
"id": 9035220
},
"id": "6529780368",
"repo": {
"id": 2323906,
"name": "repetier/Repetier-Firmware"
},
"type": "ForkEvent",
"public": true
}
a few other pairs of fork events with same forkee_id, in the same hour data:
101881864
101881766
101881916

this is great @bluecoco! Investigating....

@bluecoco From what I've been able to learn so far, it seems like this is most likely a duplicate. I'm seeing some minor difference in some parts of the payload (e.g. a field is filled in in the later version, but missing/not specified in the earlier version), but I'm still tracking down the root of the issue. I think your best bet is to take the latest iteration of this event for counting purposes in the interim.
I could see a potential situation where someone creates multiple forks from a repo when contributing to an OSS project because this may be preferable to attempting to catch their fork up to the latest changes upstream. However, in that case I would expect the delta in event timestamps to be a lot longer than 1 hour :)

Related: is it safe to assume that created_at timestamp for a forkee is the same or at least close enough to the create_at timestamp of the corresponding ForkEvent?

I think it depends on what data point you're looking at. The created_at timestamp for a ForkEvent should be fairly close to the actual time the event occurred. How accurate the created_at timestamp for a forkee is, depends on the data source you're looking at :) I believe the state of the repo itself (or a fork of it) is not something that GHArchive records, so if you can share more about the data you're working with, I might be able to give more information there.


Rename Brush names

#277

@SKProCH Please let me know if I am renaming the correct properties

I hadn't thought about renaming the property names, actually. However, let's keep the new names, I think it's the right thing to do. We should also rename ValidationErrorColor.
But the most important thing is to rename

https://github.com/AvaloniaCommunity/Material.Avalonia/blob/master/Material.Styles/Themes/Base/MaterialPredefinedBaseColors.axaml
https://github.com/AvaloniaCommunity/Material.Avalonia/blob/master/Material.Styles/Themes/ResourceDictionaryThemeExtensions.cs
https://github.com/AvaloniaCommunity/Material.Avalonia/blob/master/Material.Styles/Themes/MaterialThemeBase.cs#L72

And according to the renaming of these styles, also rename all their names in all style files (rename all old resources names across solution).
However, if you don't want to do that, fine, we can dump this PR as it is.

I am willing to rename all the styles 🙂. Just needed to know if I was on the right track.

@SKProCH Please let me know if there are areas I missed

Seems like everything is fine.
But also I noticed that we can actually remove Hue from PrimaryHueLightBrush. So it will be MaterialPrimaryLightBrush. What do you think?

Also, can you please add a note with name changes?
Like:

Old -> New

This needs to be included to migration guide.
Also, if you can (and you want) it will be nice to have fallback brushes resources with old names. Just a resource dictionary with old names, which will be referencing new brushes (or new brushes colors)

Seems like everything is fine.
But also I noticed that we can actually remove Hue from PrimaryHueLightBrush (and similar brushes). So it will be MaterialPrimaryLightBrush. What do you think?

I think that that is a great idea

Also, can you please add a note with name changes? Like:

Old -> New

This needs to be included to migration guide.
Also, if you can (and you want) it will be nice to have fallback brushes resources with old names. Just a resource dictionary with old names, which will be referencing new brushes (or new brushes colors)

Where would you like me to add the notes to?

Also, can you please add a note with name changes? Like:

Old -> New

This needs to be included to migration guide.
Also, if you can (and you want) it will be nice to have fallback brushes resources with old names. Just a resource dictionary with old names, which will be referencing new brushes (or new brushes colors)

Where would you like me to add the notes to?

Just paste it here

Also, can you please add a note with name changes? Like:

Old -> New

This needs to be included to migration guide.
Also, if you can (and you want) it will be nice to have fallback brushes resources with old names. Just a resource dictionary with old names, which will be referencing new brushes (or new brushes colors)

I unfortunately do not know how to add fallback brushes 😅

Also, can you please add a note with name changes? Like:

Old -> New

This needs to be included to migration guide.
Also, if you can (and you want) it will be nice to have fallback brushes resources with old names. Just a resource dictionary with old names, which will be referencing new brushes (or new brushes colors)

Where would you like me to add the notes to?

Just paste it here

okay

Also, can you please add a note with name changes? Like:

Old -> New

This needs to be included to migration guide.
Also, if you can (and you want) it will be nice to have fallback brushes resources with old names. Just a resource dictionary with old names, which will be referencing new brushes (or new brushes colors)

I unfortunately do not know how to add fallback brushes 😅

Okay, no problem, I'll try to do it myself, after PR merge

Brushes

PrimaryHueLightBrush -> MaterialPrimaryLightBrush

PrimaryHueLightForegroundBrush -> MaterialPrimaryLightForegroundBrush

PrimaryHueMidBrush -> MaterialPrimaryMidBrush

PrimaryHueMidForegroundBrush -> MaterialPrimaryMidForegroundBrush

PrimaryHueDarkBrush -> MaterialPrimaryDarkBrush

PrimaryHueDarkForegroundBrush -> MaterialPrimaryForegroundBrush

SecondaryHueLightBrush -> MaterialSecondaryLightBrush

SecondaryHueLightForegroundBrush -> MaterialSecondaryLightForegroundBrush

SecondaryHueMidBrush -> MaterialSecondaryMidBrush

SecondaryHueDarkBrush -> MaterialSecondaryDarkBrush

SecondaryHueDarkForegroundBrush -> MaterialSecondaryDarkForegroundBrush

ValidationErrorBrush -> MaterialValidationErrorBrush

MaterialDesignBackground -> MaterialBackgroundBrush

MaterialDesignPaper -> MaterialPaperBrush

MaterialDesignCardBackground -> MaterialCardBackgroundBrush

MaterialDesignToolBarBackground -> MaterialToolBarBackgroundBrush

MaterialDesignBody -> MaterialBodyBrush

MaterialDesignBodyLight -> MaterialBodyLightBrush

MaterialDesignColumnHeader -> MaterialColumnHeaderBrush

MaterialDesignCheckBoxOff -> MaterialCheckBoxOffBrush

MaterialDesignCheckBoxDisabled -> MaterialCheckBoxDisabledBrush

MaterialDesignTextBoxBorder -> MaterialTextBoxBorderBrush

MaterialDesignDivider -> MaterialDividerBrush

MaterialDesignSelection -> MaterialSelectionBrush

MaterialDesignToolForeground -> MaterialToolForegroundBrush

MaterialDesignToolBackground -> MaterialToolBackgroundBrush

MaterialDesignFlatButtonClick -> MaterialFlatButtonClickBrush

MaterialDesignFlatButtonRipple -> MaterialFlatButtonRippleBrush

MaterialDesignToolTipBackground -> MaterialToolTipBackgroundBrush

MaterialDesignChipBackground -> MaterialChipBackgroundBrush

MaterialDesignSnackbarBackground -> MaterialSnackbarBackgroundBrush

MaterialDesignSnackbarMouseOver -> MaterialSnackbarMouseOverBrush

MaterialDesignSnackbarRipple -> MaterialSnackbarRippleBrush

MaterialDesignTextFieldBoxBackground -> MaterialTextFieldBoxBackgroundBrush

MaterialDesignTextFieldBoxHoverBackground -> MaterialTextFieldBoxHoverBackgroundBrush

MaterialDesignTextFieldBoxDisabledBackground -> MaterialTextFieldBoxDisabledBackgroundBrush

MaterialDesignTextAreaBorder -> MaterialTextAreaBorderBrush

MaterialDesignTextAreaInactiveBorder -> MaterialTextAreaInactiveBorderBrush

MaterialDesignDataGridRowHoverBackground -> MaterialDataGridRowHoverBackgroundBrush

Colors

ValidationErrorColor -> MaterialValidationErrorColor
MaterialDesignBackground -> MaterialBackgroundColor
MaterialDesignPaper -> MaterialPaperColor
MaterialDesignCardBackground -> MaterialCardBackgroundColor
MaterialDesignToolBarBackground -> MaterialToolBarBackgroundColor
MaterialDesignBody -> MaterialBodyColor
MaterialDesignBodyLight -> MaterialBodyLightColor
MaterialDesignColumnHeader -> MaterialColumnHeaderColor
MaterialDesignCheckBoxOff -> MaterialCheckBoxOffColor
MaterialDesignCheckBoxDisabled -> MaterialCheckBoxDisabledColor
MaterialDesignTextBoxBorder -> MaterialTextBoxBorderColor
MaterialDesignDivider -> MaterialDividerColor
MaterialDesignSelection -> MaterialSelectionColor
MaterialDesignToolForeground -> MaterialToolForegroundColor
MaterialDesignToolBackground -> MaterialToolBackgroundColor
MaterialDesignFlatButtonClick -> MaterialFlatButtonClickColor
MaterialDesignFlatButtonRipple -> MaterialFlatButtonRippleColor
MaterialDesignToolTipBackground -> MaterialToolTipBackgroundColor
MaterialDesignChipBackground -> MaterialChipBackgroundColor
MaterialDesignSnackbarBackground -> MaterialSnackbarBackgroundColor
MaterialDesignSnackbarMouseOver -> MaterialSnackbarMouseOverColor
MaterialDesignSnackbarRipple -> MaterialSnackbarRippleColor
MaterialDesignTextFieldBoxBackground -> MaterialTextFieldBoxBackgroundColor
MaterialDesignTextFieldBoxHoverBackground -> MaterialTextFieldBoxHoverBackgroundColor
MaterialDesignTextFieldBoxDisabledBackground -> MaterialTextFieldBoxDisabledBackgroundColor
MaterialDesignTextAreaBorder -> MaterialTextAreaBorderColor
MaterialDesignTextAreaInactiveBorder -> MaterialTextAreaInactiveBorderColor
MaterialDesignDataGridRowHoverBackground -> MaterialDataGridRowHoverBackgroundColor

Yep, seems like everything is fine, thanks. Should I merge right now?

yes, your welcome

Thanks. I actually can give write permissions for the repo if you want to contribute further.

That would be useful.

Invited you. Did you have any messenger such as telegram or discord, etc?

I have discord


GroupIds is a list

E.g. in my code I have:
"AzNsNotification": {
"GroupIds": [
"[resourceId('Microsoft.Insights/actionGroups', parameters('ActionGroupName'))]"
],
"CustomEmailSubject": "[variables('MyAlert').AzNsNotification.CustomEmailSubject]",
}

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9173a498-fe60-ffd6-0f26-3f7e9972a6c4
Version Independent ID: 3d50fef6-2a8c-0f2b-8c52-23bbaa6b73dd
Content: Saved searches and alerts in management solutions
Content Source: articles/azure-monitor/insights/solutions-resources-searches-alerts.md
Service: monitoring
GitHub Login: @bwren
Microsoft Alias: bwren

@dwaynebailey need additional clarification to assist further. Are you encountering an issue or are you stating that the GroupID is returned as a list.

I had to set the GroupId as a list for it to work.  Otherwise you get a
JSON error.
On Mon, 10 Dec 2018 at 19:43, femsulu-MSFT<EMAIL_ADDRESS>wrote:

@dwaynebailey https://github.com/dwaynebailey need additional
clarification to assist further. Are you encountering an issue or are you
stating that the GroupID is returned as a list.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/20321#issuecomment-445946299,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAnhDvbbehPcnI2PdFfXfxWqykZTlWYwks5u3rlLgaJpZM4ZK7vD
.

--
Dwayne
Translate
+27 12 460 1095 (work)

Thanks for clarifying. Adding @bwren for input.

Sorry for late reply.  The information in this article became out of date when Log Analytics alerts were extended into Azure Monitor.  We've removed that section of the article and include a link to content with the ARM for Azure Monitor alerts.  https://review.docs.microsoft.com/azure/azure-monitor/platform/alerts-log?branch=pr-en-us-67992#managing-log-alerts-using-azure-resource-template .

#please-close


dead-or-alive marking mailto links as dead

Hello! We are using remark-lint-no-dead-urls which has been updated to use dead-or-alive under the hood as of v2
We have a pull request here where that version is being bumped and we're getting a good number of failures from dead-or-alive: https://github.com/prisma/docs/actions/runs/11568870340/job/32218497405?pr=6367
This is good! But I feel that at least one is incorrect:
SECURITY.md
3:62-3:109        warning Unexpected dead URL<EMAIL_ADDRESS>expected live URL                                                                                no-dead-urls            remark-lint
  [cause]:
                  error   Unexpected error fetching<EMAIL_ADDRESS>                                                                                fetch                   dead-or-alive

Is there an option for dead-or-alive that I can pass to ignore mailto links? Thank you!

Hi Jon!
Well. Can mailto URLs be considered dead? Or alive? Or are they in some, secret, third state? These are some existential problems.
If one asks this project that, how should it respond?
What about tel:? Other protocols?
Perhaps the solution is not here, but there? Perhaps remark-lint-no-dead-urls, which has the context of markdown and docs and such, should not pass all URLs?
It already has similar functionality: it has skipUrlPatterns. Which lets you choose whether to ignore mailto:. Or tel:. Or anything

Fair point @wooorm
I'll fix it there rather than here. Thank you for the explanation!


hpp2plantuml: init at 0.8.5

Description of changes
Init hpp2plantuml at 0.8.5
Things done
write package.nix for hpp2plantuml.

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4055

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4119

Yes, you are right, buildpythonApplication is better!
And I did not know nixfmt-rfc-style, I was using nixpkgs-fmt.

Result of nixpkgs-review pr 317820 run on x86_64-linux 1

2 packages built:

hpp2plantuml
hpp2plantuml.dist


Add decode subcommand that will decode the custom base64 encoding in 'stat' and 'byusergroup' files.

To maintain lexical ordering; I don't know if it's strictly necessary, but some tests relied on that fact, so I customised the encoding.

OK... I was going to say that if it was strictly for testing, it makes more sense to have written something to order the test expectations the same way as the output.
But actually the users always needed to do something to decode the base64 output, so having our own built-in tool to do it is a good thing. If the output is nicely ordered, where it wasn't before, I think that's worth keeping.


[Question] tainted? custom-ga-command? qemuDomainObjTaintMsg:6382?

This is just a warning message, but it just floods virtual machine logs.
What is the cause of this message and how can I fix this?
{
  "component":"virt-launcher",
  "level":"warning",
  "msg":"Domain id=1 name='default_rancher' uuid=56dc7c0a-1f34-5ced-97f7-61f3a76222c4 is tainted: custom-ga-command",
  "pos":"qemuDomainObjTaintMsg:6382",
  "subcomponent":"libvirt",
  "thread":"28",
  "timestamp":"2023-04-27T07:41:41.939000Z"
}

I tried to upload support bundle to this ticket, but upload limit is set to 25MB and support bundle has 26MB, so here is the link to Support Bundle uploaded to my Google Drive.
Download: Support Bundle

Except for the warning message, did u see any exceptions or errors in your VM?
And this is similar to another issue, can you please help to check https://github.com/harvester/harvester/issues/2549#issuecomment-1191492001

Hi @guangbochen
This also comes up every few lines ...
{
  "component":"virt-launcher",
  "kind":"",
  "level":"info",
  "msg":"Synced vmi",
  "name":"test-posao-hr-pool1-36944011-tvnwl",
  "namespace":"default",
  "pos":"server.go:190",
  "timestamp":"2023-05-02T10:17:53.138692Z",
  "uid":"6c6fe2e2-f86b-49ba-8a8a-8e6739da76f5"
}

After a reboot, there are few errors during boot ...
{"component":"virt-launcher","level":"info","msg":"Collected all requested hook sidecar sockets","pos":"manager.go:76","timestamp":"2023-05-02T10:42:53.712366Z"}
{"component":"virt-launcher","level":"info","msg":"Sorted all collected sidecar sockets per hook point based on their priority and name: map[]","pos":"manager.go:79","timestamp":"2023-05-02T10:42:53.712407Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon: qemu:///system","pos":"libvirt.go:496","timestamp":"2023-05-02T10:42:53.715633Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon failed: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory')","pos":"libvirt.go:504","timestamp":"2023-05-02T10:42:53.716318Z"}
{"component":"virt-launcher","level":"info","msg":"libvirt version: 8.0.0","subcomponent":"libvirt","thread":"25","timestamp":"2023-05-02T10:42:53.774000Z"}
{"component":"virt-launcher","level":"info","msg":"hostname: test-posao-hr-pool1-36944011-tvnwl","subcomponent":"libvirt","thread":"25","timestamp":"2023-05-02T10:42:53.774000Z"}
{"component":"virt-launcher","level":"warning","msg":"Failed to initialize libnetcontrol. Management of interface devices is disabled","pos":"netcfIfaceRegister:1270","subcomponent":"libvirt","thread":"25","timestamp":"2023-05-02T10:42:53.774000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Unable to get system bus connection: Could not connect: No such file or directory","pos":"virGDBusGetSystemBus:101","subcomponent":"libvirt","thread":"46","timestamp":"2023-05-02T10:42:53.907000Z"}
{"component":"virt-launcher","level":"warning","msg":"DBus not available, disabling firewalld support in bridge_network_driver: internal error: Unable to get system bus connection: Could not connect: No such file or directory","pos":"networkStateInitialize:723","subcomponent":"libvirt","thread":"46","timestamp":"2023-05-02T10:42:53.907000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Child process (dmidecode -q -t 0,1,2,3,4,11,17) unexpected exit status 1: /dev/mem: No such file or directory","pos":"virCommandWait:2752","subcomponent":"libvirt","thread":"46","timestamp":"2023-05-02T10:42:53.914000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Missing udev property 'ID_VENDOR_ID' on 'usb1'","pos":"udevGetUintProperty:216","subcomponent":"libvirt","thread":"51","timestamp":"2023-05-02T10:42:53.944000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Missing udev property 'ID_VENDOR_ID' on '1-10'","pos":"udevGetUintProperty:216","subcomponent":"libvirt","thread":"51","timestamp":"2023-05-02T10:42:53.944000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Missing udev property 'ID_VENDOR_ID' on 'usb2'","pos":"udevGetUintProperty:216","subcomponent":"libvirt","thread":"51","timestamp":"2023-05-02T10:42:53.944000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Missing udev property 'ID_VENDOR_ID' on 'usb3'","pos":"udevGetUintProperty:216","subcomponent":"libvirt","thread":"51","timestamp":"2023-05-02T10:42:53.948000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Missing udev property 'ID_VENDOR_ID' on 'usb4'","pos":"udevGetUintProperty:216","subcomponent":"libvirt","thread":"51","timestamp":"2023-05-02T10:42:53.948000Z"}

I have read the ticket and suggestions for #2549 but there is not clear instruction what to do and how to solve this? It is a warning, so you can say that it is not important, but doesn't look good when you look at the logs and only thing you see is this message without any clue what to do and how to fix this?

Any ideas how to resolve this?

looks any custom guest agent command will cause this, refer: https://github.com/harvester/harvester/issues/2549#issuecomment-1540199055
but why the warning message is flooding, should be related to some upper layer applications (e.g. kubevirt), let me continue check.

As far as I know ... I didn't define any custom-guest-agent-command. Maybe Harvester defined something? How can I check what custom-guest-agent-command is defined?

my local ENV has one Ubuntu VM, which uses qemu-agent to init ssh key, and the related virt-launcher has continuous warning message.

{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"31","timestamp":"2023-05-20T20:22:34.214000Z"}
{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"29","timestamp":"2023-05-20T20:22:39.215000Z"}
{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"30","timestamp":"2023-05-20T20:22:39.344000Z"}
{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"27","timestamp":"2023-05-20T20:22:44.215000Z"}
{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"28","timestamp":"2023-05-20T20:22:49.215000Z"}
{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"31","timestamp":"2023-05-20T20:22:49.344000Z"}
{"component":"virt-launcher","level":"warning","msg":"Domain id=1 name='default_vm66' uuid=22763d0f-7085-5bf6-b5be-7852f914f1f7 is tainted: custom-ga-command","pos":"qemuDomainObjTaintMsg:6382","subcomponent":"libvirt","thread":"29","timestamp":"2023-05-20T20:22:54.214000Z"}

harvester112:~ # kk get pods
NAME                       READY   STATUS    RESTARTS   AGE
virt-launcher-vm66-5bkhh   1/1     Running   0          4d9h
harvester112:~ #

@acosoft @w13915984028 @guangbochen . I am also facing the same issue with harvester 1.2.1 where the virt-launcher pods logs are being getting flooded with the same warning messages.
{
  "component":"virt-launcher",
  "level":"warning",
  "msg":"name='208720432964_3e7aa0ee-2a1f-43c8-b31c-1fc6e26a57cd' uuid=333f632a-98f4-58fc-8ca6-593a3fe6297b is tainted: custom-ga-command",
  "pos":"qemuDomainObjTaintMsg:6382",
  "subcomponent":"libvirt",
  "thread":"31",
  "timestamp":"2024-02-27T04:02:20.724000Z"
}

Please let me know if you were able to find a fix for this. Thanks a lot !!

@nishyt FYI, the bug is fixed https://github.com/harvester/harvester/issues/2549#issuecomment-2229357915.


The headings are not properly aligned; Also the books grid is not responsive and the books does not fit well inside the boxes

The headings are poorly aligned

The books doesn't fit inside the boxes

The books looks like below (not responsive)

Please assign the task to me @TeeWrath


Question: How to disable after init?

Hi!
Is there any way to manually disable the gtm-module after it has been initialized? I guess
this.$gtm.init(null)

could work but it's not a very clean solution and I'm afraid it will keep the initial module.
Anyone knows how to properly disable it?

My workaround:

Manual activation only: Check for an opt-out cookie. If not exists -> activate
When disabling: set the opt-out cookie and do a full-reload

My workaround:

Manual activation only: Check for an opt-out cookie. If not exists -> activate
When disabling: set the opt-out cookie and do a full-reload

Is there any way to manually disable the gtm-module after it has been initialized? I guess
this.$gtm.init(null)

This will result in a 404 in your network tab which is something I don't really like.

My workaround:
1. Manual activation only: Check for an opt-out cookie. If not exists -> activate
2. When disabling: set the opt-out cookie and do a full-reload

This is good enough for me now. It makes everything work the way I expect without making things too complicated (enabling/disabling things every time a user makes a change in their cookie preferences).
It would still be really helpful to be able to disable it programatically without a page reload or anything that could be considered a workaround.

I found another way to be able to turn it off without page reload:
1. Create nuxt plugin
Create a nuxt plugin to send stats when the page loads.
/* src/plugins/gtm.js */

export default function ({ store, $gtm, route }) {
  if (store.state.cookieSettings.analytics) {
    $gtm.push({
      event: 'nuxtRoute',
      'gtm.uniqueEventId': 0,
      pageTitle: document.title,
      pageType: 'PageView',
      pageUrl: route.path,
      routeName: route.name,
    });
  }
}

2. Create a navigation guard
/* src/middleware/route-guard.js */

let eventId = 1;  // mock google event id
let setup = false;   // to init only once

export default function ({ app, store, $gtm }) {
  if (!setup) {
    app.router.beforeResolve((to, from, next) => {
      setup = true;
      if (store.state.cookieSettings.analytics) {
        $gtm.push({
          event: 'nuxtRoute',
          'gtm.uniqueEventId': eventId,
          pageTitle: document.title,
          pageType: 'PageView',
          pageUrl: to.path,
          routeName: to.name,
        });
        eventId++;
      }
      next();
    });
  }
}

3. Register the plugin, the guard & turn automatic tracking off
/* nuxt.config.js */

plugins: [
  // ...
  { src: '~/plugins/gtm.js', mode: 'client' },
],

router: {
  middleware: 'route-guard',
},

gtm: {
  // ...
  pageTracking: false,
},


SIGSEGV when closing an environment after exception

The SIGSEGV is reproducible as follows:

I open a transaction and perform an operation, which throws an exception.
I catch the exception and try closing the database/environment without aborting the transaction.

If I manually abort the transaction between step 1 and 2, everything works fine.
However, if I understood correctly, cleanupStrayTxns should actually take care of cleaning up this transaction.
Here's a code snippet to reproduce the error.
var lmdb, env, dbi;

lmdb = require('.');
env = new lmdb.Env();
env.open({
    // Path to the environment
    path: "./testdata",
    // Maximum number of databases
    maxDbs: 10
});

dbi = env.openDbi({
   name: "example7",
   create: true
});

var txn;

txn = env.beginTxn();
txn.putNumber(dbi, "hello", 7);
try {
  txn.putNumber(dbi, "hello", 8, { noOverwrite: true });
} catch (e) {
  console.log('Already exists');
}
// We forgot the abort intentionally:
// txn.abort();
dbi.close();
env.close(); // <- This line causes the crash.

Thanks for reporting this.
The crash actually comes from cleanupStrayTxns...

@paberr Looks like the cleanupStrayTxns code was never exercised with a stray write transaction. Take a look if it's okay for you now. :)

Looks good. :)
Thank you for the quick response!


CommunityToolkit.Mvvm partial methods and IDE0060

[Enter feedback here]
Hello,
I'm using the CommunityToolkit.Mvvm Version="8.0.0" and pretty often I take advantage of the partial methods created:
EXAMPLE:
[ObservableProperty] private int _startAgeFilter;
then I use:
partial void OnStartAgeFilterChanged(int value)
{
Filter();
}
I get the warning since the value parameter is not used, but I can't remove it otherwise I get a compile-time error (No defining declaration).
Regards
Roberto

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 029ba69a-6673-836c-c69e-0105061904ea
Version Independent ID: fc793abc-cd23-d6c5-2915-89ef59ca6d41
Content: IDE0060: Remove unused parameter - .NET
Content Source: docs/fundamentals/code-analysis/style-rules/ide0060.md
Product: dotnet-fundamentals
GitHub Login: @gewarren
Microsoft Alias: gewarren

Closing as a duplicate of https://github.com/dotnet/roslyn/issues/57814.


Mix format to fix build error

Build was failing after my previous PR was merged due to mix format being required.

Looks like formatting was fixed in https://github.com/beam-community/ex_machina/pull/439


Conflicting information in this page

In the beginning the article says: "When Microsoft peering gets configured in an ExpressRoute circuit, all prefixes related to these services gets advertised through the BGP sessions that are established."
Then it says "When Microsoft peering gets configured on your ExpressRoute circuit, the Microsoft edge routers establish a pair of BGP sessions with your edge routers through your connectivity provider. No routes are advertised to your network."
Which is correct?
Regards,
Pranav

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 7bc3faf7-995f-f847-1a57-144c2cb8c04d
Version Independent ID: 8e7b9545-c4a5-52fb-36bc-c8fbe5c0767d
Content: Tutorial: Configure route filters for Microsoft peering - Azure portal
Content Source: articles/expressroute/how-to-routefilter-portal.md
Service: expressroute
GitHub Login: @duongau
Microsoft Alias: duau

@pranavtiwari09
Thanks for your feedback! We will investigate and update as appropriate.

@pranavtiwari09
The 2nd statement is correct. To enable route advertisements to your network, you must associate a route filter. I have proposed a PR to modify the first statement and it will be merged as per doc author's discretion.
Thank you!


Fix a typo.

Even though the name of the function seems irrelevant, now its name is in accordance with the @app.signal decorator's argument.

Thanks!


fix documentation of tf.switch outputs

Can one of the admins verify this patch?

Note the order in switch is reverse to that of tf.cond,
You have
tf.cond(cond, condition_true, condition_false)
but
condition_false, condition_true = tf.switch(cond, data)

Jenkins, test this please.


libmodsecurity feature: whitelisting clients (ctl:RuleEngine)

Hi.
I'd like to request implementation of ctl:RuleEngine in libmodsecurity, or a similar way to whitelist clients from being processed by libmodsecurity.
Attached/below is a test case that I think should start passing when this is in place.
I'm new to this still, please excuse any obvious mistakes.
test-cases/regression/action-ctl_ruleengine.json:
[
  {
    "enabled":1,
    "version_min":300000,
    "title":"Test operation of ctl:RuleEngine",
    "expected":{
      "http_code": 200
    },
    "client":{
      "ip":"<IP_ADDRESS>",
      "port":123
    },
    "request":{
      "headers":{
        "Host":"localhost"
      },
      "uri":"/?blockme",
      "method":"GET",
      "body": [ ]
    },
    "server":{
      "ip":"<IP_ADDRESS>",
      "port":80
    },
    "rules":[
        "SecRuleEngine On",
        "SecRule REQUEST_URI \"@contains blockme\" \"id:100,phase:1,t:none,nolog,ctl:ruleEngine=Off\"",
        "SecRule REQUEST_URI \"@contains blockme\" \"id:101,phase:2,t:none,nolog,deny\""
    ]
  }
]

When running on e14dc602e == v3/master as of today:
~/work/ModSecurity/test$ ./regression_tests test-cases/regression/action-ctl_ruleengine.json
ModSecurity 3.0.0-alpha - tests
(options are not available -- missing GetOpt)

  # File Name                                         Test Name                                                             Passed?
--- ---------                                         ---------                                                             -------
  1 action-ctl_ruleengine.json                        Test operation of ctl:RuleEngine                                      failed!

Test failed. From: test-cases/regression/action-ctl_ruleengine.json.
Test name: Test operation of ctl:RuleEngine.
Reason:
HTTP code mismatch. expecting: 200 got: 403

Debug log:
[4] JSON parser initialization
[9] yajl JSON parsing callback initialization
[4] Initializing transaction
[4] Transaction context created.
[4] Starting phase CONNECTION. (SecRules 0)
[9] This phase consists of 0 rule(s).
[4] Starting phase URI. (SecRules 0 + 1/2)
[4] Adding request argument (GET): name "blockme", value ""
[4] Starting phase REQUEST_HEADERS.  (SecRules 1)
[9] This phase consists of 1 rule(s).
[4] (Rule: 100) Executing operator "Contains" with param "blockme" against REQUEST_URI.
[9] Target value: "/?blockme" (Variable: REQUEST_URI)
[4] Matched vars updated.
[4] Rule returned 1.
[4] Running [I] (_non_ disruptive) action: nolog
[4] Running [I] (_non_ disruptive) action: ctl
[9] Appending request body: 0 bytes. Limit set to: 0.000000
[4] Starting phase REQUEST_BODY. (SecRules 2)
[4] Request body processing is disabled
[9] This phase consists of 1 rule(s).
[4] (Rule: 101) Executing operator "Contains" with param "blockme" against REQUEST_URI.
[9] Target value: "/?blockme" (Variable: REQUEST_URI)
[4] Matched vars updated.
[4] Rule returned 1.
[4] Running [I] (_non_ disruptive) action: nolog
[4] Running (disruptive) action: deny
[8] Running action deny
[8] Skipping this phase as this request was already intercepted.
[4] Starting phase RESPONSE_HEADERS. (SecRules 3)
[9] This phase consists of 0 rule(s).
[9] Appending response body: 0 bytes. Limit set to: 0.000000
[4] Starting phase RESPONSE_BODY. (SecRules 4)
[9] This phase consists of 0 rule(s).
[4] Starting phase LOGGING. (SecRules 5)
[9] This phase consists of 0 rule(s).
[8] Checking if this request is suitable to be saved as an audit log.
[8] Checking if this request is relevant to be part of the audit logs.
[8] Request was relevant to be saved. Parts: 4430

Error log:

Ran a total of: 1 regression tests - 1 failed.

Hi.
Having looked a bit at the code, the allow action seem to cover my needs.
SecRule REQUEST_HEADERS:User-Agent "@contains whitehatsec" "phase:1,allow,log,msg:'Whitelisted User-Agent',id:1001"
As far as I can tell, this allows malicious/security probing traffic matching the User-Agent to be passed to the backend service, without filling the audit log with false positives.
According to the documentation the semantics for allow changed in (iirc) 2.5.0. Was the documented ctl:RuleEngine=off best practice for whitelisting written before that?
At this stage I think a documentation update would suffice unless I've missed something.

Added support to ctl:ruleEngine as part of: 4bec6b001902033c43537710d548d731048af210

Confirming that ctl:RuleEngine=off appears to work as expected now.
Thanks for the fix!


How to add a webpack loader

Is there a way to add a loader with some webpack configuration like this?https://ant.design/components/icon/#Custom-SVG-Icon
I found this example https://github.com/gitim/react-app-rewire-svgr/blob/master/index.js but I cannot make it works

@mcanobbio 可以这样配置

I'm facing the same problem with html-loader, i need to do this :

But I don't know how to insert this code inside my config-override.js

loader

About SVG only for remember, in >=<EMAIL_ADDRESS>you can import svg direclty. See Adding SVGs

@davidsonsns how about SVG Sprites?

I added a PR that makes SVG manipulation a lot easier and is relevant to this thread: https://github.com/arackaf/customize-cra/pull/271
If that gets pulled all you need to do is just include the convenience function  like
override(
  enableSVGO()
 //....
);


Fix crash on startup X server is not available (#892)

Summary
Fixes part of #892
Hyperion crashes on startup if there is no X available. As mentioned in the linked ticket(#892), this PR will prevent the crash but there is no followup code to restart Hyperion once X becomes available. This is something we need to consider  seperately.
In addition, I moved V4L2 grabber settings handling to the V4L2Wrapper class, it makes more sense to keep related functionality together.
What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[x] Refactor
[ ] Docs
[ ] Build-related changes
[ ] Other, please describe:

If changing the UI of web configuration, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing setups:
The PR fulfills these requirements:

[ ] When resolving a specific issue, it's referenced in the PR's body (e.g. Fixes: #xxx[,#xxx], where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature
[ ] Related documents have been updated (docs/docs/en)
[ ] Related tests have been updated

PLEASE DON'T FORGET TO ADD YOUR CHANGES TO CHANGELOG.MD

[x] Yes, CHANGELOG.md is also updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:

Cheer!!!


CIFTI space output RPI orientation

The HCP task analysis scripts require the subcortical volumetric data to have RPI orientation, but the fMRIPrep (version 20.0.4) CIFTI output has LPI orientation for the subcortical volumetric data which creates an error when merging the task contrast maps back into CIFTI space (the script splits the CIFTI file into surface & volume, runs task analysis, then merges back together). If anyone would like to run HCP task analysis on this data they need to flip the subcortical data to be RPI orientation in order for the HCP task scripts to work.

@saigerutherford the CIFTI subcortical orientation has been changed to be compatible with HCP analysis in the upcoming 20.1.0 LTS release. The latest release candidate 20.1.0rc2 includes this change, if you would like to pilot one of your participants.

@saigerutherford now that 20.1.0 has been released, could you try running one participant and see if the orientation is fixed?

@saigerutherford could you reopen this issue if you see we really didn't fix it? Also confirming this worked for you would be great, but I'll close this issue for now.


Adding Julia and Go to grading table

Hi Michael,
Just a small PR here to add Julia and Go to your grading table at the bottom of your README. Let me know if I have misinterpreted your grading system.
Thanks for putting these benchmarks together and writing them up!

Thanks @nrminor. The Go zstd package does not seem to be part of the standard library or maintained by the language organisation? If that is correct it would be a B (or B+ if you know that the person maintaining it is an active contributor towards the language itself or something akin to that)

Ah yes, I think you're right. The maintainer seems to be an active Go ecosystem contributor, but not a contributor to the language itself. I'll update my PR with another commit.


Typo on Helpers.html

Truncation
To truncate long lines of text in an ellipsis, add the class truncate to the tag which contains the text. See an exaple below of a header being truncated inside a card.
Screenshot

Looks like this has already been fixed https://github.com/Dogfalo/materialize/blob/master/jade/page-contents/helpers_content.html#L113


Preview shows wrong numbers for Ints

It seems that the java script rendering overflows for BigInts showing incorrect numbers in the preview

Yeha; it's cheating by using the language itself to parse and re-serialize the JSON – so it drops input to Number resolution, rather than tokenizing and reformatting the raw data as strings.


status: also display unmerged files

we currently don't display unmerged files (eg conflicted files) in git status. this fixes it.

What happens when you press tab on the untracked file? Does it work?

no, it does nothing. then again the file is conflicted, has conflict markers so... I was more interested in checking that pressing enter does take me to the file, which works.
do you think there's value in tab expanding the changes? i can try adding that maybe.

I checked a bit, it's relatively expected that tab won't do anything, since:
         if f.diff and not file.folded then

and we don't populate diff in this case.
For the other types of files, we populate the diff from:
    staged_files = Collection.new(state.staged.items or {}):key_by('name'),
    unstaged_files = Collection.new(state.unstaged.items or {}):key_by('name'),

but i'm not sure where to get the diff from in this case.

I'm not sure where is the state populated. If you want that I try to fill in the diff, maybe let me know where that comes from.

Okay, then I think this should be fine 👍

Thank you :)


Error handling falls short

It seems like most (all?) of the Promise.reject methods in schedule.js return with a value of null. I'd love to see them either return a stack trace or maybe some information about what caused the Promise rejection (replace null with err?).
For now, you may be getting null from a query taking too long.

Latest version has error message handling for timeouts and no internet connection.
Commits with error handling: 0d40ac53b2635ec08eafccfe18ef8b83eb7733a0 8e7e6e30699f2ff3d6fddac596b0b388bb9485d9


More than two triggers as dependencies

In the article it says that you can maximum depend on two other triggers.
I just tried with 3 triggers as dependencies, which works fine, and in the UI you seem to can add as many dependencies as you like.
Should the note be updated?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e90a49ad-b872-757e-4f63-7fac92327d2b
Version Independent ID: 60e35bd6-449c-20f7-245f-f55cec44546a
Content: Create tumbling window trigger dependencies - Azure Data Factory
Content Source: articles/data-factory/tumbling-window-trigger-dependency.md
Service: data-factory
GitHub Login: @djpmsft
Microsoft Alias: daperlov

@jeppe742 Thanks for the feedback and bringing this to our notice. At this time we are reviewing the feedback and will provide an update as appropriate.

@jeppe742 We actually just increased the limit to 5 triggers as dependencies! We updated the doc yesterday and it reflects the correct number now. You just beat us to it :).
Thanks,
Dan
#please-close


KCC breaks one single manga page into 4 zoomed in sections.

I convert the cbz file to mobi with KCC and add the new mobi files to my kindle. When I open any file I see a full manga page normally, followed by 4 separate pages that are just the original page zoomed in on each corner. After these 4 zoomed-in corners the 5th page is the second page of the manga, and this repeats for the whole file. Im not sure if this is an intentional feature, but its a little annoying having to press the next page button 5 times whenever I want to go to the next page. Any advice much appreciated!

@yuhkid
What model of Kinde are you using?
It's a feature.
You are using your reader in zoom mode.
Double tab the screen to change to normal mode.

@yuhkid
can this be closed?

Absolutely, the problem has been resolved!
On Fri, Jan 13, 2023, 5:04 p.m. darodi @.***> wrote:

@yuhkid https://github.com/yuhkid
can this be closed?
—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/kcc/issues/448#issuecomment-1382617540,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4SYDLUCRYX3RAO5MD5C5W3WSH3QDANCNFSM6AAAAAASUYSOT4
.
You are receiving this because you were mentioned.Message ID:
@.***>


How is the gist updated?

I see that the Dropbox metadata.json file is updated by a Heroku deployment of https://github.com/andylolz/iati-data-dump, but what generates the gist?

Which gist? Do you mean this gist?
https://gist.github.com/andylolz/8a4e0657ec14c999de6f70f339656852
It’s generated / updated here: https://github.com/andylolz/iati-data-dump/blob/8b51bd4f91322630aa3e1c5448d732fc07804c36/run.sh#L37-L39

I’ve added some comments to the code to document this: 4b39f74974e571bc7b780ffa4d9ae2426de89fcf
These are still a bit magical, so I may try to explain elsewhere how this works. Does that sound like a worthwhile endeavour?

The comments help me sufficiently to understand the implementation – but adding something to the readme might be helpful for others :)

adding something to the readme might be helpful for others :)

Kk good plan.
If it’s okay, I’ll reword the title of this issue to that effect.

Hopefully fixed in 81c2357.


Tooltip Styles

Is there any way to change tooltip styles?

Apparently this can work to style it:
 #tippy-1 {
     background-color: black;
     color: white;
 }

Oh, there's instructions on the NPM page:
import 'tippy.js/dist/tippy.css';
import 'tippy.js/animations/scale.css';


SemVer breakage.

This package is used by Laravel 4.2.19 and, at the time, 1.0.8 was used.
Laravel's version for boris is "d11wtq/boris": "~1.0"
By moving the pcntl extension from a suggestion to a requirement, in a patch release, that change has broken Windows use.

By adding an appropriate entry in our composer.json, we can get boris 1.0.8.


In Calendar view add possibility to switch months by pressing volume keys

I guess this would need to be a by-default-off setting, because it is certainly not expected.
Also, Google Calendar does not support this (also not as option), so imo we should reject it. @EmmaTellblom

Hi @serrq!
Thanks for your creative suggestion, all feedback and ideas are welcome. But I do agree with @carstenhag here that this is not common behavior and not expected. We have talked about adding swiping motion to change months though.
So I'm closing this issue for now, but please reach out if you have anymore suggestions or feedback.


WIP: New board style

This is very much WIP, and help is welcome.
The board design is by John Coppola: https://codepen.io/johnnycopes/pen/yzQyMp

Note: Before this is potentially merged, we should get an OK from John Coppola for relasing this under MIT.

Thanks, but I'm not looking to maintain new features for now. Also, I don't want to use someone else's work without their permission.


:arrow_up: Update for React v0.14 (sorry!)

I'm really sorry to be making this change, but I have some old stuff that I haven't had the chance to migrate off Marty yet, because my next update is going to be with GraphQL/Relay instead, and I haven't had time to do that yet.

And I had to change the warning in the README because I don't want to break semver.


Adds confirmation layout to simple-modal

Feature
Adds confirmation layout to simple-modal
Follows: https://www.figma.com/file/Wp9mDxTvWicSTWtezj2ImkMP/HSDS-Product?node-id=2582%3A10019
Usage:
<SimpleModal show>
    <Confirmation
      heading="Are you sure?"
      body="You are about to merge the selected conversation with this one — this action cannot be undone."
      confirmButtonText="Okay"
      cancelButtonText="Cancel"
      danger
      onCancel={noop}
      onConfirm={noop}
    />
</SimpleModal>

Story: https://55497051.hsds-react.pages.dev/?path=/story/components-overlay-simplemodal--confirmation-layout

Hiii Juan Pablo,
Can we please make the top padding 50px and change the title to "Alert Title"? (we are trying to go away from the "Are you sure?" language. Below the title should be 6px, unless no sub copy and then it is 25px.
This is amazing work! Thank you!

@kyliedunkley Thanks for looking at it!
About the padding... the reason I put 45px is because when I measured with 50px I got:

And with 45px:

It has to do with the line height of the heading, I can set it to a smaller value to match the actual height of the text but there is a case where that will look bad: if the heading for some reason spans 2 lines. Granted, that is an edge case for this type of modal.
But is up to you, I can change it, no problem!

@knicklabs @kyliedunkley Quick question, I just had a thought, do we ever use this type of modal with just one button? Sort of as "notice" of sorts? Wanted to know if it's worth embedding that case here or not (at the moment it always renders 2 buttons)

@kyliedunkley Thanks for looking at it!

@knicklabs @kyliedunkley Quick question, I just had a thought, do we ever use this type of modal with just one button? Sort of as "notice" of sorts? Wanted to know if it's worth embedding that case here or not (at the moment it always renders 2 buttons)

I have only seen use case of one button. :)

@knicklabs @kyliedunkley Quick question, I just had a thought, do we ever use this type of modal with just one button? Sort of as "notice" of sorts? Wanted to know if it's worth embedding that case here or not (at the moment it always renders 2 buttons)

@tinkertrain so far I've only come across the case with both a primary button and cancel button.


Safari displays a zoomed image in degraded quality

Describe the bug
The current desktop & mobile versions of Safari initially load smaller images from the slide's scrSet, and after zooming in and replacing the smaller image with the larger version, render it in degraded quality.
Please check the screenshot (or the recording) with the illustration of the issue.
The browser loads the correct image (I checked this by using visually marked images), but displays it in a quality that resembles the low res version.
It seems to be caused by a bug in Safari. The transform: translateZ(0px) in the img style may change the way how the image is rendered and something in the rendering engine caches the original image dimensions. When src is replaced with another larger image it's rendered with the cached smaller dimensions.
Disabling translateZ by adding this style resolves the problem:
.yarl__slide_image {
    -webkit-transform: none !important;
}

Expected behavior
The high res image retains its quality
How to reproduce

Create the lightbox using srcSet with variants of different sizes.
Open in iOS Safari or Desktop Safari with the smallest window width.
Zoom in and see that large.jpg is displayed with degraded quality.

<Lightbox
    slides={[
        {
           // ...
           srcSet: [
                { width: 500, height: 500, src: 'small.jpg' },
                { width: 3000, height: 3000, src: 'large.jpg' },
            ],
        },
    ]}
/>;

Screenshots / Logs

Recording:
https://github.com/igordanchenko/yet-another-react-lightbox/assets/8333702/435e9aca-0f57-447e-8d85-42c83968307f
Additional context
No response

Thank you for the very detailed report. I appreciate it!
Apparently, you discovered a Safari bug caused by the code meant to workaround a different Safari bug :sweat_smile:
https://github.com/igordanchenko/yet-another-react-lightbox/blob/39426d4d3918c1c0744a5d26de9130c7e6aa647a/src/plugins/zoom/ResponsiveImage.tsx#L85-L88
https://github.com/igordanchenko/yet-another-react-lightbox/blob/39426d4d3918c1c0744a5d26de9130c7e6aa647a/src/styles.scss#L100-L106
I'll implement another workaround to fix the blurred image, but keep in mind that images will still be blurred during zoom-in / zoom-out transition.
https://github.com/igordanchenko/yet-another-react-lightbox/assets/64441155/3569df8c-f666-4749-b46c-3bd83cbd2e4d
It's another Webkit bug dating back to 2009 :scream:
https://bugs.webkit.org/show_bug.cgi?id=27684

🤦
Thank you for the fix! The turnaround time is extraordinary :)
The blurry part feels like expected behavior, I hope it will be fine for users.


conflict with font-awesome 4 on modals

when using the modal option for V4 and font-awesome css icons are loaded, the whole page shifts to the left when loading a modal.

That's now a unique problem with Font Awesome as far as I can tell. Without a live example, it seems like a dupe of #14040 and the like.


Fix typo in community page

@yangshun knows that I-dont-like-typos 😄

Yep, as Meta projects always do :P


removed scraping

Getting image links directly without scraping.
It runs much faster now since processing of post links to get image link is not required.

We also need to check for invalid links. Adding code like this (for example) would ensure the code runs error-free:
    except FileNotFoundError:
        print("\n", fname, "has invalid link")

Alright I will remove the conditional and add Exceptions.


flutter error

Invalid argument(s): Failed to load dynamic library (dlopen failed: library "eslz4-android64.so" not found)
NoSuchMethodError: The getter 'lz4VersionNumber' was called on null.

Hello,
Thanks for the report.
I just want to make sure I understand the situation.
This dart package comes with pre-compiled binaries for windows/linux/mac.
Android shared libraries currently must be provided by the user.
This build tool can be used to help you do that.
Is your situation that you didn't build a shared library?
Or is it that you have built a shared lz4 library, but you are not able to have the dart package successfully locate it?

I can't build a shared lz4 library.
Can you help me build an Android shared library?
thank you!

Hello,
After the (US) holidays, I will resurrect the Android build I did and create some instructions.  I believe it was Windows/MinGW/Ninja based.
I’ll try and find a good place to put a sample dll to try, as well

Hey bro, see https://github.com/isong0623/android_lib_es_compression0_9_9 @dqilu

Hey bro, see https://github.com/isong0623/android_lib_es_compression0_9_9 @dqilu

@isong0623 These are really great instructions...thank you for putting this together!
I'm mostly a desktop/server dev, and will soon be getting heavier into the mobile/web side of things...so this was really helpful to look at.
If you are interested and think what you put together could be included in es_compression examples...let me know.

@isong0623 These are really great instructions...thank you for putting this together!
I'm mostly a desktop/server dev, and will soon be getting heavier into the mobile/web side of things...so this was really helpful to look at.
If you are interested and think what you put together could be included in es_compression examples...let me know.

Hi @dqilu
@isong0623 provided an android generator for the libs which has been merged into the examples dir of this project.
You can do a pull of the latest and follow the README here:
https://github.com/instantiations/es_compression/blob/master/example/android_jniLibs_generate/README.md

Hi @dqilu
@isong0623 provided an android generator for the libs which has been merged into the examples dir of this project.
You can do a pull of the latest and follow the README here:
https://github.com/instantiations/es_compression/blob/master/example/android_jniLibs_generate/README.md


NotImplementedError: change_ordering for Slice is not implemented

As the tittle sais, I am getting this error when trying to convert a model.
NotImplementedError: change_ordering for Slice is not implemented

@AzazelHD
It would help others if you add details, such as from what software frame you convert, what type of model you are referring, and so on.

@AzazelHD
It would help others if you add details, such as from what software frame you convert, what type of model you are referring, and so on.

Yeah. I got a model that is on pytorch format. I used pytorch2keras library (python), and posted this error there. They said it must be an onnx2keras error.
The model was trained on GPU, but on keras I wanna predict since my GPU is AMD.
Model was on format BCHW, but CPU only admits BHWC format, so I passed pytorch_to_keras change_ordering=True. This arguments attempts to convert BCHW to BHWC.
But then I got that error

Yeah. I got a model that is on pytorch format. I used pytorch2keras library (python), and posted this error there. They said it must be an onnx2keras error.
The model was trained on GPU, but on keras I wanna predict since my GPU is AMD.
Model was on format BCHW, but CPU only admits BHWC format, so I passed pytorch_to_keras change_ordering=True. This arguments attempts to convert BCHW to BHWC.
But then I got that error

Sounds like this is not a problem of TVM.

Sounds like this is not a problem of TVM.

 HAHAHAAHAHAHAHAHA
So you just don't wanna have anything to do with it, so you just close it?  HAHAHAAHAHAHAHAHA
So you just don't wanna have anything to do with it, so you just close it? LMAO HAHAHAHAAHAHAHAHAH


[WIP] Deduped modules should return the same exports

I have changed the dedupe algorithm to return the same exports as the deduped module. This ensures that required modules are identical across package boundaries.
This is really useful in the case of Angular2's dependency injector which uses Classes as Tokens (https://angular.io/docs/js/latest/api/di/Injector-class.html)
Without this fix, the classes that are required are not identical across packages, so the DI Injector treats them as different Tokens.
I'm not sure if I should also update the plugin("add-module") section.

@sokra If you think this is change is a good idea, I can try and fix the failing tests.

nope, that's not correct. Different paths should return different instances even for the same file content. webpacks deduping should not change the behavior of the modules. You can use npm dedupe instead, which dedupes on package level.

@sokra Thanks for the answer.
In my case, while the path is different, it's exactly the same file (not just the content).
// outside widgetic-components
a = require('widgetic-components/components/audio/audio')

// inside widgetic-components
b = require('./components/audio/audio')

In this case a !== b. Considering that they're the exact same object, I think it would be valid if a === b. Don't you think?


Delete crds, and fleets, gameservers etc on deletion of Helm chart

This implements helm hooks to delete all Agones resources and CRDs when uninstalling our chart.
Deletion of resources is done in a pre-delete hook while crds are deleted in a post-delete hook. Had to add a new service account and a few other resources to accomplish it.
Fixes #426

You need to rebase and squash btw.


YAMLException: duplicated mapping key name:  port

Describe the bug
https://github.com/istio/istio/blob/1.0.5/install/kubernetes/helm/istio/charts/mixer/templates/deployment.yaml#L63 is a dup of the above port line
Expected behavior
no dup keys
Steps to reproduce the bug
see description
Version
1.0.5
Installation
n/a
Environment
n/a
Cluster state
n/a

close it since it is fixed in 1.1


I cannot debug the file !

What steps will reproduce the problem?

c:\users\dedeh\documents\documentos - organizacional\1 - cursos\coursera\introdução a ciencia da computação com python\ii\semana 1\multi_matriz.py(1)()
----> 1 import sao_multiplicaveis
2 import Matriz
3
4 def multiple_matriz(A, B):
5

I'm using the win11.

Hey @<>, thanks for reporting. This error is already fixed in our latest version (5.2.2).
Since it's still not available in Anaconda, you have two options:

Use our Windows installer, which you can find here.

Create a new environment with conda-forge packages. For that, please close Spyder, open the Anaconda Prompt and run the following commands there:
 conda create -n spyder-cf -c conda-forge spyder
 conda activate spyder-cf
 spyder

After that, you can connect Spyder to your base environment by following these instructions:
http://docs.spyder-ide.org/current/faq.html#using-existing-environment

Please do that and let us know if it works for you.

Hey @ccordoba12 doesn't work the recommendation.

Could you explain what's problem you have right now?

We have run into a similar issue in our team. The debugging tool does not work. We can start the debugger but then nothing happens. The issue extends to Windows and Mac OS.
Configuration of Mac machine
Operation System: macOS Monterey - Version 12.1
Spyder Version - 5.1.5
IPython - 8.1.1
Python - 3.8.12
We have tested to update Python or Spyder, but the issue is not resolved. Happy to provide further details. Thanks in advance for your help.
Best,
Hannah

After stumbling over the same problem with Spyder-5.1.5 from the base conda environment, I updated by
conda config --add channels conda-forge
conda install --yes spyder-kernels spyder=5.2.2

NB: This is a miniconda-based container, so a separate conda-forge environment is not really needed ... which simplifies connecting to the kernel.
Now debugging works ;-)
My configuration:

Spyder version: 5.2.2 None
Python version: 3.9.7 64-bit
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Linux 5.10.104

... and IPython-7.32.0, which was downgraded by the conda-forge channel.

Thanks, @freeboro comments did the magic; the debugging tool works now. Many thanks!

@hannahbus, great! Thanks for letting us know about it.


clarification in _verifying_token

Started using the fastapi-jwt-auth. Validating the token  from header. Raw token doesnt have "type"  key so its failed with KeyError.
Just want to understand the below condition.
if raw_token['type'] in self._denylist_token_checks:
        self._check_token_is_revoked(raw_token)

Have you fixed this? Thanks.


Add a real simple example

Hi there,
This seems like an issue that does not respect the authors or took care of reading the documentation.
I'm new to Three js, and wanted to just perform simple CSG operation, however, the only documented and with working examples library I've found is this one. But it's not the easiest to get started.
I've look at the simple.js example, but due to the extensive controls and choices and materials, I'm pretty lost.
It could be great to have a more static example, like substracting a circle from a rectangle sort of thing...
Let me know what you think, I can also do a quick PR for that.

Depending on what you need, have you considered other libs that can do boolean ops in the browser?

Searching for CSG, Three.js only return this one, the others seems not documented. I'm happy with this one though!

Hi Hugo! Thanks for the suggestion - I think you're right that the "simple" CSG example is a bit more complicated code-wise. The "multi-material" CSG example is a bit more simple but I agree that a basic, single-operation example would be good for newcomers.

It could be great to have a more static example, like substracting a circle from a rectangle sort of thing...
Let me know what you think, I can also do a quick PR for that.

This would be great. And maybe you can rename "Simple CSG" to "Interactive CSG" in the README so it's more clear, as well.


Toolbar item font picker behaviour

Are we limiting to a small number of fonts or using system fonts?
Could be many many fonts.

This behaviour is also the same as the standard Dropdown behaviour.

Prior art — #1044


graphql component bean missing

hi Swathi,
great short example i thing the component to create a graphql bean is missing.

Hi @amitjigajinnifork :
You can get the executable project from my github home. Here is the link:
graphql-with-spring-boot


楼主是用什么软件画图的？

which picture you mentioned?

https://github.com/Netflix/Hystrix/wiki/images/hystrix-command-flow-chart.png

That image is copied from official site.


Stream color in the compose box not updating

Stream color in the compose box doesn't always update properly.
Press c to open the compose box. The stream name will be blank, and the stream color will (correctly) be grey.
Using the mouse, select a stream name from the dropdown.

Expected: Stream color should update.
Actual: Stream color remains grey.
Note that this issue doesn't happen when selecting the stream name using the Tab key rather than the mouse.
CZO discussion thread

@zulipbot claim

@zulipbot  claim

@zulibot abandon

@zulipbot abandon


Update for pyelftools 0.27

Also a small fix for those using AT&T assembly.

 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.


Results creation not working in latest PA code

When I try to add a Result, I get the message below.  The response (from the dev console) is {"rationale": ["This field is required."]}.

This is a side effect of 52d3548e

This is a failure of implementation in #1326 . I'm going to reopen that ticket & address it there

This should be fixed in PR #1354

QA - PASSED

Was able to successfuly create/edit results and attach them in indicators.


import dlib: importerror libcudnn.so.5 cannot open shared object file

Hi,
I'm using ubuntu 16.04, anaconda with python 2.7, cuda 8.0 and cudnn 5.1 installed (in usr/local/cuda)
I was able to compile the python api without any errors. But when I try to import dlib, I get the following error:
Traceback (most recent call last):
File "", line 1, in
File "/home/z3pp/miniconda2/lib/python2.7/site-packages/dlib-19.4.99-py2.7-linux-x86-64.egg/dlib/init.py", line 1, in
from .dlib import *
ImportError: libcudnn.so.5: cannot open shared object file: No such file or director
The libcudnn.so.5 is present in /usr/local/cuda/lib64 and my LD_LIBRARY_PATH has /usr/local/cuda in it.
What am I missing here?
Ta

Put /usr/local/cuda/lib64 in your path, since that's where the library is.

Sorry that didn't work either. But it worked fine now when I compiled the files directly using cmake without using setup.py


ng-options and track by id (selected option always empty)

http://jsfiddle.net/Lgevdx1m/

You have to be careful when using select as ... and track by, please read the docs: https://docs.angularjs.org/api/ng/directive/ngOptions#-select-as-

Read, but doesn't make sense to me.

ngOptions doesn't convert types. I think you should be able to use a parser on ngModelController for that.

parser in ngModelController? I don't understand that.

Sorry, this is not a support forum. Please ask again on Stackoverflow, the
Google groups or the IRC


Style Setting Ideas

Maybe, you could add a setting to change and modify the hue, saturation and lighting! (e,g, change hue by 0.089)

Modify the hue, saturation, and lightness for which thing? The background colors? Or the generated pseudo-accent colors?
The hue for everything is based off of the accent color that you choose under Settings → Appearance → Accent color. But the saturation and lightness for the background colors are fixed, and the saturation and lightness for the pseudo-accent colors are restricted, to ensure there is enough contrast for readability purposes in both the dark and light themes. I could potentially allow users to modify the background lightness and saturation by a certain amount, but I'd probably have to put a limit on that too, for readability's sake.
And I'm guessing this would use a plugin to add settings for it?

Yes, style settings is a plugin
You can modify the background colors! But it is your theme after all!!

I've decided to add this feature, once I set up integration with the Style Settings plugin.

@Minus10Celcius I just pushed an update for the background lightness. I'm not sure whether to call this "Background lightness modifier" or just "Text/Background contrast".

It's a really good feature idea.
I have one thought about it. More a design reflection than an issue.
Thing is, as soon as your accent color is set to grey (red = blue = green), the hue value that you retrieve is always 0, for the red. I don't think you can do anything about it. So there was no way to create a grey palette with your theme.
Unless... you allow user to change the saturation. And with a feature adjusting the saturation of the background, it could have been a workaround. The choice to not allow a full 0% saturation with this setting is good. But I just wonder if, later, you choose to add the possibility to make a grey palette, how would they coexist? It's just a thought, so you can think about that early enough in the design process.
Otherwise, the feature itself is tested and validated on my end! Amazing!

I have one thought about it. More a design reflection than an issue.
Thing is, as soon as your accent color is set to grey (red = blue = green), the hue value that you retrieve is always 0, for the red. I don't think you can do anything about it. So there was no way to create a grey palette with your theme.
Unless... you allow user to change the saturation. And with a feature adjusting the saturation of the background, it could have been a workaround. The choice to not allow a full 0% saturation with this setting is good. But I just wonder if, later, you choose to add the possibility to make a grey palette, how would they coexist? It's just a thought, so you can think about that early enough in the design process.

@ElsaTam Can you create a new issue with this feature request?
Also, thank you for testing it out! I will wait a little bit to see if @Minus10Celcius has anything to say about it. Otherwise, I will close this issue. :)


Is there any source code?

Is there any source code to train myself datasets?

"if there is a wip flag next to the title of the repo, it isn't done yet"

thanks, i will follow this repo.


[RFC]: add prompt marker to make multi-line code more readable in the REPL

Description
This RFC proposes adding a prompt marker to make multi-line code more readable in the REPL by separating the prompt from the code more clearly.
Before:

After:

Related Issues
Related Issue https://github.com/stdlib-js/google-summer-of-code/issues/1
Questions
No.
Other
Inspired by IPython..
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

@Planeshifter @kgryte @Pranavchiku I have the changes ready, will raise a PR if this issue is accepted.

@Snehil-Shah Is the thinking behind this to allow better visual alignment for starting and closing braces?
I am not sure about this addition. Wouldn't another possibility if a user wanted to align brackets to just, say, hit ALT+ENTER to move to the next line and begin typing?

@Snehil-Shah Is the thinking behind this to allow better visual alignment for starting and closing braces?
I am not sure about this addition. Wouldn't another possibility if a user wanted to align brackets to just, say, hit ALT+ENTER to move to the next line and begin typing?

It's actually a small change, not directly related to the other PR. The goal is just to make it visually better by making each line start from the same position. (The colons align with each other in image)

How would the line continuation adjust as the line counter increments to 2 digits and then to 3 digits? Would you just keep pushing over the ellipses? How does IPython handle this? Does it also provide a prompt prefix for multiline input?

How would the line continuation adjust as the line counter increments to 2 digits and then to 3 digits? Would you just keep pushing over the ellipses? How does IPython handle this? Does it also provide a prompt prefix for multiline input?

we can use the internal line counter to adjust for that. just 2 lines of change:

as mentioned in op, this is inspired by ipython
ipython:

@Snehil-Shah Thank you for exploring this. Even if not ultimately accepted, we explored enough to discover some reasons for why not, so definitely useful and still a contribution.


don't os.File.Sync() on mac CAS items

os.File.Sync() was inneffective on mac in go prior to 1.12. In 1.12 onwards
it is effective, but slow: https://github.com/golang/go/issues/26650
This change disables Sync for CAS uploads on mac, because we can (potentially)
verify this later. Let's see if this helps performance on mac: #67 (while being less risky than #68).

@philwo: does this help performance? I don't have a mac pro to test with.
@ob: FYI, maybe you would like to benchmark this too.

IIRC we found that os.File.Sync() was really slow on macs with spinning disks. I believe we found no issues on macs with SSDs.
If we merge this patch we'll have different persistence guarantees on mac than on all other platforms. I am not a fan of this change.

I compared performance on linux SSD vs HDD a while ago, and basically concluded that you really should use SSD for bazel-remote. With that in mind maybe we should just document this and leave the current behaviour?

We ran into the performance issue when we used bazel-remote on a Mac Pro (2013) with Arch Linux as the host OS. The Mac Pro used the built-in SSD that is supposedly pretty fast, but had issues with frequent fsync() calls.
I think the answer why it showed so bad performance lies in the flash technology used: If you fsync() after writing each file, the SSD has to guarantee that even when a power outage happens, these files will not be lost. There are two ways to implement this: 1) The SSD can use some kind of power-loss protection like a battery/capacity-backed write cache. 2) The SSD must actually do a full erase/write cycle on each fsync. Professional SSDs usual provide the former, cheap SSD the latter. With power-loss protection, fsync() shouldn't cause much performance degradation, without, it will a) kill the SSD quickly (due to write amplification - if you fsync a 60 kByte file, it still has to rewrite an entire flash block, which is often 2 MB large) and b) be super slow.
My guess is that the Mac Pro SSD also didn't have power-loss protection and thus had the performance problems.
For your cache, I think you can reasonably do two things: Either continue to do fsync() after writing each file and tell users that they should preferably use professional / enterprise SSDs with power-loss protection as storage, or come up with some clever trick that only requires you to fsync() once in a while and allows you to get to a known good state when the server starts after a power-loss event.

I don't think "fsync() once in a while" would help SSD longevity. Since it's per-file, it would result in the same number of calls/operations when deferred as if you did it immediately after each PUT if I understand correctly.
An alternative "don't kill my SSD" mode that might be worth trying would be to write {data, hash} items to disk for the ActionCache without fsync(), and then use that hash to verify the item before serving it to clients.

I don't think "fsync() once in a while" would help SSD longevity. Since it's per-file, it would result in the same number of calls/operations when deferred as if you did it immediately after each PUT if I understand correctly.

So in order to do this efficiently we would need to change the on-disk layout to store all logical files in a (few) single files on disk. Besides having to offer a migration path this would come with a downside of being more restrained on possible garbage collection algorithms and having to deal with fragmentation.
Do we know how big of a problem this?

So in order to do this efficiently we would need to change the on-disk layout to store all logical files in a (few) single files on disk. Besides having to offer a migration path this would come with a downside of being more restrained on possible garbage collection algorithms and having to deal with fragmentation.

If you store two files per cache entry, then I think you would waste a lot of space unless you use a filesystem that is optimized for small files (the hash file would be much smaller than the common 4k filesystem block size).
Alternatively, you could store both data items in a single file, serialized using protobuf or similar. This would still require a migration path, but still only produce one file on disk per ActionCache entry, and I don't think this should limit our future garbage collection options.

Do we know how big of a problem this?

Re bazel-remote speed on mac pro running linux- I assume this is far from a common use case, and possibly one that we can ignore.
Re SSD write amplification, I have not had trouble with this personally, using mostly high end consumer SSDs for about a year on a medium/large codebase (chromium).
Either way, writing the ActionResult hash to disk would provide an level of data integrity check that we currently lack.

If you store two files per cache entry, then I think you would waste a lot of space unless you use a filesystem that is optimized for small files (the hash file would be much smaller than the common 4k filesystem block size).

Sorry if I wasn't clear. What I was suggesting is to have one large append-only file to store all data. I believe that's a common pattern to avoid the problems with fsync() that you described.

Sorry if I wasn't clear. What I was suggesting is to have one large append-only file to store all data. I believe that's a common pattern to avoid the problems with fsync() that you described.

Yes, but that would be a pretty large change that definitely needs data before committing to.
Whereas writing data+hash for the ActionCache would be a much smaller change, potentially faster and still safe. I could put together a test branch, but the only mac I have available for testing is a (fairly old) laptop.

Yes, but that would be a pretty large change that definitely needs data before committing to.

Agreed.

Whereas writing data+hash for the ActionCache would be a much smaller change, potentially faster and still safe. I could put together a test branch, but the only mac I have available for testing is a (fairly old) laptop.

That sounds worth a try.

Closing this issue. I'll follow up with an ActionCache data+hash experiment PR.