[ADD] website-addons: Add .gitignore

Add .gitignore for common python files that shouldn't be track by VCS

@t3ddftw you are probably fifth person, who are trying to add .gitignore file.
Thank you for your efforts, but I don't accept such updates. I recommend to use global gitignore file in your system. I believe, that gitignore in repo is required to ignore very specific rules. For example, when some script\Makefile produce specific files in directory, that shall not be pushed to the repo. I don't see the reason to add gitignore in this repo. Another explanation is that there is no gitignore file that fit to all developers and they need own global gitignore files anyway

Gitignore is useful for everyone using the repo, which is why you have had so many submissions on the subject. There are a set of files that no Odoo dev wants committed to the repo; not adding a gitignore just makes it harder for someone to work in your code.
Not a problem though, we will make note of your decision & just add to our forks. I recommend you read further on this subject, however:

https://help.github.com/articles/ignoring-files/#create-a-local-gitignore
https://stackoverflow.com/questions/5765645/should-you-commit-gitignore-into-the-git-repos
https://stackoverflow.com/questions/767147/ignore-the-gitignore-file-itself

@lasley thank you for sharing your thoughts.
I still don't have an answer why people cannot use global gitignore for common extensions. But probably your are right and I shall not force them to do it, even if it's a right thing. If someone prefers to use gitignore per project, why don't add it. I prefer to don't add gitignore file per project, because I had a feeling that it's not clean thing. I see, that many gitignores have extentensions I don't understand or I am sure cannot be found in a project (e.g. c files in python project *.so). But I can accept it it just personally ignore gitignore in repos

Is some of you able to restore branch to merge it?

@yelizariev - Global gitignore is really meant for things at the OS level. Our specific issue with this is that we are not specifically Odoo (or even Python) developers. Some things that work for one repo don't work for another, and that is where the locals come in.
The gitignore that @t3ddftw proposed is directly from OCA repo, which we maintain specifically for Odoo. Honestly this has been a godsend in terms of our development workflows, particularly with our diverse internal environments.
Branch restored 😄

So, you guys are the last who was trying to add gitignore and the first whose proposal is accepted :smile:


Add forked version of os related stdlib packages

Try number three 😆
This change adds a forked version of some of the packages from the stdlib. It's currently split into two commits, one that brings in the stdlib packages we need as is, and another that edits them to get them actually functioning. This PR doesn't add any of the functionality described below, it simply gets the forked stdlib in a working state. Please see below for why this is needed/desired.
Why
Package stdlib is a fork of a small set of packages from the go stdlib and specifically the os, syscall, os/exec, and /internal/syscall/execenv packages. It exists because the process execution mechanism in the stdlib (os/exec.Cmd and everything in it's call chain all the way down to syscall.StartProcess) currently don't expose what's necessary to be able to accomplish some things that we need on Windows. This boils down to three things currently.

exec.Cmd.Start() calls exec.LookPath which looks for certain windows extensions to launch an executable at the path provided and will fail if one is not found. Although rare, there are cases of binaries with no extension that are perfectly valid and able to be launched by CreateProcessW that will fail to launch with the default behavior. Granted this can be worked around by setting PATHEXT to contain an entry with just spaces after a colon separator, so this is more of an added annoyance for the other two reasons.
For example:

os.Setenv("PATHEXT", ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL; ")

For job containers we'd like the ability to launch a process in a job directly as it's created, instead of launching it and assigning it to the job slightly afterwards. This introduces a small window where the process is unaccounted for and not in the "container".
The desired behavior can be accomplished in Windows by calling UpdateProcThreadAtrribute and using the constant PROC_THREAD_ATTRIBUTE_JOB_LIST. For the stdlib to support this it would need a new field off of syscall.SysProcAttr to be
able to pass in the job object handle that you'd like the process added to. However, there is no way to create a job object in the stdlib itself and the syscall package is locked down for the most part.

Almost same story as 2, but in this case we'd like to support assigning a pseudo console to a process. There's no exposed way to pass in the pseudo console handle and there's no syscall package support for making one in the first place.

The stdlib packages have been modified to use the x/sys/windows package where needed, removed some unneccesary functionality that we don't need, as well as added the additions described above.

Going to add all of the internal/syscall/window definitions as suggested even though they basically exist as is in x/sys/windows just to keep this more similar in line with the stdlib.

Closing in favor of this work https://github.com/microsoft/hcsshim/pull/1233
Three tries, all for naught 😆


[Event Request] Codeunit 1385 "Vendor Templ. Mgt." - OnBeforeOpenBlankCardConfirmed

Please add the folloring Event OnBeforeOpenBlankCardConfirmed in Codeunit 1385 "Vendor Templ. Mgt."
    procedure IsOpenBlankCardConfirmed(): Boolean
    var
        ConfirmManagement: Codeunit "Confirm Management";
        IsHandled: Boolean;
        Result: Boolean;
    begin
        //>> New event
        OnBeforeOpenBlankCardConfirmed(Result, IsHandled);
        if IsHandled then
            exit(Result);
        //<< End
        exit(ConfirmManagement.GetResponse(OpenBlankCardQst, false));
    end;

    [IntegrationEvent(false,false)]
    local procedure OnBeforeOpenBlankCardConfirmed(var Result: Boolean; var IsHandled: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 12399.


Merge training

Merge all material from https://github.com/kedro-org/kedro-training in a training directory, retaining git history thanks to https://github.com/newren/git-filter-repo.
Made one small note to the README on top of the current history.
Addresses https://github.com/kedro-org/kedro-devrel/issues/39.

Now the key question: should I

Signoff all the commits myself,
Manually signoff each commit by their author (sounds like bad idea legally speaking), or
Give up on retaining the history and squash everything (😢)?

According to https://github.com/git/git/blob/b2c150d3aa82f6583b9aadfecc5f8fa1c74aca09/Documentation/git-commit.txt#L154-L161 (source):

The meaning of a signoff depends on the project, but it typically certifies that committer has the rights to submit this work under the same license and agrees to a Developer Certificate of Origin (see https://developercertificate.org/ for more information).

And from https://probot.github.io/apps/dco/ and https://developercertificate.org/,

By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

So my understanding is that I can assume under (b) that I can sign-off everything. Happy to learn more otherwise.

Continued in gh-5.


Get user consent for analytics on install

Need to explicitly ask user to consent to usage tracking via GA when plugin is installed (or updated if from a pre-analytics version)

@briandealwis I am working on displaying a opt-in dialog (pop-up, notification, or whatever) that asks for a user consent on collecting usage metrics. I first tried org.eclipse.jface.dialogs.PopupDialog, but this pop-up is way too transient in that it disappears as soon as a user clicks on anywhere else. I am now trying to extend org.eclipse.jface.dialogs.Dialog directly to have a custom dialog, but I wonder if there is a better option. Ideally, it should be a small dialog having non-modal, less-intrusive, and notification-like characteristics.

Hmm, I thought there was a way to prevent the transient-ness of the InputDialog, but nothing pops up (hohoho).  Given the importance of the user's decision, wouldn't it be best to use a normal modal dialog?

@briandealwis Now, we should decide when and how to show the Analytics opt-in dialog. (It's a matter of calling a method, which can be called many times.)
@rdayal suggested to do so at the "activation" time of our plugin (doing lazily and in the right context) and ask for advice from you. Should the method call be in Activator.start() in each bundle that has an Activator? Will this work okay technically? Any opinions/suggestions/concerns?

@briandealwis Any ideas about https://github.com/GoogleCloudPlatform/gcloud-eclipse-tools/issues/138#issuecomment-227902048?

Sorry @chanseokoh I missed the above in the noise of Github notifications.  I think we need to both do it from the activator, which should ideally coincide with the first trigger of a Cloud Tools action.  But bundles may be activated in states where we can't prompt the user (below), so we also need to be able to prompt from within the ping code have an unknown user-confirmation state.
We still need to be able to prompt independent of the activator.  We can't just rely on the activator as a bundle may be activated before the SWT Display has been created by the Eclipse Workbench.  We must ensure that the activator never creates a Display instance as it's not appropriate to create a display from any thread but the main thread (so never use Display.getDefault()) — a bundle may be activated on any thread.

I did some testing and relying on Activator.starts() doesn't really work well. The sdk.internal Activator is triggered when the Eclipse is being launched. The localserver Activator is triggered later when it is somehow used (e.g., when opening a preference dialog), but PlatformUI.getWorkbench() returns no workbench for some unknown reason, so it's not working there either.
Prompting the user within the ping code will work at least, and I think it is a sound approach. If that is not sufficient, we could place prompting in more places.

The sdk.internal Activator is triggered when the Eclipse is being launched.

Context functions currently cause early activations.

but PlatformUI.getWorkbench() returns no workbench for some unknown reason, so it's not working there either.

Hmm, that seemed weird so I tried to reproduce… and I see PlatformUI.getWorkbench() returning the workbench.
You could have two variants of the send-ping: one suitable for headless situations, and the other for non


Breaking PointerEvent change implemented on minor version with no errors thrown

Describe the bug
The removal of the pointer-events polyfill was a breaking change on 9% of all browsers, accompanied by only a minor OL semantic version increment.

MINOR version when you add functionality in a backwards compatible manner

Under your “Renderers and Browser Support” it states:

OpenLayers runs on all modern browsers that support HTML5 and ECMAScript 5

Of which iOS 12 (which doesn't have PointerEvent)

Has > 1% of global market share
Had an update on 14 Dec 2020
Fully supports ECMAScript 5 and HTML5

The worst part about this change is it silently breaks:
Expected behavior

Throw an Error https://openlayers.org/en/latest/doc/errors/ if the PointerEvent is not available natively.

Browser feature detection errors have precedence e.g. 63: Support for the OES_element_index_uint WebGL extension is mandatory for WebGL layers.
Developers will get feedback from their error reporting that there is an issue and debugging would be made much easier.

Add some kind of browser support table to the documentation, with minimum browser versions which work / are polyfillable – and maybe not change this without a major version increment.

Thanks for raising this concern, @frozeng. Although the release notes clearly mention the removal of the pointer events polyfill, I agree that the README could make it more clear which browsers require a polyfill. We'd appreciate a pull request for that.
Also a preflight check with a failing assertion like you suggested might make sense. But for end users, the symptoms would not change. It would only make things easier to debug.
Note that Apple turned on Pointer Events support by default in Safari/iOS 13 already, in September 2019, not Safari/iOS 14 as your source states.

Thanks for your quick response:
The completely silent nature is the real difficulty. As it’s just a listener of an event type which is never fired there is no chance of feedback anything has gone wrong.
This is different from the usual failure of using an unsupported “modern API” e.g. 'Promise' is undefined or Object doesn't support this action.
The other OL assert() Error codes are all about helping the developer (rather fixing symptoms). Had any errors been surfaced I would have known soon after release there was a problem on legacy platforms.


[Feature]: Support useSuspendedInfiniteQuery

Package Scope

[x] Add to an existing package

Package name: react-query
Overview

add useSuspendedInfiniteQuery like useSuspendedQuery.
Describe the solution you'd like

Make a function wrapping useInfiniteQuery like useSuspendedQuery of @toss/react-query wrapping useQuery

useSuspenseQuery, useSuspenseQueries, and useSuspenseInfiniteQuery were added as official APIs in @tanstack/react-query v5. Therefore, I close this issue.


SideNav Hamburger Animation #519

Added given hamburger navbar toggler into app.

Icon is not displaying

Icon is not displaying

Strange, it's coming for me and the animation is also working as expected.

@Chaitanya31612 I am merging this PR.
If it's okay, I would ask you to give a PR and comment your code (document it) to make it more readable and explainable. This is also one of the goals of this project

@Chaitanya31612 I am merging this PR.
If it's okay, I would ask you to give a PR and comment your code (document it) to make it more readable and explainable. This is also one of the goals of this project

Sure, @smaranjitghose I'll make a pull request with comments for code I've written.


fix the warns from cargo clippy

Signed-off-by: utam0k<EMAIL_ADDRESS>

Codecov Report

Merging #1564 (785c807) into main (188ce0c) will increase coverage by 0.00%.
The diff coverage is 66.07%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1564   +/-   ##
=======================================
  Coverage   68.71%   68.72%
=======================================
  Files         120      120
  Lines       13094    13089    -5
=======================================
- Hits         8998     8995    -3
+ Misses       4096     4094    -2

Hey, thanks a lot for opening this :hugs: . As this is not marked WIP, I'll  take a look at this and merge if no issue :)


Is class inheritance possible ?

Hi, I'm just writing some Dataview helpers for my Obsidian vault and I would like to setup class inheritance to make code cleaner and easier to maintain.
This ones looks like that :

elements.js

class Elements {
  type = "";

  /**
   * Return all notes of the element type
   * @returns DataArray
   */
  getAll () {
    return DataviewAPI.pages().where(n => n.type === this.type);
  }
}

tasks.js

class Tasks extends customJS.Elements {
  type = "TA";

  // Other method specific to tasks only
  // ...
}

However this code doesn't work and customJS raises an error at load-time indicating that the Elements class is not a constructor : TypeError: Class extends value #<Elements> is not a constructor or null
Is there any way to achieve that or am I wrong somewhere ?
Thanks in advance for your help,
Lila :)

Ok I've solved this quite easily by simply adding .constructor after the extended class statement :

tasks.js

//                                   here
//                                    |
//                                    v
class Tasks extends customJS.Elements.constructor {
  type = "TA";

  // Other method specific to tasks only
  // ...
}

Closing the issue for now.

 Note that this is not critical since all works as expected with my above fix and the usage of forceLoadCustomJS().
Here are the errors :

Here is my guess about what happens :

During the first initialization of CustomJS (at Obsidian startup), the loading of tasks.js fails because in that script I'm trying to use customJS object during its own initalization process (leading to the customJS is not defined error).
However the load of elements.js succeed because I don't make any direct usage of the customJS object in that script
At that point, any reference to customJS.Tasks should fail because the Tasks class has not be properly loaded
But in my case it works because, in my DataviewJS, I'm calling await forceLoadCustomJS() before any usage of the customJS.Tasks class
await forceLoadCustomJS(); performs a second loading of all CustomJS classes, and the loading of tasks.js is successful that time because the customJS object has already been loaded during the first load of CustomJS

So a way to fix that could be to make the customJS object available in scripts during its own initialization.

I just cut a release with your code. 1.0.13. I accidentally uploaded main.ts at first instead of main.js so let me know if Obsidian is giving any trouble with it and I'll just redo it with 1.0.14 haha

I just cut a release with your code. 1.0.13. I accidentally uploaded main.ts at first instead of main.js so let me know if Obsidian is giving any trouble with it and I'll just redo it with 1.0.14 haha

Thanks haha, it seems to work perfectly :)


Useful? Combine functions in create_model

Pull request details
Describe the changes made in this pull request

Refactor assets_profile_times_capacity_in/out -> function assets_profile_times_capacity
Refactor upper/lower_bound_transport_flow -> function find_bound_transport_flow

List of related issues or pull requests
Closes #452
Collaboration confirmation
As a contributor I confirm

[ ] I read and followed the instructions in README.dev.md
[ ] The documentation is up to date with the changes introduced in this Pull Request (or NA)
[ ] Tests are passing
[ ] Lint is passing

I'm not sure; these changes are what we want according to https://github.com/TulipaEnergy/TulipaEnergyModel.jl/issues/452#issuecomment-2003854112
This seems like a separate issue, and I think that it is better to include the profile aggregation in the dataframe creation. But I'm open to discussing alternatives.


[@sveltejs/adapter-static] - Adding endpoints that are used client side only

Describe the problem
I am using the @sveltejs/adapter-static-Adapter for prerendering the page during the build.
If I am using a contact form I need to send emails via a server-side endpoint.
Since the endpoint is called only client-side and not on load() the endpoint will work in dev, but not on production, as it's not considered during build.
Deploying the app to vercel, the endpoint call will result in a 404.
Describe the proposed solution
Since there are many use cases for using server-side endpoints even on static pages, There should be a way to mark endpoints for building/deployment.
Alternatives considered
The only option right now is to avoid static generated files if server-side endpoints are needed.
Importance
would make my life easier
Additional Information
No response

I don't quite understand the proposed solution. If you're using the static adapter, it would assume that every page is prerendered and generate static HTML files only. Your deployment platform would then serve these HTML files as is.
If you want server-side endpoints to work, you would need to use the vercel adapter so that it runs as s serverless function, and the endpoint would work. And for pages that can be prerendered, you can mark const prerender = true.
Another way around this is to have that server-side code separate from the static files, and manually deploy that server-side code as a serverless function. Your static files would then call this API separately.

This should've been a discussion, but @bluwy is right, adapter-static is specifically for static sites and endpoints are also pre-generated as static files so there won't be any server-side functionality to do stuff like sending emails. You need to use a serverless adapter and prerender the pages you want to prerender, or have a separate server running.

@bluwy, using vercel functions besides the static page generator is something I considered, but I think the coding experience is awful using this kind of mix-up.
I wasn't aware that export const prerender = true; will result in statically rendered pages even with the vercel adapter. Thanks a lot!


Downgrade clap to 2.34

Needed for compilation with Rust 1.36
Change-type: patch
Signed-off-by: Zahari Petkov<EMAIL_ADDRESS>

@balena-ci I self-certify!


Fix command line formatting in markdown man page

This markdown file is a template to generate a manpage. It's not meant to be viewed by users directly.


Report file and file size changes in production image and initrd

Tested it locally with #634 and https://github.com/flatcar/flatcar-build-scripts/pull/134.
Will want to backport it to LTS, stable, beta and alpha.
Note that the new functionality is going to work only after we create new releases for the respective branches, so for now, all we will get is some error messages about some files not being found.

Cherry picked to 3493 3446 3374 3033.


doc: releases: 3.0: add CAN related release notes

Add CAN related release notes for Zephyr v3.0.0.
Signed-off-by: Henrik Brix Andersen<EMAIL_ADDRESS>

@alexanderwachter can you please review?


FALCON-2063 Add change log for each release

Some important new features are listed as bug fixes in the generated Change log. I will go ahead and update the 0.10 Jiras to properly reflect compatibility, improvement, feature etc in an Apache Yetus compatible way. Then we need to re-generate the change-log.
The same needs to be done for all other releases or we lose some important information on backwards compatibility, features, improvements etc. This is necessary because we look at changelog to debug any issues that arises during upgrades between versions.

@bvellanki Agreed and it makes sense. Now we just have to keep JIRA correctly updated.
This pull request was just to get a preview and get review done. I am also fixing some issues in the YETUS. Hopefully they will also be committed in the meantime  :smile:
One more thing that we need to do is to add Release Notes in the JIRA itself so that we can generate release notes also automatically. I need to first get that field added in JIRA.
As for cleaning up the JIRA, I will help you out and pick up 0.7(I generated the release notes for 0.7 from JIRA so they should mostly be correct :stuck_out_tongue: ) and 0.8 releases.

I finished cleaning up the Jira for 0.10 and working on 0.9 now. Thanks @ajayyadava  for taking the initiative.

I finished cleaning up the Jira for 0.9 now. @ajayyadava , please regenerate the change log

@bvellanki I think you may want to merge and fix FALCON-2088 before this. Have a look and let me know.
Unfortunately, one of the changes that I proposed to the tool(and needed for falcon) is still not merged and hence I am unable to give you the command so that you can generate it as per your convenience. Ping/call me once you are done and I will generate the changes.

@ajayyadava  : I merged Falcon-2088

@bvellanki I have generated change log for 0.10 only, since I haven't been able to verify the entire content of CHANGES.txt with the change log. This is just to unblock you for 0.10 RC.

This needs one more change, I need to add it to packaging as well. I will put that as an additional change on top of these changes if you are satisfied with these changes. In the meantime I will test that patch :)

+1 for 0.10 changelog. Will commit


Low responsiveness when moving tokens + slow movement of groups of tokens

I notice that there's often considerable lag when starting to click and drag a token and when it finally starts to move along with the cursor. The ShowDragDistance module performs more smoothly right now, while providing similar base functionality. To be fair, the lag is most noticeable when using lots of modules like FXmaster, etc.
In addition, when moving a group of tokens, they move one-by-one to the new location. This takes very, very long - especially when there's lag as mentioned above. It would be nice if there was a setting to turn this behavior off.
I'm using Foundry v0.7.9 and the dnd5e system v1.2.4. My map sizes are fairly large and often feature lots of tokens, because I'm running a megadungeon.

Drag Ruler is designed to move all the tokens simultaneously. However the tokens aren't moved as a group, but instead each token takes care of the movement for itself. However if a token needs a long time to start it's movement that would indeed case them to move one-by-one. So it's likely that addressing the performance issue will also fix the issue with tokens not moving simultaneously.
Regarding the performance issue: In all the worlds I have Drag Ruler performs smoothly. However I'm lacking worlds with huge maps with many tokens that I could use for testing / reproducing this issue. Can you send me the world that's causing your issues, so I can take a look at it? The easiest for me to work with would be if you could share your whole Foundry Data folder (only the world-folder with a list of modules you use in that world would do as well though).
You can privately send me the data using this link: https://wolke.ccn.li/s/jbyw8CB7d6eCysB

I've sent you a .zip file of a test world I made based on my world. It's called test-world-drag-ruler.zip.  I would've sent you the entire world, but a lot of the assets I  use in it are stored outside of the world folder, so it would either be a lot of work to sort out or become a gigantic upload... So I chose to compromise. From what I can tell, the performance issue persists in that test world, even if there's only a single scene.
I've also included this list of modules I usually have active: module_list.txt. However, even with all modules deactivated save Drag Ruler, the issue is still there.
(Apologies for the barrage of random files in your nextcloud - I didn't notice that the folder with the world had become unzipped after downloading it from my own server. ^^;)

Thanks for providing this test world to me. I can reproduce the problem in that world and will see what I can do about it.
Don't worry about the random files that got uploaded. Everything went into a dedicated folder, so it was easy to discard of everything that wasn't needed :)

I've done some initial testing on this and it appears, that most of the lag issues are actually caused by foundry itself. The lag happening when selecting, deselecting and dragging tokens seems to also appear when disabling the Drag Ruler module. It appears that the only thing that I could do to improve the situation is to make the tokens all move at the same time. Can you confirm that this is the case?

Thanks for investigating!
The results I find kind of curious, because I was sure that ShowDragDistance performed more smoothly... but perhaps I was biased by the incremental movement of groups of tokens being so slow.
To be fair, the scene I sent you is one of the largest maps in the campaign (though they’re all pretty big), so I don’t think there’ll be as much slowdown from Foundry in the future.
Having said that, it’d be a great timesaver if you could somehow add a setting that makes multiple tokens move at the same time. :)

I'll treat this issue as a request to ensure that all tokens will move simultaneously, even if the map is laggy, since that's the only issue that I was able to attribute to Drag Ruler. If you encounter other performance issues other than this that can be attributed to Drag Ruler feel free to open another issue.

I gave this another shot and was able to improve the situation a lot in 26917200. This will be part of Drag Ruler v1.6.0.


Add Licenser and license headers

Motivation / Summary
This PR adds the go-licenser module to the codebase. The module is then used as a preparatory step before builds : it checks for the presence of the Apache v2 license header in all Go files in the project, and adds/updates it if it absent / not compliant to Elastic's standards.
Resolves #47.

:broken_heart: Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-03-24T15:34:15.318+0000

Duration: 3 min 14 sec

Steps errors
Expand to view the steps failures

lint

Took 0 min 1 sec . View more details here
Description:                 go mod tidy && git diff --exit-code                gofmt -l . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


Change model default download address

Investigate how to update model default download address to opencsg

Model fold structure downloaded by the following config  is different from huggingface.co.
  initialization:
    runtime_env:
      env_vars:
        HF_ENDPOINT: https://hub.opencsg.com/hf

Done.


vm.clearAll()

When i select-all container items,then click "clear",but don't set vm.selectedAll
 function clearAll() {             angular.forEach(vm.selected, function (s) {                 vm.selected[s.Id].Selected = false; //add   vm.selectedAll=false;             });         }

Is this function built for hide containers?
Or is there any way to hide containers for non-admin user (who can manage containers) cannot destroy the system-related-containers(like swarm or  shipyard)


Feature Request: Add ability to set a range for health / level when searching Beast collection

Describe the feature you'd like to request
For example, I want to display only Beasts that are +100 level and +300 health
Describe the solution you'd like to see
A slider bar would be preferable, however an alternative could be to manually specify 'to/from' values
Additional information
No response

Hi @dfenland , i would love to work on this but please i need more information on this issue. Thank you

Hi @dfenland , i would love to work on this but please i need more information on this issue. Thank you

Hey see attached image which hopefully explains what I mean

i perfectly understand what you mean now.
so, could you please assign me to this issue? @dfenland

Hi @Dprof-in-tech - I have assigned you now (I had previously done some basic work on this which I have now pushed to the range-filter branch).

Hi @Dprof-in-tech - I have assigned you now (I had previously done some basic work on this which I have now pushed to the range-filter branch).

okay chief.
let me take a look at it and complete it

@RedBeardEth
i'm having issues setting up this project on my local machine. i keep getting a database error.
Any clues as to how I can fix this so I can get on with fixing this issue

hello @RedBeardEth i've been waiting on your reply, I pulled the latest changes from main and tried setting up the project again on my local machine but I still get the same error when I'm trying to run the fronend nextjs app, what do we do about this?


Uploader Canvas

Is there any css file or something that shows uploader as it is in demo page?

Maybe this could be helpful https://rpia.io/docs/elements/progress, and here is the source.


[WFCORE-6403] Upgrade WildFly Elytron to 2.2.1.Final

https://issues.redhat.com/browse/WFCORE-6403
    Release Notes - WildFly Elytron - Version 2.2.1.Final

        Bug

[ELY-2564] -         Add the ability to disable OIDC access token "typ" claim validation via a system property

[ELY-2565] -         Update actions/checkout in Elytron website workflow to v3

        Task

[ELY-2391] -         Add a test case to BasicAuthenticationMechanismTest that attempts to use the wrong password for the user

[ELY-2558] -         Update assertions in OpenSSHKeyParserTest

[ELY-2559] -         Update CredentialStoreSaslAuthenticationTest

[ELY-2567] -          Automatically retrieve roles from an OIDC access token's "roles" claim if present

        Release

[ELY-2569] -         Release WildFly Elytron 2.2.1.Final

        Component Upgrade

[ELY-2555] -         Upgrade net.minidev:json-smart to 2.4.9

Thanks @fjuma


Make sure the executor type same when recursively creating items for a function

This PR makes sure the executor types are the same when multiple items are recursively created for a function.
It fixes a timeout issue in the ParallelMapDatasetOp tests. Taken TestCase7 for example, two items are created for the function XTimesFour and XTimesTwo, where XTimesFour call XTimesTwo internally. The executor type of XTimesFour is SINGLE_THREADED_EXECUTOR and that of XTimesTwo is Default. This inconsistency causes a timeout issue when running the XTimesFour function inside SingleThreadedExecutorImpl::RunAsync but running XTimesTwo inside ExecutorImpl::RunAsync.
cc: @jsimsa

@mrry do you have thoughts on this CL?

To be clear, I am asking about whether the fact we are not propagating the executor type through recursive kernel creation is a bug.
If so, I will take care of reviewing this PR.

Yes, I think it makes sense to have this as the default behavior.

@feihugis I synced with @mrry offline and the conclusion we arrived at is that the behavior you are seeing is expected (single threaded executor has only one thread of execution, which means that it will hang if you are trying execute a graph that requires a multiple threads (e.g. because some ops block on other ops).
In other words, your test is expected to hang and you should instead use a different test function (for which the execution does not hang).

@jsimsa and @mrry Thanks for your explanation! Yeah, when debugging, I saw the ops in the single threaded executor are blocked on the other ops running in the default executor (class ExecutorImpl). The test_case_7 hangs with the parameters num_parallel_calls = 2, thread_num = 2, use_inter_op_parallelism = false, MapFunc = XTimesFour. After increasing thread_num to be 3, the test_case_7 can work. It looks like that the single threaded executor can run ops in the default executor , but whether it hangs will depend on the avaialable resource in the thread_pool.
Another thing is that whether it is on purpose that the executor type is not propagated through recursive kernel creation?

Can one of the admins verify this patch?

I'm going to go ahead and close this PR, because it seems to have stalled. If you're still interested in pursing this (and responding to my comments), please feel free to reopen!


[Select] Add ability to define size

Could you add ability to add attribute size for select input as it was made for textarea here.
Sometimes it is very useful to have ability to define select size

Fixed by: https://github.com/spiral/toolkit/pull/200


multiple arguments in type annotations never explained

I couldn't find anywhere the explanation of how multiple arguments are separated by -> followed by the return, eg:
diamond: Color -> Float -> Form

It's not explained here:
http://elm-lang.org/guide/model-the-problem#contracts
I didn't figure it out until I got to the "Type Annotations" section of this 3rd party article:
https://pragmaticstudio.com/blog/2014/12/19/getting-started-with-elm
My experience was that I was trying to imagine various things that could be going on, and the best I came up with was that type annotations were describing functions that take a single argument which is a function that itself returns a function and so on lol. I thought it was recursively describing the types of passed in functions (and their parameters + returns).
I put a lot of mental work into trying to figure out what--my recommendation is--should be described in the "Model the Problem" article and re-iterated in this tutorial.
..my 2 cents

This is explained in the new http://guide.elm-lang.org/, specifically in http://guide.elm-lang.org/types/reading_types.html
Hopefully that helps


Unable to add subscribe on templateOptions.options. change detection on to.options is not happening

Hi,
I created a custom select type field(not the formly provided one), binded templateOptions.option in expressionProperties and fetches to.Options in ngInit in  my custom select field component,
But when the options are changed I don't see the changed options in my select field I  have tried CD as onPush as well, but no luck.

use formlySelectOptions pipe:
<option *ngFor="let option of to.options | formlySelectOptions: field | async">
  ...
</option>

@aitboudad That worked thank you.


Kth Largest Element in an Array

Hello, @rudrakshi99 @nakul-19 @plazzy99 .
I am a GSSOC'21 participant.
I would like to contribute the algorithm for finding the kth largest element in an array.
Language Used: cpp
Please assign this issue to me.

hello @tarun26091999 @rudrakshi99 can i do it in python?
Thank you!

Hi can I implement the  code of this problem in c++ if You wish !

/assign

Hi,
I am GSSOC'21 participant,
My code will be in java with proper comments and test cases.
@anubhavitis Please assign me this. Thankyou!!


Use empty()/!empty() in place of !len()/len()

VimL knows how to quickly return from empty(), so use it when
appropriate instead of unnecessarily calculating the length.

LGTM

Thanks!


Error unmarshaling yaml when deploying v1.19.2 to aws using fedora coreos

Description
Terraform apply fails with the following error when deploying to aws:
Error: Error unmarshaling yaml: yaml: line 245: could not find expected ':'

  on .terraform/modules/typhoon-dev/aws/fedora-coreos/kubernetes/controllers.tf line 51, in data "ct_config" "controller-ignitions":
  51: data "ct_config" "controller-ignitions" {

Error: Error unmarshaling yaml: yaml: line 146: could not find expected ':'

  on .terraform/modules/typhoon-dev/aws/fedora-coreos/kubernetes/workers/workers.tf line 73, in data "ct_config" "worker-ignition":
  73: data "ct_config" "worker-ignition" {

Steps to Reproduce
Pretty much followed the instructions at https://typhoon.psdn.io/fedora-coreos/aws

Created a cluster.tf:

module "typhoon-dev" {
  source = "git::https://github.com/poseidon/typhoon//aws/fedora-coreos/kubernetes?ref=v1.19.2"

  # AWS
  cluster_name = "typhoon-dev"
  dns_zone     = "test.local"
  dns_zone_id  = "xxxxx"

  # configuration
  ssh_authorized_key = file("./rsa_pub.pem")

  # masters
  controller_count = 1
  controller_type = "t3.small"

  # nodes
  worker_count = 2
  worker_type  = "t3.small"
  #worker_node_labels = []

  os_stream = "stable"

  # networking
  networking   = "cilium"
  network_mtu  = "8981"
  host_cidr    = "<IP_ADDRESS>/24"
  pod_cidr     = "<IP_ADDRESS>/18"
  service_cidr = "<IP_ADDRESS>/18"
}

terraform init
terraform apply

Expected behavior
Deployment completes successfully.
Environment

Platform: aws / eu-west-2
OS: fedora-coreos
Release: Typhoon v1.19.2
Terraform: Terraform v0.13.0 (also tested with v0.13.4)
Plugins:

Initializing provider plugins...
- Finding poseidon/ct versions matching "0.6.1, ~> 0.6.1, ~> 0.6.1"...
- Finding hashicorp/template versions matching "~> 2.1, ~> 2.1, ~> 2.1"...
- Finding hashicorp/null versions matching "~> 2.1"...
- Finding hashicorp/tls versions matching "~> 2.0"...
- Finding hashicorp/local versions matching "~> 1.2"...
- Finding hashicorp/random versions matching "~> 2.2"...
- Finding hashicorp/aws versions matching "3.6.0, >= 2.23.*, <= 4.0.*, >= 2.23.*, <= 4.0.*"...
- Installing hashicorp/null v2.1.2...
- Installed hashicorp/null v2.1.2 (signed by HashiCorp)
- Installing hashicorp/tls v2.2.0...
- Installed hashicorp/tls v2.2.0 (signed by HashiCorp)
- Installing hashicorp/local v1.4.0...
- Installed hashicorp/local v1.4.0 (signed by HashiCorp)
- Installing hashicorp/random v2.3.0...
- Installed hashicorp/random v2.3.0 (signed by HashiCorp)
- Installing hashicorp/aws v3.6.0...
- Installed hashicorp/aws v3.6.0 (signed by HashiCorp)
- Installing poseidon/ct v0.6.1...
- Installed poseidon/ct v0.6.1 (self-signed, key ID 8F515AD1602065C8)
- Installing hashicorp/template v2.1.2...
- Installed hashicorp/template v2.1.2 (signed by HashiCorp)

Possible Solution
:-(
Link to a PR or description.

Could it be that the AMI owner has changed?
I see in ami.tf:
data "aws_ami" "coreos" {
  most_recent = true
  owners      = ["595879546273"]

But I cannot get list images with that owner:
> aws ec2 describe-images --owner<PHONE_NUMBER>73
{
    "Images": []
}

Changing it to Fedora and changing a bit the filter returns some amis, just not sure if I am missing something as this is my first time trying to use typhoon:
> aws ec2 describe-images --owner=125523088429 --filters "Name=description,Values='Fedora CoreOS stable*'" | jq '.Images[].Name'
"fedora-coreos-31.20200505.3.0"
"fedora-coreos-32.20200601.3.0"
"fedora-coreos-32.20200824.3.0"
"fedora-coreos-32.20200923.3.0"
"fedora-coreos-31.20200210.3.0-hvm"
...

The base FCC config is valid and your problem can't be reproduced here.
Check the ways you affect the config that may cause an invalid config yaml (e.g. ssh_authorized_key, *_snippets).
In particular, observe that the error line number is beyond the base config (controllers.tf) and likely coming from your own ./rsa_pub.pem content.
The AMI is not related to the config validity, and also you're looking at a CoreOS Container Linux AMI that isn't part of the fedora-coreos module.

That was it indeed! Thanks you for explaining and your quick replay.


when creating a new database with an initial user, set the database p…

…ermission for this user as specified in the documentation
Somewhat related to ES-225

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/3056/


mWeb - Chat - Black screen after deleting first message

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to URL https://staging.new.expensify.com/
Navigate to a conversation (conversation is not very long) in the main testing device
Scroll up a bit and choose the first of several messages you already sent back-to-back
Verify the chat header with your name appears only appears on your first message
Hover over that first message (Web/Desktop) / Tap and hold (Mobile) to view the action menu
Click/Tap on the Trash icon to delete the message
Verify the message is deleted from the conversation history

Expected Result:
The user deleted the required message without problems.
Actual Result:
Users should be able to delete owned messages, but after deleting first message, the conversation scrolls to the beginning and user sees black screen.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[x] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/236475494-0e18858d-a9bd-40f7-88d5-bd66e1144be4.mp4
https://user-images.githubusercontent.com/93399543/236475507-209e2275-8bfe-4a6c-aed6-670a0dab19cc.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Issue is not reproductible in Production, attached the video.
https://user-images.githubusercontent.com/93399543/236476667-61a334c8-8a2a-4a86-9e79-2f722de8bd41.mp4

@kbecciv since I've yet to reproduce this, logs could be very helpful in helping us diagnose this. If you're still able to reproduce it, can you try to capture console logs? Here are some instructions on capturing console logs from a physical device on Android mWeb.

I'm not able to reproduce this.

Asked for a retest in slack: https://expensify.slack.com/archives/C9YU7BX5M/p1683307443300569

Is it exclusive to Android Chrome? What account did we use to reproduce this? @kbecciv

Tried and also can’t reproduce this once. Just tried on Android web (emulator)

@kavimuru is unable to reproduce the issue anymore. Video below
https://user-images.githubusercontent.com/44479856/236541005-51026525-786b-4455-b7be-32b0c04f4ff9.mp4

Great! Removed the deploy blocker.
Slack thread for posterity: https://expensify.slack.com/archives/C9YU7BX5M/p1683311371033179?thread_ts=1683307443.300569&cid=C9YU7BX5M


Mongo database options

Would it be possible to provide an example of the best way to do the following:
1 - To use two mongo databases (one for static data and the other for user info)
2 - To have two Meteor projects which uses the same mongo database.

It seems that this is a better place to search for an answer or submit your question: https://forums.meteor.com/
It is not directly related to angular-meteor

@JohnAReid I agree with @Tallyb although I too would love to see a nice and good example of this.
Can you please open this on the Meteor forum and paste the link here for future usage?
thanks


Composite primary keys in relations populates foreign keys with incorrect values

Describe the bug
When using composite primary keys and relations, the ORM is sometimes choosing the wrong id to populate the values. For example, given an entity with a three-party PK: [A, B, C], the generated INSERT INTO statement will use [A_id, B_id, B_id] as the values, instead of [A_id, B_id, C_id].
I don't have a clear enough understanding of what all conditions trigger the issue, but I've reproduced the issue with a unit test
Reproduction
https://github.com/mikro-orm/mikro-orm/pull/5623
Produces error:
insert into something_that_belongs_to_something_that_belongs_to_something (tenant_id, something_id, something_that_belongs_to_something_id) values ('1', '2', '2') - SQLITE_CONSTRAINT: FOREIGN KEY constraint failed
ForeignKeyConstraintViolationException: insert into something_that_belongs_to_something_that_belongs_to_something (tenant_id, something_id, something_that_belongs_to_something_id) values ('1', '2', '2') - SQLITE_CONSTRAINT: FOREIGN KEY constraint failed
The insert should be
insert into something_that_belongs_to_something_that_belongs_to_something (tenant_id, something_id, something_that_belongs_to_something_id) values ('1', '2', '3')
Instead it is
insert into something_that_belongs_to_something_that_belongs_to_something (tenant_id, something_id, something_that_belongs_to_something_id) values ('1', '2', '2')
What driver are you using?
@mikro-orm/postgresql
MikroORM version
6.2.8
Node.js version
20.11
Operating system
macos
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Slack.
[X] The provided reproduction is a minimal reproducible example of the bug.

The issue is somewhere around line 531 in AbstractSqlDriver.ts
param is flattening row[prop.name], and row[prop.name] is a nested array [1, [1, 2], 3]
When flattened, param[idx] is 2 for index 2, when we actually want value 3

Changing line 533 from
const param = Utils.flatten([...row[prop.name] ?? prop.fieldNames.map(() => null)]);
to
const param = [...row[prop.name] ?? prop.fieldNames.map(() => null)];
fixes my issue, but I'm sure it breaks something else :D

The fix breaks the fixes for #3269 and #1687
I'll look into it more tomorrow, but I'm not sure how this was ever supposed to work - we're using the index from an unflattened array of fieldNames to get the value from a flattened array of values, when flatten does anything, the lengths will always be different and the indexes will not align

Here's a fix that doesn't break any existing tests, and passes the new test:
https://github.com/mikro-orm/mikro-orm/pull/5623/files
Bit of a brainfk so I'll try explaining tomorrow after coffee if everyone is as confused as I am, but the issue is that the "fieldNames" array is always a flat list, but their corresponding values was a nested array.  We need the values to be expanded so that they align with the fieldNames the first time we encounter a fieldName, but if it's used again in the same entity, it's value has already been added as a param, and expanding the value a second time could cause the field/value arrays to misalign.
The fix makes sure we only flatten the values for params that we're going to add, ensuring that they're always there the first time a field is encountered, but that they aren't duplicated if a field will be skipped as a dupe.


Skip.Test pipeline setting doesn't work correctly

If Skip.Test is set on the pipeline test run would only be skipped for that individual PR CI run but tests would still try to run as part of core - CI runs.
If there are breaking tests they would fail in core - CI runs and not in individual service runs.

@chidozieononiwu why did you set Skip.Test in https://dev.azure.com/azure-sdk/public/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=1578&view=Tab_History? That should never be used to disable tests, it is only used for testing pipeline changes.

I added that to unblock a preview release of the synapse library. The build was failing because they did not have any tests and their service was purely code generated. It was supposed to be temporary. I will go ahead and undo that.

Skip.Test has been removed from the synapse pipelines and we should not use that variable for disabling tests as @pakrym states that will just cause issues in other places like the core pipeline. We should disable the tests in the projects themselves not in the pipeline.


thread 'main' panicked at 'ioctl: Sys(EINVAL)'

Hi! Not sure if I'm doing something wrong here, as I'm not too versed in ioctl in general.
I built evscript and installed it using the instructions in the README in this repo, but running it seems to give me a panic. I'm using the stock xcape-like config that was provided in the README as well.
% cat ~/better_xcape.dyon
//! [events]
//! keys = ['ESC', 'LEFTSHIFT', '9', '0']
fn main() ~ evdevs, uinput {
    should_esc := false
    should_lshift := false
    should_rshift := false
    loop {
        evts := next_events(evdevs)
        for i len(evts) {
            evt := evts[i]
            xcape(mut should_esc, evt, KEY_CAPSLOCK(), [KEY_ESC()])
            xcape(mut should_lshift, evt, KEY_LEFTSHIFT(), [KEY_LEFTSHIFT(), KEY_9()])
            xcape(mut should_rshift, evt, KEY_RIGHTSHIFT(), [KEY_LEFTSHIFT(), KEY_0()])
        }
    }
}

% RUST_BACKTRACE=1 evscript -f ~/better_xcape.dyon -d /dev/input/event3
thread 'main' panicked at 'ioctl: Sys(EINVAL)', src/libcore/result.rs:916:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: __libc_start_main
  17: <unknown>

Would love to contribute but I'm not sure where to start trying to diagnose this. I see that EINVAL means that one of the parameters to the ioctl function was invalid but I'm not sure where to go from there.

Hi. A backtrace full of <unknown> is not very helpful :) Try building without --release (the binary will be in target/debug/evscript)

Thanks for the super-fast reply. Ah, I had no idea how I was supposed to get a useful backtrace, but that makes sense that I'd need to run a non-release version.
% RUST_BACKTRACE=1 ./evscript -f ~/better_xcape.dyon -d /dev/input/event3
thread 'main' panicked at 'evdev open(): Sys(EACCES)', src/libcore/result.rs:916:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::result::unwrap_failed
             at /build/rust/src/rustc-1.24.0-src/src/libcore/macros.rs:23
  10: <core::result::Result<T, E>>::expect
             at /build/rust/src/rustc-1.24.0-src/src/libcore/result.rs:809
  11: evscript::main::{{closure}}::{{closure}}
             at src/main.rs:255
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &'a mut F>::call_once
             at /build/rust/src/rustc-1.24.0-src/src/libcore/ops/function.rs:271
  13: <core::option::Option<T>>::map
             at /build/rust/src/rustc-1.24.0-src/src/libcore/option.rs:404
  14: <core::iter::Map<I, F> as core::iter::iterator::Iterator>::next
             at /build/rust/src/rustc-1.24.0-src/src/libcore/iter/mod.rs:1251
  15: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter
             at /build/rust/src/rustc-1.24.0-src/src/liballoc/vec.rs:1801
  16: <alloc::vec::Vec<T> as core::iter::traits::FromIterator<T>>::from_iter
             at /build/rust/src/rustc-1.24.0-src/src/liballoc/vec.rs:1713
  17: core::iter::iterator::Iterator::collect
             at /build/rust/src/rustc-1.24.0-src/src/libcore/iter/iterator.rs:1298
  18: evscript::main::{{closure}}
             at src/main.rs:255
  19: <core::option::Option<T>>::map
             at /build/rust/src/rustc-1.24.0-src/src/libcore/option.rs:404
  20: evscript::main
             at src/main.rs:252
  21: std::rt::lang_start::{{closure}}
             at /build/rust/src/rustc-1.24.0-src/src/libstd/rt.rs:74
  22: std::panicking::try::do_call
  23: __rust_maybe_catch_panic
  24: std::rt::lang_start_internal
  25: std::rt::lang_start
             at /build/rust/src/rustc-1.24.0-src/src/libstd/rt.rs:74
  26: main
  27: __libc_start_main
  28: _start

hmm, line 255 is opening the device (/dev/input/event3 that is, not uinput). Do you have permissions on the device? Try running as root. (I'd expect EACCES not EINVAL, but what else could it be…)

Yeah, it's behaving unusually. Do you think it's a permissions issue? I'm not doing anything unusual AFAICT, I'm on near-stock Antergos and haven't touched any permissions in /dev/*.
So running as my user gives me EACCES as far as I can tell:
% RUST_BACKTRACE=1 /home/kmost/evscript/target/debug/evscript -f /home/kmost/better_xcape.dyon -d /dev/input/event3
thread 'main' panicked at 'evdev open(): Sys(EACCES)', src/libcore/result.rs:916:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::result::unwrap_failed
             at /build/rust/src/rustc-1.24.0-src/src/libcore/macros.rs:23
  10: <core::result::Result<T, E>>::expect
             at /build/rust/src/rustc-1.24.0-src/src/libcore/result.rs:809
  11: evscript::main::{{closure}}::{{closure}}
             at src/main.rs:255
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &'a mut F>::call_once
             at /build/rust/src/rustc-1.24.0-src/src/libcore/ops/function.rs:271
  13: <core::option::Option<T>>::map
             at /build/rust/src/rustc-1.24.0-src/src/libcore/option.rs:404
  14: <core::iter::Map<I, F> as core::iter::iterator::Iterator>::next
             at /build/rust/src/rustc-1.24.0-src/src/libcore/iter/mod.rs:1251
  15: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter
             at /build/rust/src/rustc-1.24.0-src/src/liballoc/vec.rs:1801
  16: <alloc::vec::Vec<T> as core::iter::traits::FromIterator<T>>::from_iter
             at /build/rust/src/rustc-1.24.0-src/src/liballoc/vec.rs:1713
  17: core::iter::iterator::Iterator::collect
             at /build/rust/src/rustc-1.24.0-src/src/libcore/iter/iterator.rs:1298
  18: evscript::main::{{closure}}
             at src/main.rs:255
  19: <core::option::Option<T>>::map
             at /build/rust/src/rustc-1.24.0-src/src/libcore/option.rs:404
  20: evscript::main
             at src/main.rs:252
  21: std::rt::lang_start::{{closure}}
             at /build/rust/src/rustc-1.24.0-src/src/libstd/rt.rs:74
  22: std::panicking::try::do_call
  23: __rust_maybe_catch_panic
  24: std::rt::lang_start_internal
  25: std::rt::lang_start
             at /build/rust/src/rustc-1.24.0-src/src/libstd/rt.rs:74
  26: main
  27: __libc_start_main
  28: _start

, but running the same command as root gives me EINVAL.  Not too familiar with Rust either, to be honest, so I'm not sure why that would happen:
# RUST_BACKTRACE=1 /home/kmost/evscript/target/debug/evscript -f /home/kmost/better_xcape.dyon -d /dev/input/event3
thread 'main' panicked at 'ioctl: Sys(EINVAL)', src/libcore/result.rs:916:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: __libc_start_main
  19: <unknown>

hmm I can reproduce the exact same behavior on my Arch VM (including the unknown backtrace). I can see the backtrace in lldb though. It's ui_set_evbit.
Looks like the ioctl numbers are wrong for Linux, I'll fix that

Awesome! Looking forward to a fix. Thanks for the quick replies. :)

Try now (14f4aa8e4f096b7b836fbe1a9e7d285891b43661)

Works now when I run as root! :tada:
There's one error that gets emitted:
 --- ERROR ---
In `/home/kmost/better_xcape.dyon`:

Type mismatch (#200):
Expected `[]`, found `{}`
9,19:         for i len(evts) {
9,19:                   ^

I'm not familiar with dyon syntax either, but it seems to be working fine despite that syntax error.
One thing I'm noticing is a slight delay when pressing a button multiple times (eg, if you mash left-shift a few times, it takes a little while for all of the left parens to be inputted), but it looks like xcape has a similar delay on escape, so this might just be a hardware or an OS-level limitation?

Yes, this is fine, I get that error all the time, just ignore it.
Mashing shifts works instantly on my machine (in Weston). There are no additional delays, as soon as evscript receives the press event followed by the release event (without being interrupted by a repeat event), it presses the specified key.

Yeah, I figured, since I don't think I've seen xcape lag on other devices I've used either. I'll chalk it up to a hardware limitation!

You can use evemu to read events from that keyboard, see what's happening.


Move room data from JSON files to database

This feels important for unlocking some scripting capabilities. It's also fraught.
Challenge 1: This suggests we need our own editing environment. Some sort of minimal web-based JSON editor gated by roles (using Firebase auth, then checking for mod status)
Challenge 2: If a runtime script fucks with data, we need a way to reset everything to "pristine" state. One way to do this is to store the 'canonical' data in JSON (we probably want this regardless) and offer an admin button to reset it. An open question is whether there's additional value in having both a 'canonical' copy and a 'live' copy in the database, separate from disk.
Challenge 3: If we have 'canonical' data on disk, and runtime data in DB, what is our process for editing on staging and then PRing changes back onto git?

Closing #411, but copy/pasting what I wrote there:

Right now, editing room content requires committing data files to git. It'd be nice if room editing could happen in the browser, making it easier for non-programmers to contribute content to the production instance.
For the simplest version of this, a few things need to happen:

[ ] Right now, there are TS files that contain JSON room data. This data should be moved into CosmosDB, and read from there when we need to return room data
[ ] Build a simple web editor to manipulate those JSON blobs. This can be a standalone website (that ties into our exiting auth infrastructure) that renders a list of rooms, as well as an editable blob of JSON for a selected room with a "save" button (that calls an admin-authenticated server function that saves the new blob of data)

Potential next steps after this:

[ ] A proper web form with discrete fields a nicer experience than hand-typing JSON
[ ] Can we have syntax highlighting for our link syntax, and/or autocomplete for recognized rooms/etc when linking?
[ ] Similarly, syntax highlighting for Storyboard scripting
[ ] What is the conceptual best way to view this data? Are there helpful visualizations other than "a list of items that each shows a web form"?

This task is a large chunk of work, but it's a good standalone task for someone who wants to take on something meaty. The first step (refactoring room data to come from CosmosDB) will require touching existing server infrastructure, but the bulk of the task is building a standalone thing.

And after that:

I like the production JSON being static files.
An "edit mode" would be helpful for 2021.
Current thoughts: find a web service like Gists that let us edit JSON from the browser. A toggleable flag in an instance switches to loading JSON from an API. Might be tricky to support multiple files, but a single working file is probably ~fine.
Slightly more complex version: host our own Monaco editor, store in Redis, starting from disk files as a default. Push a button to download.

I think we need things to be in Monaco, since our priority is now "enable this to be dynamic" instead of simply "make editing simpler"

Brain-dumping here as I hopefully sit down to do this soon:

Each room is a Redis key that contains just its json, prefixed with room_ (e.g. room_theater)
Instead of returning a static "rooms" blob to clients on pageload, return current data for just that room when moveRoom is called (TODO: make sure this doesn't impact performance)
We have a separate 'editor' screen (maybe a separate HTML page, even?) that gates on admin
That editor has an 'import from disk' button that loads the version of JSON stored on-disk in repo
This editor screen has a list of room descriptions (run KEYS room_ in Redis to return all keys that start with room_)
Selecting a room opens its JSON in Monaco
There's a discrete save button (no auto-save for now) that dumps that back to Redis
There's a button in that UI to generate a .json file of all rooms, which can be manually saved to disk and updated in git

This then also opens up the road to dynamically changing each room at runtime

Worth noting: we currently can't integrate Monaco into our Parcel-based build setup. See https://github.com/microsoft/monaco-editor/issues/2966. This bug is currently tagged for fixing in the VS Code team's June 2022 milestone, but it's been bumped back from two previous monthly milestones, so it seems very likely it will get pushed back again.

This technically works! Separate from the TODO items to look into above, a list of things I suspect we may need in the future, pending people complaining:

[ ] What is our dev process for shared editing? Do I need to spin up a staging server?
[ ] File-level locks to show when someone else is editing a file? https://github.com/yjs/yjs would be the tool to investigate to see if real-time collab on a single file is possible, but don't get too yak-shaved
[ ] Switching back to Monaco when it's possible
[ ] Is it easy to add a JSON schema to Ace?
[ ] Can we have some custom linting or syntax highlighting for our Twine-like syntax?

Gonna close this for now and re-open issues as they arise


Allow overriding account_name from Stripe metadata

Use case:
Customer wants the account name displayed in Firezone different from the legal business entity name used on invoices.
Would be helpful to have an account_name metadata field override the one synced from Stripe customer.

I'm getting around this currently by changing the account name, generating the invoice, and then changing it back.


Don't drop the boomerang while it's being thrown

Fixes #28

While I would have preferred to make boomerangs not bug out when dropped, this is fine for now.


Flag for forcing output with colors when redirecting stdout

Currently MSBuild has nice and helpful command line colors. The colors help a great deal when scanning a long output manually.
However, when redirecting the MSBuild output, like when executing MSBuild from Jenkins for instance, the colors are automatically removed. In most cases this is a reasonable thing to do, because most text editors can't parse the ANSI escape characters.
However, there is flag that was made just for that (/clp:DisableConsoleColor).
It seems like the colors are removed only becuase the C# ConsoleColors API is not good enought, it throw an exception when used while STDOUT is redirected to a file.
I think it's not a good idea to make MSBuild spit ANSI escape characters at this points, becuase users are not expecting that when redirecting the output. But there is a room for a new flag that forces the colors.
Therefore, I suggested my Pull Request #458.

I'm not opposed to this entirely, but I'm a little worried that it's pretty corner case to implement in the standard console logger. Also if you want to write colorized file, it seems like using a logger that was aware of the output file format would be a much better choice than modifying the console logger and redirecting to a file. This would be very easy to implement in that way. Thoughts?

Implementing a new logger requires overriding the SetColor method which is defined as "internal static void SetColor (ConsoleColor c)". The code duploication in the BaseConsoleLogger.cs and ConsoleLogger.cs, makes it even harder.
It seems like there is a full support for colors in the default logger. However, the poor C# ConsoleColors API is throwing exception when used with redirection and all of the hard work that was done in order to generate these colors in the first place is lost.
The Jenkins + MSBuild environment is a very common one, everyone who uses it need to replace the default logger to get the data that is already in there.
It was quite hard for me to follow the trail of compiling to pinpoint what part is to blame for not having colors.
Colors are awesome, you want them in MSBuild.
BTW: Your Jenkins builds of MSBuild itself is so colorless for the same reason.

Sorry for the delay. We discussed this one at length in triage today. We really don't like that it re-implements what should be core .NET functionality and don't want to be in the business of doing that when possible.
However, we agreed that we'd like to take this change in this case. I like that you've refactored and reduced code duplication and made the change optional behind a feature flag. And I do agree this could benefit a lot of people on CI systems such as our Jenkins build.
Please reopen the pull request I think we had a few minor comments to address. Also keep in mind that master at this point would mean Dev15 (whatever is after Visual Studio 2015), not an update.

Thank you for taking the time addressing the issue.
I've reopened the pull request.
I too would like it if .NET had a working console color API, but it doesn't. I might open a pull request there, but it's more problematic as it won't be backwards compatible.
It's a bit unfortunate it won't make it to VS2015 SP2...


The current country is blocked by the API

Hello. I i install version 0.1.1 and dont use proxy. In proccess library return error "The current country is blocked by the API".
And i have another question. How to open web app. I use china proxy but when i click button on website nothing happen. In console i see error
Failed to launch 'mqqapi://...' because the scheme does not have a registered handler.

Hello. I i install version 0.1.1 and dont use proxy. In proccess library return error "The current country is blocked by the API".

It's currently working from here, which country are you running the requests from?

And i have another question. How to open web app. I use china proxy but when i click button on website nothing happen. In console i see error Failed to launch 'mqqapi://...' because the scheme does not have a registered handler.

I had the same problem in some cases, I'm not sure but it may happen when you're behind a proxy (in my case sometimes I go to the web app through Tor and maybe in these cases I had that problem). Maybe try changing browser or using no proxy


Bug: TypeError: collaborators.forEach is not a function

When trying to load an existing wireframe in excalidraw widget, I'm getting the $subject.
When inspecting, I could find out that the collaborators are stored as an object, instead of an empty array in App State. Therefore, the widget throws the $subject.

Hey, I would like to work on this bug can you please assign this to me?

It seems like this issue occurs due to the way I decode the base64 encoded appState to JS object, and not a project bug. Hence closing.

Hi @pavinduLakshan, how did you solve this issue?

how did this error you solved ?

@ashishrai8880 @salahzsh  - I'm not sure how exactly you're saving the appState, but I found when the collaborators were empty, I was getting an object rather than an empty array. So I changed my saving function to check first then save collaborators as empty array if needed

This is definitely still an issue, calling JSON.stringify(excalidrawApi.getAppState()) creates an object instead of an array for the collaborators entry. This is an Excalidraw issue, as the app state is clearly not being saved as the correct type.

I just replace an empty array to fix this issue.
<Excalidraw
  initialData={
    note
      ? {
          elements: note?.excalidraw?.elements,
          appState: {
            ...note.excalidraw?.appState,
            collaborators: [],
          },
          files: note?.excalidraw?.files,
          scrollToContent: true,
        }
      : undefined
  }
/>


chore(apple-pay): add error message to apple pay session failure

Description
Captures error messages for failing to start an Apple Pay session.
Contribution guidelines
For contribution guidelines, styleguide, and other helpful information please
see the CONTRIBUTING.md file in the root of this project.

:rocket: PR was released in v2.24.4 :rocket:


Can't see popover arrow in dark mode(Chrome and Safari)

As it is visible from my screenshot, I am viewing my app on localhost on Safari and I'm facing this issue on Chrome too.
Upon close inspection, I realized that the arrow exists but is not visible because it blends with the background. Is there a way to make the entire popover the same color
Here's the repo: https://github.com/assman/ticket-ionic

Which arrow is not visible again? It seems the same with light/dark mode in Chrome.

The one shown in this screenshot

@assman Add the following to your global scss
@media (prefers-color-scheme: dark) {
  .popover-arrow.sc-ion-popover-ios:after {
    background: var(--ion-item-background,var(--ion-background-color,#fff)) !important;
  }
}

Thanks for the issue. In order to change the color of the background/popover arrow, you need to set the --background CSS variable on ion-popover. You may, however, run into a scenario where your variable is being overridden (https://github.com/ionic-team/ionic/issues/17425), in which case you will need to use !important.


Finding the new Docs

Hi guys, I've been struggling finding any other Torrent lib for my project, and this one is the best option available.
I'm wondering where's the newest documentation of the site, this one is quite old, since the difference is almost 8 years-ish been left.
Thanks!

Things haven't  changed, so those docs are up to date!
The sample client is best.


Solution Testing - Prod/Test External

Description:
Complete full Integrated Test with the State Public Health Department.
Main Objectives & Tasks:

[x] Contact the State Public Health Department to setup testing with Production data in the Production environment.
[ ] Work directly with the State Public Health Department to complete Integrated Testing and gain approval to move into Production.

Current plans are to address steps required to begin A1H testing on the Thursday, 12/2/21 weekly sync call with CA.

12/2/21 - Had our kickoff meeting with CA for A1H testing.  Summary is:

CA will send results to LA and San Diego counties.
CA will require us to use the new centralized CLIA of CDPH000087.  I'll coordinate with @brick-green-agile6 on this.
CA wants to results going to their test environment.  @brick-green-agile6 will help me with this.
I must change the schema to use a default provider if the Provider ID/ NPI is blank.
Our target for the 1st production file for testing to CA is Tuesday, Dec 7th.  This is dependent on my schema changes making it into PROD and @brick-green-agile6 helping me with the centralized CLIA and routing of results to their test environment.

Committed to providing a list of required fields based on the existing A1H CSV file to help Simmi make sure she enters all required data on teh 20% of results that she enters by hand.

Postponed Tuesday, Dec 7th first PROD file upload to CA's test environment.  There was no Deployment last Thursday or Friday.

Provided Simmi with a version of her CSV file indicating which fields are required.  She needed this because 20% of her results will require manual entry, so this will help her make sure the data is correct.

Started schema changes for adding the default provider.

Email'd CA Dept Health about which CLIA# they want us to use for CSV file based results.  Also, working with Brick to setup new Feed to sent Prod/Test results to CA test environment.

Today's deployment is delayed until tomorrow the 8th.  The changes to add the default provider is scheduled for Thursday.
Ticket#: 3338 - @brick-green-agile6 is working on this ticket to add a new CA-test feed to capture and send all processing mode "T" and "D" to CA's test environment.  This should be completed by the Thursday 12/8/21 deployment.

Our system shows the file was send via SFTP successfully, but CA doesn't have it.  I've asked Brick to verify that it was sent, and to verify if central CLIA#: CDPH000087 was used.

12/10/21 - Brick verified my findings that the files are being sent.  CA responded late Friday that there is a delay on their side and that Optum may be able to verify if the results were received, and if there are any errors.

Optum verified that they are receiving the test file, but it is failing because the MSH.3.1 needs to be truncated to 20 characters.  @brick-green-agile6 is researching.

Brick has made the change to truncate the MSH.3.1 to 20 characters.  The test file was resent about 12p.  Email'd Optum twice and waiting on verification that they received the data.

3:36p CT - Vanessa confirmed receipt of the results.  She found missing patient phone #s.  We didn't send phone #s, so this is not a problem.  She received received all 5 results in Rhapsody, but only 4 made it into CalREDIE, so she is researching why.

Email'd CA regarding status on identifying the problem with the 1 result.  They are working on it, and stated they would reply in our email thread when they finished.

@rhood23699 thanks for all the updates in github. We have a call with CA tomorrow. I am sure the CSV upload topic will come up if we have not heard from them. Can you please make sure I am cc-ed on the emails as I don't see the email thread?

12/15/21 - CA confirmed that all results were accepted.  I email'd A1J asking them to send a Production file with PHI.

The test file failed with blank Patient County.  I'll modify the schema to allow blank Patient Counties.  I'll check with @brick-green-agile6 on whether or not the qualityFilter fail with a blank County.  CA says they will accept blank County.  I asked A1H to go ahead and send another test file even before the County change is made.

Waiting on the Patient County changes to be deployed, so I can ask Simmi to resend file.  Simmi as of right now, hasn't sent another test file.

Email'd Simmi asking if she will be able to send a file today?

I've asked Ming to contact Simmi about sending another test file.  Ming will let her know that we need a file after 1p ET tomorrow.  Ming believes Simmi may be able to send a file tonight, but Simmi may be traveling.

A1H sent a file last night, 12/20/21.  11 results were sent, but only 3 made it to CA.  I've email'd asking for the de-identified version of the A1H test file to confirm that an invalid equipment model name was the issue.  I've update @carlosfelix2 and @MauriceReeves-usds that this A1H test appears to confirm early findings outlined in Ticket #2616 stating that an invalid equipment model name doesn't show as an error to the Sender.  I'll followup to make sure everyone understands that this is a roadblock to moving A1H to production.

12/21/22 @jimduff-usds contacted me about the equipment model name problem.  We'll start work on this tomorrow at 12/23/21.

Simmi sent the de-identified file.  It confirms that the equipment model name was invalid on the 3 results.  She also stated that she would like our system to note only inform her of the problem, but block the entire file from processing not just the records that failed.  She states it will be easier for her to fix the records in the existing file and resubmit the entire file rather than create a new file with only the revised rows that error'd out.

A1H Update - Met with Carlos and JimD about the equipment model name problem.  Good and bad news.  First the good news, JimD gave me a schema workaround to make sure A1H files fail if the Equipment Model Name is blank.  I'll make the change and create a PR today.  Bad news, there is a bug and no quick fix for it.  If the Equipment Mode Name is invalid, A1H doesn't receive an error message; therefore neither A1H or CA knows results are missing.  There is a temporary workaround that would require someone to monitor A1H submission in Metabase; review Actions and identify the results excluded from the CA submission; and then contact A1H to have them re-submit only the rows with errors.
A1H test files have shown that most of the time when there is a bad equipment model name, it is caused because the value is blank; therefore A1H will receive the error message and be able to correct and re-send the file.  The problem is A1H does perform manual entry for some of their results, so if we proceed with testing and moving A1H to Production, someone will have to monitor Metabase and report errors to A1H, and A1H will have to agree to this temporary process.

12/23/21 - Both CAPHD and A1H agreed to move into production with the temporary solution of rejected blank equipment model name and then manually monitoring for invalid equipment model.  Closing this ticket and start Planning GO LIVE>


Fix #2055, Refactor doxygen mainpage into frontpage

Describe the contribution

Fix #2055
Also refactors how mission documentation is created to support the front page concept

Testing performed
Built doc, usersguide, osalguide and confirmed layout/contents
Expected behavior changes
None
System(s) tested on

Hardware: i5/wsl2
OS: Ubuntu 18.04
Versions: Bundle main + #2052 + this commit

Additional context
Hard to pull apart from #2052, so submitted on top.  30a4c4e835712955f6776a207678941950ac0a08 is the subject of this merge.  Will fail until #2052 dependencies are merged.
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

Ping @jia-j-lin

Thanks! Adding comment so I can be added as reviewer.

Ping @jia-j-lin

Thanks! Adding comment so I can be added as reviewer. @skliper

looks like we have to add you as a member of the nasa

Ping @jia-j-lin

Thanks! Adding comment so I can be added as reviewer. @skliper

Looks like we have to add you to the nasa org

Ping @jia-j-lin

Thanks! Adding comment so I can be added as reviewer. @skliper

Looks like we can't add you until you complete the :lock: this NAMS Request

Ping @jia-j-lin

Thanks! Adding comment so I can be added as reviewer. @skliper

Looks like we have to add you as a member of the nasa org; complete 🔒 this NAMS Request and select the "cFS" team

Thank you. I just submitted the request and waiting for approval now.


Add support for generating lint output

What type of PR is this?
/kind feature
What this PR does / why we need it:
This adds support for rendering validation errors into a simple "lint error format" (e.g. see errorformat), with the intention of piping the lint output to reviewdog to post PR comments pertaining to any validation errors.
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
This does pull in a new import, goccy/go-yaml. (I see it used in some other kubernetes projects)
I was unable to get the otherwise imported yaml packages to get accurate line numbers and have a way to search via field.
Does this PR introduce a user-facing change?

Adds a new output format, `--output lint`, that will render validation errors using the `%f:%l:%c: %m` 'errorformat', to be used with compatible lint tools.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

Example usage with reviewdog:
https://github.com/crandles/kubectl-validate-example/blob/2cd070ac781bd87eb2dd36a4c43ab942922bc6b2/.github/workflows/pr.yaml#L18-L23

I really like the direction, I'm very sad that we have to add 14k lnes of code just to be able to print filename:line:col:error. On the other hand, I realize that the current go implementation of the yaml loader doesn't give us line numbers. So at the end of the day I think this goes in the right direction.

Definitely agree. It's probably worth another attempt at pulling the line numbers out of one of the currently vendor-ed decoders. Perhaps I can at least share my failed attempt, if nothing else. Let me know if that would be valuable.
Happy to spend a little effort to get this right.

gopkg.in/yaml.v3, which is already imported, does support a way to decode yaml line numbers (see line/column fields): https://pkg.go.dev/gopkg.in/yaml.v3#Node, however it is not readily traversable.
There is no alternative for yaml.PathString that I can find for the gopkg.in/yaml.v3 package, so that code would need to be implemented. Given the existence of yaml anchors, you'd need a multi-step or recursive process. I believe this is when I turned to the goccy package which provided both capabilities.

https://pkg.go.dev/github.com/vmware-labs/yaml-jsonpath/pkg/yamlpath looks like the top alternative for easily traversing a yaml.Node


Unable to see events on the datagrid

We have applied your Production-Ready theme (no LESS compiling) to the MVC5 application. The layout is of 'Fixed Type'. We are using Datatable with Full Features component in one of the view.
The layout and rendering of datagrid looks fine. But no events (such as Column Sort, Search, Pagination etc.) are getting fired on the table. The grid remains unresponsive.
Please let know if any basic configuration seems missing at our end. We have included hierarchy of all AdminLTE folders as mentioned in documentation into the project.
Thanks in advance for your insight and the help in resolving the issue.
Regards,
Prasad Jaywant

Hello @ppjaywant
The Datatables plugin has its own set of plugins that you can find here. You need to include the JS files of any plugins you use. In your case, you may be missing the main datatables.js file which is located in AdminLTE/plugins/datatables/jquery.dataTables.min.js.

Dear Abdullah,
Thanks for writing to us on your suggestions.
We did have included all relevant source files including one below in your mail, in the .cshtml View page (attached for ready reference). Fyi, we are trying to call this View Page in Razor Engine of MVC5. It would be very helpful, if you could provide sample .cshtml (if you have any) depicting the code for running the datatable. The result at our end is still the same and we are exploring links given in your email.
Kindly let know if you observe anything disordered in the page code.
Thanks again for your kind attention,
Regards,
Prasad Jaywant
M:   +91<PHONE_NUMBER>
Tel: +91 22 25881781
Website: www.sparkinfotech.co
---- On Sat, 17 Oct 2015 05:30:24 +0530 Abdullah<EMAIL_ADDRESS>wrote ----
Hello @ppjaywant
The Datatables plugin has its own set of plugins that you can find here. You need to include the JS files of any plugins you use. In your case, you may be missing the main datatables.js file which is located in AdminLTE/plugins/datatables/jquery.dataTables.min.js.
—
Reply to this email directly or view it on GitHub.


This batch of changes makes the Vagrant box for OBP work again.

Major changes:

Make use of Vagrant 2 syntax
Make use of openjdk 7
Make use of downloaded maven version 3
Make use of Postgresql instead of H2 database
Make use of postgresql puppet module to configure postgresql
Clean up README

Awesome work. Thanks Pieter
Please squash you commits a bit together

Done

Hi Pieter,
Thanks very much for you commits!
Would you be happy to sign our contributors license agreement?
https://github.com/OpenBankProject/OBP-VM/blob/master/Harmony_Individual_Contributor_Assignment_Agreement.txt
If so, please either sign and send to us - or better still, commit a copy of the file in a new "contributions" folder with your Name and your ("non bot readable") Email address on it.
Thanks very much.
Best,
Simon

Simon,
I've added the contribution acknowledgement as requested.


Risk migration due to UI change

When user check books detail, there are some data need to calculated out and displayed as below:

NB of readers: how many users add this book into their bookshelf
NB of recommendations: how many teachers recommend this book to their teacher
NB of notes: how many notes users make for this book
NB of tests: how many tests users perform for this book (ONLY refer to certified tests)
Average rates: to calculate out average rates from all users who review this book
Books reference: to display hot books (refer to NB of readers) by sorting globally

The types of subjective questions as below:

整合分析, 推理判断, 作出评价, 深入解读, 自我反思

Teacher could like books

The more people like the books, the much "hot" the books will be
When students search books, they will get a list of the most recommended books based on NB of teachers' likes.

@zdp207 : please check types of subjective questions
@jerrywalker0435 : please evaluate the impact about "Teacher could like books"


Release Date in Retired Items

When we retire an item in Together we have a template set to say:
"The last live version of this item is available in the ?????? release of the NHS Data Model and Dictionary."
When the CR is to be incorporated we use GrepWin to add the release date as we do not know that at the time of production.
Some CRs have a large number of retired items, e.g. the Renal Data Set Retirement CR so this needs to be automated.
James thinks this can be done via Mauro so has asked me to create an issue for him to investigate.

@jamesrwelch to pick up. Not urgent until we move to Migration stage.

James can do this in the Orchestrator.

Can the full text we have now be added to the template?
We then add the date (??????) prior to incorporation.
This item has been retired from the NHS Data Model and Dictionary.
The last live version of this item is available in the ?????? release of the NHS Data Model and Dictionary.
Access to this version can be obtained by emailing<EMAIL_ADDRESS>with "NHS Data Model and Dictionary - Archive Request" in the email subject line.

Also, @jamesrwelch , we have discussed this before, where does the "Retired date" come from?

15/2/22 - still required.

I have retired Radiotherapy Treatment Course in Mauro in CR8000.
It is now not showing in the list of NHS Business Definitions on the preview:

Or in the "All Items Index" list:

Where is the item? Do we have to move it?

28/2/22 - Discussion with James: drop the "Retired Date" from the profiles.

28/2/22 - we need folders for retired items as the retired text will only display on the preview / website.
DMDS will provide alternative text to "The last live version of this item is available in the ?????? release of the NHS Data Model and Dictionary."

Need to check with Maxine about the retired date and the Ontoserver.

@jamesrwelch - Cath and I have a had chat and suggest the new wording for retired items:
This item has been retired from the NHS Data Model and Dictionary.
Access to the last live version of this item can be obtained by emailing<EMAIL_ADDRESS>with "NHS Data Model and Dictionary - Archive Request" in the email subject line.

The issue with retired dates has been moved to #421.


⚠ Bofrost.be has degraded performance

In a036997, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2633 ms

Resolved: Bofrost.be performance has improved in 5974b7e.


When will the code be released?

Hello, great work! I am eager to know when the code will be released as I can't wait to try it out.

+1

+1

We will release the code on GItHub soon. Meanwhile, you can try our Hugging Face demo https://huggingface.co/spaces/PAIR/HD-Painter

+1

+1

Thank you for your interest. We have released the code.

demo not working, runtime error.

@rahulsimran6969 Thank you for your comment. We fixed the demo. It is back to live on HF.


Single Responsibility Principle: an example to include/translate for the slides

http://www.slideshare.net/kindblad/the-sngle-responsibility-principle

Solved in 44c4ecac0921a9f1c39fa4cababd5a2008965ebf


Update websocket API usage in line with Lichess changes

Lichess4545 uses a Lichess API websocket and it will stop working

need to add query parameters to the WS URL: ?sri=<randomString>&api=1

random string should be unique to each connection and have the format \w{12}

endpoint will change: it becomes /socket/v4?sri=<sri>&api=1

WS request must have a user-agent header containing lichess4545

Locations of use:

Monitoring games
https://github.com/cyanfish/heltour/blob/53ef09f8744b684e9537c4a965b871a64d39ca32/heltour/api_worker/worker.py#L41

TV
https://github.com/cyanfish/heltour/blob/06f00fdd64f78816865f2c14a5391b16f8a86ac5/heltour/tournament/static/tournament/js/tv.js#L19

OK nevermind that. We'll keep /api/socket for BC and security. User-agent would still be nice to have.


[QUESTION] Send message to specific subscribers

How can we send message to only connections which are subscribed to specific topic exmple/topic?
Below code is sending message to all connections, which are not subscribed to that topic,  I would like to send message to only connections which are subscribed to exmple/topic :
                            // Send to subscribers
                            foreach ($server->connections as $sub_fd) {
                                if ($sub_fd != $fd) {
                                    $server->send(
                                        $sub_fd,
                                        V3::pack(
                                            [
                                                'type' => $data['type'],
                                                'topic' => $data['topic'],
                                                'message' => $data['message'],
                                                'dup' => $data['dup'],
                                                'qos' => $data['qos'],
                                                'retain' => $data['retain'],
                                                'message_id' => $data['message_id'] ?? '',
                                            ]
                                        )
                                    );
                                }
                            }

Is there something available in Swoole or, Do I have to manage the state myself? like for example I can store in DB each new connection and then compare before sending.

You need to store the subscription connection information yourself


gromacs: 2022.3 -> 2022.4

Description of changes
Bigfix release https://manual.gromacs.org/current/release-notes/2022/2022.4.html
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

LGTM, everything builds nicely with nixpkgs-review.


fix(diff_against): support diffing against deleted records

This modifies diff_against to compare against records when history_type is -.
Description
When determining the record value for comparison, check if the history_type corresponds to a deletion. Use the value None if the record corresponds to a deletion record.
Related Issue
Closes #1307
Motivation and Context
In our application, we use diff_against to identify changes between records. A deletion was not detected as a change by diff_against.
How Has This Been Tested?

An added unit test checks comparisons in both directions:

comparing a deleted record to a created record
comparing a creation record to a deleted record

Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have run the pre-commit run command to format and lint.
[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] I have added my name and/or github handle to AUTHORS.rst
[x] I have added my change to CHANGES.rst
[ ] All new and existing tests passed.

@ddabble I noticed that you ran CI on this PR. Thank you! Do you mind reviewing this PR?
Only the CI jobs running against Django's main branch are failing, due to seemingly unrelated failing uniqueness constraints. What else do I need to do to get this PR in mergeable shape?

Sure, thank you for the PR! 😊
I'm not sure this is the best way of solving the issue, as how would a user know that the value None means that the object has been deleted, and not that a nullable field has simply been changed to None?
I agree that changes and changed_fields being empty when diffing a deleted record against an earlier one, is slightly unintuitive, but having them contain None for all fields, also introduces ambiguity between diffs of deleted objects and diffs of  objects whose fields have all been set to None. One could argue that the ambiguity is removed by simply checking the nullability of the objects' fields, but it's just as easy for the user to check the history_type of the historical record...
Any thoughts on this? 🙂 (In any case, it's clear that the docs should be updated to explain what to expect when diffing a deleted object, at the very least :))


Question: Do you need to close connections that are drawn from pool?

Lets say for an example I have the following code.
package main

import (
        "github.com/fzzy/radix/extra/pool"
)

func main() {
        // Initialize connection pool
        pool, err := pool.NewPool("tcp", "someaddr:6379, 10)
        defer pool.Empty()
        // ...
        client, err := pool.Get()
        defer client.Close()
}

In this example, is it necessary close the connection which has been drawn from the connection pool?
So I am defer client.Close even though I have drawn the connection from a pool, is this still necessary?

You definitely don't want to close the connections, actually. The idea of a connection pool is that you keep around a number of open connections that are ready to be used at any moment, so every time you need a connection you don't incure the cost of creating a new one. Instead of closing the connection, you will want to put it back in the pool.
On another note, this version of radix is no longer supported, there's a v2 which is actively supported, and which also has a much more convenient implementation of a connection pool. I highly recommend you check that one out.
Thanks!