JAVA solution for ALGO EASY-7 ISSUE #478

Solved issue #478
In Language- JAVA

[x] Updated README Link
[x] Added code with comments

Thanks for contributing!

Why are the python solutions here?

Those were the commits I had made for the last issue that was assigned to me. I can't seem to remove them from this PR.
Please advice how to remove them from this PR.

@mustang519 https://stackoverflow.com/questions/36168839/how-to-remove-commits-from-a-pull-request

I am unable to remove the previous commits , after trying the various methods given in the shared link.
Do I make a new PR ? But there also the previous commits are appearing. How to resolve this issue?

It is good practice to create a new branch for each PR. You can make a fresh copy by forking again and cloning it, and then adding the solution(s) and making a new PR.

Alright . I am making a new PR and adding the solutions. Thank you

You said to fork this repo once again , does that mean I can delete my existing forked repo and fork and clone again?
@adityabisoi Please confirm this Sir

@mustang519 Although it's not a good idea, you can do it.

I had already tried cloning in a different location. And added the codes in that . But there I was unable to push the changes , to make a PR.
The previous extra commits which are , have already been merged by you . Please advice what I should do

@mustang519 Head over to the Gitter channel

I'll ask in the general channel?

Or DM


Placing a Bookmark Node into my Workflow Causes GUI Canvas to Freeze

As the title says, when I place an rgthree Bookmark into a workflow, the entire Comfy canvas locks up and I am unable to move around the screen, zoom, or click on any nodes. Without the bookmark, the workflow runs fine.
Earlier today (9/19/2024), everything was fine. When I came back later in the night, it was no longer working.
Initially, I thought it was the entire rgthree node pack, but I was able to narrow it down to just the bookmarks (as far as what I am using) that causes my issues. I am able to still use rgthree Image Compare and Power Lora Loader nodes without issue.

I have the same issue.

Can someone file a bug with Comfy FrontEnd? Sounds like they may have broke something and I won’t be able to look into it soon.

This was just fixed in ComfyUI Front-end version: 1.2.60
https://github.com/Comfy-Org/ComfyUI_frontend/releases/tag/v1.2.60

This was just fixed in ComfyUI Front-end version: 1.2.60
https://github.com/Comfy-Org/ComfyUI_frontend/releases/tag/v1.2.60

I confirm that today's Comfy update seems to have resolved the issue. Closing this ticket, now.


Final GameLogic design. Logic wired up

Final GameLogic design finished and wired up to console UI. Further testing of the code will be revealed later on.

Testing will be needed further. Approving for now.


support binlog for rename operator

Related to #37031 and #38034.
Support binlog for rename operator

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

Because the reason of version compatibility, adding new field in TableInfo is not permitted. Just close the PR


BoundingBox check that it is before maniphandler in components list

Changes

Fixes: #4546 by adding a check in OnValidate

Verification

Checked that bug is fixed
Verify that HandInteractionExampleScene works

/azp run mrtk_pr

Closing in favor of approach in #5086 which doesn't require people put maniphandler and boundingbox in specific order, but instead has ManpulationHandler ignore colliders using InteractiveColliderContext component.


ARCA integration

Overview
ARCA (Augmented Reality Capture) integration into MRToolkit. ARCA allows you to build an ARKit-enabled version of your app for iOS ARKit enabled devices, so they can witness what HoloLens users are experiencing. They can even record straight from their phones.
Features
•	Spatial synchronization of Holograms, so phones see holograms where HoloLens see’s them.
•	Network auto-discovery for adding ARKit enabled devices to a session. All networking is implemented using Unet.
•	Automatic session handling, so users are added to the correct session (when multiple HoloLens sessions run on the same network).
•	iOS support (ARKit enabled devices).
•	Multiple iOS guests.
•	Recording of Video + Holograms + Ambient sound + Hologram Sounds.
•	Share sheet so you can Save the Video, email it, or share it with other supporting apps.
•	Switches elegantly between platforms in Unity Editor.

Expecting features！！

@jerrygg just updated overview with features

Any chance we'll see this in the dev branch?  That's really where new and experimental features should go.

@StephenHodgson, This will go into the Dev branch as well.

Per conversation with @keveleigh, removing Blocked tag added by @davidkline-ms regarding inclusion of ARKitPlugin

@StephenHodgson , totally understandable and I agree. It is, however, the direction that the HoloLens platform team opted for.

Will there also be support to do networking with the Sharing Service?

not in this release.

I think the name conflicts with Companion Spectator View is a pretty big issue. Lots of people use it and I can see this causing lots of confrustion (yes its a made up word for Confusion and Frustration 🤣)

Just a note: Test compatibility with 5.6


fix(repodb): make table reset syncronous for consistent testing

Signed-off-by: Laurentiu Niculae<EMAIL_ADDRESS>
What type of PR is this?
bug

Which issue does this PR fix:
What does this PR do / Why do we need it:
I have added a fix for table reset when we are testing dynamo wrapper for repodb. Now the reset should be synchronous because we wait for the table to be created.
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Replaced by https://github.com/project-zot/zot/pull/1111


Strong mode fixes and more

Enable strong mode, add static type check fixes
Sort signature parameters lexicographically. Many OAuth providers expect this, ex. Upwork authentication doesn't work unless your keys in ABC order.
Fixed bugs in test/ files
Remove check for contentLength when sending a body; the http package doesn't send one, which means that POST requests are always considered "improperly signed."
Sort parameters lexicographically in the server implementation as well.

All tests are passing, but it might also be a good idea to enable Travis CI or similar CI for this repo?
Thanks in advance.

Great question. I don't remember, either; however, it seems like some OAuth providers sort them alphabetically as a means of canonicalizing how they accept the parameters. Other than this, I don't see a defined order in the OAuth spec, and the order in which this package sends keys might not be the order in which other servers expect it.
I'll test this out against other OAuth providers to see what happens. It might result in me implementing this functionality as a flag, i.e. sortAlpha

So I think the spec actually says to sort parameters: https://tools.ietf.org/html/rfc5849#section-<IP_ADDRESS>.2
But it also seems we already sort things: https://github.com/erincandescent/oauth.dart/blob/3e0211da298b6f563f09527c9bfa555989a098ad/lib/src/core.dart#L119
So I'm curious as to why we need to use a SplayTreeMap here. Do servers need the parameters in sorted order? Maybe other servers aren't sorting them as they're supposed to?

The issue is that with the current code, when query or body parameters are
added, those aren’t necessarily sorted.
A SplayTreeMap is the easiest way to ABC sort Maps in Dart, AFAIK.
TLDR; in the current state of this library, parameters are not always ABC
sorted
On Sat, Apr 14, 2018 at 7:05 PM Erin<EMAIL_ADDRESS>wrote:

So I think the spec actually says to sort parameters:
https://tools.ietf.org/html/rfc5849#section-<IP_ADDRESS>.2
But it also seems we already sort things:
https://github.com/erincandescent/oauth.dart/blob/3e0211da298b6f563f09527c9bfa555989a098ad/lib/src/core.dart#L119
So I'm curious as to why we need to use a SplayTreeMap here. Do servers
need the parameters in sorted order? Maybe other servers aren't sorting
them as they're supposed to?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/erincandescent/oauth.dart/pull/11#issuecomment-381366976,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJiKPOYUEyJUCzuD5N59krTRZukXb2Ghks5tooCugaJpZM4TB52_
.

Ping @erincandescent

Ping

Ping
Anything we can do about this?

@erincandescent Hope everything is all right on your end.

For anybody else who was planning to use OAuth 1.0 in Dart, I’m hard forking this library, after 9 months of inactivity on this PR.


Upgrade grpc to 1.43.0 and netty to 4.1.61.Final

What is the goal of this PR?
We silence false-positive grpc stream errors by upgrading grpc and netty. This propagages work started by  https://github.com/vaticle/dependencies/pull/339.
What are the changes implemented in this PR?

Upgrade grpc to 1.43.0, and use its transitive requirement netty 4.1.61.Final

Note: all TypeDB Cluster CI jobs will fail because it hasn't been upgraded to the latest TypeDB Core.


Deploy beta version

[x] deploy to netlify - call server etoro or ewallet or etorowallet. branch 593-apply...
env: production network, etorogun-prod, etoro-server-production,web3:etoro.gooddollar.org
[x] check register/claim/send working
[x] check issue with claim. maybe downgrade to web3-1.0.0@beta-55
[x] verify web3 integration working, ie login token, web3 token
[x] verify mongo lock working
[ ] check paperclip market is working in iframe correctly on IOS
[x] check etoro specific settings are working after change network=etoro

wait when paperclip market set correct script before </body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.0/iframeResizer.contentWindow.min.js"></script>
need for ios and safary


Problems of reusing processed graph.

❓ Questions & Help
Hi. I want to know how to reuse the local graph.
I made a dataset and save all the processed graph at local. And all worked successfully. But the second time when I call the dataset, the graph processing will not be done again because it's already there. And I can use the .get() to get all the graph.
However, the dataset is showing like
xxDataset(0)
And when I am using dataloader
loader = DataLoader(izone, batch_size=1, shuffle=False)
for data in tqdm(loader):
        output_1 = model(data)

The data will not show at this place and codes didn't work.
So I want to know how to reuse the processed graph. Thanks

Can you show the (minimal) implementation of your dataset? There seems to be a mistake somewhere.

class UDataset(Dataset):
    def __init__(self, root, transform=None, pre_transform=None):
        self.len = 0
        super(UDataset, self).__init__(root, transform, pre_transform)

    @property
    def raw_file_names(self):
        return []
    @property
    def processed_file_names(self):
        return ['/home/kaka2nd/UI/UI-processed/graph']

    def __len__(self):
        return self.len

    def download(self):
        pass

    def process(self):
        index = 0
        for single_graph_no in tqdm(sub_df['graph_no'].unique()):

            data = Data(x=node_features, edge_index=edge_index ,edge_attr = edge_feature )

            torch.save(data, self.processed_paths[0] + 'data_{}.pt'.format(index))

            self.len +=1

    def get(self, idx):

        data = torch.load(self.processed_paths[0] +  'data_{}.pt'.format(idx))
        return data

izone = UDataset('/home/kaka2nd/UI/UI-processed/')
All file in my disk is like
graphdata_0.pt, graphdata_1.pt.......

And sub_df is a dataframe

So, this should basically work, expect that self.len = 0 is never updated, and hence your dataset does not contain any examples. You should set __len__ dynamically based on the number of files in your folder.

Thanks very much. That's the problem.


⚠ Processors has degraded performance

In 59ea677, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 54 ms

Resolved: Processors performance has improved in dfdfc69.


newer nb/nbviewer does not display plot from R kernel (but nb 3.0 does)

The following notebooks displays a plot when I open them in a local notebook server (v3.0, chrome, win7), but not in nbviewer:

with [...]around the uuencoded (png) data: http://nbviewer.ipython.org/gist/JanSchulz/f8ce78434a65717d6783.
without [..] around the uuencoded (png) data: http://nbviewer.ipython.org/gist/randy3k/07d5a3b7db6defae7f87

According to https://github.com/IRkernel/IRkernel/issues/89#issuecomment-94281726 it also does not display in a notebook server v3.1 and v4-dev
Not sure what's the problem is here: does the R kernel has to split the lines as the python kernel does it? The display_data spec is kind of silent how to format the data: https://ipython.org/ipython-doc/dev/development/messaging.html#display-data
CC: @randy3k (original bugreport)

I see the plot when I open that file in the live notebook dev version.
I wonder if some of the nbconvert code assumes that text/plain is always present? The Python kernel will always offer a plain text repr, and I think we expect that to always exist, though we may not have written that down.

Actually, that can't be it, because you can use e.g. display_png() in IPython and that displays without a text/plain format.

I think this is an nbconvert issue. I can reproduce it on master by doing ipython nbconvert --to html plot_not_visible.ipynb. There's no error message.

Aha, I think I see it. application/pdf is given a higher priority in the HTML output than SVG or PNG for some reason, so it tries to display that, but there's no block in the template to display pdf data. I think reordering the display priority should fix it.

See jupyter/jupyter_nbconvert#5

Ok, that means the nbviewer one is dealt with (damn, I was actually writing the issue in that project but switched here before hitting submit). Thanks!
Also thanks for confirming that it is visible in the dev notebook and it's therefore not the formatting of the uuencoded data. Back to step one... :-/

Update: it seems that I misunderstood "print preview" and the Jupyter "File -> Print Preview" uses nbconvert in the background -> so it seems that this is both fixed by jupyter/jupyter_nbconvert#5.
Thanks a lot!

Yep, our own 'print preview' menu item uses nbconvert to convert to static HTML.


Creating UTM Virtualized Ubuntu VM

Discussed in https://github.com/utmapp/UTM/discussions/5044

Originally posted by Pikishti February 20, 2023
Hello everyone,
I am having issues with the booting of a VM that uses Ubuntu. I am using the UTM app in an M1 Macbook Pro. In the image you can see the settings for the VM machine and also the issue I am getting when trying to start it.

Has anyone ever experienced this issue? How can I fix it?

Check this blog: https://askubuntu.com/questions/954042/why-does-computer-show-device-mapping-table-on-efi-shell-after-ubuntu-installati
It is similar to what you are experiencing

You can also type: exit on the prompt you are given and then select boot manager and start from the virtual disk named SATA 0x0 (on the top right of the boot manager)
Then you should be able to start ubuntu normally.
If that doesn't work you try to reinstall ubuntu on another virtual machine


Fix goreleaser version

The goreleaser builds were not populating the headscale version (accessible via the version subcommand on the cli) properly, because the flag wasn't set correctly. This commit fixes that.

err, sorry I didn't pull to the latest first, I will make a new PR


Investigate static code analysis tools

What?
Investigate adding more static code analysis (SCA) tools to repos.
Why?
SCA tool scans improve code quality and security, and it give confidence the code in the repo when the community sees such tools being used.
How?
For Java, standard SCA tools are PMD and SpotBugs.  We probably want to select a security SCA for Java as well, there are a few of them.
For Javascript, we should evaluate what we currently have and decide if it would be good add any.
SCA tools should be part of CI and status checks on PRs.  These tools should be runnable by a dev on their local machine too.
Acceptance Criteria
SCA tools are runnable locally, CI, and PR status checks.
Related Issues

Here is a list on OWASP for Static Code Analysis Tools: https://owasp.org/www-community/Source_Code_Analysis_Tools
It's a long list, but I think investigating semgrep and sync-code would be worthwhile for static security scanning.

Here are a couple more security scanning services to investigate:
OpenSSF Security Card: https://securityscorecards.dev/
Google deps security scanning service: https://deps.dev/

SonarQube Cloud Update: yesterday, I logged into SonarQube Cloud (sq) using GitHub, and realized that sq would need to import the eclipse-pass org from github.  I thought this would be an issue since EF is the owner, so I opened an EF ticket asking for guidance (https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5447).
This morning, they imported the eclipse-pass github org into sq.  I asked them to add pass-core, pass-support, and pass-ui as projects in the sq eclipse-pass org.  I have been poking around on the site, and it looks like it provides some good analysis.
In those three repos, on any open PRs in github, you will see a sonarcloud comment with a report of the analysis.  There is a status check it linked to the sonarcloud report too.  I assume we want this, but we can discuss if we want this disabled.
You can login to sq cloud and checkout the analysis.  https://www.sonarsource.com/products/sonarcloud/signup-free/.   Login using the GitHub option.  Then go to https://sonarcloud.io/organizations/eclipse-pass/projects?sort=name
Since all of our repos are public, the analysis pages on sq are available to the public too (anyone can read them, I assume this is ok).  We are also on the Free plan right now because our repos are public.
Things I'm going to do today:

Check over the reported issues, especially the Security ones.
Dive a bit deeper on the other issues to see how relevant/valuable they are
Test the IDE integration with sq cloud

In general though from what I have seen so far, I think sq would be a good option for SCA for eclipse-pass.  It reports code complexity/issue and bug patterns, but also produce security issues and code coverage reports.  More analysis is needed, but it is looking promising. (edited)

SonarQube Cloud (sq) Analysis
https://www.sonarsource.com/products/sonarcloud/
Opened ticket with EF who imported the eclipse-pass organization into sq, and added pass-core, pass-support, and pass-ui as projects for scanning running on the Free plan since our projects are public.  Here is the link: https://sonarcloud.io/organizations/eclipse-pass/projects?sort=name.  You connect using the GitHub Login option.
Sq provides the following services:

Produces several kinds of analysis on the main branch and opened PRs being merged to the main branch.  The analysis covers code quality, possible bugs, security, code coverage, and duplication.  See here for a description https://docs.sonarsource.com/sonarqube-cloud/improving/main-branch-analysis/#measures-categories
UI for reviewing all Issues.  Each issue gives a severity and explains why it is an issue and how to fix it.  Best way to understand this is to browse the Issue tab in one of the projects Main branch and click on a few to get a feeling.
When a PR is opened in any of the corresponding repos, sq automatically runs analysis and posts a comment on the PR with the results.  A status check is also added to the PR. https://docs.sonarsource.com/sonarqube-cloud/improving/pull-request-analysis/

Limitation: Analysis only runs on PRs merging to main branch

Automatic syncing of github users to sq eclipse-pass org.

Limitation: Free plan says the limit is 5 members, but we currently show 9 members, so not sure where/how enforced.

Has default/recommended Sonar way Quality Profiles and Quality Gates.  Quality Profiles are rule sets by language.  Quality Gates are the criteria that must be matched to be deemed production ready. https://docs.sonarsource.com/sonarqube-cloud/standards/overview/

Limitation: Quality Gates and Quality Rules cannot be modified on the Free plan, only Sonar way defaults apply

There are plugins available for IDEs where you can sync your IDE with the project in sq and see how code changes affect sq analysis in realtime.  This seemed to work well with IntelliJ.

Limitation: Taint vulnerabilities cannot be reanalyzed in the IDE. They only get reanalyzed when the change is merged to main.  However, these kinds of vulnerabilities seem to be the exception

Free plan

Since our repos are Public, they are running under the Free plan right now.  https://docs.sonarsource.com/sonarqube-cloud/administering-sonarcloud/managing-subscription/subscription-plans/#comparison-table.  I pointed out some of the limitations of this plan above.  However, Sonar says they are coming out with a new OSS plan in 2025 that enriches the Free plan.  https://www.sonarsource.com/company/press-releases/sonar-announces-new-free-tier-of-sonarqube/

Want to confirm what the 5 member limitation implies.  I see in our sq eclipse-pass org, there are 9 members, so want to know where/how does the restriction apply.
The default Sonar way Quality Gates/Quality Rules may be too stringent.  As noted, it is not possible to customize this in the free plan. If we find we can't work with the Sonar way gates and rules, we can revisit.  However, they seem ok imo.

Conclusion
I feel comfortable recommending SonarQube cloud for our SCA/Security analysis. The setup was simple, the analysis is relevant, the IDE plugin works well, and it seems to be widely used.  The only caveat to this are the points above about some of the limitations of the Free plan.  However, we can see how much we gain from the new OSS plan they are releasing in 2025.

@rpoet-jh This analysis looks really good! When I researched SonarQube for the Code Coverage analysis this platform was highly suggested from a lot of different sites. I agree that the straightforward setup and seamless integration with GitHub make SonarQube Cloud a good choice, and the fact we can use it to ingest the code coverage reports from JaCoCo would be a benefit as well. The automatic analysis of PRs and the UI for reviewing issues would be really nice for us.
I agree we should investigate some more about the 5 user limitations, but otherwise I think the benefits greatly outweigh the limitations on the free tier plan. They also sound dedicated to open source community projects which is a plus.


[RFC][Relay] Port Relay passes to pass manager

Port Relay Passes to Pass Manager
As the pass manager framework has been merged, we should start to move passes to the pass manager. This RFC proposes the plans to move the Relay passes.
Proposal (take constant folding as an example):
The proposal needs to solve problems from both the backend and the frontend. As this could be a lot of refactoring work, we will mainly focus on the API changes of the pass functions first, but leave others (like resolving dependency) as follow-up work.
C++ Backend
The C++ backend implements the functionality of a certain pass as the pass_func for module_pass and function_pass, i.e. constant folding in this example. Some passes are passed with a Module to identify global vars and/or help report errors, but others are not.

Pass Module to every pass, or have a global Module? When Module is not passed, we can call GetModule, like FromExpr. For backward compatibility, we can default it to null. Therefore, users can still invoke the pass as before. All frontend converters should return a module as well.
Previously, many passes are not aware of PassContext. We probably should pass PassContext into a pass so that the internal context, e.g. ErrorReporter, can be used by each pass.
How can a pass provide the frontend with the most convenient API so that it could be invoked easily?

class ConstantFolder : public ExprMutator {
 private:
  PassContext pass_ctx;
  // Other members are omitted..
};

Expr FoldConstant(const Expr& expr, const PassContext& ctx) {
  return ConstantFolder(CreateInterpreter(...), ctx).Mutate(expr);
}

TVM_REGISTER_API("relay._ir_pass.FoldConstant")
.set_body([](TVMArgs args, TVMRetValue *ret) {
	PassContext ctx = args[1];
	if (!ctx.defined()) {
		ctx = PassContext();
	}
    *ret = FoldConstant(args[0], ctx);
});

Python frontend
Python frontend performs the following tasks

Link to a pass function, i.e. ir_pass.fold_constant
Register the pass using flattened pass info, e.g. opt_level, name, and required passes.
Setup PassContext when necessary. Otherwise, the backend will create it.
Create a module for pass execution if it is not passed.
Have an API to invoke pass functions in different manner?

The old style invocation, mypass(mod/expr), depending on the type of pass, e.g. ir_pass.fold_constant(expr)
Through pass manager

	# Create a module for all passes?
        mod = relay.Module({})

	# Method 1, Use decorator:
	@ir_pass.function_pass(opt_level=opt_level, name=pass_name)
	def mypass(expr, ctx):
		class Transform(ExprVisitor):
			def __init__():
			def __call__(expr, ctx):
		return Transform(expr, ctx)
	mypass(mod)

	# Method 2, pass registered passes directly:
        pass_func = ir_pass.fold_constant
        cf = ir_pass.function_pass(pass_func, opt_level=2, name=”FoldConstant”, required=[])
 	cf(mod)

Next Steps

One pass may call another pass directly. We should setup the required field and resolve dependencies. After that, this pass should be able to access the returned analysis/optimization results.
How to represent a Pass using pass info, particularly pass name. To resolve pass dependency, we may only have the required passes. We then need to create theses pass and execute them.

@jroesch @tqchen @MarisaKirisame @wweic @icemelon9 @yzhliu @slyubomirsky

I had talked to @jroesch , and we think that there is two thing: the function (what we currently have), and the pass.
the pass is essentially a function from (Module, PassContext) to Module (yes, only Module), while the function can has different form - it may take an expr, or it may take a module, or even more info, etc.
the pass also should probably be done in C++, as we have the C++ build system merged recently.

For anyone who is interested in this, please comment. We appreciate your thoughts and suggestions. @MarisaKirisame and I will start working on it once we get some cycles.

consolidate to #3202


Slicing of raw data throws (new) error

Hi,
I recently upgraded anndata and now have a hard time slicing raw data.
I am trying to get the expression values of a single gene from the adata.raw data, and so far it worked via adata.raw[:,gene_name].X. However, now it throws,
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-112-a6fcd8ac0202> in <module>
----> 1 adata.raw[:,'Ezr'].X

~/.local/lib/python3.6/site-packages/anndata/_core/raw.py in __getitem__(self, index)
    111         if self._varm is not None:
    112             # Since there is no view of raws
--> 113             new._varm = self._varm._view(self, (vidx,)).copy()
    114         return new
    115

~/.local/lib/python3.6/site-packages/anndata/_core/aligned_mapping.py in copy(self)
     84         d = self._actual_class(self.parent, self._axis)
     85         for k, v in self.items():
---> 86             d[k] = v.copy()
     87         return d
     88

~/.local/lib/python3.6/site-packages/anndata/_core/aligned_mapping.py in __setitem__(self, key, value)
    148
    149     def __setitem__(self, key: str, value: V):
--> 150         value = self._validate_value(value, key)
    151         self._data[key] = value
    152

~/.local/lib/python3.6/site-packages/anndata/_core/aligned_mapping.py in _validate_value(self, val, key)
    212                 f"value.index does not match parent’s axis {self.axes[0]} names"
    213             )
--> 214         return super()._validate_value(val, key)
    215
    216

~/.local/lib/python3.6/site-packages/anndata/_core/aligned_mapping.py in _validate_value(self, val, key)
     50                 right_shape = tuple(self.parent.shape[a] for a in self.axes)
     51                 raise ValueError(
---> 52                     f"Value passed for key {key!r} is of incorrect shape. "
     53                     f"Values of {self.attrname} must match dimensions "
     54                     f"{self.axes} of parent. Value had shape {val.shape} while "

ValueError: Value passed for key 'PCs' is of incorrect shape. Values of varm must match dimensions (1,) of parent. Value had shape (1, 40) while it should have had (21725,).

Any idea what I am doing wrong or is there a new way how to do this?
Thanks in advance!

This might be related to you adata being a view. Can you make an actual object using adata.copy()? Sorry that views still seems buggy. Will work on it!

Hey,
thanks for getting back so quickly!
I tried
adata2=adata.copy()
adata2.raw[:,'Ezr']

Still same error message.
I am not sure if my adata is a view.
type(adata)

returnsanndata._core.anndata.AnnData, so it seems to be a normal anndata object.

Thank you! Can reproduce

This is for copy and paste (@ivirshup)
a = anndata.AnnData(np.ones((4, 3)))
# a.varm['PCs'] = np.ones((3, 3))  # uncommenting this line generates the error
a.raw = a
b = a.raw[:, '0']

Three solutions:

downgrade to anndata 0.6.22.post1 (scanpy will run with the old anndata).
delete the PCs from your raw object del a.raw.varm['PCs']
store the raw object as an additional adata_raw = adata.raw.to_adata() and unset it adata.raw = None
wait for Isaac to fix the bug!

Sorry, 0.7 is still an rc and it was an omission to have it in the Scanpy requirements. It's not actually required by Scanpy 1.4.5. We'll fix this with a post-release.

Please create a reproducible example that uses only publicly available data (optimally just some ndarrays and/or DataFrames created on the fly)
AnnData(<insert_code_here>).write('test.h5ad')

Yeah it’s that “We don’t have views of Raws” bug:
https://github.com/theislab/anndata/blob/cb382437a38ec49b68faafb8463d2490007876de/anndata/_core/raw.py#L111-L113
This shouldn’t use “self”, but instead a hypothetical RawView.

Thanks! I will try it out later!


path to scenes gt for -mapping in create_train_dataset

Hi,
First of all, thank you very much for this work.
I have a question that may be a bit silly, but I couldn't find an answer. Indeed, I would like to run the code corresponding to create_train_dataset here , however I can't understand how to fill the mapping_fn parameter : could you tell me what is /path/to/scenes/gt please ? :) I really don't have any idea which file to put...

It is the file with ground truth for a given video.
It is created e.g. here https://github.com/soCzech/TransNetV2/blob/master/training/consolidate_datasets.py#L206.

Thank you for your answer

excuse me, have you re-implemented this network? could you please tell me how to solve this problem ? tensorflow.python.framework.errors_impl.InvalidArgumentError: Exception encountered when calling layer "bn" (type BatchNormalization).
input must be 4-dimensional[1,100,27,48,64] [Op:FusedBatchNormV3]
Call arguments received by layer "bn" (type BatchNormalization):
• inputs=tf.Tensor(shape=(1, 100, 27, 48, 64), dtype=float32)
• training=False
thank you very much


controller: Misc prepared query cleanups

Just a bit of renaming, formatting and preparing some left over queries.

LGTM


Add Location History support

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Add option to import Location History from a CSV file, below the information to be imported:
Latitude, Longitude, Date
Describe alternatives you've considered
No alternative solution found.
Additional context
No

I never worked with a location entity. Is it possible to show the existing history of a location entity in a graph? I am wondering how the location is stored in the database, can you please check and provide the information?

No feedback since two months, closing issue


Combine signals from BT, NaN and Beacon if originating from the same drone

The ESP32 HW is capable of transmitting BT4, BT5, NaN and Beacon simultaneously. This will show up as three separate drones in the list view though.
For Bluetooth, the receiver code can use the MAC address of the BT4 signals and match against the MAC address of the BT5 signals and combine the two. This happens already in the Android driver layers somewhere. This is not possible to combine with Wi-Fi. The Android NaN API doesn’t even give out the MAC address (just some auto-generated unique number) and the Beacon MAC is unlikely to be the same as the BT MAC. It seems that the NaN number doesn’t even stay fixed.
Try to see if it is possible for the app to scan e.g. the serial IDs and combine the received signals from BT, NaN and Beacon into a single drone item.

Has there been any update on this please?


Router does not work after update to 4.0.14

Version
4.0.14
Reproduction link
jsfiddle.net/posva/3yq6ojLv/5
Steps to reproduce
Use
"vue-router": "4.0.14",

What is expected?
Routing works
What is actually happening?
Routing does not work

Today I updated to v 4.0.14 and routing suddenly stopped working, showing no errors in console. When I switch back to 4.0.13, routing works. Sorry about not posting minimal reproduction, but the project is secret. I am using the router in the most basic way, without any custom features.

Duplicate of https://github.com/vuejs/router/issues/1338


catalog page redesign

related: https://github.com/rancher/rancher/issues/20602
https://xd.adobe.com/view/c1a93038-6113-43c1-628b-781b5c952fd8-b798/

@lvuch failing because of a lint error. Can you fix that?


Fix image upload bug on the web form

In the web form, when I upload an image, the image is not displayed.
Note: The default silhouette is shown every time, the correct image may not be sent correctly.

closed with 40e3488fc8c98476ecf59816fbc67fcbadc44b15


Can you add torbox support with torrentio ?

Love torrentio, since RD is gone can you add torbox to it ? Thank you.

#184


fix t8n tool errors

What was wrong?
Some edge cases were not handled properly by t8n
Related to Issue #773
How was it fixed?

Fix bug to accept state fork ConstantinopleFix instead of Constantinople
Update evm tools tests to use GeneralStateTests fixtures
Handle invalid transactions without crashing the t8n tool.
Handle a couple of testing edge cases.

Cute Animal Picture

Codecov Report
Patch coverage: 80.21% and no project coverage change.

Comparison is base (03f0204) 74.06% compared to head (d4cde00) 74.06%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #797   +/-   ##
=======================================
  Coverage   74.06%   74.06%
=======================================
  Files         571      571
  Lines       31721    31726    +5
=======================================
+ Hits        23494    23498    +4
- Misses       8227     8228    +1

Flag
Coverage Δ

unittests
74.06% <80.21%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/ethereum/arrow_glacier/fork.py
0.00% <0.00%> (ø)

src/ethereum/arrow_glacier/utils/message.py
0.00% <ø> (ø)

src/ethereum/arrow_glacier/vm/__init__.py
0.00% <0.00%> (ø)

...ereum/arrow_glacier/vm/instructions/environment.py
0.00% <0.00%> (ø)

...c/ethereum/arrow_glacier/vm/instructions/system.py
0.00% <0.00%> (ø)

src/ethereum/arrow_glacier/vm/interpreter.py
0.00% <0.00%> (ø)

src/ethereum/berlin/fork.py
93.83% <ø> (ø)

src/ethereum/berlin/utils/message.py
96.00% <ø> (ø)

src/ethereum/byzantium/fork.py
95.67% <ø> (ø)

src/ethereum/byzantium/utils/message.py
94.73% <ø> (ø)

... and 95 more

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Problem with diagrams dependency and zlib

This is related to https://github.com/obsidiansystems/obelisk/issues/1068
I encountered the same problem with zlib. Even after following the steps mentioned in the issue, I still run into problems when using ob run AND nix-build. When I try to use nix-build, the zlib issue reappears, because I need a frontend dependency in the backend executable. If I remove this dependency, I can't run the frontend app. I also tried serving the compiled frontend.jsexe statically, but without success.
Here's my default.nix:
{ system ? builtins.currentSystem
, obelisk ? import ./.obelisk/impl {
inherit system;
iosSdkVersion = "16.1";
# You must accept the Android Software Development Kit License Agreement at
# https://developer.android.com/studio/terms in order to build Android apps.
# Uncomment and set this to `true` to indicate your acceptance:
# config.android_sdk.accept_license = false;

# In order to use Let's Encrypt for HTTPS deployments you must accept
# their terms of service at https://letsencrypt.org/repository/.
# Uncomment and set this to `true` to indicate your acceptance:
# terms.security.acme.acceptTerms = false;

}
}:
with obelisk;
project ./. ({ pkgs, hackGet, ... }: {
android.applicationId = "systems.obsidian.obelisk.examples.minimal";
android.displayName = "Obelisk Minimal Example";
ios.bundleIdentifier = "systems.obsidian.obelisk.examples.minimal";
ios.bundleName = "Obelisk Minimal Example";
overrides = self: super: {
frontend = super.frontend.overrideScope (self: super: {
fsnotify = pkgs.haskell.lib.dontCheck (self.callHackage "fsnotify" "<IP_ADDRESS>" {});
zlib = pkgs.haskell.lib.dontHaddock (super.zlib.override { zlib = null; });
});
backend = super.backend.overrideScope (self: super: {
frontend = super.frontend;
zlib = pkgs.haskell.lib.dontHaddock (super.zlib.override {
zlib = pkgs.zlib;
});
});
};
})
Any suggestions or ideas on how to resolve this?

I don't fully understand. Is this dependency only needed in the backend? Or
is it needed in both backend and frontend? If only the frontend, did you
try using the if-statements I mentioned, so that the dependency won't build
on the frontend, but only the backend? It's strange that you have the same
issue when using ob run.
On Wed, Sep 4, 2024, 21:09 Alexandre Garcia de Oliveira <
@.***> wrote:

This is related to #1068
https://github.com/obsidiansystems/obelisk/issues/1068
I encountered the same problem with zlib. Even after following the steps
mentioned in the issue, I still run into problems when using ob run AND
nix-build. When I try to use nix-build, the zlib issue reappears, because I
need a frontend dependency in the backend executable. If I remove this
dependency, I can't run the frontend app. I also tried serving the compiled
frontend.jsexe statically, but without success.
Here's my default.nix:
{ system ? builtins.currentSystem
, obelisk ? import ./.obelisk/impl {
inherit system;
iosSdkVersion = "16.1";
You must accept the Android Software Development Kit License Agreement at
https://developer.android.com/studio/terms in order to build Android apps.
Uncomment and set this to true to indicate your acceptance:
config.android_sdk.accept_license = false;
In order to use Let's Encrypt for HTTPS deployments you must accept
their terms of service at https://letsencrypt.org/repository/.
Uncomment and set this to true to indicate your acceptance:
terms.security.acme.acceptTerms = false;
}
}:
with obelisk;
project ./. ({ pkgs, hackGet, ... }: {
android.applicationId = "systems.obsidian.obelisk.examples.minimal";
android.displayName = "Obelisk Minimal Example";
ios.bundleIdentifier = "systems.obsidian.obelisk.examples.minimal";
ios.bundleName = "Obelisk Minimal Example";
overrides = self: super: {
frontend = super.frontend.overrideScope (self: super: {
fsnotify = pkgs.haskell.lib.dontCheck (self.callHackage "fsnotify"
"<IP_ADDRESS>" {});
zlib = pkgs.haskell.lib.dontHaddock (super.zlib.override { zlib = null; });
});
backend = super.backend.overrideScope (self: super: {
frontend = super.frontend;
zlib = pkgs.haskell.lib.dontHaddock (super.zlib.override {
zlib = pkgs.zlib;
});
});
};
})
Any suggestions or ideas on how to resolve this?
—
Reply to this email directly, view it on GitHub
https://github.com/obsidiansystems/obelisk/issues/1094, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BIP4YRLA6QVIROYYMT4LT23ZU5LINAVCNFSM6AAAAABNU6S4ZOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYDMMBYHE2DGNY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@walseb  I managed to get it working for the other packages, but I can't do the same with the frontend in the backend executable. The backend fails to build because it tries to rebuild the frontend (I tried to stop this by making a frontend drv, but this was a bad idea), and that triggers the same zlib issue again.
The conditional fix worked for packages in the frontend, but now the backend is causing problems.
The problem happens here:
executable backend
main-is: main.hs
hs-source-dirs: src-bin
ghc-options: -Wall -O -fno-show-valid-hole-fits -threaded
-- unsafe code
-Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields
-- unneeded code
-Widentities -Wredundant-constraints
if impl(ghc >= 8.8)
ghc-options:
-Wmissing-deriving-strategies
if impl(ghcjs)
buildable: False
build-depends: base
, backend
, common
, obelisk-backend

@romefeller There should never be a ghcjs build of backend happening, so the conditionals in the backend.cabal are probably indicative of another problem. Also frontend cannot have fs-notify or zlib in their dependency closure. If you need that you have to redesign your app. Maybe you can fix that by moving the dependencies from common to backend?
Generally building the exe builds the backend with ghc and the frontend as ghcjs.


Fix typo in README

was merged in last version (commit: 1b6ee16 ). Thanks a lot ! And sorry for the very long delay.

Cool!


p2p: replace network id with genesis id

part of: https://github.com/spacemeshos/pm/issues/135
depends on: https://github.com/spacemeshos/go-spacemesh/issues/3505

remove NetworkID from configuration
initialize p2p.Host with genesis id (pass it to handshake.New)
replace field in handshake message https://github.com/spacemeshos/go-spacemesh/blob/develop/p2p/handshake/handshake.go#L45 and relevant test

Why not to use genesis id in the handshake and remove network id as was discussed in the Lane's spec?

Its just naming difference at this point - genesis ID is used as the network id. I think this is compliant with Lane's spec

It reduces genesis id to 4 bytes. This is just some strangeness honestly, can we do a straightforward thing

Yeah, we can do that. Thanks for the input


add jitsi room password to scene

Thoughtline MVP

Jitsi token added https://github.com/conix-center/arena-account/issues/31


Yii2 still lose PDOConnection error codes on some functions

Following up my comment from here : https://github.com/yiisoft/yii2/issues/18203#issuecomment-1163184592
Similarly to what used to happens on SQL queries, https://github.com/yiisoft/yii2/blob/079ca8f647a9592c3269e0d4dec164f3533e1409/framework/db/Connection.php#L647 and https://github.com/yiisoft/yii2/blob/079ca8f647a9592c3269e0d4dec164f3533e1409/framework/db/Command.php#L272 are still casting the SQL error code to an INT which loses data in case of DB timeout.
What steps will reproduce the problem?
Generating any Connection error will result in this behaviour (Internet loss, timeout, etc)
What is the expected result?
HYT00
What do you get instead?
0
Additional info

Q
A

Yii version
2.0.44

PHP version
8.0

Operating system
MacOS

Do you have some time to prepare a pull request fixing it?

@samdark Sure, I can make a PR later this week.


A column not show/hide based if a value is true/false and state set

Hello,
My issue is with a column which should be hide or be shown when a value is set to true or false.
In my code I can select a site as a usingLocation.
When this is selected I should show the column distance but if there is no selection by default display is false.
I tried an with display true/false I can show/hide the column but with a state value not and not sure what I'm doing wrong.
Expected Behavior
The column distance should shown when usingLocation === true and should be hide by default as usingLocation === false
Current Behavior
The column does not anything either hide or shown.
Steps to Reproduce (for bugs)
const [usingLocation, setLocation] = useState(null);
const columns = useMemo(
    () =>
        'Id',
        'City',
        {
          name: 'Distance',
          display: !!usingLocation,
        },
      ].filter(v => v !== null),
    [sites, site],
  );

There are not real steps just try to use a simple table with memo() and pass a state false/true.
The column should display when usingLocation is true and hide when false.
Your Environment

Tech
Version

Material-UI
^4.9.13

MUI-datatables
^3.7.3

React
16.14.0

browser
Chrome

etc

Hello,
I already solved I just forgot to add a dependency as I was using memo
[tes, site, extraDependency]


Add testcases, mock server and documentation for testing

Purpose
Include comprehensive testcases to test the connector with both live and mock environments.
Changes

Configure Mock and Live Server Setup: Set up environment configurations for live and mock servers.
Mock Server Implementation: Added a mock server with endpoints for create, get and delete assistants, threads, messages and create and retrieve a run.
Test Cases: Implemented test functions to validate the behavior of each endpoint, ensuring the correct response type is returned
Include the updated dependencies
Add a comprehensive documentation on running tests

Lets rename mock_server.bal as mock_service.bal.


error: Failed after retrying 5 times: {"message": "Endpoint request timed out"}

Occurs when attempting to upload ~200 files
also:
error: Failed after retrying 5 times: {"message": "Internal server error"}
I'm thinking a potential issue is API rate limit exceeded, or perhaps something with Lambda function concurrency

Thanks, I've seen this happen sporadically. I think you're right about the causes. I'm thinking I will tweak the way uploads are processed, putting them in a real queue (SQS) so they can be handled a bit better.

I like the SQS approach - seems like a good one.  I'm thinking CloudWatch Logs should show if API rate limits are exceeded, if Lambda is handling the uploads and is writing to CloudWatch.  Interesting that HTTP error codes are not being passed, which could be helpful in troubleshooting.


Test fixtures parsing improvements

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/4480

All fixture parsing code moved to the test_utils crate.
ra_ide::MockAnalysis uses metadata from fixtures

Btw, maybe it's worth to consider rename test_utils to ra_test_utils?

bors r+

Btw, maybe it's worth to consider rename test_utils to ra_test_utils?

FWIW, I am thinking about going in the other direction and removing ra preffixes, they don't seem to add a lot of value, and things like hir:: are important to use withotu prefixes


A distortion of depth data when mapping depth to point cloud

I generate a point cloud from raw depth data, but there is a distortion, seems like a pillow-shaped distortion. Due to my program needs to support multiple kinds of rgbd cameras, so I cannot use the function generate_point_cloud(depth_image, xy_table, point_cloud, &point_count);, which will change the function map_depth_to_point() for intel real sense, and Artec scanner. So, I wanna ask if I can map depth to a point cloud by intrinsics.
I already use the undistort example from https://github.com/microsoft/Azure-Kinect-Sensor-SDK/tree/develop/examples/undistort, but it cannot solve the problem.
Here is my code:
bool rgbd_kinect_azure::map_depth_to_point(int x, int y, int depth, float* point_ptr) const
{
double fx_d = 1.0 / intrinsics->param.fx;
double fy_d = 1.0 / intrinsics->param.fy;
double cx_d = intrinsics->param.cx;
double cy_d = intrinsics->param.cy;
// set 0.001 for current vr_rgbd
double d = 0.001 * depth * 1.100;
//solve the radial and tangential distortion
double x_distorted = x * (1 + intrinsics->param.k1 * pow(intrinsics->param.metric_radius, 2.0) + intrinsics->param.k2 * pow(intrinsics->param.metric_radius, 4.0) + intrinsics->param.k3 * pow(intrinsics->param.metric_radius, 6.0));
double y_distorted = y * (1 + intrinsics->param.k4 * pow(intrinsics->param.metric_radius, 2.0) + intrinsics->param.k5 * pow(intrinsics->param.metric_radius, 4.0) + intrinsics->param.k6 * pow(intrinsics->param.metric_radius, 6.0));
x_distorted = x_distorted + 2.0 * intrinsics->param.p1 * x * y + intrinsics->param.p2 * (pow(intrinsics->param.metric_radius, 2.0) + 2 * pow(x, 2.0));
y_distorted = y_distorted + 2.0 * intrinsics->param.p2 * x * y + intrinsics->param.p1 * (pow(intrinsics->param.metric_radius, 2.0) + 2 * pow(y, 2.0));
point_ptr[0] = -1.f * float((x_distorted - cx_d) * d * fx_d);
point_ptr[1] = float((y_distorted - cy_d) * d * fy_d);
point_ptr[2] = float(d);
return true;
}
Thanks very much for your consideration!

For understanding easily, I would like to give more details as follows:
win 10 10.0.18363 + VS2019 + 64-bit + SDK 1.4.1
in the following figure, it is a scan of the wall of my office, here should be a rectangle wall as the red arrows' direction, but here are distortion at two ends of this scan as the blue arrows show, if I use generate_point_cloud(), it would be correct, but if I use my own map_depth_to_point(), the distortion happens. I wonder what kind of filter or mapping algorithm is applied in generate_point_cloud().

For understanding easily, I would like to give more details as follows:
win 10 10.0.18363 + VS2019 + 64-bit + SDK 1.4.1
in the following figure, it is a scan of the wall of my office, here should be a rectangle wall as the red arrows' direction, but here are distortion at two ends of this scan as the blue arrows show, if I use generate_point_cloud(), it would be correct, but if I use my own map_depth_to_point(), the distortion happens. I wonder what kind of filter or mapping algorithm is applied in generate_point_cloud().

I also have this issue when getting pointcloud using intrinsics.

I also have this issue when getting pointcloud using intrinsics.

Do you solve it?


feat: Update deprecated code documentation and documenter snapshot

Description
Standardise the deprecation documentation of our APIs, to accurately parse this information in the components definitions and display the deprecation notice in the website.
Will need to come after the respective documenter changes: https://github.com/cloudscape-design/documenter/pull/17
How has this been tested?
Locally symlink the documenter changes (https://github.com/cloudscape-design/documenter/pull/17) to generate the new snapshot.

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates.
Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
Changes do not include unsupported browser features, see CONTRIBUTING.md.
Changes were manually tested for accessibility, see accessibility guidelines.

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

Changes are covered with new/existing unit tests?
Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Build, lint and test / build / build tests will fail until new documenter dependency is pulled.


[Feature]: Try to extract a generic controller using IDF schedules

Feature 🚀
Try to extract a generic controller using IDF schedules
Motivation
Rule-based controllers are essential as a reference point in experiments. The point is that each building may have different rules for acceptable performance. It is possible that there is some way to implicitly extract a rule-based controller from the schedules in the IDF files. This is worth investigating.
Solution
A controller could be extracted from environment, for example:
import sinergym
import gym

env=gym.make('Eplus-demo-v1')
# This reads IDF file and construct a rule-based controller somehow
controller=env.get_rule_controller()
obs=env.reset()
action=controller.predict(obs)
env.step(action)
...

Checklist

[x] I have checked that there is no similar issue in the repo (required)

EDIT
As I tell in PR #212 . I have decided that it is a better option to implement together the actions and observations spaces in the tool (Big Update). So that when an empty action space is configured, it takes the default IDF controller implicitly. Therefore, I reference here the issue #103 .


Remove uhdm-integration packages

This PR removes uhdm-integration-* packages as they were using not compatible version of Surelog (different version of Surelog was used to compile yosys/verilator and different version of Surelog was downloaded as part of uhdm-integration package).
Now Surelog is part of verilator-uhdm and yosys-uhdm packages directly.
Signed-off-by: Kamil Rakoczy<EMAIL_ADDRESS>

It seems like surelog should be a package that both these packages depend on?

No, you shouldn't install verilator-uhdm and yosys-uhdm in the same environment (but it is possible, it will just override surelog version).
The problem is, both verilator-uhdm and yosys-uhdm can be compiled with different version of Surelog (not necessary current master revision) and the same version of the Surelog needs to be provided in the tool conda package, otherwise corresponding tool will Segmentation fault on reading UHDM file.
We can't depend on the same version, e.g. master or currently built version in the CI (as it was in uhdm-integration-* packages) of the Surelog in both of these packages as it will result in above problem.


File History

What's the Problem?
Windows has a build in "File History" feature which allows users to backup or roll back to previous versions of files. The problem is the File History UI was probably last updated when it was released (Windows 8) and the UI looks very ugly.

Solution/Idea
An updated and modern File History UI in the Files app.
Alternative solution
Make a custom version of File History which has the ability to backup files, and/or sync files to folders, and/or restore backed up files.
Priorities
No response
Files Version
Latest
Windows Version
Windows 11 Pro 21H2 22000.675

@42Mockingjay thank you for your feedback, we don't currently have plans to implement this in Files.


Vulnerability roundup 84: fontforge-20190413: 1 advisory

search, files

[ ] CVE-2019-15785 CVSSv3=9.8 (nixos-20.03)

Scanned versions: nixos-20.03: 82b5f87fcc7. May contain false positives.

See also: #73631

The CVE is for fontforge 20190813 to 20190820. The version mentioned here is 20190413, so it's not affected :)

Disagree, see https://github.com/NixOS/nixpkgs/issues/73631#issuecomment-643155880

But maintainer says in https://github.com/NixOS/nixpkgs/issues/88291#issuecomment-632376760 that CVE-2019-15785 is not relevant for us. Closing.


Feature/ddw 198 extend react polymorph autocomplete to complete selection using space key

Adds event handler for space key in the Options.js _handleKeydown method.
Improves comments for better readability in _handleKeyDown.

@nikolaglumac Maybe I was suppose to select you as a reviewer before making the PR, sorry about that.

@MarcusHurney we should wait with the merge of this PR until this one is merged: https://github.com/input-output-hk/react-polymorph/pull/53

@MarcusHurney could you also rebase this PR too like you did on this one: https://github.com/input-output-hk/react-polymorph/pull/58
Thanks!

@nikolaglumac
~ convoluted commit history obliterated ~
As Napoleon once said, 'What is history, but a fable agreed upon?”


Docker container crashes on fresh install

I'm trying to run taxonworks locally but not able to. I had it working in February but now when I try the app server crashes:
app_1      |  rake aborted!
app_1      | PG::ConnectionBad: could not connect to server: No such file or directory

I have removed existing docker containers and volumes and rebuilt images, with no luck.
Any assistance would be appreciated.
Describe the bug
app_1 docker container crashes when running docker-compose with a fresh install.
To Reproduce
Steps to reproduce the behavior:

When I check out taxonworks git tag v0.11.0
Then I run docker-compose build
And I run docker-compose up
Containers start, app_1 encounters and error and exits

Logs
db_1       | The files belonging to this database system will be owned by user "postgres".
db_1       | This user must also own the server process.
db_1       |
db_1       | The database cluster will be initialized with locale "en_US.utf8".
db_1       | The default database encoding has accordingly been set to "UTF8".
db_1       | The default text search configuration will be set to "english".
db_1       |
db_1       | Data page checksums are disabled.
db_1       |
db_1       | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1       | creating subdirectories ... ok
db_1       | selecting default max_connections ... 100
db_1       | selecting default shared_buffers ... 128MB
db_1       | selecting dynamic shared memory implementation ... posix
db_1       | creating configuration files ... ok
db_1       | running bootstrap script ... ok
db_1       | performing post-bootstrap initialization ... ok
db_1       | syncing data to disk ... ok
db_1       |
db_1       | Success. You can now start the database server using:
db_1       |
db_1       |     pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1       |
db_1       |
db_1       | WARNING: enabling "trust" authentication for local connections
db_1       | You can change this by editing pg_hba.conf or using the option -A, or
db_1       | --auth-local and --auth-host, the next time you run initdb.
db_1       | ****************************************************
db_1       | WARNING: No password has been set for the database.
db_1       |          This will allow anyone with access to the
db_1       |          Postgres port to access your database. In
db_1       |          Docker's default configuration, this is
db_1       |          effectively any other container on the same
db_1       |          system.
db_1       |
db_1       |          Use "-e POSTGRES_PASSWORD=password" to set
db_1       |          it in "docker run".
db_1       | ****************************************************
db_1       | waiting for server to start....2020-05-15 14:42:04.080 UTC [44] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1       | 2020-05-15 14:42:04.094 UTC [45] LOG:  database system was shut down at 2020-05-15 14:42:03 UTC
db_1       | 2020-05-15 14:42:04.098 UTC [44] LOG:  database system is ready to accept connections
db_1       |  done
db_1       | server started
db_1       |
db_1       | /usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/postgis.sh
db_1       | CREATE DATABASE
db_1       | UPDATE 1
db_1       | Loading PostGIS extensions into template_postgis
db_1       | CREATE EXTENSION
db_1       | CREATE EXTENSION
db_1       | CREATE EXTENSION
db_1       | CREATE EXTENSION
db_1       | Loading PostGIS extensions into postgres
db_1       | CREATE EXTENSION
db_1       | CREATE EXTENSION
db_1       | CREATE EXTENSION
app_1      |
app_1      |  Found config/database.yml
app_1      | psql: could not connect to server: No such file or directory
app_1      | 	Is the server running locally and accepting
app_1      | 	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
app_1      |
app_1      |
app_1      |   !!!!!!!!!! Building a new taxonworks_development database !!!!!!!!!!
app_1      |
db_1       | CREATE EXTENSION
db_1       |
db_1       | 2020-05-15 14:42:06.880 UTC [44] LOG:  received fast shutdown request
db_1       | waiting for server to shut down....2020-05-15 14:42:06.882 UTC [44] LOG:  aborting any active transactions
db_1       | 2020-05-15 14:42:06.883 UTC [44] LOG:  worker process: logical replication launcher (PID 51) exited with exit code 1
db_1       | 2020-05-15 14:42:06.889 UTC [46] LOG:  shutting down
db_1       | 2020-05-15 14:42:07.010 UTC [44] LOG:  database system is shut down
db_1       |  done
db_1       | server stopped
db_1       |
db_1       | PostgreSQL init process complete; ready for start up.
db_1       |
db_1       | 2020-05-15 14:42:07.089 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
db_1       | 2020-05-15 14:42:07.089 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1       | 2020-05-15 14:42:07.096 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1       | 2020-05-15 14:42:07.109 UTC [81] LOG:  database system was shut down at 2020-05-15 14:42:06 UTC
db_1       | 2020-05-15 14:42:07.161 UTC [1] LOG:  database system is ready to accept connections
webpack_1  | npm WARN app No repository field.
webpack_1  | npm WARN app No license field.
webpack_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
webpack_1  | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
webpack_1  |
app_1      |  rake aborted!
app_1      | PG::ConnectionBad: could not connect to server: No such file or directory
app_1      | 	Is the server running locally and accepting
app_1      | 	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
app_1      | /usr/local/bundle/ruby/2.6.0/gems/pg-1.2.3/lib/pg.rb:58:in `initialize'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/pg-1.2.3/lib/pg.rb:58:in `new'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/pg-1.2.3/lib/pg.rb:58:in `connect'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-postgis-adapter-6.0.0/lib/active_record/connection_adapters/postgis/create_connection.rb:38:in `postgis_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:889:in `new_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:933:in `checkout_new_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:912:in `try_to_checkout_new_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:873:in `acquire_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:595:in `checkout'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:439:in `connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_adapters/abstract/connection_pool.rb:1121:in `retrieve_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_handling.rb:238:in `retrieve_connection'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activerecord-<IP_ADDRESS>/lib/active_record/connection_handling.rb:206:in `connection'
app_1      | /app/config/initializers/constants/model/taxon_name_relationships.rb:10:in `<top (required)>'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:319:in `load'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:319:in `block in load'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:291:in `load_dependency'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:319:in `load'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:667:in `block in load_config_initializer'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:182:in `instrument'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:666:in `load_config_initializer'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:624:in `block (2 levels) in <class:Engine>'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:623:in `each'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:623:in `block in <class:Engine>'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:32:in `instance_exec'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:32:in `run'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:61:in `block in run_initializers'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:50:in `each'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:50:in `tsort_each_child'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:60:in `run_initializers'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:363:in `initialize!'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/railtie.rb:190:in `public_send'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/railtie.rb:190:in `method_missing'
app_1      | /app/config/environment.rb:5:in `<top (required)>'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:325:in `block in require'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:291:in `load_dependency'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:325:in `require'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:339:in `require_environment!'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:515:in `block in run_tasks_blocks'
app_1      | /usr/local/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
app_1      | /usr/local/bundle/bin/bundle:113:in `load'
app_1      | /usr/local/bundle/bin/bundle:113:in `<main>'
app_1      | Tasks: TOP => db:create => db:load_config => environment
app_1      | (See full trace by running task with --trace)
taxonworks_app_1 exited with code 1

Expected behavior
All docker containers run, app is accessible at http://localhost:3035/
Environment (please identify where you experience this bug:

Development
docker v19.03.8,
docker-compose v1.24.1,

@LocoDelAssembly Problem is where the socket is.  We can add a location in the postgres .cnf file, wherever we are doing that, or we can tweak the application.yml to point to where it is being installed by default.

@PaulKiddle @mjy just tried on a clean clone of the repo and checked out v0.11.0. It worked. @PaulKiddle please check if you previously had config/database.yml, if you do rename or delete it to give a change the docker environment to set it up for you (or you may just paste the content below)
default: &default
  adapter: postgis
  encoding: utf8
  postgis_extension: true
  pool: 5
  timeout: 5000
  username: postgres
  host: db
  port: 5432

development:
  <<: *default
  database: taxonworks_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run
# "rake". Do not set this db to the same as development or
# production.
test:
  <<: *default
  database: taxonworks_test<%= ENV['TEST_ENV_NUMBER'] %>

That's got it working, thank you!


Update README.md according to the Project Description

Is your feature request related to a problem? Please describe.
Right now more than half of the README is the same as that of a NestJS boilerplate, starting with the logo on the top.
Describe the solution you'd like

The README needs to be changed according to the project description.

can i work on this ? @manishprivet

can i work on this @Abhishek-kumar09 ?

Please go on @NeelParihar.
@ArchishmanSengupta I will be tagging you to some newer issues, really sorry but @NeelParihar had early comment on issue, and I can't help you with that.

No issues bhaiya

Hey @Abhishek-kumar09, I'd love to contribute to this repository so tag me if a new issues comes up.
Thanks!


[Feature Request] Go API for fetching predefined constraints

Feature description:
protovalidate-go has an API for easily fetching field/message/oneof constraints in the resolver package. I propose that we add a similar API for getting predefined constraints in a similar way.
I see that there is code in the cache to fetch them but it seems like there’s not an exposed way to do something similar.
Problem it solves or use case:
It's useful for me to get protovalidate constraints in order to annotate generated OpenAPI specifications from protobuf. I suppose it may be useful for others as well.
Proposed implementation or solution:
ResolveFieldConstraints, ResolveMessageConstraints and ResolveOneofConstraints could be augmented to resolve the predefined constraints from extensions containing validate.E_Predefined.
Contribution:
protobuf extensions are pretty crazy to me, but I can help if there's no movement on this after a while.
Examples or references:
<EMAIL_ADDRESS>Additional context:

Thinking about it a bit, at the moment, there's no particular reason for the StandardConstraintResolver interface to actually have a method for resolving the predefined constraint fields. However, maybe in spite of that, we could just provide a ResolvePredefinedConstraints method on DefaultResolver anyhow, just for convenience. If there's no objections, that's probably what I'll wind up doing.


permission denied for private key

Have you tried to boot this image on docker cloud?
When I do I get the following error:

However running the image via docker-compose on my local machine does work. So this may be an issue with docker cloud specifically.
Any suggestions you have would be great. Thanks!

No, I don't tried docker cloud, only local installation.
Really not sure it related to cloud as all filesystems are inside and specific to docker container, except mounted to ~/certs:/certs. If container is running on cloud, even with errors, you can check this file exists and its permissions by running bash inside container:
docker exec -it <container_name> bash
and do ls -l to check permissions.
more info about this file
http://askubuntu.com/questions/396120/what-is-the-purpose-of-the-ssl-cert-snakeoil-key

I agree I don't think it should be related to cloud either, as its all in the container like you say.
Docker Cloud runs containers via Stackfiles, almost identical to how docker-compose runs containers, via a docker-compose.yml file.
They both use a yaml format to define the config for the container. Using the same config (below) with docker-compose and on Docker Cloud; it works on docker-compose (on my local machine) but on Docker Cloud the Stack fails to start, with the error in the above comment.
ansible:
  environment:
    - SERVER_NAME=localhost
  image: 'ybalt/ansible-tower:latest'
  ports:
    - '443:443'
    - '8080:8080'
  volumes:
    - '/root/certs:/certs'

When I run it locally I can check the permissions of that file in the container and it is:
-rw-r----- 1 root ssl-cert 1704 Dec  4  2015 /etc/ssl/private/ssl-cert-snakeoil.key
and if I add this line to the compose/Stackfile
  command: ls -l /etc/ssl/private/ssl-cert-snakeoil.key
I get the following permissions in the container on docker cloud:
2016-09-09T16:37:28.609839900Z -rw-r----- 1 root ssl-cert 1704 Dec  4  2015 /etc/ssl/private/ssl-cert-snakeoil.key
I am running Docker version 1.12.1, build 23cf638, experimental locally and
my docker cloud node is running version 1.11.1-cs1.
So I guess, unless you have had specific issues with this file before. I can only assume it is something related to docker?

May be it really related to docker, as I see you use 1.11.1-cs1 version, its unlikely to be "normal" release and may be a special edition, compiled for docker cloud. You can try to install 1.11.1 on local and check the behavior is the same


measure qubit/qreg -> bit/creg;

Summary
Details and comments

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


Removing reg-reg-reg variants of permutation instructions.

A/O the meeting on Nov 6'th 2020, we have decided to remove the reg-reg-reg variants of:

gorc
grev
shufl
unshufl

Because we do not have a use case for them.
We are keeping the reg-reg-reg variants of

ror
rol

Because we anticipate there may be a use case for them in the future, and they are extremely cheap to implement given the presence of the immediate variants.

Morning Ben,
A couple of clarifications:

When you say the instructions are removed, I assume you mean only from the K extension, not the B extension. I'm pretty sure this is the case, but just checking.
On the spreadsheet you just updated, I notice that gorciw is also marked as not present, but this wasn't mentioned in the list above. Is it also removed?

Thanks,
James.

Ah no, I think I misread the spreadsheet. It's just not in a feature subset.

Correction, it does seem to be removed. Aaargh.

Hi James

Yes, removed from the K extension. The B extension remains unchanged. I'll update my issue description above to clarify.
I will double check with @mjosaarinen about gorciw it is currently included in the scalar K spec, I think that the spreadsheet might just have a typo.

Broadly, we are removing the 3-reg address versions of gorc, grev, shufl, unshufl, but are keeping all of the immediate variants gorci, grevi, shufli, and unshufli.

Hi,
Talked about this with Ben.. I think we really only need a subset of these immediate variants (rev.b, rev8, zip, unzip) .. apologies for the confusion, I'm to blame for some of the things in that spreadsheet.
Cheers,

markku

@JamesKenneyImperas - the new v0.7.2-scalar specification release should detail all of this explicitly. I'll leave this issue open for now in case there are other questions?

Hi Ben,
I think this is now clear to me - thanks.
James.

Hi James
Glad to hear it, I'll close this for now then.
Cheers,
Ben


[PRS] support choosing identity type at CLI yaml node level and in SDK builder function.

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

@bupt-wenxiaole please add corresponding e2e tests

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-ml


Enhance our billing_record "inclusion logic" implementation to model the cusp months to be auto-grayed-out in UI

Where Bill End Date falls within a given month as listed below, UI rows will be automatically "grayed-out" as follows (False is Gray).
This is a separate state from our Analysis Type tri-state setting which determines heating usage, non heating usage, or not included as represented by the cool icons on the far left column in the UI.
months = { # this table determines if a row is "grayed out" in the UI
1: default_inclusion = True,
2: default_inclusion = True,
3: default_inclusion = True,
4: default_inclusion = False,
5: default_inclusion = False,
6: default_inclusion = False,
7: default_inclusion = True,
8: default_inclusion = True,
9: default_inclusion = True,
10: default_inclusion = False,
11: default_inclusion = False,
12: default_inclusion = True,
}
The following table represents our auto-calculation of the Analysis Type tri-state value (icons on the far left column of the UI).  Note that this table differs from the above table for April and November with respect to "not allowed".  The goal for this difference is to represent winter and summer months accurately, but to give the user some flexibility to override the default decision to allow April and November to be included in winter calculations.
months = {
1: AnalysisType.ALLOWED_HEATING_USAGE,
2: AnalysisType.ALLOWED_HEATING_USAGE,
3: AnalysisType.ALLOWED_HEATING_USAGE,
4: AnalysisType.ALLOWED_HEATING_USAGE,
5: AnalysisType.NOT_ALLOWED_IN_CALCULATIONS,
6: AnalysisType.NOT_ALLOWED_IN_CALCULATIONS,
7: AnalysisType.ALLOWED_NON_HEATING_USAGE,
8: AnalysisType.ALLOWED_NON_HEATING_USAGE,
9: AnalysisType.ALLOWED_NON_HEATING_USAGE,
10: AnalysisType.NOT_ALLOWED_IN_CALCULATIONS,
11: AnalysisType.ALLOWED_HEATING_USAGE,
12: AnalysisType.ALLOWED_HEATING_USAGE,
}

I have a draft implementation of the cusp month behavior (the grayed out rows).  I plan to update my PR #241 with these changes soon.  As is popular in today's political discourse "stay tuned!!!".

This issue is fixed now fixed by PR#241


Public website

We should have a minimal web site, describing the project, the product, how it works and how you can use it.

agreed - just gen a GH pages for now..

http://gitevents.github.io/

Nice!


Can (old) MAPL_RegridderManager be deleted?

Looks like it is not used, but I don't recall why it is still around.   griddedio uses NewRegridderManager

@bena-nasa @atrayano What are your thoughts on this?
I can see bits of the old regridder manager in some places which makes me think we cannot remove this yet. I see it in:

@MAPL/base/MAPL_CFIO.F90
@MAPL/generic3g/actions/RegridAction.F90
@GMAO_Shared/GMAO_stoch/stoch_module.F90
@FVdycoreCubed_GridComp/c2c.F90
@FVdycoreCubed_GridComp/CubeGridPrototype.F90
@FVdycoreCubed_GridComp/DynCore_GridCompMod.F90
@GEOSagcmPert_GridComp/GEOS_AgcmPertGridComp.F90
@GEOSagcmPert_GridComp/GEOSdynamicsPert_GridComp/DynCorePert_GridComp.F90

I suppose the question is: could all these instances be converted to new_regridder_manager?

Probably all can, but may not be trivial.
Could be important for AIST as we could be storing redundant routehandles.  So prioritize those that are actually used in the model.

Comment so that this doesn't go stale...

This might need @bena-nasa to comment on it...

@bena-nasa is this still an issue?


link to relevant code that has the security flaw

Hi all,
I'd like a way to link between the security issue which was found and the code which is "flawed". That will make it much easier to track down and fix.
Also wondering if it is possible to annotate "vulnerable" code to be ignored if it is not going to be fixed and the audit is creating noise in those cases.
Thanks!

also if it is possible to label the issues with "security" tag?


WeakReference in Subscription

Implemented WeakReference in Subscription Class:

Implemented
Added tests that subscription doesn't hold subscribed object
Updated README.MD

Hi guys!
It's my first PR, so please let me know what's wrong with it.
I didn't touch Redbus.nuspec (package version is still 1.0.4)

Hi,
Thanks for contributing, this looks great! I will take a closer look tomorrow.
Cheers

It's an unpleasant surprise for me that newly pushed checkin (DefaultInstance for EventBus Added) somehow added to this PR. It's unplanned =)
I'm very sorry! Next time I'll create a separate branch for PR...

That's no problem, had a look and all seems good - so thanks for this PR. I will look at getting this merged and a new NuGet package released on Monday.


Same host-dir & sparse file (disk) reused for every PV creation request

Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT

What happened:
With the latest changes to OpenEBS maya/provisioner, the sparse files representing the data disks consumed by the LHC/LHR(Jiva) pods are created directly on the /var/openebs directory instead of placing them /var/openebs/<volname>.
test@Host01:/var/openebs$ ls -ltr
total 551212
-rw-r--r-- 1 root root         164 Nov 25 20:24 volume-head-004.img.meta
-rw-r--r-- 1 root root<PHONE_NUMBER>0 Nov 25 20:24 volume-snap-c27a42ca-2365-48fd-ad2c-8395e4611a12.img
-rw-r--r-- 1 root root         164 Nov 25 20:24 volume-snap-c27a42ca-2365-48fd-ad2c-8395e4611a12.img.meta
-rw-r--r-- 1 root root<PHONE_NUMBER>0 Nov 25 20:24 volume-snap-631f19f1-247c-49db-8901-0c882211ee97.img
-rw-r--r-- 1 root root         164 Nov 25 20:24 volume-snap-631f19f1-247c-49db-8901-0c882211ee97.img.meta
-rw-r--r-- 1 root root<PHONE_NUMBER>0 Nov 25 20:24 volume-snap-da007bf1-e2e4-40c8-9ab5-33147c659f32.img
-rw-r--r-- 1 root root         164 Nov 25 20:24 volume-snap-da007bf1-e2e4-40c8-9ab5-33147c659f32.img.meta
-rw-r--r-- 1 root root<PHONE_NUMBER>0 Nov 25 20:24 volume-snap-54b8c290-3f1c-4710-9987-aa5047214829.img
-rw-r--r-- 1 root root         112 Nov 25 20:24 volume-snap-54b8c290-3f1c-4710-9987-aa5047214829.img.meta
-rw-r--r-- 1 root root          42 Nov 25 20:25 peer.details
-rw-r--r-- 1 root root         184 Nov 25 20:25 volume.meta
-rw-r--r-- 1 root root<PHONE_NUMBER>0 Nov 25 20:27 volume-head-004.img
-rw------- 1 root root        4096 Nov 25 20:27 revision.counter

Since :

We don't have an automatic folder-deletion/space-reclamation policy currently where the volume folders are deleted, and also because,

Jiva treats kubectl delete pvc as just connection breaks b/w replicas and controllers for same-sparse files (disks),

the above behaviour is causing the SAME disk to be reused for every application PVC creation request.
This means :

Multiple application pods created on the kubernetes cluster with their own PVCs will try to reuse the same volume - causing multiple iscsi mounts - resulting in data corruption

Even if older application is deleted and new one created, it will have access to older pod's data - resulting in a security issue.

What you expected to happen:
Volume requests should result in creation of unique directories. Application data should be isolated
How to reproduce it (as minimally and precisely as possible):
Use the "latest" maya-operator and Jiva images to setup OpenEBS on the Kubernetes cluster and run one or more applications.
Anything else we need to know?:
The issue was identified by the automated integration tests, wherein, a the deployment of a percona app in the cluster post a libiscsi test resulted in the percona pod undergoing repeated restarts, i.e., entered CrashLoopBackOff state due to the following error, which is about presence of files other than "lost+found" folder on the mysql datadir, causing db initialize failure.
test@Master:~$ kubectl logs -f percona-1869177642-3p1t6
Initializing database
2017-11-25T11:49:38.034151Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2017-11-25T11:49:38.034240Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-11-25T11:49:38.036837Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2017-11-25T11:49:38.037178Z 0 [ERROR] Aborting

HI @ksatchit https://github.com/openebs/maya/pull/202 should solve this issue.


Invalid event url

Opening this issue for awareness.
Event "Demoday #9 Digital Hub Accelerator" has an invalid url. I did not verify the event at the source but I think the invalid value is coming directly from there.
For now, I won't display the url if its's not starting with http:// or https://

JSON
{
  "id": 36,
  "source": {
    "id": 1,
    "name": "münsterLAND.digital"
  },
  "sourceEventId": "1058",
  "sourceUrl": null,
  "sourceLicense": "CC BY-SA 4.0",
  "name": "Demoday #9 Digital Hub Accelerator",
  "description": "Beim Demoday sprechen die Startups aus dem Digital Hub Accelerator über ihre Suche nach Kooperationspartnern aus dem Mittelstand, ersten Kunden und Investoren. Zum anderen laden wir weitere Startups aus dem DWNRW-Hub Netzwerk zum Demoday ein.",
  "url": "demoday-digitalhub-accelerator",
  "startDate": "2020-09-17",
  "startTime": "17:00:00",
  "endDate": null,
  "endTime": null,
  "location": {
    "id": 17,
    "description": "Livestream"
  },
  "performer": null,
  "mode": "Pitch",
  "organizer": {
    "id": 4,
    "name": "Digital Hub münsterLAND"
  },
  "images": []
}

@jdemaeyer can you take a look? Is this an issue with the upstream source or is there something wrong in the scraper?

I can't check with the source unfortunately as their API doesn't return events from the past, but I doubt it's an issue with the crawler as we simply copy their link_url field verbatim