Rename translog pruning setting to CCR specific setting and addressed Bug in the test case

Description

Rename translog pruning setting to CCR specific setting

From index.translog.retention_lease.pruning.enabled to index.plugins.replication.translog.retention_lease.pruning.enabled

[Bug] Fix test case issue for translog deletion policy

Issues Resolved
https://github.com/opensearch-project/OpenSearch/issues/1100
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

start gradle check

start gradle check

start gradle check

1.x branch is generating 1.2 build and build is expecting 1.1 artifacts

Building 1.1.0 didn't generate expected file /Volumes/Unix/OpenSearch/OpenSearch/distribution/bwc/minor/build/bwc/checkout-1.x/distribution/archives/linux-tar/build/distributions/opensearch-1.1.0-SNAPSHOT-linux-x64.tar.gz

Actual file generated - opensearch-1.2.0-SNAPSHOT-linux-x64.tar.gz

start gradle check

start gradle check

start gradle check

The build was broke by #1251 where min was added to the artifact and bwc tests are still expecting a file w/o the min label.

start gradle check

unrelated test failure. I opened an issue  Kicking off gradle check again (this is really bad practice; we need better random testing to catch these failures quicker).

start gradle check


Java: Add Timeskill

Add Timeskill
Motivation and Context

Description

Contribution Checklist

[ ] The code builds clean without any errors or warnings
[ ] The PR follows SK Contribution Guidelines (https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
[ ] The code follows the .NET coding conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions) verified with dotnet format
[ ] All unit tests pass, and I have added new tests where possible
[ ] I didn't break anyone :smile:

Looks good, will approve when the improvements from @yoshioterada go in

Added your methods @yoshioterada, thanks!


introduce "compiler-team contributors"

Introduce an intermediate level of member for the compiler team, the compiler team contributor.
This proposal is part of a larger effort to introduce more structure into the compiler team's makeup. This structure should make it easier to become a part of the compiler team, by laying out a clear path to membership and by offering more official roles.
This RFC was collaboratively drafted on the compiler-team repository.
Rendered text.
To do items

[x] Add a mention of GH team structure

cc @rust-lang/compiler -- this RFC tries to formalize what r+ means and also a bunch of our other implicit procedure. For those of you who didn't look at it already, please give it a read!
Note -- I am inclined to move quickly towards (at minimum) formalizing this team in the rust-lang/team repository and adding our first set of nominees (which I previously been discussed on our mailing list). I think we could do this even if we want to discuss some of the particulars that I wrote here for longer, though I suspect we may also be able to move quickly to FCP.

Ah, shoot, I forgot something that I meant to do (so I've added it to a "to do" list in the top issue). I meant to add a mention of the GH team structure. I imagine that we will want to have

rust-lang/compiler -- includes contributors and members, and is generally what you want

rust-lang/compiler-members -- includes only full members

Bikeshedding on names welcome.

@rfcbot fcp merge
I didn't anticipate a lot of controversy with this proposal, and indeed my expectations seem to be met. I propose that we merge this RFC.

@rfcbot reviewed.

@rfcbot review

@varkor rfcbot does not listen to edits made in comments; you need to reissue the command.

@rfcbot reviewed

Huzzah! This RFC has been merged!
Tracking issue: N/A


[Feature] Handling when the stream doesn't allow embedding

I notice some of the new JP Gen6/HoloX disables the embedding function.

Is it possible to change iframe link to the youtube page https://www.youtube.com/watch/Gu_0PP00TgE, instead of the embed link https://www.youtube.com/embed/Gu_0PP00TgE?playsinline=1&enablejsapi=1&origin=https%3A%2F%2Fholodex.net&widgetid=1
result below using Inspect Element

I'm not sure if there is any better alternative.

It's only possible with extension to embed www.youtube.com. Since the problem is probably temporary, we decided to just wait for embed to enabled by Youtube after partnership. There's a few HoloX members that is working now, but we won't make an announcement until everyone has embed available.


chore(readme): add resource links and logo

Description
added some resource links to direct users to learning resources like InfluxDB University and the InfluxData blog. Also created an assets directory to contain the InfluxDB logo and a banner image linking to InfluxDB University. Added subheading with links to additional resources
Context
Goal of updates is to give more visibility to learning resources available to new users of InfluxDB

@tkyocum anything I need to do to get those last 2 tests to pass and get this merged?

@tkyocum anything I need to do to get those last 2 tests to pass and get this merged?

I'll rekick them, those tests don't run on branches from forks.


Sqitch on Windows 10 issue

Hi,
I'm trying to set up Sqitch to work with a localhost MySQL server on my Windows 10 machine. I installed Sqitch through ActivePerl with no issues and I have WAMP set up on my pc. Both are on the same hard drive and in the same directory. MySQL 5.6.17 is what I have currently installed.
However, when I run sqitch deploy from my project's db folder it says
adding the registry tables to db:mysql://root:@localhost/sqitch
then immediately displays
"mysql.exe" failed to start: "The system cannot find the file specified"
I looked and mysql.exe is definitely in my WAMP directory and I can access my localhost db directly from WAMP without issue so I'm pretty stumped as to what the issue can be.

Is mysql.exe in your path?

would running echo %Path% from command prompt show if it was or not?

No, but if you just called mysql and mysql.exe in the command prompt, that would tell us.

I added it to my path system variable and I still get the same response.

You added what? The path should not be to the executable, but to the directory that contains it.
What happens when you just run this in a command prompt?
mysql.exe --version

Or this?
mysql --version

I tried to set the path to the bin folder that the executable is in, then out one more to the mysql5.6.17 folder and then out again to the mysql folder and they all returned the below response.
'mysql' is not recognized as an internal or external command, operable program or batch file. Is the response i get.

Then it's not in your path. I suggest you just tell Sqitch where it is and be done with it.
sqitch config --user engine.mysql.client C:\\path\to\mysql.exe

Ok, when I add that and run sqitch deploy it just brings up all of the options for running mysql. Is there a way to add my username and password to the sqitch.conf so it can make a proper call to mysql? Or is there a better way to go about that?
I appreciate your help.

I recommend that you read sqitch-passwords and sqitch-configuration.

Brushing this one off with RTFM was a bit unwarranted, as there was an actual bug due to the library used by sqitch to run mysql.exe not being designed very well. #413 has a fix for this if you still can use it, @louis-murray. (Or anyone else who finds this via google.)


Added wave-shuffling + fixes wavepsf

Wavepsf

Change wavepsf to only generate a 2D wave.
Added option to use a sine or a cosine wave.

Later, I'll be attempting to implement the following to replace this function: https://onlinelibrary.wiley.com/doi/abs/10.1002/mrm.26499
Wave-Shuffling

Implemented Wave+Shuffling reconstruction. To do regular shuffling, instead of a wave PSF, pass in all ones.
For memory efficiency, acquired data is loaded in as a table of only the acquired lines in kspace along with the (ky, kz) index locations. This is then squashed down with the temporal basis.

Hi Martin!
On the makefile, would you mind elaborating on the modules_w?
On the test, I will say I was worried you'd bring that up 😄 Would it be okay to do that after ismrm? I would need to write code that generates shuffling's temporal basis as well as simulate acquired kspace time-series data and sample it shuffling-style. Maybe @jtamir has an idea on how to implement a test for that same.
On the comments, do let me know! If it's not a significant rework, I'd be happy to incorporate them right away.
Best,
Sid

For the Makefile, is adding the following line what you mean:
MODULES_wshfl = -llinops -lwavelet -liter -llowrank

Makefile: Yes, this should work.
I don't mind merging it without test now, but in the long run it is important to have.
My main other comments:

I do not understand why you need the hack with the adjoint. This is likely to break at some point. As you solve the normal equation, where you need to compute the adjoint first then use the normal operator during iteration, it should be possible to do the adjoint in the adjoint and the normal in the normal....  as we do everywhere else?
Have you looked at wave.c ? Instead of writing a new function for each step, it seems easier to construct the chain of linear operators by chaining linear operators. For many things, these already exist... (FFT, sampling, application of maps, ...)  So this would simplify things quite a bit.
Some of the clear operations in the normal operators do not seem to be necessary. I also do not understand why you flatten the dimensions instead of using the right dimensions. This will make it much harder to use distributed palatalization later.

Best,
Martin

On the makefile, sounds good!
On the test, if it is alright with you, I'd like to put it in as the next pull request! I can open an issue to about testing this as well.
The reason I used the adjoint hack is because if I incorporated the actual forward and adjoint model, I'd have to expand the data into the time/echo dimension which increase the memory usage by a lot. I use the trick of combining the sampling mask and temporal basis (and it's adjoint) into one matrix kernel. Assuming an IST update of AH(Ax - b), I'm doing the following: x_{k+1} = x_{k} - AHA x_{k} + I (AHb), where AHb is calculated by construct_projection and AHA is the normal operator. It also avoids me having to save kspace-temporal data on disk (which would be mostly zeros and huge).
On wave.c, yes I have. To me conceptually, it was easier to implement the sampling-temporal kernel mentioned above without using linop_chain directly.
The flatten dims are only used for clears. If I avoid the clears, I wouldn't need to do the same. I'll test removing the clears as I think I had them in just to be 100% sure I was doing the right thing.

1+2. Ok.
3. I know this trick. I suggested this to Jon ;-) (but it was used by others before) But why is 'construct_projection' not the adjoint and AHA the normal of our operator?   We designed the interface with the ability to override the normal operator exactly so that optimizations like this
can easily be implemented. Our nufft works exactly like this.
4. Well, 'linux_chain' is very convenient and safe... but I guess we can leave it as it is for now.
5. You need some of the clears, but you should move them into the functions and then use the right dimenion of the target object.
3.+5. should be fixed before merging. Thanks!

Very nice work, Sid! Thanks for taking the time to implement and share this.
For the suggestion of using the linear operator interface:
If you set up the space-time matrix kernel as an md_array with dimensions of the sort [nx, ny, nz, 1, 1, nk, nk], then you could implement the operator using md_zmatmul. If you also build the sense/wave operator using the built-in ones as done in wave.c, then you can linop_chain them together. Then the wshfl_normal could be implemented as (pseudocode):
linop_forward(data->sense_op, ...)
operator_apply(stkern_op, ...)
linop_adjoint(data->sense_op, ...)

where sense_op is the sense/wave operator and stkern_op is the operator that applies the matrix kernel. The adjoint would like like:
linop_adjoint(data->sense_op, ...)

Am Dienstag, den 29.05.2018, 11:22 -0700 schrieb Siddharth Iyer:

On construct projection, the goal was also to store acquired data in
as little (disk) memory as possible. To explain my thought process, I
will quickly mention the forward model and the associated symbols to
aid in communication.
y = M P F_yz W Fx R E x
M - Sampling mask
P - Temporal basis
F_k - Fourier transform along direction k
W - Wave point spread function
R - Reshape operator
E - ESPIRiT maps
The input is table of dimensions (readout, channels, number of phase
encode points acquired). So, if 50% of phase encode points are
acquired, we'd only save those 50% phase encode points in the table
without saving any zeros. So table(:, :, k) is the kth phase encode
point acquired, and the (ky, kz) can be obtained from reorder(k, :).
This helps reduce the storage space on disk.

Yes, but packing is a linear operator as well and unpacking its
adjoint. So your forward model is:
y = C M P F_yz W Fx R E x
C operator that collapses data into compressed format

collapse_table then uses this reduced data table format and
calculates PH(y) from it. The need to explicitly calculate y is
avoided before iterations have even started.
construct_projection then takes in this PH(y) and returns (EH RH FxH
WH F_yzH) (PH(y)). It's not exactly the adjoint operation to be used.

Not the adjoint of your forward model, but it is the adjoint of the
one I just wrote down.

For the iterations then, I pass in an identity operator because the z
= AH(y) has already been calculated.

So it is wrong...

Given this, are you saying that since adjoint gets called once
anyway, I should combine collapse_table and construct_projection into
one function and pass that as the adjoint?

Yes.

Given the input-output dimension requirements of linops,

The input dimensions would be the same and the output dimension
would be the dimensions of the compressed format. No problem.

I'm guessing I would need to use the data field to save the table
dimensions and make sure that AH is able to unpack the table
correctly.

Yes.

Also, the dimensions of the linop adjoint will also be a bit of a
white lie.

Not if you do it right.

I assumed it would be easier to just pass in an identity, but if I'm
potentially messing up any optimizations, I'll make the change.

Yes, thank you!
Martin

okay, got it. I didn't think about creating a linop for the table itself. I'll do that!

You may need to merge it with the next linop to implement
it efficiently, i.e. without fully expandind y in the adjoint.
But conceptually, yes.
Am Dienstag, den 29.05.2018, 11:53 -0700 schrieb Siddharth Iyer:

okay, got it. I didn't think about creating a linop for the table
itself. I'll do that!

Completely transitioned to linops.
Creating a forward, adjoint and normal operator for reshaping/ sampling/ temporal basis combined operator. Noted that linop_chain already appropriately uses the top level normal operator when provided.

However, with the new code, I have not been able to replicate the recons from the previous code. When reconstructing simulated data and comparing to the ground truth, the previous version did seem to perform better. There does seem to be numerical noise (I think) and I have a hunch I may not normalizing operators correctly with the linop interface.
Also, with the above variant, the locally low rank sometimes throws a lapacke error: cgesvd failed.
If you have the time, would you mind taking a quick look through the code? No worries at all if not, I appreciate the time you've given me already!

In kern_apply and construct_kernel you use fmac on uninitialized memory which should have been cleared first.
-------- Ursprüngliche Nachricht --------
Von: Siddharth Iyer
Datum:2018.05.31 2:59 AM (GMT+01:00)
An: mrirecon/bart
Cc: "Uecker, Martin" , Comment
Betreff: Re: [mrirecon/bart] Added wave-shuffling + fixes wavepsf (#122)
However, with the new code, I have not been able to replicate the recons from the previous code. When reconstructing simulated data and comparing to the ground truth, the previous version did seem to perform better. There does seem to be numerical noise (I think) and I have a hunch I may not normalizing operators correctly with the linop interface.
Also, with the above variant, the locally low rank sometimes throws a lapacke error: cgesvd failed.
If you have the time, would you mind taking a quick look through the code? No worries at all if not, I appreciate the time you've given me already!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/mrirecon/bart/pull/122#issuecomment-393367071, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB8Tm_sa2Ky0R8tReSg5DUrNl8VGPKODks5t30A-gaJpZM4UPInL.

Alright, it's done! It fixed the problem I was having. Thank you!


[3.0] Run Velum's bin/init as an init container

This will ensure that when the dashboard, api and event processor start,
the database has been created and/or migrated at all times. This avoids
the weird situation in which the api and event-processor can start while
the dashboard was still migrating the database, causing side-effects if
Rails already cached some model attributes on other processes.
Fixes: bsc#1091843
(cherry picked from commit 2dec06e40227abdb847e376ca0dbaf5ddfc10f69)

We need superpowers to merge this one. @flavio, @kiall?


Fix issue 1

This fixes issue 1 (I think)
plus apparently some formatting...
Looks like the white space changes are correct though.

Just tested everything and it seems to fix the issue, thanks :)


[SDL2] Is it possible to use font.bmp as kanji ROM font apart from TTF font?

I have not confirmed the operation,
but it seems to be written in NP2 explanation that
putting default.ttf will create font.tmp.

Thank you for the information.
Although SDL has more versatility, OpenGL seems to be useful because it is fast.
I can not get it right away, but I will refer this info.

Directory where np2kai is installed,
./config/np2kai
Place the default.ttf in.
(It is OK with a shortcut.)
Windows did not do this operation, the font.tmp file was created correctly automatically.
(However, it is only Japanese environment.)
If necessary, install a Japanese font file (msgothic.ttc).
On Linux,
https://github.com/byrongibson/fonts/blob/master/backup/truetype.original/takao-gothic/TakaoPGothic.ttf
Download and rename it to default.ttf and use it.
The X11 version is under investigation.


chatbot

Description
Chatbot for User Interaction and Issue Resolution
Implement an interactive chatbot that can assist users in navigating the platform, answering FAQs, and automating common queries. This would streamline user support, enhance engagement, and reduce the response time for resolving issues or answering repetitive questions. The chatbot can also suggest relevant documentation and direct users to specific solutions.
Screenshots

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[ ] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@Aryakhot As of now, we do not need it. We will let you know in the future if there is a need. Please search for another issue and raise it, which I'm happy to assign to you.


When wrapping a network image with BoxFit.scaleDown in Flutter, an error occur.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
i will show all source code
Expected results
can render the image
Actual results
received some errors
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/box.dart': Failed assertion: line 320 pos 12: 'width > 0.0': is not true.
Code sample
Code sample
import 'package:flutter/material.dart';

/// Flutter code sample for [FittedBox].

void main() => runApp(const FittedBoxApp());

class FittedBoxApp extends StatelessWidget {
  const FittedBoxApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('FittedBox Sample')),
        body: const Center(
          child: FittedBoxExample(),
        ),
      ),
    );
  }
}

class FittedBoxExample extends StatelessWidget {
  const FittedBoxExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 400,
      width: 300,
      color: Colors.blue,
      child: FittedBox(
          // TRY THIS: Try changing the fit types to see how they change the way
          // the placeholder fits into the container.
          fit: BoxFit.scaleDown,
          clipBehavior: Clip.hardEdge,
          alignment: Alignment.bottomRight,
          // case1: work well
          // child: Placeholder(),

          // case2: received some errors
          child: Image.network(
            'https://oss-media.cdn.bcebos.com/content_square/33d57650-8078-9ae5-5f93-7dc50285b4bf.jpg',
            fit: BoxFit.scaleDown,
          )

          // case3: work well
          // child: Container(
          //   width: 200,
          //   height: 200,
          //   child: Image.network(
          //     'https://oss-media.cdn.bcebos.com/content_square/33d57650-8078-9ae5-5f93-7dc50285b4bf.jpg',
          //     fit: BoxFit.scaleDown,
          //   )
          // ),
          ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.1.1 23B81 darwin-arm64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
      Download at: https://developer.apple.com/xcode/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✗] Cannot determine if IntelliJ is installed
    ✗ Directory listing failed
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 3 categories.

I think this might be due to the initial lack of height for Image.network. After wrapping Image.network with a Container (specifying the size) in case3, the error no longer occurs.

Thanks for filing the issue. I can reproduce this on Android and Web platforms. This issue will not happen if I remove the outer FittedBox widget.

Output stack trace
I/flutter ( 1455): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter ( 1455): The following assertion was thrown during performLayout():
I/flutter ( 1455): 'package:flutter/src/rendering/box.dart': Failed assertion: line 327 pos 12: 'width > 0.0': is not
I/flutter ( 1455): true.
I/flutter ( 1455):
I/flutter ( 1455): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 1455): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 1455): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 1455):   https://github.com/flutter/flutter/issues/new?template=2_bug.yml
I/flutter ( 1455):
I/flutter ( 1455): The relevant error-causing widget was:
I/flutter ( 1455):   FittedBox
I/flutter ( 1455):   FittedBox:file:///Users/huynq/Documents/NEVERCODE.IO/RepoduceProjects/reproduce_issues_2/lib/boxfit_139539.dart:32:14
I/flutter ( 1455):
I/flutter ( 1455): When the exception was thrown, this was the stack:
I/flutter ( 1455): #2      BoxConstraints.constrainSizeAndAttemptToPreserveAspectRatio (package:flutter/src/rendering/box.dart:327:12)
I/flutter ( 1455): #3      RenderFittedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:2735:58)
I/flutter ( 1455): #4      RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #5      RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #6      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #7      RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #8      RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #9      RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:280:14)
I/flutter ( 1455): #10     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #11     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #12     RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:456:14)
I/flutter ( 1455): #13     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #14     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #15     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:173:12)
I/flutter ( 1455): #16     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1063:7)
I/flutter ( 1455): #17     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:237:7)
I/flutter ( 1455): #18     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:404:14)
I/flutter ( 1455): #19     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #20     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #21     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #22     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #23     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #24     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #25     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1440:11)
I/flutter ( 1455): #26     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #27     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #28     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #29     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #30     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #31     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #32     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #33     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #34     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #35     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #36     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #37     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #38     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #39     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #40     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #41     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #69     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #70     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #71     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #72     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #73     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #74     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #75     RenderCustomPaint.performLayout (package:flutter/src/rendering/custom_paint.dart:569:11)
I/flutter ( 1455): #76     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #77     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #78     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #79     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #80     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #81     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #82     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #83     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #84     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #85     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #86     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #87     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #88     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #89     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #90     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #91     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #92     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #93     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:21)
I/flutter ( 1455): #94     RenderObject.layout (package:flutter/src/rendering/object.dart:2575:7)
I/flutter ( 1455): #95     RenderBox.layout (package:flutter/src/rendering/box.dart:2396:11)
I/flutter ( 1455): #96     RenderView.performLayout (package:flutter/src/rendering/view.dart:219:14)
I/flutter ( 1455): #97     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2414:7)
I/flutter ( 1455): #98     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1051:18)
I/flutter ( 1455): #99     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1064:15)
I/flutter ( 1455): #100    RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:582:23)
I/flutter ( 1455): #101    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:991:13)
I/flutter ( 1455): #102    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:448:5)
I/flutter ( 1455): #103    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15)
I/flutter ( 1455): #104    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1311:9)
I/flutter ( 1455): #105    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1034:7)
I/flutter ( 1455): #109    _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
I/flutter ( 1455): (elided 5 frames from class _AssertionError, class _Timer, and dart:async-patch)
I/flutter ( 1455):
I/flutter ( 1455): The following RenderObject was being processed when the exception was fired: RenderFittedBox#2c9a1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
I/flutter ( 1455):   creator: FittedBox ← ColoredBox ← ConstrainedBox ← Container ← FittedBoxExample ← Center ←
I/flutter ( 1455):     KeyedSubtree-[GlobalKey#fb0c9] ← _BodyBuilder ← MediaQuery ← LayoutId-[<_ScaffoldSlot.body>] ←
I/flutter ( 1455):     CustomMultiChildLayout ← _ActionsScope ← ⋯
I/flutter ( 1455):   parentData: <none> (can use size)
I/flutter ( 1455):   constraints: BoxConstraints(w=300.0, h=400.0)
I/flutter ( 1455):   size: MISSING
I/flutter ( 1455):   fit: scaleDown
I/flutter ( 1455):   alignment: Alignment.bottomRight
I/flutter ( 1455):   textDirection: ltr
I/flutter ( 1455): This RenderObject had the following descendants (showing up to depth 5):
I/flutter ( 1455):     child: RenderSemanticsAnnotations#e1cdd relayoutBoundary=up1 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
I/flutter ( 1455):       child: RenderImage#2c6eb relayoutBoundary=up2 NEEDS-PAINT
I/flutter ( 1455): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 1455): Another exception was thrown: RenderBox was not laid out: RenderFittedBox#2c9a1 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
I/flutter ( 1455): Another exception was thrown: RenderBox was not laid out: _RenderColoredBox#47595 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
I/flutter ( 1455): Another exception was thrown: 'package:flutter/src/rendering/shifted_box.dart': Failed assertion: line 345 pos 12: 'child!.hasSize': is not true.
I/flutter ( 1455): Another exception was thrown: RenderBox was not laid out: _RenderColoredBox#47595
E/ion     ( 1455): ioctl c0044901 failed with code -1: Invalid argument
I/eproduce_issue( 1455): ProcessProfilingInfo new_methods=1556 is saved saved_to_disk=1 resolve_classes_delay=5000
D/ProfileInstaller( 1455): Installing profile for com.example.reproduce_issues

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.16.2 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e1c857886 (9 hours ago), 2023-11-30 11:51:18 -0600
    • Engine revision cf7a9d0800
    • Dart version 3.2.2
    • DevTools version 2.28.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe Patch 3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 119.0.6045.199

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.18.0-2.0.pre.22, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.18.0-2.0.pre.22 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bfaacd5ef8 (12 minutes ago), 2023-12-04 22:48:25 -0500
    • Engine revision f43ef6cbdd
    • Dart version 3.3.0 (build 3.3.0-190.0.dev)
    • DevTools version 2.30.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe Patch 3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
    • iPhone (mobile)  • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.8 19H370
    • macOS (desktop)  • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome                                   • web-javascript • Google Chrome 119.0.6045.199

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

@huycozy
Thank you for your answer. Removing the FittedBox widget works well, but in case2 (in the example), I want to position the image at the bottom of the Container widget and make it flexible.
When I use FittedBox to wrap a network image, it works well with other values for the fit attribute. However, when I use BoxFit.scaleDown, it throws an error.

What do you think should be the correct behaviour @ehxie?


tmc2226

I could not find any documentation for the tmc 2226 stepper driver. I would like to know how I should set the jumpers and how I should set the axes up using that board in the code.

Its most likely like the tmc2209 (so like stepstick) but it would be nice to have that confirmation.

That is a UART controller stepper driver. The 6 pack does not support those for multiple reasons. Read here on what drivers are supported.
https://github.com/bdring/6-Pack_CNC_Controller/wiki/Supported-Stepper-Drivers

i get that i cant run it using uart but can it be run in "step stick" mode?
i already have this driver and would like confirmation that it works like the 2209:
UART type motors like TMC2209 are not supported yet. The TMC2209 can be used in StepStick mode, called SilentStepStick. The UART is not used, so you are forced into 16x microstepping and SpreadCycle (not silent) mode. Set jumper like StepStick drivers.


Opacity functions

It'd be great if there was opacity functions, e.g. http://sass-lang.com/documentation/Sass/Script/Functions.html#alpha-instance_method http://lesscss.org/functions/#color-operations-fadein

If you want to give it a go, send me a pull request.


If alembic migrations was used in setup, registering new user results in IntegrityError

Immediately after a new user is registered, the dpr-api server callback throws an error:
--------------------------------------------------------------------------------
<IP_ADDRESS> - - [07/Dec/2016 20:03:37] "GET /api/auth/callback?code=ZcGE7BYL1AWyx3of HTTP/1.1" 500 -
--------------------------------------------------------------------------------
ERROR in controllers [/home/z/pproj/dpr-api/app/mod_api/controllers.py:449]:
(psycopg2.IntegrityError) null value in column "id" violates not-null constraint
DETAIL:  Failing row contains (null, 2016-12-07 17:04:29.359747, 2, 2, OWNER).
 [SQL: 'INSERT INTO publisher_user (created_at, user_id, publisher_id, role) VALUES (%(created_at)s, %(user_id)s, %(publisher_id)s, %(role)s) RETURNING publisher_user.id'] [parameters: {'user_id': 2, 'created_at': datetime.datetime(2016, 12, 7, 17, 4, 29, 359747), 'role': u'OWNER', 'publisher_id': 2}]

@subhankarb can you look at this - can we get this under test in some way?

@rgrp let me check. this id is autoincrement should not behave like this.

@subhankarb I investigated a bit. This is an issue with migrations. When db created with python manage.py createdb it works. The error appears only when db created with python manage.py db upgrade. Though after a quick look I did not find any difference in the database.  Maybe we can delay this issue for the future.

@Fak3 could you add to the issue description when exactly that error happens. E.g. when were you calling the API.

@rufuspollock I added "immediately" to hopefully be more clear. It is a callback that is triggered by auth0 on user register event.

Putting into Icebox until we will really need migrations.


How to use docker_platform-devel ?

Hello,
I have built the container from latest dockerfile, but now I'm lost:
which command to run and how to use the container to enable development ?
Thanks in advance for your help.

Hi, sorry didn't notice the notifications.
Basically this is a repository hosting all the Ubuntu Touch platform development docker images. It means all the images here are used as the build environment when you're either porting or developing a new Ubuntu Touch based device. It's a build environment, just like the build environment your need for developing Android devices. So just execute docker run -it <image name> /bin/bash and it gives you a working environment for targeting device.


Doc issues

Hi! Really nice lib. I've read the readme and there were some things I would change.

the sentence "In the case of the latter this only occurs for the Boolean type" doesn't make sense to me. Could you say this differently?

the function 'triple_input' doesn't triple the input. consider calling it cube_input, or changing the body to 3*x.

you first use a function called double_input in Rust to create a function called doubleInput in Haskell through FFI. Then you use an unrelated function called doubleInput and import it into Rust. That's confusing. Use a function with a different name in the second example, for example quintupleInput = 5*x.

rather than call functions double_input, square_input etc call them double, square. Obviously functions work on their inputs. :)

Thanks!

Thanks for bringing these to my attention! I wasn't as thorough as I should have been with the README file. When I get the chance I'll be sure to update it.

I went ahead and implemented your suggestions here. Thanks for opening up the issue!


Handling version numbers and ref sorting

Currently the references are sorted based on remote (it is a remote or local reference), but this doesn't take into consideration the date or refname of the references. Where this is a problem is with tags that are semantic versions. For example, in my project I have tags v0.7.0 and v0.7.1. By the default sorting of sorted this will process v0.7.0 first. If I identify this version as 0.7 then that means the 0.7 version of my documentation will be based on the older tag which I assume is undesirable in most cases. I think a simple fix might be (reverse the sort and negate the is_remote):
    if config.smv_prefer_remote_refs:
        gitrefs = sorted(gitrefs, key=lambda x: (x.is_remote, x.refname, *x), reverse=True)
    else:
        gitrefs = sorted(gitrefs, key=lambda x: (not x.is_remote, x.refname, *x), reverse=True)

We have a use case where we're using codenames and not specific versions. There's currently a debate about whether to sort it forwards or reverse alphabetically. It would be great if there was a way to control or override the sort generally depending on the preference of the developer/documentation writer. Just changing the default will make it work better for some cases and worse for others.

Yeah understood. In the case of code names though, each code name is resolved to a separate output version/directory, right? In the case above my 0.7.x versions need only the newest one to be created. Currently this doesn't work.
Of course having options for all of this would be nice.


Cron Expression not being accepted

From @siddhantsorann on October 29, 2018 6:2
Description:
Cron expressions which have been used in Java are not being accepted. There seems to be an issue with the regex format uploaded to scdf kubernetes server. "0 0 0/1 * * ?" This particular expression represents every hour, every day. But its not being accepted in scdf server as the regex format added there is "^a-z0-9?$" which doesnt allow spaces, decimals, fraction and "?", all of which are used to represent a cron expression.
v1.7.0.RELEASE Kubernetes
Copied from original issue: spring-cloud/spring-cloud-dataflow#2521

The expression is dictated by Kubernetes - they use the "standard" fields and expressions except where noted in the docs: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/
Your schedule can be tested outside of data flow and directly against k8s with kubectl, for example:
$ kubectl run hello --schedule="0 0 0/1 * * ?" --restart=Never --image=busybox -- /bin/sh -c "echo hello"
The CronJob "hello" is invalid: spec.schedule: Invalid value: "0 0 0/1 * * ?": Expected exactly 5 fields, found 6: 0 0 0/1 * * ?

@chrisjs I am familiar with that but the issue is that I am unable to add a schedule via the spring cloud dataflow UI. It is not accepting the cron expressions used by kubernetes or any other service.

@siddhantsorann the schedule you provided is not accepted when using kubectl directly - i.e.: without going through data flow as i posted above. do you have a schedule expression that is failing in the data flow UI but works when using kubectl directly?

@chrisjs "0 0 0/1 * * ?" is the cron in the expression you provided. This is not being accepted by the scdf server.
Error:
Failed to create schedule CronJob.batch "test" is invalid: spec.schedule: Invalid value: "0 0 0/1 * * ?": Expected exactly 5 fields, found 6: 0 0 0/1 * * ?

@siddhantsorann its an invalid expression (below is not SCDF):
$ kubectl run hello --schedule="0 0 0/1 * * ?" --restart=Never --image=busybox -- /bin/sh -c "echo hello"
The CronJob "hello" is invalid: spec.schedule: Invalid value: "0 0 0/1 * * ?": Expected exactly 5 fields, found 6: 0 0 0/1 * * ?
$

@siddhantsorann this is not DataFlow that is rejecting the expression.  Its Kubernetes itself.    An example expression would be : */1 * * * *
If you notice in @chrisjs example above he is using kubectl to create the cronjob.

@cppwfs Thanks. Understood the problem. Different formats.


quickstart.md lldb

In the quickstart post you mention lldb not having a load command. For a workaround for devices that support st-link you can use st-flash to load. You have to use arm-none-eabi-objcopy to convert the elf to a bin first, but it's pretty easy to automate with a makefile or script.

Thanks for the info. Some questions: Can you continue with the debug session when you flash the binary externally? Do you have instructions (lldb commands) that I could try?

Just gave it a try, looks like it's still not working due to the issue here https://stackoverflow.com/questions/36287351/how-to-setup-lldb-with-openocd-and-jtag-board
Here's a thread with some info on how to fix it. http://comments.gmane.org/gmane.comp.debugging.lldb.devel/3405
Looks like nobody's submitted anything official though.

Hey there!
I got it working on my stm32f4x based discovery board. I used openocd to connect to my stlinkv2-1, and then arm-none-eabi-gdb to load the program and set up the debugger.
break main
load
stepi
monitor arm semihosting enable
detach
quit

After loading the program with gdb, I connect with rust-lldb:
target create target/thumbv7em-none-eabihf/debug/hello-world
gdb-remote localhost:3333

It even works with the vscode-lldb plugin in vscode, and the experience is great. It shows all the registers of the MC grouped in the UI, and I can even modify register values etc...
Here is my .vscode/launch.json:
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "custom",
            "name": "Custom launch",
            "targetCreateCommands": [
                "target create ${workspaceFolder}/target/thumbv7em-none-eabihf/debug/hello-world"
            ],
            "processCreateCommands": [
                "gdb-remote localhost:3333"
            ],
            "sourceLanguages": [
                "rust"
            ]
        }
    ]
}


Sort by extension location

While testing https://github.com/microsoft/vscode-remote-release/issues/7887 I realized that there is no way for me to sort the extensions by whether they are UI/Workspace or local/remote extensions.

Is not the default view shows local and remote extensions sections? Is not that serving the purpose?

True. However, using the @installed or other queries is the most predictable presentation I can go for. I.e. I don't have to think twice what I see, or what is folded away, or anything like that. In this particular case I had just created a dev container and wanted to check what's inside. Since I use mostly keyboard shortcuts cmd+shift+x, @installed is very quick.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


Update package.json

So that it produces a valid Vue library, that can be used by external users.
Also test the produced artifacts locally with a test project.

Ref: https://cli.vuejs.org/guide/build-targets.html#library


Geo.dataToPoint() question

Version: 3.2.2
I'm generating a map with stacked column charts:

where column charts are positioned using unofficial geo coordinate system API:
var xy = geo.dataToPoint(latlong);
It roams perfectly fine when there is no geo center specified:

However, if I set center:[] such as this:

roaming is not working as expected (column chart jumps):

What is interesting is that those green triangles (scatter symbols) work without any issues. However I wasn't able to find whether there is another method I could use to get XY correctly from geo coordinates.
Is there any way to retrieve correct XY from geo coordinate @pissang? Or is this a possible bug?
Thanks for any info!

It seems to be a bug of echarts. Can I have more detailed code?

Hi @pissang , here is a code example that can be pasted into your examples code editor at http://echarts.baidu.com/examples.html
zoom-issue-geo.zip
You can see this result when zoomed:

See that scatter is updating correctly where xy position of the grid is not.
If you remove center:

it works as expected..
Thanks for looking at it!

Check this http://gallery.echartsjs.com/editor.html?c=xH1er8rGT&v=1 please.
The update function is modified as follows and all correct:
var update = function(){
    var model = myChart.getModel();
    var geo = model.getComponent('geo').coordinateSystem;
    var latlong = ["14.550072", "47.516231"];
    var xy = geo.dataToPoint(latlong);

    var grid = option.grid[0];
    grid.left = xy[0];
    grid.top = xy[1]-grid.height;

    myChart.setOption({
        grid: {
            left: xy[0],
            top: xy[1] - grid.height
        }
    });
}

I see, thanks heaps @100pah! Your gallery looks awesome btw!


Fix/update readme

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[ ] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #17491
Description

Added a line break before 'Projects' in the six core certifications sections.
Removed spacing on either side to the word 'Projects' in the core certifications section.

@mmhuntsberry
Nice work and congratulations on your first PR! Thanks and happy contributing!

@raisedadead
Thank you so much for all your help!!!


add auto scroll option

This is definitely desirable!

This is definitely desirable!

Yes, but calling scroll down has problems:
this.scrollEnd() clears view and show a spinner to the user until data loaded. It's not good, autoscroll should load data in background and show it when it ready to avoid blinking and showing a spinner.
Autoscroll is a hard task, it's not easy to implement it properly. I have an idea how to do it, I hope I'll be able to implement it on this week or on the next week.

Autoscroll is implemented in v1.0.6


Prefer ENCLOSE_IO_USE_ORIGINAL_NODE to enclose_io_fork

re-hack child_process.fork and test it
inject test/fixtures into memfs when running enclose.io-added Node.js tests
add enclose-io-compiler test
add test/enclose-io test suite

cc @shaoshuai0102

Current coverage is 92.03% (diff: 100%)

No coverage report found for master at 4beaafd.

Powered by Codecov. Last update 4beaafd...cf6708b


Corrections of blog overview page

Hi @tobifroe,
the blog overview page shows a few behaviors that need to be corrected. See video attached.
https://user-images.githubusercontent.com/5262921/124748083-f65b6900-df22-11eb-9476-8a058004f7b0.mp4

@Truthans This is fixed. FYI: The grey background was caused by the button being in focus. I changed the focus style to match the hover style in this section.

Works, thanks a bunch!


FEAT: HomePage Search Error Issue #136

Fixes #136
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings
[x] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

@oshi36 Kindly review this PR and merge it. I've added the search functionality.

Hey @mrmayurgithub , LGTM, Just Change the background of the Search Page to Dark Theme as a Bright white page for a dark theme based app looks odd..

Sure.

@avinashkranjan I've made some minor changes. But I am unable to change the background color, as I don't know completely about searchDelegate in Flutter.
I think creating another issue regarding this will help, and maybe someone else will work on it.
So, Kindly merge the PR, as I've implemented the search function successfully.

@avinashkranjan I've made some minor changes. But I am unable to change the background color, as I don't know completely about searchDelegate in Flutter.
I think creating another issue regarding this will help, and maybe someone else will work on it.
So, Kindly merge the PR, as I've implemented the search function successfully.

in the Scaffold, use background color:  as Theme.of(context).backgroundColor.... hope it helps

@avinashkranjan I've made some minor changes. But I am unable to change the background color, as I don't know completely about searchDelegate in Flutter.
I think creating another issue regarding this will help, and maybe someone else will work on it.
So, Kindly merge the PR, as I've implemented the search function successfully.

in the Scaffold, use background color:  as Theme.of(context).backgroundColor.... hope it helps

I haven't used any Scaffold or something for the search screen, I've extended a class called DataSearch wth SearchDelegate, that's provided by Flutter. And I think we can only use overrides in that class. I knew about the appbartheme override, so I have changed the background color in appbar.

@avinashkranjan Kindly, merge the PR. I have been giving my exams, so I am still a little bit busy. I think someone will surely solve this background colour issue in Level 0.


BUG: raise on sparse.neg for bool

Title is self-explanatory.  Closes #5843.

On recent numpy master (1.12.0.dev0), this happens:
In [13]: -np.array([True], dtype=bool)
/usr/local/bin/ipython:1: DeprecationWarning: numpy boolean negative, the `-` operator, is deprecated, use the `~` operator or the logical_not function instead.
  #!/usr/bin/python
Out[13]: array([False], dtype=bool)

So it appears that the behavior we're trying to emulate is really np.logical_not/__invert__, which is a complete reversal of the sparsity structure. As of now, sparse matrices don't implement __invert__, just like they don't implement spmatrix + 1, because this is likely to balloon your memory usage in the target case of a huge matrix with few nonzeros.
Therefore, I think it makes more sense to do something like:
def __neg__(self):
    if self.dtype.kind == 'b':
        raise NotImplementedError('inverting a sparse boolean matrix is not supported')
    return self._with_data(-self.data)

@perimosocordiae : While I cannot replicate the warning you are seeing with the most recent version of numpy, I do see your point about the boolean inversion, which I agree with and was in fact a nagging concern when I wrote this.  I'll change the behaviours and tests to that then.

@perimosocordiae : Made the changes so that it errors now, and Travis is happy.  Ready to merge if there is nothing else.

This looks good to me, but because it's technically a backwards-incompatible change, I'll wait to get a +1 from @pv or another maintainer.

@pv and others: any updates on this?

@pv and others: any updates on this?

@pv and others: any updates on this?

@pv and others: any updates on this?

Skipping Travis builds for now until the issue on master (see here) has been fixed.  In the meantime, additional comments, especially from other maintainers would be appreciated!

@pv, @ev-br, or others: any updates on this?

@Eric89GXL , @pv, @ev-br, @rgommers, or others: any updates on this?

@Eric89GXL , @pv, @ev-br, @rgommers, or others: any updates on this?

@Eric89GXL , @pv, @ev-br, @rgommers, or others: any updates on this?

@Eric89GXL , @pv, @ev-br, @rgommers, or others: any updates on this?

No comments for a few weeks, so I'm merging. Thanks, @gfyoung!


Update environment-modules version for Alma

The version of Environment Modules that comes with AlmaLinux 8 is quite outdated (4.5.2).
We would like to improve the user experience with modules, in particular by showing only the important ones while hiding all the unnecessary dependencies, thanks to a functionality introduced in version 4.7, that can be exploited by spack (see this PR).
I therefore propose to install an updated version of environment-modules.
Here I use version 5.0.1, which is the one shipped with AlmaLinux 9.

Given this is approved, anything stopping this from being merged?


skaffold: fix-not-planned

We decided to mark these two vulnerabilities as fix-not-planned due to how behind upstream skaffold is at the moment.
Happy to add more details if you think it isn't enough.

This should be pending-upstream-fix since skaffold is still supported!


fix(@angular/build): use sha256 instead of sha-256 as hash algorithm name

Stackblitz appears to fail when attempting to use crypto.createHash with an algorithm value of sha-256. Since Node.js supports both the hyphenated and unhyphenated values, the later is now used to avoid issues when running on Stackblitz.

The changes were merged into the following branches: main, 19.0.x


When playing it in Shaka, I found that the player got stuck occasionally at period boundaries. The loading circle keep spinning and the browser keep retrieving the manifest regularly, but there is no attempt to download the segment files.

After briefly digging in the Shaka code, I found the issue is likely caused by error in floating point manipulation. Shaka uses the start time of last-period and the presentation time of last segment to find the next period and segment to play. However, when it compare the time values, minor error introduced in floating point manipulation would cause it to miss the correct period/segment. Then Shaka will keep waiting for segment in the last period which is already over.
Here is the screenshot for Chrome's debug console. The "findPeriodContainingTime_" function should return period 12, but it didn't due to the small error in the time value passed to the function.

Here is the sample manifest, the player has problem loading period "13":
multi-period-stuck-floating-error.mpd.txt
The same issue happens on at least the following functions:

https://github.com/google/shaka-player/blob/master/lib/util/stream_utils.js#L513
https://github.com/google/shaka-player/blob/master/lib/media/segment_index.js#L78

My MPD has a timescale of 1000, but I guess the same problem would occurs with any timescale > 1, since floating point errors happen even when there is only a few significant digits, e.g. 0.1 + 0.7 = 0.7999999999999999 < 0.8
I did a quick workaround to compensate for 1ns when comparing time values, and the stuck no longer happen. So I guess Shaka should compensate for floating point errors when it lookup the period/segment with computed time values.
Shaka: master checkout from github (40a92b6)
Chrome: 56.0.2924.28 beta (64-bit)

Reproduced with latest commit today (3cd2506)

Would it be possible to get a live (playable) version of the manifest so we can test that our fix actually works?  You can send it privately if you want (my email is in CONTRIBUTORS and on my profile).

Sorry, I am not be able to host the MPD right now.
Maybe I can help verify the fix or I can publish the stream to some external WebDAV server.

It would be really helpful if you could give us something to test ourselves.  But in the meantime, can you try the following patch:
diff --git a/lib/dash/mpd_utils.js b/lib/dash/mpd_utils.js
index 7ee7dee..993ef05 100644
--- a/lib/dash/mpd_utils.js
+++ b/lib/dash/mpd_utils.js
@@ -320,12 +320,8 @@ shaka.dash.MpdUtils.fitSegmentReferences = function(
             firstReference.startByte, firstReference.endByte);
   }

-  if (dynamic)
+  if (periodDuration == null || periodDuration == Infinity)
     return;
-  goog.asserts.assert(periodDuration != null,
-                      'Period duration must be known for static content!');
-  goog.asserts.assert(periodDuration != Infinity,
-                      'Period duration must be finite for static content!');

   var lastReference = references[references.length - 1];

I just pushed a change that might help your problem.  I think the problem is that the last segment of the Period before it isn't being adjusted to the end of the next Period.  This introduces a gap that makes us try to fetch the wrong Period.
@albertcsm Please try again from master.

We believe this bug has been fixed.  Please let us know when you have a chance to test.

The problem seems solved in the master branch, thanks.

Thank you for letting us know!


MI-351 - resolved array error in agency terms walker

Backend error when debug turned on.

Commit comment is not informative enough, please see the style guide for guidelines
Have a look at the origin of the branch you're merging; it's trying to merge 19 commits, 18 of which not being yours and already merged. Can you please rebase your commit to clean up the history?


The images about [Verify data transform] are displayed as code blocks in MS Edge browser

As title,
The images under Verify data transform and transfer are displayed as code blocks other than images.
OS: WIndows 10 Enterprise 18363.778
Browser: MS Edge 81.0.416.72

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

ID: 52c02d37-2a56-5b78-7001-794f2e096e53
Version Independent ID: 79b4988e-e53a-0f89-f87a-273af993419a
Content: Tutorial to filter, analyze data with compute on Azure Stack Edge
Content Source: articles/databox-online/azure-stack-edge-deploy-configure-compute.md
Service: databox
Sub-service: edge
GitHub Login: @alkohli
Microsoft Alias: alkohli

@vuryleo Can you share the screenshot the image?

Here you go!


disallows duplicate arms in ++wisp

added this now that #270 has been merged -- see #199 for discussion.
closes #199

But does it work? (Serious question, the status of this has been murky to me.)

Yes. As demonstrated in #199, it works in generators and :dojo expressions (although you have to manually for a "reload" of :dojo first). I just tested it in apps and vanes, it works there as well.

The UX could definitely be improved: from more sophisticated error logging (currently [%duplicate-arm %foo]) to earlier detection when parsing (currently errors at the arm after the duplicate arm, or the end of the core, whichever comes first)

Cool. Expect it Friday.


error when trying process Typescript files

TS version: 3.0.3
import-sort-cli: 5.2.0
When i trying to process .ts or .tsx i got following error :'(
TypeError: parser.parseImports is not a function
But with .js files all working well.
package.json
  "importSort": {
    ".js, .jsx, .es6, .es": {
      "parser": "babylon",
      "style": "eslint"
    },
    ".ts, .tsx": {
      "parser": "typescript",
      "style": "eslint"
    }
  },

@felixcatto Did you manage to make it work? I'm facing the same issue

Aha! It works after installing additionally the proper parser:
npm i -D import-sort-parser-typescript

@felixcatto Did you manage to make it work? I'm facing the same issue

Nope, i just read that in other languages imports stays unsorted and it is ok :)

@renke What do you think about mentioning this in docs?

Seconded. It would be helpful to mention this in the README.


CPU intensive?

I really love the plugin, but on my machine (Macbook Pro "15 M1) I observe it using up to 45% of the CPU in spikes once or twice every second - on average causing a few percent higher CPU load than without the plugin running. Could this a bug or does it really need this many resources to work properly?

Hi Emil, on my machine it sits at 0% most of the time, rising to 1-2% occasionally (just by looking at activity monitor stats). autokbisw essentially only listens to keyboard events and does a system call if needed, hardly any CPU required. Could you share how you measured 45%?  ;-)


User profiles

As today we have a profile concept but it is related only to the platform , we should introduce a user profile concept as a way to share common options among integrations
something like:
apiVersion: camel.apache.org/v1alpha1
kind: IntegrationProfile
metadata:
  name: my-profile
  labels:
    app: "camel-k"
spec:
  configuration:
    - type: "property"
      value: "my.property=my.value"
    - type: "property"
      value: "my.property=my.value"
  traits:
    container:
      configuration:
        enabled: true
  dependencies:
    - mvn:org.apache.camel.k/camel-k-runtime-main
    - mvn:org.apache.camel.k/camel-k-loader-js

User should be able to use it with something like:
kamel run integration.json --integration-profile my-profile

@nicolaferraro I'm not sure if this is still relevant, feel free to close it if it does not make sense anymore

@christophd I guess we can close this with https://github.com/apache/camel-k/pull/5138 - or is there still some leftover to complete?

@squakez yes, this can be considered as done, thx!


Cardano.Crypto.Util.nonNegIntR relies on Int being 64-bit

Cardano.Crypto.Util.nonNegIntR (link) sounds like it should return non-negative integers. However, it relies on the Int type being at least 33-bits wide (so that the max value is at least 2^32-1), which in practice would be 64-bit, while the Haskell spec states that Int has "at least the range [-2^29 .. 2^29-1]". In practice, if Int is Int32, half of the time this function will return a negative value. (See input-output-hk/ouroboros-network#770).

The haskell spec is pretty much irrelevant because there really is only one Haskell compiler (GHC) that people could use to compile a project like this. Furthermore, on 64 bit archtectures GHC's Intis a 64 bit signed integer and we currently only support Linux, Mac and Windows on x86_64.
However, in cases where data should be non-negative, Word is probably a better choice than Int.

The haskell spec is pretty much irrelevant because there really is only one Haskell compiler (GHC) that people could use to compile a project like this. Furthermore, on 64 bit archtectures GHC's Intis a 64 bit signed integer and we currently only support Linux, Mac and Windows on x86_64.
However, in cases where data should be non-negative, Word is probably a better choice than Int.

Hi Eric, how does the whole

we currently only support Linux, Mac and Windows on x86_64.

tie in with Cardano on Rocks initiative which was highly marketed as a added value of Cardano and PoS in general? It was even mentioned by @CharlesHoskinson several times, including this one as a marketing pitch.
Current set of issues is not only this particular one, but also requirement for GHC bootstrap as the used version of GHC is not pre-compiled for ARM64 platform.

I made that statement on July of 2019. I was not aware of the desire to support ARM64 at that time.

Sure, and I hope you're not taking it personally, but I have actually tried to build cardano-node as a whole on AArch64 (ARMv8) when writing the README.md guide, so I am asking about it as many people made the investment for the hardware for the ITNv1. I haven't given it much time, but attempt to build on this arch results in:
No setup information found for ghc-8.6.5, bindist has not yet been added for OSkey linux-aarch64.
Supported versions ghc-8.2.1 8.2.2 8.4.1 8.4.2 8.6.2 8.8.1 8.8.2

Latest version I found for AARCH64 was 8.6.3 which is actually missing as per ghc#16060.
Anyhow, any version haskell stack has been able to download and install was ghc-8.4.1 and I have not tried to use that to bootstrap the cardano-node required version as defined in stack.yaml - ghc-8.6.5 because I had no free machine time for that yet.
I suppose we should move ARM support as a separate issue into the cardano-node repo and take it from there step-by-step? To at least identify if there are actuall issues other than build infrastructure bootstrap? Or would you prefer to continue the conversation here?

Current set of issues is not only this particular one, but also requirement for GHC bootstrap as the used version of GHC is not pre-compiled for ARM64 platform.
I've not tried cardano on rocks, but I own two Rockpi boards which I'm using to test cardano-node on.

The requirement to compile a new version of ghc is a linux dist/ghc  issue and not a problem with cardano. Last year Armbian shipped with ghc 8.0.x  which meant that one would have to compile ghc 8.4.2 in order to compile ghc 8.6.x.
At the moment I'm aware of one issue which affects rockpi, and Arm boards in general, https://gitlab.haskell.org/ghc/ghc/merge_requests/734 . That bug requires us to run cardano-node using with a single OS thread (+RTS -N1).

@mark-stopka
Forgot one more issue.
There is bug with the HW offloading for TCP checksum calculations on rockspi so it must be disabled.
Command:
/sbin/ethtool --offload eth0 rx off tx off

@karknu, it also seems the pull request you linked was fixed by PR 1128, which should be part of 8.8.1 GHC build.
As per the faulty TCP offload engine it seems nobody ever touched that part of code in the kernel.

The requirement to compile a new version of ghc is a linux dist/ghc issue and not a problem with cardano.

It's a haskell stack issue, I looked into it and recent enough versions of stack should support GHC bootstrap, so I try to look into it and kill two flies with one stone, because pre-compiled GHC from hackage also requires libtinfo.so and the linker does not recognize libtinfo.so.6 as a valid candidate. Looks like hackage dist versions of GHC are build on Debian / Ubuntu platform and requires an ugly symlink hack on all other platforms compliant with LSB.

I would recommend cabal over stack. The majority of the teams working on the new code base prefer cabal.

nonNegIntR function that this ticket is about has been removed. Moreover, it is reasonable to assume that we do not support architectures that are at least 64 bits, so Int being represented by something like 32bit Int or smaller is not irrelevant. Minimum amount of RAM required for a node is 24Gb, which is not possible on 32bit machines.


Add a log message if C# server runs out of "request new rpc" tokens

Context: https://github.com/grpc/grpc/issues/15633

Let's keep this open.

Since Grpc.Core is now in maintenance mode (see https://grpc.io/blog/grpc-csharp-future/), we don't plan to add any more enhancements.


Account – Infinite loading spinner when closing an account

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: v9.0.39-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Login with an account
Navigate to account settings > Security > Close account
Enter the reason and default contact method > Close > Confirm

Expected Result:
User is signed out from the app and the account is closed successfully
Actual Result:
Infinite loading spinner is displayed in the RHP and the user is not logged out from the app
Workaround:
Unknown
Platforms:

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

Screenshots/Videos
https://github.com/user-attachments/assets/648b7e07-e5d5-4d69-a696-01db6013cc4f

View all open jobs on GitHub

@RachCHopkins  FYI 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

Thanks for confirming @daledah!

@jjcoffee were you looking at this bug? Do you mind if I assign you as a C+?

I tested it by removing the changes from that PR, and it worked fine.

If this is true, I would be C+ as regression. Not tested yet though.

I agree the PR could not be the reason as we're only subscribing guides to specific channel and since the user experiencing the issue is not a guide.

I had a look at the server side code and we're only returning pusher response for CloseAccount API command. I think we should return the API response too for the user taking an action and that should probably fix this issue. Will make a change and see if we still are able to reproduce the issue

Yes, this is internal issue

Got PR in review!

Are there any steps left here @MonilBhavsar?

Thanks for the comment. No this is fixed! We can close this as it was all internal


No data disclaimer needs to be handled better for each dashboard

If there is no data, then the no data disclaimer/text should pop up, and all other dashboard components should be hidden, including the source and description.
This can probably be resolved by moving dashboard relevant div's inside the "event-dashboard" div which is hidden to make way for the no data disclaimer.

Mostly solved with f44fa34
sizing/margin/padding still needs to be handled better across all safety and env sections, not just the no data section. This is probably a separate issue.


oomix icon colors

I'm using wal to set the GTK theme in oomox (which works very well and looks lovely by the way), but is there any way to set oomox fArchdroid flat icon colors as well? Just haven't seen it in the docs and haven't been able to figure out a workaround. Cheers.

You can use an external script with -o to run additional programs after pywal completes. You can also use the export file for oomox with all of its scripts.
#!/bin/sh
oomox-archdroid-icons-cli -o wal ~/.cache/wal/colors-oomox

Save it as wal-set (as an example)
Run it with pywal. wal -i img.jpg -o /path/to/wal-set

This won't be added to pywal as oomox is already slow enough on its own.


[bug] [CATransaction synchronize] called within transaction when using dialog/open

Describe the bug
whenever I use the open function from @tauri-apps/api/dialog on a mac, I see this warning on console:
2023-02-03 13:53:28.639 Aptakube[29784:2233503] +[CATransaction synchronize] called within transaction

The dialog open just file and everything works as expected, but there's a ~2 seconds delay to open the dialog.
Reproduction
import { open } from "@tauri-apps/api/dialog";

export function AddNewLocationItem() {
  const addNew = () => {
    open({
      multiple: true,
      directory: false,
    }).then(console.log);
  };

  return (
    <li onClick={addNew} class="...">
      Add new
    </li>
  );
}

This is the code I used.
Expected behavior
It should not print that message and hopefully that would make it a bit faster as well 😅
Platform and versions
Environment
  › OS: Mac OS 13.1.0 X64
  › Node.js: 18.12.1
  › npm: 8.9.0
  › pnpm: 7.6.0
  › yarn: 1.22.19
  › rustup: 1.25.1
  › rustc: 1.65.0
  › cargo: 1.65.0
  › Rust toolchain: stable-aarch64-apple-darwin

Packages
  › @tauri-apps/cli [NPM]: 1.2.3
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.3,
  › tauri-build [RUST]: 1.2.1,
  › tao [RUST]: 0.15.6,
  › wry [RUST]: 0.23.4,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:5173/
  › framework: SolidJS
  › bundler: Vite

App directory structure
  ├─ design
  ├─ dist
  ├─ node_modules
  ├─ etc
  ├─ examples
  ├─ .github
  ├─ src-tauri
  ├─ .git
  ├─ .vscode
  ├─ coverage
  └─ src

Stack trace
No response
Additional context
No response

I'm seeing this too but but I'm getting this console response when running electron. I'm using macOS as well.
"Electron[4108:126025] +[CATransaction synchronize] called within transaction"

Weighing in to say I see this (the error message and the delay) too on a Mac both when I initiate the dialog via Javascript (dialog.open) and via Rust (tauri::api::dialog::FileDialogBuilder::default()).


macOS Ventura 13.0.1: diskutil error

I have disabled timemachine via the commandline, since the GUI option is no longer available in macOS Ventura:
sudo tmutil disable
Nonetheless, the installer fails when shrinking the macOS partition to 400 GB.
11-14 13:36 root         DEBUG    run: diskutil ('mount', 'disk3s2')
11-14 13:36 root         DEBUG    process output: b'Volume Preboot on disk3s2 mounted\n'
11-14 13:36 root         DEBUG    get: diskutil ('info', '-plist', 'disk3s2')
11-14 13:36 root         INFO       mounts[Preboot]: /System/Volumes/Preboot
11-14 13:36 root         DEBUG    run: diskutil ('mount', 'disk3s3')
11-14 13:36 root         DEBUG    process output: b'Volume Recovery on disk3s3 mounted\n'
11-14 13:36 root         DEBUG    get: diskutil ('info', '-plist', 'disk3s3')
11-14 13:36 root         INFO       mounts[Recovery]: /Volumes/Recovery
11-14 13:36 root         DEBUG    run: diskutil ('mount', 'disk3s1')
11-14 13:36 root         DEBUG    process output: b'Volume Macintosh HD on disk3s1 mounted\n'
11-14 13:36 root         DEBUG    get: diskutil ('info', '-plist', 'disk3s1')
11-14 13:36 root         INFO       mounts[System]: /Volumes/Macintosh HD 1
11-14 13:36 root         DEBUG    run: diskutil ('mount', 'disk3s5')
11-14 13:36 root         DEBUG    process output: b'Volume Data on disk3s5 mounted\n'
11-14 13:36 root         DEBUG    get: diskutil ('info', '-plist', 'disk3s5')
11-14 13:36 root         INFO       mounts[Data]: /System/Volumes/Data
11-14 13:36 root         INFO       Trying SystemVersion.plist...
11-14 13:36 root         INFO         Version: 13.0.1
11-14 13:36 root         INFO       Admin users: ['fred']
11-14 13:36 root         INFO       BootPolicy[coih] = None
11-14 13:36 root         INFO       BootPolicy[nsih] = 4FD451AA85CDEAB99202CEA6801302120099A975D9A61646823706DDD64FF0B0B15914EC7A43C35B8BA12A84D66B6A12
11-14 13:36 root         INFO      Found [Macintosh HD] macOS v13.0.1 [disk3s1, 6DE7E5CF-A7BD-40E3-AF30-9144DD0C6658]
11-14 13:36 root         INFO     OSEnum.collect_recovery(part=disk0s3)
11-14 13:36 root         INFO      Found SROS: recoveryOS v13.0.1 [Primary recoveryOS]
11-14 13:36 root         INFO     Checking resizability of disk0s2
11-14 13:36 root         INFO       Has OS
11-14 13:36 root         INFO       Min space required:<PHONE_NUMBER>0
11-14 13:36 root         INFO       Free space:<PHONE_NUMBER>08
11-14 13:36 root         INFO       Can resize
11-14 13:36 root         INFO     Checking resizability of disk0s3
11-14 13:36 root         INFO       Has OS
11-14 13:36 root         INFO       Min space required:<PHONE_NUMBER>0
11-14 13:36 root         INFO       Free space:<PHONE_NUMBER>
11-14 13:36 root         INFO       Cannot resize
11-14 13:36 root         INFO     MSG: Partitions in system disk (disk0):
11-14 13:36 root         INFO     MSG:   1: APFS [Macintosh HD] (494.38 GB, 6 volumes)
11-14 13:36 root         INFO     MSG:     OS: [B] [Macintosh HD] macOS v13.0.1 [disk3s1, 6DE7E5CF-A7BD-40E3-AF30-9144DD0C6658]
11-14 13:36 root         INFO     MSG:   2: APFS (System Recovery) (5.37 GB, 2 volumes)
11-14 13:36 root         INFO     MSG:     OS: [  ] recoveryOS v13.0.1 [Primary recoveryOS]
11-14 13:36 root         INFO     MSG:   [B ] = Booted OS, [R ] = Booted recovery, [? ] = Unknown
11-14 13:36 root         INFO     MSG:   [ ] = Default boot volume
11-14 13:36 root         INFO     MSG: Using OS 'Macintosh HD' (disk3s1) for machine authentication.
11-14 13:36 root         INFO     Current OS: Macintosh HD / disk3s1
11-14 13:36 root         INFO     MSG: Choose what to do:
11-14 13:36 root         INFO     MSG:   r: Resize an existing partition to make space for a new OS
11-14 13:36 root         INFO     MSG:   q: Quit without doing anything
11-14 13:36 root         INFO     MSG: » Action (r):
11-14 13:36 root         INFO     INPUT: 'r'
11-14 13:36 root         INFO       Has OS
11-14 13:36 root         INFO     MSG: We're going to resize this partition:
11-14 13:36 root         INFO     MSG:   APFS [Macintosh HD] (494.38 GB, 6 volumes)
11-14 13:36 root         INFO     MSG:   Total size: 494.38 GB
11-14 13:36 root         INFO     MSG:   Free space: 217.09 GB
11-14 13:36 root         INFO     MSG:   Minimum free space: 38.00 GB
11-14 13:36 root         INFO     MSG:   Minimum total size: 315.29 GB (63.77%)
11-14 13:36 root         INFO     MSG: Enter the new size for your existing partition:
11-14 13:36 root         INFO     MSG:   You can enter a size such as '1GB', a fraction such as '50%',
11-14 13:36 root         INFO     MSG:   or the word 'min' for the smallest allowable size.
11-14 13:36 root         INFO     MSG:   Examples:
11-14 13:36 root         INFO     MSG:   30%  - 30% to macOS, 70% to the new OS
11-14 13:36 root         INFO     MSG:   80GB - 80GB to macOS, the rest to your new OS
11-14 13:36 root         INFO     MSG:   min  - Shrink macOS as much as (safely) possible
11-14 13:36 root         INFO     MSG: » New size (min):
11-14 13:36 root         INFO     INPUT: '400GB'
11-14 13:36 root         INFO     MSG: Resizing will free up 94.39 GB of space.
11-14 13:36 root         INFO     MSG: Note: your system may appear to freeze during the resize.
11-14 13:36 root         INFO     MSG: This is normal, just wait until the process completes.
11-14 13:36 root         INFO     MSG: » Continue? (y/N):
11-14 13:36 root         INFO     INPUT: 'y'
11-14 13:36 root         DEBUG    run: diskutil ('apfs', 'resizeContainer', 'disk0s2', '399999238144')
11-14 13:36 root         INFO     MSG: Failed to run process: diskutil apfs resizeContainer disk0s2<PHONE_NUMBER>44
11-14 13:36 root         ERROR    Process execution failed
Traceback (most recent call last):
File "/private/tmp/asahi-install/main.py", line 852, in
InstallerMain().main()
File "/private/tmp/asahi-install/main.py", line 704, in main
while self.main_loop():
File "/private/tmp/asahi-install/main.py", line 824, in main_loop
return self.action_resize(parts_resizable)
File "/private/tmp/asahi-install/main.py", line 635, in action_resize
self.dutil.resizeContainer(target.name, val)
File "/private/tmp/asahi-install/diskutil.py", line 208, in resizeContainer
self.action("apfs", "resizeContainer", name, size, verbose=2)
File "/private/tmp/asahi-install/diskutil.py", line 38, in action
subprocess.run(["diskutil"] + list(args), check=True)
File "/private/tmp/asahi-install/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['diskutil', 'apfs', 'resizeContainer', 'disk0s2', '399999238144']' returned non-zero exit status 1.
11-14 13:36 root         INFO     MSG: If you need to file a bug report, please attach the log file:
11-14 13:36 root         INFO     MSG:   /private/tmp/asahi-install/installer.log

The log output is not useful for diskutil failures, since its output is not captured. You need to actually read the errors printed to the terminal.
Please try the dev installer at curl -L https://alx.sh/dev | sh.

The output from the terminal for curl https://alx.sh | sh looks like this. Not sure why, but when setting 401GB instead of 400GB the installer does not fail imidiatly and disktutil proceeded to approx. 60%. Then it failed:

Afterwards I tried curl -L https://alx.sh/dev | sh as you suggested but it failed immediately:

You need to wipe /tmp/asahi-install manually before switching to the dev installer (I should probably make the scripts start doing that).
Either way, you've got yourself an unspecified diskutil error. That's an Apple bug, not our bug. If you were right on the edge of the valid resize size (which it kind of sounds like from your 400/401 story), the dev installer will probably force you to go higher anyway and avoid the issue. If it's something else, the best advice I have is to go to recovery mode and run First Aid and see if it finds any issues.

The main reason I haven't done it yet is so that it doesn't wipe old logs too easily, but it would also require flipping around the current flow because right now the installer is untarred as the user and sudo is called later, calling a script that came from the tar. It might be best to just move old asahi-install folders out of the way into a timestamped name (which should always work as they should be owned by the current user, without needing sudo), instead of deleting them altogether.


Some IR protocol documentation

This PR adds enough documentation to be able to start a communication with the PokeWalker and Pokemon HGSS using their IR protocol.
It focuses on the packet format, as well as the common packets sent during the beginning of the communication between the PW and HGSS across the different operations (Sending a Pokemon, Receiving a Pokemon, Receing items/pkmns...) the player can do.
What's left is to document all the different packets. It seems that the bulk of those are simply writing raw data to the EEPROM so documenting it first might be a good idea?
Using those information and some more extras, I've managed to dump the EEPROM via IR (which leads to reliable results albeit the communication is unstable), and upload custom graphics to the PokeWalker for fun.
Also, I've seen that you were talking about a Discord server in the contributing guidelines, might be nice for communication so I'd be interested ;)

Wow this is amazing! I was having a play around with the IR signals a few days ago but got nowhere. I will have to get the arduino out and have a play around so we can document these packets.
I'll make a Discord and put a link to it in CONTRIBUTING.md :)


Implement Network Monitoring Functionality

This Pull Request adds a new command internet, which is responsible for checking the current internet usage of a process (picked by PID). For now, this command supports the following stats: "Bytes Sent", "Bytes Received", "Packets Sent", "Packets Received".
The command also supports the -r parameter and is abort-able, following the same style as the run command.
Make sure to ask me if you need anything changed or if you have any questions!
(Preview)

@LyubomirT I've ran some tests and the implementation seems to work as expected!
Before merging the pull request, would it be possible for you to rename the command by network and to implement the monitoring of bytes sent/received for a pid on the shake run <pid> command as well? As it is designed to be the principal command from where we could get various types of informations

@xororist I finished with the update, and now the run command also displays network usage statistics under [Network Usage]. I hope this helps!

@LyubomirT It works exaclty as intented, thanks a bunch for the feature implementation! I will merge the pull request now. Looking forward to more contribution! 🙌


update_dart_sdk.ps1 not digitally signed

& : File C:\Users\UserID\Desktop\Learning\flutter\bin\internal\update_dart_sdk.ps1 cannot be loaded. The file
C:\Users\UserID\Desktop\Learning\flutter\bin\internal\update_dart_sdk.ps1 is not digitally signed. You cannot run
this script on the current system. For more information about running scripts and setting execution policy, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:100

... sdk.ps1'; & 'C:\Users\UserID\Desktop\Learning\flutter/bin/internal/u ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : SecurityError: (:) [], PSSecurityException
FullyQualifiedErrorId : UnauthorizedAccess

Hi @psiva2019
I see there's an open issue addressing the case you described.
Please follow up on https://github.com/flutter/flutter/issues/39692
I'm closing the current one as duplicate.
If you disagree please write in the comments and I will reopen it.
Thank you


cached_property is not ignored when a model is copied and updated

Initial Checks

[X] I have searched GitHub for a duplicate issue and I'm sure this is something new
[X] I have searched Google & StackOverflow for a solution and couldn't find anything
[X] I have read and followed the docs and still think this is a bug
[X] I am confident that the issue is with pydantic (not my code, or another library in the ecosystem like FastAPI or mypy)

Description
This is somehow a contrived situation, but we had it trigger in our business code. Basically when updating a model based on an existing one which has a subfield that is a dataclass with a cached_property, a validation is triggered because the dataclass __dict__ contains the cached value.
Example Code
import dataclasses
from pydantic import BaseModel
from functools import cached_property

def test_cached_property():
    @dataclasses.dataclass(frozen=True)
    class A:
        name: str

        @cached_property
        def _name(self):
            return "name"

    class MyModel(BaseModel, arbitrary_types_allowed=True, frozen=True, extra=Extra.forbid):
        scheduler: A

    models = {
        "AX": MyModel(scheduler=A("a")),
    }

    sched = A("sched")

    models_2 = {
        "AY": models["AX"].copy(update=dict(scheduler=sched)),
    }

    models |= models_2

    models["AY"].scheduler._name
    MyModel.parse_obj(models["AY"].dict())

__pydantic_self__ = MyModel(), data = {'scheduler': test_cached_property.<locals>.A(name='sched')}, values = {}, fields_set = {'scheduler'}
validation_error = ValidationError(model='MyModel', errors=[{'loc': ('scheduler', '_name'), 'msg': 'extra fields not permitted', 'type': 'value_error.extra'}])

    def __init__(__pydantic_self__, **data: Any) -> None:
        """
        Create a new model by parsing and validating input data from keyword arguments.

        Raises ValidationError if the input data cannot be parsed to form a valid model.
        """
        # Uses something other than `self` the first arg to allow "self" as a settable attribute
        values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
        if validation_error:
>           raise validation_error
E           pydantic.error_wrappers.ValidationError: 1 validation error for MyModel
E           scheduler -> _name
E             extra fields not permitted (type=value_error.extra)

pydantic/main.py:341: ValidationError

Python, Pydantic & OS Version
pydantic version: 1.10.13
            pydantic compiled: False
                 install path: /home/rdb/git/pydantic/pydantic
               python version: 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801]
                     platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.38
     optional deps. installed: ['devtools', 'dotenv', 'email-validator', 'typing-extensions']

Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[X] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[X] Dataclasses
[ ] Model Config
[X] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

@rdbisme,
Thanks for bringing this to our attention, and thanks a ton for contributing a fix!

Fixed by https://github.com/pydantic/pydantic/pull/8407