flake.nix expose forAllSystems

This allows flake users to use nixpkgs.lib.forAllSystems

I guess that once this is in, it will make the project https://github.com/numtide/flake-utils obsolete?

the same function is also used in release-lib.nix, I think we can just move it to lib to reduce duplicate code

That one has a different set of systems if I read the code correctly.

Since systems.flakeExposed is arbitrary and the remaining logic is lib.genAttrs, I don't think combining the two into a single function is the right thing to do. The configuration and the generic logic shouldn't be coupled like that.
Other people's objections also still apply, see:

Duplicate of https://github.com/NixOS/nixpkgs/pull/171864
Duplicate of #155709

Please use genAttrs systems.flakeExposed instead of forAllSystems. I'm sorry.

To everyone who doesn't care about the set of systems, I 100% agree, but that's a problem to be fixed in Nix itself, not in Nixpkgs. The flakes schema requires us to think about the set of systems. If you disagree with this design choice, help out with https://github.com/NixOS/nix instead of papering over it with hacks like this.

Since systems.flakeExposed is arbitrary

Can you explain why it's arbitrary? It's based on the RFC how we define tiers for nixpkgs support.

I don't think combining the two into a single function is the right thing to do.

But that's literally what nixpkgs does and anything that consumes nixpkgs will at most suppport this kind of systems. Why is it OK to be used in nixpkgs but not the consumers of nixpkgs?

Please use genAttrs systems.flakeExposed instead of forAllSystems. I'm sorry.

So all flakes out there are using this composition and we should instruct them to use it, but we should forbid making it one function?

I'll phrase it differently, for someone that comes newly to Nix and wants to write a flake, what logic do we recommend them to use for systems?

Can you explain why it's arbitrary?

iirc @edolstra's stance on the system for which to add attrs, is just the explicitly supported (by reason or by tests?) systems, to be determined by the flake author. This should therefore usually be a smaller set.
If we choose to list more than explicitly supported systems, many packages may even work on a larger set, provided that the flake instantiates their own nixpkgs via the function instead of legacyPackages.

I don't think combining the two into a single function is the right thing to do.

But that's literally what nixpkgs does

Other flakes aren't Nixpkgs and are supposed to consider for themselves what to support. By letting the flake author write their own let binding for this, they are set up for the future, where they likely will diverge from Nixpkgs' choice, if that's even a good first choice in the first place..

I'll phrase it differently, for someone that comes newly to Nix and wants to write a flake, what logic do we recommend them to use for systems? And hopefully the answer is not a PhD thesis paper.

Assuming they don't use any framework like flake-utils, flake-parts, etc, and if I understand Eelco's design correctly, it should be
{
  # ...
  outputs = { nixpkgs, ... }:
  let inherit (nixpkgs) lib;
      supportedSystems = [ "x86_64-linux" ];
      forSystems = lib.genAttrs supportedSystems;
  in {
    # ...
  };
}

As for my own opinion, I agree that supportedSystems isn't something most flake authors should have to think about at all. The current flake design requires authors to, but the solution is not to hide it away (and still require it) but to split the outputs along the proven roles of what used to be default.nix vs release.nix. This has been discussed extensively in the nix repo, but little action has been taken. I hope the nix team can make decide a direction, but as far as I'm aware, we don't have a lot of resources for feature development. We're still recovering from a period of rather haphazard development from before the team was formed (and I don't mean that in a judging way; I'm confident that all contributors and maintainers have done their best given their constraints).
I'll see what I can do in the team.

Whole nixpkgs works on the principle of having attributes for all platforms and builds failing if it a derivation doesn't build.
So the whole idea that lack of an attribute means platform isn't support won't work from UX.
But flakes makes system in the outputs turns a build error that contains relevant information what went wrong into
error: attribute 'armv6l-linux' missing

Creating a door for the user to be confused about: Did I forget something? Did I mistype something?
Now they need to ask all flakes they depend on to specify that platforms so that you can even try to see if it builds.
All this complexity costs for what exactly?

Here's exactly what happens when a new user is faced with this, to back up my claims: https://discord.com/channels/1036369714731036712/1036369758024650792/1064497129030176799

@domenkozar I have 0 doubt about your claims. I only disagree about the particular solution.
The link seems to point to a private channel. Could you quote it here?
We'll be discussing the system handling in the flake schema today in the Nix team. I wish we could have done that sooner, but it got delayed because of the holidays.

It's not a private channel, but probably you need to join the server to see it.

The Promised Update

I'll see what I can do in the team.

The team has not made a decision today to make the pragmatic choice to implement https://github.com/NixOS/nix/pull/6773 or a similar change in the short term. However, the good news is that we've had a productive and positive discussion about the stabilization of these experimental features, which makes me hopeful about the future of these features, albeit in the long term.
This also means that I have to make good on my implicit promise. (I guess I was hesitant to spell it out)
So the answer is that system handling won't change in the short term. I also see the reality that many people have committed to flakes as if they were stable. It would have been unfortunate to have people change their flakes shortly before Nix itself would vastly improve the situation, but that won't be the case for probably multiple months.
Things being what they are, I'll go ahead and allow incremental improvements to happen. We'll have a function that will be made obsolete. So be it, if it helps users today.
So...
I'm reopening this PR to allow a hopefully temporary workaround to be added to the code that's already part of an experimental feature. Do not be surprised when it is deprecated. Or be positively surprised by the alternative.
:tada:

@domenkozar A forAllSystems function does not solve their problem, which appears to be a misunderstanding of the schema of the phps flake, or a misunderstanding of the schema suggested by the Nix CLI, or a guess informed by some example somewhere that's "unintuitive" and therefore not translatable to the use case at hand. It does illustrate that we have a general problem with system handling, where "plain" flakes are bad examples. The normal thing, to operate with a context that has an implied system, should be easy. No introductory tutorial should have to deal with system more than once (or not at all).

It does not, but it proves the point if that was indeed a system attribute not supported by a flake.
I'm happy to hear this is moving further :partying_face:
Thanks for the hard work!

I think this is close to done. An item in the release notes would be appropriate.
@fricklerhandwerk do you still think experimental features should not be documented in the manuals? Perhaps we could have a section or at least something? I feel like we're wasting a lot of potential by postponing it until the very end of the stabilization process.

I never actually thought we shouldn't, and just followed what I perceived as an existing convention, agreeing with what @edolstra essentially argued today that using experimental features in examples will lead to confusion and churn.
By all means we should have a section that acknowledges experimental features and the extent to which Nixpkgs supports them. If there is much more than that, we should possibly set up a convention to mark functions as relying on experimental features.

Just my 2 nix'es:
I believe that we should not encourage people to depend on nixpkgs and this should be resolved in nix itself.
In the future, once flakes are stabilized and are feature complete I'd expect to see simple flakes look something like this: https://github.com/gytis-ivaskevicius/nix-patterns/tree/master/07-blueprints-no-nixpkgs
This has several advantages:

You have an option to depend on developer-provided nixpkgs if you feel like it
Not to depend on nixpkgs and be sure of it (no nixpkgs input - no chances of shooting yourself in a foot with multiple nixpkgs imports. Otherwise, you don't know what the developer is doing, he might import nixpkgs for you which would mean secondary nixpkgs evaluation no matter if you overwrite nixpkgs or not)
Not to depend on developer-provided <system>'s
No longer a need to use drv.override {}
No more developers forgetting to use pkgs.callPackage

Just my 2 nix'es:
I believe that we should not encourage people to depend on nixpkgs and this should be resolved in nix itself.
In the future, once flakes are stabilized and are feature complete I'd expect to see simple flakes look something like this: https://github.com/gytis-ivaskevicius/nix-patterns/tree/master/07-blueprints-no-nixpkgs
This has several advantages:

You have an option to depend on developer-provided nixpkgs if you feel like it
Not to depend on nixpkgs and be sure of it (no nixpkgs input - no chances of shooting yourself in a foot with multiple nixpkgs imports. Otherwise, you don't know what the developer is doing, he might import nixpkgs for you which would mean secondary nixpkgs evaluation no matter if you overwrite nixpkgs or not)
Not to depend on developer-provided <system>'s
No longer a need to use drv.override {}
No more developers forgetting to use pkgs.callPackage
No more overlays - unless you feel like it ;)

This sounds like a problem that's covered by overlays outputs in flakes.
I understand the wart, and agree that forcing deep follows is annoying ( you basically have to use a modified callFlake ).
What I'm not really following is how avoiding a Nixpkgs input resolves these issues. Unless you completely avoided stdenv and bootstrap a set of flakes from derivation, you're still going to end up referring to it with something like fetchurl.
Maybe I'm misunderstanding your pitch though.

This sounds like a problem that's covered by overlays outputs in flakes.

You are not wrong, but here are the main points:

Blueprints remove a need for .overrides
Blueprints can be very easily turned into overlays or packages with simple mapAttrs
I've seen several instances of overlays importing nixpkgs. Blueprints are foolproof in this regard
I've seen a lot of instances of callPackage not being used. Blueprints are foolproof in this regard
Overlays are disliked by a large chunk of the community due to the billion nixpkgs issue (I assume that's why?)

Blueprints are ok, but they're only one solution in a spectrum of ways you can work with dependencies.

blueprints: everything injectable; some wiring not reused
function from nixpkgs to attribute set of packages: adopt the upstream wiring, but avoid an extra nixpkgs
flake packages attribute, and no follows: use the package exactly as tested by upstream, incur the extra nixpkgs

Each of these is a valid way of presenting and consuming packages, but none of them have a finalized design or cli integration

blueprints: better to be simplified into modules (drv-parts?)
function from nixpkgs to attribute set of packages: a possible generalization of the flake schema

suggesting it here https://github.com/NixOS/nix/issues/7709#issuecomment-1415961961

even if we don't apply such a generalization, the need for enumeration is a problem, as is the inability to hint/suggest/require follows as needed, and an important potential benefit hasn't been realised yet: inter-flake evaluation cache (as opposed to cli <-> evaluator boundary level cache)

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2022-01-05-documentation-team-meeting-notes-22/25535/1

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-systems-externally-extensible-flake-systems/27110/8

Is there anything worth looking? I am very confused.


Remove some windows warnings

This PR is related with this other PR https://github.com/ignitionrobotics/ign-sensors/pull/58
There are some Windows warning comming from this package. https://build.osrfoundation.org/job/ign_sensors-pr-win/508/msbuild/new/
Signed-off-by: ahcorde<EMAIL_ADDRESS>

Window failure is unrelated.


Animating The Projects Page

What feature?
As The Initial Landing Page Is Animated, I would like to start working on the projects page.
If you liked the animation on the cards in landing page, should we kepp the same animation here also.
Add screenshots

Record

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

assigned to you


Need user injected spectral index feature

We should add a feature to the pulsar class for users to put in a spectral index for the simulated pulsar if they want to, since we know that pulsars have rather steep spectral indices.

This has been merged into the psrfits_reform and joss-review branches, but still needs to eventually be merged into the main branch.


Documentation TOC

IIRC the doc on github.io used to include  some kind of side bar or frame that showed a table of contents of the currently viewed document.  This is no longer present making a doc like this hard to navigate  .  Can we revive this please?

Thank you for the issue, @dosumis.
I am able to see a TOC on the right side of the page. Can you clarify what TOC you are expecting to see?

That's what I expected to see. I'm getting this in chrome.  Maybe a browser issue.

If the viewing window is not fully expanded or opened in a mobile device, some elements of the page become hidden.
Viewing with Safari on a desktop with the window maximised should reveal all page elements.

The TOC moved to the burger menu, at the top left on the page.


[DOCS] troubleshooting info for pushing to github

Private emails (in github, not sure about bitcuket or gitlab) or using git from the command line in gitpod may require some troubleshooting such as ammending the users email in ~/.gitconfig. Give the user some tips.
most likley private emails from github without opting out of the "Block command line pushes that expose my email" seeting will get this error when trying to push to remote from Gitpod. Either opt out or write in  your private emaill addres(norepl@blahblah) to ~/.gitconfig for every worspace your create.
 ! [remote rejected] main -> main (push declined due to email privacy restrictions)

Fixed typos, overhauled the whole page. added for formatted sections


Scores dont appear on Group and Conditional questions

example
User: LukeAdmin
Group Question:
/questions/11370/

Should appear something like: /questions/1663/

Also worth noting: when the "Additional Scores" drawer is empty, it shouldn't display at all.
Feel free to make tweaks e.g. centering the boxes etc.

LGTM!


OLS 0.1.3 snapshot-to-catalog with snapshot ols-cq8sl

Description
OLS 0.1.3 snapshot-to-catalog with snapshot ols-cq8sl
Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[x] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[x] I have performed a self-review of my code.
[ ] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

/lgtm
/approve


Feat(LIVE-9328): swap quotes setup of the list

📝 Description

Display swap quotes inside swap live app
Group native quote list with native swap button
Flexible webview height

❓ Context

LIVE-9328

✅ Checklist
Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.

[x] npx changeset was attached.
[ ] Covered by automatic tests.

[ ] Impact of the changes:

🧐 Checklist for the PR Reviewers

[x] The code aligns with the requirements described in the linked JIRA or GitHub issue.
[ ] The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
[ ] There are no undocumented trade-offs, technical debt, or maintainability issues.
[ ] The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
[ ] Any new dependencies have been justified and documented.
[ ] Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

/generate-screenshots


Fix styles for Read more section in product page

Column block style breaking for lesser screens

https://main--fonterra-fernleaf--hlxsites.hlx.page/en/products/milk-powder-for-whole-family
https://www.fernleaf.com.my/en/products/milk-powder-for-whole-family.html

Tablet view:

Mobile view:

we follow stacking approach for mobile and Tablet view,
ie,
desktop => horizontal columns
tablet/mobile => vertical columns

Hence,  in tablet image will not be made overlapped with first column as per the current site.

Is fixed along with button sizing.

@sselvara Layouts are still broken on column block in main branch (seems like your changes got reverted)

Need to fix mobile view of product category columns. https://104-hero-banner-fix--fonterra-fernleaf--hlxsites.hlx.page/en/products/calciyum


feat: allow disabling postgres, nestjs automatic instrumentation through env-var

:tada: This PR is included in version 1.41.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


🪸 use custom DS theme for klaw

The DS can be used with a custom theme. We've a theme and should enable Klaw to use that.

Is there documentation about theming Aquarium?


feat: expose environment setting

The environment settings of the SDKs were not exposed, but they can be very useful to filter out events and crashes from test environments for example.

@Zaratusa Looks good! Thank you for submitting this PR


Update tutorial-create-gateway-portal.md

Learn Build status updates of commit 03325f3:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed]

Cannot sync git repo to specified commit because ref +refs/pull/102979/merge has been deleted or has been force pushed.
 If this is pull request, please ensure it is mergeable (no merge conflict) and open (not closed).

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


[bug?] No dependencies found

Madge seems to think my ES6 modules have zero dependencies:
infamous+infamous git:master ❯ madge --summary src
motor-html/node-style: 0
Calendar: 0
DoubleSidedPlane: 0
Grid: 0
Molecule: 0
Plane: 0
PushMenuLayout: 0
index: 0
jss/index: 0
motor-html/base: 0
motor-html/index: 0
motor-html/node: 0
Cube: 0
motor-html/push-pane-layout: 0
motor-html/scene: 0
motor-html/scene-style: 0
motor-html/web-component: 0
motor/Curves: 0
motor/Motor: 0
motor/Node: 0
motor/PushPaneLayout: 0
motor/Scene: 0
motor/Utility: 0
motor/index: 0
utils: 0

Thanks for reporting @trusktr! Which version of madge are you on?
Can you post a sample of one of the files that should have dependencies?

You must specify format with 'madge --format es6'
onsdag 6 juli 2016 skrev Joseph Orbegoso Pea<EMAIL_ADDRESS>
Madge seems to think my ES6 modules have zero dependencies:
infamous+infamous git:master ❯ madge --summary src
motor-html/node-style: 0
Calendar: 0
DoubleSidedPlane: 0
Grid: 0
Molecule: 0
Plane: 0
PushMenuLayout: 0
index: 0
jss/index: 0
motor-html/base: 0
motor-html/index: 0
motor-html/node: 0
Cube: 0
motor-html/push-pane-layout: 0
motor-html/scene: 0
motor-html/scene-style: 0
motor-html/web-component: 0
motor/Curves: 0
motor/Motor: 0
motor/Node: 0
motor/PushPaneLayout: 0
motor/Scene: 0
motor/Utility: 0
motor/index: 0
utils: 0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pahen/madge/issues/93, or mute the thread
https://github.com/notifications/unsubscribe/AAVmYLRxX_-75zcb3f6eG-0kQAt0F6rzks5qSv_ugaJpZM4JFqvR
.

--
/Patrik

Ah, thanks, sorry. I subconsciously assumed it would auto-detect.

Nice :) Autodetection will hopefully get into v1.0.0 released soon.


Ajax + AltEditor not working as it should

Hello,
First thanks for the Alteditor!
I´m havin some issues passing with AJAX Data, maybe you have an idea:
My Datatable:
  $('#WorkoutTable').DataTable({
        "sPaginationType": "full_numbers",
        "processing": true,
        "serverSide": true,
         ajax: {
            url: 'api/training/get',
            dataSrc: ''
        },
        columns: [
                    {
                    data: "id",
                    title: "Id",
                    type: "readonly"
                },
                    {
                        "data": "name",
                    "title": "Name"
                    },
                    {
                        "data": "dtm",
                        "title": "Datum"
                    },
                ],
        dom: 'Bfrtip',        // Needs button container
        select: 'single',
        responsive: true,
        altEditor: true,     // Enable altEditor
        buttons: [{
        text: 'add',
        name: 'add'        // do not change name
        },
        {
        extend: 'selected', // Bind to Selected row
        text: 'edit',
        name: 'edit'        // do not change name
        },
        {
        extend: 'selected', // Bind to Selected row
        text: 'delete',
        name: 'delete'      // do not change name
        }],
        onEditRow: function(datatable, rowdata, success, error) {
            $.ajax({
                url: "api/training/update",
                type: 'POST',
                data: JSON.stringify(rowdata),
                success: success,
                error: error
            });
        }

      } );

Getting the Data displayed is not an issue, that works fine.  Is there a way I can get the "id" of the row, without showing it in the Datatable? If I take it out of the columns, I can´t send it to modify my entriess.
Getting the Data from AJAX Call makes my Table look a bit weird:

This 6 Rows is the whole content of the AJAX call but its displaying 0 out of 0 and like unlimited pages.
EDIT:
I had the wrong JS-library imported, editing works now. Data is still showing weird.
I dont get how the Succes / Error works. I have "message" in my json output can I print it on "Edit Record"- Modal ?
Why am I getting this Warning??
"DataTables warning: table id=WorkoutTable - Requested unknown parameter 'id' for row 2, column 0. For more information about this error, please see http://datatables.net/tn/4"
I Hope you can help me fixxing this. :)

"Showing 0 of 0 entries (...)" is given (IMHO) by the server-side processing. The Datatable needs to know the total number of rows. I have never used server-side processing so far, so I can't help you. If you really have 6 rows only, you should better disable it.
The warning "DataTables warning: table id=WorkoutTable - Requested unknown parameter 'id" is very common. It is saying that the Datatable cannot find the column "id" in the received data. Usually it means that data is in a wrong format. When a row is added/edited, the webservice should return the line just updated, so that the Datatable can redraw it.
For error messages you can look this: https://github.com/KasperOlesen/DataTable-AltEditor/issues/79

Thanks for the answer, got it working.
Still have 1 Issue left. How can I get the ID without actually showing it in the table? it is not in "rowdata" when I delete the Column wird ID.

Ok, I see that you found by yourself the solution to your questions.
I don't know what you mean with

modify the Modal opening

When the modal dialog is opened an event is triggered (alteditor:some_dialog_opened, alteditor:add_dialog_opened and similar ones), you may use them.

Ok, I see that you found by yourself the solution to your questions.
I don't know what you mean with

modify the Modal opening

When the modal dialog is opened an event is triggered (alteditor:some_dialog_opened, alteditor:add_dialog_opened and similar ones), you may use them.

can share any sample please for triggers?
can't understand how use


Adjust config API url

The api URL in the config (at least in the example) ends in /v1. This will need to be changed to go into the giving realm specifically where the api URL becomes /giving/v1 - so current configuration is limiting. Will send a PR if I find a good solution.

Maybe each realm could have a prefix - people would just be '/v1' (appended to the API url) - but giving would be '/giving/v1', groups '/groups/v1', and so on.

Ah. I guess this is from the (relatively) new giving and groups realm updates...
I'm thinking the apiURL config item should probably be changed to be just the bare scheme and FQDN (so, https://mychurch.staging.fellowshipone.com). Then - as you say - each resource type would get a prefix starting with /v1 (or something else as appropriate)...
This would be a breaking change, but there's really only one other project (that I know of!) that uses this library (https://github.com/hairyhenderson/f1foo), so it's easy to update.

@hairyhenderson I adjusted it in my project - removed /v1 from the API url, then just added it to the indivdual routes. I've successfully added contribution receipts as a module. Expect a fork and PR soon for you to review.

Ok. :+1: a PR would be great :)

@ingageco - were you going to submit a PR for this? Or should I?


Bug: Synaptic static does not apply attack roll penalty

Monsters that fail Synaptic Static saving throw should have a 1d6 penalty to attack rolls until (if) they pass the saving throw.

Synaptic Static is not part of the SRD. Did you mean to report to https://github.com/foundryvtt/foundryvtt-premium-content ?

Synaptic Static also does have an effect in the PHB, so it seems like it should work like stated.


It didn't parse XML response on response.

@anson338  can you provide an example?

test.zip
Sure.

@karthiks3000 any updates? ;D

@anson338 this should be resolved in the latest release
https://github.com/karthiks3000/postman-doc-gen/releases/tag/1.1.1


Changed tracking usage of filter in spo site list solving #130

Changed tracking usage of filter in spo site list solving #130

Coverage remained the same at 100.0% when pulling 3e11b549f2636e118f160af268dc0785efce8fe1 on waldekmastykarz:fix130 into 7cc3fd461b175caa96acddbb63efa399fdd8affb on SharePoint:dev.

Merged manually


"not equal sign" didn't render properly

When I tried to write \ne in latex format or != in asciimath format, the strike in the equal sign was misaligned. This happen even on the demo page on https://obedm503.github.io/showdown-katex/#sandbox

I've confirmed this is an issue. I tried quickly figuring out what may be causing it, but have not been able to. It seems to be related to KaTeX/KaTeX#1842. Any help is appreciated.
Until this issue is fixed, you can use \cancel{=} instead (even in asciimath blocks).
What browser and OS are you using?

It's interesting that if we use renderMathInElement from katex directly, this error doesn't seem to occur.

@lriuui0x0 can you provide some more details? you mentioned using renderMathInElement directly, but this package already uses renderMathInElement
I've been looking into this issue without much success. how did you get renderMathInElement to work?

@obedm503 Yep I had code like below to render maths. code.math is what's get assigned when you do ```math with showdown.
                            Array.from(text_root.querySelectorAll('code.math')).forEach(code => {
                                let p = document.createElement('p');
                                katex_html = katex.renderToString(code.innerText, {
                                    displayMode: true,
                                    throwOnError: false,
                                });
                                p.innerHTML = katex_html;
                                code.replaceWith(p);
                            });
                            renderMathInElement(text_root, {
                                throwOnError: false,
                                delimiters: [
                                    {left: "$", right: "$", display: false},
                                ]
                            });

what version of katex are you using?

@obedm503 Latest. <script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"></script>


Nrf54l15 add missing configs

Add two new configuration options for nRF54L15 that were omitted when adding nRF54L15.

CC @SebastianBoe Please, check if this is what you need


Files deleted while I am using them

In the past 2 days SyncTrazor erased from existence 2 files I was working on and there was no way to save them as the app expected them to be somewhere, while they weren't anymore. Tried an aggressive tool like DiskDrill to recover them, but they were completely wiped. The app I was using is WhereIsIt for Windows, it scans folders/disks and archives the contents in a database. When I tried to save and close the file I was using, it gave an error, so since I barely modified it, I decided to close&reopen the app only to find out the file was no more. SyncTrayzor showed it as an error like "the file has changed hash" and decided to kill it on all synced devices. I manually rebuilt the lost file scanning data for hours, so nothing's lost, but this makes SyncTrayzor unreliable, I cannot trust it. It's like working with a time bomb under the chair. I made a manual copy of all the files, tried again to use WhereIsIt normally and again, after a random number of usages SyncTrayzor erased the file I was working on, but this time I had a manual copy outside synced folders. For context, I have SyncThing on a OMV server in a Docker container and SyncTrayzor on Windows to backup stuff on the server.

Sounds like a Syncthing question/problem. Synctrayzor just the wrapper which turns it into a nice-looking Windows application: it doesn't create/delete any files. Please use the forum: https://forum.syncthing.net. Thanks!


Write a Scala program to print string of ascii values

Description
Write a Scala program to print string of ascii values
ASCII value is the numeric representation of a character. For example, the ASCII value of the character 'A' is 65. The ASCII value of the character 'a' is 97. The ASCII value of the character '0' is 48. The ASCII value of the character ' ' is 32.
Input  : 65 66 67
Output : ABC

How to contribute

Save the solution in printStringOfAsciiValues.scala file
Add printStringOfAsciiValues.scala file in print-string-of-ascii-values folder

!assign

Hey @Chirag8023,
This issue has been assigned to you for more than 15 days.
We are unassigning you from this issue.
If you are still interested in contributing to this issue, please get auto-assigned on the issue by commenting !assign again.
Thanks for your contributions :)


p2p switch for secio

Enabled by default (when basic messages work with Rust), disabled for debugging purposes

Closing. Rust client only allows secio.


URLs invalid

These URLs are not active
RUN opkg-cl install https://downloads.openwrt.org/snapshots/trunk/x86/64/packages/base/libgcc_4.8-linaro-1_x86_64.ipk
RUN opkg-cl install https://downloads.openwrt.org/snapshots/trunk/x86/64/packages/base/libc_<IP_ADDRESS>-1_x86_64.ipk

What are the proper packages?


MIT license?

Hi!
Would you be willing to relicense under MIT?
I ask because:

Most of the rust ecosystem uses an MIT license.
MIT provides a few additional freedoms to the end user that GPL does not (source publishing, etc)
I'd like to use mouse-rs in a public library of my own, and I'd like to release it under an MIT license,
but would not be able to as mouse-rs is GPL.

If not, that's fine, I thought I would ask.
Thank you!

Hi, when I created this project I just slapped on gpl and didn't think of the implications that it brings by being a library. I'm open to switching to MIT, but I will need permission from every contributor.
@s1gtrap @mxve @billyb2 @DTibbs

I've seen it done once before like:

To agree to relicensing, comment with:

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

I'd like to avoid dual licensing, especially for such a small  project. I hope you understand :)

I totally understand and give my full permission

You have my permission to change the license to MIT

I'm good with whatever, but why not dual @AltF02? I always go Apache+MIT regardless of size

Mainly because it would require GPL+MIT? Which afaik defeats the purpose of switching to MIT? I'm not too familiar with licenses honestly, I'm not a lawyer

Yes, not in favor of GPL + MIT.
I think the options being referenced are MIT or MIT + Apache 2.0, the latter dual license scheme being most popular in the rust ecosystem as far as I'm aware.

I do not know what specific advantages come from dual licensing under MIT + Apache 2.0, but my understanding is that it provides flexibility as end users (and transitive end users, etc) can choose between the two as they like.
I believe the process is identically simple: collect written consent from contributors, and set license = "MIT OR Apache-2.0" in Cargo.toml

Oh no for sure, I was definitely also thinking "MIT OR Apache-2.0" as @wbrickner had suggested.
It's my understanding that Apache 2 is a precaution to avoid patent suits stemming from bad faith contributions, but INAL either so I'd take that with a ton of salt 😂

Yeah, I'm open to doing that, sorry I thought you meant dual licensing to the current GPL+MIT in the case not everyone responds

Thank you! Seems like we've got everyone now, I will make a PR soon

I created a pr with a dual license, I'm assuming everyone is okay with that?


Fixes 704 - Queue updates

Updating queue update route so that cachegroup names get passed in correctly.
Removing unused code traffic_ops/app/lib/UI/Update.pm

I will merge this but I am going to revert the perl-tidy commit because it doesn't belong in the release branch.


Propagation of traces from Rucio

Needs lot of testing.

Will reopen after release

Closing again for another master merge..

To be reopened..

Here's finally a test job: https://bigpanda.cern.ch/job?pandaid=4454631257&timestamp=11:52:39 . Please check it and if it looks ok, I will update the pilot version running RC test jobs so you get more statistics. Let me know.

Probably we won't have time to test this until Tomas is back so I'm closing it for now (as it keeps blocking other PRs..).


Help with Spring and slow start-up times in neovim

This may not be related to this plugin specifically, but I thought I would start here.  Rails 6, Rspec, Spring with binstubs.
When I start a new vim session and run :TestFile command there is about a five second wait before I get to the "Running via Spring preloader" bit.  Then the test executes.  Subsequent test runs continue to have this five second delay before I even see Spring.  Feels painfully slow! I am using the neovim strategy for :TestFile.
However, if I open a Terminal inside neovim and then run the same command directly, the first time the command is run I see the five second delay, but subsequent runs of the test see almost no delay before Spring has booted.  This is what I would expect.
Interestingly, after I have executed the command inside the Terminal window if I then return and run TestFile the delay has been eliminated.  As long as I do not terminate the Terminal session all my vim-test runs are very quick!  As soon as the terminal gets closed though I am back to the five second delay.
I am guessing that somehow leaving a terminal window open keeps the Spring process running.
Just looking for advice and best practices in this regard so I don't have to add opening a new terminal window to my workflow every time.  I know many would advise to not use Spring!  Smile.  Any other thoughts?
Thanks

I have exactly the same problem.

I've had this issue, and sometimes it seems that my bin/rails binstub can get overwritten by bundler or something else. You might need to ensure that it is loading spring:
#!/usr/bin/env ruby
begin
  load File.expand_path('../spring', __FILE__)
rescue LoadError => e
  raise unless e.message.include?('spring')
end
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'


Sometimes the extension stops responding and have to be restarted

I have no idea what's causing this, but sometimes the extension just stops working on Firefox. To bring it back I have to disable and enable it again – in its own options, not in the addons manager.
Is there something that I can do to help you debug this?

Having the same issue here.

This one is serious. I'll try to get a fix out ASAP. I suspect that either

something is corrupting the cached client options stored in the background page or
something is interfering with messaging options to content scripts

The key-value map of options you specify on the options page aren't sent directly to every content script. Instead, they're transformed, and this transformation is cached in the background page. Content scripts then message the background page to request the cached options.
Saka Key has detailed logging if you compile it in debug mode using 'npm run build:firefox'. Logging will tell you what mode each content script is in, when a script is initialized, when it receives options, when it changes modes and what event triggered the change, and when it sends or receives a message.
The architecture is a simple state machine with exactly one mode active at any time, but a page is composed of multiple frames, each of which has an independent state machine.
I'll use Firefox as my daily driver for the next week or so to help iron out issues like this.

I've included a screenshot that shows how to interpret the debug logs. When you encounter this bug, check the debug logs for the current mode and the last valid clientOptions that were received. It may be a little confusing since pages may have multiple frames doing their own independent logging.

Following the install instructions, I've encountered an error executing npm run build:firefox. As it referenced @material, I tried to upgrade the package materials-component-web and voilà! After that I could successfully build the project.
Using this temporary addon I haven't stumble on the described issue, so it seems that the extension generated by this build process is more stable than the other one from the Firefox Addons Developement Channel.

The @material error is strange considering the builds at https://travis-ci.org/lusakasa/saka-key pass no problem. I'llgo ahead and upgrade that package just in case.
It's strange that it only affects the dev  channel build. I haven't change anything since that release that I think would impact this issue. Maybe I'm hiding some important logic behind an 'if (SAKA_DEBUG)', which is only true in non-production builds.
I'm going to change how the client is loaded in Firefox such that the full client is always loaded into every frame. I suspect this will fix #26, reduce time to first input on heavy pages, and possibly even resolve this issue.

Question: when the extension stops is it a particular tab that stops or every tab?

For me it stops working on every tab.

When it stops working, it stops on every tab. But I've seen it not working on specific pages too, like #26.
I can't confirm that this bug only happens with the dev channel build, but I haven't see it for last two days while using the temporary addon I've built. I'll switch to the dev channel build again to see what happens.

Version 1.21.2 should hopefully resolve this issue. it's on the firefox dev channel now, and should be on the chrome webstore within a few days (it's been automatically rejected for the second time for not being single purpose).
I think #24, #27, and #29 are all related to the fact that I broke the logic for how keybindings are generated when I rewrote the options page for release 1.16.
See commit 37add1114565d41432f2169b603db03156afad83 for the details. The fix was pretty simple.
If your current version is already broken, reset your options using the "Reset All Options button" on the options page. If the problem persists after this reset, please add a comment to #24.

Thanks, @eejdoowad. It really seems that the last release fixes this issue, so I'm going to close it.


Add limit on subjects uploaded from a user

Adds a configuration file user_limits.yml with the form:
rails_env:
  subjects: 1000

Leaving it empty for an environment will cause it to not limit the
number of subjects.
Closes #774

looks good to merge.

Subjects are limited to 1000 per set or per project or per owner?

Per uploader.


⚠ Bofrost.lu has degraded performance

In d86aa7c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2258 ms

Resolved: Bofrost.lu performance has improved in fcd4f6c after 12 minutes.


Add beginning of software forest chapter

Description
This PR adds the beginning of the software forest chapter as part of addressing #24 . It is based upon the work found in #33 to help with linting needs discovered within the the changes of that PR.
References #24
What is the nature of your change?

[x] Content additions or updates (adds or updates content)
[ ] Bug fix (fixes an issue).
[ ] Enhancement (adds functionality).
[ ] Breaking change (these changes would cause existing functionality to not work as expected).

Checklist
Please ensure that all boxes are checked before indicating that this pull request is ready for review.

[x] I have read the CONTRIBUTING.md guidelines.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own contributions.
[ ] I have commented my content, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to related documentation (outside of book content).
[x] My changes generate no new warnings.
[x] New and existing tests pass locally with my changes.
[ ] I have added tests that prove my additions are effective or that my feature works.
[x] I have deleted all non-relevant text in this pull request template.

Thanks @gwaybio ! I've addressed your comments and will now merge. I'm planning to revisit this content later as other material develops through #36 .


hass.helpers.intent. This is deprecated and will stop working in Home Assistant 2024.11

Detected that custom integration 'yandex_station' accesses hass.helpers.intent. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from intent directly at custom_components/yandex_station/intent.py, line 24: hass.helpers.intent.async_register(handler), please create a bug report at https://github.com/AlexxIT/YandexStation/issues

#502


NVidia required?

Hi,
I'm trying to install this default branch (old) on my win PC, after having installed lot of stuff (rust, c++, clang...) I finally stuck on this error when trying to play the remote stream on chrome :
[2024-01-09T14:35:39Z ERROR server_windows::nvidia::builder] The shared library for `nvEncodeAPI64` is not signed and may have been tampered.

I'm having a radeon, not a nvidia, is it a problem?

Yes, I only have code for nvenc. Sorry.


FIX check oc 'cluster' status and sign in into correct cluster

@lulf this fix have to work, manually verified on my server


Stream turns black after a while on macOS

Hello everyone, I have a big problem when configuring my Reolink cams using my 2012 Mac mini with Catalina. The video is looking perfect but after a couple of seconds (literally) the image turns black. The camera become unresponsive and sometimes I fix simply re-opening the cam in Home app, sometimes I even have to restart Homebridge. I tried everything I could think about: changing the video processor, codec, stream source... always the same.

This is my config:
"name": "Reolink",
                    "videoConfig": {
                        "source": "-re -i rtsp://yyy:xxx@<IP_ADDRESS>:554/h264Preview_01_main",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 30,
                        "maxBitrate": 300,
                        "vcodec": "h264",
                        "debug": true
                    }

Environment:

Node.js Version: v14.2.0
NPM Version: v6.14.4
Homebridge Version: v1.1.0
Homebridge Camera FFmpeg Version: v1.1.1
Homebridge Config UI X Plugin Version: v4.19.0
Operating System: macOS Catalina 10.15.3

I have the same problem with generic cameras.
The video shows up for about 4-5sec then goes blank
Timezone	GMT-0400
OS	macOS High Sierra
Hostname	macmini.local
IPv4 (en0)	xxxxxxxxxxxx
IPv6 (en0)	xxxxxxxxxxxx
Node.js Version	v12.16.1

I'm having a similar, maybe? related issue in Catalina 10.15.4. and now 10.15.5.
I have two older D-link cameras, 930 and 932L.
Live video worked fine in Home app on Mojave 10.14, and in iOS 12 and 13. But in Catalina, the thumbnail is there from the last time the camera was accessed in Mojave, but when clicked to show live video, the spinner appears for a bit and then it fails.
In the Homebridge log I can see "Start Streaming" but then after 30 seconds, "Stop Streaming" I can immediately before or after do the same thing on an iPhone on the same network running iOS13 and live video works fine and starts after a few seconds. Puzzling.

I'm having the same problem as @jcr- in that it just doesn't stream at all on Catalina but works fine on IOS

I'm having a similar, maybe? related issue in Catalina 10.15.4. and now 10.15.5.
I have two older D-link cameras, 930 and 932L.
Live video worked fine in Home app on Mojave 10.14, and in iOS 12 and 13. But in Catalina, the thumbnail is there from the last time the camera was accessed in Mojave, but when clicked to show live video, the spinner appears for a bit and then it fails.
In the Homebridge log I can see "Start Streaming" but then after 30 seconds, "Stop Streaming" I can immediately before or after do the same thing on an iPhone on the same network running iOS13 and live video works fine and starts after a few seconds. Puzzling.

No, in my case the stream starts fine but it stops after a while. Moreover, if I try to open the camera from another HomeKit device everything brokes completely and I have to restart Homebridge.

I should add that I found an error with the snapshot URLs, and once I fixed those, both Catalina and iOS 13 show correctly updated snapshots every 10 seconds. But no streaming still in Catalina.


Run benchmark with Apache BookKeeper mock

First, use something local (e.g. a collection) instead of Apache BookKeeper. Then run benchmarks for the fault-tolerant server. If you realize that there will be small changes after running the first benchmark then you should stop the testing process

https://docs.google.com/spreadsheets/d/1mBgpx9dgzW-FXvFtkexAMDa504QMPhMVi_qL0lqkPTI/edit#gid=0


remove broken default serving cert

Based on bug https://bugzilla.redhat.com/show_bug.cgi?id=1720770 , this setting never worked.
This setting is inherently dangerous because we rely on the default serving cert to have critical IPs included in valid names to allow the service network to continue to function.  Customers should instead use the SNI capabilities we have to provide their certificates.
This pull removes our attempt to honor the setting and we will ripple through the API and the docs (https://github.com/openshift/openshift-docs/pull/15642)
/assign @sttts
@derekwaynecarr we had an accident.

/cherrypick release-4.1

/lgtm


Subfolders in /resources don't seem to be referenced correctly in resulting xcode project

Here's my folder structure...

And the resulting xcode project has the files in red.
Moving the files out of the subfolder makes the xcode file reference turn black and the file is accessible. It seems like xcode isn't getting the correct path for the resource file:
<key>9CBABA3531C7B6D591F332AE</key>
<dict>
  <key>includeInIndex</key>
  <string>1</string>
  <key>isa</key>
  <string>PBXFileReference</string>
  <key>lastKnownFileType</key>
  <string>file.xib</string>
  <key>path</key>
  <string>ActivityFavouriteTableViewCell.xib</string>
  <key>sourceTree</key>
  <string><group></string>
</dict>

Should be:
<key>9CBABA3531C7B6D591F332AE</key>
<dict>
  <key>includeInIndex</key>
  <string>1</string>
  <key>isa</key>
  <string>PBXFileReference</string>
  <key>lastKnownFileType</key>
  <string>file.xib</string>
  <key>name</key>
  <string>ActivityFavouriteTableViewCell.xib</string>
  <key>path</key>
  <string>assets/ActivityFavouriteTableViewCell.xib</string>
  <key>sourceTree</key>
  <string><group></string>
</dict>

My guess, just taking a quick look: https://github.com/rubymotion/ib/blob/master/lib/ib/project.rb#L106
group.new_reference(File.basename(file))  # <= maybe this should just remove the "resources/" prefix

I've got a fix. Looking to see how to test it... :)

Nice :-)

On Jan 20, 2015, at 11:14 AM, Mark Rickert<EMAIL_ADDRESS>wrote:
I've got a fix. Looking to see how to test it... :)
—
Reply to this email directly or view it on GitHub https://github.com/rubymotion/ib/issues/78#issuecomment-70703110.

It doesn't seem as though the project tests the actual xcode project folder structure output. I'll submit the PR and you can check it out and merge if you don't think specs are needed.


Make address format compatible with other fs.

fix #4

@karajan1001 Looks like we are getting timeout errors:
2021-06-15T08:09:39.6091343Z     def readinto(self, b):
2021-06-15T08:09:39.6092191Z         """Read up to len(b) bytes into the writable buffer *b* and return
2021-06-15T08:09:39.6093191Z         the number of bytes read.  If the socket is non-blocking and no bytes
2021-06-15T08:09:39.6094036Z         are available, None is returned.
2021-06-15T08:09:39.6094669Z
2021-06-15T08:09:39.6095355Z         If *b* is non-empty, a 0 return value indicates that the connection
2021-06-15T08:09:39.6096246Z         was shutdown at the other end.
2021-06-15T08:09:39.6096729Z         """
2021-06-15T08:09:39.6097249Z         self._checkClosed()
2021-06-15T08:09:39.6097933Z         self._checkReadable()
2021-06-15T08:09:39.6098569Z         if self._timeout_occurred:
2021-06-15T08:09:39.6099278Z             raise OSError("cannot read from timed out object")
2021-06-15T08:09:39.6099910Z         while True:
2021-06-15T08:09:39.6100383Z             try:
2021-06-15T08:09:39.6100929Z >               return self._sock.recv_into(b)
2021-06-15T08:09:39.6101543Z E               socket.timeout: timed out

is there a way to increase the timeouts for ossfs? How does s3fs and others deal with that?


ISPN-3826 Interceptor binding types for JCache

Added binding types for interceptors (needed to be CDI spec compliant).
https://issues.jboss.org/browse/ISPN-3826

It seems this has broken quite a few of the CDI tests as they have failed every run so far.
http://ci.infinispan.org/viewLog.html?buildId=23440&buildTypeId=bt9&guest=1

@wburns Thanks for spotting that, I'll introduce changes shortly.

Unfortunately this won't work this way, closing.


HTTP Server mTLS Crash

Describe the bug
(*) Traceback (most recent call last):
(*) File "/opt/miniconda/lib/python3.9/runpy.py", line 197, in _run_module_as_main
(*) return _run_code(code, main_globals, None,
(*) File "/opt/miniconda/lib/python3.9/runpy.py", line 87, in _run_code
(*) exec(code, run_globals)
(*) File "/opt/miniconda/lib/python3.9/site-packages/caikit/runtime/__main__.py", line 92, in <module>
(*) main()
(*) File "/opt/miniconda/lib/python3.9/site-packages/caikit/runtime/__main__.py", line 88, in main
(*) _http_server.start(blocking=True)  # make http always blocking
(*) File "/opt/miniconda/lib/python3.9/site-packages/caikit/runtime/http_server/http_server.py", line 199, in start
(*) self.server.run()
(*) File "/opt/miniconda/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run
(*) return asyncio.run(self.serve(sockets=sockets))
(*) File "/opt/miniconda/lib/python3.9/asyncio/runners.py", line 44, in run
(*) return loop.run_until_complete(main)
(*) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
(*) File "/opt/miniconda/lib/python3.9/site-packages/uvicorn/server.py", line 68, in serve
(*) config.load()
(*) File "/opt/miniconda/lib/python3.9/site-packages/uvicorn/config.py", line 430, in load
(*) self.ssl: Optional[ssl.SSLContext] = create_ssl_context(
(*) File "/opt/miniconda/lib/python3.9/site-packages/uvicorn/config.py", line 124, in create_ssl_context
(*) ctx.load_verify_locations(ca_certs)
(*) OSError: [Errno 36] File name too long

This is almost certainly an issue with when the client CA cert is passed by value rather than via a path to a string. Passing the tls CA by string is valid for the grpc server, so we should support this for HTTP as well.


When respawned, clear all Memory

Describe what you want the bot to do
When detected that an respawn has been done, reset all memory.

Global is reset at respawn so this can be used as an check if it should be check if user respawned.

https://github.com/The-International-Screeps-Bot/The-International-Open-Source/commit/062c5c7a586408556e115868dcec8d30f0ae336c
This should do it

https://github.com/The-International-Screeps-Bot/The-International-Open-Source/pull/218


Use CMake built-in variable BUILD_SHARED_LIBS instead of custom TINYOBJLOADER_COMPILATION_SHARED

CMake actually has an built-in variable BUILD_SHARED_LIBS for a long time, so we should use it instead of defining a custom variable TINYOBJLOADER_COMPILATION_SHARED.
The custom variable is causing inconvenience for CI scripts that's testing shared/static builds based on BUILD_SHARED_LIBS.

Thanks! merged!


regex: grouping missing from the curriculum

We teach something obscure as lookahead, but not the more often used grouping for the sake of subexpression choice, eg. a(bc|def)g.
Grouping is indirectly taught for capture groups and lookahead, but plays the same general role in both, capturing or not. So this lesson would fit nicely before that, after character groups.

@lynxlynxlynx ,
there is a lesson  at the beginning teaching OR. Maybe we should consider revising the challenge's description to include a reference for it?

It's better to have it separate, so the lessons are sharper, but I'll update the title.

@lynxlynxlynx ,
so what would you like to be done? I'm up for revising it.

Oh, if I wasn't clear: I believe an extra lesson is in order, right after the OR one. Maybe something like "find all the words that have 'foo' or 'bar' in them", just long enough to avoid character-list hacks.

@lynxlynxlynx If you haven't taken this, maybe I can create a new lesson?

Knock yourself out. :)


[core] Is it possible to open Android's keyboard?

I have created a TextField component and I was wondering if I could use it in Android. I've found in the documentation that there is some kind of keyboard events handling, but I can't see anything related to opening it for input.

@xzebra It's possible but I haven't tested it... I found ANativeActivity_showSoftInput() function in the Android NDK documentation.

Another link that can be useful: https://github.com/googlesamples/android-ndk/pull/137, but it uses the JNI interface.

As long as this is not a raylib issue (maybe a future enhacement) and question has been answered, I'm closing the issue.


building the epub

I got many error like
writing output... [100%] venv/lib/python3.7/site-packages/sphinx/ext/autosummary/templates/autosummary/module
/Users/ar/work/logic_and_proof/classical_reasoning.rst:237: WARNING: Could not lex literal_block as "lean". Highlighting skipped.
/Users/ar/work/logic_and_proof/classical_reasoning.rst:378: WARNING: Could not lex literal_block as "lean". Highlighting skipped.
...

Many inline math blocks are not formatted properly... any idea?

I don't know. I just pulled the repository and built it in Ubuntu 18.04 without any problems. Did you follow the instructions in the README file to install the dependencies?

I am also running into issues while trying to build the epub version. On top of the not closed HTML tags, I had to change the conf.py to use 'sphinx.ext.imgmath':
extensions = ['sphinx.ext.imgmath', 'sphinx.ext.githubpages', 'lean_sphinx']

I am not how to adapt the conf.py without breaking make html though.


Fix moderator data misalignment.

Issue
Closes #7121 Missing mod block option (large number of moderated channels?)
Notes
It was bad to assume channelSignatures would be the same length as the promise result -- any failure in signing would cause a misalignment.
For my case, an accidentally-merged channel couldn't be signed due to a missing private key. I think it's the same for Drew.

This still does not surface any channel-signing issues. Do we want to do that, or is that rare enough to ignore?

Rare enough, they'll find out other ways.


Refactor from r10k to code manager

This takes virtual fundamentals to code manager as well as puppetize.
It does touch in a small way pretty much every course we have though. It
should be ready to merge, BUT we need some heavy review and testing.
Depends on:

https://github.com/puppetlabs/puppetfactory/pull/154
https://github.com/puppetlabs/puppetfactory/pull/155
https://github.com/puppetlabs/pltraining-bootstrap/pull/150
Unwritten courseware changes to adapt.

COURSES-2217 #time 6d

@binford2k I'm looking at #181 in relation to this PR

@binford2k I would go ahead and merge this as-is, and I can continue work based on these changes. The problem I'm having is coming up with a non-OS-dependent fact to construct a hierarchy in hiera.yaml. Our best practices state that those types of facts should be handled in params.pp, so the lab needs to use something else.
All I had started doing was removing references to osfamily from the hiera.yaml templates: https://github.com/puppetlabs/pltraining-classroom/pull/181/files


Cannot see DevOps projects

After I select "Connect Provider", then "Dev Ops", then enter my credentials, it refreshes the list and doesn't display anything most of the time. Sometimes it will display the Dev Ops organization but there are no projects listed. It says above that this could be a permission issue, but I'm able to access the projects from VS (Windows) as well as online at dev.azure.com using the same credentials. Is there a specific permission needed to see the projects from VS Mac? Are there any other steps I can take to troubleshoot this?

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

ID: 87e2c464-3537-278a-da5a-5301af0fb6d5
Version Independent ID: 29cb95b8-5cc2-e816-2d2e-ea6945ae7a5d
Content: Team Foundation Version Control (TFVC) - Visual Studio for Mac
Content Source: mac/tf-version-control.md
Product: visual-studio-mac
GitHub Login: @conceptdev
Microsoft Alias: crdun

I have the same problem, I cannot find any of my projects on Mac.

Hey, @RMarietta and @MartinHelvig! Are your repos, within your Azure DevOps organization, using Git for version control or TFVC?

@jmatthiesen - we started using TFVC but because we couldn't access the projects we switched to Git.

@jmatthiesen can you address this?

Thanks for the comment! To access your Git repos in Azure DevOps, you can use the Version Control > Checkout… menu and point it at the URL for your hosted Git repo. We made some changes in the past few versions to improve Azure DevOps support here, so if you tried it in the past and it didn’t work, it may be improved now.


Idiomatic Rust and misc. updates

There are a few things that I would like to change about the source code of this project to make it follow some of Rust's idioms.

Split the functional code into a Library Crate so it could be used by others

After this change consider uploading to crates.io

Error handling appropriate for a library using std::log -> https://docs.rs/log/latest/log/

Also critical errors should not panic, instead they should pass that error back
An error type for the library could be made to make this easier with thiserror https://docs.rs/thiserror/latest/thiserror/

Some unit testing

Incorporate testing into pipeline

Saw the YouTube video and I'd love to contribute, I'll submit a PR with a few changes.
Thanks!

Copying over from your PR #3 to track
Things still left to do if anyone is feeling up to it:

[ ] Add benchmarks
[ ] Benchmark across some different optimization settings
[ ] Write docs for the code -> https://doc.rust-lang.org/rust-by-example/meta/doc.html
[ ] Examples/doctests for those looking at is as a library
[ ] Decide the easiest way to execute this code

Currently I left it as
use nmuidi::prelude::*;
...
Cleaner::new("/test/path").clean()
...
It could be simpler if we change some things around but that could close the door on other functionality 🤷

Just published it as a crate
https://crates.io/crates/nmuidi


Cannot retrieve pixel format info from device [Error While Encoding v4l2 command via ioctl]

Error
device.GetPixFormat() always fails with error  device: pix format failed: unsupported error
if we do a system call trace i get following
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x56, 0x4, 0xcc), 0xc000076ca8) = -1 ENOTTY (Inappropriate ioctl for device)
write(1, "failed to get pix format\n", 25failed to get pix format

It looks like encoded command is not VIDIOC_G_FMT and is not recognized by kernel.
package main

import (
	"fmt"

	"github.com/vladimirvivien/go4vl/v4l2"
)

func main() {
	device, err := v4l2.Open("/dev/video0")
	if err != nil {
		panic(err)
	}

	_, err = device.GetPixFormat()
	if err != nil {
		fmt.Println("failed to get pix format")
		panic(err)
	}
}

My kernel is
Linux endless 5.14.14-arch1-1 #1 SMP PREEMPT Wed, 20 Oct 2021 21:35:18 +0000 x86_64 GNU/Linux

Cause
I don't think this problem is caused by kernel.
I can use <linux/videodev2.h> and it does not cause this error
With the C API I get
ioctl(3, VIDIOC_G_FMT, {type=V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt.pix={width=1280, height=720, pixelformat=v4l2_fourcc('M', 'J', 'P', 'G') /* V4L2_PIX_FMT_MJPEG */, field=V4L2_FIELD_NONE, bytesperline=0, sizeimage=1843200, colorspace=V4L2_COLORSPACE_SRGB}}) = 0

It looks like the problem is caused in ioctl encoding functions. I rechecked the ioct.go but could not find the problem

@EtienneBruines @tarunKoyalwar
Apologies for late reply, I have been on vacation and got busy at work.
This is an awesome thread and appreciate all the great information/comments you both have provided.
But, I must start my reply with the following disclaimers:

This is a highly early and alpha Go project with great aspiration, but it's not there yet.
All code have been tested solely on Linux running on a Raspberry pi 3 with latest Kernel release
I have been able to successfully create a webcam using the code, the Pi, and a webcam

So as you can see this is pretty early stuff. Having said all of that, I welcome your great feedback and will be investigating this issue this week. My lofty aspiration for this project is to provide a great idiomatic Go experience using the API without cgo. However, I havent used it in enough cases to know if that's a possibility.
I will spend time on this issue to see if it's something that can be quickly resolved or need to completely change direction of the project (using cgo).
Thanks.

@vladimirvivien @EtienneBruines  I believe following data would help.
package main

/*
#include <linux/videodev2.h>
#include <stdio.h>

struct v4l2_format fmt;

int mains(){
    printf("Size of v4l2_format(official) struct in c is %d\n",sizeof(fmt));
    return 0;
}
*/
import "C"
import (
	"fmt"
	"unsafe"
)

type v4l2Format struct {
	StreamType uint32
	fmt        [200]byte
}

func main() {
	// type C.v4l2_format
	var vformat v4l2Format
	C.mains()
	fmt.Printf("Size of v4l2_struct(official) in golang is %v\n", unsafe.Sizeof(C.fmt))
	fmt.Printf("Size of golang defined v4l2format struct in golang is %v\n", unsafe.Sizeof(vformat))
}

This program returns

It looks like the v4l2format defined here(https://github.com/vladimirvivien/go4vl/blob/aab6d9c4a2496f2e9bc90c2763e94eba389bde9d/v4l2/format.go#L289)
is short of 4 bytes . It looks like this missing 4 bytes are causing above discussed errors. It looks like a field (possibly  __u32 which is of size 4 bytes) is missing in golang implementation of v4l2_format

@tarunKoyalwar that snippet is really helpful! (Especially with debugging)
From the looks of it (earlier on), those 4 bytes seem to be in between the StreamType and the fmt [200]byte - possibly to help define which of the union types it is.

@tarunKoyalwar @EtienneBruines
I really appreciate the code snippet for cgo. This weekend I will spend time figuring out which way I want to take the project (and how, if any, cgo can be used).
As you have experienced, alignment is a class of bugs that keeps popping up and depends on the architecture/word size. For instance, because I test the code on a 32-bit RPi, I crafted the code to work on that platform. As you encountered, it's failing on others.  One idea running through my head is to use Go build tags to target particular platforms.
Overall, I really appreciate the feedback. I like that snippet above and will be valuable in testing along with dtrace.

There is no missing struct member.  The problem is go compiler sometimes treats alignment differently depending on arc targeted. I ran into that issue (cant remember where) in other part of the code and it's tricky.  I will reboot the project this weekend to investigate how this can be fixed once and for all.

is short of 4 bytes . It looks like this missing 4 bytes are causing above discussed errors. It looks like a field (possibly __u32 which is of size 4 bytes) is missing in golang implementation of v4l2_format

There is no missing struct member. The problem is go compiler sometimes treats alignment differently depending on arc targeted. I ran into that issue (cant remember where) in other part of the code and it's tricky. I will reboot the project this weekend to investigate how this can be fixed once and for all.

is short of 4 bytes . It looks like this missing 4 bytes are causing above discussed errors. It looks like a field (possibly __u32 which is of size 4 bytes) is missing in golang implementation of v4l2_format

I think it would be great if we can add some unit testing to important parts of project like (ioctl commands , structs etc) , this would help the project to avoid future errors and keep up the standards with v4l2 api. Also the unit testing should use cgo , something similar to above program . I intend to use this project for my upcoming projects , let me know if I can help speed up any process

@tarunKoyalwar Yeah, in the future, something to help unit test would be great.  In the initial part of the project I am trying to basically prove the concept is workable (which it is). Unit tests would require either

a mock kernel function to handle the ioctl calls (that simulates connected devices, etc)
run tests in linux container and test in it (using a mock virtual device if such things exists, i would image yes)
Combination of two (not sure)

Definitely something to look into and some ggreat ideas

@tarunKoyalwar @EtienneBruines
Hello, I spent last weekend playing around an example that uses cgo.  See examples/native_c_types. Please run on the device that was failing due to alignment to see if that problem still persists with cgo.

@vladimirvivien I played around with it a little bit, and it seems to have done wonders!
I was able to setFormat and then verify the settings using getFormat reliably now. :tada:

@EtienneBruines Thanks for validating. To be clear, did you test the code in example/native_c_types or the regular v4l2 API? (I ask because I had some old uncommitted code changes that finally got pushed. I wanna make sure to understand which changes made a difference for you).

I used the code at native_c_types, albeit with minor BufTypeVideoOutput because that's what I'm using v4l2 for.

Click to expand - Full code that I used
package main

/*
#include <linux/videodev2.h>
*/
import "C"
import (
	"bytes"
	"fmt"
	"github.com/vladimirvivien/go4vl/v4l2"
	"image"
	"image/color"
	"image/draw"
	"image/jpeg"
	"log"
	"os"
	"time"
	"unsafe"

	sys "golang.org/x/sys/unix"
)

type FrameWriter func(draw.Image) bool

const (
	devName     = "/dev/video10"
	jpegQuality = 80
	width       = 640
	height      = 480
	fps         = 4
)

func StartWebcam(writer FrameWriter) error {
	// open device
	devFile, err := os.OpenFile(devName, sys.O_RDWR|sys.O_NONBLOCK, 0666)
	if err != nil {
		return fmt.Errorf("unable to open video device: %q: %w", devName, err)
	}
	defer devFile.Close()
	fd := devFile.Fd()

	// Set the format
	targetFmt := PixelFmtMJPEG
	if err := setFormat(fd, PixFormat{
		Width:       width,
		Height:      height,
		PixelFormat: targetFmt,
		Field:       FieldNone,
	}); err != nil {
		log.Fatal("setFormat", err)
	}

	pixFmt, err := getFormat(fd)
	if err != nil {
		log.Fatal("getFormat", err)
	}
	log.Printf("Format set: %dx%d pixel format %d [FmtMJPG]", pixFmt.Width, pixFmt.Height, pixFmt.PixelFormat)

	if pixFmt.PixelFormat != targetFmt {
		log.Fatalf("Unable to update PixFormat - got %d instead of %d\n", pixFmt, targetFmt)
	}

	frame := image.NewRGBA(image.Rect(0, 0, width, height))
	ticker := time.NewTicker(time.Second / fps)

	var buf bytes.Buffer
	for {
		select {
		case <-ticker.C:
			updated := writer(frame)
			if updated || buf.Len() == 0 {
				buf.Reset()
				err = jpeg.Encode(&buf, frame, &jpeg.Options{Quality: jpegQuality})
				if err != nil {
					return fmt.Errorf("unable to encode frame to JPEG: %w", err)
				}
			}

			_, err = sys.Write(int(fd), buf.Bytes())
			if err != nil {
				log.Println("unable to write frame:", err)
			}
			fmt.Print(".")
		}
	}
}

// ========================= Pixel Format =========================
// https://elixir.bootlin.com/linux/v5.13-rc6/source/include/uapi/linux/videodev2.h#L682
var (
	PixelFmtMJPEG uint32 = C.V4L2_PIX_FMT_MJPEG
)

// buff stream types
// https://elixir.bootlin.com/linux/v5.13-rc6/source/include/uapi/linux/videodev2.h#L142
const (
	BufTypeVideoOutput uint32 = C.V4L2_BUF_TYPE_VIDEO_OUTPUT
)

// Pix format field types
// https://elixir.bootlin.com/linux/v5.13-rc6/source/include/uapi/linux/videodev2.h#L89
const (
	FieldNone uint32 = C.V4L2_FIELD_NONE
)

// setsFormat sets pixel format of device
func setFormat(fd uintptr, pixFmt PixFormat) error {
	var v4l2Fmt C.struct_v4l2_format
	v4l2Fmt._type = C.uint(BufTypeVideoOutput)
	*(*C.struct_v4l2_pix_format)(unsafe.Pointer(&v4l2Fmt.fmt[0])) = *(*C.struct_v4l2_pix_format)(unsafe.Pointer(&pixFmt))

	if err := v4l2.Send(fd, C.VIDIOC_S_FMT, uintptr(unsafe.Pointer(&v4l2Fmt))); err != nil {
		return err
	}
	log.Printf("setting format to: %dx%d\n", pixFmt.Width, pixFmt.Height)
	return nil
}

func getFormat(fd uintptr) (PixFormat, error) {
	var v4l2Fmt C.struct_v4l2_format
	v4l2Fmt._type = C.uint(BufTypeVideoOutput)

	if err := v4l2.Send(fd, C.VIDIOC_G_FMT, uintptr(unsafe.Pointer(&v4l2Fmt))); err != nil {
		return PixFormat{}, err
	}

	var pixFmt PixFormat
	*(*C.struct_v4l2_pix_format)(unsafe.Pointer(&pixFmt)) = *(*C.struct_v4l2_pix_format)(unsafe.Pointer(&v4l2Fmt.fmt[0]))

	return pixFmt, nil

}

// PixFormat represents v4l2_pix_format
// https://elixir.bootlin.com/linux/v5.13-rc6/source/include/uapi/linux/videodev2.h#L496
type PixFormat struct {
	Width        uint32
	Height       uint32
	PixelFormat  uint32
	Field        uint32
	BytesPerLine uint32
	SizeImage    uint32
	Colorspace   uint32
	Priv         uint32
	Flags        uint32
	YcbcrEnc     uint32
	Quantization uint32
	XferFunc     uint32
}

func main () {
	writer := func(frame draw.Image) bool {
		draw.Draw(frame, frame.Bounds(), image.NewUniform(color.RGBA{255, 0, 0, 255}), image.Point{}, draw.Src)
		return true // false to cache the previous frame
	}

	StartWebcam(writer)
}

@EtienneBruines that is great!!!!
This confirms that cgo works (better than crafting Go types manually for C counter parts). So this means I will do a refactor of current code to integrate cgo-generated types.
Again, thank you considering using this code.

@EtienneBruines and @tarunKoyalwar
Based on this thread, I have gone ahead and refactored the source code to use cgo-generated Go types (instead of hand-crafted ones) to automatically handle type alignment issues.

See https://github.com/vladimirvivien/go4vl/tree/cgo-refactor

The new requirements are:

Build on linux with videodev2.h header file
Build environment with include path setup

Please give it a try, let me know if your issues go away after a recompile.


Bond5 UITableView issue

I have this code and for some reason the first cells on the screen appear correctly, but when i scroll the new cells won draw.
var dataSource = MutableObservableArray<News> = MutableObservableArray([])

dataSource.bind(to: self.newsTableView) { (dataSource, indexPath, tableView) -> UITableViewCell in

	...
}

Also i am getting an error with:
 let onReuseBag = DisposeBag()// Use of unresolved identifier 'DisposeBag'

is this a bug from this version or i am doing something wrong?

Hi @robertodias180,
Make sure your data source is retained by someone. E.g. make it a property in your class.
For DisposeBag you'll have to import ReactiveKit. I'll see if I can do something anything that.

Hi @srdanrasic,
the import ReactiveKit solve the DisposeBag issue. Thank you.
As for the data source it is a var inside a static let sharedInstance: RSNewsManager = RSNewsManager() so retained  it should not be a issue.

Hmmm, very strange, I've never encounter such issue. At first is sounded like threading issues, but logic around that is so simple and I don't see any problems.
Can you confirm that the code that's creating cells in bind(to:) is actually being executed when you scroll down?

@srdanrasic i removed all pods and re-installed everything and it is working now.
Also i noticed that if you use this var dataSource: MutableObservableArray <MutableObservableArray< News >> it wont work as before.
Was sections support removed?

@robertodias180, yes, but there is/will be alternative. Please check out https://github.com/SwiftBond/Bond/issues/284.

Thank you @srdanrasic


Remove general DS survey and extend time until first appearance.

For #

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

@claudiaregio since we discussed this, just to keep ya in the loop.

Codecov Report

Merging #7199 (86ae760) into main (5c7e0ba) will decrease coverage by 1%.
The diff coverage is 75%.

@@          Coverage Diff           @@
##            main   #7199    +/-   ##
======================================
- Coverage     64%     62%    -2%
======================================
  Files        362     362
  Lines      22932   22919    -13
  Branches    3446    3443     -3
======================================
- Hits       14828   14389   -439
- Misses      6797    7323   +526
+ Partials    1307    1207   -100

Impacted Files
Coverage Δ

src/client/datascience/dataScienceSurveyBanner.ts
70% <75%> (+4%)
:arrow_up:

...ience/variablesView/variableViewMessageListener.ts
22% <0%> (-78%)
:arrow_down:

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

...c/client/datascience/variablesView/variableView.ts
17% <0%> (-62%)
:arrow_down:

src/client/datascience/webviews/webviewViewHost.ts
21% <0%> (-58%)
:arrow_down:

src/client/common/application/webviews/webview.ts
13% <0%> (-54%)
:arrow_down:

src/client/datascience/themeFinder.ts
13% <0%> (-48%)
:arrow_down:

src/client/datascience/codeCssGenerator.ts
16% <0%> (-44%)
:arrow_down:

src/client/datascience/webviews/webviewHost.ts
47% <0%> (-31%)
:arrow_down:

...ent/datascience/jupyter/pythonVariableRequester.ts
12% <0%> (-30%)
:arrow_down:

... and 25 more


Checkstyle configuration cannot be parsed by Gradle plugin

It seems like the Gradle plugin does know about ${config_loc}, which however contradicts the official documentation of the plugin. Further investigation has to be done.
Error message is (using --stacktrace):
Execution failed for task ':checkstyleMain'.
> Unable to create Root Module: config{.../checkstyle.xml}, classpath {...}
...
* Exception is:
...
Caused by: org.xml.sax.SAXException: Property ${config_loc} has not been set

Can confirm, same error on my side.

Everything works fine when putting both checkstyle files in config/checkstyle/ as in the default configuration.

To solve this issue, a configuration directory instead of (or in addition to) a configuration file has to be set. That means, if the checkstyle files are not located under config/checkstyle, the parameter configDir = file("config") has to be set, where config is the directory of the checkstyle files.
As this ticket is related to the to the configuration of the Gradle plugin not our checkstyle configuration itself, I am going to close it.

Ok, but we should mention that in a potential README.md 'Gradle Section'.

Yes, I'm going to provide an exemplary/template build.gradle file when all tools are configured.

Since my config folder is called conf, the Checkstyle Gradle Configuration requires the following lines to work:
configFile = file("PATH/TO/checkstyle.xml")
configProperties = [
  'config_loc': file('PATH/TO/FOLDER/CONTAINING/CHECKSTYLE-CONFIGURATION')
]


Add the ability to output subscriptions as a graphviz dot file.

This is a small thing I hacked for demos and talks and could turn out quite useful.
Example with the canonical "hello 49" example:
riff subscription list -odot | dot -T png | open -f -a /Applications/Preview.app

which gives

No, It should Always output à valid dot file IMO
Le lun. 10 déc. 2018 à 12:54, Florent Biville<EMAIL_ADDRESS>a
écrit :

@fbiville commented on this pull request.
In cmd/commands/subscription.go
https://github.com/projectriff/riff/pull/994#discussion_r240181777:

return command
}
+func displayAsDot(out io.Writer, subscriptions []v1alpha1.Subscription) error {
I'll do the change this afternoon
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/projectriff/riff/pull/994#discussion_r240181777, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AATIluNWmTGsOWkgnow3ZbygOqtOTVVxks5u3ktqgaJpZM4ZFNwG
.

Fair enough. At least, the command highlighted above is guaranteed to work no matter what.

Merged in 1df43181a2e24e01ff1444f87510cdc436146a1a


RuleBookRunner.run() => ClassNotFoundException

Hello,
I'm using RuleBook with play framework and Guice DI. I got ClassNotFoundException after running the rules. Below the code used to create RuleBookRunner:
bind(RuleBookRunner.class).toInstance(new RuleBookRunner("services.validation.rules"));
Thanks,

I haven't tried it with Guice. Tomorrow and Wednesday are sprint demo + planning @ work. So, it may take me a couple of days to get to it. But I'll definitely check it out this week.

Thanks a lot for your help

Sorry for the delay. Work was a little nuts this past week. Anyway, I tried out your code above and I didn't seem to have an issue. Perhaps I am missing something with your configuration.
I updated the develop branch with a guice example called megabank-guice here so you can see what I did to configure it with guice: https://github.com/rulebook-rules/rulebook/tree/develop/rulebook-examples

Closed due to no response, silence meaning "all good." :)


feat: Locker smart contract

Includes smart contract that locks LP for specific time passed in constructor.
Also provides two view methods to return how much time left for unlock and how many tokens locked.
Test may be failure because of snforge version. I need help at point please comment out if you understand why declare error caused by. Tested with sn version 0.9.

@enitrat would love if you could review also


queue_linked list

Hi
Umm, may I ask why are you so agressively committing to a dead repository?
Also are you from SCET or did you stumble upon my repository randomly?

Hi Umm, may I ask why are you so agressively committing to a dead repository? Also are you from SCET or did you stumble upon my repository randomly?

heya...sorry I'm a started on Github, so I didn't know that it was a dead repository

Hi Umm, may I ask why are you so agressively committing to a dead repository? Also are you from SCET or did you stumble upon my repository randomly?

heya...sorry I'm a started on Github, so I didn't know that it was a dead repository

yeah no issues, I had made this for Hacktoberfest 2021
also if you'd like to contribute to open source projects, I'd suggest having a look at these sites first timers only, first-contributions, code triage and open-source Friday.
Hope it helps!

Hi Umm, may I ask why are you so agressively committing to a dead repository? Also are you from SCET or did you stumble upon my repository randomly?

heya...sorry I'm a started on Github, so I didn't know that it was a dead repository

yeah no issues, I had made this for Hacktoberfest 2021 also if you'd like to contribute to open source projects, I'd suggest having a look at these sites first timers only, first-contributions, code triage and open-source Friday. Hope it helps!

thank you so much :)


Add Swift Package Manager support

Hi,
They could review the possibility of adding Package.swift manifest to support Swift Package Manager
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "PINRemoteImage",
    products: [
        // Products define the executables and libraries produced by a package, and make them visible to other packages.
        .library(
            name: "PINRemoteImager",
            targets: ["PINRemoteImage"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: /* package url */, from: "1.0.0"),
    ],
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages which this package depends on.
        .target(
            name: "PINRemoteImage",
            dependencies: [],
            path: "Source"),
    ]
)

it's likely they'll have to wrap some of their code in
#if canImport(UIKit)
import UIKit
extension UIImage {
}

#endif

Any updates on this?

#571

Current master is still broken (probably due to https://github.com/pinterest/PINRemoteImage/pull/574):
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_PINWebPAnimatedImage", referenced from:
      objc-class-ref in PINRemoteImage.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Yeah, #574 should do the trick

Just merged, please let me know if it's working for y'all and I'll put out a new release.

Current master works for us @garrettmoon ! Seems like PINRemoteImage can go out as 3.0.2 the same as PINCache went yesterday. :)

It works for me as well, thanks!

hello guys, I am trying to use PINRemoteImage on an internal package, but I am running into this error. Any ideas?  r

I'm also seeing this issue with Xcode 13.1 and Big Sur 11.6.1, on an Intel machine. Have no idea how to solve it except going back to pods 😞 . Since this is 1 of the only few issues we have for using SPM, it may be worth removing the dependency on PINRemoteImage.

@yo1995 I just tested SPM with 3.0.0 PINRemoteImage and it works, maybe you should provide a demo project to reproduce the problem.

@yo1995 I just tested SPM with 3.0.0 PINRemoteImage and it works, maybe you should provide a demo project to reproduce the problem.

Thanks. Tested on a newly created project and it does work, despite the warnings from the cache module. Will need some time to poke around and see why it came up.

I just created an absolutely fresh project with Xcode 15.0 and added the PINRemoteImage SPM package to the project.  I created an empty swift file with import PIMRemoteImage and I get this error with PINRemoteImage 3.0.3.  It looks like this is still an issue, and I don't see any resolution suggestions here.  What are people doing with this?


Fix security vulnerabilities in lodash and js-yaml

Describe the bug
After the security fixes on NPM dependencies made by #155 and #156, there still two remaining issues on lodash (< 4.17.13) and js-yaml (< 3.13.1). Those vulnerabilities are in the project because they're included in other dependencies which can't be upgraded.
This issue is here to keep track and make sure that those vulnerabilities will be patched when new versions of dependencies will be available.
Here is some infos on those dependencies :

html-webpack-plugin : It seems that this vulnerabilities is fixed & merged in master. Will be released in the next version ? (https://github.com/jantimon/html-webpack-plugin/pull/1270)
inject-loader : Vulnerabilities present because this dependency still use babel v6. Babel has fixed the vulnerability in v7, but this is still not integrated in inject-loader: https://github.com/plasticine/inject-loader/issues/62
karma has fixed the lodash vulnerability but it still uses another one which import it (log4js). https://github.com/karma-runner/karma/issues/3349
Eslint has fixed this vulnerability in version 6, but can't be upgraded in ARA due to the lack of support of it in the dependency eslint-vue-plugin : https://github.com/vuejs/eslint-plugin-vue/issues/920

To Reproduce

Go in the client/ folder
Do a npm ls lodash and npm ls js-yaml.

Expected behavior
All the vulnerabilities are patched.
Screenshots

Environment
All

Remove from 4.1.0 scope. Those points have evolved.


Is there anyway to make automated Twitter Polls?

Is there any API available to allow bots to make Poll tweets?

Pretty sure this isn't supported with Twitter's API.


Document archive in UG

What this does
This PR documents the archive command that I added in #102 to our User Guide.
How to test

Read the documentation I've written for the command and see if it's appropriate.

Notes

The sea is bright.

Codecov Report

Merging #108 into master will increase coverage by 8.94%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #108      +/-   ##
============================================
+ Coverage     60.80%   69.75%   +8.94%
- Complexity      702      839     +137
============================================
  Files           128      128
  Lines          2610     2906     +296
  Branches        308      379      +71
============================================
+ Hits           1587     2027     +440
+ Misses          939      765     -174
- Partials         84      114      +30

Impacted Files
Coverage Δ
Complexity Δ

...java/seedu/resireg/logic/commands/RedoCommand.java
100.00% <0.00%> (ø)
7.00% <0.00%> (+3.00%)

...java/seedu/resireg/logic/commands/UndoCommand.java
100.00% <0.00%> (ø)
8.00% <0.00%> (+4.00%)

...a/seedu/resireg/logic/parser/AddCommandParser.java
100.00% <0.00%> (ø)
9.00% <0.00%> (+4.00%)

...du/resireg/logic/parser/AddAliasCommandParser.java
100.00% <0.00%> (ø)
9.00% <0.00%> (+4.00%)

...du/resireg/logic/parser/ListRoomCommandParser.java
100.00% <0.00%> (ø)
7.00% <0.00%> (+1.00%)

src/main/java/seedu/resireg/model/room/Room.java
70.27% <0.00%> (+2.70%)
18.00% <0.00%> (+1.00%)

...resireg/logic/parser/DeleteAliasCommandParser.java
11.11% <0.00%> (+2.77%)
2.00% <0.00%> (+1.00%)

...ain/java/seedu/resireg/logic/parser/CliSyntax.java
94.11% <0.00%> (+3.20%)
1.00% <0.00%> (ø%)

...java/seedu/resireg/logic/commands/EditCommand.java
90.37% <0.00%> (+3.31%)
24.00% <0.00%> (+12.00%)

.../seedu/resireg/logic/commands/ListRoomCommand.java
83.33% <0.00%> (+3.33%)
13.00% <0.00%> (+6.00%)

... and 13 more

Continue to review full report at Codecov.

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


xdg-user-dirs: make sure libiconv is linked

Because the Darwin SDK automatically propagates libiconv after https://github.com/NixOS/nixpkgs/pull/346043, it is no longer linked automatically (because that would link libiconv to everything whether it wanted it or not).
xdg-user-dirs is failing to link not because it assumes libiconv comes with libc but because of a bug in its build system. The configure script detects how to link libiconv, but Makefile.am does not make use of that to link libiconv when it is needed.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[x] 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

[ ] 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
[ ] 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.

Considering it depends on libiconv in the SDK, I’m going to stack this on the SDK PR.


Fix pipelinerun tests

Wrong APP name was used when validating AppsodyApplication and KnativeService.

@dacleyra would you mind reviewing this please?


Add EnclosingMethod proguard rule

Q
A

Bug fix?
no

New feature?
no

BC breaks?
no

Describe your change
Add an extra proguard rule -keepattributes EnclosingMethod which is required by the InnerClasses attribute rule.

What problem is this fixing?
On Android, the -keepattributes InnerClasses proguard rule complains about missing EnclosingMethod attribute causing release builds with minification enabled to fail.

Thank you for your contribution!


Updating Bureau Structure so Christopher D’Angelo isn't marked as "acting"

Changes

Updating Bureau Structure so Christopher D’Angelo isn't marked as "acting".

Testing

Visit the http://localhost:8000/about-us/the-bureau/bureau-structure/ page and verify that data is correct.

Review

@willbarton
@nataliafitzgerald

Checklist

[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the front end playbook
[ ] Passes all existing automated tests
[ ] New functions include new tests
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged
[ ] Visually tested in supported browsers and devices
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)

@sebworks before you merge this, can you take a look at GHE#382? We need to make yet another update.


Close body before returning the get root certificate error

I have read the CLA Document and I hereby sign the CLA

@drautureau-sonarsource Just curious, how is this change functionally different?

@drautureau-sonarsource This is fixed in 0.2.2.


Artistic License 2.0 (c) is for license text, not a template

fix #310 introduced in 0161a3d75d5f72fe842886b79c07db6ceb773ae2

:+1:

I'm going to go ahead and merge this as it's correct and what we have now isn't. I don't know by what scheme we're doing plain text formatting here, so it's possible leading spaces should be removed from the line.


CM-119: make all font sizes rems

Jira Ticket:
CM-119
Jira Ticket URL:
https://bcparksdigital.atlassian.net/browse/CM-119
Description:
Changed all font-size elements to use rem instead of px so that they scale properly for accessibility.
Also removed some orphaned css code as I went.

@ayumi-oxd  - can you check again? I'm showing it as 1.0rem.

@ayumi-oxd - can you check again? I'm showing it as 1.0rem.

Checked it was fixed as rem. Mine might have shown a cache 😓


Authenticator behavior should always try to authenticate

I am creating a restful service and I'm using QueryParamAuth.
An example:
public function behaviors() {
        return ArrayHelper::merge(parent::behaviors(), [
            'authenticator' => [
                'class' => QueryParamAuth::className(),
                //'only' => ['subscrever', 'noticias', 'noticia', 'categorias'],
                'only' => ['subscrever'],
            ],
            'contentNegotiator' => [
                'formats' => [
                    'application/json' => Response::FORMAT_JSON,
                ],
            ],
        ]);
    }

As you can see only "subscrever" required authentication, if I access "noticias" and provide an access token, the access token is ignored and the user not authenticate. I think this class should have an option to always try to authenticate.
In my case the action "noticias" return all the news, but for registered users return only the news from the categories that the user subscribe.

It seems I've similar problem: part of my REST API is accessible to guests. I think authenticator should silently try to authenticate, and ActiveController::checkAccess() / Access Control Filter / RBAC should decide throw UnauthorizedHttpException or not.

this is essentially a duplicate of issue #7405 - an issue i'm surprised has not been addressed. once logged in a user should remain logged in until they logout. yii treats them as if they logged out when they access a public page. strange behavior.

#10188

Fixed https://github.com/yiisoft/yii2/commit/035a9ce0a8642dc1218f4b5d587dfde4daa382f2


Update install-plugins script to support version specific update centers

The install-plugins.sh from jenkinsci/docker does support version specific update centers for LTS versions.
https://github.com/jenkinsci/docker/blob/678f3ec669666bada2f448f9da3f33c4eb0417a9/install-plugins.sh
    # If version-specific Update Center is available, which is the case for LTS versions,
    # use it to resolve latest versions.

It would be nice if this would be applied to the OpenShift Jenkins too.

This issue hits me when extending the jenkins with s2i.


Fix remaining wpt/css/css-contain/container-queries/container-for-shadow-dom.html test

t4: "Match container in outer tree for :host"
t7: "Match container in outer tree for :host::before"
t10: "Match container for slot light tree child fallback"

[x] resolve pipeline issues
[ ] resolve t4
[ ] resolve t7
[ ] resolve t10

The failure on t10 is a result of the target div being a child of the slot.

The slot element having display: contents results in a computed display flag of 1 and thus the conditions are zero'd out and not passed down to the child/children.

The following will not work:
 <slot>

 </slot>

The following will work:
 <slot>
 </slot>


Static routes

Very basic support for static routing on Brocade and Cisco

This PR is to be able to create static routes in the form of a call  "ip route 'ip' 'mask' 'next_hop' " and retrieve the information with "show ip route static".  Other forms of static routing are not implemented in this PR.


Mutable struct vector

Codecov Report

Merging #184 (3c53b6c) into master (ae5badf) will decrease coverage by 1.33%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #184      +/-   ##
==========================================
- Coverage   80.55%   79.22%   -1.34%
==========================================
  Files          13       13
  Lines        2700     2700
==========================================
- Hits         2175     2139      -36
- Misses        525      561      +36

Impacted Files
Coverage Δ

src/typetree.jl
85.41% <100.00%> (-0.61%)
:arrow_down:

src/compiler/orcv1.jl
0.00% <0.00%> (-80.77%)
:arrow_down:

src/compiler/interpreter.jl
86.84% <0.00%> (-2.64%)
:arrow_down:

src/compiler.jl
82.87% <0.00%> (-1.16%)
:arrow_down:

src/compiler/orcv2.jl
77.38% <0.00%> (+5.95%)
:arrow_up:

src/compiler/reflection.jl
92.59% <0.00%> (+92.59%)
:arrow_up:

Continue to review full report at Codecov.

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