make network compile using Box

One of the two or both need to be boxed to fix these errors:
   Compiling azure_mgmt_network v0.1.0 (/Users/cameron/rs/azure-sdk-for-rust/services/mgmt/network)
error[E0072]: recursive type `IpConfigurationPropertiesFormat` has infinite size
    --> services/mgmt/network/src/package_2020_06/models.rs:1503:1
     |
1503 | pub struct IpConfigurationPropertiesFormat {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
...
1511 |     pub public_ip_address: Option<PublicIpAddress>,
     |                            ----------------------- recursive without indirection
     |
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `IpConfigurationPropertiesFormat` representable
     |
1511 |     pub public_ip_address: Box<Option<PublicIpAddress>>,
     |                            ^^^^                       ^

error[E0072]: recursive type `IpConfiguration` has infinite size
    --> services/mgmt/network/src/package_2020_06/models.rs:1516:1
     |
1516 | pub struct IpConfiguration {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
...
1520 |     pub properties: Option<IpConfigurationPropertiesFormat>,
     |                     --------------------------------------- recursive without indirection
     |
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `IpConfiguration` representable
     |
1520 |     pub properties: Box<Option<IpConfigurationPropertiesFormat>>,
     |                     ^^^^                                       ^

error[E0072]: recursive type `PublicIpAddressPropertiesFormat` has infinite size
    --> services/mgmt/network/src/package_2020_06/models.rs:5239:1
     |
5239 | pub struct PublicIpAddressPropertiesFormat {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
...
5245 |     pub ip_configuration: Option<IpConfiguration>,
     |                           ----------------------- recursive without indirection
     |
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `PublicIpAddressPropertiesFormat` representable
     |
5245 |     pub ip_configuration: Box<Option<IpConfiguration>>,
     |                           ^^^^                       ^

error[E0072]: recursive type `models::PublicIpAddress` has infinite size
    --> services/mgmt/network/src/package_2020_06/models.rs:5264:1
     |
5264 | pub struct PublicIpAddress {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
...
5270 |     pub properties: Option<PublicIpAddressPropertiesFormat>,
     |                     --------------------------------------- recursive without indirection
     |
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `models::PublicIpAddress` representable
     |
5270 |     pub properties: Box<Option<PublicIpAddressPropertiesFormat>>,
     |                     ^^^^                                       ^

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0072`.
error: could not compile `azure_mgmt_network`

To use the network_fixed branch, these would be the dependencies:
[dependencies]
azure_mgmt_network = { branch = "network_fixed", git = "https://github.com/ctaggart/azure-sdk-for-rust" }
azure_identity = { branch = "network_fixed", git = "https://github.com/ctaggart/azure-sdk-for-rust" }
tokio = { version = "*", features = ["macros"] }
reqwest = { version = "*", features = ["json"] }

@bmc-msft, it will be in master once https://github.com/Azure/azure-sdk-for-rust/pull/76 is merged.


doc: improve karmada integration

What type of PR is this?
/kind documentation
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/lgtm


Travis-ci builds do not run

https://travis-ci.org/RobotGame/rgkit - first and last build was 3 months ago, and there were no builds for recent pull requests.

Yeah, I noticed the same thing yesterday. Not sure why it isn't running (where are the logs?) or where to change it. Maybe it's something only @WhiteHalmos can do?

Looking into this.

Seems to be running for now... will reopen if otherwise.


Hide menu bar on linux?

I use Archlinux with awesome wm with gnome and want to hide the menu bar.
Can this be done via a simple shortcut?

This is already merged, but not included in a packaged release. Build from source to get this feature.

To clarify what @idle-zealot said, #68 fixes this. It hides the menu bar by default, and you can press the alt key to show it. It will be included in the next (1.2.0) release.


Start-DbaAgentJob Verbose shoe round 2

Type of Change

[X] Bug fix (non-breaking change)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose

Code update to fix step count and retry when using Start-DbaAgentJob and -Verbose
Approach

Uses $variables in loop, instead of $($blah.something), which had wrong syntax on the .Count one anyway.
Commands to test

Start-DbaAgentJob ... -Wait -WaitPeriod xx -Verbose

bon, merci! 💯


R^2 / coefficient of multiple correlation

Would also be nice for this to be implemented.

I hadn't implemented this yet because I think a generalized R^2 for an arbitrary GLM involves some subtleties, but users doing simple OLS (i.e. Linear) regression will expect this. The residual sum of squares might also be nice for OLS. I think I should be able to specialize these for the Linear case for now.

Yes even just implementing it for Linear would be fantastic. That's all I'm doing at the moment.

Implemented r_sq() and residual_sum_sq() for linear fits in 65402d3. Feel free to test it out on the 0.0.10 branch and send back any more comments.

Great, will do!

This looks like it's working brilliantly! It even fixed a bug I was having due to my wrong calculation of degrees of freedom.
Incidentally, looking at the code I can maybe see some merit to say caching the residuals since it's recalculated by so many other functions (dispersion, pearson residuals etc).

I'll move discussion of caching in general to #25 and close this issue.
Thanks for all your help in identifying pain points!


Replace WidgetDataAttribute

If it's reasonable to replace the attribute with a static properties inside widgets.

 public interface IWidget
 {
     static int Index { get; }
 }

public class MyWidget : IWidget
{
public static Index => 1;
}

The attribute is good, because it not require instance of the object, but static properties requires exact class to be invoked

See whether instance or static fields are more useful for the project, the attribute can remain along with properties. To avoid repeating value a constant can be used.


Implement dynamic skin mirroring

Allows for NPCs to mirror the skin of the player that the packet is being sent to. This probably could've been added to the skin command, but this way was more straight forward.
I've only tested this against 1.20.1 and an online mode server.

Does the creator intend to add this change? or why has this pr been open for so long?

Does the creator intend to add this change? or why has this pr been open for so long?

The conflicts were likely preventing it from being accepted as this PR is quite old. Ended up resolving those along with making the PR support 1.20.2/1.20.4.
I had to add in a username verification check as however many months ago, I ran into an issue with geyser players getting kicked or something similar.


uninstall and force uninstall script

uninstall and force uninstall script
For ticket: https://github.ibm.com/ibmprivatecloud/roadmap/issues/58490
Base on https://github.ibm.com/IBMPrivateCloud/cs-dev-tools/blob/master/install/cp3pt0-install/uninstall_tenant.sh
Usage
Options:
   --oc string                    File path to oc CLI. Default uses oc in your PATH
   --operator-namespace string    Required. Namespace to install Foundational services operator
   -f                             Enable force delete
   -h, --help                     Print usage information

How to test:
install CP3 and run ./uninstall_tenant.sh --operator-namespace ibm-common-services -f
After running this script, all the resources in/and the target namespaces should be removed.
It should clean all the namespaces in the namespace-scope configmap.
It will keep control namespace/ cert-manager namespace/ licensing namespace untouched.
(If you want, you can run ./uninstall_tenant.sh --operator-namespace cs-control -f and it will cleanup the control namespace)
Current issues
I tried it with in-place upgrade and isolate upgrade. It looks good to me. But it cannot handle other cluster scope resources.I think we need to add them manually.

I think we can merge it for now since Zen team needs some time to incorporate it into olm-utils.
For cluster scope resources, we can add an enhancement for this script or a separate script for that.

I have a feeling zen will be asking to include the cluster scope resources as well, namely the webhook resources as they've been creating a lot of errors recently. We could add it in now and create the enhancement ticket, it just seems likely to me that they will hit a problem with webhooks not allowing changes to resources and ask us why

Not sure how I missed that webhook cleanup, and yeah, we'll have to have them manually cleanup the common service maps after running the script. A possible enhancement could be doing it in the script later on

uninstalled a couple tenants and discussed changes with Allen, I think this looks good

/lgtm


Add errai.bus.web_socket_max_frame_size property

Required to expand the default websocket frame size.
Pretty simple change, please let me know if there is a better implementation.
Thanks!

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

Merged. Thanks, @BenDol!


⚠ Bofrost.es has degraded performance

In 76700f6, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1659 ms

Resolved: Bofrost.es performance has improved in 491d850 after 6 minutes.


Make sure os_get_current_time_us wraps as 32bit boundary

Extend the timer used to 64bit by keeping track of when it wraps
Background
When kernel is running at tick rate different from 1000 ticks per seconds:

tick_to_ms will not wrap at 32 bit boundary
tick_to_ms will degrade to 1 second accuracy when tick is larger than UINT32_MAX / 1000

This lead to issues when os_get_current_time_us is used as a periodic timing manager as in the following example:
uint32_t diff = os_get_current_time_us() - start;
if (diff > delay)
   do_something()

This is welled formed if os_get_current_time_us() always wraps around at 32bit max boundary, but lead to unexpected behaviour otherwise.

FreeRTOS port suffers equal problems.


Build status should include link to the CI system for easier access of error information

This way on GitHub, there is a Details button that goes straight to the build output. This will require us to add some kind of system to allow the setting of a CI host URL or similar I think

This is actually more involved because it exposes a problem with our authorization. Still digging in.

This is complete for now, from what I see 👍 Nice!


batch

Either entry or master can be an object of {id: bracket, id2: bracket2} and the scorer will only validate what is necessary and then output an object of scores by id.

Closed by v2.2.0


changes to the docs

This PR consists of the following changes:

Deletes the stale docs.
Updates the generate.py
Updates the README.md to help people generate the docs automatically.

@annirudh could you review and merge please

@ariG23498 it looks like this needs to merge master, could you please pull that in and fix any conflicts, then merge in

Merged on behalf of Aritra because he doesn't have merge privileges

Beautiful!


Can't install this plugin in Android Studio

The plugin depends on two other plugins: NodeJS and JavaScript. The JetBrains repository upload page indicates that this makes it incompatible with Android Studio.
A large part of the plugin deals with Relay.QL JavaScript/TypeScript string templates. Were you looking for "just" the .graphql query editor?

It would be great to have just the graphql query editing in a separate plugin that doesn't need the node.js/javascript plugins and could be installed in android studio, etc.

Yes I am looking for just graphql syntax highlighter/validator. I had this (https://plugins.jetbrains.com/plugin/8038?pr=androidstudio) plugin but the guy stopped development on it and is pointing to your repo.

Okay. I'll investigate whether this is feasible.
Out of curiosity, are you using GraphQL to provide native Android components with JSON data? I was expecting GraphQL development on Android to be on ice until Relay gets support for React Native.

I've just added an experimental version of the plugin to the android-studio branch at https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/tree/android-studio
Can you guys take it for a spin and let me know if there's any issues.

Seems to work well for me so far, thanks for adding this!

Working fine for me as well. Good job. Thanks

I've updated README.md in master, so I'm going to close this for now.
This is definitely an area that could use additional contributors since I don't develop for Android.

Now I am getting this error while installing and I don't remember how I solved it last time. Any help please?

@mwajeeh The android studio version is not published to the JetBrains plugin repository. You have to download and install it manually from https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/tree/android-studio#faq

@jimkyndemeyer I am able to install it manually but after its installed it gets disabled and I get above mentioned error which is "Plugin JS GraphQL depends on unknown plugins NodeJS, JavaScript".

@mwajeeh The version for android doesn't depend on those plugins. I looks like Android Studio may have gotten confused after having the JS/node version of the plugin installed.
Here are the steps that I just followed with Android Studio 1.5.1 to install the plugin successfully:

Uninstall the plugin completely
Restart and verify the plugin is no longer present
"Install plugin from disk" using the jar downloaded from https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/raw/android-studio/android-studio/0.1.0/js-graphql-intellij-plugin.jar
Verify that the plugin appears as follows, with the "- Android Studion" postfix in its title:

Let me know if that works for you.
/Jim

It worked, thank you so much.


Validation fixes

Category

[x ] validation fixes

Docs Build status updates of commit bc2080d:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/scenario-guidance/Enterprise-Content-Management.md
:warning:Warning
View
Details

docs/scenario-guidance/Application-lifecycle-management.md
:white_check_mark:Succeeded
View

docs/scenario-guidance/Enterprise-Content-Management.md

Line 2, Column 1: [Warning: ms-prod-and-service - See documentation] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 11, Column 14: [Suggestion: duplicate-descriptions - See documentation] Attribute 'description' with value 'Last modified: March 09, 2015' is duplicated in 'scenario-guidance/Enterprise-Content-Management.md(11,14)', 'schema/_authschemename-element-formsauthcredentials-complextypesps15xsdsearchset2.md(10,14)', 'schema/_authsubmissionmethod-element-formsauthcredentials-complextypesps15xsdsearchset2.md(10,14)', 'schema/_authsubmissionpath-element-formsauthcredentials-complextypesps15xsdsearchset2.md(10,14)', 'schema/_cookies-element-cookieauthdata-complextypesps15xsdsearchset2.md(10,14)'....

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

Docs Build status updates of commit 8186301:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/scenario-guidance/Enterprise-Content-Management.md
:warning:Warning
View
Details

docs/scenario-guidance/Application-lifecycle-management.md
:white_check_mark:Succeeded
View

docs/scenario-guidance/Enterprise-Content-Management.md

Line 2, Column 1: [Warning: ms-prod-and-service - See documentation] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.

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

Global effort to fix build validation errors
@VesaJuvonen
The Content & Learning team is fixing build validation errors on docs.microsoft.com for the rest of H2. This will eliminate potential accessibility, security, and usability issues. This PR includes only build validation fixes and does not change other content. Please review within five business days and merge or comment in the PR with any changes you'd like to see. Thank you!


fix broken links

Description
The links in the code of conduct file in Portuguese were broken because the relative path was wrong. So I fixed it.

@dkundel done!


The complete state of the robot is not yet known.  Missing r_gripper_l_finger_joint

doesn't work for baxter with vacuum gripper on right side

Works after replacing urdf and baxter_moveit_config folders sent from B. Stracener  and making relevant changes if left/right is vacuum gripper:

I searched for 'pneumatic', so I just changed the files:
planning_context.launch
left_end_effector.urdf.xacro
right_end_effector.urdf.xacro


Add debug.cr shard

Adds debug.cr shard to the Tools section - btw, what do you think about creating new section titled Debugging?

@veelenga done!

Ready to merge?

Not yet, cause it does not match the guidelines yet: https://github.com/veelenga/awesome-crystal/blob/master/.github/CONTRIBUTING.md

@veelenga oh, it's about this 30 days rule? I understand the reasoning behind it, yet IMO it's too unflexible and artificial - I've seen projects years old which were far from being actively-maintained, mature or finished and days-old which are complete and mature enough to already use them. Basis for debug.cr is code from my another shard gphoto2.cr, which exists in the codebase for 2+ yrs for instance.

Please be free to propose a more flexible way to filter out "one-day" projects (i.e. created, submitted and abondoned). For now, I would prefer to stick to the current approach.

I'd just stick to the quality-based rules instead of time-based - if all of them would be satisfied than time-based constraints wouldn't matter that much - say, having a working, well-tested and functional shard which is week old should be enough for inclusion - OTOH half-baked, lacking specs, shard which is 3 months old shouldn't be considered as a candidate.

Well, we do exactly the same: quality rules first, then 1 month of time for maturity. The difference in what you say is to wait 1 week instead?

I'd just skip the time-based requirement and focus moar on the quality side :)

Thanks, I appreciate it!
re:

Also, please be sure to add periodical builds to your shard :)

They're already set up, it's a part of my standard workflow with Travis CI :)


fix a DragTarget type cast bug

Description
This patch fixes the following cases:
1, DragTarget<Object> should accept Draggable<int> data
2, DragTarget<int> should accept Draggable<Object> data when the data runtime type is int
Related Issues
Fixes #72483
Tests
I added the following tests:
See files.

@shihaohong Hi
Could you help me figure out what causes the web_test to fail?
It seems to relate the dart to js that I am not good at.

For web:
The int(1) will treat as double, so if ((avatar.data == null || avatar.data is T) cause _DragTargetState<Double> accept Draggable<int>

Thanks for looking into the web edge case, sorry I couldn't get back to you before you figured it out!

That is fine. ：）
Wish you guys have a wonderful holiday.


Validated_data has OrderedDict instead of EmbeddedDocument object

I just updated django-rest-framework-mongoengine to v3.3.1.
I am using DocumentSerializer with ModelViewSet. Earlier, the validated_data had embedded documents object but now all the embedded documents are OrderedDict.

@ShipraShalini
Hi, Shipra!
Yes, this isn't a bug, this is an intentional change of the implementation of DocumentSerializer.to_internal_value() to keep validated_data an OrderedDict and not clutter it with EmbeddedDocuments. Now each EmbeddedDocumentSerializer also receives _validated_data attribute with sub-json and walks through it. Sorry that it breaks your code.

@BurkovBA My whole project is based around django-rest-framework-mongoengine 3.3.0, is there any way I can get the object like behaviour from embedded documents?

@ShipraShalini
Sorry, what do you mean by "object like behaviour"?

@BurkovBA I am getting

Invalid embedded document instance provided to an EmbeddedDocumentField

after changing the code to use Dict keys instead of attribute.

@ShipraShalini
Hm, I use MapFields in my current project and they work fine. Can you supply the code, where you observed the error?

Sure.
This is the function that I use to update mapfields.
def update_mapfield(instance, validated_data, field):
    """
    updates mongoengine MapField by iterarting over keys
    :param instance: instance to be modified (document)
    :param validated_data: dict with new data
    :param field: field to be updated
    :return: None
    """
    for key, value in validated_data.items():
        for k, v in value.items():
            if k in value:   # for making sure that the already set field doesn't get overwritten with null
                try:
                    if isinstance(instance[field][key][k], list):
                        # update_set updates the list field instead of overwriting it
                        instance[field][key][k] = update_set(instance[field][key][k], validated_data[key][k])
                    else:
                        instance[field][key][k] = validated_data[key][k]
                except KeyError:
                    instance[field].update({key: value})
    instance.save()

@ShipraShalini
Wow, that's a lot of code. This should be simpler. :)
So, you have a MapField of EmbeddedDocuments like this:
class Song(EmbeddedDocument):
    title = fields.StringField()
    context = fields.FileField()

class Album(EmbeddedDocument):
    date = fields.DateTimeField()
    songs = fields.EmbeddedDocumentListField(Song)

class RockBand(Document):
    albums = fields.MapField(fields.EmbeddedDocumentField(Album))

and your validated_data looks like this:
{
    "Queen": {
        "Night in the Opera": {
            "date": "11-21-1975"
            "songs": [
                {
                    "title": "Bohemian Rhapsody",
                    "content": <urlencoded content>
                }
            ]
        }
    }
}

Is your field a DocumentSerializer field or a Document field? It should be Document field, right?
Now, in my example key=Night in the Opera, k="date", "songs" etc., so validated_data[key][k] is "11-21-1975" or [{"title": "Bohemian Rhapsody", "content": <urlencoded content>}]. The latter is not a valid EmbeddedDocumentListField - it's just a python list that needs to be converted to EmbeddedDocumentListField.
Same is true for any EmbeddedDocument you have - validated_data[key][k] is a dict, not EmbeddedDocument.
Also, I don't know, what is update_set() function, you're using.

@ShipraShalini
I believe, the whole idea of letting validated_data contain Mongoengine objects was a design error of DRF-Mongoengine 3.3.0.
I also think that you're manually doing what DRF-ME does for you automatically. I'm not sure about PATCH request and partial updates (there's an experimental patching.py module in contrib, responsible for that), but PUT request handles full updates of your MapFields well.

@BurkovBA
update_set simply updates the ListField so that its elements are unique.
def update_set(array, element):
    """
    adds element to array if not already present
    :param array: array in which element has to be added
    :param element: element to be added
    :return: updated array
    """
    # gives error if I try to put the next three statements in one.
    arr = set(array)
    arr.update(element)
    return list(arr)

Modifying the mentioned example to be closer to my implementaion
class Album(EmbeddedDocument):
    date = fields.DateTimeField()
    songs = fields.ListField(StringField())

class RockBand(Document):
    albums = fields.MapField(fields.EmbeddedDocumentField(Album))

Here validated_data[field][key][k] is a date or list.
I wrote this code as DRF-ME 3.3.0 was overwriting the ListField and the Mapfield.
This is a simpler version of the code but i have to update a few fields, let's say based on conditions.
Is there anyway, i can fix this?

@ShipraShalini
No, you couldn't have assigned a dict to the instance before - I believe, you were assigning EmbeddedDocument to EmbeddedDocument field. :)
Ok, may be you can just modify my code from recursive_save() and update() functions to have your task solved?

@BurkovBA
I updated the update_mapfield function to fix it.
def update_mapfield(instance, validated_data, field, embedded_doc):
    """
    updates mongoengine MapField by iterarting over keys
    :param instance: instance to be modified (document)
    :param validated_data: dict with new data
    :param field: field to be updated
    :param embedded_doc: embedded document class
    :return: None
    """
    for key, value in validated_data[field].items():
        for k, v in value.items():
            if k in value:   # for making sure that the already set field doesn't get overwritten with null
                try:
                    if isinstance(instance[field][key][k], list):
                        # update_set updates the list field instead of overwriting it
                        instance[field][key][k] = update_set(instance[field][key][k], validated_data[field][key][k])
                    else:
                        instance[field][key][k] = validated_data[field][key][k]
                   instance[field][key][k] = embedded_doc(validated_data[field][key][k])
                except KeyError:
                    instance[field].update({key: embedded_doc(**value)})
    instance.save()

Thanks a lot for your help. Closing the issue.


Move API Server import

Moving API Server import to a location where we only import it when it is needed.

This has already been fixed by @jleaniz


site_cache_dir: use /var/tmp instead of /var/cache on unix

Turns out /var/cache might be non-writable by regular users (e.g. on ubuntu), so we are better off using /var/tmp which is and it is what was suggested in original appdirs discussion in https://github.com/ActiveState/appdirs/issues/77
site_cache_dir was introduced very recently and it seems fine to make this breaking change right now.
Related https://github.com/platformdirs/platformdirs/pull/145

Hmm, this change somehow seems counter-intuitive.
Also, check what the FHS says about this (5.5 and 5.15):
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05.html
Especially that stuff in /var/tmp is deleted "less frequently", but in a site-specific manner seems to make it unsuitable for application cache files.
Maybe the only thing that caused the initial issue (see top post) with /var/cache is that the package installation would need to create a subdirectory there with suitable permissions?

@ThomasWaldmann The application was not installed by root, but user-installed applications want to share expensive cache between users as well. In practical terms it seems systemd will delete files that weren't even read by anyone in /var/tmp once a month https://systemd.io/TEMPORARY_DIRECTORIES , which could be considered a free cache expiration policy 😄
I agree that /var/cache seems more suitable on paper, hence why I implemented it like that initially. But app-specific and site-specific don't seem mutually exclusive to me, as it is normal that the site has its own cache policy (e.g. when running low on space). I totally get that this is stretching /var/tmp a bit. Maybe what we need here is site_tmp_dir with persistent(or some other name) option to switch from /tmp to /var/tmp? Wdyt?

/var/tmp is an insecure location to store anything with a predictable filename, because any other user could have written it first. This leads to vulnerabilities categorized under CWE-377 and CAPEC-149.
This breaking change in platformdirs’ behavior is especially dangerous because it will have introduced these vulnerabilities into applications that were previously secure!
@ThomasWaldmann is correct that applications should put their own cache data in a subdirectory of /var/cache (e.g. /var/cache/cups), and the application’s package is responsible for ensuring the subdirectory exists and giving it the correct permissions.
Please consider reverting this.

is correct that applications should put their own cache data in a subdirectory of /var/cache (e.g. /var/cache/cups), and the application’s package is responsible for ensuring the subdirectory exists and giving it the correct permissions.

Open a PR with this change. We do not plan to revert.

Opened #239.

This breaking change in platformdirs’ behavior is especially dangerous because it will have introduced these vulnerabilities into applications that were previously secure!

Just to be clear, site_cache_dir was introduced about a week before this PR, realistically I doubt anyone was using it during that period.


Incorrect date shown on Field Data tab, Field Reported Data table#STARWEST #USABILITY

Field Data Tab -> Field Reported Data table -> Entry Made field shows 6:15 PM entry date, actual time should be 11:15 AM Pacific Time

I believe this issue was intended for the Crisis Checkin project.


403 Forbidden after installing vessel

Description
I've used these steps: https://vessel.shippingdocker.com/docs/get-started/ to install vessel to a mock up Laravel project.
After installing it, I've started it and i went to localhost, but it just gives me 403.
This is the output of ./vessel logs app:
app_1    | /usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
app_1    |   'Supervisord is running as root and it is searching '
app_1    | 2019-09-23 16:50:59,659 CRIT Supervisor running as root (no user in config file)
app_1    | 2019-09-23 16:50:59,659 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
app_1    | 2019-09-23 16:50:59,668 INFO RPC interface 'supervisor' initialized
app_1    | 2019-09-23 16:50:59,668 CRIT Server 'unix_http_server' running without any HTTP authentication checking
app_1    | 2019-09-23 16:50:59,668 INFO supervisord started with pid 16
app_1    | 2019-09-23 16:51:00,672 INFO spawned: 'nginx' with pid 19
app_1    | 2019-09-23 16:51:00,676 INFO spawned: 'php-fpm' with pid 20
app_1    | [23-Sep-2019 16:51:00] NOTICE: fpm is running, pid 20
app_1    | [23-Sep-2019 16:51:00] NOTICE: ready to handle connections
app_1    | [23-Sep-2019 16:51:00] NOTICE: systemd monitor interval set to 10000ms
app_1    | 2019-09-23 16:51:01,725 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
app_1    | 2019-09-23 16:51:01,726 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
app_1    | 2019/09/23 16:53:02 [error] 21#21: *1 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:53:02 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:53:02 [error] 21#21: *1 open() "/var/www/html/public/favicon.ico" failed (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET /favicon.ico HTTP/1.1", host: "localhost"
app_1    | 2019/09/23 16:57:05 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:05 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:06 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:06 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:06 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:06 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:07 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:07 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:07 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:07 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:07 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:07 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | 2019/09/23 16:57:11 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:11 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"

OS
My OS is: Fedora 30
Docker
The output of docker version:
Client:
 Version:         1.13.1
 API version:     1.26
 Package version: docker-1.13.1-68.git47e2230.fc30.x86_64
 Go version:      go1.12.7
 Git commit:      47e2230/1.13.1
 Built:           Sat Aug 17 19:58:07 2019
 OS/Arch:         linux/amd64

Server:
 Version:         1.13.1
 API version:     1.26 (minimum version 1.12)
 Package version: docker-1.13.1-68.git47e2230.fc30.x86_64
 Go version:      go1.12.7
 Git commit:      47e2230/1.13.1
 Built:           Sat Aug 17 19:58:07 2019
 OS/Arch:         linux/amd64
 Experimental:    false

The output of docker-compose version:
app_1    | /usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
app_1    |   'Supervisord is running as root and it is searching '
app_1    | 2019-09-23 16:50:59,659 CRIT Supervisor running as root (no user in config file)
app_1    | 2019-09-23 16:50:59,659 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
app_1    | 2019-09-23 16:50:59,668 INFO RPC interface 'supervisor' initialized
app_1    | 2019-09-23 16:50:59,668 CRIT Server 'unix_http_server' running without any HTTP authentication checking
app_1    | 2019-09-23 16:50:59,668 INFO supervisord started with pid 16
app_1    | 2019-09-23 16:51:00,672 INFO spawned: 'nginx' with pid 19
app_1    | 2019-09-23 16:51:00,676 INFO spawned: 'php-fpm' with pid 20
app_1    | [23-Sep-2019 16:51:00] NOTICE: fpm is running, pid 20
app_1    | [23-Sep-2019 16:51:00] NOTICE: ready to handle connections
app_1    | [23-Sep-2019 16:51:00] NOTICE: systemd monitor interval set to 10000ms
app_1    | 2019-09-23 16:51:01,725 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
app_1    | 2019-09-23 16:51:01,726 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
app_1    | 2019/09/23 16:53:02 [error] 21#21: *1 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:53:02 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:53:02 [error] 21#21: *1 open() "/var/www/html/public/favicon.ico" failed (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET /favicon.ico HTTP/1.1", host: "localhost"
app_1    | 2019/09/23 16:57:05 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:05 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:06 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:06 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:06 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:06 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:07 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:07 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:07 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:07 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:07 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
app_1    | 2019/09/23 16:57:07 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | 2019/09/23 16:57:11 [error] 21#21: *2 "/var/www/html/public/index.php" is forbidden (13: Permission denied), client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", host: "localhost"
app_1    | <IP_ADDRESS> - - [23/Sep/2019:16:57:11 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
[vlado@vladolaptop FirstProject]$ docker-compose version
docker-compose version 1.22.0, build unknown
docker-py version: 3.7.2
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016

Hi!
Here are some questions to help figure that out.
This usually happens when the directory structure of your  issue isn't standard (isn't Laravel) or something went wrong with file sharing into the containers:

Is your project Laravel?
Does it have a public directory?
What is the result of these 2 commands?

./vessel exec app pwd
./vessel exec app ls -lah

(Number 3 assumes your containers are running - e.g. you've ran ./vessel start)
Since you're on Fedora, there could be other issues that I'm not aware of (SELinux?)

Yes it's Laravel (new fresh project created with laravel new FirstProject
Yes it does
Here's the code:[vlado@vladolaptop FirstProject]$ ./vessel exec app pwd
/var/www/html
[vlado@vladolaptop FirstProject]$ ./vessel exec app ls -lah
ls: cannot open directory '.': Permission denied

So this issue is/was related to permissions on Linux. The app contains has a user vessel and it attempts to change the UID of user vessel to the same user running ./vessel foo commands. This attempts to prevent cases where files are owned by user root (containers run as root by default`) but then are changed by a local linux user, resulting in errors like this.
Were you ever able to resolve this? I think the issue would be related to different owners of your linux user vs the code files. Potentially it's not correctly able to change the UID of user vessel inside of the container.


The problem of updating the library

Steps to reproduce
When I try to refresh the page, I get this error.

Expected behavior
.
Actual behavior
And page don't refreshed
Crash logs
.
Mihon version
0.17.0
Android version
Android 14
Device
Samsung Galaxy A16 5G
Other details
No response
Acknowledgements

[ ] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[ ] I have gone through the FAQ and troubleshooting guide.
[X] I have updated the app to version 0.17.0.
[ ] I have updated all installed extensions.
[ ] I will fill out all of the requested information in this form.

Not an app-related issue


Adds casks

This is still WIP and pending local and remote verification of the Casks.
Initial PR for all currently released 6.x.x versions of VirualBox
Added Cask(s)

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

Any other relevant environment information:
Running the generate-casks.sh and verify-casks.sh scripts is only possible if you have checked out operatehappy/homebrew-tools
TODO

[X] Checked open Pull Requests for a similar Cask update
[X] Built the Cask locally and verified its installability
[X] Tested installability using brew cask install<EMAIL_ADDRESS>[X] Tested uninstallability using brew cask uninstall<EMAIL_ADDRESS>[X] Audited the Cask using brew cask audit --download<EMAIL_ADDRESS>with no errors
[X] Style-checked the Cask using brew cask style --fix<EMAIL_ADDRESS>and reported no offenses

There is a code quality test failing

There is a code quality test failing

Yeah; that's because some files from https://github.com/operatehappy/homebrew-tools/pull/1 aren't merged yet and the code quality check actually checks those files out to validate the tools in this repository.
Once that PR is merged, this should start working a lot better :)

There is a code quality test failing

This has been resolved as the upstream PR has been merged, all checks are now passing.


Unable To Bulk Apply Tokens On Layers

Describe the bug
This feature worked in 1.37.9. Currently when multiple layers are selected and you apply a token, the plugin either applies it to a few layers or none at all. In addition to this, if you select multiple layers that already have the same token applied and try to bulk unapply tokens, it doesn't work.
Edit:
This error seems to be inconsistent. It looks like when you first try to bulk apply tokens on layers it does not work, and the it does a couple of minutes later.
To Reproduce
Steps to reproduce the behavior:

Select multiple layers
Apply a token
See error

Expected behavior
This should work as it did in 1.37.9, where one can bulk apply one token on multiple layers.
Screenshots or Screencasts
Trying to bulk unapply tokens
https://github.com/tokens-studio/figma-plugin/assets/93133012/867b42ac-b687-4167-a8ed-2922065c5baf
Trying to bulk apply tokens
https://github.com/tokens-studio/figma-plugin/assets/93133012/ae737508-bda4-44b1-a7ad-26576fcc4e04

Is there anything consistent that causes this? I'm able to bulk-apply just fine. Can you try and see if there's a pattern to when it's not working?
Was able to reproduce the unapply one though!

On the first instance I am able to bulk apply and then I am unable to bulk unapply (only on one layer the token gets unapplied). Trying to apply the token again on the selected items does not work anymore after that.

@esthercheran that's more or less the issue I've faced. It happens once then when I try to carry out the same steps again it does not work.

@six7 I've created a test file and left it in the ticket


about the dataset CVPR40 5-95HZ

"Hello, thank you very much for your excellent work. I encountered a problem while trying to reproduce the dataset CVPR40 5-95HZ. I experienced overfitting using the EEG feature extraction method from your article. Could you please explain how you extracted the EEG features for the 5-95Hz data?"

@qiuyuesong Thank you for reading our work.
For the 5-95 Hz dataset, we first trained an EEG encoder and image encoder in CLIP based setting where we took pre-trained Resnet50 and froze all the layers except the last layer, where we used a fully connected layer that projected the ResNet50 feature in EEG space. We train the complete method end-to-end for a certain number of epochs, whose ablation study you can find in our paper. After the training we performed, we computed the top-k accuracy.
We have just updated the EEGClip code in the repository. You can have a look at it for better understanding.

@qiuyuesong Thank you for reading our work.
For the 5-95 Hz dataset, we first trained an EEG encoder and image encoder in CLIP based setting where we took pre-trained Resnet50 and froze all the layers except the last layer, where we used a fully connected layer that projected the ResNet50 feature in EEG space. We train the complete method end-to-end for a certain number of epochs, whose ablation study you can find in our paper. After the training we performed, we computed the top-k accuracy.
We have just updated the EEGClip code in the repository. You can have a look at it for better understanding.

Gratitude beyond words.

@qiuyuesong Thank you for reading our work.
For the 5-95 Hz dataset, we first trained an EEG encoder and image encoder in CLIP based setting where we took pre-trained Resnet50 and froze all the layers except the last layer, where we used a fully connected layer that projected the ResNet50 feature in EEG space. We train the complete method end-to-end for a certain number of epochs, whose ablation study you can find in our paper. After the training, we computed the top-k accuracy.
We have just updated the EEGClip code in the repository. You can have a look at it for better understanding.


[$500] Room - The same user can be added multiple times via suggestion list

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

Version Number: v1.4.18-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:

Go to URL https://staging.new.expensify.com/
Open any room
Click on the room`s avatar -> Members -> Invite
Try to invite a user several times (after the second try you receive an error, that you had invited this user before)
Using @ try to invite a user several times in the room's chat (you can invite the same user several times using @)

Expected Result:
The same user can't be added multiple times via the suggestion list, error should be appears on second try
Actual Result:
The same user can be added multiple times via suggestion list
Workaround:
Unknown
Platforms:

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

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/542439ba-bd73-4c76-9510-b295a8543482

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01080af286719743f4
Upwork Job ID:<PHONE_NUMBER>845507584
Last Price Increase: 2023-12-28

Seems intentional? '@' is not only invitations, but also 'mention' of the room member as well. Based on the video it seems like the group member gets invited only once, but gets mentioned multiple times? Or is there something I'm not seeing?

This is not an ivitation – that's a plain mention just like in any other chat. Why is this a bug?

I'm also not clear why this is a bug?

@JmillsExpensify Any actions here?

I don't think so. Im going to close


Modal EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot read property 'parentInjector' of undefined

When trying to open a modal in my component, I get the following error:
EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot read property 'parentInjector' of undefined
Been trying the exact same code as the demo:
<button class="btn btn-primary" (click)="lgModal.show()">Large modal</button>

        <button type="button" class="close" (click)="lgModal.hide()" aria-label="Close">
          ×
        </button>

Large modal

        ...

What could have gone wrong?

@theunreal Did you remember to include the viewContainerRef:ViewContainerRef into your application root component? Link Modals Hack

Yes @DawidvanGraan , I noticed that I get this error only inside specific component, and this component is inside a . maybe it causes the error..

I'm getting this error and couldn't solve it. wats the fix?

@priteshacharya read the important notes in doc http://valor-software.com/ng2-bootstrap/#/modals

Including the ViewContainerRef in the root application's constructor did the trick for me. Thanks!


Add support for Arch Linux ARM base images generation (#16695).

Implementation of feature request #16695.
Signed-off-by: Giampaolo Mancini<EMAIL_ADDRESS>

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "16695_manchoz_archarm" git@github.com:manchoz/docker.git somewhere
$ cd somewhere
$ git rebase -i HEAD~3
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

/cc @DieterReuter because I think you're working on these things as well :smile:

Note that contrib/mkimage.sh is already able to build Debian-based "armhf" base images for ARM machines.
Just run mkimage.sh as usual from an ARM machine (RPi, BeagleBone, Scaleway C1 servers, etc.) :-)
My patch is intended for building Arch Linux-based ARM base images.

Ah, you're right, I was browsing quickly through PRs, didn't look in-depth :+1:

Nonetheless @DieterReuter opinions and contributions would be welcome! Thanks for cc-ing, @thaJeztah!

@manchoz Just a few notes. For Arch Linux there are armv6h and armv7h supported in the archarm package repo. But you're using only the armv7h repo.

Ok. I will look for adding support for armv6h and more prerequisites checks in next commits. Thanks @DieterReuter!

@manchoz Any news here? Is it ready for review?

Hi @LK4D4, let me push some update and it will be ready.

ping @manchoz looks like it needs a rebase as well; did you push those updates?

@thaJeztah just pushed.
Won't add support for armv6 Arch Linux because there are just very few and very old armv6 machines supported by Arch Linux ARM (mainly first generation RPi).

@manchoz looks like there are still merge conflicts :cry:

@thaJeztah it seems that the userns build timed-out: would you mind to rerun? Thanks!

@manchoz I restarted it

All green again!

ping @tianon @jfrazelle could you have a look please?
also @DieterReuter happy to hear if this LGTY

LGTM

Can you squash the commits please
On Friday, December 11, 2015, Dieter Reuter<EMAIL_ADDRESS>wrote:

LGTM
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/pull/16704#issuecomment-163956172.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "16695_manchoz_archarm" git@github.com:manchoz/docker.git somewhere
$ cd somewhere
$ git rebase -i HEAD~3
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

ping @jfrazelle @tianon commits are squashed. ptal

LGTM

Thanks everyone @jfrazelle @thaJeztah @tianon

ping @tianon could you have a look at this one? I think it's ready to merge, just final check from you! :heart:

I'm merging as it's been opened for a while, @jfrazelle will fix the %ARCH% in a followup PR.
Thanks!


(FACT-949) Skip puppetlabs-release in AIO acceptance setup

This commit skips installing the puppet-labs release package,
as it is no longer necessary in the AIO world.
In addition, this commit refactors the install_repos_on
acceptance helper method to curl the repo_config for the
specified SHA to the SUT's system location (i.e, /etc/yum.repos.d).
See
https://github.com/puppetlabs/puppet/commit/fa945fd799583a3e3daea40bcf94ab21fa362dee
for the equivalent commit in Puppet.

@joshcooper pointed out that since puppet-agent currently still includes Ruby facter, ci:test:aio will fail as it can't find native Facter's binary. There are a few tickets in flight which will address this.

CLA signed by all contributors.


PubSub Topic managed resource implementation

Description of your changes
We have live-coded this resource on The Binding Status. Later on, I made some cosmetic changes and added unit tests. It's ready to go now!

Checklist

I have:

[x] Run make reviewable to ensure this PR is ready for review.
[x] Ensured this PR contains a neat, self documenting set of commits.
[x] Updated any relevant documentation, examples, or release notes.
[x] Updated the dependencies in app.yaml to include any new role permissions.
[x] Updated the package resources documentation to include any new managed resources or classes.

@hasheddan Thanks for the review! It should be ready for a final review now.


Visual Studio TS 1.7 project has TS 1.8 compiler error

Hello...
I am using VS 2015 Update 2. The version of TS I have installed on my machine is 1.8. However I have a project that has the TypeScriptToolsVersion set to 1.7 which presumably should force compilation using the 1.7 version of the compiler, which I have installed as well. However I am getting the error below when compiling. This error is a 1.8 error. It should not appear when compiling using 1.7, I think. Any ideas? The MS Build output shows that compilation is using 1.7 tsc.exe but then why am I getting 1.8 errors????? Thank you
TS17009	'super' must be called before accessing 'this' in the constructor of a derived class.

Does the error have a "build" prefix? if not then this is generated from your language service.
VS knows only about one version of the language, your latest, in this case TS 1.8.
MSBuild allows for multiple versions of the compiler to be installed. and it will use the right one to build.

@mhegazy ... wow... always there to help... thanks thanks... anyway...
not sure about the build prefix... i am seeing this error inside of VS in the error list... in the list the column "Source" shows "IntelliSense" and the column "Tool" shows "Microsoft.CodeAnalysis.TypeScript.EditorFeatures [TypeScript for Microsoft Visual Studio]	Active"... not sure if this helps... which column shows the "build prefix"...
thanks

this is what i meant:

The first error is generated when you do a build (F5/Ctrl F5). the second one is what the editor shows you as you type.
The first is coming from MSBuild, and this is why it has the "Build" prefix.


business logic for remote sampling + getSamplingTargets PR

Codecov Report

Merging #1220 (571df40) into centralized-sampling-part-1 (36fa11f) will decrease coverage by 1.6%.
The diff coverage is 39.3%.

@@                      Coverage Diff                      @@
##           centralized-sampling-part-1   #1220     +/-   ##
=============================================================
- Coverage                         67.3%   65.6%   -1.7%
=============================================================
  Files                              134     137      +3
  Lines                             5816    6204    +388
=============================================================
+ Hits                              3918    4075    +157
- Misses                            1746    1973    +227
- Partials                           152     156      +4

Impacted Files
Coverage Δ

samplers/aws/xray/client.go
0.0% <0.0%> (ø)

samplers/aws/xray/fallback_sampler.go
0.0% <0.0%> (ø)

samplers/aws/xray/rand.go
17.7% <0.0%> (-2.8%)
:arrow_down:

samplers/aws/xray/rule_manifest.go
86.6% <0.0%> (-3.6%)
:arrow_down:

samplers/aws/xray/sampler_options.go
0.0% <0.0%> (ø)

samplers/aws/xray/remote_sampler.go
15.5% <25.4%> (+15.5%)
:arrow_up:

samplers/aws/xray/clock.go
22.2% <28.5%> (+22.2%)
:arrow_up:

samplers/aws/xray/sampling_rule.go
87.7% <87.0%> (-12.3%)
:arrow_down:

samplers/aws/xray/reservoir.go
100.0% <100.0%> (ø)


Cannot install with pip / requirements.txt yet

Currently, attempting to install this theme through the Github link with pip or a requirements.txt file results in an error:
ERROR: File "setup.py" not found for legacy project Sun-Valley-ttk-theme from git+git://github.com/rdbende/Sun-Valley-ttk-theme@master#egg=Sun-Valley-ttk-theme (from -r requirements.txt (line 7)).
This theme can therefore only be installed by placing it manually, resulting in more difficulty for the end user.
Are there any automatic installation options for this?
Thanks :-)

This is not a python module, just a simple tcl script.
So you can't install it via pip. Ttk themes like this are not usually installed and imported, but they are included with the program and used that way. The license allows you to do so, even with modifications.


Release review

Addresses issue https://cqse.atlassian.net/browse/TS-26265

[ ] Changes are tested adequately
[ ] Teamscale documentation updated in case of relevant user-visible changes
[ ] CHANGELOG.md updated
[ ] Present new features in N&N

Please respect the vote of the Teamscale bot or flag irrelevant findings as tolerated or false positives. If you feel that the Teamscale config or architecture file needs adjustment, please state so in a comment and discuss this with your reviewer.

Another comment: org.conqat.lib.commons is available from Maven Central: https://search.maven.org/search?q=a:teamscale-lib-commons You don't have to copy & paste the utility classes.

Another comment: org.conqat.lib.commons is available from Maven Central: https://search.maven.org/search?q=a:teamscale-lib-commons You don't have to copy & paste the utility classes.

That being said, we use very few code from org.conqat.lib.commons: AntPatternUtils.convertPattern and FileSystemUtils.normalizeSeparators, which might be possible to replace (in particular, as FilePatternResolver already does some glob handling (see ASTERISK_REPLACEMENT).

Using @EnabledIfEnvironmentVariable for ACCESS_KEY might be worthwhile for NativeImageIT.

Another comment: org.conqat.lib.commons is available from Maven Central: https://search.maven.org/search?q=a:teamscale-lib-commons You don't have to copy & paste the utility classes.

I know. We tried that first, but unfortunately this had some dependency (SLF4J if I remember correctly, but I might misremember) that required the use of reflection and did not work properly with the GraalVM native compilation. So instead of trying to change lib.commons (which would probably affect Teamscale and several other Java-based tools and be a huge change), we instead opted to copy the 4 utility classes we used over and strip out all unused code from them.

Another comment: org.conqat.lib.commons is available from Maven Central: https://search.maven.org/search?q=a:teamscale-lib-commons You don't have to copy & paste the utility classes.

That being said, we use very few code from org.conqat.lib.commons: AntPatternUtils.convertPattern and FileSystemUtils.normalizeSeparators, which might be possible to replace (in particular, as FilePatternResolver already does some glob handling (see ASTERISK_REPLACEMENT).

Sorry, I don't get your comment. What is supposed to replace what?

Using @EnabledIfEnvironmentVariable for ACCESS_KEY might be worthwhile for NativeImageIT.

Thanks, I didn't know this one :-) very useful!

sigh, Github doesn't allow me to attach comments to moved files, so I'll add it here:
src/test/resources/com/teamscale/upload/test_utils/generate.sh could be placed in src/main/scripts. At least, Maven's default directory layout has a dedicated scripts directory and we don't want the generate.sh scripts to end up in the -tests.jar.
That being said, we could alternatively use the keytool-maven-plugin to generate the keystore.jks and truststore.jks files from scratch in the generate-test-resources phase. WDYT?

sigh, Github doesn't allow me to attach comments to moved files, so I'll add it here:
src/test/resources/com/teamscale/upload/test_utils/generate.sh could be placed in src/main/scripts. At least, Maven's default directory layout has a dedicated scripts directory and we don't want the generate.sh scripts to end up in the -tests.jar.
That being said, we could alternatively use the keytool-maven-plugin to generate the keystore.jks and truststore.jks files from scratch in the generate-test-resources phase. WDYT?

I prefer the shell script. Regenerating the certificates on every build seems like it brings no benefit over checking in the keystores, while it does cost time when running tests. So I'd keep the current approach. The sh file was only meant as documentation how these files were generated and in case we need to regenerate them some time in the future (unlikely, but better than having to google for 30min how to do that should it still happen ;-))

I also prefer the location of the script. It is right next to the artifacts it creates. If we put it somewhere else, it is unclear without opening the script where the generated files are put. It is also less discoverable. If I want to change the certificates, I would search next to the certs for instructions on how to do that. Now I have to instead search somewhere unrelated.
I don't see why it would be detrimental to have the script end up in the -tests.jar. It's not like that's uploaded anywhere or used for anything other than running the tests locally or in CI.

Thanks a lot for the big review :-) @sewe


add .head() and .tail() to Series

These methods are convenient when working with DataFrame. For consistency and convenience, it would be nice to have them on Series as well.

Thanks, Jeff. I rebased and merged this in-- the only modification was to change assert_frame_equal (for DataFrame) to assert_series_equal (for Series) in the unit test


Chinese translation submission

Hello! I am a China game player.
I really like the mod you made, because it adds support to the handle. Chinese game player Chinese language translation, but I found that there is no simplified Chinese translation (only the traditional Chinese translation), so for many China players, language barriers cause them to be unable to use this mod, so I want to add simplified Chinese language support to your mod. :)

Lang files
controllable.action.break=破坏 controllable.action.attack=攻击 controllable.action.eat=进食 controllable.action.drink=饮用 controllable.action.block=防御 controllable.action.pull_bow=拉弓 controllable.action.place_block=放置方块 controllable.action.use_item=使用物品 controllable.action.interact=互动 controllable.action.inventory=打开物品栏 controllable.action.close_inventory=关闭物品栏 controllable.action.swap_hands=交换左右手物品 controllable.action.dismount=取消骑乘 controllable.action.jump=跳跃 controllable.action.sneak=潜行 controllable.action.drop_item=扔掉物品 controllable.action.pickup_stack=拾起一组物品 controllable.action.pickup_item=拾起物品 controllable.action.quick_move=快速移动 controllable.action.place_stack=放置一组物品 controllable.action.place_item=放置物品 controllable.gui.title.select_controller=选择一个控制器 controllable.gui.select=选择 controllable.gui.configure=配置 controllable.gui.cancel=取消 controllable.toast.controller=控制器 controllable.toast.connected=已连接 controllable.toast.disconnected=未连接

Json files
{ "controllable.action.break": "破坏", "controllable.action.attack": "攻擊", "controllable.action.eat": "攻击", "controllable.action.drink": "饮用", "controllable.action.block": "防御", "controllable.action.pull_bow": "拉弓", "controllable.action.place_block": "放置方块", "controllable.action.use_item": "使用物品", "controllable.action.interact": "互动", "controllable.action.inventory": "打开物品栏", "controllable.action.close_inventory": "关闭物品栏", "controllable.action.swap_hands": "交换左右手物品", "controllable.action.dismount": "取消骑乘", "controllable.action.jump": "跳跃", "controllable.action.sneak": "潛行", "controllable.action.drop_item": "扔掉物品", "controllable.action.pickup_stack": "拾起一组物品", "controllable.action.pickup_item": "拾起物品", "controllable.action.quick_move": "快速移动", "controllable.action.place_stack": "放置一组物品", "controllable.action.place_item": "放置物品", "controllable.gui.title.select_controller": "选择一个控制器", "controllable.gui.select": "选择", "controllable.gui.configure": "配置", "controllable.gui.cancel": "取消", "controllable.toast.controller": "控制器", "controllable.toast.connected": "已连接", "controllable.toast.disconnected": "未连接" }

Finally, I want to say,
Plz! Please add fabric support! Adding fabric may make your mod more popular!

@ZTZTJun It is not easy to port mod to never used modloader, also FORGE 4EVER


hide action item depending on values of the row

how to hide an action link out of the say 3 that i have depending on the values of a row?
cc @abhoryo

closing as the method is manipulateRender


UnicodeDecodeError when accessing any java class in python

Describe the bug
Accessing any ghidra java class directly in python results in a UnicodeDecodeError
To Reproduce

Create a project
Open a code browser
Open the python interpreter window (or run a script)
Attempt to import or access literally any java class in python

Expected behavior
No error happens and the script/line runs succesfully
Screenshots

Environment (please complete the following information):

OS: Windows 10 v1903
Java Version: Tried openjdk-12, openjdk-13 and oracle jdk 13, all showed the issue.
Ghidra Version: 9.1.1-Public

Additional context
application.log (couldn't find anything of note in there)
I wouldn't be surprised if it was caused in some way by something in my environment, but I have absolutely no idea where to look from there. This only happens on one of my computers.

Well, after finally caving in and posting this bug report, I found the issue a few minutes afterwards. My windows username contains the special character 'é', as does my username folder.
Forcing the username and user folder to ascii lowercase letters solved the issue.


Topics order now matches Web

Non courseware topics need to be shown prior to the courseware topics

@aleffert pl review

:+1:


dd-sdk-swift-testing v 2.5.0 + xcode 16 RC (16A242) + github workflow won't report simulator crash

The thing
Just want to reported that
We noticed dd-sdk-swift-testing v2.5.0 + xcode 16 RC (16A242) + github workflow report increasing amount of test timeout and turns out that dd prevent simulator crash failure reported to workflow.

set  to 0 fix the issue


Could not install PyPortfolioOpt on macOS Monterey v. 12.5

Hi, i am not able to install PyPortfolioOpt. I have already installed https://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/.
When I do pip3 install PyPortfolioOpt, then I get:
Defaulting to user installation because normal site-packages is not writeable
Collecting PyPortfolioOpt
Using cached pyportfolioopt-1.5.5-py3-none-any.whl (61 kB)
Collecting cvxpy<2.0.0,>=1.1.19 (from PyPortfolioOpt)
Using cached cvxpy-1.4.1-cp39-cp39-macosx_10_9_universal2.whl.metadata (8.8 kB)
Requirement already satisfied: numpy<2.0.0,>=1.22.4 in ./Library/Python/3.9/lib/python/site-packages (from PyPortfolioOpt) (1.26.3)
Requirement already satisfied: pandas>=0.19 in ./Library/Python/3.9/lib/python/site-packages (from PyPortfolioOpt) (2.1.4)
Requirement already satisfied: scipy<2.0,>=1.3 in ./Library/Python/3.9/lib/python/site-packages (from PyPortfolioOpt) (1.11.4)
Collecting osqp>=0.6.2 (from cvxpy<2.0.0,>=1.1.19->PyPortfolioOpt)
Using cached osqp-0.6.3.tar.gz (228 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [118 lines of output]
Collecting oldest-supported-numpy
Using cached oldest_supported_numpy-2023.12.21-py3-none-any.whl.metadata (9.8 kB)
Collecting setuptools>=40.8.0
Using cached setuptools-69.0.3-py3-none-any.whl.metadata (6.3 kB)
Collecting wheel
Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
Collecting setuptools_scm>=6.2
Using cached setuptools_scm-8.0.4-py3-none-any.whl.metadata (6.4 kB)
Collecting qdldl
Using cached qdldl-0.1.7.post0.tar.gz (70 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting numpy==1.21.0 (from oldest-supported-numpy)
Using cached numpy-1.21.0-cp39-cp39-macosx_11_0_arm64.whl (12.1 MB)
Collecting packaging>=20 (from setuptools_scm>=6.2)
Using cached packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Collecting typing-extensions (from setuptools_scm>=6.2)
Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
Collecting tomli>=1 (from setuptools_scm>=6.2)
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting scipy>=0.13.2 (from qdldl)
Using cached scipy-1.11.4-cp39-cp39-macosx_12_0_arm64.whl.metadata (60 kB)
INFO: pip is looking at multiple versions of scipy to determine which version is compatible with other requirements. This could take a while.
Using cached scipy-1.11.3-cp39-cp39-macosx_12_0_arm64.whl.metadata (60 kB)
Using cached scipy-1.11.2-cp39-cp39-macosx_12_0_arm64.whl.metadata (54 kB)
Using cached scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl.metadata (54 kB)
Using cached scipy-1.10.1-cp39-cp39-macosx_12_0_arm64.whl (28.9 MB)
Using cached oldest_supported_numpy-2023.12.21-py3-none-any.whl (4.9 kB)
Using cached setuptools-69.0.3-py3-none-any.whl (819 kB)
Using cached wheel-0.42.0-py3-none-any.whl (65 kB)
Using cached setuptools_scm-8.0.4-py3-none-any.whl (42 kB)
Using cached packaging-23.2-py3-none-any.whl (53 kB)
Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Building wheels for collected packages: qdldl
Building wheel for qdldl (pyproject.toml): started
Building wheel for qdldl (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
    × Building wheel for qdldl (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [65 lines of output]
        running bdist_wheel
        running build
        running build_ext
        Traceback (most recent call last):
          File "<string>", line 81, in build_extensions
          File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
            return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
          File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run
            with Popen(*popenargs, **kwargs) as process:
          File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
            self._execute_child(args, executable, preexec_fn, close_fds,
          File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
            raise child_exception_type(errno_num, err_msg, err_filename)
        FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/Users//Library/Python/3.9/lib/python/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
            main()
          File "/Users//Library/Python/3.9/lib/python/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/Users//Library/Python/3.9/lib/python/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
            return _build_backend().build_wheel(wheel_directory, config_settings,
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 404, in build_wheel
            return self._build_with_temp_dir(
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 389, in _build_with_temp_dir
            self.run_setup()
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
            exec(code, locals())
          File "<string>", line 113, in <module>
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
            return distutils.core.setup(**attrs)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
            return run_commands(dist)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
            dist.run_commands()
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
            self.run_command(cmd)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
            super().run_command(command)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
            cmd_obj.run()
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/normal/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 368, in run
            self.run_command("build")
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
            self.distribution.run_command(command)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
            super().run_command(command)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
            cmd_obj.run()
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
            self.run_command(cmd_name)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
            self.distribution.run_command(command)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
            super().run_command(command)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
            cmd_obj.run()
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 88, in run
            _build_ext.run(self)
          File "/private/var/folders/zk/xjjs_n214yz8vf0gx6p4_b780000gn/T/pip-build-env-34l4ti5y/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
            self.build_extensions()
          File "<string>", line 83, in build_extensions
        RuntimeError: CMake must be installed to build qdldl
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for qdldl
  Failed to build qdldl
  ERROR: Could not build wheels for qdldl, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Can you please help me ?

Hi @PyRickyRa, please see this ticket: https://github.com/robertmartin8/PyPortfolioOpt/issues/426
Or you could try pip install cmake b/c you dont have cmake on your computer.
I'll close this ticket, feel free to re-open it if you need help.

Still not working

Ok, please try this to install CMake:
brew install cmake for OS X
sudo apt install cmake for Ubuntu

cmake version 3.28.1, but still not able to install pyportfolio

Hi @PyRickyRa, please try below commands in order:
pip uninstall cmake

brew uninstall cmake

brew install cmake

pip install pyportfolioopt

fyi you can see other tickets: https://github.com/robertmartin8/PyPortfolioOpt/issues/561, https://github.com/robertmartin8/PyPortfolioOpt/issues/274


Server crash because of content type

Trying to fix the follwing error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client

js being js, it doesn't show me where the error is so I need to find the problem myself, but rn it's the only fix I can think of.
(don't merge)

Update: it doesn't work
but I'm getting error about some content type (xml)
The cause might come from express-formidable but this package isn't maintained since years...

No fix has been found


@kanaabe => [EOY] QA

Disable auto scrolling on mobile
Super article nav: articles fill full screen width
Sub article title lines removed
A few animation tweaks in body

👍🏼 great!


rdpwrap enables multimonitor support for win 7 pro rdp host

This is not an issue, but it seems undocumented feature. When you install RDPWrap on Win 7 pro machine, the machine can now be connected to with fullmultimon rdp support (use all monitors) without the /span flag that is usually needed. Might be helpful to add that somewhere in the readme?
And thanks, this solved a huge pain point for me!

This has been a life saver, thank you!


waitBuildkitRunning may not work properly

first time i ran sanic build it resulted in hang. not sure if this is replicable
i can look into this for hacktoberfest laster

seems like the docker command checking for status hangs when it succeeds
docker exec -i sanic-buildkitd buildctl --addr tcp://<IP_ADDRESS>:3165 build

command should be replaced, not sure with what though. if you just do something like build -> help, for example, subsequent calls to sanic build will fail


video playback problem on meet gmail

Vcam v3.0 | Virtual cam meet on gmail, i have 2 minutes video but the video does not play full video, the video only plays for 13 seconds and then returns to the beginning, After looping the third time the video will be stuck and the camera will automatically turn off, And while i turn camera back on the virtual cam only appears for 1 second and camera automatically turn back off, I have screen record the problem, here is the link https://drive.google.com/file/d/1mj3o_kne-9zhKHQ_sh9KsQPGSIbEQUKx/view
And on chrome the camera is black?

Does this problem occur on your phone?

Yeah, i've found the problem on my phone
It seems to be that Google meet detect that the camera isn't correctly opened.
And sometimes snapchat will occur the same problem,  and the APP will directly reported that the camera isn't correctly opened.
According to the xposed log,  I found a strange camera open process.
However, in some Google apps,  Like Google translate. Will not occur this problem.

Yeah, actually there is no problem if cam2api is disabled, but if disabling cam2api the audio from the video is piled up, I use the audio as well by inputting it using a splitter.
And on zoom meeting, the video is green 😂

Yeah, actually there is not occur if cam2api is disabled, but if disabling cam2api the audio from the video is piled up, I use the audio as well by inputting it using a splitter.
And on zoom meeting, the video is green 😂

Have you ever seen the toast message written in Chinese.  It indicates the original resolution.
The video resolution for zoom must be 640*480

now I think it can function properly in google meet in gmail
would you like to have a try v3.3 ?


Does it support model parallel? How to convert ColumnParallelLinear to lora linear?

how to convert Megatron-DeepSpeed ColumnParallelLinear and RowParallelLinear to lora linear layer?
 Thanks very much!


lineage for genus

new function to find the lineage for genus and then try to filter out which lineage is the right one if a name has multiple taxIDs assigned to it.
Still needs improvement and testing for more references but seems to work for the newest reference.

I'm still getting this error:
(haybaler) rcug@hpc06:/ngsssd1/rcug/wochenende_test/haybaler_tax$ bash run_haybaler_tax.sh
Starting Haybaler taxonomy
Traceback (most recent call last):
  File "haybaler_taxonomy.py", line 240, in <module>
    main()
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "haybaler_taxonomy.py", line 210, in main
    csv.insert(loc=0, column='genus', value=genus_series.values)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/pandas/core/frame.py", line 3760, in insert
    self._mgr.insert(loc, column, value, allow_duplicates=allow_duplicates)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 1191, in insert
    raise ValueError(f"cannot insert {item}, already exists")
ValueError: cannot insert genus, already exists

I also, logically, get this when using the direct command listed in haybaler_taxonomy.py itself, not the bash script

(haybaler) rcug@hpc06:/ngsssd1/rcug/wochenende_test/haybaler_tax$ python3 haybaler_taxonomy.py  -i 2021_02_human_bact_fungi_vir_masked.fa.fai -p /lager2/rcug/seqres/metagenref/

Traceback (most recent call last):
  File "haybaler_taxonomy.py", line 240, in <module>
    main()
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "haybaler_taxonomy.py", line 210, in main
    csv.insert(loc=0, column='genus', value=genus_series.values)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/pandas/core/frame.py", line 3760, in insert
    self._mgr.insert(loc, column, value, allow_duplicates=allow_duplicates)
  File "/mnt/ngsnfs/tools/miniconda3/envs/haybaler/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 1191, in insert
    raise ValueError(f"cannot insert {item}, already exists")
ValueError: cannot insert genus, already exists

Okay I am going to look why this is still happening, when I tried it the last time everything worked fine.

I know that I accidently had a line of code in a previous version that saved the inserted genus column in the input fai file. When the fai file is read in the next time you run the code, the inserted column is already in the file and then can't be inserted again.
I deleted the line that saved the file with the inserted column but if the column is still in the input fai,  the error also still occures.

Ah, good find. The input file has been changed : thanks:
1_1_1_10        genus   133797422       10      60      61
1_1_1_11        chr11   135086622       136027400       60      61

I'm now getting the save file error:
python3 haybaler_taxonomy.py  -i 2021_02_human_bact_fungi_vir_masked.fa.fai -p /lager2/rcug/seqres/metagenref/
ERROR: Input file 2021_02_human_bact_fungi_vir_masked.fa.fai has an incompatible file name. Needs a *haybaler.csv as input otherwise the inputfile gets overwritten.

Okay, at the moment the input file should never be overwritten, because either I change the name so a differnt file is created to save the output or the error you got occures to prevent this.
I guess the test_reference variable is False? Because if it is true it should not even try to save the file again.  I should maybe put that as an information in the error massage.
def save_csv(csv, path, name):
    if "haybaler" in name:
        csv.to_csv(path + "/" + name.replace("haybaler", "haybaler_genus"), sep="\t")
    else:
        sys.exit("ERROR: Input file {} has an incompatible file name. Needs a *haybaler.csv as input otherwise the "
                 "inputfile gets overwritten.".format(name))


disable rsyslog service

Hi
it's seems like we write logs twice

to the journald
journald -> rsyslog -> /var/log/syslog

I suggest to disable rsyslog service by default

I thought we agreed on removing it altogether

Is there anything we do not have in journal?

as an alternative we can stop logging for scylla
but I didn't find anything that will not be in journald
support@ip-172-31-1-18:~$ sudo systemctl list-units -t service
  UNIT                                           LOAD   ACTIVE SUB     DESCRIPTION
  amazon-ssm-agent.service                       loaded active running amazon-ssm-agent
  blk-availability.service                       loaded active exited  Availability of block devices
  chrony.service                                 loaded active running chrony, an NTP client/server
  cloud-config.service                           loaded active exited  Apply the settings specified in cloud-config
  cloud-final.service                            loaded active exited  Execute cloud user/final scripts
  cloud-init-local.service                       loaded active exited  Initial cloud-init job (pre-networking)
  cloud-init.service                             loaded active exited  Initial cloud-init job (metadata service crawler)
  cpufrequtils.service                           loaded active exited  LSB: set CPUFreq kernel parameters
  cron.service                                   loaded active running Regular background program processing daemon
  dbus.service                                   loaded active running D-Bus System Message Bus
  finalrd.service                                loaded active exited  Create final runtime dir for shutdown pivot root
<EMAIL_ADDRESS>                           loaded active running Getty on tty1
  kmod-static-nodes.service                      loaded active exited  Create List of Static Device Nodes
  loadcpufreq.service                            loaded active exited  LSB: Load kernel modules needed to enable cpufreq scaling
  lvm2-monitor.service                           loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
  networkd-dispatcher.service                    loaded active running Dispatcher daemon for systemd-networkd
  polkit.service                                 loaded active running Authorization Manager
  scylla-image-post-start.service                loaded active exited  Scylla cloud image post start service
  scylla-image-setup.service                     loaded active exited  Scylla Cloud Image Setup service
  scylla-jmx.service                             loaded active running Scylla JMX
  scylla-manager-agent.service                   loaded active running Scylla Manager Agent
  scylla-node-exporter.service                   loaded active running Prometheus exporter for machine metrics
  scylla-server.service                          loaded active running Scylla Server
<EMAIL_ADDRESS>                   loaded active running Serial Getty on ttyS0
  ssh.service                                    loaded active running OpenBSD Secure Shell server
  systemd-binfmt.service                         loaded active exited  Set Up Additional Binary Formats
  systemd-fsck-root.service                      loaded active exited  File System Check on Root Device
<EMAIL_ADDRESS>loaded active exited  File System Check on /dev/disk/by-label/UEFI
  systemd-journal-flush.service                  loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                       loaded active running Journal Service
  systemd-logind.service                         loaded active running User Login Management
  systemd-modules-load.service                   loaded active exited  Load Kernel Modules
  systemd-networkd-wait-online.service           loaded active exited  Wait for Network to be Configured
  systemd-networkd.service                       loaded active running Network Configuration
  systemd-random-seed.service                    loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service                     loaded active exited  Remount Root and Kernel File Systems
  systemd-resolved.service                       loaded active running Network Name Resolution
  systemd-sysctl.service                         loaded active exited  Apply Kernel Variables
  systemd-sysusers.service                       loaded active exited  Create System Users
  systemd-tmpfiles-setup-dev.service             loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                 loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                   loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                          loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                    loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                  loaded active exited  Permit User Sessions
<EMAIL_ADDRESS>                loaded active exited  User Runtime Directory /run/user/1001
<EMAIL_ADDRESS>                            loaded active running User Manager for UID 1001

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
47 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Hi
it's seems like we write logs twice

to the journald
journald -> rsyslog -> /var/log/syslog

I suggest to disable rsyslog service by default

We actually already dropped rsyslog:
https://github.com/scylladb/scylla-machine-image/commit/a63350da21eddc2577604e182e73b7c54c59affb

@d-helios - we need to keep track of the AMI versions we use in the cloud. We improve the AMI (minimal Ubuntu, disabled services, and soon some security hardening), and it needs to get into the cloud.

Sure seems like we can close the issue then


Add macOS build note

There is currently no mention of OS requirement in BUILDING.md under the Building containerd from source section. It is mentioned that containerd is available for Linux and Windows in README.md, but I find it worth noting that a flawed build is possible on macOS.

I have updated the Pull Request with the requested changes and resolved it to a single commit.

Looks good but has a whitespace issue; run this locally and it should report where:
git show --check 30baa8295755362ede6164fde60ed055f9b0162a


added _mm_max_pu8 for WASM

Added _mm_max_pu8 using WASM
https://github.com/simd-everywhere/simde/issues/86

Hi, thanks for the patch!  It looks like you're on the right track, but unfortunately a WASM SIMD128 version of _mm_max_pu8 isn't really going to work.  WASM only supports 128-bit vectors, and _mm_max_pu8 operates on 64-bit vectors (notice that the type of the parameters and the return value is __m64, which are used for 64-bit vectors; 128-bit vectors of integers use __m128i).  What you would need here would be something like wasm_u8x8_max, but that doesn't exist :(.
There is a 128-bit version of this function (_mm_max_epu8), but it already has a WASM implementation using wasm_u8x16_max.
I'm going to close this PR, but if you have any questions please feel free to ask them here.  If you're interested in working on WASM implementations I'd be happy to help… the options are a bit limited in SSE, but there are some in SSE2 and up; for example, the pack/unpack could use WASM implementations using the wasm_*_shuffle functions.  Actually, any 128-bit function with a SIMDE_SHUFFLE_VECTOR_-based implementation should also have a wasm_*_shuffle implementation (the semantics of the function are basically identical).
Also, if you may want to set up emscripten and d8 locally so you can test instead of waiting for CI.  There is some information in the Wiki, or if you're comfortable with Docker you can use the Docker development environment (the directions work well for LInux but if you're on macOS or Windows you may run into problems, in which case I'd be happy to help out).

@nemequ I realized my mistake a bit too late, my apologies.  I will redirect my attention to SSE2 and go from there.  Thank you for the help!