csnumdef reset in whileboolexpr loop?

I'm playing around with the etoolbox package and I'm trying to generate a table.
http://pastebin.tlhiv.org/5Slmu1AZ
Here is the code in question. The problem is the \csnumdef part. If I change that to
csnumgdef it works, and produces correctly, but now it only runs for the first iteration of the inner loop.
I can't seem to figure out what I'm doing wrong, I'm not even sure this is a bug, but there is so little
example code out there that I've just reported it here.

It seems that you cannot have an ifnumless inbetween the csnumdef and the usage of it. I don't know why this would be, but here is the working draft: http://pastebin.tlhiv.org/6l9YDNpl and in code
\documentclass{article}

\usepackage{etoolbox}

\begin{document}
\begin{table}[h]
  \centering
\newcounter{FontI}
\newcounter{FontJ}[FontI]
\newcounter{FontK}
\begin{tabular}{r | c c c c c c c c c c}
  % Header
  \whileboolexpr{test {\ifnumless{\value{FontK}}{10} }}{& \theFontK \stepcounter{FontK}} \\ \hline
  % Loop
  \whileboolexpr{
  test { \ifnumless{\value{FontI}}{13} }
  }{
    % inside j
  \ifnumgreater{\value{FontI}}{0}{\theFontI{}}{}x%
  \whileboolexpr{%
  test { \ifnumless{\value{FontJ}}{10} }
  }{% only put behind on not first.
  %\ifnumgreater{\value{FontJ}}{0}{& }{}%
  & \csnumdef{lol}{\value{FontI}*10 + \value{FontJ}}%
  \ifnumless{\csuse{lol}}{128}{\texttt{\symbol{\csuse{lol}}}}{ }%
                                    \stepcounter{FontJ}}%
                                    \stepcounter{FontI}%
  \ifnumless{\value{FontI}}{13}{\\}{}
  }%
\end{tabular}
\caption{Table of the symbols from 0 to 127. Inspired by Math Into \LaTeX}
\end{table}
\end{document}

Can you post a minimal example which shows the issue? I'm not sure I totally follow.

It seems that the site I used to host it on cleared the pastebin :( Stupid of me to rely on that.
I will try to reproduce the example for you and post the source code here! Sorry for making such a mess of this.

Ok, I managed to reproduce it!
So here is a minimal example of what doesn't work:
\documentclass{standalone}

\usepackage{etoolbox}

\begin{document}

\newcounter{I}
\newcounter{J}[I]
\begin{tabular}{c c c}
  % first loop
  \whileboolexpr{test {\ifnumless{\value{I}}{5}}}{
  \ifnumgreater{\value{I}}{0}{\\}{}%
  % second loop
  \whileboolexpr{test {\ifnumless{\value{J}}{3}}}{
  % define number
  \csnumdef{pain}{\value{I}*3 + \value{J}}%
  % check if we should have &
  \ifnumgreater{\value{J}}{0}{&}{}%
  % use the number
  [ \csuse{pain} ]%
  % Step the counter
  \stepcounter{J} %
  }%
  \stepcounter{I}
  }
\end{tabular}

\end{document}

However, if I move the csnumdef to after the ifnumgreater line it works:
\documentclass{standalone}

\usepackage{etoolbox}

\begin{document}

\newcounter{I}
\newcounter{J}[I]
\begin{tabular}{c c c}
  % first loop
  \whileboolexpr{test {\ifnumless{\value{I}}{5}}}{
  \ifnumgreater{\value{I}}{0}{\\}{}%
  % second loop
  \whileboolexpr{test {\ifnumless{\value{J}}{3}}}{
  % check if we should have &
  \ifnumgreater{\value{J}}{0}{&}{}%
  % define number
  \csnumdef{pain}{\value{I}*3 + \value{J}}%
  % use the number
  [ \csuse{pain} ]%
  % Step the counter
  \stepcounter{J} %
  }%
  \stepcounter{I}
  }
\end{tabular}

\end{document}

The same happens if I use csnumgdef, it will then work. This is why I am suspecting that this is because
of a scoping issue. This might just be intended behavior, I am too new to LaTeX to know if it is or not.
Hopefully this is much clearer than the initial report!

Table cells form groups at a TeX level: you are in a different group with a local definition, so the behaviour is 'expected' (as in etoolbox is not misbehaving).


ImportError: No module named 'pypandoc'

When installing haxor I get this error:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "/tmp/pip-install-zl_kpo7s/haxor/setup.py", line 6, in <module>
    import pypandoc
ImportError: No module named 'pypandoc'

The error won’t occur if I install pypandoc before haxor.
The project’s requirements-dev.txt contains pypandoc but requirements.txt does not. Is this intended?

nope, this is not intended. let me look into it.
pypandoc is required only when you are doing some development work, like you want to send a patch or add a new feature.

I am not able to reproduce the error. Can you tell me how did you try to install? I just did:
pip install haxor

and it worked fine

Sorry, I can’t reliably reproduce it.
If I remember correctly, it has only ever happened on the server (not locally) where I install it in a script from a requirements.txt (pip install --upgrade --requirement "$requirements"). If I manage to reproduce the issue, I will let you know. Right now, it installed correctly and I have no idea why it didn’t before. I haven’t made any related changes to the source, so I assume the cause lies in the server environment or deployment script.

Sure, no problem ^_^


Command registration is broken with setter autowiring

With setter autowiring enabled (symfony/symfony#17608), command registration still fail:
MacBook-Pro-de-Kevin:symfony-standard dunglas$ bin/console c:c -vvv

  [Symfony\Component\DependencyInjection\Exception\RuntimeException]
  Unable to autowire argument index 0 ($code) of the method "setCode" for the service "command.symfony\bundle
  \frameworkbundle\command\containerdebugcommand". If this is an object, give it a type-hint. Otherwise, spec
  ify this argument's value explicitly.

Exception trace:
 () at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:116
 Symfony\Component\DependencyInjection\Compiler\AutowirePass->autowireMethod() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:83
 Symfony\Component\DependencyInjection\Compiler\AutowirePass->completeDefinition() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:40
 Symfony\Component\DependencyInjection\Compiler\AutowirePass->process() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:107
 Symfony\Component\DependencyInjection\Compiler\Compiler->compile() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:545
 Symfony\Component\DependencyInjection\ContainerBuilder->compile() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:477
 Symfony\Component\HttpKernel\Kernel->initializeContainer() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:117
 Symfony\Component\HttpKernel\Kernel->boot() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /Users/dunglas/workspace/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117
 Symfony\Component\Console\Application->run() at /Users/dunglas/workspace/symfony-standard/bin/console:29

IMO opinion, using a different directory than Command for autoregistered commands would be safer.
ping @Ener-Getick, what do you think?

This seems to be a bug (ContainerDebugCommand::setCode() requires a callable).
Anyway you're right it would be safer to use a different standard directory... but I have no idea of another name :/

After all some ideas came to my mind:

Shell
Console
Program
Terminal
Job
Process

WDYT ?

Console is nice IMO.

ok that's fine for me too.
do you want me to open another PR ?

It would be nice if you have the time to do it.

no problem, see https://github.com/dunglas/DunglasActionBundle/pull/19.


Web - Unable to create a split expense with a large number of room members

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: 1.4.75-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/41077
Action Performed:

Log in with a new expensifail account
Create a workspace
Create a room
Invite 30 expensifail users
Navigate to the room
Create a manual split expense with a large number
Set the priority to "Most recent"
Open any of the created chats from the LHN

Expected Result:
I should be able to create the split expense without any errors
Actual Result:
Unable to create a split expense with a large number of room members with a new account. For the new chats I get "Unexpected error creating this chat, please try again later." error. For the split in the room, I get "Unexpected error submitting this expense. Please try again later." error
I also get a "Failed to load resource: the server responded with a status of 403 ()" console error
Workaround:
Unknown
Platforms:

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

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

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/498c791c-b77f-4fee-996a-c1a98cf5d55a
View all open jobs on GitHub

@slafortune  I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #vip-split

on vacation until June 4th - reassigning this.

Sounds like I'll readd myself to this as well and take it back on the 4th.  I didn't add myself back to any that have been assigned where I was unable to look at them at all.

Hey @slafortune , as an fyi for OOO re-assignments, you're supposed to add an additional assignee, but stay assigned so you can take the issue back over once you're back from OOO (assuming it's still open). Here's the relevant SO where the process is outlined.
I'm going to re-add you to the issue, but happy to tackle it while you're OOO!

Proposal
Please re-state the problem that we are trying to solve in this issue.
Unable to create a split expense with a large number of room members with a new account. For the new chats I get "Unexpected error creating this chat, please try again later." error. For the split in the room, I get "Unexpected error submitting this expense. Please try again later." error
I also get a "Failed to load resource: the server responded with a status of 403 ()" console error
What is the root cause of that problem?
When we invite new user to the room, report?. participants still contains optimistic accountID and then when we create a split expense, we set the participants incorrectly here which makes SplitBill API fails
https://github.com/Expensify/App/blob/8375abea3a377e7416404addde255b6ac8530a9b/src/libs/actions/IOU.ts#L6511-L6514
What changes do you think we should make in order to solve the problem?
We should use the same way as we do to get the member in RoomMembersPage here to get the correct participants of the report
const chatReportOtherParticipants = ReportUtils.getVisibleChatMemberAccountIDs(report?.reportID ?? '0').flatMap((accountID) => {
    const pendingMember = report?.pendingChatMembers?.findLast((member) => member.accountID === accountID.toString());
    return !pendingMember || pendingMember.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? accountID : [];
});

https://github.com/Expensify/App/blob/8375abea3a377e7416404addde255b6ac8530a9b/src/libs/actions/IOU.ts#L6511-L6514
What alternative solutions did you explore? (Optional)
NA

Looks like we were both out - sorry for the delay!

Thanks for the proposal @nkdengineer
So, the issue arises if there is any new member(no previous interaction) in the room, right?
Actions Performed should be:

Log in
Create a workspace
Create a room
Invite a user with whom you have no previous interaction
Navigate to the room
Create a manual split expense
Open any of the created chats from the LHN

@saracouto @slafortune Should I hold the proposal review for now? The status of the issue is Paused and priority is monthly.

@saracouto Why we add Monthly label here?

Since we are not actively working on VIP split right now, things related are paused.  Rather than closing all the GH's, they are being updated to Monthly so Melvin doesn't get too obnoxious!  Once this is in focus again, it will move from Monthly to Daily, and the priority will be updated at that time as well.  Probably best to focus on anything that isn't monthly/paused.

still paused

https://github.com/Expensify/App/issues/42562#issuecomment-2222966163

Issue not reproducible during KI retests. (First week)

Paused and not recreated in the last test - let's close this!


Remove unused PostCSS plugins

Description
Several PostCSS plugins are installed in DSpace but are unused.  Specifically:

postcss-apply  (used via @apply...which is never used in our SCSS files)
postcss-responsive-type (used via responsive...which is never used in our SCSS files)

Because these are unused, I'm removing them completely.  Both of these plugins also rely on outdated versions of PostCSS.  So, removing them makes it much easier to upgrade PostCSS in the future.
Instructions for Reviewers

Ensure UI still compiles and passes tests
Ensure themes still work.  I've already tested this manually and found no changes in behavior.

This should be backported to 8.x and 7.x, as these PostCSS plugins are unused in those versions as well.
I'll create manual backports.

@tdonohue the failed backport could be because of the previous merges that also change package.json so hopefully not hard to manually create

@kshepherd : the automated backport error is expected.  I should have removed that port to dspace-8_x label.
This PR was already (manually) ported to both 8.x and 7.x:

8.x port in #3548
7.x port in #3549


Alternate way to avoid using \u 200d

String.fromCharCode might be a good compromise to avoid special post-minifier logic without running another regex
What do you think?

if we use two functions and a global String lookup per each time that's execute I'd say i'ts a no-go and I'd prefer the RegExp at this time.
I will setup later on a couple of tests but this one looks like unnecessary overhead when we have tooling that can optimize for us upfront instead of asking each execution to solve uglifyjs problem.
Although I've realized if someone double uglify-js this output and doesn't kno wabout the issue will blame us for everything so ... I'm going to think about it.

OK .. after 5 seconds thinking I believe we have the best solution:
// within variable declarations ...
U200D = String.fromCharCode(0x200D),

// within function
rawText.indexOf(U200D) ?

that would work. Mind updating this?


Save weight to previous date, instead of current day's date?

I see some of the methods have a start and end date in the options object that is provided, but the saveWeight only takes the value without dates.
Am I missing something or does this mean you can only save the current day's weight?

I finally came back to this and edited the source code to allow it.
- (void)body_saveWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback
{
    double weight = [RCTAppleHealthKit doubleValueFromOptions:input];
    NSDate *sampleDate = [RCTAppleHealthKit dateFromOptionsDefaultNow:input];
    HKUnit *unit = [RCTAppleHealthKit hkUnitFromOptions:input key:@"unit" withDefault:[HKUnit poundUnit]];

    HKQuantity *weightQuantity = [HKQuantity quantityWithUnit:unit doubleValue:weight];
    HKQuantityType *weightType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierBodyMass];
    HKQuantitySample *weightSample = [HKQuantitySample quantitySampleWithType:weightType quantity:weightQuantity startDate:sampleDate endDate:sampleDate];

    [self.healthStore saveObject:weightSample withCompletion:^(BOOL success, NSError *error) {
        if (!success) {
            NSLog(@"error saving the weight sample: %@", error);
            callback(@[RCTMakeError(@"error saving the weight sample", error, nil)]);
            return;
        }
        callback(@[[NSNull null], @(weight)]);
    }];
}

changed to
- (void)body_saveWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback
{
    double weight = [RCTAppleHealthKit doubleValueFromOptions:input];
    NSDate *sampleDate = [RCTAppleHealthKit dateFromOptions:input key:@"startDate" withDefault:[NSDate date]];
    HKUnit *unit = [RCTAppleHealthKit hkUnitFromOptions:input key:@"unit" withDefault:[HKUnit poundUnit]];

    HKQuantity *weightQuantity = [HKQuantity quantityWithUnit:unit doubleValue:weight];
    HKQuantityType *weightType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierBodyMass];
    HKQuantitySample *weightSample = [HKQuantitySample quantitySampleWithType:weightType quantity:weightQuantity startDate:sampleDate endDate:sampleDate];

    [self.healthStore saveObject:weightSample withCompletion:^(BOOL success, NSError *error) {
        if (!success) {
            NSLog(@"error saving the weight sample: %@", error);
            callback(@[RCTMakeError(@"error saving the weight sample", error, nil)]);
            return;
        }
        callback(@[[NSNull null], @(weight)]);
    }];
}

Maybe this can be added to the library? Not sure how to do pull requests yet


Revised patch from commit ea4ce60

Previous patch failed on another Windows machine, particularly in Python 2. Since TravisCI does not support Python in Windows yet (and the linux tests work fine), these errors slipped past the TravisCI. I manually ran the test .py files that the TravisCI runs using a Windows machine that has all 4 versions of Python specified in the .travis.yml (2.7, 3.4, 3.5, 3.7).
Based on the TravisCI logs of the linux tests, these are the files run from tika\tests:
test_tika.py
test_from_file_service.py
test_ssl_link.py
All 12 tests (4 versions, 3 each) ran OK, but this certainly could use more testing on Windows.

Coverage decreased (-0.7%) to 47.949% when pulling 847ff4ff68857a885891b77f755390d9635925fd on matthewdavislee:master into effa65922a213dc3e9f4b673829abc63d691bedf on chrismattmann:master.

thanks @matthewdavislee !


Wind speed displayed in km/h instead of m/s

Wind Speed is displayed in the Weather Forecast Card "detail view" (click on card) in km/h instead of m/s
Lovelace Card code:
entity: weather.dwd_weather_frankfurt_m
type: weather-forecast

Result

DWD Integration: v1.1.2

Thanks, I missed this one! I will fix it later this day.

This is fixed in v1.1.3.
Thanks again for the heads-up!


AK+LibWeb: First steps for PowerPC CPU architecture support

This PR adds AK_IS_ARCH defines for ppc/ppc64/ppc64le and user agent CPU strings for 32-bit and 64-bit PowerPC.
For the 64-bit PowerPC user agent I followed the RISC-V 64 pretty-printed example instead of using ppc64(le) like x86_64 or AArch64.
These changes are not complete, only the first step to enable PowerPC support in Ladybird.
LibJS also needs to be updated (sign-extension of pointers) for getting little-endian ppc64le to work. (I didn't do it in this PR because I don't know how to do it correctly.)
For big-endian support in general more work is needed.

Also note that a lot of code will break on big endian systems, and the few bit fields we have in this code base will also need adjusting (even on ppcle because they decided to ise the BE layout even on LE), same may go for the JS value nan-packing
Tldr: Just adding nicer target defines is not enough

@Hendiadyoin1 as I have written in the OP this is just a "first steps" pull.
ppc64le seems to work fairly well with these adjustments and an arbitrary choice for pointer extension.
ppc64 requires more work, as I had written. I did do some work to make the parts which produce compile-time errors endian-agnostic.
This will be my next PR.
But there is still more work to be done and if you could give me some pointers or assistance in poking the right things, this would be very appreciated.

The test suite on ppc64le runs through with all passes except for some Intl errors in the JS test suite because of some differences between the system ICU 72 and the test cases which expect ICU 74 output (e.g. #411).


Can we add Comments?

1: It would be great if we add to comment on someone's post.
2: Reply to a comment or just get the username who mentioned you in a comment.

i think instagram has made some changes to their api because the post method isn't working very well.
i'm currently working on that issue and will implement a commenting feature as soon as the issue is fixed.
thankyou.

i've implemented commenting feature. here's the code:
from ensta import Host

host = Host(username, password)

host.comment("Looks great!", post_id)

where to get post_id?
from ensta import Host

host = Host(username, password)

for post in host.posts("leomessi"):
    post_id = post.post_id  # This is the post_id


MD033: Organizing information with collapsed sections

According to github docs: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections
I use:
<details><summary>
Example (Click to expand):
</summary>

But I get error:
MD033/no-inline-html: Inline HTML [Element: details]

What should I do?

If you want to include inline HTML in your Markdown, you should disable the no-inline-html rule. The README shows multiple ways to do so.

I don't think the CommonMark specification (or GFM extensions) offers a way to do that.

There are many things that can be done in HTML that cannot be done in Markdown. If you want to do many of them, you can disable this rule. If you want to do some of them, you can customize the rule to allow the relevant elements: https://github.com/DavidAnson/markdownlint/blob/main/doc/md033.md

The rule exists to block HTML and keep Markdown content pure - for people who want that. The specific scenario raised above does not seem to be more special than any other. In fact, this issue may be the first time it has come up.


Connection Timeout after Lab Completion: Bot Loop

LabMem 6.4.0 is stuck in a loop, when a connection timeout happens directly after lab completion.
Screenshot:

Not sure, if a connection timeout can be detected, but a specific handling would make the bot more stable and faster. Connection timeouts in general happen a lot these days, connecting from europe (connection from europe has ~30 hops to dena's ec2-us-west1 aws servers).

Seems like the restart lab process is very sensitive to connection timeouts since it has so many requests.  If any one of them times out then the restart timer kicks in.
I'm looking into ways to detect a connection timeout but the proxy dependency I am using doesn't seem to have an event I can hook into.  I see a couple ways I could maybe pull this off, but none of them are pretty:

Start a timer for each request and disabling the timer on the corresponding response.  If a timer ever elapses, then check the screen pixels to see if the connection timed out dialog is present
Using a single timer, reset it each time a request is made through the proxy.  If the timer elapses, check if the bot is not in the battle state and then check the screen pixels to see if the connection timeout dialog is present

Checking for the on-screen dialog would basically be finding both a 'blue' and 'brown' button in the middle of the screen with the blue one above the brown one, then it would tap the blue button.

I wonder if there's a more general issue with the logic for finding the Complete Dungeon dialog.  If I'm not mistaken, the Dungeon Complete dialog is never going to appear twice -- even if you reset FFRK while it's up the first time.  So it may not be a reliable indicator to look for, after a post-completion restart.

(The disable at the end, above, was manual, when I returned 6.5 hours after the failure -- but my device was sitting on the title screen (with the holiday tableau and the one button), not a place I've ever seen the bot get stuck previously.)

Possibly, although it just checks for the presence of the complete dialog and continues on if it wasn't found (showing the yellow message in your screenshot).  Enabling debug messages for the Lab component should shed a bit of light on the issue.
More concerning is your screenshot, not sure how it got stuck in the restarted state, there's a default 3 minutes timer that should have timed out.

After commenting, I turned on ADB logging and immediately got what appeared to be a backdated message from 02:14 that the ADB connection had died -- so maybe that would explain it.  Closing and reopening labmem resolved the issue (and cleared the message before I thought to screenshot it).

I added basic timeout detection in 7.2.  It might not cover all cases yet but it's a start.


Bump k8s to 1.29 versions

Description of the change:

Bump k8s dependencies to 0.29.3
Bump other operator-framework lib versions to support k8s 0.29.x
Bump ginkgo/v2 to v2.17.2

TODO:

[x] Update operator-framework/ansible-operator-plugins after https://github.com/operator-framework/ansible-operator-plugins/pull/67 is merged
[x] Add changelog
[x] Regenerate testdata

Motivation for the change:

Closes: #6651
Closes: #6767
Fixes: #6681

Checklist
If the pull request includes user-facing changes, extra documentation is required:

[x] Add a new changelog fragment in changelog/fragments (see changelog/fragments/00-template.yaml)
[ ] Add or update relevant sections of the docs website in website/content/en/docs

@joelanford, @everettraven, @acornett21 could you review this PR?

@Neo2308 This doesn't have the proper version of the ansilbe-plugin, I'll work on releasing today. Also, it doesn't have the proper version of the helm plugin, since we'll need to backfill that to have a matching version of kubebuilder.

@Neo2308 ansible-operator-plugin v1.35.0` has been released for you to use.

@acornett21 Done!

I'm still trying to work on a helm-plugin backport and a java-plugin pr/release (though I don't have that access there) to get all the kubebuilder versions in-sync.

@Neo2308 Can you pull this version in for the java plugin?
https://github.com/operator-framework/java-operator-plugins/releases/tag/v0.10.0

@acornett21 any idea how to fix the failing docs sanity?

@Neo2308 I'm unsure, I don't have access to the routes/etc for the website. I asked here in slack about this and for additional reviews.
I'll spend sometime tomorrow reviewing/testing this myself as well.

@Neo2308 Doing some testing today, and am updating the PR description as I find more issues this fixes/closes.

I've tested all the things I care to test and everything looks good.

Hi @Neo2308 Can you change the below?
https://github.com/operator-framework/operator-sdk/blob/master/website/config.toml#L202
to
https://github.com/operator-framework/operator-sdk/tree/v1.20.x/website/content/en/docs
It seems like there is a limit on the number of subdomains. Thanks.


CLI

Draft of CLI for IPData API is implemented.

Closed because of the new pull requests with fixed dependencies.


Implement Making Search movie feature #84

This pull request addresses issue #84  by introducing the search movies feature, allowing users to find movies by title efficiently. Previously, users could only browse movies without a dedicated search functionality, making it difficult to locate specific titles.
Changes made:

Implemented a responsive search bar in the UI for seamless user interaction.
Dynamic rendering of search results, providing users with instant feedback on their queries.
Included error handling to manage scenarios where no results are found or if the API fails.
This feature enhances the overall user experience by facilitating quick and easy movie searches, making the application more user-friendly.

Hey @maniyaom please authorize it!

@anuragbansall size of the search results is very big no need to include images in that.
Example:

@anuragbansall still this is big. Please make it smaller and remove the video icon you placed before the title.


Cluster agent kubernetes_apiserver check in ERROR due to 'could not create the ConfigMap: configmaps "datadogtoken" already exists'

Output of the info page (if this is a bug)
Getting the status from the agent.
2020-11-16 15:12:57 UTC | CLUSTER | WARN | (pkg/util/log/log.go:480 in func1) | Agent configuration relax permissions constraint on the secret backend cmd, Group can read and exec
==============================
Datadog Cluster Agent (v1.9.1)
==============================

  Status date: 2020-11-16 15:12:57.413271 UTC
  Agent start: 2020-11-16 14:41:51.231548 UTC
  Pid: 1
  Go Version: go1.14.7
  Build arch: amd64
  Agent flavor: cluster_agent
  Check Runners: 4
  Log Level: INFO

  Paths
  =====
    Config File: /etc/datadog-agent/datadog-cluster.yaml
    conf.d: /etc/datadog-agent/conf.d

  Clocks
  ======
    System UTC time: 2020-11-16 15:12:57.413271 UTC

  Hostnames
  =========
    ec2-hostname: REDACTED
    hostname: REDACTED
    instance-id: REDACTED
    socket-fqdn: datadog-cluster-agent-566498bcdf-4d4b9
    socket-hostname: datadog-cluster-agent-566498bcdf-4d4b9
    hostname provider: aws
    unused hostname providers:
      configuration/environment: hostname is empty
      gce: unable to retrieve hostname from GCE: status code 404 trying to GET http://<IP_ADDRESS>/computeMetadata/v1/instance/hostname

  Metadata
  ========

Leader Election
===============
  Leader Election Status:  Running
  Leader Name is: datadog-cluster-agent-566498bcdf-4d4b9
  Last Acquisition of the lease: Mon, 16 Nov 2020 14:43:28 UTC
  Renewed leadership: Mon, 16 Nov 2020 15:12:44 UTC
  Number of leader transitions: 6 transitions

Custom Metrics Server
=====================
  Disabled: The external metrics provider is not enabled on the Cluster Agent

Admission Controller
====================
  Disabled: The admission controller is not enabled on the Cluster Agent

=========
Collector
=========

  Running Checks
  ==============

    kubernetes_apiserver
    --------------------
      Instance ID: kubernetes_apiserver [ERROR]
      Configuration Source: file:/etc/datadog-agent/conf.d/kubernetes_apiserver.d/conf.yaml.default
      Total Runs: 125
      Metric Samples: Last Run: 0, Total: 0
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 3, Total: 354
      Average Execution Time : 19ms
      Last Execution Date : 2020-11-16 15:12:52.000000 UTC
      Last Successful Execution Date : 2020-11-16 14:43:22.000000 UTC
      Error: could not create the ConfigMap: configmaps "datadogtoken" already exists
      No traceback
=========
Forwarder
=========

  Transactions
  ============
    CheckRunsV1: 124
    Connections: 0
    Containers: 0
    Deployments: 0
    Dropped: 0
    DroppedOnInput: 0
    Events: 0
    HostMetadata: 0
    IntakeV1: 1
    Metadata: 0
    Nodes: 0
    Pods: 0
    Processes: 0
    RTContainers: 0
    RTProcesses: 0
    ReplicaSets: 0
    Requeued: 0
    Retried: 0
    RetryQueueSize: 0
    Series: 0
    ServiceChecks: 0
    Services: 0
    SketchSeries: 0
    Success: 249
    TimeseriesV1: 124

==========
Endpoints
==========
  https://app.datadoghq.com - API Key ending with:
      - REDACTED

Describe what happened:
I've been using the datadog helm chart to run the agents within the cluster. I just noticed that the cluster-agent is reporting an error with the kubernetes_apiserver check due to this error in its logs:
2020-11-16 15:11:37 UTC | CLUSTER | ERROR | (pkg/util/kubernetes/apiserver/apiserver.go:404 in getOrCreateConfigMap) | Could not get the ConfigMap datadogtoken: ********
2020-11-16 15:11:37 UTC | CLUSTER | ERROR | (pkg/collector/runner/runner.go:292 in work) | Error running check kubernetes_apiserver: could not create the ConfigMap: configmaps "datadogtoken" already exists

If I manually delete the configmap, it gets recreated but then the error immediately returns after the cluster-agent creates it:
2020-11-16 15:11:37 UTC | CLUSTER | INFO | (pkg/util/kubernetes/apiserver/apiserver.go:414 in getOrCreateConfigMap) | Created the ConfigMap datadogtoken
2020-11-16 15:11:37 UTC | CLUSTER | ERROR | (pkg/util/kubernetes/apiserver/apiserver.go:404 in getOrCreateConfigMap) | Could not get the ConfigMap datadogtoken: ********
2020-11-16 15:11:37 UTC | CLUSTER | ERROR | (pkg/collector/runner/runner.go:292 in work) | Error running check kubernetes_apiserver: could not create the ConfigMap: configmaps "datadogtoken" already exists

Describe what you expected:
No errors in agent status.
Steps to reproduce the issue:
Install the Datadog helm chart 2.5.3 on AWS EKS with the following cluster agent snippet for values.yaml:
    clusterAgent:
      enabled: true
      tokenExistingSecret: datadog
      resources:
        requests:
          memory: "15Mi"
          cpu: "50m"
        limits:
          memory: "50Mi"
      env:
        - name: DD_COLLECT_KUBERNETES_EVENTS
          value: "true"
        - name: DD_LEADER_ELECTION
          value: "true"

Additional environment details (Operating System, Cloud provider, etc):

AWS EKS running k8S 1.17
Datadog helm chart 2.5.3

I just ran into this and the fix for me was to set collectEvents to true in the datadog section (not clusterAgent)
datadog:
  collectEvents: true

see the helm chart template

I just ran into this and the fix for me was to set collectEvents to true in the datadog section (not clusterAgent)
datadog:
  collectEvents: true

see the helm chart template


Update munit to 0.7.17

Updates org.scalameta:munit from 0.7.14 to 0.7.17.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "munit" } ]

labels: test-library-update, semver-patch

Codecov Report

Merging #8 (317c954) into develop (10f10f3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop       #8   +/-   ##
========================================
  Coverage    75.00%   75.00%
========================================
  Files            3        3
  Lines           36       36
========================================
  Hits            27       27
  Misses           9        9

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10f10f3...317c954. Read the comment docs.


Absolutely no output

d:\Downloads\Funimation\lib>node funi.js --search hero

d:\Downloads\Funimation\lib>

I haven't used NodeJS before, but I was able to figure out getting npm and typescript installed.  However, now when I try to use any CLI command (not just search) I get no output and no error.
Any ideas?
(Also, I am very hopeful that this tool works, thanks for making it.)

You have to use ˋnode index.jsˋ

pffft lol ok, that worked!
I think the CLI reference is fine, but it needs some examples for each of the options available.

https://github.com/anidl/multi-downloader-nx/blob/master/docs/DOCUMENTATION.md


Activity

Hey,
Is there still any activity going on in the famous 0.3.5 fork?
Manuel

@ManuelOverdijk We've decided to make our own library, so we're not working with the fork (the one at http://github.com/infamous/famous-engine) anymore. Maybe we should archive that repo. For more info and status on our project, check out http://forums.infamous.io/t/80.


Install nfs-common and cifs-utils on provisioned machines

Is your feature request related to a problem? Please describe.
I'm always frustrated when I am deploying machines through Cloud Providers (e.g. Digitalocean / Linode), that there are certain packages missing, which leads to manual interaction on the machines itself.
I found the packages nfs-common (needed for NFS mounts) and cifs-utils (needed for Longhorn CSI) missing on debian based distributions
Describe the solution you'd like
Install nfs-common and cifs-utils during provisioning.
Describe alternatives you've considered
Manually creating a cluster and importing it, then I would not need rancher anymore.

We use cloud-init to install required packages.
#cloud-config
# packages may be supplied as a single package name or as a list
# with the format [<package>, <version>] wherein the specific
# package version will be installed.
packages:
 - cifs-utils


Add [Central Bank of Limonia bc.gov.ln] #issuer GCUCAY…VESQT4

Address: GCUCAYRQHFIC4NRAAIRSDP7ZPFE6BNNMQEEWGSEXRZ3ZOZNVXWVESQT4
Tags: issuer
Title: Central Bank of Limonia  Domain: bc.gov.ln
Requested by @flooydorg

@flooydorg the domain  bc.gov.ln is not valid
Combine discussion with:
https://github.com/stellar-expert/public-directory/issues/345


_prepare_request: Attach session hooks to the request

Users can't add hooks to the request object itself, but they can to the session. However session hooks aren't merged with the request's since it isn't prepared with Session.prepare_requests.

Can you describe what use case you require for this addition? A link to a specific project in the commit message would be ideal. The feature sounds useful, however, I want to ensure we avoid implementing features that we suspect someone might want to use.

What specifically prompted this was I was writing tests for praw3 (thought it would be good to have as much covered as possible) and tried to use a hook to end a submission stream from the inside.

There should be little need to end the stream early. You can instead stop asking for more submissions by ending the iterator.
Try checking out https://github.com/praw-dev/praw/blob/praw4/tests/integration/models/test_subreddits.py#L44

Oh, that works. Thanks. I'll close this for now it ends up being actually required somewhere.

Wait, but part of what i need to test is the submissions_stream helper, and that only starts yielding once it hits rock bottom (in comprehensible terms, when the query reaches close enough to the lower timestamp bound that less than 100 submissions are returned). Since in the test I'm writing the lower timestamp is 0 and the subreddit is /r/all, it could take a long time to complete (link post ids monotonically increase, so theres roughly 3 million posts to go through). Do you have a suggestion for that scenario without a response hook?

Oh you're talking about submissions between not the stream.
Is it possible that you can construct the between values such that within a narrow range the issue you want occurs?

Unfortunately no, because the lower timestamp has to be 0 and as the range gets closer to 0 reddit starts 503 ing  randomly (presumably aws's cloudsearch is failing getting that far back)

What about the upper timestamp, can't it also be close to zero thus limiting the range?

Thanks, that worked. I tried that yesterday but reddit wasn't returning anything to AWS issues / some backlog.  Specifically to test here, here and here.

Glad that worked.
The mock library can be used to do exactly that:
https://pypi.python.org/pypi/mock
It's not trivial to use, but once you get the hang of it, it shouldn't be too bad. Here's an example:
http://stackoverflow.com/questions/20885841/how-do-i-simulate-connection-errors-and-request-timeouts-in-python-unit-tests
In general if you want to refactor code to make it easier to test that's great. However, I'm not a big fan of altering the public interface in order to make it easier to test as it adds complexity that may not need to exist.
I'll close this issue now. I see you joined the channel on gitter so feel free to ask these kinds of questions there. I'll probably respond with similar frequency.

Thanks & will do!


Error with missing xdg-utils package

PLEASE READ: I originally made this template for myself to mocking up apps quicker. I am glad to see you are willing to give it a try! Before your open the issue, please make sure you are reporting bugs in the template itself. I am NOT creating this template to solve the problems you faced in your project, please use Vue or Vite's discord server to ask questions. Thank you.
Describe the bug/issue
I had a problem installing vite-boot on multiple servers and the issue were not that obvious to find.
You need the package xdg-utils in order to be able to serve your project (error arriving when running dev) which is not the case in many non gui environnements like servers.
To correct this you just have to install it with your prefered system package manager :
$ apt install xdg-utils --fix-missing
Hope this helps !

Hello, I saw your question. Based on the information you provided, it sounds like you may have encountered a problem when running either npx degit or pnpm install. If the problem occurred when running npx degit, then it is outside of our scope of support and you can report the issue to degit. If you encountered a problem when running pnpm install, please contact us and we will do our best to help you resolve the issue.

All the install passes correctly, it's when I try to start the dev server (npm run dev) that the error occurs.
I just mentionned this error as other people could encountered the same problem.
Installing the package corrects it.
Thanks for your quick response !


Change color of tabbar icon

Hello,
I have 2 icons: tabbarIcon.png and tabbarIconActive.png, but I can't seem to find a way how to change between these two if tab is active or inactive. All I could find is activeTintColor property, which says that it's changing color of a text in a tabbar and icon's color, but I don't see how can it change a color of a png image.

Hey,
You can do it that way:
icon: ({ focused }) => {
   // based on `focused` boolean, decide what `Image` to return
},

icon can also be a function, not only React element, that receives focused property. Also check examples in NavigationPlayground on how to change it based on active state.


[CRITICAL] [VIP-Travel] Add Terms and Conditions Modal (NewDot)

VIP-Travel Implementation Issue
Tracking Issue: https://github.com/Expensify/Expensify/issues/333471
Project: https://github.com/orgs/Expensify/projects/112/views/1?layout=board
Relevant Design Doc Section:
Feature Description

Create a new Right Hand Modal (screen) for our travel Terms and Conditions
Create a new action for AcceptTravelTerms

Detailed Instructions
A new page, TravelTerms.ts will be created in src/pages/Travel:
If the user is not on the travel beta, we’ll display a [blocking View ](https://github.com/Expensify/App/blob/main/src/components/BlockingViews/FullPageNotFoundView.tsx)instead
It will include a [HeaderWithBackButton](https://github.com/Expensify/App/blob/main/src/components/HeaderWithBackButton/index.tsx) component with “Before we continue…” as the title.
It will include the text displayed above (hyperlinks TBD) and a [checkboxWithLabel](https://github.com/Expensify/App/blob/main/src/components/CheckboxWithLabel.tsx) component for the user to agree with the terms.
Lastly, it will include a  (disabled until the checkbox is checked) as shown above:
 On click, it will call a new command, [AcceptTravelTerms](https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit?pli=1#bookmark=id.1b1k3v847xja), to update NVP.travelSettings.hasAcceptedTerms or provision the workspace, and redirect the user to travel.expensify.com.
If network.isOffline is true, it will be disabled, and the usual “You appear to be offline” message will display below.

Manual Test Steps

Log in on a new account
Create a workspace
Go to travel
Click the book travel button
Make sure the T&C appears
Make sure that if you don't check the box you cannot accept t&c
Accept the T&C
Look at the network request and ensure that we returned new policy and user data for the newly provisioned accounts

Automated Tests
Test for AcceptTravelTerms action
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~013a02f3de0cecfaf7
Upwork Job ID:<PHONE_NUMBER>962240000
Last Price Increase: 2024-02-22

Routes table:
https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit#bookmark=id.gn6jbl2udlnx

Re-assigning this to Ted since he is curating this implementation. Also temporarily removing c+ since this project has not started yet

Hello, I'm Tymoteusz Kałuzieński from Software Mansion, the expert agency, and I'd like to work on this task.

Great! Assigned you @cdOut

As an update, I’ll be creating a draft PR for this feature and also the main travel page today.

Possible we'll hold this and not requie a ToS interstitial: https://expensify.slack.com/archives/C05S5EV2JTX/p1711726076366499

See PR comment here: https://github.com/Expensify/App/pull/38469#issuecomment-2048557477

Can we make this ready for review yet @cdOut? The URL for the travel terms will be use.expensify.com/travelterms

@twisterdotcom We'll prioritize on pushing this through review.

all set. PR merged

This is on Prod right? We just need to pay out @rushatgabhane and @shubham1206agra now I think?

Payment Summary:

@shubham1206agra paid $500 here (C+)
@rushatgabhane paid $500 via newDot requests

$500 approved for @rushatgabhane


Updated FHR inputs

will need new MOOSE and new Pgh too

Job VTB Documentation on 532e475 wanted to post the following:
View the site here
This comment will be updated on new commits.

Only FHR failure is blue crab lagging Pronghorn update.


Convert Snowflake Scheduled Rules into Streaming Rules

Background
Converting Snowflake scheduled rules into streaming (AKA realtime) rules to make use of the new Snowflake log integration
Changes

Introduced multiple new rules

Testing

All rules have unit tests build from events gathered from Pre-Alpha test instance

@ben-githubs these look great!  Needs a pack

@ben-githubs looks like Validate caught some duplicate filenames from the original scheduled queries.


get_field for TimberTerm

Acf get_field work perfectly for post and term.
Can we add get_field function in TimberTerm ?
get_field -> get_meta_field

+1

@benedict-w and @ruscon check out #1168! This will be part of Timber 1.1.4 (released week to wp.org)

It seems that filters aren't applied in the same way for Post::get_field and Term::get_field so for an ACF field of type relation on a term I get a WP_Post instead of a TimberPost


Add booted property; make dates nullable and omitempty fields

Description
Adds booted property;
Make dates nullable;
Add omiempty fields;
Fixes #THEEDGE-1551
Type of change
What is it?

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update
[ ] Refactor

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] I run go fmt ./... to check that my code is properly formatted
[x] I run go vet ./... to check that my code is free of common Go style mistakes

Codecov Report

Merging #588 (c3bee06) into main (d85806e) will increase coverage by 0.16%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##             main     #588      +/-   ##
==========================================
+ Coverage   30.00%   30.16%   +0.16%
==========================================
  Files          33       33
  Lines        3513     3524      +11
==========================================
+ Hits         1054     1063       +9
- Misses       2315     2316       +1
- Partials      144      145       +1

Impacted Files
Coverage Δ

pkg/services/devices.go
62.36% <87.50%> (+1.22%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d85806e...c3bee06. Read the comment docs.

/retest


Dependabot wasn't able to update downloading

Dependabot wasn't able to update downloading
The module path downloading found in your go.mod doesn't match the actual path github.com/ipfs/go-ds-badger2 found in the dependency's go.mod.
Updating the module path in your go.mod to github.com/ipfs/go-ds-badger2 should resolve this issue.
Learn more
See here: https://github.com/rollkit/rollkit/network/updates/652652353

update by @tzdybal https://github.com/ipfs/go-ds-badger3/issues/3

update by @tzdybal issue: ipfs/go-ds-badger3#3 and fixing PR: ipfs/go-ds-badger3#4

This is already merged, and v0.1.4 released. Dependabot works fine again.


feat: Add i18n support to DatePicker component

Summary
Add some localization props to the <DatePicker /> component.
This doesn't cover all the aria-labels used in these components, though. I don't exactly know how to handle this - there are a lot of them on all the subcomponents, and some are complex (they contain interpolated values, like here.) One approach is to trim this back a bit and just provide props for localizations of the months, days, and day abbreviations (so remove what I did with statusTranslations and selectedDateTranslation props.) This doesn't cover all the instructional aria content, though.
Related Issues or PRs
Closes https://github.com/trussworks/react-uswds/issues/866
How To Test
I added a localization example to Storybook with some of the new props I added.
Screenshots (optional)

My main thought is that this is not the first component that needs localization and it won't be the last, so I'm wondering how we might want to establish a standard pattern for localization props that might work across components.

This is definitely a tough one.
Not related to this PR, but maybe worth thinking about ahead of time: I was thinking about the GovBanner component as well, where there is an icon inserted into the middle of at text block, which makes it hard to localize since grammatically, that icon could appear in different places in the sentence depending on the language. I imagine we could do some string replacing to handle this, where we expect $LOCK_ICON (or similar) to be present somewhere in the localized text. That similar to how the templating uswds uses does it: https://github.com/uswds/uswds/blob/develop/src/components/banner/banner.config.yml
If we choose to have full creative flexibility over how to implement this regardless of the uswds solution, I'm also curious if it'd be worth (or even feasible/possible) getting really react-y with it and using the ContextApi to define a localization structure with defaults, that could also be exposed for consumers.

Ok, this is ready to be looked at again, I added a localization prop to the DatePicker that is an object with all the strings that can be used as translations in the component.

Looks awesome!
@hannaliebl thanks for getting the bulk of this feature nicely in place!
@suzubara thanks for carrying it across the finish line!
I do have one question more for my own learning: This type of thing seems like a great candidate for using Context internally to share the localizations to the broader tree of components. In this example, since it's never passed as a prop solely to be passed another level deeper (the i18n prop is always used in addition to potentially being passed deeper), I don't have any qualms with doing it this way. When would Context be something to consider? For a more complex tree where props are being passed purely to be passed again to further sub-components?

ooh, to be honest using Context for a tree of subcomponents didn't occur to me and I definitely think that would be a good way to build on this!


fix: [IDP] : Added the information on template actions

Harness Developer Pull Request
Added the information on template actions
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://656591ac98ee27383a812f9c--harness-developer.netlify.app


Excuse me, how to adjust my parameters

pi@raspberrypi:~/RpiANC-master/build $ ./ffANC
xcb_connection_has_error() returned true
Capture params: Capture rate: 44100 Period size: 32 Min period size: 32
Playback params: Playback rate: 44101 Period size: 444 Play min period size: 443 Buffer size: 32768
access type = RW_INTERLEAVED
subformat = 'STD' (Standard)
channels = 2
rate = 44101 bps
period time = 10068 us
period size = 444 frames
period size = 3552 bytes
buffer time = 10068 us
buffer size = 32768 frames
periods per buffer = 73 frames
min period size = 444 frames
min buffer size = 32768 frames
exact rate = 44101/1 bps
significant bits = 32
is batch = 1
is block transfer = 1
is double = 0
is half duplex = 0
is joint duplex = 0
can overrange = 0
can mmap = 0
can pause = 0
can resume = 0
can sync start = 0
Number of play frames per device buffer( 32768 ) then configuration ( 32856 )

Hello,
You can change the parameters in the constants.h file, then recompile and try again.
Thanks!


add changelog for 1.6.0

Summary

add changelog for 1.6.0

Ticket Link
n/a
Release Note

add changelog for 1.6.0

Codecov Report

Merging #1535 (4735a7f) into main (f1c0b71) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1535      +/-   ##
==========================================
- Coverage   26.49%   26.44%   -0.05%
==========================================
  Files         126      126
  Lines        7214     7214
==========================================
- Hits         1911     1908       -3
- Misses       5093     5095       +2
- Partials      210      211       +1

Impacted Files
Coverage Δ

pkg/cosign/tuf/client.go
62.34% <0.00%> (-0.95%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1c0b71...4735a7f. Read the comment docs.

cc @priyawadhwa to double check that there's nothing else ready to go

🚀

Let's do it!

updated the changelog, ready to go


Add ability to return values composed of more than one user default

For example, a CGSize is composed of two CGFloats: width and height.  In some cases it makes sense to store these values in NSUserDefaults as separate values.
This commit adds a new class CompositeDefaultsKey that allows you to define values composed of more than one key.
Feedback welcome.

Ha! Very cool. Shame we can't (not without generic subscripts) make it work more broadly out of the box. This addition might be useful for someone, but they have to know they can use it to implement their own subscript...
What's your motivation to store, say, CGSize, like this? Why not store it as a ["width": 10, "height": 10]. That's how I imagine I would probably do it… Simpler, because you only have to deal with one user defaults key...

Thanks for the feedback.  I need to compose from two values because the back-end system where these values originate from can only handle primitive types, and trying to enforce a particular format strictly by convention could be error-prone.
I'm not completely sold on this solution however, since it's currently limited to types composed of values of a single type, and the order of the contained values is not enforced (too easy to accidentally swap width and height. I'm investigating solutions, and welcome any ideas.

I'm thinking now that this is a case of premature generalization.  Explicit key classes take up just as much code and are safer to deal with.  Example:
extension DefaultsKeys
{
    public static let mapRegion = MKCoordinateRegionDefaultsKey(lat: "mapLatitude", long: "mapLongitude", latDelta: "mapLatitudeDelta", longDelta: "mapLongitudeDelta")
}

public
class MKCoordinateRegionDefaultsKey: DefaultsKeys
{
    public let _centerLongitudeKey: DefaultsKey<CLLocationDegrees>
    public let _centerLatitudeKey:  DefaultsKey<CLLocationDegrees>
    public let _spanLongitudeKey:   DefaultsKey<CLLocationDegrees>
    public let _spanLatitudeKey:    DefaultsKey<CLLocationDegrees>

    public
    init(lat: String, long: String, latDelta: String, longDelta: String)
    {
        _centerLatitudeKey  = DefaultsKey<CLLocationDegrees>(lat)
        _centerLongitudeKey = DefaultsKey<CLLocationDegrees>(long)
        _spanLatitudeKey    = DefaultsKey<CLLocationDegrees>(latDelta)
        _spanLongitudeKey   = DefaultsKey<CLLocationDegrees>(longDelta)
    }
}

public
extension NSUserDefaults
{
    public
    subscript(key: MKCoordinateRegionDefaultsKey) -> MKCoordinateRegion
    {
        get
        {
            var region = MKCoordinateRegion()
            region.center.latitude     = self[ key._centerLatitudeKey ]
            region.center.longitude    = self[ key._centerLongitudeKey ]
            region.span.latitudeDelta  = self[ key._spanLatitudeKey ]
            region.span.longitudeDelta = self[ key._spanLongitudeKey ]
            return region
        }
        set
        {
            self[key._centerLatitudeKey] = newValue.center.latitude
            self[key._centerLongitudeKey] = newValue.center.longitude
            self[key._spanLatitudeKey] = newValue.span.latitudeDelta
            self[key._spanLongitudeKey] = newValue.span.longitudeDelta
        }
    }
}

Unfortunately, this fails to compile outside of SwiftyUserDefaults.swift because the DefaultsKeys initializer is private.
Can we lift that restriction? Or can you think of another way to work around it?

Hey @humblehacker, I know it's late but with version 4.0.0-alpha.2/3 you can have your own Bridge that defines how you store/fetch your custom types.

Thanks for the update @sunshinejr! I've been using my fork since I opened this PR (2.5 years ago!).  Looking forward to giving this a try.

Oh, please do so (and let me know how do you like it)!


Update README.md

Codecov Report

Merging #2 into alicelisisi-patch-2 will not change coverage.
The diff coverage is n/a.

@@                 Coverage Diff                 @@
##           alicelisisi-patch-2      #2   +/-   ##
===================================================
  Coverage                 94.8%   94.8%
===================================================
  Files                        2       2
  Lines                      250     250
===================================================
  Hits                       237     237
  Misses                      13      13

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17bc466...44d5cf6. Read the comment docs.


Suggestion for log update

Hello, using your project has been quite impressive and it's truly outstanding. However, I find it bothersome to manually write a tool for deleting existing records when generating a large amount of log data. Is it possible to add a feature in the code that allows clearing the content of a specific page or all pages? I believe incorporating this functionality would greatly enhance the project.

This is an existing feature.


LLaMAConfig缺少

Issue Type
Support
Modules Involved
Documentation/Tutorial/Example
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
spu 0.9.3
OS Platform and Distribution
openEuler 22.03
Python Version
3.9.9
Compiler Version
fcc 10.3.1
Current Behavior?
按照Flax Llama-7B Example with Puma的流程，在执行：
cd examples/python/ml/flax_llama7b
python flax_llama7b_split.py --model_path dir-to-flax-llama7b-EasyLM   --config ./3pc.json
报错No module named 'EasyLM.models.llama.llama_model_splited_transformer'
尝试使用flax_llama7b.py，报错cannot import name 'LLaMAConfig' from 'EasyLM.models.llama.llama_model'
Standalone code to reproduce the issue
print("A bug")

Relevant log output
No response

@Ye-D mind take a look? Thanks

The EasyLM has updated their library, it seems that the LLaMAConfig is updated as LLaMAConfigurator (https://github.com/young-geng/EasyLM/blob/981a2ed9630f44258a94b6f44dff2b7bd203ae8d/EasyLM/models/llama/llama_model.py#L32C7-L32C24). You can try to use this new version, or you a old version, eg, https://github.com/young-geng/EasyLM/tree/08_31_2023

no activity, close


Add source maps

Closing ancient PRs, I see.
On Tue, May 12, 2015 at 1:08 AM, Grant Goodale<EMAIL_ADDRESS>wrote:

Closed #32.
Reply to this email directly or view it on GitHub:
https://github.com/massivelyfun/mf/pull/32#event-302270081

…busted. :)
How’re things? Have you experienced beef yet? Have you accepted beer into your life?

On May 11, 2015, at 4:34 PM, Harry Dean Hudson<EMAIL_ADDRESS>wrote:
Closing ancient PRs, I see.
On Tue, May 12, 2015 at 1:08 AM, Grant Goodale<EMAIL_ADDRESS>wrote:

Closed #32.
Reply to this email directly or view it on GitHub:
https://github.com/massivelyfun/mf/pull/32#event-302270081
—
Reply to this email directly or view it on GitHub https://github.com/massivelyfun/mf/pull/32#issuecomment-101074643.

The floors will be spotless, though the house is already long gone.  :confetti_ball:

Heheh

On May 11, 2015, at 4:58 PM, John Whitley<EMAIL_ADDRESS>wrote:
The floors will be spotless, though the house is already long gone.
—
Reply to this email directly or view it on GitHub https://github.com/massivelyfun/mf/pull/32#issuecomment-101077327.


fix bug in siftUp()

siftUp is wrong if heap size > 3

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 16 Nov 2013 at 3:45
Attachments:

write.go.patch

Add test.

Original comment by<EMAIL_ADDRESS>on 26 Nov 2013 at 4:46
Attachments:

write_test.go.patch

[deleted comment]

Can you add a failing test case?

Original comment by dgryski on 18 Nov 2013 at 1:39


Let's Swift 4.0

@devxoul Hey, thanks for this change. Could you update the .travis.yml file to use xcode9 instead of xcode8.3. The CI is failing silently and this should solve it.

@kylef, no problem!

@kylef, can you release a new version with this patch? :)


chat.go unable to comple: Undefined room

HI Matryer,
I'm having a trouble executing the source code from Blueprints Chapter 1. On execution I get the error, /client.go:17 "Undefined: room". I'm finding this error with both my copy of the code written along with chapter 1 in the book, as well as your source code here in Github. I've created the room.go in the same folder and added the appropriate code, but I'm  uncertain why the client.go isn't registering and executing it. Do you also see this error when executing the source code?
-Thanks, anthonyjp87

How are you running the code?
If you use go run then it won’t compile everything into one binary. Be sure to use go build -o appname to have it bundle everything together, then you can run it with ./appname.
Let me know if that wasn’t the issue.

On 3 Sep 2015, at 12:29, anthonyjp87<EMAIL_ADDRESS>wrote:
HI Matryer,
I'm having a trouble executing the source code from Blueprints Chapter 1. On execution I get the error, /client.go:17 "Undefined: room". I'm finding this error with both my copy of the code written along with chapter 1 in the book, as well as your source code here in Github. I've created the room.go in the same folder and added the appropriate code, but I'm uncertain why the client.go isn't registering and executing it. Do you also see this error when executing the source code?
-Thanks, anthonyjp87
—
Reply to this email directly or view it on GitHub https://github.com/matryer/goblueprints/issues/19.

Many thanks--that was my problem. I'm enjoying this book a lot. -cheers

Apologies if that wasn’t clear in the book.
Great to hear :) You’re going to love Go.
Please close the issue.

On 3 Sep 2015, at 12:59, anthonyjp87<EMAIL_ADDRESS>wrote:
Many thanks--that was my problem. I'm enjoying this book a lot. -cheers
—
Reply to this email directly or view it on GitHub https://github.com/matryer/goblueprints/issues/19#issuecomment-137417011.


ja: Make docs/contribute/_index.md follow v1.18 of the original text

This is a Feature Request

What would you like to be added
Update docs/contribute/_index.md to follow v1.18 of the original (English) text.
Why is this needed
content/ja/docs/contribute/_index.md is outdated.
Comments
/language ja
/good-first-issue
File to update
https://github.com/kubernetes/website/blob/dev-1.18-ja.1/content/ja/docs/contribute/_index.md
Original
https://github.com/kubernetes/website/blob/fb6364d/content/en/docs/contribute/_index.md
diff between translated and v1.18
https://gist.github.com/617d92f5d3392fb9ddf544d9f45a5877
Note
Currently, we use dev-1.18-ja.1 branch. Please open a PR targeting the branch.
ref
https://kubernetes.io/ja/docs/contribute/localization/
If you have a question, feel free to ask us at slack.k8s.io #kubernetes-docs-ja channel.

/close


Our systems have detected unusual activity from your system. Please try again later.

i got this error after the new update

ChatGPT has enhanced its authentication mechanism.


Cosmos: *Properties related code and doc changes

Implement changes captured in https://github.com/Azure/azure-sdk-for-java/issues/11483

Update documentation for getting the request charges of a Cosmos operation.
Update getResourceId() to be package private (it was public).
Update *Properties for Cosmos scripts to package private; add constructor that takes id and body.


ARROW-12569: [R] [CI]  Run revdep in CI

This runs reverse dependency checks using {revdepchecks}. The way that works is by installing a release version of arrow and the current development version (i.e. from the git checkout), and then runs checks on each of the reverse dependencies first with the release (called "old" in {revdepcheck}'s terms) and with the development version ("new" in {revdepcheck}'s terms). Then it compares the outputs and will only fail if there is a failure in the new check that is not in the old check.
I've customized the output a bit so that it prints any errors that come up in either (in the revdepcheck problems step) so we can more easily diagnose, but it will only fail if there are new errors.
One thing that I tried and was unable to do is to find a way to cache packages+info across runs. The github cache action will create a cache, but because of how they are run on crossbow (i.e. on different branches) the caches are never accessible in different runs. I've kept the cacheing step in for now, if we could find a way to (manually?) run this on the main branch like https://github.com/ursacomputing/crossbow/blob/master/.github/workflows/cache_vcpkg.yml before we use this heavily (i.e. likely only around a release) that would create a cache that could be used to speed up some of the jobs.

@github-actions crossbow submit revdep-r-check

@github-actions crossbow submit revdep-r-check

It turns out that the caching isn't actually quite what we want or super helpful, I've remove it and created https://issues.apache.org/jira/browse/ARROW-12826 to come back to this if/when we want. I think to do it the way I was first imagining would take PRs to revdepcheck + a bit more work

@github-actions crossbow submit revdep-r-check

@github-actions crossbow submit revdep-r-check


Verification isn't working, it just spams error

Your issue may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Version used:
Operating System version:

NHentai link (if relevant):

You meant this ?


'react-router' does not contain an export named 'IndexRedirect'.

Version
4.1.1
Steps to reproduce
import { IndexRedirect } from 'react-router';
<HashRouter>     <Route path="/" component={HomePage}>       <IndexRedirect to="home" />       <Route path="home" name="home page" component={Home} />     </Route>     <Route path="admin" component={AdminPage}>       <IndexRedirect to="home" />       <Route path="login" name="login page" component={Login} />     </Route>   </HashRouter>
Expected Behavior
works
Actual Behavior
doesn't work:
'react-router' does not contain an export named 'IndexRedirect'.

You are using the old API. <Index___> components do not exist in v4. Check out the documentation to learn the new API https://reacttraining.com/react-router/


Metrics are buggy when using a cloned scoped sink.

Looks like metrics get wonky if we send the same keys on a clone of a scoped sink.

We fixed this by pulling in nuclearfurnace/hotmic#20 with #76.


dioxus-cli is built with wasm-bindgen 0.2.92 when my application is built with 0.2.93 (when using Nix)

Problem
I want to develop with a Nix environment because that is my preferred workflow.
I would like to note that I have successfully created and ran an app from a Debian environment.
I have seen the flake.nix in this repository and used it for reference, but I prefer not to use flakes (I do not aggressively hold this preference and will probably give way with some coaxing)
If I attempt to serve the template application created by dx, I get the following output:
thecarl@the-carl-tower:~/Projects/ros_assistant/ros-assistant$ nix-shell --pure --run "dx clean && dx serve --platform fullstack" ../shell.nix
/ ⚙ Compiling<EMAIL_ADDRESS>  👑 Build done.                                                                                thread '<unnamed>' panicked at src/builder.rs:188:14:
called `Result::unwrap()` on an `Err` value:

it looks like the Rust project used to create this wasm file was linked against
version of wasm-bindgen that uses a different bindgen format than this binary:

  rust wasm file schema version: 0.2.93
     this binary schema version: 0.2.92

Currently the bindgen format is unstable enough that these two schema versions
must exactly match. You can accomplish this by either updating this binary or
the wasm-bindgen dependency in the Rust project.

You should be able to update the wasm-bindgen dependency with:

    cargo update -p wasm-bindgen --precise 0.2.92

don't forget to recompile your wasm file! Alternatively, you can update the
binary with:

    cargo install -f wasm-bindgen-cli --version 0.2.93

if this warning fails to go away though and you're not sure what to do feel free
to open an issue at https://github.com/rustwasm/wasm-bindgen/issues!

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
\ ⚙ Compiling<EMAIL_ADDRESS>  👑 Build done.                                                                                2024-08-20T21:02:01.895450Z ERROR dioxus_cli::builder: Failed to update wasm-bindgen: Output {
    status: ExitStatus(
        unix_wait_status(
            25856,
        ),
    ),
    stdout: "",
    stderr: "    Updating crates.io index\nerror: failed to select a version for the requirement `wasm-bindgen = \"^0.2.93\"`\ncandidate versions found which didn't match: 0.2.92\nlocation searched: crates.io index\nrequired by package `web-sys v0.3.70`\n    ... which satisfies dependency `web-sys = \"^0.3.61\"` (locked to 0.3.70) of package `dioxus-fullstack v0.5.6`\n    ... which satisfies dependency `dioxus-fullstack = \"^0.5.6\"` (locked to 0.5.6) of package `dioxus v0.5.6`\n    ... which satisfies dependency `dioxus = \"^0.5.6\"` (locked to 0.5.6) of package `ros-assistant v0.1.0 (/home/thecarl/Projects/ros_assistant/ros-assistant)`\n",
  👑 Build done.
  👑 Build done.                                                                                build desktop done

Dioxus @ v0.5.6 [17:02:28]

    > Hot Reload Mode: RSX
    > Watching: [ src, assets, Cargo.toml, Dioxus.toml ]
    > Custom index.html: None
    > Serve index.html on 404: True

    > Build Features: [ server ]
    > Build Profile: Debug
    > Build took: 73907 millis

Error: 🚫 Serving project failed:

Caused by:
    Build Failed: WASM bindgen build failed!
    This is probably due to the Bindgen version, dioxus-cli is using `0.2.92` which is not compatible with your crate.
    Please reinstall the dioxus cli to fix this issue.
    You can reinstall the dioxus cli by running `cargo install dioxus-cli --force` and then rebuild your project

In my attempts to troubleshoot this issue I manually downloaded dioxus-cli and extracted its content to look at the Cargo.lock inside. I found that it depends on wasm-bindgen 0.2.92, so no wonder dioxus-cli has been built with that. What I find bizzare and incomprehensible is that on my Debian system (where this thing works) it built with 0.2.93, which I have no explanation for. As far as I understand, that should not be possible.
Steps To Reproduce
Here is my shell.nix, with extra comments because I don't know if anyone here is familiar with how Nix works.
{}:
let
  # Create a custom Rust package that can build both Linux and Wasm binaries.
  rust-overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/stable.tar.gz");
  rust = pkgs.rust-bin.stable.latest.default.override {
    extensions = [
      "rust-src"
      "rust-analyzer"
      "rustfmt"
      "clippy"
    ];
    targets = [
      "x86_64-unknown-linux-gnu"
      "wasm32-unknown-unknown"
    ];
  };
  rust_platform = pkgs.makeRustPlatform {
    cargo = rust;
    rustc = rust;
  };

  # Standard packages, but I've added my custom Rust environment to it.
  pkgs = import <nixpkgs> { overlays = [ rust-overlay ]; };

  # Build and install dioxus-cli (this is equivalent to `cargo install dioxus-cli --force`)
  # Dioxus-cli from the Nix packages repoistory is on version 0.5.4.
  # I can use unstable to get 0.5.6 but it's built off wasm-bindgen 0.2.92, so I did this to give myself
  # the best chance of getting it built right.
  dioxus-cli = rust_platform.buildRustPackage rec {
    pname = "dioxus-cli";
    version = "0.5.6";
    src = pkgs.fetchCrate {
      inherit pname version; # Just use the same package name and version as the outer scope.
      sha256 = "sha256-cOd8OGkmebUYw6fNLO/kja81qKwqBuVpJqCix1Izf64";
    };
    cargoSha256 = "sha256-shllaNdg9g6fD8qRyCKpN47keFUTu0g96MzVX4BrhXI";
    cargoLock = {
      # Explicitly telling it to use the cargo package's Cargo.lock file. It's probably not necessary but I'm trying here.
      lockFile = "${src}/Cargo.lock";
    };

    nativeBuildInputs = [ pkgs.pkg-config ];
    buildInputs = [ pkgs.openssl ];

    checkFlags = [
      # requires network access, thanks nixpkgs for figuring this out for me
      "--skip=server::web::proxy::test::add_proxy"
      "--skip=server::web::proxy::test::add_proxy_trailing_slash"
    ];

    # Tell openssl-sys to use the system's provided openssl.
    OPENSSL_NO_VENDOR = 1;
  };
in
# Create the shell environment with the following packages in it.
pkgs.mkShell {
  buildInputs = [
    rust
    dioxus-cli
    pkgs.pkg-config
    pkgs.llvmPackages.bintools
    pkgs.glib
    pkgs.gtk3
    pkgs.libsoup_3
    pkgs.webkitgtk_4_1
    pkgs.xdotool
  ];

  # Set environment variables
  shellHook = ''
    export PKG_CONFIG_PATH="${pkgs.webkitgtk}/lib/pkgconfig:$PKG_CONFIG_PATH"
  '';
}

Put that into a shell.nix file and then from the same directory you can run nix-shell --pure to reproduce my development environment.
Run the following:

dx new

Fill out the fields as needed, it's a fullstack app, using the router.

cd project
dx serve --platform fullstack
Observe the error.

Expected behavior
The dx serve command should host a local http server for previewing the application.
Screenshots
No applicable screenshots.
Environment:

Dioxus version:  0.5.6
Rust version:    1.80.1
OS info:         Linux Mint 21.3 (using nix 2.21.0)
App platform:    web (fullstack)

Questionnaire

[x] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

Had a crazy thought, decided to try it, and I think I found a problem. I manually downloaded the dioxis library and extracted its contents. Its missing its Cargo.lock file.
That would explain why I'm building against 0.2.93 when the only mention of wasm-bindgen in the v0.5 branch is 0.2.92. I'm just not sure how we got into this situation and am pretty sure I don't have authority to fix it.

Reinstalling the CLI should fix that error. When you re-install the cli (without the --locked flag), the version of wasm-bindgen will automatically be bumped to the next minor version

Thank you for your assistance.
I am confused by your advice, I haven't installed or reinstalled anything with the --locked flag. I can remove the cargoLock from the cli install step but that didn't change the output (it has the same hash), and it's not like that would make a difference when the package up on crates.io is missing its Cargo.lock anyway.

Yes, I understand that would work on a Debian or other imperative development environment. It actually works in the Nix environment if I run it from within there (with some environment variable jank)
The issue is that Nix is supposed to bring up a build environment, that's ready to work on the first try. I create a fresh and consistent development environment every time I open the Nix shell. It has to build the right dependencies on the first try.
It is specifically this part of my Nix file that is building dioxus-cli:
  dioxus-cli = rust_platform.buildRustPackage rec {
    pname = "dioxus-cli";
    version = "0.5.6";
    src = pkgs.fetchCrate {
      inherit pname version;
      sha256 = "sha256-cOd8OGkmebUYw6fNLO/kja81qKwqBuVpJqCix1Izf64";
    };
    cargoSha256 = "sha256-shllaNdg9g6fD8qRyCKpN47keFUTu0g96MzVX4BrhXI";

    nativeBuildInputs = [ pkgs.pkg-config ];
    buildInputs = [ pkgs.openssl ];

    checkFlags = [
      # requires network access, thanks nixpkgs for figuring this out
      "--skip=server::web::proxy::test::add_proxy"
      "--skip=server::web::proxy::test::add_proxy_trailing_slash"
    ];

    # Tell openssl-sys to use the system's provided openssl.
    OPENSSL_NO_VENDOR = 1;
  };

And for reasons I do not understand, it is compiling against wasm-bindgen 0.2.92 instead of 0.2.93.

I have managed to find a fix for this problem. It's a bit complicated to explain and tedious to work through, so I made this automated tool that also includes documentation on what causes the problem.
To summarize though, Nix's "declarative build" guarantees all dependencies are the same, every time you build, no matter what. If you want to update the dependencies of dioxus-cli, you have to do it explicitly by providing your own updated Cargo.lock.


GridFieldFilterHeader needs form field namespacing

Try to add two GridField instances with the same columns in GridFieldFilterHeader into the same form. Now filter on a column in the first GridField. The data in the ajax reqeust will contain two parameters with the same name, the second overriding the first with blanks.
Alternatively, we could limit data collection to the .gridfield DOM scope

Fixed now, yay! Tested in 4.x with this:
public function getCMSFields()
    {
        $fields = parent::getCMSFields();
        $fields->addFieldToTab(
            'Root.Content',
            (new GridField('Members1', 'Members1', Member::get()))
                ->setConfig(new \SilverStripe\Forms\GridField\GridFieldConfig_RecordEditor())
        );
        $fields->addFieldToTab(
            'Root.Content',
            (new GridField('Members2', 'Members2', Member::get()))
                ->setConfig(new \SilverStripe\Forms\GridField\GridFieldConfig_RecordEditor())
        );

        return $fields;
    }


Multiple labels per point feature?

I'm working on a map where many small point markers are labeled with two different labels, a primary label (left) and a subscript label (bottom-right). This is accomplished via two text styles used in the draw group, along with a points style, however, the labels are not removed when the point is removed due to collision. I need the everything to disappear whenever any one part is removed.
Is this possible?

Sorry for the delay. Unfortunately, there is no built-in way to do this right now. You get nice text handling for anchoring, collision, etc. by attaching/nesting a text block underneath your points, but it only supports a single text label at this time.
If I were trying to hack this myself, I might try something more involved like rendering the various label combinations yourself (either offline, or at run-time such as with the Canvas text API, which Tangram also uses internally), to a sprite with a transparent background, the compositing that, centered on top of the relevant points style (it could still be  text nested under points, with anchor: center). I realize this is a heavy lift, but thought I'd throw it out there anyway :)

Keeping this open to log as an enhancement request.

Thanks! I think that I may have found a workaround for my particular case using Unicode characters for the subscripts, which are always numeric, and centering a single label on the point.


Chromecast stuck at the Plex Loading screen.

I'm like 100% sure this is user error, but I just absolutely cannot figure it out. I just upgraded to 1.x, after going through the steps listed in the "upgrading to 1.x" guide. I think it might be the Plex integration, and not Plex assistant? But the logs are being entirely unhelpful. I added the logger stuff into the config and restarted as the troubleshooting md said.
Step by step:
I tell google to tell plex to play (anything).
The screen goes to the plex loading screen.
Eventually it gives up and says sorry.
Some more information:
Not that this matters too much but just fyi: it worked prior to updating.
If I just use the Plex app on my phone to cast it works fine.
One single time I got this in the log:
2021-04-29 15:14:53 DEBUG (SyncWorker_4) [custom_components.plex_assistant.const] Media titles: 204
and one other time I got this in the log, which either is definitely telling me the problem and I don't know it, or its just telling me I've been testing too much and now I'm being rate limited or something:
Source: components/plex/media_player.py:460
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 3:17:54 PM (1 occurrences)
Last logged: 3:17:54 PM

[139662008863616] HTTPConnectionPool(host='<IP_ADDRESS>', port=32500): Max retries exceeded with url: /player/playback/play?commandID=1&type=video (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0594f390d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f0594f390d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=32500): Max retries exceeded with url: /player/playback/play?commandID=1&type=video (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0594f390d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 642, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 681, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 679, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 790, in async_media_play_pause
    await self.async_media_play()
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 584, in async_media_play
    await self.hass.async_add_executor_job(self.media_play)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/plex/media_player.py", line 460, in media_play
    self.device.play(self._active_media_plexapi_type)
  File "/usr/local/lib/python3.8/site-packages/plexapi/client.py", line 336, in play
    self.sendCommand('playback/play', type=mtype)
  File "/usr/local/lib/python3.8/site-packages/plexapi/client.py", line 210, in sendCommand
    return query(key, headers=headers)
  File "/usr/local/lib/python3.8/site-packages/plexapi/client.py", line 161, in query
    response = method(url, headers=headers, timeout=timeout, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=32500): Max retries exceeded with url: /player/playback/play?commandID=1&type=video (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0594f390d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Any help at all would be greatly appreciated. Thank you!

Also to be clear I don’t think this is a bug, but more of a “help wanted” but that didn’t seem to be an option when I made the post.

http://xxx.xx.xx.xxx:32400: HTTPConnectionPool(host='xxx.xx.xx.xxx', port=32400): Max retries exceeded with url: /resources (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6ebc6d4e50>, 'Connection to xxx.xx.xx.xxx timed out. (connect timeout=3)'))

OMG I GOT IT! Just in case someone else is running into a similar thing: it was due to my plex being on the same computer (but a diff docker container) as my HA. Switched to local IP in HA and it worked!!!


⚠ ClamAV has degraded performance

In 8481709, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 51 ms

Resolved: ClamAV performance has improved in 49f1dbb.


proposal: Add log.NullLogger

I'd like to propose adding a NullLogger instance to the log package which implements a no-op version of log.Logger.
This is obviously a minor improvement, but I run into it often enough that I figure it's worth asking. :) I'd be happy to do a PR for this if you'd like.
Use case
In all of my subpackages, I like to use a package-global log.Logger instance, it typically looks like this:
package foo

import (
	"io/ioutil"

	"github.com/alexcesaro/log"
	"github.com/alexcesaro/log/golog"
)

var logger log.Logger

func SetLogger(l log.Logger) {
	logger = l
}

func init() {
	// Set a default null logger
	SetLogger(golog.New(ioutil.Discard, log.None))
}

Ideally, I'd like for this boilerplate file to be more like:
package foo

import "github.com/alexcesaro/log"

var logger log.Logger = log.NullLogger

func SetLogger(l log.Logger) {
	logger = l
}

You can currently simplify a bit:
package foo

import "github.com/alexcesaro/log"

var logger log.Logger = golog.New(ioutil.Discard, log.None)

func SetLogger(l log.Logger) {
    logger = l
}

But I'm fine with a log.NullLogger. I remember hesitating adding it once.

You're right, not sure why I've been fiddling with init. One correction, you'd still need to import golog in addition.
I'll try to put together a PR for log.NullLogger. :)
Btw, thanks again for making such a great stable/complete logging library. It's amazing how long I've been using it without really running into any problems, and only a tiny bit of room for improvement.

Thank you very much for your kind words :smile:
Lately I have been working on a new logger. It will be more targeted at web apps than to CLI like your ssh-chat. But maybe you will find it interesting. I'll tell you when it is ready.

Indeed, would love to check it out!


Analyzers integration

This PR adds the G-Research analyzers to the pipeline as a dedicated job and silences a warning about a StartsWith usage.
We could add the analyzers run as steps to the build job instead of having a dedicated job for it, but as check-format has it's own dedicated job, I thought this would be more in line with the current practice.
The added ./analyzers/analyzers.fsproj is currently the easiest way to get the DLL files of the analyzers to a known place.

Neat! You've hit a build problem with the later SDKs though, which we haven't had time to dig into: a whole lot of new stuff appears on the API surface. This is true on master.

Hey @Smaug123,
would you like to see warnings like
https://github.com/G-Research/ApiSurface/actions/runs/6560307879/job/17817649809?pr=43#step:7:35
or should we exclude that specific analyzer?

Ooh that's cool - yes please!

After https://github.com/G-Research/ApiSurface/pull/44 goes in, the builds should start passing again.

I think this is ready now. @Smaug123 , do you see anything missing?


Use DragEventArgs for DragLeave event.

What does the pull request do?
Use DragEventArgs for the DragLeave event. This follows the WPF/UWP API and allows pointer information to be retrieved.
Breaking Changes
The DragDrop.DragLeave field was changed from RoutedEvent<RoutedEventArgs> to RoutedEvent<DragEventArgs>.
Fixed issues
Fixes item 3 from #7556.

You can test this PR using the following package version. 11.0.999-cibuild0025040-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


How to switch my midi file into .csv file?

Would you tell me how to switch my midi file into .csv file?

Hello,
You have to translate your midis into event-based representation (e.g., REMI, another of our work). The following page explains the whole procedure:
https://github.com/YatingMusic/compound-word-transformer/blob/main/dataset/Dataset.md
From those "events" you may easily arrange a csv.

Thanks for your work! I use 'Compound-word-transformer' to switch midi file to event-based representation (pkl file). Would you tell me how to switch event-based representation (pkl file) to csv file?

I have the same question

same question


AMB82-MINI can't connect to WiFi AP at home

I manage to use Android smartphone to share hot spot for WiFi connection.
I found this board has a connector for external WiFi antenna, maybe this will make it working.

Sorry, my mistake of not connecting the antenna which comes with the board in the box.
WiFi works perfecetly fine now.
不好意思，我以為不用外部天線，是印刷在板子上，盒子裡有附一條天線，接上去就連線正常了!


Mention prefix option

I checked out the repo, and saw in the Discord.js guide, that it's not possible, to disable the mention prefix.
So I decided to make it availabe to pass it as a setting, to the CommandoClient settings.
If accepted, someone else or me at another point, could work it out, to be guild based, and not only global.
But the option, to enable/disable is better than no option at all.
No open issue about this.

@Gawdl3y I see no real problem with merging this, but it's up to you whether you want this or not.

@Gawdl3y I see no real problem with merging this, but it's up to you whether you want this or not.


1.0

@rultor release tag is 1.0

@rultor release tag is 1.0

@portlek OK, I will release it now. Please check the progress here

@rultor release tag is 1.0

@portlek Done! FYI, the full log is here (took me 9min)


Fix a false positive for FactoryBot/AssociationStyle when EnforcedStyle: Explicit and using trait within trait

Fix: https://github.com/rubocop/rubocop-factory_bot/issues/54

Before submitting the PR make sure the following are checked:

[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[-] Updated documentation.
[x] Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
[x] The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

I updated this PR.

I ran bundle exec rubocop --only FactoryBot/AssociationStyle on a large Rails project I have on hand and did not encounter any errors or false positives.
11593 files inspected, no offenses detected


Remove generated pb code.

Now all protobuf support code is generated when the project is built (using the Makefile).

Might I suggest we also add the *.pb.go files to the .gitignore so this doesn't get annoying?

@noahdietz thanks for suggesting that! Will do.


Create user and role  management

Create a fully-functioning user  management (crud based )

user management interface
role mangement based by permission

@badre429 I am not planning to add this functionality in this project yet, however happy to merge if someone can create a PR for this functionality and if this can easily be removed for people who don't need user/role management. Something like a complete user management module for admins only.


fix(link-list-section): heading now aligns with top items line

Related Ticket(s)
#5012
Description
LinkListSection heading now aligns with the top items, as per AEM specs.

@RaphaelAmadeu I'm not seeing the change?

Hey @kennylam thanks for the review, previously there was top padding on the left container, this pr removes that padding, so it's above the original position now.