v2 activity tracking spec

Add a spec for multi-resource activity tracking.
Of note:

manual:

Omits notify (used 100 times out of 200,000) and declared legacy by QL AT deck
Omits score_completion_only (used 160 times out of 200,000)
Omits manual, manual_remote_url, which are deprecated
Omits name, description (not sure what these would be for at the Manual level)

step:

Allows title to be localized
Allows student-facing messages to be localized
Allows services from multiple resources
Omits api (since there might be multiple environment types)
Omits max, interval (QL code should be deciding these things [or, preferably IMO, removing the background checks altogether])
Omits method_name, and assumes the method to be called will be named check (other methods can still be created, and will not be called by the QL code)
Omits multi_region (this has caused lots of headaches and is only used 700 times out of 875,000)

step.code:

Does not take points as an input (not sure why this would be useful)
Does not allow omitting a non-student message
Does not output a done key (will instead be inferred from score == maximum_score
Is still just a chunk of ruby code, rather than allowing for other languages or references to common modules

TODO:

add specification of allowed services in the various resource type sections
update the examples directory

manual:

I know this corresponds directly with our ActiveRecord model name, but I've never understood the noun "manual" in this context.
Suggested alternatives: assessment, evaluation

step:

Allows title to be localized
Allows student-facing messages to be localized

I'm 10,000% in favor of this, but it does imply database model and lab UI changes before we could have authors use the format.

Omits max, interval (QL code should be deciding these things [or, preferably IMO, removing the background checks altogether])

(Agreed [and agreed])

Omits method_name, and assumes the method to be called will be named check (other methods can still be created, and will not be called by the QL code)

I have mixed feelings about this. I'd like to give advanced authors the ability to write activity tracking in separate files for shared functionality, easier linting, and possibly unit testing prior to Test Harness. In this case, they would likely need to identify which function in the file(s) applied to which step.... but (1) YANGI, and (2) we could give them an alternate specification format for references to other files.

step.code:

Does not take points as an input (not sure why this would be useful)

I just poked around and it seems to be used to decouple the code from the max score. So if the max score for a step changes (excitement factor!), author doesn't need to remember to change it in both the metadata and the code.
I don't feel strongly either way; but if we keep it, then I'd suggest we at least start calling the parameter max_points/max_score.

Does not allow omitting a non-student message

:clap: :clap: :clap:

Does not output a done key (will instead be inferred from score == maximum_score

I'm cool with this because in practice that's how it's always used. I searched the gcp-spl-content repo and found that every usage of done => true corresponded with returning the maximum score.
However, as an entirely new feature in the future, I wonder if the concept of "I'm done, do not allow re-evaluation" is interesting to authors.

Is still just a chunk of ruby code, rather than allowing for other languages or references to common modules

:+1:

@jgan thanks for the comments! Responses below.

manual:

I know this corresponds directly with our ActiveRecord model name, but I've never understood the noun "manual" in this context.
Suggested alternatives: assessment, evaluation

Updated manual -> assessment

step:

Allows title to be localized
Allows student-facing messages to be localized

I'm 10,000% in favor of this, but it does imply database model and lab UI changes before we could have authors use the format.

Yes, there will need to be changes in website, but that was going to be the case anyway.

Omits method_name, and assumes the method to be called will be named check (other methods can still be created, and will not be called by the QL code)

I have mixed feelings about this. I'd like to give advanced authors the ability to write activity tracking in separate files for shared functionality, easier linting, and possibly unit testing prior to Test Harness. In this case, they would likely need to identify which function in the file(s) applied to which step.... but (1) YANGI [sic], and (2) we could give them an alternate specification format for references to other files.

I agree that in theory an author may want to specify a method name, but in practice I don't see that happening and we can definitely add an optional param, or other syntax entirely if/when that comes up.

step.code:

Does not take points as an input (not sure why this would be useful)

I just poked around and it seems to be used to decouple the code from the max score. So if the max score for a step changes (excitement factor!), author doesn't need to remember to change it in both the metadata and the code.
I don't feel strongly either way; but if we keep it, then I'd suggest we at least start calling the parameter max_points/max_score.

The decoupling makes sense, but I doubt that max scores change very often, and would prefer to keep it simpler. I could definitely be swayed on this one though.

Does not output a done key (will instead be inferred from score == maximum_score

I'm cool with this because in practice that's how it's always used. I searched the gcp-spl-content repo and found that every usage of done => true corresponded with returning the maximum score.
However, as an entirely new feature in the future, I wonder if the concept of "I'm done, do not allow re-evaluation" is interesting to authors.

Something to consider for the future.

After conversation with Enis, to make things more backwards-compatible, I added the max_score param back in, and renamed the output message to student_message

Hi Jon, thanks for taking this on! Seems like a couple old "features" have been removed -- just want to make sure that's intentional:

notify (browser/OS notifications)
score_completion_only (pass/fail)

And in "steps"

interval (step must be completed within a certain time)
multi_region (explicitly support multi-region check for the step)
api (e.g. GCP -- perhaps can always be inferred through runtime context??)

@davetchen yeah, please see the description of the PR - I think I addressed all of those.

Add a spec for multi-resource activity tracking.
Of note:

manual:

Omits notify (used 100 times out of 200,000) and declared legacy by QL AT deck

This is fine. An experiment that should have been cleaned up a while ago.

Omits score_completion_only (used 160 times out of 200,000)

It is OK, I believe, to remove this from the assessment spec but we do need something like this as an attribute of the lab. It is more of a UX thing. There are some labs where the content creator doesn't want to display scores but a checkbox for completing/passing a step. The assessment code should always work with scores.

Omits manual, manual_remote_url, which are deprecated
Omits name, description (not sure what these would be for at the Manual level)

This is also fine. It was unclear when we originally designed this whether these would be useful fields or not. It is time to remove.

step:

Allows title to be localized
Allows student-facing messages to be localized
Allows services from multiple resources

This is awesome and very much needed.

Omits api (since there might be multiple environment types)

Not sure I understand what this is.

Omits max, interval (QL code should be deciding these things [or, preferably IMO, removing the background checks altogether])

This was also an experiment that didn't work but I'm not 100% whether something like this is needed in the future or not. The thinking here was that in a lab with multiple steps, students would have a portion of the lab time allocated to completing a particular step and if they didn't, they would fail that step even if they complete it later in the lab. The implementation of this ended up being too confusing but I can see a requirement like this for actual challenge labs/tests/games.

Omits method_name, and assumes the method to be called will be named check (other methods can still be created, and will not be called by the QL code)

This is OK as long as we are always running the method in complete isolation but wouldn't this also make it harder for us to implement global variables in the future like what Harish as requested. To be sure, I am against that for the moment but I can see us doing something like that in the more distant future.

Omits multi_region (this has caused lots of headaches and is only used 700 times out of 875,000)

I hate this as well and I would like to also remove it but we still don't have a good solution for students that don't do the lab in the region/zone the lab is supposed to run in. I'm not sure it's OK for us to remove this without having an answer to that question.

step.code:

Does not take points as an input (not sure why this would be useful)

This changed based on backward compatibility right?

Does not allow omitting a non-student message

Not sure I understand what this is.

Does not output a done key (will instead be inferred from score == maximum_score

I am not 100% sure of this one. Partial credit is not used at the moment but not because it's not useful but because it is beyond the capabilities of the creators. So, if we are saying, the only way to do partial credit is by creating a lot of simple steps and not a single complex (multiple evaluation) step I am OK with that but would like to at least paper test the premise of it. If 'we end up putting this back in again in the near future I would then just keep it.
Also, this creates a backwards compatibility issue potentially that we need to solve for.

Is still just a chunk of ruby code, rather than allowing for other languages or references to common modules

Yup. That is fine.

TODO:

add specification of allowed services in the various resource type sections
update the examples directory

@eniskonuk thanks for the comments. My responses below.

Omits score_completion_only (used 160 times out of 200,000)

It is OK, I believe, to remove this from the assessment spec but we do need something like this as an attribute of the lab. It is more of a UX thing. There are some labs where the content creator doesn't want to display scores but a checkbox for completing/passing a step. The assessment code should always work with scores.

I don't even know if it should be a lab attribute, given how rarely it is used. For now we can at least remove it from the AT spec, and we can do some research on the use cases before we decide how/if to add it back to the platform.

Omits api (since there might be multiple environment types)

Not sure I understand what this is.

The current api field is one of AWS, GCP, GSuite, which determines what handles are available in the step. That does not make sense in a multi-environment lab.

Omits max, interval (QL code should be deciding these things [or, preferably IMO, removing the background checks altogether])

This was also an experiment that didn't work but I'm not 100% whether something like this is needed in the future or not. The thinking here was that in a lab with multiple steps, students would have a portion of the lab time allocated to completing a particular step and if they didn't, they would fail that step even if they complete it later in the lab. The implementation of this ended up being too confusing but I can see a requirement like this for actual challenge labs/tests/games.

Ah interesting. I think we should remove it here, and if we have similar use cases in the future we can design something that meets the requirements at that time.

Omits method_name, and assumes the method to be called will be named check (other methods can still be created, and will not be called by the QL code)

This is OK as long as we are always running the method in complete isolation but wouldn't this also make it harder for us to implement global variables in the future like what Harish as requested. To be sure, I am against that for the moment but I can see us doing something like that in the more distant future.

I think it would actually make it easier for us to add globals in the future, since we wouldn't have to worry about conflicting with arbitrary method names that authors come up with.

Omits multi_region (this has caused lots of headaches and is only used 700 times out of 875,000)

I hate this as well and I would like to also remove it but we still don't have a good solution for students that don't do the lab in the region/zone the lab is supposed to run in. I'm not sure it's OK for us to remove this without having an answer to that question.

Given the exceptionally low usage of multi_region, it seems like the vast majority of labs are getting by just fine without accounting for students working in unexpected region/zone. I don't know if there's something special about the labs that are using this, or if it's random, but I think until we hear more about what makes this a key feature, we should remove it. Especially in a multi-environment lab, multi_region as currently implemented is untenable.

step.code:

Does not take points as an input (not sure why this would be useful)

This changed based on backward compatibility right?

Correct

Does not allow omitting a non-student message

Not sure I understand what this is.

Activity tracking currently allows the return hash to have two "message" entries: message and student_message. I think the theory was that student_message would be conveyed back to the student, while message is logged, but I don't think it's really used.

Does not output a done key (will instead be inferred from score == maximum_score

I am not 100% sure of this one. Partial credit is not used at the moment but not because it's not useful but because it is beyond the capabilities of the creators. So, if we are saying, the only way to do partial credit is by creating a lot of simple steps and not a single complex (multiple evaluation) step I am OK with that but would like to at least paper test the premise of it. If 'we end up putting this back in again in the near future I would then just keep it.
Also, this creates a backwards compatibility issue potentially that we need to solve for.

You can still do partial credit without the done key. The current setup would have something like:

max_score is 5, you return { points: 2, done: false }, which means that the student got 2/5 and has not "completed" the step
max_score is 5, you return { points: 5, done: true }, which means that the student got 5/5 and has  "completed" the step
max_score is 5, you return { points: 2, done: true }, which means that the student got 2/5 and has "completed" the step, despite not getting all the points

I am proposing that you just return { points: 2 } or { points: 5 } and we would know that in the first case you are not done, while in the second you are. Does that make sense?
I also don't think it creates a backwards compatibility issue, since we can just ignore the done key in the return.

At long last, this PR is ready to merge. Thanks all for the comments!


remove plug_cowboy

Summary of changes
This dependency isn't being used any more, so let's remove it. Also cleans up some other unused entries in the lockfile.

I thought cowboy is needed by Phoenix 🤔 . It doesn't run by default unless you start up RealtimeSignsWeb.Endpoint which needs value for MONITOR_SIGN_SCU_PORT to be set as an env var (that will change with my automatic failover PR though).


No integration defined for method

Hi,
After some massaging of our existing Swagger docs I have successfully got an API in Amazon API Gateway.
However whenever I try to deploy this resource I'm receiving the following error:
com.amazonaws.services.apigateway.model.BadRequestException: No integration defined for method (Service: null; Status Code: 400; Error Code: null; Request ID: e64dddba-51d3-11e5-b141-a1f953910c1b)
	at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1182)
	at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:770)
	at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489)
	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)
	at com.amazonaws.hal.client.HalClient.invoke(HalClient.java:235)
	at com.amazonaws.hal.client.HalClient.postResource(HalClient.java:98)
	at com.amazonaws.hal.client.HalResourceInvocationHandler.invoke(HalResourceInvocationHandler.java:117)
	at com.sun.proxy.$Proxy27.createDeployment(Unknown Source)
	at com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.deploy(ApiGatewaySdkSwaggerApiImporter.java:121)
	at com.amazonaws.service.apigateway.importer.impl.ApiGatewaySwaggerFileImporter.deploy(ApiGatewaySwaggerFileImporter.java:63)
	at com.amazonaws.service.apigateway.importer.ApiImporterMain.execute(ApiImporterMain.java:111)
	at com.amazonaws.service.apigateway.importer.ApiImporterMain.main(ApiImporterMain.java:65)

Any advice if this is caused by my Swagger docs missing data? (1.2 -> 2.0 upgrade)

Standard Swagger is missing some information required to deploy an API in
API gateway. Your methods will need to include the
x-amazon-apigateway-integration extension. Have a look at the readme or
apigateway.json file for examples.
On Wednesday, September 2, 2015, dddanmar<EMAIL_ADDRESS>wrote:

Hi,
After some massaging of our existing Swagger docs I have successfully got
an API in Amazon API Gateway.
However whenever I try to deploy this resource I'm receiving the following
error:
com.amazonaws.services.apigateway.model.BadRequestException: No integration defined for method (Service: null; Status Code: 400; Error Code: null; Request ID: e64dddba-51d3-11e5-b141-a1f953910c1b)
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1182)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:770)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)
at com.amazonaws.hal.client.HalClient.invoke(HalClient.java:235)
at com.amazonaws.hal.client.HalClient.postResource(HalClient.java:98)
at com.amazonaws.hal.client.HalResourceInvocationHandler.invoke(HalResourceInvocationHandler.java:117)
at com.sun.proxy.$Proxy27.createDeployment(Unknown Source)
at com.amazonaws.service.apigateway.importer.impl.sdk.ApiGatewaySdkSwaggerApiImporter.deploy(ApiGatewaySdkSwaggerApiImporter.java:121)
at com.amazonaws.service.apigateway.importer.impl.ApiGatewaySwaggerFileImporter.deploy(ApiGatewaySwaggerFileImporter.java:63)
at com.amazonaws.service.apigateway.importer.ApiImporterMain.execute(ApiImporterMain.java:111)
at com.amazonaws.service.apigateway.importer.ApiImporterMain.main(ApiImporterMain.java:65)
Any advice if this is caused by my Swagger docs missing data? (1.2 -> 2.0
upgrade)
—
Reply to this email directly or view it on GitHub
https://github.com/awslabs/aws-apigateway-swagger-importer/issues/29.

--

Thank you, I'm a fool, appreciate the nudge in the right direction.


setRadius: not a number

Issue description
Not set radius dynamically
Steps to reproduce and a minimal demo of the problem
Issued Plunker: http://plnkr.co/edit/pGCL7WgbPumWmJj4coBa?p=preview
What steps should we try in your demo to see the problem? Just change the Radius Range
Current behavior
Error: InvalidValueError: setRadius: not a number
Expected/desired behavior
Radius Circle will be expend by radius range
angular2 & angular2-google-maps version
^0.16.0
Other information

This is technically an old Angular bug. It as been fixed in  some minor release after final (your plunker uses Angular RC7).

Closing this due to old Angular version. Feel free to reopen. Thx @lazarljubenovic !


Optimize advanced options in workflows

Is your enhancement related to a problem? Please describe.

Describe the solution you'd like

Make the timeout field optional in workflow. No timeout by default.
Values can be customized.
Add a description to this field. There are different timeout options that may confuse users.

Describe alternatives you've considered

Additional context

Environment

Walrus version: v0.4.0-rc1  a3e5c0343d3e831ca30e4fd76a160212bc5bba7f
UI version: dev-6b82ce8

The default value for parallelism is 10.

No timeout or retry by default.

Environment

Walrus version: 3ccf6b03dc821e799b35b45d41e07165821beb7f
UI version: dev-e291910

Test Result:  Let's create the service step with no timeout by default.

Environment
Walrus version: v0.4.0-rc2
UI version: v0.4.0-rc2
Test Result: Pass


sorting date string not working

[x] bug report => search github for a similar issue or PR before submitting

Current behavior
A sortable column with these string values:
'2021-03-07'
'2021-03-08'
When you click on the column title to change the sort direction, the icon is updated but the sort does not change.

Expected behavior
When clicking on the column title, I expect the sort order to change like it does for the other columns.

Reproduction of the problem
Used the example and changed one column to contain date strings.
What is the motivation / use case for changing the behavior?
We use easy to read sortable dates in the table.

Please tell us about your environment:
MacOS 11.2.2

Table version:
19.0.0

Angular version:
11.2.3

Browser:
Chrome 88.0.4324.192

Language: [all | TypeScript X.X | ES6/7 | ES5]
TS 4.1.5

Switching to PrimeNG as it works much better.  You can keep ignoring this one :)


TextEdit: Don't error when undo stack is empty

fixes https://github.com/godotengine/godot/issues/92995

Thanks!


The correct term is "rows and columns", not "lines and columns"

Replace all incorrect references to line(s) with row(s). Both in documents and code

On second thought, it's lines of text, columns of characters.
So we need to instead check and fix any incorrect references to row(s)


Adds twitter username to Speaker

This change is based on the PyOhio fork located at: https://github.com/PyCon/pycon/search?utf8=✓&q=twitter_username
The PyOhio forks has tests and other features which might be worth adding but that's probably a larger design decision.

Thank you @jefftriplett! :) @paltman Can this be merged?

Thank you!


Make apps single-threaded

📄 Description
This will be useful for avoiding issues with many Rebound apps and make things more consistent overall.

This would fix my problem with marshalling that I had from the package project but tbh I already came up with a better solution for that.


Opacity of overlay doesn't change after re-invoke.

If colorbox is opened and user try to open new one with new "opacity" for overlay, it won't change.
Example:
jQuery.colorbox({opacity:0.3})
jQuery.colorbox({opacity:0.8})
console.log(jQuery('#cboxOverlay').css('opacity'))    //  0.3
Thanks.

How is that an issue?  It's a setting.  If you want to change it on
the fly, use CSS.
On Tue, Oct 11, 2011 at 9:40 AM, legaev-stas
<EMAIL_ADDRESS>wrote:

If colorbox is opened and user try to open new one with new "opacity" for overlay, it won't change.
Example:
jQuery.colorbox({opacity:0.3})
jQuery.colorbox({opacity:0.8})
console.log(jQuery('#cboxOverlay').css('opacity'))    //  0.3
Thanks.
--
Reply to this email directly or view it on GitHub:
https://github.com/jackmoore/colorbox/issues/121

--
Jack Moore
colorpowered.com
twitter.com/jacklmoore

This is not a proble to change it by CSS.
But when I invoked colorbox with one content and after that(without closing) I invoked it again with another content and with another "opacity", it wasn't changed. This is wierd behavior.
Don't you think?

You can easily change it via CSS.
$('#cboxOverlay').css('opacity', 1);
In addition, $.colorbox({..settings..}) doesn't do anything because
it's not associated with anything.  If you want to change a setting on
an element you've assigned colorbox to, you need to reassign colorbox
with the new setting value:
// change the default setting:
$.colorbox.settings.opacity = 0.8;
// update it on an element:
$('#example').colorbox({opacity:0.5});
$('#example').colorbox({opacity:0.3});
On Tue, Oct 11, 2011 at 11:05 AM, legaev-stas
<EMAIL_ADDRESS>wrote:

This is not a proble to change it by CSS.
But when I invoked colorbox with one content and after that(without closing) I invoked it again with another content and with another "opacity", it wasn't changed. This is wierd behavior.
Don't you think?
--
Reply to this email directly or view it on GitHub:
https://github.com/jackmoore/colorbox/issues/121#issuecomment-2365849

--
Jack Moore
colorpowered.com
twitter.com/jacklmoore


docs: README

Prepare a nice clean README with:

[x] general info
[x] shields
[x] installation instruction
[x] exec
[x] instruction how to parse to output
[x] conda
[ ] links to papers

Here's a couple, will check with Rob for more:
https://www.nature.com/articles/s41559-021-01615-9
https://onlinelibrary.wiley.com/doi/full/10.1111/eva.13057


feat: add welcome action

Changes proposed

Add GitHub action for First-time Contributors.

Fixes issue
closes #553

Exactly this is how these messages will appear for the first time contributors.
For First PR

For First issue

Hey @Susmita-Dey, it has been a long time, is there something I could help you with in reviewing & merging this PR.

Sure, joining inn. Would love to help where needed!! :)


How to float ontop of content beneath?

Right now my app looks like this and I can't seem to understand how to make it float ontop like yours demo!
Is it possible? Btw, thanks for the library!

I got it to look like this with position relative and absolute:

If the relative position solution works out for you I will close this issue.

@l-urence Yeah, but the gif in the readme looks like it is floating, is it? How did you do it?

No, the example autocomplete container position is absolute.

@l-urence Would it be an idea to put that into the module? Because it does not really make sense without :)

@kevinsimper Actually this is true! But right now I didn't figure out how to to this in a good way (lack of time). The absolute position seems to be more some kind of "hack" to put the suggestion list on top of other elements. For that reason I excluded the positioning to the example. An optimal solution would be to add the autocomplete like the <TextInput /> to a component and the suggestion list will appear over other elements. Without strange behaviours which could happen if you set it to an absolute position.

@l-urence Yeah, I can see what you mean, but I think that is better than the current behaviour.

@kevinsimper I will have a look at the weekend.

@kevinsimper I prototyped a fix for the absolute position. Can be installed via npm. Short feedback would be nice. Thx.

@l-urence Hello!
Just tested it. Looks good! 👍

@kesha-antonov Great :). Will publish everything ASAP.

The fix didn't work for me in Android, but iOS works fine, as in images below.

The android issues seems to be related to #20.

I managed to get it working with a different approach. Thanks, anyway.

@tioback Thanks for sharing you approach. Maybe I can integrate some of your ideas into the component.


Incompatible Android Devices

Neither via the Play Store nor via directly downloading the apk an installation is possible.
Google Play Store says the device is incompatibie. When trying to install the apk directly the package manager complains that there was an error parsing the file.
This affects at least my Xiaomi Mi A1 with Android 9 (Android One) and a Shiftphone SHIFT6mq with Android 10.
If there are good reasons that these devices are not supported, it would be good to know the requirements.

Unfortunately Xiaomi devices do not seem to support Google's LocalOnlyHotspot API which is used by Flying Carpet. Please see https://github.com/spieglt/FlyingCarpet/issues/44 for a previous discussion. I'll add a note about this to the readme. Flying Carpet requires at least Android 11, which I would guess is why the Shiftphone doesn't work, though I don't know much about Shiftphone.

@Zacrain I don't remember why I had to set the minimum API version to 30 (Android 11), but I just compiled it with minimum API set to 19 and it seemed to work. Please try this APK on the Shiftphone and let me know, thanks.
https://github.com/spieglt/FlyingCarpet/releases/download/v8.0.1/android_FlyingCarpet_8.0.0_minimum_SDK_19.apk

@Zacrain there is a new version that requires Android 6/SDK 23, please try it and let me know if you're able.
https://github.com/spieglt/FlyingCarpet/releases/download/v8.0.1/android_FlyingCarpet_8.0.1.apk


Reformatting

This is fully functioning and (in my opinion) much more organized than before.

I should note that if we merge this I will need to update the README to explain the need and usage of the .h files


Please add Torrent Streaming Feature

Describe your suggested feature
Please add a torrent streamimg feature.
Kuukiyomi already supports this feature
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is a request regarding an extension, I should be opening an issue in the extension's repository.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I will fill out all of the requested information in this form.

Duplicate of #1771


feat(mat-menu): Height menu is reducing when the page is scrolling

Bug, feature request, or proposal:
When the menu is opened and scrolling it, the height menu is reducing.
What is the expected behavior?
The height menu shouldn't change.
What is the current behavior?
The height menu is reducing
What are the steps to reproduce?

Open menu
Scroll page

https://stackblitz.com/edit/angular-material-menu-issue
What is the use-case or motivation for changing an existing behavior?
Better user experience
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Version 7
Is there anything else we should know?
I found It is happening in the menu overlay, when page is scrolling, the overlay height is reducing but, if the user scrolls to oposite way, this heigh is not recovering its height that it had before.

+1
still no any idea?

any solution?

This issue might be resolved (at least partially) by setting height: fit-content; on the panel element:
example.component.scss
<mat-menu class="example-class" ... > ... </mat-menu>
example.component.scss
::ng-deep .example-class {   height: fit-content; }


can't open/read file: check file path/integrity

Images works but video cann't
It shows：
Testing 0 video
[<EMAIL_ADDRESS>global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('inputs\video'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "C:\Users\mcfor\Real-ESRGAN\inference_realesrgan.py", line 128, in
main()
File "C:\Users\mcfor\Real-ESRGAN\inference_realesrgan.py", line 103, in main
if len(img.shape) == 3 and img.shape[2] == 4:
AttributeError: 'NoneType' object has no attribute 'shape'
But I have ‘video’ folder in ‘inputs’，why it happened？

Please try to put in only the video file in the 'inputs ' folder. Remove the video folder and try to re-run again.


Left arrow key is not working in submenu

Version
1.9.1
Test Case
Access context menu by keyboard up down left right arrows. Go to a submenu , try to press left arrow.
It should come to main menu and submenu should be invisible
It got stuck in sub menu itself . I tried to check the reason, So in abstractMenu.js hideMenu function itself is not there.

@vkbansal  Raised a PR for this fix.

Fixed in #333


Replace #ifdef include guards with #pragma once

Replace
#ifndef INEXOR_ENTSYS_HEADER_FILE
#define INEXOR_ENTSYS_HEADER_FILE
// Code here
#endif // INEXOR_ENTSYS_HEADER_FILE

with
#pragma once
// Code here

everywhere in the code.

This feature has been implemented https://github.com/inexorgame/entity-system/compare/770326e48309...130cefcfc29c.


bugfix pod termination

Description
Pod deletion initiated from the home pod was not completed correctly.
Indeed, the pod's container statuses in the home was never set to
terminated so the virtual kubelet was not able to delete pod.
This fix updates the container statuses in one go, when the foreign pod
is deleted, ie. we miss to update the home pod when the foreign
containers are terminated. Fixing this problem is out of scope and would
probably require modifying the pod black listing mechanism which seems
too risky at this time. Issue described here:
#721.
Resolves: #598
How Has This Been Tested?

Manually on my development workstation using 2 local clusters (created with kind).
Unit tests added for PodIncomingReflector.

/ok-to-test

/rebase

/rebase

/rebase

/merge


render/gbm_allocator: make wlr_gbm_allocator_create return a wlr_allocator

This patch will prepare the field for dealing with multiple allocators (drm_dumb and shm) in the coming pixman renderer #2661
/cc @emersion

The reason why wlr_gbm_allocator_create returns  wlr_gbm_allocator is to provide type-safety if the caller wants to do something GBM-specific with the backend. For instance we could have wlr_gbm_allocator_get_gbm_device in the future, and it would be nice if this takes a wlr_gbm_allocator instead of a generic wlr_allocator. But this is all theoretical at this point, and it's still a private interface, so I'm fine with returning a wlr_allocator too.

Note, if we introduce wlr_allocator_autocreate, we wouldn't really need this change anymore.

Superseded by https://github.com/swaywm/wlroots/pull/2884


Stress Testing UI Test

We should have a way to run a crap ton of actions and a ton of menu icons to show any possible memory leaks/perf issues.

Punting on this. We may do it later but for now not worth the troubles caused by the Unit Test frameworks and Automation Peers.


Formatted codebase with pre-commit settings

ref: https://github.com/chris-greening/instascrape/pull/35
-In the linked PR I introduced config files for pre-commit to automatically sort order of imports, lint checking with flake8 and auto-formatting with black.
-The changes in this PR is the result of the set pre-commit
All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes, as applicable?
[x] Have you successfully ran tests with your changes locally?

Additional Notes
Feel free to include any additional information regarding your PR below:

Whoops, sorry forgot to base this off master. Re-doing this


API for FarmPro App

includes ussd endpoint
Description
Please include a summary of the change and relevant motivation and context.
List any dependencies that are required for this change.
All pull requests should be related to open issues. Indicate the issue(s) bellow and remove this line:
Fixes #(issue number 1) #(issue number 2 if applicable)
How Has This Been Tested?
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code etc.
Screenshots (if applicable, else remove this line / section)
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added necessary inline code documentation
[ ] I have added tests that prove my fix is effective and that this feature works
[ ] New and existing unit tests pass locally with my changes

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 182

Complexity increasing per file
==============================
- database/migrations/20200530063014-create-sys-users.js  1
- database/migrations/20200530062746-create-counties.js  1
- database/migrations/20200530062659-create-ussds.js  1
- database/seeders/20200530083912-SysUsers.js  1
- database/models/index.js  3
- database/migrations/20200530063454-create-assessments.js  1
- database/models/counties.js  1
- src/routes/v1/counties.js  1
- src/server.js  3
- database/models/farmers.js  1
- src/routes/v1/farmers.js  1
- database/models/sysusers.js  1
- src/routes/v1/users.js  1
- database/migrations/20200530063307-create-farmers.js  1
- src/ussd/v1/ussd.js  1
- database/models/assessments.js  1
- database/models/ussds.js  1

Clones added
============
- database/migrations/20200530063014-create-sys-users.js  1
- database/migrations/20200530062746-create-counties.js  2
- database/migrations/20200530062659-create-ussds.js  2
- database/migrations/20200530063454-create-assessments.js  2
- src/routes/v1/counties.js  10
- database/migrations/20200530063307-create-farmers.js  2

See the complete overview on Codacy


ObjC/Swift interoperability

Goals
Interoperability with Swift & ObjC libraries.
Specifically, https://github.com/danielgindi/Charts.
We want to be able to provide both Results and RLMResults constructors.
How to achieve this?
I can think of two easy ways:

Turn the internal constructors into public, so we can init with an RLMResults or an RLMRealm
Expose the internal properties for those.

Making even one of those subtle and easy changes - will allow having the parallel constructors, but either creating a Results from passed RLMResults and always working with the Results object in our code, or accessing the (currently) internal RLMResults of the Results object, and always working with the RLMResults object in our code.
Making both of those changes - will give great flexibility. Maybe even for other cases that we haven't considered.
Background info
Charts is a crossplatform charting library. We worked with Adam Fish in the past for a Realm layer, and we stumbled upon the ObjC vs Swift situation, which we've put aside for some time. Now there's demand for a solution.

Hi @danielgindi, we're already tracking this as #2920, so I'll be closing this as a duplicate.
Our team would happily accept a PR that implemented this, if you're interesting in contributing this to Realm.
Thanks for the Charts project, looks pretty cool!

I'll try to find the time and make a PR. This should be easy, a few lines of code...


Do you have any examples?

Do you have any examples or some getting started boilerplate code? I have no idea how to start implementing this. Thank you

Same issue here. It looks very promising, but I am stuck after installation.

Rasmus Christiansen schrieb am 13.07.21 um 14:22:

Same issue here. It looks very promising, but I am stuck after
installation.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/justusbluemer/puppeteer-datalayer/issues/2#issuecomment-879040723,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABONYD5BYY7EXZ344LSDFBTTXQVWZANCNFSM4Q7UEQHQ.

--
Justus Blümer
Wiesendamm 147
22303 Hamburg
+49<PHONE_NUMBER>4
@.***
http://www.justusbluemer.de

Same here, this needs a basic guide/Howto at least.
Under what name can we import this module after installation? That would already be incredibly helpful to figure the rest out.
Unfortunately, the glossary is leaving this crucial part out, so the module can't even be used.

Thanks for the recurring emphasis – I agree that this package definitely needs some examples.
I started with a quick one at https://github.com/hume-dev/puppeteer-datalayer/blob/examples/examples/wait-for-event.js and will add a couple more and in-depth examples soon, to the Readme as well.

Awesome, thank you! 🙏
In the meantime, I've implemented the tests myself in Playwright, so I don't need this module after all. But I bet the documentation will be very helpful for others!


ob --verbose invalid character failure

Some ob commands fail with an error like the following when using the --verbose option.
$ ob --verbose run
Starting Obelisk </nix/store/ndgqr350z5rnr58wd70nwkzjg9847nxq-obelisk-command-<IP_ADDRESS>/bin/.ob-wrapped> args=["--verbose","run"] logging-level=Debug
Thunk specification git-v5 did not match "./.obelisk/impl": ReadThunkError_UnrecognizedPaths ("./.obelisk/impl/github.json" :| [])
Thunk specification github-v5 matched "./.obelisk/impl"
./.obelisk/impl: command not cached, building ...
Creating process: nix-build ./.obelisk/impl -A command --out-link ./.obelisk/impl/.attr-cache/command.out
DONE Built on ./.obelisk/impl [command]
Handing off to ./.obelisk/impl/.attr-cache/command.out/bin/ob
Starting Obelisk </nix/store/ndgqr350z5rnr58wd70nwkzjg9847nxq-obelisk-command-<IP_ADDRESS>/bin/.ob-wrapped> args=["--no-handoff","--verbose","run"] logging-level=Debug
Finding packages with root "." and interpret paths:

ob: <stdout>: commitAndReleaseBuffer: invalid argument (invalid character)

Here are the commands that I have been able to recreate this error with:

Command
Error

ob init

ob deploy

ob run
:x:

ob profile

ob thunk

ob repl
:x:

ob watch
:x:

ob shell
:x:

ob doc
:x:

ob hoogle

The commands work fine without --verbose.

Environment:
$ nix-env --query
nix-2.7.0
obelisk-command-<IP_ADDRESS>
$ locale
LANG=en_US.UTF-8
LC_CTYPE=ja_JP.UTF-8
LC_NUMERIC=ja_JP.UTF-8
LC_TIME=ja_JP.UTF-8
LC_COLLATE=ja_JP.UTF-8
LC_MONETARY=ja_JP.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=ja_JP.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=ja_JP.UTF-8
LC_TELEPHONE=ja_JP.UTF-8
LC_MEASUREMENT=ja_JP.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

Steps to reproduce:
$ mkdir /tmp/reflex-demo
$ cd /tmp/reflex-demo
$ ob init
$ ob --verbose run

Possibly related issues:

#335

I investigated the ob run case and found the cause of the error on the Haskell side.  The drawPathTree function makes use of Unicode box-drawing characters.  When printed using putLog Debug, the command fails with the "invalid character" error.  Replacing these characters with ASCII allows the command to progress.
I confirmed that printing the same characters to my terminal using the following program works fine outside of Nix.
{-# LANGUAGE OverloadedStrings #-}

module Main (main) where

import Control.Monad (when)
import Control.Monad.Catch (bracket_)
import Control.Monad.IO.Class (MonadIO(liftIO))
import Data.Text (Text)
import qualified Data.Text.IO as T
import System.Console.ANSI
  ( ConsoleIntensity(FaintIntensity), SGR(Reset, SetConsoleIntensity), hSetSGR
  )
import System.IO (Handle, stdout)

main :: IO ()
main = putStrWithSGR debugColors stdout True "└─├│"
  where
    debugColors = [SetConsoleIntensity FaintIntensity]

------------------------------------------------------------------------------
-- FROM lib/cliapp/src/Obelisk/CliApp/TerminalString.hs

-- | Safely print the string with the given ANSI control codes, resetting in the end.
putStrWithSGR :: MonadIO m => [SGR] -> Handle -> Bool -> Text -> m ()
putStrWithSGR sgr h withNewLine s = liftIO $ bracket_ (hSetSGR h sgr) reset $ T.hPutStr h s
  where
    reset = hSetSGR h [Reset] >> newline -- New line should come *after* reset (to reset cursor color).
    newline = when withNewLine $ T.hPutStrLn h ""

Wondering if it might be a terminfo issue, I exported TERM=xterm and tried again, but it fails with the same error.
I have not investigated the other commands.  If only using ASCII is easier than fixing the Nix side, the following command can be used to search for all non-ASCII characters in Haskell source files.
find . -type f -name '*.hs' | xargs grep -P -Hn "[^\x00-\x7F]"

This error occurs when the locale(s) specified by the LANG and LC_CTYPE environment variables are not available.  This happens when using a non-NixOS Linux distribution when the locale(s) specified by the environment variables are not available in Nix, even if they are available in the host OS.
One way to work around the issue is to set the above environment variables to C.UTF-8.  Another way to work around the issue is to use the LOCALE_ARCHIVE environment variable.  The documentation indicates that it exists to provide a way to specify a locale archive when using different versions of glibc, but it can also be used to point to a locale archive on the host system, usually located at /usr/lib/locale/locale-archive.
Technically, this is a general Nix issue.  If it is preferred, I am happy to simply add some documentation to the README or FAQ to help others who run into it while using Obelisk.
It is also possible to implement a fix in Obelisk.  If the locale is not used anyway, then the simplest thing to do is to set the above locale environment variables to C.UTF-8 when the program runs.  The values have already been read by the time the Haskell code runs, but the changes are effective after hand-off, and the program can be re-executed in the --no-handoff case.  I tested this, and you can see the code in the (second) commit referenced above.
A more involved hack could be used to avoid always setting the locale to C.UTF-8.  Here is some pseudo-code for the general idea:
if LOCALE ARCHIVE is not set:
  if /usr/lib/locale/locale-archive exists:
    set LOCALE_ARCHIVE to /usr/lib/locale/locale-archive
  else:
    setLocaleC (from the above commit)

With this logic, users can avoid any automatic changes by making sure that the LOCALE_ARCHIVE environment variable is set.  Otherwise, the program sets LOCALE_ARCHIVE if a host locale archive is found, allowing users to run with their preferred locale, assuming that the host locale archive is compatible with the version of glibc used within Nix.  If all else fails, the locale environment variables are set to C.UTF-8.  Note that hand-off or re-execution is still required.  I have not implemented this, but I am happy to do so if it is preferred.
Yet another option is to add all locales to Obelisk.  I have not tried this, but the documentation indicates that this consumes about 100MB of drive space.

I had this same bug. I am taking a look.

Weeks ago I had the same error.
$ locale
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR:pt:en
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=
The command "export LANG=C.UTF-8" fixed it and I stopped worrying about it. I will review your proposed solution to make a PR. Thank you for addressing that.

For reference https://github.com/NixOS/nixpkgs/issues/64603#issuecomment-551419489

https://www.extrema.is/blog/2022/04/09/nix-terminfo-and-locale-archive was a nice blog post, BTW, @TravisCardwell


GitLab webhooks not triggering website update.

I have setup peachdocs on my remote server and everything is running excellent with a GitHub repo. Push updated documentation up to the GitHub repo, webhook triggers, updates my peachdocs instance on my remote web server.
I have been playing around with other git services besides GitHub. More specifically, GitLab.
I need my git remote server to be hosted privately. Password protecting peachdocs is great but I also need my git remote server repo to be hosted privately as well. For this purpose, I have been using GitLab for my private repo hosting.
I take my peachdocs website that is working 100% with GitHub, I change my remote git server from github to gitlab in the custom/app.ini file, I create my GitLab repo (create it public first just to try it out then I'll switch to private repo with deploy hook), create a webhook, remove my data/docs directory, then run peachdocs.
I push my code up to GitLab, the webhook runs successfully and in my peachdocs logs I see that the webhook is "completed successfully" just like it does with GitHub. Everything is working exactly the same as GitHub.
However, when I refresh my browser, I don't see any documentation. Peachdocs does not pull down the GitLab project and display it to me.
Does peachdocs work with any other git repo service besides GitHub? I was looking at the source but didn't find anything specific to GitHub.

Hi, Peach works any POST request with correct secret value, so even a fake POST tool could work.
I think the problem is you're having private GitLab instance and I suppose Peach does not know the username and password for HTTP basic auth and thus hangs?

I am actually using a public GitLab repo. I am using public for now to test if it works then move on making it private.

What response does GitLab webhook get back?

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/web_hooks/web_hooks.md

No, I'm asking you what do you see for responses of your webhook.

Response shows a macaron message saying it processed a successful webhook
response.
On Tue, Apr 5, 2016 at 12:34 PM 无闻<EMAIL_ADDRESS>wrote:

No, I'm asking you what do you see for responses of your webhook.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/peachdocs/peach/issues/24#issuecomment-205910675

@levibostian you need to check Peach console output.

UHm I have the seam issue Test with Github and Gogs Both say connection OK 200
But I not see any Updates is not changes at all

@royalterra have you gave the proper permission to the server that runs Peach?


v0.1.3 hash table removed in v0.2.0?

The test_hash_multicore sandmark benchmark uses a hash table implementation from v0.1.3 in this repo.
But, I see that in v0.2.0, this hash table implementation has been removed. Has that code been moved somewhere else? Or perhaps it's deprecated?

Hi @shwestrick, apologies for the delay in getting back to the query. We are currently re-evaluating the older implementations. They were done for a previous version of Multicore OCaml, and we want to make sure it's compliant with the memory model. A hash table implementation can be expected soon.

Okay sounds good! Thanks.


Fix tabbed block content rendering issue in PipelineRuns page(#6697)

Changes
Fix tabbed block content rendering issue in PipelineRuns page(#6697)
The tabbed code block within the PipelinRun page not properly rendering. These MR changes add the required annotation to {{< tab >}} tag in pipelineruns.md documentation page that contains code so they get rendered correctly. The other solution is to change the shortcode in the website repo but it breaks the current implementation.

Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
[ ] Has Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including functionality, content, code)
[x] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

/kind documentation

/test check-pr-has-kind-label

/assign @lbernick

@dinushchathurya thanks for your PR! echoing Jerop's feedback, please squash your commits into one

@dinushchathurya thanks for your PR! echoing Jerop's feedback, please squash your commits into one

Done

https://github.com/tektoncd/pipeline/pull/6750 has fixed the issue, do we still need this PR?

#6750 has fixed the issue, do we still need this PR?

This PR has already fixed the issue. We can close this PR.

#6750 has fixed the issue, do we still need this PR?

This PR has already fixed the issue. We can close this PR.

Could you close it? I don't have the permission 😄


Adding a @method annotation to scrutinizer

see https://scrutinizer-ci.com/g/BonfimSystems/Database/issues/master/files/src/Bonfim/Model.php?orderField=path&order=asc&honorSelectedPaths=0&issueId=28399185#inspectioncomment-99914741

Duplicated #1


Patch 1.1.4

Anaconda purge

PR checklist

[ ] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[ ] Make sure your code lints (nf-core lint).
[ ] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[ ] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[ ] CHANGELOG.md is updated.
[ ] README.md is updated (including new tool citations and authors/contributors).

It looks fine but I want to run the test profiles locally to make sure.


[IDEA] 帮助页面在哪里可以翻译多国语

Is your feature request related to a problem? Please describe.
帮助页面目前只有中文和英文，没有其它多国语
Describe the solution you'd like
提供一个能翻译多国语的方法
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

木有人响应么。。。

（我有按讚啊😂😅😅

已将帮助文档放置于 GitHub 源代码中


Turning off sliding on user pannel and message bar

I was wondering where in the code i could fiddle to turn out the sliding on the user profile (mute/unmute, deafen/undefen and setting) and the sliding in the message bar (gif, stickers and emojis) so you dont have to hover over the specific area to make everything visible.
Thanks and sorry if the account looks sus. I only made it to ask about this plugin specifically
Refs, using the oldcord/dtm-16 theme if you are confused

Thanks once again

Hey, no worries. There's actually no reason to fiddle with the code, there are plugin settings for both of those.
If you go into the area where you enable/disable the plugin and click the settings icon under it, it should be under the Main subcategory: "Disable User Settings Auto-collapse" and "Disable Message Bar Button Auto-collapse" respectively.

Hey, no worries. There's actually no reason to fiddle with the code, there are plugin settings for both of those.
If you go into the area where you enable/disable the plugin and click the settings icon under it, it should be under the Main subcategory: "Disable User Settings Auto-collapse" and "Disable Message Bar Button Auto-collapse" respectively.

Thank you :)


[Bug Report] Bot no longer working since discord changes

Bug Description
discord forced bots to use slash commands, so this bot no longer works
Steps to Reproduce

Invite bot
try to play music
???
profit

Expected Result
nothing happens
Debug Output
yes
Additional Info
No response
Checklist

[X] I have looked for information about this within the documentation
[X] I have searched for similar issues on the issues page
[X] I am running the latest version of the bot:

It doesn't work for me either. It only logs that it loads the config, then nothing happens.

See #1215

I have turned on the exact boxes, but still doesn't work.

Did you shut down and restart the bot?

Yes, several times. My other bots work fine on the same server i host on.

If you're restarted the bot and matched the same checkboxes for this specific bot, then it must be some other issue. Try creating a brand-new config file, and if that's still not working, open a troubleshooting discussion with your config (minus the token) and all logs.


Fix/assignment 1.4#6/vscode refactor

close #6

Updated with the screenshot for the successful run of the script.


Receiving NONE from print(el_flow.measure)

I am connecting an EL-FLOW mass flow controller to a Raspberry Pi 4, using a USB-Serial adapter.
I have installed your package without any errors.
using el_flow.setpoint = XXXX returns no error, but also seems to make no difference on the device.
Besides, print(el_flow.measure) is always returning NONE. I am able to read information from the db of the device, but that is all.
What am I doing wrong?
Thanks!

Can you connect to the device using our other support software  (FlowDDE, Flowsuite)?
If those applications can connect, check if the used address and baudrate match with the instrument.

Thanks for the tip. I am also having issues there. I need to check if the cable or the device are damaged. I will close the issue for now and come back here when I have news. Once again, thanks!


Schema-based check assignment

Field-level checks are explicitly assigned to each field. This means that, if the OCDS schema changes, or if extensions are used, then definitions.py will need to be updated. Instead, it's possible to determine which checks to perform on which fields, by inspecting the OCDS release schema.
There is also hard-coding of paths to period objects in period_duration_in_days.py and period.py, and of paths to value objects in value_realistic.py (and a bunch more).

For field-level definitions, I compared my calculated definitions (x) to the existing definitions with:

print(set(x) - set(definitions))
print(set(definitions) - set(x))
for key in x:
    if key in definitions:
        if x[key] != definitions[key]:
            # Added this condition at the end, when only functools.partial were different, because
            # functools.partial(foo, "bar") != functools.partial(foo, "bar")
            if x[key][0][0].args != definitions[key][0][0].args or x[key][0][0].func != definitions[key][0][0].func:
                print(x[key])
                print(definitions[key])
            else:
                print(key)


Improve meta handling (NOT included => default Farcaster Frame)

I was thinking about adding a default "dummy" Farcaster Frame for SE-2. I say "dummy" because you usually add a backend route to handle different actions within the frame (but that would be too much)
To test locally, you can use: https://github.com/coinbase/onchainkit
-> clone, go to the framegear folder, npm install, npm run dev... and you get this:

A few things:

Is this worth adding?
About NextJS Metadata. layout.tsx and getMetadata.ts feel a bit duplicated. Is there a way around it? Feels weird to have to add the frame meta to both places.
VERCEL_URL: We use it for the base URL, and now Vercel returns the "protected deployment route" (instead of the production one. Related to https://github.com/scaffold-eth/scaffold-eth-2/issues/807 I think).. which make this a bit useless:

const baseUrl = process.env.VERCEL_URL
  ? `https://${process.env.VERCEL_URL}`
  : `http://localhost:${process.env.PORT || 3000}`;

Any ideas? (we can discuss in another issue/PR, sorry haha)

(Sorry for deviating from the original PR haha)

About NextJS Metadata. layout.tsx and getMetadata.ts feel a bit duplicated. Is there a way around it? Feels weird to have to add the frame meta to both places.

Seems like the obvious way to fix it. What am I missing here?
https://github.com/scaffold-eth/scaffold-eth-2/pull/811/commits/cb47ae904651fa68de1a9aa3e24153368aeee7e8
Besides that, we could even add baseUrl to scaffold.config.ts.

Seems like the obvious way to fix it. What am I missing here?

https://github.com/scaffold-eth/scaffold-eth-2/commit/cb47ae904651fa68de1a9aa3e24153368aeee7e8

Niiiceee !!!

I thought having templates inside getMedata would render home page metadata title as "Scaffold-ETH 2 App | Scaffold-ETH 2" but it doesn't and works nicely because of this and it also nicely renders other pages with template !

we could even add baseUrl to scaffold.config.ts

+1 for this, looking at Next's discord people have been using / suggesting  to hardcode the domain URL directly and there's no way to get domain from vercel's env var
So makes sense to have it in scaffold.config.ts
Tysm @carletex !!

So makes sense to have it in scaffold.config.ts

+, tried to find a better way to set baseUrl too, but no luck

Thanks for pr and interesting discussion!

Thanks all for the comments!!
I'm gonna do some tinkering and propose an initial solution.
Also trying this now: https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase

The metadataBase doesn't seem to work for me: https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase

This would be nice too.... but we have the VERCEL_URL issue, where it points to a usually protected deployment route (instead of the PROD URL)
If we don't make it work, maybe we just can leave it as it's in the PR (at least we are deduplicating the layout / getMetadata code)

So for now, decided to remove the Farcaster frame stuff from this PR. See this convo for context: https://github.com/scaffold-eth/scaffold-eth-2/pull/811#discussion_r1565987983
So at the end this PR just remove some duplication with the metadata.
plus
https://twitter.com/rauchg/status/1787664435097538776
This happened finally!! :fire: :fire:


Translate manage-resources/cpu-constraint-namespace.md into Korean

This is a Feature Request

What would you like to be added

Translate tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md into Korean.
Why is this needed
There is no document of tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md which translated into Korean.
Comments

Page to translate: https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/
/language ko

/assign


checked the code over and over again but fails to submit.

Challenge Name

Issue Description

Browser Information

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code

Screenshot

Can you share the code and the screenshot?

Hi @craigsj
Thanks for reporting this issue.
Here are some next steps that you should follow before we can help you with your query:

Check these troubleshooting steps first.
Please use the Chat Rooms or try looking through our forum for help with a specific challenge and any coding assistance.

IMPORTANT:
Please NOTE that this tracker is for reporting bugs and enhancements to freeCodeCamp's code base only.
Happy Coding!


Question about Cost volume construction

Hello, I don't understand the inverse depth domain and the specific operations of warp. I can't find explanations for the inverse depth domain online.
Can you provide some information about them? Thanks!

It means that we sample the candidate depth planes uniformly in the inverse depth (i.e., $1/d$) space. The implementation detail is HERE.
This is a general approach in multi-view stereo. By sampling points in the inverse depth space, when we project these points back to the 2D image spaces, they will distribute more uniformly along the epipolar line. The image below (from this paper) provides a better illustration.

Thanks for your detailed explanation, it really helps!


Change all instances of collab* to colab*

Including [CO]llab*

Are we sure about that? Colab by itself looks fine but colaborative looks like a spelling mistake no?


Don't ask about HttpHandlerRunner's ConfigProvider on installation

When running composer create-project "zendframework/zend-expressive-skeleton:3.0.0alpha1 test, I'm asked:

Please select which config file you wish to inject 'Zend\HttpHandlerRunner\ConfigProvider' into

This should not happen as it's meaningless to the user and the app doesn't work if you answer 'n'.
Possibly related to #204?

For now you have to answer yes to installing the ConfigProviders. It contains all the configuration to get a working application out-of-the-box. If you answer no to any of the ConfigProvider questions you need to add those manually to ./config/config.php or copy its config to a file in ./config/autoload/*.global.php.
That question is asked for every package installed with a ConfigProvider if you answered no the second part. This is how the component-installer works and yes, that's why I opened #204. The idea is to prevent questions for all white listed packages to give a smoother user experience.
I'll leave this open for now to prevent multiple reports and to remind me to add it to the component installer.


Coding conventions docs improvement

Add new tools to coding-conventions.rst

TODO: Write our own guide on installing everything in VSCode


Singly Linked List

Implementation of Singly Linked List in C, C++, Python, Java.

Implement Singly Linked List available using the following two languages:

C
Java

can you assign me this task under SWOC? @Kumar-laxmi

I want to implement Singly Linked List in C.
Can you please assign me this task?

I want to implement the linked list in c++, please assign me

I want to implement Singly Linked List in C. Please assign me.

Assigned
@ShubhangiBatra : C

Hello Sir Please assign this to me.
I will make some valuable contributions.

Can I get assigned this in C

Can I get assigned this in C

The program in C has been contributed, please look into other algorithms

Hello Can I raise a new issue for Cyclic Sort in Java?

On 01-Jan-2023, at 7:21 PM, Kumar Laxmikant @.***> wrote:
Can I get assigned this in C
The program in C has been contributed, please look into other algorithms
—
Reply to this email directly, view it on GitHub https://github.com/Kumar-laxmi/Algorithms/issues/7#issuecomment-1368447862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXZN5LHIF5XJNSYXA3BE7SLWQGDWLANCNFSM6AAAAAARMEOYGA.
You are receiving this because you commented.

Hello Can I raise a new issue for Cyclic Sort in Java?
…
On 01-Jan-2023, at 7:21 PM, Kumar Laxmikant @.***> wrote: Can I get assigned this in C The program in C has been contributed, please look into other algorithms — Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXZN5LHIF5XJNSYXA3BE7SLWQGDWLANCNFSM6AAAAAARMEOYGA. You are receiving this because you commented.

@VishalS-HK Yes, but with full project description and your approach

Hello I am getting this error. Could you please look into this?
[image: image.png]
On Sun, 1 Jan 2023 at 19:28, Kumar Laxmikant @.***>
wrote:

Hello Can I raise a new issue for Cyclic Sort in Java?
… <#m_-5331202340593780102_>
On 01-Jan-2023, at 7:21 PM, Kumar Laxmikant @.***> wrote: Can I get
assigned this in C The program in C has been contributed, please look into
other algorithms — Reply to this email directly, view it on GitHub <#7
(comment)
https://github.com/Kumar-laxmi/Algorithms/issues/7#issuecomment-1368447862>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXZN5LHIF5XJNSYXA3BE7SLWQGDWLANCNFSM6AAAAAARMEOYGA.
You are receiving this because you commented.
@VishalS-HK https://github.com/VishalS-HK Yes, but with full project
description and your approach
—
Reply to this email directly, view it on GitHub
https://github.com/Kumar-laxmi/Algorithms/issues/7#issuecomment-1368448696,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXZN5LD72ES5ZZ5YTZMPFNDWQGEOVANCNFSM6AAAAAARMEOYGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@VishalS-HK Please text directly on github instead of Email

Can I try it in Java?

Please assign me this issue for C++ @Kumar-laxmi

@ShubhangiBatra It has been 3 days since you were assigned this issue

Assigned!
@VishalS-HK : Java

@VishalS-HK What is your status on this issue

@VishalS-HK Due to your inactivity I am unassigning this issue

This issue is available in Java

Can I address this issue in java under SSOC?

Assigned!
@Abhinavcode13 : Java


Check image dimensions on before upload

Hello everyone, I am a newbie in meteor and programming and I am seeking for help because I am trying to check the dimensions of the image before it is uploaded by the client. I would like to know if there is a way to check it as it is possible to check the size with file.size. I have been struggleing with it for a week with no success. I would be really glad if someone can help me. Thanks in advance!

Have you tried canvas?

Sorry I am really novice in programming can you please develop that a bit more? how can I use canvas to get the width and height of an image? Thanks again

Check out this thread: http://stackoverflow.com/questions/5173796/html5-how-to-get-image-dimension

Thanks for your help, I am trying to understand how that function works, but with no success... where and when should I pass it? its input variable is the file on  the onBeforeUpload function?

Use independently. Before calling .instert() method

Thank you very much man! I have no words to thank you! That is what I needed!

Glad it helped.
 I have a question: I have managed to get the dimensions but when I try to stop the uploading of the image from the onBeforeUpload it gives me an internal server error, and if try to stop it just before inserting it continues the event and instert it. I have tried also to call a function from the onBeforeUpload but it calls the function after inserting and not before. Thanks in advance

Here is my really naive code...
`this.Images = new Meteor.Files({
debug: true,
collectionName: 'Images',
allowClientCode: false, // Disallow remove files from Client
onBeforeUpload: function (file) {
	// Allow upload files under 10MB, and only in png/jpg/jpeg formats
	if (checkImage(this.file) && file.size <= 10485760 && /png|jpg|jpeg/i.test(file.extension)) {

		return true;
	} else {
		return 'Please upload image, with size equal or less than 10MB';
	}
}

});
function createReader(file, whenReady) {
var reader = new FileReader();
reader.onload = function(evt) {
var image = new Image();
image.onload = function(evt) {
var width = this.width;
var height = this.height;
if (whenReady) whenReady(width, height);
};
image.src = evt.target.result;
};
reader.readAsDataURL(file);
}
function checkImage(file){
createReader(file, function(w, h) {
if(w != 390 && h != 200){
return false;
}
});
}`

Here is what I am trying to do...
`this.Images = new Meteor.Files({
debug: true,
collectionName: 'Images',
allowClientCode: false, // Disallow remove files from Client
onBeforeUpload: function (file) {
	// Allow upload files under 10MB, and only in png/jpg/jpeg formats
	if (checkImage(this.file) && file.size <= 10485760 && /png|jpg|jpeg/i.test(file.extension)) {

		return true;
	} else {
		return 'Please upload image, with size equal or less than 10MB';
	}
}

});
function createReader(file, whenReady) {
var reader = new FileReader();
reader.onload = function(evt) {
var image = new Image();
image.onload = function(evt) {
var width = this.width;
var height = this.height;
if (whenReady) whenReady(width, height);
};
image.src = evt.target.result;
};
reader.readAsDataURL(file);
}
function checkImage(file){
createReader(file, function(w, h) {
if(w != 390 && h != 200){
return false;
}
});
}`

Here is what I am trying to do
this.Images = new Meteor.Files({
	debug: true,
	collectionName: 'Images',
	allowClientCode: false, // Disallow remove files from Client
	onBeforeUpload: function (file) {

		// Allow upload files under 10MB, and only in png/jpg/jpeg formats
		if (checkImage(this.file) && file.size <= 10485760 && /png|jpg|jpeg/i.test(file.extension)) {

			return true;
		} else {
			return 'Please upload image, with size equal or less than 10MB';
		}
	}
});

function createReader(file, whenReady) {
	var reader = new FileReader();
    reader.onload = function(evt) {
        var image = new Image();
        image.onload = function(evt) {
            var width = this.width;
            var height = this.height;
            if (whenReady) whenReady(width, height);
        };
        image.src = evt.target.result;
    };
    reader.readAsDataURL(file);
}
function checkImage(file){
	createReader(file, function(w, h) {
		if(w != 390 && h != 200){
			return false;
		}
	});
}

You're trying to use asynchronous function synchronously
Do not pass it to onBeforeUpload - as it is server and client hook (and on server end it won't work)
Pass image to checkImage
and there in callback trigger .insert() method

gives me an internal server error

What error?

I have tried to call it on the event #fileInput before it calls inserts but it continues straight to upload the image...
Template.uploadForm.events({
	'change #fileInput': function (e, template) {
		createReader(e.currentTarget.files[0], function(w, h) {
			if(w != 390 && h != 200){
				return false;
			}
		})
		if (e.currentTarget.files && e.currentTarget.files[0]) {
			// We upload only one file, in case
			// there was multiple files selected
			var file = e.currentTarget.files[0];

			if (file) {

				var uploadInstance = Images.insert({
					file: file,
					streams: 'dynamic',
					chunkSize: 'dynamic'
				}, false);
				uploadInstance.on('start', function() {
					template.currentUpload.set(this);
				});
				uploadInstance.on('end', function(error, fileObj) {
					if (error) {
						alert('Error during upload: ' + error.reason);
					} else {
						template.currentUpload.set(this);
						Session.set("imgId", fileObj._id);
						alert('Carga realizada con éxito');
						return true;

					}
					template.currentUpload.set(false);
				});
				uploadInstance.start();
			}
		}
	}
});
function createReader(file, whenReady) {
	var reader = new FileReader();
	reader.onload = function(evt) {
		var image = new Image();
		image.onload = function(evt) {
			var width = this.width;
			var height = this.height;
			if (whenReady) whenReady(width, height);
		};
		image.src = evt.target.result;
	};
	reader.readAsDataURL(file);
}

Done! the only thing that I had to do was to grab all inside the if statament sorry for your time! Thanks for your help!


feat: add ability to disable camera rotation

Description
Add the ability to turn camera rotation on and off for a photo
Checklist
Before creating any Pull Request, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).

[x] 📕 I read the Contributing page.
[x] 🤝 I match the actual coding style.
[x] ✅ I ran flutter analyze without any issues.

Breaking Change

[ ] 🛠 My feature contain breaking change.

If your feature break something, please detail it

Hi, I'm currently using camerAwesome on my flutter project and everything works except after capturing landscape images they are being saved in the portrait orientation. Do you know how to solve this problem? I'd be willing to pay for your help on this issue.
Please contact<EMAIL_ADDRESS>if you're able to help, thanks!

@cartworthy If you're working off the branch from this PR, then it's set to only take images in portrait mode if you set enableRotation: false in the class instantiation. Otherwise, it defaults to true, so you can leave the enableRotation property off.

@DaNyNaNd Hi! Thanks for getting back to me. I'm not using this PR and I'm not a developer — I just found this from a Google Search looking for "disable rotation CamerAwesome" and thought this may do what I need. I'm building the app with FlutterFlow (no-code platform) and use camerAwesome for a custom widget.
Would you be able to hop on a video call to help me troubleshoot this? I'll venmo you $20 :)


Custom Components Support Request how got get various tab data in controller like if user adding any key ubder api tab

Could you please provide some more information?

Thank you for your contribution. As this issue has been inactive for over 90 days, I will close it for now. If you wish to reopen the issue, please respond and we can resume the triage process.


update: github-metadata-package

should fix compilation with rust 1.80 (nixos unstable)

While this won't fix the nixos-unstable job, it's a step in the right direction. See #40


Sticky header might disappear when scrolling

In certain scenarios - depending on the properties of the parent container - the grid header might scroll out of view when scrolling more than 100% of the parent's height.
See if this can be improved by either applying certain styles to the .blazorgrid container or by using a different solution for making the header sticky altogether.

Issue can be traced back to using the grid inside flex containers (such as Bootstrap columns).
Recommended fix is to apply align-self: flex-start to the column element.


SAK-41618 Set bullhorn dependencies using annotations

I love this approach, don't have experience with it but looks really simple and magical. Can this pattern be extended to more tools or do we need specific configuration? Will be wonderful to reduce the size of the components.xml files in Sakai.
I'm gonna approve it, thanks @adrianfish !

@mpellicer Thanks, Miguel. The Inject and Named annotations should work across Sakai. Any Sakai component that is added to the context, either via XML or as a Component annotation, should be injectable just with that annotation, rather than a property tag in xml. You only need named if there is more than one candidate for injection and you need to be more specific.

Thanks, good work, I'm gonna use this pattern in the future, love it!


Turn start of comments into capitals

Description
This PR makes all comments start with a capital letter.
Checklist

[x] I read and understood the contributing guide as well as the code of conduct
[x] My changes generate no new warnings
[x] My code builds and runs on my machine
[x] My changes are all related to the related issue above
[x] I documented my code

I have told you before, we will not accept PR's like these. They need to be associated with an existing issue. We do not want comments to be capitalized. This will end up breaking swiftlint as you have the S in swiftlint capitalized now. Please follow project issues and if you notice something not in an issue, discuss it in Discord first and a maintainer will let you know if it is something that aligns with project goals.


 Is there a way to prevent this behaviour as the bot is a test bot shared by multiple people on local who will generally turn off the process so the others in the group can use
@slack/bolt version
 "@slack/bolt": "^3.15.0",
Refer to your package.json
Your App and Receiver Configuration
    this.app = new App({
      ignoreSelf: false, // allows bot to read its own messages
      token: process.env.BOT_TOKEN,
      socketMode: true,
      appToken: process.env.APP_TOKEN,
    });

Node.js runtime version
node 16.10.0
(Paste the output of node --version)
Steps to reproduce:
(Share the commands to run, source code, and project settings)

Shut off the slack bot process in the machine
Events Subscription is disabled and mail is sent to re enable it again

There is no way to disable this. As described in "Error handling" for the event API, you need to maintain a 5% event successful responsiveness rate to prevent automatically being disabled from the events API. This is to save unnecessary calls to your app if it is not able to respond.
If you know your app is not able to respond, you should turn off events subscriptions yourself, otherwise there are wasted network calls being issued from Slack.

@filmaj thanks for the response. I had a related doubt
The current process I am talking about is running using SocketMode. Since there is no public endpoint exposed for it , I am assuming whenever it is going down , slack is turning off the events subscription after the retries.
However if i turn off Socket Mode and just use Events API then i would need to give a public endpoint for slack to talk communicate with. Let's say this endpoint is from a reverse proxy and the actual slack application is behind it. Then in that case if slack process goes down does the same thing happen ? You can assume i have already verified this public endpoint once from the Slack Events subscription UI and have used it a couple of times and then shut down the slack process behind the reverse proxy

Yes that is correct. No matter if event delivery is via Socket Mode or via HTTP, the same rules apply: your app needs to maintain a baseline successful responsiveness in order to keep receiving events.
An alternative for you, if your app is behind a proxy that you manage, is to simply return a 200 OK (in the HTTP case) / acknowledge the websocket message (in the socket mode case) and that should be sufficient - even if your app isn't doing anything as a result of the messages.

Basically it is the same as what i said in the Events API scenario


The only developer who can do this for 7 / 7p on 10.2.x is you.

No one developer can do that. The present hope is in your body. We believe you should be able to :)
@JosephShenton

If you can do it. That would be a big surprise for the jailbreak community You'll be solving one of the biggest problems on ios10 jailbreak We need you. Jailbreak community also needs you.

We can not count on other developers. They simply can not do it. No one is willing to do it. We asked a lot of developers, they say they do not support it. This makes us very sad.

So we hope you can fix him to accomplish this great feat. When this day arrives, this is very meaningful. :)


10 new Swift 4 updates

Checklist

[x] I've looked at the contribution guidelines.
[x] This pull request is complete and ready for review.

Description
Updates to Monty Hall Problem, Minimum Edit Distance, Ring Buffer, Run-Length Encoding, Linear Switch, Selection Sampling, Rabin-Karp, Radix Tree, SetCover, Naive Bayes Classifier

Sure thing. I’m somewhat new at this and jumped in a bit too early. I’ll know better next time. Thanks for the heads up.


Automator: update proxy@master in istio/istio@master

Generated by Automator - 2024-10-01T15:30:41+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-telemetry-mc_istio
0c5822de62214b682a4b7e9ca5fe00c2af1ac441
link
true
/test integ-telemetry-mc

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.


Remove string/fixtures/utf-8-encoding.rb

The content of this file is never used, making it effectively dead code.

Thank you!


Update drat workflow

Mainly style related changes in drat workflow file. Some lines were moved to a different step. One redundant step was removed.

I'll recheck that a bit later.

Alright, I'm a little lost with this pull review.  Github is showing me suggested edits that I can't understand -- the formatting is odd and I can't tell where Github thinks the conflict is.

Leave the conflicts for me.
I have a very good program called Meld (if you try google it, keywords are
"meld merge") that I use for solvong Git conflicts. It works on Windows and
I'm not sure if it is available on Mac.
2020 rugp. 17, pr 22:19, Bryan Hanson<EMAIL_ADDRESS>rašė:

Alright, I'm a little lost with this pull review. Github is showing me
suggested edits that I can't understand -- the formatting is odd and I
can't tell where Github thinks the conflict is.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/r-hyperspec/hySpc.read.txt/pull/18#issuecomment-675064430,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADBC43B7LSRKYQY3W2YGXIDSBF7CLANCNFSM4QBVIMOQ
.

I do think this is required. The add -f is not.

add -f is needed when we want to add a new git-ignored file.

where Github thinks the conflict is.

I've solved the conflicts.

Thank you!


fable: Instantiate missing Number

As it turns out, specially for char, the following is true:
char != unsigned char
char != signed char

Which is surprising to me. I hope that this is compatible with other compilers, otherwise this change will need some secondary patching.

Note: this was originally slated for 0.20.1, but that release got cancelled.

I sampled this test across a couple compilers on godbolt:
#include <type_traits>

int main() {

    static_assert(!std::is_same_v<char, signed char>);
    static_assert(!std::is_same_v<char, unsigned char>);
    static_assert(std::is_same_v<short, signed short>);
    static_assert(std::is_same_v<int, signed int>);
    static_assert(std::is_same_v<long int, signed long int>);
    static_assert(std::is_same_v<long long int, signed long long int>);
    return 0;
}

in other words: LGTM


Fix for #869: Be able to click on voted Users

I saw this was tagged as a good first issue so I decided to take it on.
The original issue, making the users clickable in the tooltip, is of course very straightforward.
However I had to dig into some of the specifics of the LESS precedence order to get the desired behavior in the file that seems to be the place designated for a LESS override on AntDesign's rules.
Here's what I ran into:

Adding a <Link> to the tooltip expectedly renders to an <a> tag
AntDesign's antd.less defines the @link-color to be our @primary-color, which is @purple
We override antd.less's @tooltip-bg to also be @purple
Therefore, when the link renders, the text becomes invisible since both the @link-color and @tooltip-bg are @purple. Furthermore, we obviously want @link-color to remain @purple everywhere but on the tooltip.

So, naturally, I found in common.less, that we've already defined some overrides for antd.less's tooltip:
.ant-tooltip-content {
  font-weight: 500;
}

which makes it a great location to put in the additional rule of making the link color @white inside of the tooltip:
.ant-tooltip-content {
  font-weight: 500;
  a {
    color: @white;
  }
}

However, since we load antd.less first in custom.less, and then load common.less, we run into an interesting precedence condition, mainly that:

.ant-tooltip-content > a { color: white } ends up overriding the a:hover selector from antd.less
The outcome is then undesirable, because the link remains @white, even on hover

The fix I went with was to simply define the hover behavior in common.less as it is in antd.less. They define a:hover behavior to effectively be:
a:hover {
    color: @primary-5;
}

where @primary-5 is our @primary color (@purple), with a 20% tint.
So the fix for the link color becomes:
.ant-tooltip-content {
  font-weight: 500;
  a {
    color: @white;
  }
  a:hover {
      color: @primary-5;
  }
}

resulting in what I think is desirable behavior that:

We can define our override to the tooltip link color in common.less
The link inside of the tooltip is @white, and not hidden by being the same color as @tooltip-bg
The a:hover behavior inside the tooltip is not overridden by this rule

Let me know what you think of my approach to the fix and if you'd like to see any changes.

Thank you for your PR @ryanbaer. I'm not too fan of the mouse over color for the username link. I would suggest to just use white. Is it possible to change it?

@bonustrack, sure it's as simple as removing the extra rule I implemented to maintain the hover color. I just pushed the change.


Issues with carbon date store/get

Hello,
I have an object with an attribute of a date that shows as a Carbon object.
Contrato {#337 ▼
#connection: "mongodb"
#collection: "users"
#dates: array:1 [▶]
#contrato: null
#primaryKey: "_id"
#parentRelation: null
#table: null
#keyType: "int"
#perPage: 15
+incrementing: true
+timestamps: true
#attributes: array:13 [▼
"name" => "John Doe"
"date" => Carbon {#530 ▼
+"date": "2012-02-01 00:00:00.000000"
+"timezone_type": 3
+"timezone": "UTC"
} ...
When I save it to the mongodb, the date is converted to an array with the 3 k/values.
So, after this I can't work with the date anymore because it is always being read as a sub-array of my data.
Collection {#203 ▼
#items: array:1 [▼
0 => User {#202 ▼
#connection: "mongodb"
#collection: "users"
#dates: array:1 [▼
0 => "deleted_at"
]
#contrato: null
#primaryKey: "_id"
#parentRelation: null
#table: null
#keyType: "int"
#perPage: 15
+incrementing: true
+timestamps: true
#attributes: array:13 [▼
"_id" => ObjectID {#206 ▶}
"name" => "John Doe"
"date" => array:3 [▼
"date" => "2012-02-01 00:00:00.000000"
"timezone_type" => 3
"timezone" => "UTC"
]...
How can I extract the date from my object after I read it from the database? Also I tried to do some filters on the date and it is not working...
Thanks,
Mauro W

Ok, I found the issue.
On Laravel 5.4 the date cast now converts the date to a Carbon object.
If you would like to preserve the time portion of the date, you should use the datetime cast.
At the Mongodb\Eloquent\Model in method "fromDateTime", on line 155 there is a request to the parent class to convert the date object and it is expecting a date class, but now Laravel is sending a Carbon class.
I believe that the casting should be done by the method itself and not rely on the partent class anymore.
I will try to fix it manually and submit a proposal fix there.
Thanks for your help.

@llioor, do you have same problem?


How to use this repo to override JavaScript on some web sites?

Feature request
Hello:
From Chrome developer tools, I can replace some web sites’ JavaScript with my own JavaScript in local folder in my Windows 10 PC.
I want to know if I can use this repo to do the same for some web sites?
The detailed steps in Chrome is like this:
I visit one web page: https://www.some_video_sharing.com/, I login with my user name and password.
I visit the first page after I login, there is a few live videos are being played.  I picked the first one to view.
However, every 10, 20 seconds, I saw some pop-up ads show up to block my view, it is boring, and using ad-blocker seems not working.
Then I use Chrome developer tools to find that there are one JavaScript called “detailed.min.js”, which from time to time show some pop-up windows.
So I turned on local override in Chrome developer tools and save the “detailed.min.js” in my local disk folder for overrides, and I changed the JavaScript, replace the pop-up function with a simple return, and reload the web page, then the pop-up is gone.
I want to automate the process, so I don’t have to do this process each time I login to the underlying web page.
And advice if I can do this with the repo or not?
Thanks,

You can use Playwright request interception to abort or modify requests, see here: https://playwright.dev/dotnet/docs/next/network/#modify-requests

Closing since its answered. Please file a new issue for further questions.


feat: make any kind of game

Add makeAnyKindOfGame
Move out <Phone /> css out, adjust styling for top and makeAnyKindOfGame <Phone />
Move out game sequences
Regenerate existing, add new games, use new game sequences for makeAnyKindOfGame
Use new avatars and updated info about the games

🍪 😁


Added favicon

Closes #228

Title : Favicon
Name: : Maana Ajmera
Idenitfy yourself: GSSOC

Describe the add-ons or changes you've made 📃
I have added the favicon to the website which adds a good look to it
Type of change ☑

What sort of change have you made:

[X] New feature (non-breaking change which adds functionality)
[X] Code style update (formatting, local variables)

Checklist: ☑

[X] My code follows the Contributing Guidelines & Code of Conduct of this project.
[X] This PR does not contain plagiarized content.
[X] I have performed a self-review of my own code.
[X] I have commented my code, particularly wherever it was hard to understand.
[X] My changes generate no new warnings.

Screenshots 📷

@Avdhesh-Varshney done

@Avdhesh-Varshney I have resolved conflicts and done the changes , please review my PR and if there is anything else that needs to be changes , please let me know

@Maana-Ajmera it is resolved.


Improve behave test output

What is the context of this PR?
The output from the behave tests was over powering everything and very difficult to see what's going on.
This PR changes the format of the tests which shows:

. for a pass
F for a fail
S for a skip

Extras
The run_behave_tests.py doesn't work in terminal, but works in pycharm.
run_lint.py fails with file_stream .. This can be solved by changing pylint_mccabe to pylint.extensions.mccabe in the .pylintrc file
How to review
To test, run the run_tests.py to see the output, and change a feature and unit test to fail to see the results.
Suggest improvements

I not a fan of having all these run_X_.py files littering the place.  I think that the other speed up branch should be merged in first, then we can apply the flags that you've done to the makefile commands in there, rather then having another 2 scripts that do only subtly different things that can be done via command line


Drop dependency on boost_system pre-built static library.

ChakraCore-Debugger as well as many Boost transitive dependents only need the <boost/system/error_code.hpp> members from the Boost.System code base.
This change allows to drop the NuGet boost_system dependency by using the error_code types as header-only.

Looks good. I had original tried to do this but I didn't know about BOOST_SYSTEM_SOURCE and had not got it working and thought therefore that boost::system was required.


'getContract' function does not exist on HardhatRuntimeEnvironment.ethers

I've installed the hardhat-deploy-ethers extension into my TyoeScript project and imported it in my hardhat.config.ts file
import "hardhat-deploy-ethers"

When I try and use the getContract function in a deploy script like the following
import { DeployFunction } from "hardhat-deploy/dist/types"
import { HardhatRuntimeEnvironment } from "hardhat/types"
import { CurvedMasset } from "types/generated"

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
    const mBTC = (await hre.ethers.getContract("mBTC")) as CurvedMasset
}

I get the following TypeScript error
Property 'getContract' does not exist on type '{ provider: JsonRpcProvider; getContractFactory: { (name: string, signerOrOptions?: Signer | FactoryOptions): Promise<ContractFactory>; (abi: any[], bytecode: BytesLike, signer?: Signer): Promise<...>; (name: string, signerOrOptions?: string | ... 1 more ... | FactoryOptions): Promise<...>; (abi: any[], bytecode: By...'. Did you mean 'getContractAt'?ts(2551)

If I put in a // @ts-ignore before the line with the getContract function, the deploy scripts work fine.
My tsconfig.ts file looks like
{
  "compilerOptions": {
    "outDir": "./transpiled/",
    "sourceMap": true,
    "noImplicitAny": false,
    "lib": ["dom", "es2015", "es2016", "es2017"],
    "module": "CommonJS",
    "baseUrl": ".",
    "rootDir": ".",
    "paths": {
      "@utils/*": ["test-utils/*"],
    },
    "allowJs": true,
    "target": "ES5",
    "skipLibCheck": true,
    "typeRoots": [
      "node_modules/@0x/typescript-typings/types",
      "node_modules/@types"
    ],
    "esModuleInterop": true
  },
  "include": [
    "./deploy/**/*.ts",
    "./scripts/**/*.ts",
    "./types/**/*.ts",
    "./test/**/*.ts",
    "./test-utils/**/*.ts"
  ],
  "files": ["./hardhat.config.ts"]
}

Could it be that you also use a plugin that depends on @nomiclabs/hardhat-ethers ?
If so, you ll need to alias @nomiclabs/hardhat-ethers to hardhat-ethers-deploy
This might not solve the typing issue, but worth a try
With npm : npm i -D @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers
Recently hardhat team made @nomiclabs/hardhat-ethers  itself extensible so my plan is to update hardhat-deploy-ethers to extend it instead of being a fork of it. No timeline yet though.

Could it be that you also use a plugin that depends on @nomiclabs/hardhat-ethers ?
If so, you ll need to alias @nomiclabs/hardhat-ethers to hardhat-ethers-deploy
This might not solve the typing issue, but worth a try
With npm : npm i -D @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers
Recently hardhat team made @nomiclabs/hardhat-ethers  itself extensible so my plan is to update hardhat-deploy-ethers to extend it instead of being a fork of it. No timeline yet though.

Thanks, @wighawag. Using the above alias worked

Thanks, @wighawag. Using the above alias worked

It didn't fully work for me though...
yarn add @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers

warning Pattern ["@nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers"] is trying to unpack in the same destination "/home/manu/.cache/yarn/v6/npm-@nomiclabs-hardhat-ethers-0.3.0-beta.7-860d86b84ed3c4fdef64283ccf1e8d5623454d02-integrity/node_modules/@nomiclabs/hardhat-ethers" as pattern<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
...
warning " ><EMAIL_ADDRESS>has incorrect peer dependency "<EMAIL_ADDRESS>
yarn upgrade-interactive

error Couldn't find any versions for "@nomiclabs/hardhat-ethers" that matches "^0.3.0-beta.7"

package.json
{
  "dependencies": {
    "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
    "hardhat": "^2.1.2",
    "hardhat-deploy": "^0.7.0-beta.56",
    "hardhat-deploy-ethers": "^0.3.0-beta.7"
  }
}

Any ideas?

you need to remove that line "hardhat-deploy-ethers": "^0.3.0-beta.7"
and then you need to import @nomiclabs/hardhat-ethers  in your hardhat.config.js instead of hardhat-deploy-ethers. I need to add that to the doc actually.

For people experiencing this issue in the future, you can implement this workaround instead of using ethers.getContract(), and it should be the same.

 await deployments.fixture(["ContractName"]);

    const ContractX = await deployments.get("ContractName");

    const contract = await ethers.getContractAt(
      ContractX.abi,
      ContractX.address
    );
  });

For people experiencing this issue in the future, you can implement this workaround instead of using ethers.getContract(), and it should be the same.
 await deployments.fixture(["MyContract"]);

 const myContract = await deployments.get("MyContract");

 const contract = await ethers.getContractAt(
      myContract.abi,
      myContract.address
    );
  });

Thanks rodrigoherrerai,
this worked perfectly.

This:

With npm : npm i -D @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers

With this:

yarn upgrade-interactive

Fixed it for me in 2 repos already 🙏🏻

npm i -D @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers

Thanks bro you save me

you need to remove that line "hardhat-deploy-ethers": "^0.3.0-beta.7"
and then you need to import @nomiclabs/hardhat-ethers in your hardhat.config.js instead of hardhat-deploy-ethers. I need to add that to the doc actually.

Thanks bro

   deployer = (await getNamedAccounts()).deployer;
    await deployments.fixture(["all"]);
    console.log('deployer',deployer)
    // fundMe = await ethers.getContract("FundMe", deployer);
     const contract = await deployments.get("FundMe");

  fundMe = await ethers.getContractAt(
      contract.abi,
      contract.address
    );
  });

how to apply the deployer though