Introducing LDAP support

This is an introduction to LDAP support. There are some questions that need to
be addressed, but at least the basic structure is in place now.
Fixes #150
Signed-off-by: Miquel Sabaté Solà<EMAIL_ADDRESS>

This is an introduction to LDAP support. This PR includes the code that allows an LDAP user to authenticate in Portus. Some considerations:

I've added the ldap_name column inside of the users table. This column will be non-empty for LDAP users.
The ldap_name and the username will have the same value if the LDAP name does not contain any character forbidden by Docker.
Because of the previous point, an LDAP user (that has signed in at least once) can authenticate itself with either the ldap_name or username.

The thing is that we need to register LDAP users in Portus' DB, but we want to do this transparently to LDAP users. Therefore, when an LDAP user signs in Portus for the first time, it will be created automatically in Portus' database, and a proper username will be created for said user if its username is not valid for Docker (as explained previously).
But of course we've got a problem, since we require the email column to be filled when creating a user, and LDAP makes no guarantees of providing an email for each user. The decision here is to drop this requirement for LDAP users that haven't filled up their emails yet on Portus. You can see that in the User#email_required? method, that is then picked up by Devise to do the magic. Now, isn't this dangerous ? Yes it is, that's why I've added a hook that redirects any LDAP user with an empty email to its profile page. Moreover, this profile page has been tweaked a bit, to reflect better what the user should do:

This situation can be better. Basically we can add a configuration option in the config.yml file that:

Allows the admin to specify the key on the LDIF of the user where Portus can be the user's email.
Allows an alternative scheme where the admin just specifies the hostname of the mailing server. Example: the admin sets<EMAIL_ADDRESS>so Portus will automatically guess<EMAIL_ADDRESS>
My idea is that if the admin set neither of the previous options, Portus would fallback to the current behavior. This way we would act safely, while being as clever as possible. The implementation of the above points should be done in another PR though.
There are more crazy ideas that are related to LDAP support. One that occurred to me is to automatically create namespaces/teams from the organizations defined in the LDAP server (with users also being mapped into it automatically).
Moreover, the configuration format has changed a little (and it needs further changing but I'll do that later on another PR). Notice that now each key defines a enabled key. This is concordance with other projects like Docker's Distribution or Gitlab. This allows us to add the handy enabled? method. So from anywhere of the code, the developer can always check whether LDAP is enabled with:
APP_CONFIG.enabled?("ldap")

The specific configuration options for LDAP support are quite basic:

hostname: the hostname of the LDAP server.
port: the port of the LDAP server.
base: the base where users are located. This is usually a string like "ou=users,dc=example,dc=com". By default it's empty, which is the simplest way in which an LDAP directory can be structured.

By the way, notice that LDAP users would need to use their username in order to pull/push inside of the docker client.

Travis' failure is regarding a change from @jordimassaguerpla that will be superseded by #297. That's why I didn't fix it.

a part from the small issue with the message, all the rest lgtm, but I am no expert. Let's see what flavio says.

We have to make sure the LDAP server is always contacted, the password inside of our DB should be omitted for users registered via LDAP

We should also notice clashes inside of the ldap_name and prompt the user to provide a custom name. We should propose a unique name, like "#{name_already_taken}#{counter}".

LGTM :clap:

One last thing about the screenshot you posted: IMHO the form should fill the entire page, right now there's a lot of empty space on the right side of the screen. However I think that's a problem that has always afflicted the page.

@flavio on the layout of the profile page, yes, this has been like that since always. We can fix that in another PR.

Implemented the code to avoid name clashes:

On creation, if the name clashes it will call generate_random_name. This function will try to get a free name with the format "#{username}#{random_number}". If it doesn't work, then it will raise an exception as expected by Devise.
I've added a unique index to ldap_name.

generate_randome_name looks good to me. I just realized another possible problem: what about ldap names that are shorter than 4 characters? These would not be accepted by Docker.

@flavio I say let the generate_random_name method handle that too. So if the LDAP name is just "a", this method would produce something like "a123". Of course, this is a bit ugly, but it would be fixed if we allow users to change their user name.

Sorry, I missed that. LGTM

@flavio you didn't miss it, it's not implemented yet :D

Last changes:

LDAP users won't be able to change their passwords through Portus' profile page.
If LDAP is disabled or the current user does not exist in the given LDAP server, then LDAP authenticatable is discarded. Otherwise the other strategies are discarded.
More documentation, more tests.

After a bit of discussion, we're going for a "strict" LDAP support. That is, if LDAP support is enabled, then only LDAP users can log in Portus. This can be put as a configurable value in the future if users request the "mixed" approach. With this, I've updated the patch so:

The sign up page is not accessible if LDAP support is enabled.
The first LDAP user to sign in will be an admin. This is stated in the login form, and the wiki will be updated accordingly.

I've updated the patch to reflect this changes.

LGTM. BTW, in the future it would be better to avoid the merge of all the commits for big pull requests like this; it's painful to review the whole diff all the times to spot only a few changes.
Proposal: for PR like this one let's merge the the commits only before doing the real merge.

@flavio sounds reasonable to me


Incorrect analyzer error on mixin application.

class A<T> {
  void remove(T x) {}
}

class _B<T> = A<T> with B<T>;

mixin B<T> on A<T> {
  void remove(Object x) {
    super.remove(x as T);
  }
}

void main() {
}

The code above should be valid, but in both 2.1.0-dev.7.1 and bleeding edge the analyzer gives the following error:
leafp-macbookpro:sdk leafp$ ~/src/dart-repo/sdk/xcodebuild/ReleaseX64/dart-sdk/bin/dartanalyzer ~/tmp/ddctest.dart
Analyzing /Users/leafp/tmp/ddctest.dart...
  error • The super-invoked member 'remove' has the type '(Object) → void', but the concrete member in the class has type '(T) → void' at /Users/leafp/tmp/ddctest.dart:11:25 • mixin_application_concrete_super_invoked_member_type

It looks like the analyzer is requiring that the concrete remove method provided in the super class (A) has the signature of the remove method from B (Object -> void).  This is incorrect.  As specified, the concrete remove method provided by the super class must have a signature matching that in the superclass constraint from B (that is, the signature from A, i.e. T -> void).
This is causing a spurious error in converting charts_flutter.  I'm looking for a workaround.
cc @keertip @lrhn @devoncarew

https://dart-review.googlesource.com/c/sdk/+/81204

thanks!

FYI, I think I was able to work around the charts_flutter issue, so probably not blocking.


Ensure Root's hashes and length are no longer listed in Snapshot

The specification was recently edited to longer list the hash and length of the Root file in Snapshot:
https://github.com/theupdateframework/tuf/pull/466
The reference implementation should be updated to incorporate the change.

Fixed in https://github.com/theupdateframework/tuf/pull/469.


Lambda powertool SSMProvider is either increasing cold start time or unable to refresh parameters

We may need to update some Parameter Store parameters value that are being used in Lambda Function.
If any parameter is updated while Lambda is in Warm state, it should be able to read the latest values.
I used lambda powertool SSMProvider to achieve the same inside lambda function constructor and inside the lambda handler.

The issue here is; if parameters are read inside the constructor, it does not get refreshed after 1 minute (withMaxAge(60, SECONDS)). And if I read these parameters inside lambda handler method, it increases the cold, warm start time to ~3 times though connection to SSMProvider is initialized only once inside constructor.
What were you trying to accomplish?
Trying to read the latest values of the parameters while Lambda is in warm state. The reason to read parameters inside constructor is to reduce the warm start time.
Expected Behavior
Lambda should be able to read latest values of parameters and it should not impact performance.
Code Snippet
public class CustomHandler implements RequestHandler<Object, Object> {
	private static SSMProvider ssmProvider = null;
	private static Map<String, String> params = null;

	public CustomHandler() {
		ssmProvider = DependencyFactory.ssmProvider();

		// Parameters are not refreshed after 1 min as configured.
		params = ssmProvider.withMaxAge(60, SECONDS).withDecryption().recursive().getMultiple("/lab/workflow");
	}

	@Override
	public Object handleRequest(final Object input, final Context context) {
		// Parameters are refreshed after 1 min as configured but;
		// Cold start time is 3-4 times higher,
		// Warm start time after every minute is 2-3 times higher.
		params = ssmProvider.withMaxAge(60, SECONDS).withDecryption().recursive().getMultiple("/lab/workflow");
	}

}
public class DependencyFactory {
	public static SSMProvider ssmProvider() {
		return ParamManager.getSsmProvider(ssmClient());
	}

	public static SsmClient ssmClient() {
		return SsmClient.builder().credentialsProvider(EnvironmentVariableCredentialsProvider.create())
			.region(region).httpClientBuilder(UrlConnectionHttpClient.builder()).build();
	}
}

Environment

Powertools version used: 1.1.0
Packaging format (Layers, Maven/Gradle): Java8
AWS Lambda function runtime: Maven

{
    "Timestamp": "2020-12-07 22:11:40",
    "RequestId": "7a4c8861-1c4e-4c33-becf-f990404eb3b5",
    "Severity": "DEBUG",
    "Message": "request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=ssm.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])\n"
}
{
    "Timestamp": "2020-12-07 22:11:40",
    "RequestId": "7a4c8861-1c4e-4c33-becf-f990404eb3b5",
    "Severity": "DEBUG",
    "Message": "request - Received successful response: 200\n"
}

Hi,
Thanks for reporting this.
The constructor won't be called in a warmed function, the call to SSM will be done once during cold start. So whatever the maxAge you set, it doesn't really matter, params will remain the same while the function is warmed.
In the handler, with your code I had the following results:
cold start: 3+ seconds (~3400 ms)
warm start: single-digit ms (~2-3 ms)
warm start after 1 min (reload params): ~200-300 ms
I replaced powertools-param with an similar call to ssm:

In the constructor:

ssmClient = SsmClient.builder()                 .httpClientBuilder(UrlConnectionHttpClient.builder())                 .credentialsProvider(EnvironmentVariableCredentialsProvider.create())                 .region(Region.of(System.getenv(SdkSystemSetting.AWS_REGION.environmentVariable())))                 .build();

In the handler:

GetParametersByPathResponse params = ssmClient.getParametersByPath(GetParametersByPathRequest.builder().path("/powertools-java/sample").recursive(true).withDecryption(true).build());
And had exactly the same results (few ms difference):
cold start: 3+ seconds (~3300 ms)
warm start: 200-300 ms (each time)
Unfortunately, we cannot improve the call to SSM itself, but thanks to the cache, it reduces the time from 200-300ms to 2-3ms during the time of the cache. Then, you need to find the best TTL for your use case.

Thanks @jeromevdl for taking out some time for this.
Yes, I agree cache does help to improve performance during warm state.
As a workaround, we can also force a cold restart on Lambda function by changing an environment variable whenever there is an update on SSM parameter. We can also avoid additional cold start time using this approach.
My question is, does it impact any existing lambda invocations that are in progress, in any way?

Functions currently running are not impacted by an update, they will finish with current version/configuration.

Thanks @jeromevdl for confirming.

@deepti-tyagi I believe we can close this issue for now based on above discussion. Thanks for using powertools. Feel free to open an issue in case of any questions/issues/feedback. :)


Skip SMS Payment Option Screen

New version shows option where merchant can select between Terminal and SMS Paymemt. Is there any option to remove this screen so merchant does not have to select this every time, since they don't use SMS Payment?

I have the same question...
Maybe an employee of the development team can give us a a feedback about our question?
Thanks in advance!

Hello,
Unfortunately it has to be disabled manually by support. If you email<EMAIL_ADDRESS>with the email address registered with SumUp. We can manually disable that for you.
Best

OK thx. I already asked how to disable that screen via my business e-mail-account. Now i'm still waiting for the answer...

Hi,
unfortunately you will need to contact<EMAIL_ADDRESS>to deactivate your SMS payment.
Best

ok thx, will ask about it..:-)

Yes you need to disable from merchant acount in web or SumUp App and then screen disapear

This option has been removed in the latest SDK so this issue should be closed.


The Error handling version 0.0.3 is not available in pip

Hi, guys, thank you for your great works.
I know you provided the version 0.0.3 zip file. But, it would be nicer if you can provide the 0.0.3 version for the pip users.

thanks for your suggestion. let me do this in the next week.
after getting it done, I will close this issue.

The latest version is on https://pypi.org/project/pesq/0.0.3/

The latest version is on https://pypi.org/project/pesq/0.0.3/

Great! Thank you!


Avalonia cleanup

Change XAML files extension to .xaml to enable source generation.

No need to implement InitializeComponent() manually
Named properties also automatically generated on the code side

very cool, the PR was from @Mrxx99 who basically just copied the xaml from WPF. we can change it to axaml and also try to have a common core project for the logic...


Installing gddragonbones in godot 3.2 stable

Could you explain please, how to install gddragonbones in Godot v3.2.stable.official?
I tried this way https://docs.godotengine.org/ru/stable/tutorials/plugins/editor/installing_plugins.html , but it's not working (does not appear in the list of plugins). I'm just learning to work with godot...

It's not a plugin, is a module,you need to compile godot yourself, simply put gddragonbones folder inside modules folder and compile godot.

Thank you, I got it, but now there is an error with godot file:
C:<path>\godot\modules\gddragonbones\src\GDDisplay.h(5): fatal error C1083: Не удается открыть файл включение: servers/visual_server.h: No such file or directory,

You are not compiling godot 3.2 stable, you are compiling godot 4.0 master branch. Visual server was renamed... this plugin compiles with godot 4.0 before reduz merge vulkan branch with godot 4.0, after that... well... to much changed.

Oh, exactly! I cloned the release 3.2 source code and compiled it successfully - everything works correctly now. It is a great tool, thanks a lot!)


Skull-strip first echo and apply mask to other echoes

For multi-echo EPI data, fMRIPrep currently skull-strips all echoes independently and then feeds those skull-stripped time series into the t2smap workflow for optimal combination. However, I believe that it would be preferable to skull-strip just the first echo, retain the brain mask from that echo, and then apply the mask to all echoes instead.
This stems from @emdupre's idea in this Mattermost post.

Yes, definitely something we must do.
Please check this - https://github.com/nipreps/fmriprep/issues/2309#issuecomment-747334768
I believe the methodology proposed here should (in theory) work pretty well on the shortest echo.

I can probably open a PR soonish. The change should be pretty straightforward- we just select the first BOLD time series, run that through the skull-strip workflow, collect the brain mask from that, and feed the brain mask into the T2* workflow. I'll need to check that the echo-wise skull-stripped files aren't used for anything else in the overall workflow, but I don't think they are.

I realized that bold_bold_trans_wf has a BOLD mask based on the reference file, which for multi-echo data is the first echo, so I think it would be better to use that than skull-strip the first echo again.


Fix for desktop build

Thanks @nspringer-trimble merging!
Also hello and welcome to Maputnik, if you have a moment, please tell us what you use Maputnik for over in #164


macOS support

The main script currently hardcodes apt for installing packages, which doesn't work on macOS. (and many Linux distros, but that's a different+related issue) Ideally there's a single script entrypoint that does the Right Thing, maybe calling into other scripts depending on OS and/or command availability? I haven't done this before.

Stackoverflow answer with OS detection in Bash
should we use command detection instead for the apt problem though? to more easily support other Linux distros with the same strategy as macOS support, or does macOS need special handling?

I have no compatible hardware to test this issue, so help is appreciated.

I like that, I think I was overthinking it. Trying to make the scripts overly-abstracted sounds like a bad recipe. thanks for the input.

Similar to #4 I may do this if I get a macbook, but I'm no longer going to try to support anything but my current environment in this repo.


Discover, mark and fix bugs pertaining to AI

As we get closer to implementing the features and enhancements we set out to do, bugs from our implementations and previous groups have piled up. I'm going to go through and discover and mark as many as I can throughout the Sprint while also fixing some to get more work time in.

[ ] Discover and mark bugs in C++ code
[ ] Fix at least 1 bug pertaining to AI

Some of the bugs found and fixed was taken care of by another developer. Finding and fixing more bugs after the Sprint 3 merge will be a primary focus of mine.


Feat 355 group semantic lists

@kdutia
Pushing for visibility. Still a few TODOs sitting around that it'd be good to get some commentary on, plus I haven't merged in @joel-wright changes yet, waiting for it to be merged into dev.
@joel-wright you can see the nested json's fairly ugly (logic in _group_list_element method).
Class mainly a namespace atm (lots of static methods with not mutable state), but left it this way for stylistic consistency atm and possible extensibility with other features.

I think I need to spend more time with the example data you send to properly understand what's going on here!

@kdutia This has become a rather convoluted branch at this point, which is mostly an artefact of my constantly discovering new interdependencies between features and bugs along the way. I've merged changes in hyphenation and style processing together
with the list processing stuff in this branch.
To signpost things a little, at the moment reformat_adobe_output.py calls a text styling
post processor, then the hyphenation processor, and finally the list grouping processor. This ordering solved most of the obvious problems. I keep finding new issues and edge cases, but at this point it's likely best to stop developing as the code will
almost certainly become less comprehensible to anyone who isn't me, and this is likely to be an iterative testing process over
time anyway when we actually use it, so will stop engineering.
Code quality could certainly be a lot better, so have at it with comments if something isn't comprehensible or should be refactored.

@stefl14 Looks good - I think some tests on each postprocessor will help explain to others/us in future what each of them does.
On your points:

I wouldn't worry too much about non-english for now but I've suggested you use wordnet and NLTK anyway, as it's a widely used dictionary and NLTK supports other languages. Our language skills might prove the biggest challenge when we start to try to identify hyphenated words in other languages ;)
As mentioned in an inline comment I think it'd be really useful if each processor inputs and outputs a Document object, which should be pretty easily doable using Document().to_dict() and Document.from_dict() methods. I'm not sure how simple the latter is though, so don't spend too much time on it if it proves a hassle.

@stefl14 LGTM after comments and the remainder of the tests are resolved. Probably also worth checking it runs on the full corpus without failing if you haven't, before we merge it.


Init openstack-rally image

This prepares openstack-rally image so that it's ready when someone wants to run rally via podman or openshift.

@kopecmartin Please rebase your pr from tcib main branch. Horizontest issue might get fixed.

recheck
tobiko issue fixed!

/approve


postcss plugin order is confused

Describe the bug
when postcss use plugin "postcssPresetEnv({stage: 2})",I'm expecting is the result of the CSS being transformed into the config,but “inset: 0;” no transform,I found this bug is ESBuild need set"cssTarget" for "chrome60"。
It's so confusing, when I add the plugin, it doesn't work...Can add a description to the official documentation?
Reproduction
https://cn.vitejs.dev/config/build-options.html#build-modulepreload
Steps to reproduce
No response
System Info
System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz
    Memory: 2.77 GB / 15.74 GB
  Binaries:
    Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 63.0.3239.108
    Edge: Spartan (44.22000.120.0), Chromium (107.0.1418.26)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @vitejs/plugin-legacy: ^2.2.0 => 2.2.0
    @vitejs/plugin-react: ^2.1.0 => 2.1.0
    vite: ^3.0.0 => 3.1.8

Used Package Manager
yarn
Logs
No response
Validations

[X] Follow our Code of Conduct
[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] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

build.cssTarget has the same value with build.target by default.
If you are not setting build.target, this is expected because default target is Chrome >=87, Firefox >=78, Safari >=13, Edge >=88.

Yea，I know that，But when use plugin，I hope this plugin on works.Now when I converted the CSS using postcssPresetEnv, some properties were converted back by ESBUILD.

I think adding a small explanation here makes sense. Some thing like "CSS minify will run later and uses build.cssTarget".
https://vitejs.dev/guide/features.html#postcss


is multi-agent possible?

as stated in the title, is it possible to instantiate multiple agents and control them separately?

welcome to check my  repository and if helps give a star plz.


Closer All

Can't configure options of this element. Seems like it use only default values.

@Craigy- Because it applies to the whole container of notifications and not the individual message you are correct, it's configured only at the 'defaults' level.

I need to change theme: 'themeName' and it apllies only for notifications, not for 'closer'. I think it's a bug.

Have you looked at the example included in the project? I believe there is a styled closer in there.
Sent with GitHawk

Ok, thanks. 'closerTemplate' can help me. But it's stange a little :)

@Craigy- yeah I agree, I'd love to do an overhaul of this some day where it's more oriented around containers, so such a thing can be changed more easily - but that would also make the bar of entry a little steeper too.

It will be great :)


Feature/integrate-github-github

Description

Pulls data from github and merges with airtable data to CMS.
Sends messages to sentry if it encounters a problem.
To test, hit the endpoint http://localhost:3000/api/v1/resources/ecosystem/update-ecosystem-content and http://localhost:3000/api/v1/resources/ecosystem/update-ecosystem-list

Fixes  #438
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Screenshots
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation

Why are we merging this into feature/ecosystem-list @koechkevin ?

Why are we merging this into feature/ecosystem-list @koechkevin ?

@kilemensi Just a pointer that it depends on feature/ecosystem-list.
I will update it once that is merged.

Cool but it's weird that an older PR (#444) depends on newer PR (#450) @koechkevin .

I am closing this PR in favour of #474


copy_if failed to synchronize: device-side assert triggered

❓ Questions and Help
I was training a customized module in fbnet and encountered the following error:
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:53: lambda [](int)->auto::operator()(int)->auto: block: [40,0,0], thread: [104,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:53: lambda [](int)->auto::operator()(int)->auto: block: [40,0,0], thread: [105,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:53: lambda [](int)->auto::operator()(int)->auto: block: [40,0,0], thread: [106,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:53: lambda [](int)->auto::operator()(int)->auto: block: [40,0,0], thread: [107,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.
Traceback (most recent call last):
  File "tools/train_net.py", line 186, in <module>
    main()
  File "tools/train_net.py", line 179, in main
    model = train(cfg, args.local_rank, args.distributed)
  File "tools/train_net.py", line 85, in train
    arguments,
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/engine/trainer.py", line 67, in do_train
    loss_dict = model(images, targets)
  File "/data/ryancheng/miniconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/data/ryancheng/miniconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/apex-0.1-py3.7-linux-x86_64.egg/apex/amp/_initialize.py", line 194, in new_fwd
    **applier(kwargs, input_caster))
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 50, in forward
    proposals, proposal_losses = self.rpn(images, features, targets)
  File "/data/ryancheng/miniconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/rpn.py", line 159, in forward
    return self._forward_train(anchors, objectness, rpn_box_regression, targets)
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/rpn.py", line 175, in _forward_train
    anchors, objectness, rpn_box_regression, targets
  File "/data/ryancheng/miniconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/inference.py", line 140, in forward
    sampled_boxes.append(self.forward_for_single_feature_map(a, o, b))
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/inference.py", line 115, in forward_for_single_feature_map
    boxlist = remove_small_boxes(boxlist, self.min_size)
  File "/data/ryancheng/maskrcnn-benchmark/maskrcnn_benchmark/structures/boxlist_ops.py", line 46, in remove_small_boxes
    (ws >= min_size) & (hs >= min_size)
RuntimeError: copy_if failed to synchronize: device-side assert triggered

Any idea on what this error is caused by? Thanks in advance!

Same Error Here.

same too....

I think this could be related to batch size. Try using a smaller batch size.

Yes, if I use a smaller learning rate, the issue disappears

same error
if the problem happened in training, smaller learning rate helps
but I've also encountered this error while testing once...
while testing, that's not possible to solve it by using smaller learning rate, right?
I've tried to debug, but I can't even access the "boxlist".
Runtime error happened when I try to print the "boxlist".
I really want to know if anybody had another solution rather than just "using smaller learning rate"...

@Jayis
I'm encountering the same issue.Were u able to solve it?

i encountered this issue when i set wrong num of class.It solved by correct the output num_class


[10.x] Minor skeleton slimming (framework edition)

Complimentary PR for: https://github.com/laravel/laravel/pull/6159

@taylorotwell BC https://github.com/laravel/framework/discussions/46799


extract-text-plugin: Rewrite CSS to require images first

I just realized, that https://github.com/webpack/extract-text-webpack-plugin is actually taking the raw CSS it got from the css-loader and strips it from the original chunk to extract it somewhere else.
It would be very nice if I would still get the benefits of the re-written import and url() statements, as I want to use the img-loader for image optimization.
Is there a way to implement that?

It would be very nice if I would still get the benefits of the re-written import and url() statements, as I want to use the img-loader for image optimization.

This does work. You get the same result as with style!css.

That’s odd. because my background image, for instance, is not being processed.
#blurr-bg, #bg {
    background: url("/cdn/theme/images/bg.jpg");
}

Is it because of the URL starting with a slash, maybe?

yep... see css-loader > readme > root-relative urls

That helped :) But I still can't seem to be able to replace this:
@import url(//fonts.googleapis.com/css?family=Roboto:400,700);

It is from the Bootswatch Bootstrap theme I use. Is there a way to modify this one too?

nope. It's not on your server.

That sucks, then Ill have to carry this extra request along although I dont even use the font. Thanks anyway!

That's the CSSs fault...
You could write a custom loader that removes the line and apply it via config:
module.exports = function(source) {
  this.cacheable();
  return source.replace(/^.*fonts\.googleapis\.com.*$/, "");
}

I figured my way out of this - assigning a root path for root-relative resolves, and using a custom Bootstrap through Sassy CSS. No more extra font! :)


[Fluent 2 iOS] Navigation bar colors update

Platforms Impacted

[x] iOS
[ ] macOS

Description of changes
The NavigationBar's colors were updated to match fluent 2 tokens.
Verification
Changes were tested on the demo app.

Before
After

Pull request checklist
This PR has considered:

[x] Light and Dark appearances
[ ] iOS supported versions (all major versions greater than or equal current target deployment version)
[ ] VoiceOver and Keyboard Accessibility
[ ] Internationalization and Right to Left layouts
[ ] Different resolutions (1x, 2x, 3x)
[ ] Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
[ ] iPad Pointer interaction
[ ] SwiftUI consumption (validation or new demo scenarios needed)
[ ] Objective-C exposure (provide it only if needed)

Microsoft Reviewers: Open in CodeFlow

for this control, and any control related to navigationbar we need to do thorough test on iPad splitmode dark as well. Apple has separate "elevated colors" defined for darkmode and fluent1 used to handle it differently. and it all fits together with popover/drawercontroller etc.

for this control, and any control related to navigationbar we need to do thorough test on iPad splitmode dark as well. Apple has separate "elevated colors" defined for darkmode and fluent1 used to handle it differently. and it all fits together with popover/drawercontroller etc.

Sounds good. I'll create a task to track it and get on it asap.

@harrieshin I have just updated the PR with before and after pictures of tests on iPad splitmode dark. It looks consistent with fluent 1's splitmode. What exactly should I be looking for?


Kanban Board Set Up

Summary

Set up Kanban board for this project: Kanban Board
We are a group of 2 students

Hi @abel-tefera @kimitaWanjohi 👏 👏,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights
Added link to GitHub project ✔
Listed the number of people in the group ✔
Assigned the group task to member of the group fairly ✔
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Headless recorder v2

Sorry @ianaya89 - I didn't pull all the upstream changes, apparently. Could you re-review please?


Disable linux auto update notifications

[x] I am on the latest Hyper.app version

[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: ArchLinux

Hyper.app version: 1.4.8 (and canary.8 too)

Issue
It should be possible (with a config line) to disable the update notification.
Constantly having to close that notification is really annoying.
Perhaps like this:
    // choose either `'stable'` for receiving highly polished,
    // or `'canary'` for less polished but more frequent updates.
    // set to `false` to disable update notifications
    updateChannel: false,

Agreeing on this, when installing Hyper via a package repository (for example AUR) the constant update notifications are pretty annoying.

Yay, guys! Easy hack:
css:
.notifications_view {
display: none;
}
``.
Add this to

.hyper.js

I just created a very simple plugin hyper-disable-new-version-notification.  It just always negates the redux state which triggers the new version notification.  This way you don't have to use css to disable all notifications ;)

Also, because I've always wondered but too polite/uncertain to ask: @MAPESO who are you?
You spoke as if you had a position of sorts among Hyper devs, but you have no badge so it's hard to tell. I couldn't really see many contributions. You have commented on a handful of issues, though, so... maybe? But it's super unclear. You're not on ZeitHQ's About page. Your github makes no mention of belonging to the Zeit org, or anything.
All I know is: you said you'd "speak to the team", and then nothing happened, and then nothing happened, and then nothing happened.
Zeit/Hyper team, if you see this, maybe clarify?
👋

@passcod - chill man.  This software is free, nobody's obligated to follow up on anything.  Sometimes people forget, sometimes they get busy, or even stop caring, it just doesn't matter.  If you want a follow up to something then ask politely.

@olsonpm sure, ok

https://github.com/zeit/hyper/issues/2431


Update minecraft-server to 1.8.9

Thank you for the contribution. It was merged directly as 7c3c53bab6799f2738d3fd94ef38ec2671f3c6d8 to keep commit history cleaner. Your contribution is still credited to you.


Introduce Azure upload test

The test is very simple, it first upload a file with random content and then downloads it back and compare hashes.

This fails because the environment variables in CI are not available to forks.

It is ready to be merged. I made the test optional in case in has non of the configuration variables (like in case of running in Travis from a fork). It will run once it is merged into our main repo.


chore: terms route + basic metadata config

Moving terms route + basic metadata config to prod for oAuth consent compliance -> https://console.cloud.google.com/apis/credentials/consent?project=masterbots-406322

@gaboesquivel — I'm directly merging this since you have the contact info, let me know if there is something else to do on google side.

@AndlerRL perfect, I added it to alpha https://github.com/bitcashorg/masterbots/pull/177


[build system] get rid of two-phase building

Is your feature request related to a problem? Please describe.
To build current version of buddy, two phases are required: first phase to build LLVM components, second phase to build buddy itself.
When trying to package buddy compiler with Nix, in my first attempt, I build LLVM as a separate package (or derivation in Nix jargon), then build buddy with LLVM_DIR and MLIR_DIR set to some path in the package installation directory. However, it failed to build buddy because what buddy requires is not only these installed files, but also some non-installed cpp files, even include/llvm/Config/config.h.
From the packager's perspective, the two-phase behavior and internal file dependency result in cumbersome and tricky packaging process (see https://github.com/sequencer/vector/blob/master/nix/buddy-mlir.nix#L34-L41). This is partially due to that Nix believes that one cmake will control everything. From a developer's perspective, the build manager (i.e. cmake) is not fully responsible for the state of the file tree. It will potentially cause cache inconsistency and portability issues.
Describe the solution you'd like
I propose two possible solutions:

Treat LLVM as a cmake submodule or subdirectory. One CMakeList.txt takes care of both LLVM and buddy build. I.e. build LLVM things into main build directory instead of into llvm/build. This might also reduce the total building time, because unused parts in LLVM will not be built.
Get rid of dependencies of LLVM internal files, use a installed LLVM tree. This makes things cleaner and perfect for packager. However, the developer requires more effort (execute cmake --install or something) unless first solution is applied.

I am not quite sure whether above two solutions will work, welcome for more suggestions.

from the llvm doc here

LLVM_EXTERNAL_PROJECTS:STRING
Semicolon-separated list of additional external projects to build as part of llvm. For each project LLVM_EXTERNAL__SOURCE_DIR have to be specified with the path for the source code of the project. Example: -DLLVM_EXTERNAL_PROJECTS="Foo;Bar" -DLLVM_EXTERNAL_FOO_SOURCE_DIR=/src/foo -DLLVM_EXTERNAL_BAR_SOURCE_DIR=/src/bar.

If depending on the uninstalled file in LLVM, maybe the better way is using LLVM_EXTERNAL_PROJECTS

@SharzyL @sequencer Thanks for your suggestions, and sorry for the late reply!
There are two building strategies:

Using LLVM_EXTERNAL_PROJECTS

Using LLVM_DIR and MLIR_DIR

We are currently using the second approach, following the style of other MLIR-related projects, such as MLIR-HLO and CIRCT.
We'd love to add support for the one-step building strategy by using LLVM_EXTERNAL_PROJECTS to make our collaboration smooth. I will work to support this feature.

However, it failed to build buddy because what buddy requires is not only these installed files, but also some non-installed cpp files, even include/llvm/Config/config.h.

This is mainly because the Gemmini backend needs to add LLVM targets non-intrusively, so we use a tricky but work strategy that hybridizes some LLVM targets and buddy targets as the Gemmini backend.


Better error messages for user options

While test driving meson my team had trouble with misspelled options values, especially for combo options. This should help clear things up.

Ok to test.

Looks nice. Thanks. There is one issue though:
raise OptionException('Value "%s" for string option "%s" is not a string.' % (str(str), self.name))

Instead of str(str) you probably meant str(newvalue). Please fix this and add yourself to authors.txt and this is ready to merge.

Fixed


"make install" fails on macOS with "illegal option -- D"

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
YT-DLP Version:
jmayer@newegg:~/work/video/youtube-dl/yt-dlp(master)$ git describe
fatal: No annotated tags can describe 'cda1bc51973c89b72b916dcc40dbe3d7f457097d'.
macOS Version:
System Version:	macOS 12.3.1 (21E258)
Kernel Version:	Darwin 21.4.0
Error:
jmayer@newegg:~/work/video/youtube-dl/yt-dlp(master)$ sudo make install
COLUMNS=80 /usr/bin/env python3 yt_dlp/main.py --help | /usr/bin/env python3 devscripts/make_readme.py
/usr/bin/env python3 devscripts/prepare_manpage.py yt-dlp.1.temp.md
pandoc -s -f markdown -t man yt-dlp.1.temp.md -o yt-dlp.1
rm -f yt-dlp.1.temp.md
install -Dm755 yt-dlp ./usr/local/bin/yt-dlp
install: illegal option -- D
...
make: *** [install] Error 64
Verbose log
dummy

jmayer@newegg:~/work/video/youtube-dl/yt-dlp(master)$ xcodebuild -version
Xcode 13.3
Build version 13E113

The Makefile from yt-dlp assumes GNU coreutils.
manpages are here for reference
https://man7.org/linux/man-pages/man1/install.1.html
https://ss64.com/osx/install.html
Can you please try either:

Install GNU coreutils via brew install coreutils and replace install commands with ginstall (no option translation required),
Or replace all occurrences of -Dm with -dm

I have ginstall - but it isn't used.
I just tried replacing -D with -d but while -d and -D are  are doing similar things they not sufficiently similar (treats the file at the end as a directory and fails if the binary already exists).
Maybe I should close this bug and open a new one that ginstall isn't used if available instead of install?

-d isn't what you want. yt-dlp is the executable archive here, no?
Try
mkdir -p ./usr/local/bin && install -m755 yt-dlp ./usr/local/bin

diff --git a/Makefile b/Makefile
index a254afa86..e62e302f1 100644
--- a/Makefile
+++ b/Makefile
@@ -43,11 +43,16 @@ SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then ech
 MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi)

 install: lazy-extractors yt-dlp yt-dlp.1 completions
-       install -Dm755 yt-dlp $(DESTDIR)$(BINDIR)/yt-dlp
-       install -Dm644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1/yt-dlp.1
-       install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp
-       install -Dm644 completions/zsh/_yt-dlp $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_yt-dlp
-       install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish
+       mkdir -p $(DESTDIR)$(BINDIR)
+       install -m755 yt-dlp $(DESTDIR)$(BINDIR)/yt-dlp
+       mkdir -p $(DESTDIR)$(MANDIR)/man1
+       install -m644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1/yt-dlp.1
+       mkdir -p $(DESTDIR)$(SHAREDIR)/bash-completion/completions
+       install -m644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp
+       mkdir -p $(DESTDIR)$(SHAREDIR)/zsh/site-functions
+       install -m644 completions/zsh/_yt-dlp $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_yt-dlp
+       mkdir -p $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d
+       install -m644 completions/fish/yt-dlp.fish $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish

 codetest:
        flake8 .

Does this fix your issue? If so, I can commit it since it's not a big change. But in general, it's impractical to try and support the various configurations that don't have GNU coreutils.
PRs for supporting ginstall is welcome though as long as it falls back to install

Yes, that solved the problem. While I agree that "in general, it's impractical to try and support the various configurations that don't have GNU coreutills" coreutils in general support being installed with a leading "g" and so the build process should first search for coreutils starting with "g" before using a version without leading "g". This may become even more impractical  without using something like configure or cmake :-)
I also needed to apply another change to get things to actually install properly:
PREFIX ?= /usr/local
-DESTDIR ?= .
+# DESTDIR ?= .
BINDIR ?= $(PREFIX)/bin
What's the idea behind using the current directory as DESTDIR if DESTDIR is unset?

What's the idea behind using the current directory as DESTDIR if DESTDIR is unset?

It was done for #386. Though I see how that wasn't the right way to implement it. I was, at the time, not familiar with makefile conventions at all (even worse than now)


Adding extra steps

This is a primitive effort to add an additional four "lower third templates" to more easily fit into the needs of our Sunday Service. It's very inelegant, but due to the brittleness of the original implementation, it's proving to be a difficult refactor/rewrite, so this is getting merged to tide us over until the rewrite is finished.

my bad... meant to create this pull request against my fork of the repo... wouldn't have tried to issue a PR to your repo for such a specific use case


Add script to load tables from .gz files

I created this script to load the tables from the csv.gz downloaded from physionet website. Might be useful to others.
psql "dbname=<DBNAME> user=<USER> options=--search_path=mimic_core,mimic_hosp,mimic_icu" -v mimic_data_dir=<PATH TO DATA DIR> -f load_gz.sql

Awesome - thanks! Hope you are well.


less modules not working on Volto 17

I have an addon that uses less modules. In Volto 16, the CSS is generated normally. In Volto 17, in production mode, the less CSS is not added to the bundle. The strange thing is that in development mode everything works ok. Does anyone have any idea what might be going on? I also tried CSS modules and SCSS modules and had the same problem.

I don't know the specific reason, but here are some things to look at:

differences between how CSS is loaded in dev and production mode -- search for production in https://github.com/plone/volto/blob/master/src/helpers/Html/Html.jsx
the webpack plugin to handle LESS https://github.com/plone/volto/blob/master/webpack-plugins/webpack-less-plugin.js
Volto 17 uses webpack 5 instead of webpack 4. Make sure you don't have webpack-related packages pinned to a different version in your addon, compared to the versions that volto uses

@davisagli looking closer, I saw that the CSS is added but the code generated at the end of the class name is different between the html and the CSS. For example, in the html we have the class:
Footer-module__footer___VgK5e
and in CSS we have:
Footer-module__footer___Kio8a

Did you upgrade the razzle version in your addon's package.json as mentioned in the upgrade guide? https://github.com/plone/volto/blob/master/docs/source/upgrade-guide/index.md#razzle-upgraded-to-version-4218
(Not sure if that's related, but it does sound like something that could potentially be caused if different versions of some package are being used in different places)

Did you upgrade the razzle version in your addon's package.json as mentioned in the upgrade guide?

Yes I did it. I even generated a new Volto app with the generator.

I rolled back versions of Volto and the problem started to occur on Volto 17.0.0-alpha.7. On Volto 17.0.0-alpha.6 it works. So something in 17.0.0-alpha.7 broke CSS modules.

In Changelog of version 17.0.0-alpha.7

Fix language negotiation for language codes that include a region (e.g. pt-br). @davisagli https://github.com/plone/volto/issues/4644

This doesn't seem to be related.
Although my site is in pt-br.

@wesleybl And that change was also backported to Volto 16 (https://github.com/plone/volto/pull/4755).
Really strange.

@davisagli On Volto 16 with this backport it works. The only thing left in alpha 7 is this commit from @sneridagh :
https://github.com/plone/volto/commit/7e0a6fe8d3e832826ced8c96c31dc442654df94a
Do you think it might be related?

@wesleybl "less modules" may be related to razzle plugins configuration.

https://github.com/plone/volto/blob/03cd36dfa82de3a03b2f88a6b59ceeea1bc99292/webpack-plugins/webpack-less-plugin.js#L44-L46

maybe webpack needs similar for the less plugin.

I pasted the ignored files in https://github.com/plone/volto/commit/7e0a6fe8d3e832826ced8c96c31dc442654df94a into node_modules/@plone/volto and the problem continued. So the problem doesn't seem to be this commit.

@davisagli @tiberiuichim I created this repository to demonstrate the problem.
I customized the View.jsx to insert these components:
https://github.com/wesleybl/cssmodules.volto/blob/main/src/components/CssModules/CssModules.jsx
It uses a simple CSS modules here:
https://github.com/wesleybl/cssmodules.volto/blob/main/src/components/CssModules/CssModules.jsx#L4
This will make the text This text should be red appear on the screen.
if you use the command:
yarn build && yarn start:prod

the text does not turn red.
Any tip is welcome.

Strange is that in this repository that I created, the error occurs even if I pin the alpha 6 version.

@wesleybl Thanks for putting together the repro repository. What version of Node should I try it with to match your own testing?

@wesleybl Interesting, I can reproduce the problem with Node 16, but it works with Node 18.

What version of Node should I try it with to match your own testing?

Node 18

In Node 16, it works when the html is rendered in the browser, but not when I refresh and get the html from SSR

I'm always pressing f5 to test.

@davisagli could it be that the javascript is rewriting the class name, which comes from the server, putting an id that does not exist in the CSS?

@wesleybl It seems to me that the problem is that the css-loader module is generating a different hash when it loads the module for the server bundle and for the client CSS bundle. So far I am not sure why.

@davisagli I took a closer look at this problem and found the following. The difference between Volto 16 and Volto 17 (which here is basically the difference between webpack 4 and webpack 5) is as follows. In Volto 16, loaderContext._module.matchResource here:
https://github.com/webpack-contrib/css-loader/blob/v5.2.7/src/utils.js#L252
for both the server and client builds, it comes empty. In Volto 17, it is filled in the client build and empty in the server build. Being filled in or not influences hash generation. Something has changed in Volto 17/webpack 5, which means that this variable is filled in when compiling the client. It looks like this variable is set here:
https://github.com/webpack/webpack/blob/v5.76.1/lib/NormalModuleFactory.js#L364-L366
In server compilation, it doesn't go into that if.
I don't know what makes webpack 5 set this variable only on client compilation. Would it be some configuration different between the compilation of the client and the server? Where is this configuration done? Would it be razzle?

I found out the webpack version this started to occur on. It was in version 5.52.0. More specifically in this commit:
https://github.com/webpack/webpack/commit/765101bded6bf9dc9693fac6af18771d11b37eed
made by @sokra
This commit was made in PR:
https://github.com/webpack/webpack/pull/14134
To fix a problem in  detected in mini-css-extract-plugin:
https://github.com/webpack-contrib/mini-css-extract-plugin/issues/755
So, after this commit, if mini-css-extract-plugin is used, webpack started to fill the matchResource variable (which is used in hashing the CSS class name).
But Volto use mini-css-extract-plugin only in the client build:
https://github.com/plone/volto/blob/6ed97685a90d15014b9c13cc2f7a4db3791b1659/webpack-plugins/webpack-less-plugin.js#L143
So the hash of the class name looks different on client and server.
The function that generates the hash can be customized. I did it in commit:
https://github.com/plone/volto/commit/10168c3a7aae6ec5c37436b9037cb3255ec93520
In this custom function, I disregarded the matchResource variable when generating the hash. Then it worked. This commit I also put the text in red with css modules to test.
Is there a better solution? Should I do a PR? How do I add this setting to a Volto app?
@davisagli @tiberiuichim @sneridagh @sokra

@wesleybl I think the fix is valid, it should be integrated. The only suggestion I have is to slightly rewrite the webpack-less-plugin.js additions, to make them more in line with the rest of the code, I presume you have copied the code from transpiled code.

@tiberiuichim I did PR #5165 , changing the code as you suggested.


Unable to make a copy of script.

Are you requesting a feature or reporting a bug?
bug
If reporting a bug, is there already an issue open for this same bug?
no
What is the current behavior?
Let me start off by saying i'm not a programmer by any means, and have very little programming skills. So I used the instructions given in the "for Non-developers"
I've tried using Windows Git, Git Bash, and ultimately it seems the furthest I can get is with google's own Cloud Shell. I was able to clone, and install NPM, but when I run the "npm run build:prod" command I get an error

Child extract-text-webpack-plugin:
[0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
[1] ./~/css-loader!./~/postcss-loader/src!./src/css/main.scss 5.29 kB {0} [built]

<EMAIL_ADDRESS>gulp:prod /home/username/gdrive-copy
gulp build

gulp[988]: ../src/node_contextify.cc:633:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfov8::Value&): Assertion args[1]->IsString()' failed.  1: 0x8db8c0 node::Abort() [gulp]  2: 0x8db995  [gulp]  3: 0x90f647 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp]  4: 0xb5d76b  [gulp]  5: 0xb5f702 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [gulp]  6: 0x1a9b34adbe1d Aborted (core dumped) npm ERR! code ELIFECYCLE npm ERR! errno 134 npm ERR<EMAIL_ADDRESS>gulp:prod: gulp build`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>gulp:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!  Exit status 134
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/username/.npm/_logs/2019-02-28T05_06_06_632Z-debug.log

this is the log file it refereces:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/nvm/versions/node/v10.14.2/bin/node',
1 verbose cli   '/usr/local/nvm/versions/node/v10.14.2/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build:prod' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prebuild:prod', 'build:prod', 'postbuild:prod' ]
5 info lifecycle google-drive-copy-folder@6.0.3~prebuild:prod<EMAIL_ADDRESS>6 info lifecycle google-drive-copy-folder@6.0.3~build:prod<EMAIL_ADDRESS>7 verbose lifecycle google-drive-copy-folder@6.0.3~build:prod: unsafe-perm in lifecycle true
8 verbose lifecycle google-drive-copy-folder@6.0.3~build:prod: PATH: /usr/local/nvm/versions/node/v10.14.2/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/elliott/gdrive-copy/node_modules/.bin:/home/elliott/gopath/bin:/google/gopath/bin:/google/google-cloud-sdk/bin:/usr/local/go/bin:/opt/gradle/bin:/opt/maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/nvm/versions/node/v10.14.2/bin:/google/go_appengine:/google/google_appengine
9 verbose lifecycle google-drive-copy-folder@6.0.3~build:prod: CWD: /home/elliott/gdrive-copy
10 silly lifecycle google-drive-copy-folder@6.0.3~build:prod: Args: [ '-c', 'npm run webpack:prod && npm run gulp:prod' ]
11 silly lifecycle google-drive-copy-folder@6.0.3~build:prod: Returned: code: 134  signal: null
12 info lifecycle google-drive-copy-folder@6.0.3~build:prod: Failed to exec build:prod script
13 verbose stack Error<EMAIL_ADDRESS>build:prod: npm run webpack:prod && npm run gulp:prod
13 verbose stack Exit status 134
13 verbose stack     at EventEmitter. (/usr/local/nvm/versions/node/v10.14.2/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess. (/usr/local/nvm/versions/node/v10.14.2/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:962:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /home/username/gdrive-copy
16 verbose Linux 4.14.83+
17 verbose argv "/usr/local/nvm/versions/node/v10.14.2/bin/node" "/usr/local/nvm/versions/node/v10.14.2/bin/npm" "run" "build:prod"
18 verbose node v10.14.2
19 verbose npm  v6.8.0
20 error code ELIFECYCLE
21 error errno 134
22 error<EMAIL_ADDRESS>build:prod: npm run webpack:prod && npm run gulp:prod
22 error Exit status 134
23 error Failed at the<EMAIL_ADDRESS>build:prod script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 134, true ]

If I copy what is currently in dist i get an error on line 3

TypeError: Expected argument of type object, but instead had type undefined. at unknown function

What is the expected behavior?
should set up script to be able to deploy to google scripts? I haven't made it that far so I don't know. I would like to be able to deploy this script on my own GSuite account, as I have a business account, and would like to see what I can edit so that I may extend out the limits that are currently imposed: I'm using your web apps store version right now, but it constantly stops at 5 minutes, and never resumes. I have to constantly manually resume the script. I am currently trying to migrate 1.8tb of data, so I'm also not sure if there is a file size limit, or if the script times out if a file is too large (largest files is about 30gb)
How would you reproduce the current behavior (if this is a bug)?
launch https://console.cloud.google.com/cloudshell/
create a shell (it's free) and use the console and editor
the editor gives you access to your workspace file structure
in the console run the commands specified by the For non-developers instructions
for deployment, I created a new script, made new files, using the names in dist, copied the script contents by opening the file highlighting all and pasting into the new script/html file.
Specify your

operating system: windows 10
browser: chrome

I see that you are using Node v10

3 info using<EMAIL_ADDRESS>
Please use Node 8 as noted in the README. I'll update the how-to to be more accurate - currently it says Node v4 but actually v8 is better.


Time out error due to task name in Azure Batch

Steps that lead me to the error:

create a batch account
create a job (via API)
define a task where the Id contains an invalid character, example '.' (dot) (via API)
add the task to the job (via API)

The program will fail due to time out (see attached file).
Time our error.txt
Expected behaviour:
the function task.add_collection(job_id, tasks) in azure.batch should check the string passed, and raise an exception if it contains an invalid character.
From the web interface of Azure, the name of the task should be:
"A string that uniquely identifies the task within the job. The id can contain any combination of alphanumeric characters including hyphens and underscores and cannot contain more than 64 characters."

Hi @stawo
Since it's a network issue, could you check the version of your msrest package? This is the one handling with requests, and if it's not the latest version, updating it might help a lot.
Adding @annatisch from Batch also

Hi @lmazuel
To be sure, I updated all the pip packages. I ran:
pip install --update msrest
pip install --update azure
Now I have:
msrest (0.4.11)
azure (2.0.0)
azure-batch (3.0.0)
The problem persists as described above, no changes in the output.


[Question]: No internet connection in OpenWRT x64

Is your question not already answered in the FAQ?

[X] I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

[X] I am sure my question is not about a technical issue.

Question
Everything working great except the network adapter / no internet connection

same here

I tried the macvlan network option, hit this error:
Cannot create macvtap interface. Please make sure the network type is 'macvlan' and not 'ipvlan',
windows


Updating Allen Institute notebooks and read me

Updates to account for most recent version of AllenSDK which includes multiple stimulus blocks for each recording session. More info can be found under "data file changelog" here: https://allensdk.readthedocs.io/en/latest/visual_behavior_optical_physiology.html
Also a few additional references was added to the documentation in the markdown file for the Neurons page

@marius10p @matchings @iamzoltan new pull request

Done.

Can you clear cells and restart kernel before saving?


EXT: Matplotlib viewer on HDF5 datasets

Requires https://github.com/nanshe-org/nanshe/pull/307
This makes some changes to get this to work on arbitrarily large HDF5 datasets.

Not concerned with the coveralls failure. Should eventually consider tests for this, but for now it isn't a big deal. Ready to go once the requirements are merged.

Ready to go. This allows HDF5 files to be used with this.


Fix signature for linalg.vecdot

This PR:

resolves https://github.com/data-apis/array-api/issues/355. gh-281 failed to include updating the default for axis to -1.

As this PR addresses an oversight and the change simply makes consistent linalg.vecdot with vecdot, will go ahead and merge.


Consoles fail to reload packages if they are installed as egg (zip) files

From<EMAIL_ADDRESS>on 2014-11-21T12:20:32Z
Packages using setuptools get installed as zip files, unless the zip_safe feature is explicitly disabled. This is because the setuptools developers feel that "For maximum performance, Python packages are best installed as zip files."
Unfortunately, spyder does not seem to play nice with packages installed as zip files.
Specifically, if a module is modified, spyder cannot reload it.
What steps will reproduce the problem?

Have a package that uses setuptools and that is marked as zip safe, so that setuptools installs it as a zip file
Install the package
Start spyder
Import the package
Without closing spyder, make a minor change to the package and re-install it
Back to spyder, reload the package from the python or ipython console (e.g. reload().

What is the expected output?
The package should be reloaded in the new version
What do you see instead?
The console errors out with errors like
Traceback (most recent call last):
File "", line 1, in <module>
reload(pydsm)
ZipImportError: bad local file header in /home/callegar/.local/lib/python2.7/site-packages/pydsm-0.10.1_24_gff6a5-py2.7-linux-x86_64.egg
or
error: Error -5 while decompressing data: incomplete or truncated stream What version of the product are you using? On what operating system? This happens on Kubuntu 64 bit utopic.
Please provide any additional information below
. The reload seems to work fine from a normal ipython qtconsole
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2062

From ccordoba12 on 2014-11-21T10:57:32Z
Two questions:

What's your setuptools version? Ubuntu's one is usually way too old.

Why do you need to reinstall the package if it seems you're developing it? I mean, the reload function is used to reload the module interactively and continue working with it but with its new changes.

Because of 2. I don't see the need to spend time trying to solve this issue. It seems to be related to a very specific use case.
Labels: -Priority-High Priority-Low MS-v2.3.3 Cat-Console

From<EMAIL_ADDRESS>on 2014-11-23T04:09:19Z

setuptools is at latest version (I have first tried with ubuntu's and then with the latest 7.0). However, the issue is not with setuptools, that installs the package just fine. In fact, other environments such as the python shell or the ipython console deal with it nicely.

In development I am re-installing the package to: (i) frequently check the setup script; and (ii) to verify that the package works when installed, namely that it finds its data resources when installed.

I do not know if the use case is unusual. The fact is that setuptools defaults to installing packages in compressed fashion nowadays.
I hope that the issue does not happen also with the UMD reload, since it appears related to a stale caching of something.

From ccordoba12 on 2014-11-24T17:44:08Z
It's unusual for me because in four years of developing Spyder, this is the first time I've heard someone is using it the way you are.
Given that right now I'm the only fixing bugs around, I have to prioritize things and so I can't put time on this one. Of course this is open source and so you're more than welcome to delve into our sourcecode to find what's happening and send us a pull request to fix the problem.
Finally, if I understand Python packaging correctly, you shouldn't be using egg files and easy_install because they are deprecated. You should be using pip instead.
Summary: Consoles fail to reload packages if they are installed as egg (zip) files  <span class="oldvalue"> (was: spyder's consoles fail to reload packages if they are installed as zip files) </span>
Status: HelpNeeded
Labels: -MS-v2.3.3


[Feature] Comment Embeds

It'd be nice if it was able to grab the comments data from the URL, instead of linking the main post contents (in the case of copying a comment URL)

It currently shows the comment text content in the embed, is that not sufficient?

It currently shows the comment text content in the embed, is that not sufficient?

It keeps posting the video/clip of the main post whenever I tried to do this.
Eg.
https://www.rxddit.com/r/GlobalOffensive/comments/16w33pp/comment/k2uobd2/?context=3

comment it's linked to

That's a discord issue, closing this as duplicate of #26


feat: remove Algebra.cast

I don't really understand why this declaration exists so I thought I'd remove it to see what happens.

I will be the first to admit that I do not understand the subtleties of coercions at all. What is the reason it's set up as it is?

This is leftover from a lean3 refactor by @Vierkantor that was partially reverted during the port.


[ENH] option to use local folder for  if present

Hey there,
ATM I am doing this, to use a local folder for my dependency if it is present (used for source-distribution of our package since users want to be able to compile without internet connection):
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/<dep>")
  set(CPM_<dep>_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/<dep>" CACHE PATH "Local source path for <dep>.")
else()
  set(CPM_<dep>_SOURCE "" CACHE PATH "Local source path for <dep>.")
endif()

Maybe this could be added as an option to CPMAddPackage to clean this up. With this approach, CPM_<dep>_SOURCE can still be overwritten by ccmake and similar.
Cheers,
Sebastian

For vending dependencies I would create a directory <PROJECT_ROOT>/external and set the CPM_SOURCE_CACHE environmental variable to that path.
In case you are not planning to make your project available as a dependency itself, you can also make this the default behaviour by setting CPM_SOURCE_CACHE to ${CMAKE_CURRENT_SOURCE_DIR}/external in the main project's CMakeLists.txt before including CPM.cmake.


$focusSink as textarea

Any objections to switching the $focusSink element from a div to a textarea?
I've been trying to get paste working with Safari 6/7, and it doesn't like elements that aren't contentEditable for pasting.
Looking at how google drive does it, they use a hidden textarea in the same way slickgrid uses a div. In some preliminary tests everything appears to work well if I change change the tag from div to textarea.
With $focusSink as a textarea I can accept pasted data from a Ctrl+V or Edit > Paste in Safari/FF/Chrome (and probably IE) with some modifications to @Celebio's copy/paste plugin.
If there are no objections I'd be happy to submit a pull request.

I'm looking at things like this at the moment, would you like to submit a pull request ?

Did you see Pull #435 or Pull #936? These pull request relate to copy/paste problem.


Use Mambaforge for bare requirements testing

It looks like our bare requirements import testing is failing on main:
https://github.com/dask-contrib/dask-sql/actions/runs/3915253264/jobs/6693236881
Looking through the failures, I was surprised to see the defaults channel included in the solve, since we specify nodefaults in the list of channels; this PR switches this check to using Mambaforge, which should successfully exclude defaults as intended - interested in seeing how this impacts the failures.
cc @ayushdg

Looks like the gpuCI build passed but the check just failed to get updated:
https://gpuci.gpuopenanalytics.com/job/dask/job/dask-sql/job/prb/job/dask-sql-prb/CUDA_VER=11.5,LINUX_VER=ubuntu18.04,PYTHON_VER=3.9,RAPIDS_VER=23.02/2116/console
This should be good to merge


Documentation

Is there any documentation or sample code available on how to generate an ACH file using this library?

Hello! No documentation yet as the library is incomplete. Here's the vision:
var fileHeader = FileHeaderRecord.new(...);
var fileControl = FileControlRecord.new(...);
var batches = new List<Batch>(...);
var nachaFile = NachaFile.new( fileHeader, batches, fileControl );

nachaFile.generateAchFile();

see https://github.com/mycargus/nacho-nacha/blob/master/Src/Nacha.Core/NachaFile.cs#L38
Further abstraction is possible and would be even better, of course. The ease of use comes with built-in record, batch, and file validation and helpful messaging.
I stopped working on this library for lack of community participation but would love to see it grow. Please feel free to submit a pull request.

Hello,
Good start on this library! I started building off of this for a business need at the time, but that project has since lost steam so I stopped.
I'm knowledgeable about the industry and may be able to contribute.
I still can't believe there isn't a library available to create ACH files, even for purchase.

agreed robson26, its crazy that there isn't a good library out there. I also work in the industry and would be willing to help, but I'm not a programmer by trade (I just hack around a bit for fun or to fulfill a need) and OOP is pretty new to me so I would need guidance to contribute any major chunks of code. My end goal would be to have a small program that I could schedule to run and it would either grab the info from a database or munch it from a .csv and generate an ACH file to inport into our GL.

Do any of you happen to have updates on this project where you've actually gotten it to do something?  It looks like the most recent version gets a good way there but no NACHA file is actually written, there's no writeAchFile() method or anything.

@935main Please see my comment above. If you'd like to see more work done on this project, feel free to submit a pull request. :)


Export range explorer information into CSV/XML

Could you, please, add a way to export range explorer information to CSV file? Sometimes we need to discuss/report/analyze the utilization of ranges in the meetings where using VSC is not easy - and it would be great to be able to export this and be able to convert it into some nice slides...

Sure, this is a cool feature request.

Resolved with https://github.com/vjekob/al-objid/commit/2be3b2d26a153bbaeb5008dbc1a3bfad783dbeff
Will be released with 2.11.0


Finalsprint amy

Not sure what the conflict is thats preventing merge.  Just adding data to tables.

BUILD SUCCESSFUL in 27s

There was a merge issue, some data.sql tables were repeated from old versions. Schema.sql also was not in table order and would pop up issues that tables still existed when you rerun. I fixed these sql files but this still doesnt build

It is actually fixed this time, pinky promise.

> Task :test
2021-11-16 10:37:16.629  INFO 74344 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2021-11-16 10:37:16.633  INFO 74344 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2021-11-16 10:37:16.637  INFO 74344 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.

BUILD SUCCESSFUL in 26s
7 actionable tasks: 5 executed, 2 up-to-date```

> Task :bootRun

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.5.4)

2021-11-16 10:38:18.351  INFO 74585 --- [  restartedMain] e.d.s.g.takeaseat.demo.DemoApplication   : Starting DemoApplication using Java 11.0.11 on MacBook-Pro.local with PID 74585 (/Users/amy/Documents/code/depaul/Take-A-Seat/demo/build/classes/java/main started by amy in /Users/amy/Documents/code/depaul/Take-A-Seat/demo)
2021-11-16 10:38:18.356  INFO 74585 --- [  restartedMain] e.d.s.g.takeaseat.demo.DemoApplication   : The following profiles are active: dev
2021-11-16 10:38:18.433  INFO 74585 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-11-16 10:38:18.434  INFO 74585 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2021-11-16 10:38:20.461  INFO 74585 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-11-16 10:38:20.462  INFO 74585 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-11-16 10:38:20.531  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.featured.FeaturedRepository. If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: javax.persistence.Entity, javax.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository.
2021-11-16 10:38:20.535  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.price.PriceNoSQLRepository. If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: javax.persistence.Entity, javax.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository.
2021-11-16 10:38:20.541  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.reservation.NewsfeedRepository. If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: javax.persistence.Entity, javax.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository.
2021-11-16 10:38:20.548  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.review.ReviewRepository. If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: javax.persistence.Entity, javax.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository.
2021-11-16 10:38:20.557  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data JPA - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.team.TeamReviewRepository. If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: javax.persistence.Entity, javax.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository.
2021-11-16 10:38:20.605  INFO 74585 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 133 ms. Found 9 JPA repository interfaces.
2021-11-16 10:38:20.623  INFO 74585 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-11-16 10:38:20.624  INFO 74585 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
2021-11-16 10:38:20.629  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.employee.EmployeeRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.637  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.amenities.AmenitiesRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.639  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.building.BuildingRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.641  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.employee.EmployeeRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.647  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.price.PriceRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.652  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.reservation.ReservationRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.655  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.spaces.SpacesRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.658  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.team.TeamRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.662  INFO 74585 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface edu.depaul.se452.group4.takeaseat.demo.workspace.WorkspaceRepository. If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository.
2021-11-16 10:38:20.684  INFO 74585 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 58 ms. Found 5 MongoDB repository interfaces.
2021-11-16 10:38:22.414  INFO 74585 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-11-16 10:38:22.424  INFO 74585 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-11-16 10:38:22.424  INFO 74585 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.52]
2021-11-16 10:38:22.517  INFO 74585 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-11-16 10:38:22.517  INFO 74585 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4082 ms
2021-11-16 10:38:23.471  INFO 74585 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-11-16 10:38:23.816  INFO 74585 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-11-16 10:38:25.104  INFO 74585 --- [  restartedMain] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-11-16 10:38:25.149  INFO 74585 --- [  restartedMain] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.32.Final
2021-11-16 10:38:25.254  INFO 74585 --- [  restartedMain] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-11-16 10:38:25.334  INFO 74585 --- [  restartedMain] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
2021-11-16 10:38:28.122  INFO 74585 --- [  restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-11-16 10:38:28.130  INFO 74585 --- [  restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-11-16 10:38:30.396  INFO 74585 --- [  restartedMain] org.mongodb.driver.cluster               : Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'}
2021-11-16 10:38:30.447  INFO 74585 --- [localhost:27017] org.mongodb.driver.cluster               : Exception in monitor thread while connecting to server localhost:27017

com.mongodb.MongoSocketReadException: Prematurely reached end of stream
        at com.mongodb.internal.connection.SocketStream.read(SocketStream.java:112) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.SocketStream.read(SocketStream.java:131) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnection.receiveResponseBuffers(InternalStreamConnection.java:647) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnection.receiveMessageWithAdditionalTimeout(InternalStreamConnection.java:512) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:355) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:279) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:83) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:33) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initializeConnectionDescription(InternalStreamConnectionInitializer.java:107) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:62) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:144) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription(DefaultServerMonitor.java:188) ~[mongodb-driver-core-4.2.3.jar:na]
        at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:144) ~[mongodb-driver-core-4.2.3.jar:na]
        at java.base/java.lang.Thread.run(Thread.java:836) ~[na:na]

2021-11-16 10:38:30.718  INFO 74585 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2021-11-16 10:38:31.708  WARN 74585 --- [  restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-11-16 10:38:32.250  INFO 74585 --- [  restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [static/index.html]
2021-11-16 10:38:33.505  INFO 74585 --- [  restartedMain] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint(s) beneath base path '/actuator'
2021-11-16 10:38:33.571  INFO 74585 --- [  restartedMain] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@e06dae75, org.springframework.security.web.context.SecurityContextPersistenceFilter@a2214f3a, org.springframework.security.web.header.HeaderWriterFilter@553cab8f, org.springframework.web.filter.CorsFilter@c585ece6, org.springframework.security.web.csrf.CsrfFilter@effca1c9, org.springframework.security.web.authentication.logout.LogoutFilter@c8890b2b, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@76585586, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@681645f7, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@4dcb5fd6, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@e00b17a3, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@7a062e24, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1ed06522, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5d5c9910, org.springframework.security.web.session.SessionManagementFilter@7eebe012, org.springframework.security.web.access.ExceptionTranslationFilter@c9d80106, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@f757f4ef]
2021-11-16 10:38:34.256  INFO 74585 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2021-11-16 10:38:34.304  INFO 74585 --- [  restartedMain] e.d.s.g.takeaseat.demo.DemoApplication   : Started DemoApplication in 16.535 seconds (JVM running for 17.311)
begin encoded
Take-A-Seat Dev/Main
end encoded
<==========---> 80% EXECUTING [1m 31s]
> :bootRun


Why decoupled service dosn't get triggered?

I'm starting with Restangular and I need to write a decoupled service like the one described in https://github.com/mgonto/restangular#user-content-decoupled-restangular-service.
My goal is to do a single GET to "/layout/default".
app.factory('Layout', ['Restangular', function Layout(Restangular) {
  return Restangular.service('layout');
}]);

app.config(['$stateProvider', function ($stateProvider) {
   $stateProvider.state('default', {
      // controller, controllesAs, template...
      resolve: {
         data: ['Layout', function resolveDefaultLayoutData (Layout) {
            console.log('resolveDefaultLayoutData()'); // Everything is fine here
            return Layout.get('default'); // Shoud do GET to "/layout/default" but
                                          // no requests are made and nothing gets loged on "console"
                                          // neither in "network" in the browser inspector tabs
         }]
      }
   })
}]);

I saw some issues mentioning that the ".get" method is missing, but in this case, the browser should throw a "has no property" exception... If this is a duplicate, I'm sorry.

Following should work:
...
return Layout.one('default').get();

@MtDalPizzol Did @nbasov 's example this work for you?

@daviesgeek , I ended up just changing this:
return Restangular.service('layout');

to this:
return Restangular.all('layouts');

I don't know if this is actually a decoupled service, but it serves my needs, so...

Okay that sounds good and should work. Since it seems to have solved your issue, I'll go ahead and close this. Feel free to re-open if necessary!


Make sure that an account Errors if region initialization fails

We now only initialize the necessary regions during account creation therefore if the initialization fails we want to fail the account as well.
Card: https://issues.redhat.com/browse/OSD-2982

/label tide/merge-method-squash

/retest

/hold cancel

Codecov Report

Merging #599 (6e0b249) into master (d09bce9) will increase coverage by 6.90%.
The diff coverage is 0.00%.

:exclamation: Current head 6e0b249 differs from pull request most recent head fbfc6d5.


Wear OS App crashes on calling Fetch API (or XMLHttpRequest)

Hi! Nice work!
I am planning on developing a standalone Wear OS app with renative. I can run the debug version on the emulator and my test device.
However, the moment I initiate a fetch call the app crashes immediately.
const response = await fetch('http://someurl.com')

Same problem occurs when using XMLHttpRequest.
See logs below. It appears that it's accessing android.webkit API which I think is not available on Wear OS.
    --------- beginning of crash
2020-11-22 16:27:58.592 7398-7472/? E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: com.test.app, PID: 7398
    java.lang.UnsupportedOperationException
        at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:241)
        at android.webkit.CookieManager.getInstance(CookieManager.java:40)
        at com.facebook.react.modules.network.ForwardingCookieHandler.getCookieManager(ForwardingCookieHandler.java:178)
        at com.facebook.react.modules.network.ForwardingCookieHandler.get(ForwardingCookieHandler.java:56)
        at okhttp3.JavaNetCookieJar.loadForRequest(JavaNetCookieJar.java:61)
        at com.facebook.react.modules.network.ReactCookieJarContainer.loadForRequest(ReactCookieJarContainer.java:43)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:84)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:200)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

How can I make HTTP requests inside a renative Wear OS project?
Thanks!

@fegodev unfortunately android wear OS does not support webview API. more info here:
https://developer.android.com/guide/webapps/managing-webview.
So non webkit workaround would be needed for this. will need to check if there are libs out there which do not use android.webkit

Yeah I figured. I couldn't find a React Native module for webkit independent requests so I started building my own. It implements the Google Volley library: https://github.com/google/volley
First test was successful on Wear OS with renative. Will keep you posted.

awesome. 👍 . If it works, it could potentially be used to patch RN metro which also relies on webkit thus direct debugging is not possible on androidwear atm.

@pavjacko I have published a first version:
https://github.com/fegodev/react-native-volley
Not sure if it helps with the metro debugging problem but it can handle HTTP requests independent of webkit. Worked for me with renative on Wear OS device.

@fegodev awesome! will look into ways to integrate it for 0.33

@fegodev awesome! will look into ways to integrate it for 0.33

@fegodev - Until this is integrated into 0.33, do you have an example of using it in WearOS? I tried pulling it in, and I'm seeing some odd behavior:

If I console.error(Object.keys(Volley)), I get ['fetch'] as would be expected
When i try to call Volley.fetch, I get Cannot read property 'fetch' of null, which is certainly odd considering the log clearly shows a non-null object with a fetch property

Nevermind, I forgot to save the changes to my renative.json to register the plugin.

Nevermind, I forgot to save the changes to my renative.json to register the plugin.

How can i register the plugin?
i installed react-native-volley and did as documentation, but not working for me and i don't know how to get debug console log to see what is going on


Adding checks for mongo with todolist

/test all

/uncc weshayutin kaovilai

/retest

/retest

This is no longer being used.