Crashes and unexpected behaviour with R8 and minifyEnabled = true

We had a version of an app in which we had a variable for a mutation that could NOT be null, After that version we changed it so the variable could be null, this is when the unexpected behaviour started to occur.
When updating an older version (where the variable could NOT be null) to a newer version (where the variable could be null), the app somehow still thought that the variable was not allowed to be null and would then crash when using the Input.builder().build() because there it checks if the variable is null.
If you uninstall the app and do a fresh install, it works as expected, it only happens when updating an app to a new version.
This seems to happen when using R8 and obfuscation (minifyEnabled true), it doesn't seem to recognise any changes and therefore uses the "old" version, even though it has indeed been updated. However, my worry is that it can even happen when not obfuscating because as long as the method and variable names are the same, it doesn't realise there are changes and will default to the "old" version.
I know in GraphQL you aren't really supposed  to implement breaking changes like this, but this still doesn't seem like expected behaviour, or am I missing something?

Can you share the generated models for Input before and after you change the schema.json ?

Absolutely, first is before, then after. Notice in the Before file, the @NotNull String locale and after @Nullable String locale. Somehow after updating an app it doesn't take the change into effect, however, deleting the app and installing it fresh it works fine. It is like it is cached or something.
Before:
`// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package type;
import com.apollographql.apollo.api.Input;
import com.apollographql.apollo.api.InputFieldMarshaller;
import com.apollographql.apollo.api.InputFieldWriter;
import com.apollographql.apollo.api.InputType;
import com.apollographql.apollo.api.internal.Utils;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class UserInput implements InputType {
private final @NotNull String locale;
private final Input pushNotificationDeviceId;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
UserInput(@NotNull String locale, Input pushNotificationDeviceId) {
this.locale = locale;
this.pushNotificationDeviceId = pushNotificationDeviceId;
}
public @NotNull String locale() {
return this.locale;
}
public @Nullable String pushNotificationDeviceId() {
return this.pushNotificationDeviceId.value;
}
public static Builder builder() {
return new Builder();
}
@Override
public InputFieldMarshaller marshaller() {
return new InputFieldMarshaller() {
@Override
public void marshal(InputFieldWriter writer) throws IOException {
writer.writeString("locale", locale);
if (pushNotificationDeviceId.defined) {
writer.writeString("pushNotificationDeviceId", pushNotificationDeviceId.value);
}
}
};
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= locale.hashCode();
h *= 1000003;
h ^= pushNotificationDeviceId.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UserInput) {
UserInput that = (UserInput) o;
return this.locale.equals(that.locale)
&& this.pushNotificationDeviceId.equals(that.pushNotificationDeviceId);
}
return false;
}
public static final class Builder {
private @NotNull String locale;
private Input<String> pushNotificationDeviceId = Input.absent();

Builder() {
}

public Builder locale(@NotNull String locale) {
  this.locale = locale;
  return this;
}

public Builder pushNotificationDeviceId(@Nullable String pushNotificationDeviceId) {
  this.pushNotificationDeviceId = Input.fromNullable(pushNotificationDeviceId);
  return this;
}

public Builder pushNotificationDeviceIdInput(@NotNull Input<String> pushNotificationDeviceId) {
  this.pushNotificationDeviceId = Utils.checkNotNull(pushNotificationDeviceId, "pushNotificationDeviceId == null");
  return this;
}

public UserInput build() {
  Utils.checkNotNull(locale, "locale == null");
  return new UserInput(locale, pushNotificationDeviceId);
}

}
}
`
After:
`// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package type;
import com.apollographql.apollo.api.Input;
import com.apollographql.apollo.api.InputFieldMarshaller;
import com.apollographql.apollo.api.InputFieldWriter;
import com.apollographql.apollo.api.InputType;
import com.apollographql.apollo.api.internal.Utils;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class UserInput implements InputType {
private final Input locale;
private final Input pushNotificationDeviceId;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
UserInput(Input locale, Input pushNotificationDeviceId) {
this.locale = locale;
this.pushNotificationDeviceId = pushNotificationDeviceId;
}
public @Nullable String locale() {
return this.locale.value;
}
public @Nullable String pushNotificationDeviceId() {
return this.pushNotificationDeviceId.value;
}
public static Builder builder() {
return new Builder();
}
@Override
public InputFieldMarshaller marshaller() {
return new InputFieldMarshaller() {
@Override
public void marshal(InputFieldWriter writer) throws IOException {
if (locale.defined) {
writer.writeString("locale", locale.value);
}
if (pushNotificationDeviceId.defined) {
writer.writeString("pushNotificationDeviceId", pushNotificationDeviceId.value);
}
}
};
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= locale.hashCode();
h *= 1000003;
h ^= pushNotificationDeviceId.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UserInput) {
UserInput that = (UserInput) o;
return this.locale.equals(that.locale)
&& this.pushNotificationDeviceId.equals(that.pushNotificationDeviceId);
}
return false;
}
public static final class Builder {
private Input locale = Input.absent();
private Input<String> pushNotificationDeviceId = Input.absent();

Builder() {
}

public Builder locale(@Nullable String locale) {
  this.locale = Input.fromNullable(locale);
  return this;
}

public Builder pushNotificationDeviceId(@Nullable String pushNotificationDeviceId) {
  this.pushNotificationDeviceId = Input.fromNullable(pushNotificationDeviceId);
  return this;
}

public Builder localeInput(@NotNull Input<String> locale) {
  this.locale = Utils.checkNotNull(locale, "locale == null");
  return this;
}

public Builder pushNotificationDeviceIdInput(@NotNull Input<String> pushNotificationDeviceId) {
  this.pushNotificationDeviceId = Utils.checkNotNull(pushNotificationDeviceId, "pushNotificationDeviceId == null");
  return this;
}

public UserInput build() {
  return new UserInput(locale, pushNotificationDeviceId);
}

}
}`

I just edited your comment to add code block formating (it's triple backtick).
If it works from a clean install, it feels like a cache thing indeed. Are you using the normalized cache ?

We only use http cache, and the policy is set to ´NETWORK_FIRST´

After many hours and digging, we found that it was a serialisation problem with using gson and Kotlin. When an attribute was missing from a json and was expected not to be null, gson would cause a crash. Not only that, but it seems to have very bad (if any) support for Kotlin. So the serialised objects produced unexpected behaviour. We switched to using Moshi which has Kotlin support, and all the problems disappeared.
So it had nothing to do with Apollo or cacheing, it was all Gson. Thanks for the time you spend helping us out. :-)

Yep, moshi handles kotlin way better!


Fix D3D12 return code page

The 3 return codes specify don't actually seem to exist (can't find in winerror, magicnumdb, or anywhere), and seem to have just been taken from the equivalent D3D11 errors. I replaced them with the actual D3D12_ERROR_* codes i found in winerror/d3d12.h

@john-h-k : Thanks for your contribution! The author(s) have been notified to review your proposed change.


tests: isolate ansible collections

When Ansible collections are installed, they should be isolated.
Otherwise, they will be shared in any scheduled job.
This might cause issues when running different branch versions for instance.
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

jenkins test centos-non_container-lvm_batch

jenkins test centos-non_container-lvm_batch

jenkins test centos-non_container-lvm_batch

jenkins test centos-non_container-lvm_batch

jenkins test centos-non_container-lvm_batch

jenkins test centos-non_container-lvm_batch


Delete user account functionality broken.

Description
Steps to repro.

Login to gitea
Go to settings.
Go to Accounts.

Now click on
 without entring password.
We get 500 error.

Gitea Version
1.21.0+dev-412-gce27de4d4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
1.21.0+dev-412-gce27de4d4
Operating System
No response
How are you running Gitea?
locally and try.gitea.io
Database
None

Could you share the logs you have?

I am sharing in a minute.

2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [I] router: completed GET /user/events for [::1]:50785, 200 OK in 12017.3ms @ events/events.go:18(events.Events)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd15-8: GET: /user/events
2023/07/28 23:08:41 ...s/process/manager.go:188:Add() [T] Start 64c3fd21: POST: /user/settings/account/delete (request)
2023/07/28 23:08:41 ...eb/routing/logger.go:47:func1() [T] router: started   POST /user/settings/account/delete for [::1]:50788
2023/07/28 23:08:41 ...ices/auth/session.go:51:SessionUser() [T] Session Authorization: Found user[1]
2023/07/28 23:08:41 models/user/user.go:910:GetUserByID() [I] [SQL] SELECT "id", "lower_name", "name", "full_name", "email", "keep_email_private", "email_notifications_preference", "passwd", "passwd_hash_algo", "must_change_password", "login_type", "login_source", "login_name", "type", "location", "website", "rands", "salt", "language", "description", "created_unix", "updated_unix", "last_login_unix", "last_repo_visibility", "max_repo_creation", "is_active", "is_admin", "is_restricted", "allow_git_hook", "allow_import_local", "allow_create_organization", "prohibit_login", "avatar", "avatar_email", "use_custom_avatar", "num_followers", "num_following", "num_stars", "num_repos", "num_teams", "num_members", "visibility", "repo_admin_change_team_access", "diff_view_style", "theme", "keep_activity_private" FROM "user" WHERE "id"=$1 LIMIT 1 [1] - 978.726µs
2023/07/28 23:08:41 ...ices/auth/session.go:67:SessionUser() [T] Session Authorization: Logged in user <User 1:git_tea>
2023/07/28 23:08:41 .../issues/stopwatch.go:149:HasUserStopwatch() [I] [SQL] SELECT * FROM "stopwatch" INNER JOIN "issue" ON issue.id = stopwatch.issue_id INNER JOIN "repository" ON repository.id = issue.repo_id WHERE (user_id = $1) LIMIT 1 [1] - 1.222911ms
2023/07/28 23:08:41 ...b727260d35/engine.go:1246:Get() [I] [SQL] SELECT "id", "lower_name", "name", "full_name", "email", "keep_email_private", "email_notifications_preference", "passwd", "passwd_hash_algo", "must_change_password", "login_type", "login_source", "login_name", "type", "location", "website", "rands", "salt", "language", "description", "created_unix", "updated_unix", "last_login_unix", "last_repo_visibility", "max_repo_creation", "is_active", "is_admin", "is_restricted", "allow_git_hook", "allow_import_local", "allow_create_organization", "prohibit_login", "avatar", "avatar_email", "use_custom_avatar", "num_followers", "num_following", "num_stars", "num_repos", "num_teams", "num_members", "visibility", "repo_admin_change_team_access", "diff_view_style", "theme", "keep_activity_private" FROM "user" WHERE "lower_name"=$1 LIMIT 1 [git_tea] - 951.543µs
2023/07/28 23:08:41 ...r/setting/account.go:244:DeleteAccount() [E] UserSignIn: user's password is invalid [uid: 1, name: git_tea]
2023/07/28 23:08:41 .../context_response.go:68:HTML() [D] Template: status/500
2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [I] router: completed POST /user/settings/account/delete for [::1]:50788, 500 Internal Server Error in 31.0ms @ setting/account.go:234(setting.DeleteAccount)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd21: POST: /user/settings/account/delete
2023/07/28 23:08:41 ...s/process/manager.go:188:Add() [T] Start 64c3fd21-2: GET: /assets/css/index.css?v=1d8d90fd3 (request)
2023/07/28 23:08:41 ...eb/routing/logger.go:47:func1() [T] router: started   GET /assets/css/index.css?v=1d8d90fd3 for [::1]:50788
2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [T] router: completed GET /assets/css/index.css?v=1d8d90fd3 for [::1]:50788, 304 Not Modified in 0.2ms @ public/public.go:34(public.FileHandlerFunc)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd21-2: GET: /assets/css/index.css?v=1d8d90fd3
2023/07/28 23:08:41 ...s/process/manager.go:188:Add() [T] Start 64c3fd21-3: GET: /assets/css/theme-arc-green.css?v=1d8d90fd3 (request)
2023/07/28 23:08:41 ...eb/routing/logger.go:47:func1() [T] router: started   GET /assets/css/theme-arc-green.css?v=1d8d90fd3 for [::1]:50784
2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [T] router: completed GET /assets/css/theme-arc-green.css?v=1d8d90fd3 for [::1]:50784, 304 Not Modified in 0.3ms @ public/public.go:34(public.FileHandlerFunc)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd21-3: GET: /assets/css/theme-arc-green.css?v=1d8d90fd3
2023/07/28 23:08:41 ...s/process/manager.go:188:Add() [T] Start 64c3fd21-4: GET: /assets/img/logo.svg (request)
2023/07/28 23:08:41 ...eb/routing/logger.go:47:func1() [T] router: started   GET /assets/img/logo.svg for [::1]:50784
2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [T] router: completed GET /assets/img/logo.svg for [::1]:50784, 304 Not Modified in 0.5ms @ public/public.go:34(public.FileHandlerFunc)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd21-4: GET: /assets/img/logo.svg
2023/07/28 23:08:41 ...s/process/manager.go:188:Add() [T] Start 64c3fd21-5: GET: /assets/img/500.png (request)
2023/07/28 23:08:41 ...eb/routing/logger.go:47:func1() [T] router: started   GET /assets/img/500.png for [::1]:50788
2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [T] router: completed GET /assets/img/500.png for [::1]:50788, 304 Not Modified in 1.4ms @ public/public.go:34(public.FileHandlerFunc)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd21-5: GET: /assets/img/500.png
2023/07/28 23:08:41 ...s/process/manager.go:188:Add() [T] Start 64c3fd21-6: GET: /assets/img/favicon.png (request)
2023/07/28 23:08:41 ...eb/routing/logger.go:47:func1() [T] router: started   GET /assets/img/favicon.png for [::1]:50788
2023/07/28 23:08:41 ...eb/routing/logger.go:102:func1() [T] router: completed GET /assets/img/favicon.png for [::1]:50788, 304 Not Modified in 0.7ms @ public/public.go:34(public.FileHandlerFunc)
2023/07/28 23:08:41 ...s/process/manager.go:231:remove() [T] Done 64c3fd21-6: GET: /assets/img/favicon.png
2023/07/28 23:08:49 ...ource/manager_run.go:46:Run() [T] Event source has no listeners
2023/07/28 23:08:49 ...ource/manager_run.go:56:Run() [T] Pausing the eventsource

`2023/07/28 23:08:41 ...r/setting/account.go:244:DeleteAccount() [E] UserSignIn: user's password is invalid [uid: 1, name: git_tea]
`

Its a simple check error UserSignIn: user's password is invalid

Its a simple check error UserSignIn: user's password is invalid

Yes, this password error should be displayed in the UI but not return 500

Caused by #25414 and we now need to check all possible errors come from https://github.com/go-gitea/gitea/blob/main/services/auth/source/db/authenticate.go#L46

Also consider the case that the user doesn't have a password, as in oauth2 users via github etc


Update flow images links

What type of PR is this?
Add one of the following kinds:

correction

What this PR does / why we need it:
Uploads the APIs flow images to the repo and updates the yaml links
Which issue(s) this PR fixes:

Fixes #129
Special notes for reviewers
The links included won't be working until the PR is merged and the images are in the main branch since they are absolute.

Hi @fernandopradocabrillo ,
Thank you very much for this correction.  BTW, did you make any change on Line 13?  Files Changed shows LIne 13 for some reason.  (I cannot see any difference between the left/red text and the right/greeen text, though.)
Best regards,

Hi @fernandopradocabrillo ,
Thank you very much for this correction. BTW, did you make any change on Line 13? Files Changed shows LIne 13 for some reason. (I cannot see any difference between the left/red text and the right/greeen text, though.)
Best regards,

@ToshiWakayama-KDDI
Yes! I fixed a typo: functionality
This means that not all Operators will implement this functionallity

for
This means that not all Operators will implement this functionality

I don't know why it marks the whole line 😄

I have just approved this PR.  Though Gilles has not approved this, please merge this PR, @fernandopradocabrillo , as we did not see any objection during the KYC SP meeting today.
Many thanks,


Backports 0.15 pr2

Will be rebased immediately after pr1 is merged

Looks good 👍

Rebased

FYI: the "merge" commit above is me trying Github GUI conflict resolution tool.


[NeoForge 1.21] Essentials not recognized as a valid mod file

Minecraft crashes while loading, giving the error that "File mods\essentials-2.17.0.jar is not a valid mod file." Occurs on a fresh install with only Essentials loaded.
NeoForge Version: 21.0.107-beta
Essentials Version: essentials-2.17.0
latest log: https://pastebin.com/XH17adjk

Fixed in Essentials 2.17.1.
Sorry about this one- didn't catch that NeoForge really doesn't like non-English letters in the mod credits


test: updated tests to use template instead of helper

Summary

part of #1023
follow up pr for #1074
Test Plan

./rome ci ---all tests passed

Thank you!


Add option to select which queries to run

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Apologies for the notification, this is not meant to be reviewed, #11806 is instead!


gmrender-resurrect: cc96ede -> v0.0.8

Motivation for this change
was marked broken, now updated with https://github.com/hzeller/gmrender-resurrect/pull/190 and tested to work. also, added myself as a maintainer because i plan to keep this up to date in the future as i use it
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @k0ral

the first release of gmrender-resurrect was just published, so i changed the pull request to reflect that. theoretically, we should be able to follow releases now!

just incorporated suggestions

the let..in block was just one line before, so by adding more things i had to expand it out, thus the massive indentation change that made the diff effectively useless. sorry about that. i don't see any inconsistent indentation, though.
it seems i forgot to remove fetchpatch from before 0.0.8 was released and i was pulling in a patch to get it to compile. i'll remove that.

the let..in block was just one line before, so by adding more things i had to expand it out, thus the massive indentation change that made the diff effectively useless. sorry about that. i don't see any inconsistent indentation, though.

Oh ok! No you did nothing wrong then.
GH UI misled my eyes with those bold color blocks.. >;<

apparently there is an option to hide whitespace changes behind the cog icon in the diff ui


perf: Restart perf every 60 minutes if perf used memory exceeds 512 MB

Description
Restart perf once per 60 minutes to avoid memory leak from issue https://github.com/Granulate/gprofiler/issues/528.
Related Issue
https://github.com/Granulate/gprofiler/issues/528
How Has This Been Tested?
Run gprofiler in continuous mode manually.

It's a fair approach I think.
However instead of "just restarting" every 60 minutes, I suggest we restart only if memory exceedds some threshold (defined at 512mb to begin with). So every 60 minutes, if perf memory usage is > 512mb, restart it. You can retrieve process memory utilization with psutil.

One more comment :)

Excellent :)


Process data in models Pull request

In this project, I set up the models. The following are the changes:

Created model classes for all entities as shown in the ERD diagram.
Set up associations between models.
Created at two users.
Created 4 posts written by one of the users I created.
Created 6 posts comments for one of the posts I created.
Created custom methods:
[ ] Users

A method that returns the 3 most recent posts for a given user.

[ ] Posts

A method that updates the posts counter for a user.
A method which returns the 5 most recent comments for a given post.

[ ] Comments

A method that updates the comments counter for a post.

[ ] Likes

A method that updates the likes counter for a post.

Thanks for approving my PR! 😊


Where are the rendered docs?

The readme points to https://mobile.nixos.org/ to view the rendered docs, but that page seems to be deprecated.

Not a solution but a workaround: you can build your own rendered docs with nix-build doc and then open result/README.html  in your choice of web brower

That works for me! Would you like me to update the README accordingly?

I'm not the maintainer :-) that's @samueldr . From where I'm sitting it sounds like a good idea though


[Feature Request] 添加 RSS 订阅

看 .NET 周刊很久了，一直是从GitHub的仓库点进来看的，每次要主动点进来多少有点不方便。请问是否有计划支持RSS订阅？

Thanks for your support. will bring RSS to .NET Weekly soon.

@luoxufeiyan if you don't mind. we have website hosting the all episodes. https://dotnetweekly.azurewebsites.net/


Cannot place PCF component on a section.

Trying to place a PCF component on an entire section, but it will not let me. Will this be supported?
Also, when I place a control over a field it leaves the line below the field. Can I remove this line?

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

ID: d34647a0-dfdf-23da-c656-158a1eae14f9
Version Independent ID: e2a795ee-c8ba-b757-194b-19ecf4b6d398
Content: Add Custom Components to a field or entity - PowerApps
Content Source: powerapps-docs/developer/component-framework/add-custom-controls-to-a-field-or-entity.md
Service: powerapps
GitHub Login: @Nkrb
Microsoft Alias: nabuthuk

@davallen Please raise your concerns here. Over development team will help you with the issues


Is jQuery really necessary?

jQuery adds almost 90kb and one extra req to the final product. Removing jQuery and using only vanilla JS will make the calendar faster, leaner and dependency-free!
To make this conversion less stressful, I suggest we could start by assigning a global $ variable to the querySelector method, so a good chunk of the code that is already written can be reused.
window.$ = document.querySelector.bind(document)
window.$$ = document.querySelectorAll.bind(document)
What do you think?

I was thinking of the same too, but don't know when or where to start haha! Hmmm I think this is a good first step, will try this also after work :thinking: Thanks for the suggestions tho :+1:


Add spacing to headlines

Block direction margin has been added to headlines in this PR to improve the readability and visual structure, especially in large text documents.
I chose to use the em unit for the margin to be relative to each headline font size.
Hope it is okay that I added the spacing values to a separate partial. Did that so that there is one place of truth which needs to be edited if these should be changed in the future.
Also let's talk about the values if they feel off. I tried to get a good compromise without adding "handcrafted" margins to each headline separately.

I think you may have misnamed a file here, this doesn't build

For some reason the namespace was correctly retrieved by the partials filename. I explicitly declared one (see https://sass-lang.com/documentation/at-rules/use/#choosing-a-namespace) which solves the issue and does build successfully on my machine.

Sorry for being silent for so long, got some busy weeks currently.
Looks like my naive way of adding styles does not work here. I will have to dig into CodeMirrors documentation on how to properly configure this.
I will let you know once I start working on a proper implementation.

Hey, I am sorry for letting you wait that long.
Unfortunately I will not have any free time in the foreseeable future to work on this.
Therefore I will close this issue so it does not lie around and clutter things up.
If anybody else (or maybe I someday) has time and wants to work on this they might be able to continue here.


feat: check generic types to allow usage in lists

@simonkellly could you please provide an example in which this works? I cannot find a situation where this applies, but I'm sure there is one.

public List<SerialzableInteface<IInterface>> MyInterfaces;
in this case, the type of the field is generic, so it gets checked if the generic type is serializable interface. As it is a list, it would not be true, and the type being checked would become the list's base type, eventually making the generic type null for the property drawer.
This way, the generic argument is checked to see if it is a serialiizableinterface, and as such set the generic type properly

I did a quick test using your code, but it doesn't seem to work properly. If you change the value of one element it'll change them all.

You are right, it wasn't resetting the active drawer when rendering each different element so this should now be fixed

Did that fix work for you?

The fix in this pull request seems to be working correctly. Previously I was using lists of serializable structs which had serializable interface fields on them to bypass this 😆

Apologies for the delay, I'll get back to you ASAP on this :).

Any updates on this pull request?

Gonna close this one since I've added it manually because I wanted to change the code slightly :)


after building cme a few modules are not availabe

After building cme using build_collector.py modules like "adcs" or "whoami" are not available when using cme with -M parameter and not listed by running with -L
To Reproduce
Steps to reproduce the behavior:

python build_collector.py

Expected behavior
All modules in the code listed are available when using cme
Screenshots

Crackmapexec info

OS: Arch Linux
Version of CME: latest git
Installed from apt or using latest release: source (git)

Additional context
My plan was to check if docker builds are also affected but building the container from the current source is not possible. Think this is a debian issue?!

Sorry, that i am not able to provide more details atm.

It depend of the protocol, module are not the same for LDAP and SMB :)

shame on me...where is the cat with the deep looking eyes showing only the pure disappointment.


fix panic in kubectl --validate when no apiVersion is passed

actually return validation errors instead of just creating them. whoops.
Fixes:  #9224

@k8s-bot ok to test

Kubernetes Bot ok to test

@k8s-bot ok to test

Reissuing test request. Will merge if ok. Thanks.

Summarizing 1 Failure:

[Fail] Service endpoints latency [It] should not be very high
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/service_latency.go:97

Ran 47 of 85 Specs in 292.649 seconds
FAIL! -- 46 Passed | 1 Failed | 2 Pending | 36 Skipped

Looks like the most recent e2e runs have failed with this same test failure. #9759 #9227

@k8s-bot ok to test. Seems like a flake.


Not using system proxy setting

It seems this software does not use system proxy setting, which I have to use to download factorio mods.

I'll see if I can change that.


Link updates

updates in What's new

@v-sambati : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Docs Build status updates of commit 0e842d0:
:warning: Validation status: warnings

File
Status
Preview URL
Details

microsoft-community-training/whats-new-in-microsoft-community-training/2022/whats-new-in-may-2022.md
:warning:Warning
View
Details

microsoft-community-training/whats-new-in-microsoft-community-training/2022/whats-new-in-may-2022.md

Line 19, Column 1: [Warning: alt-text-bad-value - See documentation] Alt text 'upload scorm' is the same as the image file name. This redundancy adds no value for users of screen readers. For accessibility, add more descriptive alt text.
Line 35, Column 1: [Warning: alt-text-bad-value - See documentation] Alt text 'search content marketplace' is the same as the image file name. This redundancy adds no value for users of screen readers. For accessibility, add more descriptive alt text.
Line 65, Column 1: [Warning: alt-text-bad-value - See documentation] Alt text 'full screen lesson' is the same as the image file name. This redundancy adds no value for users of screen readers. For accessibility, add more descriptive alt text.
Line 95, Column 1: [Warning: alt-text-bad-value - See documentation] Alt text 'separate page for certificates' is the same as the image file name. This redundancy adds no value for users of screen readers. For accessibility, add more descriptive alt text.

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


Add conditional to image references

Add a conditional statement, with a default image, to image references (index.html template, data stories section and single templates, and anything else relevant) so that when new content is created, if it doesn't have an image and image reference, builds will still complete.

Hey @cgettings, I started establishing a default image that gets overridden if .Params.image is specified, for data stories. That way we won't have build errors prior to adding an image. But, I'm running into an issue involving .Resize code. I think this only works if it's called on a Resource, rather than a string, and I'm having a hard time either doing that to a site-level resource (the default image), or converting strings to resources. I've tried unsuccessful things that I won't commit - using conditionals, with, Scratch, and other approaches to manage the logic but keep on running into one issue or another. I don't want to ditch use of Resize altogether, since it's especially important on the home page, key-topics, and data-stories section pages (where we're loading thumbnails). Not sure how to get this working though.

I'm going to close this and combine with #43 actually.


15 shared Loaded based on MUI

Issue related

Closes #15

What is being changed?

add mui circular loader wrapper
update eslint rules to consistent type instead of interface
align types usages

Evidences
Added to the demonstration in LoginForm
https://user-images.githubusercontent.com/15786916/193459606-01ceaaca-792c-4cd5-b2f5-f4b3b9cc310c.mov
Observations
More details can be clarified during the review since criteria are pretty generic

build job has failureddue to a lot of eslint issues in the main branch. It's out of the MR scope to fix them. I suggest to create a separte issue to fix all inconsistencies.
ps please do not push commits to the main branch directly, since it looks like does not trigger your CI or configure CI to be able to handle it.
Please let me know if I can create a separate issue/or you will take care (I can fix the issues, so feel free to assign it to me)

hey @eLeontev, please go ahead and create a issue to fill those linting/rules error.

from today onwards, no will push directly to main branch

I've created an issue for it #21
this PR would be postponed until blocker is not resolved yet

I've created an issue for it #21
this PR would be postponed until blocker is not resolved yet

the activity has completed. PR is unblocked and ready for review

@eLeontev let's add a support to have linear progress as well, expose a props named as { type : 'LINEAR' | 'CIRCULAR' }


Feel the need for a byname app that shows the logs for the pico

Handlebars template for these:

          {{#if logs}}

              {{#each logs}}

                  <input type="checkbox" id="episode-{{@index}}">
                  {{@key}}

{{#each this}}{{this}}
{{/each}}

              {{/each}}

          {{/if}}

with the styles shown here:
#logging-list {
  display: none;
}
#logging-list li {
  font-family: monospace;
}
.logging-detail {
  margin-left: 18px;
  display: none;
}
#logging-list checkbox {
  margin: 3px;
}
#logging-list label {
  cursor: pointer;
}
#logging-list li input[type="checkbox"]:checked ~ .logging-detail {
  display: block;
}
#logging-list ul {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
  width: auto;
}

Ideally, the io.picolabs.pico-engine-ui ruleset could be used as a module to obtain the logging entries. In the meantime, we can just use the code in its logs function.

Done in a recent series of commits.


[Bug]: MFXMemory_GetSurfaceForVPP returns MFX_ERR_UNSUPPORTED

Which component impacted?
Video Processing
Is it regression? Good in old configuration?
None
What happened?
I successfully have hardware decoding working while passing the frames to the VPP to convert their format. However when working on getting hardware encoding I need to first pass frames to the VPP to convert their format to NV12. When I try to get a frame surface from the VPP using MFXMemory_GetSurfaceForVPP it returns MFX_ERR_UNSUPPORTED. I have already initialized the VPP via MFXVideoVPP_Init with no error. When I looked at the documentation it doesn't list MFX_ERR_UNSUPPORTED as a possible error,
Can anyone provide any insight into why I'm seeing this error?
What's the usage scenario when you are seeing the problem?
Transcode for media delivery
What impacted?
Writing a rust wrapper around the the oneVPL implementation as a hobby project. No real rush.
Debug Information
API version: 2.8
Distro: Arch Linux
$ pacman -Q | grep intel
intel-gmmlib 22.3.3-1
intel-media-driver 23.1.0-1
intel-media-sdk 23.1.0-1
intel-ucode 20230214-1
onevpl-intel-gpu 23.1.0-1

$ cat /proc/cpuinfo | grep "model name" | head -n1
model name      : 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz

$ ls /dev/dri
by-path  card0  renderD128

$ uname -a
Linux intellaptop 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64 GNU/Linux

$ vainfo
Trying display: wayland
Trying display: x11
error: can't connect to X server!
Trying display: drm
vainfo: VA-API version: 1.17 (libva 2.17.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.0 ()
vainfo: Supported profile and entrypoints
...

Do you want to contribute a patch to fix the issue?
None

This we due to trying to use io pattern IN_SYSTEM_MEMORY which I guess isn't supported by the VPP frame allocator.


Refactor cli

          Minor: I feel the param list is a little bit long, we may consider to refactor it a little bit later.

Originally posted by @mengweieric in https://github.com/opensearch-project/reporting-cli/pull/11#discussion_r1085898148

address following comments in refactor:

https://github.com/opensearch-project/reporting-cli/pull/40#discussion_r1160819012

Could you try this merge strategy :

const defaults = {
  auth: DEFAULT_AUTH,
  tenant: DEFAULT_TENANT,
  ... (etc)
}

Object.assign(defaults, ...event)
I think would both clarify the defaults, and make the fallback assignments a one-liner.

https://github.com/opensearch-project/reporting-cli/pull/40#discussion_r1160820517

Might start to make sense to turn this into an object-reference, with an interface. Naming might be hard, though I could make more sense and less brain-power out of arguments named {emailContent, smtpConfig} with associated interfaces.

This would also mean that further config changes (new options) do not cause change on this method (or at least this method signature

https://github.com/opensearch-project/reporting-cli/pull/40#discussion_r1160822411

This feels like making this module to two different things : 1. format/send email. 2. control UI/UX.

I think the only question in splitting this up would be if there is expected some "on-the-fly" UX while the email-sending process is ongoing... In our modern computing environment, there shouldn't be a timing issue... emails never take > 10sec so send.. or else they fail immediately.

https://github.com/opensearch-project/reporting-cli/pull/40#discussion_r1160823172

This might be a lot more clear using a try..catch.. .and if necessary a throw on self-detected error (err value is not null?)

https://github.com/opensearch-project/reporting-cli/pull/42#discussion_r1162097230

this works but seems backwards, it's easy to miss since the code is checking process.env[ENV_VAR.EMAIL_NOTE] in both getOptions and getEventArguments. e.g. if a config file is introduced later, this needs to also check && config_file.email_note === undefined

i think peter brought this up before, it might be better to have a default options object in getOptions. If there are any explicitly defined configs, overwrite the value with the highest priority config (command arguments > environment variables), or overwrite multiple times starting from lowest priority


Loading LSTM "SavedModel" from golang results in crash

NOTE: Issues that are not bugs or feature requests will be closed. Please ask usage questions on StackOverflow.
 Yes
TensorFlow installed from (source or binary)?: binary
TensorFlow version: 1.0.1
Bazel version (if compiling from source): -
CUDA/cuDNN version: -
GPU Model and Memory: -
Exact command to reproduce: -

Describe the problem clearly
I have a 'saved model' of a NN that look like this (keras - model.summary()):
_________________________________________________________________
Layer (type)                 Output Shape              Param #
=================================================================
input_1 (InputLayer)         (None, 15, 300)           0
_________________________________________________________________
masking_1 (Masking)          (None, 15, 300)           0
_________________________________________________________________
lstm_1 (LSTM)                (None, 300)               721200
_________________________________________________________________
dropout_1 (Dropout)          (None, 300)               0
_________________________________________________________________
dense_1 (Dense)              (None, 145)               43645
_________________________________________________________________
activation_1 (Activation)    (None, 145)               0
=================================================================
Total params: 764,845.0
Trainable params: 764,845.0
Non-trainable params: 0.0
_________________________________________________________________

When I try to load it using the golang bindings, it results in a crash:
$ go run example.go
I tensorflow/cc/saved_model/loader.cc:194] Loading SavedModel from: ./load
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
I tensorflow/cc/saved_model/loader.cc:114] Restoring SavedModel bundle.
I tensorflow/cc/saved_model/loader.cc:148] Running LegacyInitOp on SavedModel bundle.
I tensorflow/cc/saved_model/loader.cc:238] Loading SavedModel: success. Took 150044 microseconds.
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8c1a6cc]

runtime stack:
runtime.throw(0x40cadf9, 0x2a)
	/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
	/usr/local/go/src/runtime/signal_unix.go:274 +0x2db

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4094920, 0xc420053dd0, 0x40cabb6)
	/usr/local/go/src/runtime/cgocall.go:131 +0xe2 fp=0xc420053d90 sp=0xc420053d50
github.com/tensorflow/tensorflow/tensorflow/go._Cfunc_TF_LoadSessionFromSavedModel(0x4516690, 0x0, 0x45167c0, 0xc42000e030, 0x1, 0x4515e50, 0x0, 0x45135f0, 0x0)
	github.com/tensorflow/tensorflow/tensorflow/go/_obj/_cgo_gotypes.go:438 +0x51 fp=0xc420053dd0 sp=0xc420053d90
github.com/tensorflow/tensorflow/tensorflow/go.LoadSavedModel.func1(0x4516690, 0x0, 0x45167c0, 0xc42000e030, 0x1, 0x4515e50, 0x0, 0x45135f0, 0x414d0f0)
	/Users/berset/git/gopath/src/github.com/tensorflow/tensorflow/tensorflow/go/saved_model.go:56 +0x156 fp=0xc420053e28 sp=0xc420053dd0
github.com/tensorflow/tensorflow/tensorflow/go.LoadSavedModel(0x40c5552, 0x6, 0xc420053f68, 0x1, 0x1, 0x0, 0x0, 0x4124480, 0x40a49e0)
	/Users/berset/git/gopath/src/github.com/tensorflow/tensorflow/tensorflow/go/saved_model.go:56 +0x1b4 fp=0xc420053ed8 sp=0xc420053e28
main.main()
	/Users/berset/git/gopath/src/github.com/campanja/ssinet/example.go:9 +0x8e fp=0xc420053f88 sp=0xc420053ed8
runtime.main()
	/usr/local/go/src/runtime/proc.go:185 +0x20a fp=0xc420053fe0 sp=0xc420053f88
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420053fe8 sp=0xc420053fe0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1
exit status 2
$

Source Code / Logs
The go code looks like this:
package main

import (
    "fmt"
    tf "github.com/tensorflow/tensorflow/tensorflow/go"
)

func main() {
    m, err := tf.LoadSavedModel("./load", []string{"serve"}, nil)
    if err != nil {
        fmt.Println(err)
    }
    fmt.Println(m)
    fmt.Println("load successful!")
}

I'm attaching a sample saved model and the code to generate the crash.
sample.zip
I can use the same code/bundling process to save / load NNs with only Dense layers for example.
I also did try to printf debug this and I think the problem arises around the "TensorArrayV3" or "TensorArrayReadV3" or some such operation.

Thanks for the very detailed report and the instructions to reproduce, this helps a lot.
I believe https://github.com/tensorflow/tensorflow/commit/5fb1aeaa6df73fe3ed6e66c034cf4202e3aa90ed fixes the issue and was able to verify that your sample succeeds when using 1.1.0-rc1 instead of 1.0.1 (available at: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0-rc1.tar.gz and similar links for gpu/OS X).
Closing this out since it is fixed in the latest release candidate.
Let us know if that is not the case or if you have other concerns.

Yes, using that version does indeed fix the problem.
Thanks!


Unexpected SBT resolution failure

Hi Pierre,
I'm tracking down a local build failure, and it appears to me that this library is 404'ing on Maven Central.
You can see by going here and attempting to download either the .pom or the .jar: https://search.maven.org/artifact/de.lolhens/sbt-css-compress/0.2.0/jar
Any thoughts? Am I looking at this incorrectly?

Hi, it seems to be still on there: https://repo1.maven.org/maven2/de/lolhens/sbt-css-compress_2.12_1.0/0.2.0/
I think

Maybe the maven search feature is broken here because of how Scala name-mangles artifacts. I'll keep hunting for the root cause.

Here is what I see:
[warn] 	module not found: de.lolhens.sbt#sbt-css-compress;0.2.0 [warn] ==== typesafe-ivy-releases: tried [warn]   https://repo.typesafe.com/typesafe/ivy-releases/de.lolhens.sbt/sbt-css-compress/scala_2.12/sbt_1.0/0.2.0/ivys/ivy.xml [warn] ==== sbt-plugin-releases: tried [warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/de.lolhens.sbt/sbt-css-compress/scala_2.12/sbt_1.0/0.2.0/ivys/ivy.xml [warn] ==== local: tried [warn]   /Users/martin/.ivy2/local/de.lolhens.sbt/sbt-css-compress/scala_2.12/sbt_1.0/0.2.0/ivys/ivy.xml [warn] ==== public: tried [warn]   https://repo1.maven.org/maven2/de/lolhens/sbt/sbt-css-compress_2.12_1.0/0.2.0/sbt-css-compress-0.2.0.pom [warn] ==== local-preloaded-ivy: tried [warn]   /Users/martin/.sbt/preloaded/de.lolhens.sbt/sbt-css-compress/0.2.0/ivys/ivy.xml [warn] ==== local-preloaded: tried [warn]   file:////Users/martin/.sbt/preloaded/de/lolhens/sbt/sbt-css-compress_2.12_1.0/0.2.0/sbt-css-compress-0.2.0.pom [warn] ==== Typesafe repository: tried [warn]   https://repo.typesafe.com/typesafe/releases/de/lolhens/sbt/sbt-css-compress_2.12_1.0/0.2.0/sbt-css-compress-0.2.0.pom [warn] ==== scalaz-bintray: tried [warn]   https://dl.bintray.com/scalaz/releases/de/lolhens/sbt/sbt-css-compress_2.12_1.0/0.2.0/sbt-css-compress-0.2.0.pom [warn] ==== bintray-lolhens-sbt-plugins: tried [warn]   https://dl.bintray.com/lolhens/sbt-plugins/de.lolhens.sbt/sbt-css-compress/scala_2.12/sbt_1.0/0.2.0/ivys/ivy.xml [warn] 	:::::::::::::::::::::::::::::::::::::::::::::: [warn] 	::          UNRESOLVED DEPENDENCIES         :: [warn] 	:::::::::::::::::::::::::::::::::::::::::::::: [warn] 	:: de.lolhens.sbt#sbt-css-compress;0.2.0: not found [warn] 	::::::::::::::::::::::::::::::::::::::::::::::
This used to work previously, but now it's attempting to hit:
https://repo1.maven.org/maven2/de/lolhens/sbt/sbt-css-compress_2.12_1.0/0.2.0/sbt-css-compress-0.2.0.pom
instead of:
https://repo1.maven.org/maven2/de/lolhens/sbt-css-compress_2.12_1.0/0.2.0/sbt-css-compress-0.2.0.pom
Still looking into it, thought you might be interested in what I'm looking at. If I manually insert this into my local .ivy2 cache then the rest of the build completes normally. Whatever my problem with, it's only with this one library.

Sbt is trying to resolve de.lolhens.sbt#sbt-css-compress;0.2.0.
Did you specify de.lolhens.sbt instead of de.lolhens?

We didn't change anything, but that was it. Our plugin.sbt required these changes:
-addSbtPlugin("de.lolhens.sbt" % "sbt-css-compress" % "0.2.0")
+addSbtPlugin("de.lolhens" % "sbt-css-compress" % "0.2.0")

Thank you!


Migrate to templatefile function from deprecated template_file provider.

The provider template_file is deprecated and it is encouraged to migrate to the built in templatefile() function.
As template_file is archived it also means that it's lacking builds for M1 macs.

Thanks for the fix! Overall, changes LGTM.
One request: please run terraform fmt on all the code, our our pre-commit hook will fail.

Will do!

Ah, OK, great. Kicking off tests now.

Tests passed! Merging now.


New Filter: append (strings, arrays)

{foo | append(1)}
{bar | append('_')}

Implemented in:
https://github.com/buxlabs/pure-utilities/pull/61


docs

https://blog.jetbrains.com/space/2023/04/18/space-git-flow/
https://stackify.com/what-is-sdlc/
https://en.wikipedia.org/wiki/Systems_development_life_cycle

https://stackoverflow.com/questions/273695/what-are-some-examples-of-commonly-used-practices-for-naming-git-branches


Unblinking

After using your new version of code, I found that no matter how you train it, you won't blink and will keep staring. Is there any way to solve this problem?
No matter how big eye_blink_dim is set, it hasn't changed.
please

Hi, I'm having the same problem, but I've trained out that my eyes stay closed and won't open. However, I suspect that one of the modules didn't match during training 1, and there was an error size mismatch for blink_encoder.1.weight, I solved the error by skipping, but the trained character's eyes are closed!

You can see that the default blink dim in head and torso config is not the same, and that's why blink_encoder.1.weight not match. change torso from 4 to 2 will load the weights.

In file inference/genefacepp_infer.py line 185 and line 186,
there should have
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.03).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.97).item()

please alter these line to
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.001).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.95).item()

it is worked for me, although I am not so satisfy.

In file inference/genefacepp_infer.py line 185 and line 186, there should have
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.03).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.97).item()

please alter these line to
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.001).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.95).item()

it is worked for me, although I am not so satisfy.

Great.You help me able to see the eye blinking in my own data, although the effect is far from satisfactory.

In file inference/genefacepp_infer.py line 185 and line 186, there should have
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.03).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.97).item()

please alter these line to
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.001).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.95).item()

it is worked for me, although I am not so satisfy.

Great.You help me able to see the eye blinking in my own data, although the effect is far from satisfactory.

By the way , in my dataset , it only works with "--eye_blink = period" in inference command.

In file inference/genefacepp_infer.py line 185 and line 186, there should have
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.03).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.97).item()

please alter these line to
self.closed_eye_area_percent = torch.quantile(eye_area_percents, q=0.001).item()
self.opened_eye_area_percent = torch.quantile(eye_area_percents, q=0.95).item()

it is worked for me, although I am not so satisfy.

Great.You help me able to see the eye blinking in my own data, although the effect is far from satisfactory.

By the way , in my dataset , it only works with "--blink_mode = period" in inference command.

If the video shows eye blinking but some parts of the video appear mosaic-like or have blurry eyes during non-blinking moments, you can fix this by modifying this section:
In file inference/genefacepp_infer.py line 84
eye_area_percent = 0.6 * torch.ones([len(lm68), 1], dtype=opened_eye_lm68.dtype, device=opened_eye_lm68.device)
please alter these line to
eye_area_percent = 0.6 * torch.ones([len(lm68), 1], dtype=opened_eye_lm68.dtype, device=opened_eye_lm68.device)
You should adjust these values according to your video.


Iam 307 implement health checks

This PR implements liveness and readiness checks for the Login UI server. Readiness response is only available if dependencies are also available.

Can you please explain the logic implemented here (or point to a spec)? From what I understand:
The login UI will serve two new endpoints:

/health/ready: Returns whether both hydra and kratos return true when making API calls to their "IsReady" endpoints
/health/alive: It's still unclear to me what could set the "alive" state to False looking at the code.

Can you please explain the logic implemented here (or point to a spec)? From what I understand:
The login UI will serve two new endpoints:

/health/ready: Returns whether both hydra and kratos return true when making API calls to their "IsReady" endpoints

@bencekov if that's the case, why do we care if hydra and kratos work in the context of login ui? They already both have this health check independently. Shouldn't we rather check if login ui itself is up and running?

The PR https://github.com/canonical/identity-platform-login-ui/pull/33 replaces this PR.


CI: Use gcovr instead of lcov

That should be done now. FWIW I think gcovr could also replace coverage.py, which I think is being used although I can't see where that is installed.
Not something we need to solve in this PR, but might make a good follow up just to use the one tool


Refactor PhoneNumberUtil::maybeStripNationalPrefixAndCarrierCode

Current cyclomatic complexity: 16

Plan:
In the if-statement if (transformRule == null || transformRule.length() == 0 || prefixMatcher.group(numOfGroups) == null) { there are two clauses which are quite similar. The first handles the case when there is no transform rule and the second when there is one. The contents in these clauses can be moved to their own functions. The first function must take the following parameters: isViableOriginalNumber, number, prefixMatcher, generalDesc, carrierCode, numOfGroups. The second one must take the same parameters and one additional: transformRule. Those are quite a lot, but there is also one upside with this refactoring: There are no values that are changed here that must be propagated to the calling function. This means the code can simply by copied to their respective functions without any changes.

Cyclomatic complexity after refactor: 7 (56% decrease from 16)


Rework java base module

Rework Java base module to use the new module mechanism

The CI failed because the module java base didn't manage to find the template:

To reproduce:

compile to jar
move the jar to another folder than target folder (so it won't find template)
launch it with java -jar *.jar
use: init, maven, java base

The CI failed because the module java base didn't manage to find the template:

To reproduce:
* compile to jar

* move the jar to another folder than target folder (so it won't find template)

* launch it with java -jar *.jar

* use: init, maven, java base

Oh great, thx! Just a path handling thing so :D


conflict with Multi Account Containers

New Issue Checklist (tick off like this: [x])

[x] I checked existing issues (open and closed) for possible duplicates
[x] I can reproduce the problem on the latest stable version (not nightly!)
[x] If you have a problem a specific website: adding the domain to your no-skip-urls-list does not solve the problem
[x] The issue is not about adding entries to the default no-skip-urls-list

What is your browser?

[x] Firefox
[ ] Chrome

What is your operating system?

[ ] Linux
[ ] Mac
[x] Windows

Description (please include examples/screenshots where applicable)
This add-on conflicts with "Multi-account containers" with "Limit to designated sites" set. For example, I have a Facebook container. When opening a l.facebook.com/l.php... link, MAC reopens the tab in a "no container" and it results in endless loop.

I had a lot of problems with MAC and I ditched it a long long ago... replaced by Containerise.
Do you have the same problems with Containerise?
Cheers


Project file and Code file for evaluation article.

Evaluation Article - Func and Action Delegates in C#

Closing PR after submission


Docs: Mobile menu is off screen far right

The hamburger menu is off the screen far right on mobile which makes the site width much larger than necessary.

Appears to be fixed now


Add : Creating your first Smart Contract in Solidity

Title Of Blog Post :  Creating your first Smart Contract in Solidity
Short Description of what is expected :
Category :  Blockchain Development
Tags : Ethereum, Smart Contracts, Solidity Programming
Checklist

[x]  Added Image For banner
[x]  Markdown file in the _posts directory following the naming convention
[x]  Include Front Matter at the beginning of your Markdown file with metadata
[x]  Testing Locally. This is very Important.

**This Pull request closes #100 **

@holygrimm @darkbits018 @deep-Ak-47 please review this PR

Good one bro. Can you drop your email here so that I can send you a badge for contributing?

@darkbits018  you can mail on :
<EMAIL_ADDRESS>


I don't think this is correct. When you adjust a value in the l map, you should also need to adjust the key in the r map (and vice versa). lookupR (lookup k m) m == return k will fail after making an adjustment.

Indeed, this was shamefully wrong, sorry for that. I've updated the pull request to get what I think is the expected behavior.
Notably, I don't think we want to have (adjust f_inverse k $ adjust f k m) == m. Because of the bijectivity constraint, adjust f k m :: Bimap a b may have to delete some a element, that adjust f_inverse k won't be able to recreate.
Do we agree on that point ?

Agree.
Data.Map also implements adjustWithKey:: (k -> a -> a) -> k -> Map k a -> Map k a. Do you think that would be useful to have for a Bimap?

It makes sense. While I was at it, I also added the serie of update functions.
Please double check the code, a lot of copy-pasting was involved in the process :) .

I'm seeing a bug in adjustR that I don't understand.
let bi = fromList [(0,-3)]
let f = (3*)
let showFull bi = "L: " ++ show (toMap bi) ++ "\tR: " ++ show (toMapR bi)
showFull $ adjustR f (-3) bi
> L: fromList [(0,-3)]    R: fromList []

I've just fixed it:
let bi = fromList [(0,-3)]
let f = (3*)
let showFull bi = "L: " ++ show (toMap bi) ++ "\tR: " ++ show (toMapR bi)
putStrLn $ showFull $ adjustR f (-3) bi
> L: fromList [(0,-3)]	R: fromList [(-3,0)]

I've added these changes to the version on Hackage.


ImportError: DLL load failed: The specified module could not be found.

C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\python.exe C:/AI/imageClassification.py
Using TensorFlow backend.
Traceback (most recent call last):
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/AI/imageClassification.py", line 1, in
from keras.preprocessing.image import ImageDataGenerator
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\keras_init_.py", line 3, in
from . import utils
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\utils_init_.py", line 6, in
from . import conv_utils
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\backend_init_.py", line 1, in
from .load_backend import epsilon
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\backend\load_backend.py", line 90, in
from .tensorflow_backend import *
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in
import tensorflow as tf
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_init_.py", line 101, in
from tensorflow_core import *
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\importlib_init.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\ravikumarm\AppData\Local\Programs\Python\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Process finished with exit code 1

I believe this happens because you lack the latest Visual C++ package. You can find it here:
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
I recall having the same problem on Windows for TF2.1, but yeah, this error could use some clarification.

I believe this happens because you lack the latest Visual C++ package. You can find it here:
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
I recall having the same problem on Windows for TF2.1, but yeah, this error could use some clarification.

It worked. Thanks a lot.

@ravirama12001  Please, refer #36167 and see if it helps you. Thanks!
Make sure to download the latest microsoft visual c++ redistributable from here.
Make sure you update environment path for cuda(please refer this https://www.tensorflow.org/install/gpu#windows_setup ). Make sure if there is a library that is in a different location/not installed on your system that cannot be loaded.Also, please follow the instructions from Tensorflow website.
Please, check Your CPU/Python is on 32 bits?Please, refer #36167 and see if it helps you. Thanks

@ravirama12001 please confirm if we may proceed to move this issue to resolved


WebSpeaker should use EnabledComponet

I think it would be as easy as this patch, and would build out a more full and consistent API without more boilerplate. Feel free to apply and commit with just a bit of testing.

Index: js/accessibility/voicing/webSpeaker.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/accessibility/voicing/webSpeaker.js b/js/accessibility/voicing/webSpeaker.js
--- a/js/accessibility/voicing/webSpeaker.js	(revision 968ae0250703c8dabce232b390dced8bafb180f8)
+++ b/js/accessibility/voicing/webSpeaker.js	(date<PHONE_NUMBER>539)
@@ -12,6 +12,7 @@
 import BooleanProperty from '../../../../axon/js/BooleanProperty.js';
 import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
 import Emitter from '../../../../axon/js/Emitter.js';
+import EnabledComponent from '../../../../axon/js/EnabledComponent.js';
 import NumberProperty from '../../../../axon/js/NumberProperty.js';
 import Property from '../../../../axon/js/Property.js';
 import Range from '../../../../dot/js/Range.js';
@@ -23,9 +24,13 @@
 import globalKeyStateTracker from '../globalKeyStateTracker.js';
 import KeyboardUtils from '../KeyboardUtils.js';

-class WebSpeaker {
+class WebSpeaker extends EnabledComponent {
   constructor() {

+    super( {
+      phetioEnabledPropertyInstrumented: false
+    } );
+
     // @public {null|SpeechSynthesisVoice}
     this.voiceProperty = new Property( null );

@@ -56,9 +61,6 @@
     // @public {boolean} - is the WebSpeaker initialized for use? This is prototypal so it isn't always initialized
     this.initialized = false;

-    // whether or ot the webSpeaker is enabled - if false, there will be no voicing at all
-    this.enabledProperty = new BooleanProperty( false );
-
     // @private {Property|DerivedProperty|null} - Controls whether or not speech is allowed with synthesis.
     // Null until initialized, and can be set by options to initialize().
     this._canSpeakProperty = null;
@@ -90,10 +92,6 @@
     this.utterances = [];
   }

-  get enabled() {
-    return this.enabledProperty.get();
-  }
-
   /**
    * Indicate that the webSpeaker is ready for use, and attempt to populate voices (if they are ready yet). Adds
    * listeners that control speech.

Looks great, thanks. Applied in the above commit. Only change I made was to set enabled: false initially with options. I tested GFL:B and JT with this change and it is working well. Closing.


Mount the Switch with memloader on Linux with sudo privileges

I'm sorry if this is a dumb question but I'm not familiar with this.
I want to mount the user partition of my Switch with memloader on my Arch Linux machine. I've installed ninfs with pip by using the command in the release page, however I can't mount the partition, which is on /dev/sdd, as it seems the local ninfs installation can't be run with sudo privileges.
sudo mount_nandhac /dev/sdd /home/lorenzo/Games/Switch/Mount/ -o allow_other --keys /home/lorenzo/Games/Switch/bis.keys
Traceback (most recent call last):
  File "/home/lorenzo/.local/bin/./mount_nandhac", line 5, in <module>
    from ninfs.main import main
ModuleNotFoundError: No module named 'ninfs'

Do I have to install ninfs system-wide?

Never mind, I found out about virtual environments and that works with sudo privileges.

The reason this happened is because if you installed ninfs using --user, it was installed to your local user directory. When you use sudo, it will use root's directory which wouldn't have it.


Can I create pod in another cluster?

Summary
Our k8s has several clusters, it would be best if we can only install Argo Workflow into only one cluster, but allow Workflow to create Workflow/Pod in the other clusters. Is it possible to achieve that?
The closest field I find is clusterName: https://argoproj.github.io/argo/fields/#fields_57

The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.

So seems this field will be ignored if I want to create a new Workflow, am I right?
Motivation
Why do you need to know this, any examples or use cases you could include?
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-world-
  labels:
    workflows.argoproj.io/archive-strategy: false
  namespace: argo
  clusterName: another-cluster-i-want-to-run-this-workflow
spec:
  entrypoint: whalesay
  templates:
  - name: whalesay
    serviceAccountName: argo
    container:
      image: docker/whalesay
      imagePullPolicy: Always
      resources:
        requests:
          cpu: "100m"
          memory: "100Mi"
        limits:
          cpu: "500m"
          memory: "500Mi"
      command: [cowsay]
      args: ["hello world"]

^^ this is an example I want to run Workflow in another cluster

This is not possible. Argo Workflows is single cluster only.

That's unfortunate, as I noticed argo-cd would support that, do we have any plan for this? As it makes sense for the whole company to use the same Argo Workflow, but create pods in different cluster and namespace

I've created a ticket for the suggestion.

@jessesuen has stated that you can run the controller in one cluster and manage another cluster, but only one cluster.

@jessesuen for my case, I need at least 3 clusters for development/staging/production, so it would be ideal to put Argo Workflow in the fourth cluster, then manage other 3 clusters... something like that

@luozhaoyu Cool! We have the same scenarios, and we don't want to install Argo pods in staging or production cluster, all we need is to install Arg things (server+runner) in the other cluster only, and allocate some steps of the workflows to the staging/production clusters.

Drive by idea (have not tried this):
Argo already has the possibility of sharding via instanceID, and I believe Argo can also be configured to use a separate kubeconfig or alternate credentials that could potentially point at an arbitrary cluster, not necessarily the one that you're in.
You could potentially do something like have N argo controllers with separate instance ids, each pointing to a separate cluster.  You can then use the Workflow of Workflows pattern in order to assign a workflow to a specific controller which would then create pods in a specific cluster.  Your overall workflow could be comprised of multiple sub-workflows, each running on a separate cluster.
Sounds like a fun experiment, going to give it a try and maybe write a blog post on it :)

Drive by idea (have not tried this):
Argo already has the possibility of sharding via instanceID, and I believe Argo can also be configured to use a separate kubeconfig or alternate credentials that could potentially point at an arbitrary cluster, not necessarily the one that you're in.
You could potentially do something like have N argo controllers with separate instance ids, each pointing to a separate cluster. You can then use the Workflow of Workflows pattern in order to assign a workflow to a specific controller which would then create pods in a specific cluster. Your overall workflow could be comprised of multiple sub-workflows, each running on a separate cluster.
Sounds like a fun experiment, going to give it a try and maybe write a blog post on it :)

Seems like if I have N clusters and M namespaces, then I need N*M Argo controllers. For me it does not matter where I put these controllers, but if we have options to consolidate NM Argo controllers to N or 1 controller, that would be great to reduce operational/administrative overhead

That depends on if you are using a cluster wide or namespaced install.  If it's cluster wide, you would only need N controllers, one for each cluster.  If it's namespaced, you're correct, it'd be N*M.

That depends on if you are using a cluster wide or namespaced install. If it's cluster wide, you would only need N controllers, one for each cluster. If it's namespaced, you're correct, it'd be N*M.

Cluster wide is great. But in practice, that adds some security concern that it can create pods in arbitrary namespace. Is there a way to limit the cluster wide installation to whitelisted namespaces?

It looks like Argo only supports passing a single namespace when using the namespaced install path, but I wonder what would happen if you user the cluster-wide install type and omitted the ClusterRoleBinding.  In the individual namespaces that you want to manage, add an explicit RoleBinding that references the ClusterRole and gives permissions to the service account that Argo is running as in whatever namespace it's running in.


#design Follow and volunteer

We want to have new levels of engagement:
1- Follow:
This collective is interesting to me, I don't want to commit to become a backer or to volunteer yet but I want to keep an eye on it
2- Volunteer/Contribute:
I don't have money but I'd love to contribute / volunteer (or I have money but I'd also be happy to contribute time). Should be able to give a time commitment (e.g. between 1-5 hours per month) and a list of skills. That will also help build up the profile of that person.
3- As a core contributor, post requests for volunteers
E.g. we need a new maintainer, a designer, someone to record videos, someone to help checkin people at the door, etc. (also with time commitment bracket)

Just had a chat with a group in Greece interested in collectives with these
levels of contributors as well.

hey this is what i have came up with so far, i think we can use the categories we already have from expenses to let users recognise what they can do to contribute faster,
Each card consist of:

category tag
Tittle (50 characters)
Details of the request (130 characters)
Cta

I really like this idea of cards and the idea of suggesting a contribution. I think it's very important because the collective may not think of something that I could contribute that could be useful.
Now I wonder how we could convey who did contribute what and show where there is already a lot of contributors and where there is less. Thoughts?

i think this version can work to acknowledge the contributor

and for the visibility im working on a activity feed, but is more of a global feature of the collective, let me know what you think of it

I really like that from the top of the very first page, people can directly see what a collective is all about.
It's a detail that we can change later but the order of tabs should be different. It should be in the order of the questions that people would have about a collective:

Who are we?
Our values
Join us (or "our suppporters"?)
Next events
Contribute

(There is no need for transparency as this is a value and something that people can see)
It's really good work Erick!

leaving this open as it might be useful for #502

@cuiki do you need/want this open still?

Yes. I can put it in queue, unless it is something we will not do, in which case I would close it. But if it is something that makes sense I'll leave it open and just move it to the queue (low priority) list.

I don't think we'll be doing this anytime soon. @xdamman ?

closing for like of activity. Re open when it becomes a priority


tensorflow.python.framework.errors_impl.AlreadyExistsError: File system for s3 already registered error in load_library.py

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
'2.4.1'
Custom Code
No
OS Platform and Distribution
Linux Kubuntu 18.04
Mobile device
No response
Python version
Python 3.9.12
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
cudatoolkit: 10.1.243 ; cudnn:7.6.5
GPU model and memory
No response
Current Behaviour?
I am trying to locally train a model from tensorflow using the following command:

!python3 {ws_path}models/research/object_detection/model_main_tf2.py \
    --pipeline_config_path={pipeline_config_path} \
    --model_dir={model_dir} \
    --alsologtostderr \
    --num_train_steps={num_steps} \
    --sample_1_of_n_eval_examples=1 \
    --num_eval_steps={num_eval_steps}

But an error occurred and I tried really hard to search around but I can't find anything that could be a help. The error is as follow:

tensorflow.python.framework.errors_impl.AlreadyExistsError: File system for s3 already registered

Standalone code to reproduce the issue
Maybe you can look at this recently posted question in stackoverflow:
https://stackoverflow.com/questions/72080563/alreadyexistserror-file-system-for-s3-already-registered

We got the same error on anaconda3\some-path\tensorflow\python\framework\load_library.py

Relevant log output
2022-05-05 15:40:47.232501: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
  File "/home/pinky/architectures/TRAINING/faster-rcnn-tf2/models/research/object_detection/model_main_tf2.py", line 31, in <module>
    from object_detection import model_lib_v2
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/object_detection/model_lib_v2.py", line 30, in <module>
    from object_detection import inputs
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/object_detection/inputs.py", line 27, in <module>
    from object_detection.builders import model_builder
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/object_detection/builders/model_builder.py", line 37, in <module>
    from object_detection.meta_architectures import deepmac_meta_arch
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/object_detection/meta_architectures/deepmac_meta_arch.py", line 28, in <module>
    import tensorflow_io as tfio  # pylint:disable=g-import-not-at-top
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/tensorflow_io-0.25.0-py3.9-linux-x86_64.egg/tensorflow_io/__init__.py", line 17, in <module>
    from tensorflow_io.python.api import *  # pylint: disable=wildcard-import
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/tensorflow_io-0.25.0-py3.9-linux-x86_64.egg/tensorflow_io/python/api/__init__.py", line 19, in <module>
    from tensorflow_io.python.ops.io_dataset import IODataset
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/tensorflow_io-0.25.0-py3.9-linux-x86_64.egg/tensorflow_io/python/ops/__init__.py", line 96, in <module>
    plugin_ops = _load_library("libtensorflow_io_plugins.so", "fs")
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/tensorflow_io-0.25.0-py3.9-linux-x86_64.egg/tensorflow_io/python/ops/__init__.py", line 64, in _load_library
    l = load_fn(f)
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/tensorflow_io-0.25.0-py3.9-linux-x86_64.egg/tensorflow_io/python/ops/__init__.py", line 56, in <lambda>
    load_fn = lambda f: tf.experimental.register_filesystem_plugin(f) is None
  File "/home/pinky/anaconda3/envs/faster-rcnn-tf2/lib/python3.9/site-packages/tensorflow/python/framework/load_library.py", line 178, in register_filesystem_plugin
    py_tf.TF_RegisterFilesystemPlugin(plugin_location)
tensorflow.python.framework.errors_impl.AlreadyExistsError: File system for s3 already registered

@edehino I tried to replicate the issue on colab using TF v2.8.0 ,please find the gist here and confirm the same?
Thanks!


ian UID2-1417 added refresh endpoint for client side keypairs

Currently have only tested using local mock storage and postman.

If you haven't tried running uid2 locally End-to-end with multiple services, try to follow the instruction the Option D here. As you are going to add client side keypair data into operator soon, the E2E setup will be very helpful to do testing

Looks ok to me thanks! Please resolve the branch conflicts but don't merge it to master yet. Still need the keypair change merged into admin and deployed first before we can merge to master for core here.
If there's a bit of waiting. i would suggest to rename the branch cstg so we have cstg branches for each of admin/operator/core. and we can keep them there until we are ok to merge all of these to master.


Add showNull to Recordset Directive Config

To differentiate between empty string and null value. It is only used by scalar faceting for now.

@jrchudy I couldn't find any test cases for the modal. If we're going to add those test cases in the round 2, testing this feature would belong there.

I see what you are talking about. I wrote an it in ind-facet.spec.js that opens the modal and verifies the selected row count and then selecting another one and returning form there. I did not verify all of the contents of the rows displayed in that modal (where I was thinking we could test this feature).


MSID: 89506 Version: 1 DOI: 10.1101/2<IP_ADDRESS>7028

MSID: 89506
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>7028
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=89506
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>7028

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/89506v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>7028
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/89506/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

RE is missing affiliation

@acollings, please could you assist with adding this info in eJP? I'm assuming they were a guest editor.

Yep, done, @fred-atherden!

Thanks Andy!
@rkcook312 looks like we're in business:

Can I leave this with you to publish? Thanks

Thanks @fred-atherden and @acollings, will do!


Weight meter

Fixed merge conflicts with master, and added added thread_local to weight meter

replaced by #478


Update Edit Data column formatter to match Table formatter

Changes the table formatter to match that of the current table formatter (prevents HTML injection and also handles newlines with unicode nextline).
This PR fixes #20881

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
8 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.01%) to 42.017%

Files with Coverage Reduction
New Missed Lines
%

extensions/sql-bindings/src/common/azureFunctionsUtils.ts
1
80.65%

extensions/machine-learning/src/common/processService.ts
3
77.78%

extensions/notebook/src/jupyter/serverInstance.ts
4
75.5%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
28664

Relevant Lines:
63353

💛  - Coveralls

please always include screenshots in PR description to show the differences before and after your changes.

Nevermind, this isn't the fix, it was able to be repro after a couple of tries.

The issue does not appear to be related to the EditDataGridPanel directly, but it appears to be an issue with the queryRunner during the ResultSetUpdate event, this does not happen while any part of the code of EditDataGridPanel is paused, meaning that either there must be a special way that ADS must send the HTML code that I'm not aware of, or there is an issue with STS or whatever is running the query to execute the HTML code, either way this will require more investigation.


Sub windows

Microsoft PowerToys version
0.53.0
Running as admin

[X] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
From last two versions update, I could not place the sub windows of the main program (3ds max) to zones
✔ Expected Behavior
Could you correct this problem?
❌ Actual Behavior
Now I’m not using this feature, but I need it
Other Software
No response

This also applies to Visual Studio (2019 & 2022) floating tool windows.
I use it to put the Error and Search Result window on another monitor and use Fancy Zones to get it in the right place.  This no longer works (not sure which recent update broke it).

Duplicate of #15426

Thanks for reporting this. This issue is a duplicate.
I'm linking this issue to #15426 to centralize the discussion thread for tracking.
Thanks for your help to make PowerToys a better piece of software!


HasBlackBoxResource doesn't work with absolute paths

Type of issue: bug report | feature request
If the current behavior is a bug, please provide the steps to reproduce the problem:
Do something like:
class MyBlackBox extends BlackBox with HasBlackBoxResource {
 ...
 setResource("/absolute/path/to/resource.v")

}

You'll get
Caused by: java.io.FileNotFoundException: Resource '/absolute/path/to/resource.v'

even though the file exists.

If possible, please directly provide the FIRRTL file or a relevant fragment if the file is large
What is the current behavior?
java.io.FileNotFoundException
What is the expected behavior?

The file should get copied in as if it were a relative path.

Please tell us about your environment:

What is the use case for changing the behavior?
Makes HasBlackBoxResource more useful
Impact: API addition (no impact on existing code)
Development Phase: request
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. Stack Overflow, gitter, etc)
I'm working on a fix

I believe this is resolved by https://github.com/freechipsproject/firrtl/pull/903

Oh this is Chisel, should be closed by https://github.com/freechipsproject/chisel3/pull/903

What a coincidence that those PRs have the same number


[BUG] Upgrading core pdk code results in reverting back to the original versions.

Describe the bug
Attempting to upgrade pdk, pdk dependencies and projen roles back to previous versions.
Expected Behavior
aws/pdk should be upgraded to latest and projen should be upgraded to latest.
Current Behavior
Relevant bits of the upgrade logs included from reproduction steps below.

@aws/pdk goes from 0.23.35 to 0.23.38 then back to 0.23.35

><EMAIL_ADDRESS>upgrade UpgradeDemo
> pnpm exec projen upgrade

👾 upgrade | pnpm dlx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev,peer,prod,optional --filter=eslint-config-prettier,eslint-import-resolver-typescript,eslint-plugin-import,eslint-plugin-prettier,npm-check-updates,prettier,ts-node,typescript,@aws-cdk/aws-cognito-identitypool-alpha,aws-cdk-lib,cdk-nag
Progress: removed
Using pnpm
Upgrading UpgradeDemo/package.json
[====================] 11/11 100%
[====================] 3/3 100%

 aws-cdk-lib         2.137.0  →   2.142.1
 cdk-nag             2.28.92  →  2.28.119
 npm-check-updates  16.14.18  →  16.14.20

Run pnpm install to install new versions.
👾 upgrade | pnpm i --no-frozen-lockfile
Scope: all 3 workspace projects
Progress: removed

dependencies:
- aws-cdk-lib 2.137.0
+ aws-cdk-lib 2.142.1
- cdk-nag 2.28.92
+ cdk-nag 2.28.119

devDependencies:
- npm-check-updates 16.14.18
+ npm-check-updates 16.14.20

Done in 4.7s
👾 upgrade | pnpm update @aws/pdk @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser constructs eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-prettier eslint npm-check-updates nx prettier projen syncpack ts-node typescript @aws-cdk/aws-cognito-identitypool-alpha aws-cdk-lib cdk-nag
Progress: removed

dependencies:
- @aws-cdk/aws-cognito-identitypool-alpha 2.134.0-alpha.0
+ @aws-cdk/aws-cognito-identitypool-alpha 2.142.1-alpha.0

devDependencies:
- @aws/pdk 0.23.35
+ @aws/pdk 0.23.38
- @types/node 18.19.26
+ @types/node 18.19.33 (20.12.12 is available)
- syncpack 12.3.0
+ syncpack 12.3.2

Done in 2.2s
👾 upgrade | pnpm exec projen
👾 default | ts-node --project tsconfig.dev.json .projenrc.ts
👾 Installing dependencies...
👾 install | pnpm i --no-frozen-lockfile
Scope: all 3 workspace projects
Progress: removed

devDependencies:
- @aws/pdk 0.23.38
+ @aws/pdk 0.23.35 (0.23.38 is available)

Done in 4.4s

projen goes from 0.79.24 to 0.81.15 back to 0.79.27

><EMAIL_ADDRESS>upgrade-deps UpgradeDemo
> pnpm exec projen upgrade-deps

👾 upgrade-deps | pnpm exec nx run-many --target=upgrade --output-style=stream --nx-bail --projects=@demo/api,@demo/api-model

 >  NX   The following projects do not have a configuration for any of the provided targets ("upgrade")

   - @demo/api
   - @demo/api-model

 >  NX   No projects with target upgrade for 0 projects were run

 >  NX   Successfully ran target upgrade for 0 projects

👾 upgrade-deps | pnpm exec npm-check-updates --deep --rejectVersion 0.0.0 -u --dep prod,dev,peer,optional,bundle --target=minor
Using pnpm
Upgrading UpgradeDemo/package.json
[====================] 20/20 100%

 constructs   ^10.0.0  →   ^10.3.0
 projen      ^0.79.24  →  ^0.81.15
Upgrading UpgradeDemo/packages/api/generated/infrastructure/typescript/package.json
[====================] 8/8 100%

 @aws/pdk     ^0.23.35  →   ^0.23.38
 aws-cdk-lib  ^2.137.0  →   ^2.142.1
 cdk-nag      ^2.28.92  →  ^2.28.119
 projen       ^0.79.24  →   ^0.81.15
Upgrading UpgradeDemo/packages/api/generated/runtime/typescript/package.json
[====================] 8/8 100%

 constructs   ^10.0.0  →   ^10.3.0
 projen      ^0.79.24  →  ^0.81.15

Run pnpm install to install new versions.
👾 upgrade-deps | pnpm exec syncpack fix-mismatches
= Default Version Group ========================================================
    18 ✓ already valid
    30 ✓ fixed
✓ package.json
✓ packages/api/generated/infrastructure/typescript/package.json
✓ packages/api/generated/runtime/typescript/package.json
👾 upgrade-deps | rm pnpm-lock.yaml
👾 upgrade-deps | pnpm i
Scope: all 3 workspace projects
 WARN  5 deprecated subdependencies found<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Packages: +4 -25
++++-------------------------
Progress: resolved 637, reused 629, downloaded 0, added 0, done

devDependencies:
- @aws/pdk 0.23.35
+ @aws/pdk 0.23.38
- projen 0.79.27
+ projen 0.81.15

 WARN  Issues with peer dependencies found
.
└─┬ @aws/pdk 0.23.38
  └── ✕ unmet peer<EMAIL_ADDRESS>found 0.81.15

packages/api/generated/infrastructure/typescript
└─┬ @aws/pdk 0.23.38
  └── ✕ unmet peer<EMAIL_ADDRESS>found 0.81.15

Done in 6s
👾 upgrade-deps | pnpm exec projen
👾 default | ts-node --project tsconfig.dev.json .projenrc.ts
👾 Installing dependencies...
👾 install | pnpm i --no-frozen-lockfile
Scope: all 3 workspace projects
 WARN  5 deprecated subdependencies found<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Packages: +3 -2
+++--
Progress: resolved 637, reused 629, downloaded 0, added 0, done

devDependencies:
- projen 0.81.15
+ projen 0.79.27 (0.81.15 is available)

Done in 3.7s

Re-synthing projen seems irrelevant, dependencies are not updated.

Reproduction Steps
Using these versions: @aws/pdk 0.23.35 & projen 0.79.24
Running the following steps does not upgrade pdk/projen:

pnpm run upgrade
pnpm upgrade-deps
pnpm default

Possible Solution
No response
Additional Information/Context
A demo repo has been setup, hopefully it behaves the same in other environments:
https://github.com/raurir/projen-pdk-upgrade-issue/
PDK version used
0.23.35
What languages are you seeing this issue on?
Typescript
Environment details (OS name and version, etc.)
Macos 14.4

@agdimech Are you having the same issue in #710 ?

Hi - sorry for the delayed response.
The reason this is happening is because we actual pin the projen version as per: https://github.com/aws/aws-pdk/blob/6fc5ca16bb87fb00d61f25844ce2463c1c90980f/packages/monorepo/src/components/projen-dependency.ts#L4
So what is happening is the following:
1.) npm-check-updates runs and bumps everything to the latest version (projen is 0.82.6 as of today)
2.) syncpack ensures all subprojects use this version
3.) a synthesis occurs which picks up the default projen version which is currently pinned to ^0.79.24
To resolve this, you will need to do pin the projen version within your .projenrc as follows:
Option A: Pinned Version
const monorepo = new MonorepoTsProject({
  name: "@demo/monorepo",
  defaultReleaseBranch: "main",
  packageManager: NodePackageManager.PNPM,
  projenVersion: "^0.82.6",
  tsconfig: {
    compilerOptions: {
      lib: ["es2019", "dom"],
      skipLibCheck: true,
    },
  },
});

Option B: Latest Resolved Version
Note: this will result in the projen version being bumped each time you run a synth.
const monorepo = new MonorepoTsProject({
  name: "@demo/monorepo",
  defaultReleaseBranch: "main",
  packageManager: NodePackageManager.PNPM,
  projenVersion: "*",
  tsconfig: {
    compilerOptions: {
      lib: ["es2019", "dom"],
      skipLibCheck: true,
    },
  },
});

Let me know if this resolves your issue and again apologies for the delay (I was on vacation and then quite sick :( )

@agdimech Thank you!
Very Close... the dependencies updated, and almost everything builds.
Unfortunately the latest CloudscapeReactTsWebsiteProject is causing this error when building the website:
Attempted import error: 'getLogicalBoundingClientRect' is not exported from '@cloudscape-design/component-toolkit/internal' (imported as 'getLogicalBoundingClientRect').

I have logged a bug here which hopefully resolves it: https://github.com/cloudscape-design/component-toolkit/issues/66
In my demo repo I did not add a CloudscapeReactTsWebsiteProject to keep things simple :(


VPaned resize issue with description/category view

Issue occurs if trying to resize over the category view with the description view

Unable to reliably reproduce issue will look into further


Add initial governance guidelines

Summary

Describe your changes.

Per https://github.com/cncf/sandbox/issues/135, including governance guidelines.

Looks good, but how do we register emeritus contributors.

Looks good, but how do we register emeritus contributors.

By adding them to here: https://github.com/cartography-cncf/cartography/blob/master/MAINTAINERS.md#emeritus-maintainers
Think I should make that explicit in the doc or nah?

@achantavy I think so, or add a link.


if size of dataframe and numpy are too big, it cant be visualized

if size of dataframe and numpy are too big, it cant be visualized.

i can view news2,
but not news

can you open chrome dev tools and post the error that shows when you try to view the dataframe?

can you open chrome dev tools and post the error that shows when you try to view the dataframe?

ah this seems to be a very similar issue to #86
I'm guessing somewhere in your news dataframe you have some values that have a ' character?

ah this seems to be a very similar issue to #86
I'm guessing somewhere in your news dataframe you have some values that have a ' character?

thanks
i use replace all' and "
then
it can be visualized now
df['column_name'] = fd['column_name'].astype(str).str.replace("'", ' ').str.replace('"', ' ')