I met an error: In[o] missmatch In[1] shape"3 vs/4:[1,4,4,3] [1,4,4,1]

Click to expand!
Issue Type
Others
Source
binary
Tensorflow Version
tf 2.5
Custom Code
Yes
OS Platform and Distribution
No response
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
A bug happened!
I wanna to matmul A[1,4,4,3] with B[1,4,4,1] then get C [1,4,4,3]

Standalone code to reproduce the issue
input_size=[1,4,4,3]
input_feature=tf.random.normal(input_size)
signal=tf.random.normal([1,4,4,1])
input_feature_=tf.matmul(input_feature,signal)

### Relevant log output

_No response_</details>

import tensorflow as tf
input_size=[1,4,4,3]
input_feature=tf.random.normal(input_size)
signal=tf.random.normal([1,4,4,4])
input_feature_=  tf.linalg.matmul(input_feature,signal,transpose_a=True)

@acknowledgexiongdei,
Kindly please take a look at the above comment and I tried to execute as mentioned. Kindly find the gist of it here and let us know if it serves your purpose. Thank you!

import tensorflow as tf
input_size=[1,4,4,3]
input_feature=tf.random.normal(input_size)
signal=tf.random.normal([1,4,4,4])
input_feature_=  tf.linalg.matmul(input_feature,signal,transpose_a=True)

Thank you very much

@acknowledgexiongdei, Kindly please take a look at the above comment and I tried to execute as mentioned. Kindly find the gist of it here and let us know if it serves your purpose. Thank you!

I use the code
import tensorflow as tf
input_size=[1,4,4,3]
input_feature=tf.random.normal(input_size)
signal=tf.random.normal([1,4,3,3])
input_feature_=  tf.matmul(input_feature,signal)
print(input_feature_)

Then get the result that I want


Proposed changes to DateTime display in event toasts

The toasts are looking great but I think we can clean up how we display the datetime here slightly
Here are some proposed changes:

Remove the seconds from the time
If the date matches the current date then we can just display the time and not the date

Additionally, to combat the lag time while the system computes the blockheight to datetime conversion we should rearrange the order of the toast event string such that the date prints last and then only appears when in datetime format

There's been some progress with this issue already so I'll just summarise the issue below:

[ ] Remove seconds
[ ] Rearrange order of toast message
[ ] If date matches with current date > only print time
[ ] Prevent rendering of blockheight altogether until the blockheight to date conversion has occurred

Have implemented this in commit ba58e3818e2abce7680c49c34f5bf93e780d2ec4 . Closing


Testing

I think it would be useful to include a method that returns the timer value. I want to check in my tests if my timer is reset and I am not sure how to do this with what the library is providing.

What format of the time value do you want?
CountdownTimer(
            endTime: endTime,
/// This is a callback method,It will return the remaining time.
            widgetBuilder: (_, CurrentRemainingTime time) {
              return Text(
                  'days: [ ${time.days} ], hours: [ ${time.hours} ], min: [ ${time.min} ], sec: [ ${time.sec} ]');
            },
          )

Remaining time.
class CurrentRemainingTime {
  final int days;
  final int hours;
  final int min;
  final int sec;

  CurrentRemainingTime({this.days, this.hours, this.min, this.sec});

  @override
  String toString() {
    return 'CurrentRemainingTime{days: $days, hours: $hours, min: $min, sec: $sec}';
  }
}

In version 1.4.0
flutter_countdown_timer: ^1.4.0

The format is okay as it is in the default, that's not my problem. My issue is that in my app tests I want to do something like:
testWidgets('Countdown doesn\'t reset on page change',       (WidgetTester tester) async {     await tester.pumpWidget(MaterialApp(home: createCurrentExam()));     var initialCounterValue = tester.widget(find.byType(CountdownTimer))**.value**; // I need something here to let me compare the values. This could be a method that returns a string (an override of toString()).     // Page change.     await tester.tap(find.text('Next >'));     await tester.pumpAndSettle();     var nextCounterValue = tester.widget(find.byType(CountdownTimer))**.value**; // Same here.     expect(initialCounterValue.compareTo(nextCounterValue), isNegative);   });

Any updates?

I'm sorry, not yet.Would you like to submit a PR?...

Will try.


LIN-381 database migration script

Description
Implements database migration using alembic.
Fixes LIN-381
(For Lineapy users) To upgrade a Lineapy database
Run lineapy upgrade-db. This uses the database_url config option in lineapy to find the database.
(For Lineapy developers) To create a migration
Run alembic revision -m "<description of change>". This will generate a migration template in the alembic/versions directory.
Then implement the migration scripts using the alembic package in the the bodies of the upgrade and downgrade functions.
See https://alembic.sqlalchemy.org/en/latest/tutorial.html#create-a-migration-script for more information.
Note: The alembic version of a DB is stored in the alembic_version table, which has a single column named version_num.
Type of change

[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update

How Has This Been Tested?
Currently I have tested this by running a small example migration that adds a python version to the table, and I have run the CLI to upgrade it. I have not yet created more involved tests.

We need to put your instructions in the PR body into our readme.md and contributing.md!

To clarify, where should I put the user-facing docs? In the main readme (and if so where) or somewhere else?


Update description

Signed-off-by: faizanahmad055<EMAIL_ADDRESS>

@faizanahmad055 Image is available for testing. docker pull stakater/workshop-excercise:SNAPSHOT-PR-35-cc3d46de


Rebuild is slow in version 11.2.5

even after the update to 11.2.5 it still takes 40s instead of 5 for example, without the env. variable: NG_BUILD_IVY_LEGACY=1
No maps no aot, "showCircularDependencies": false, I also updated the typescript to 4.1
with the variable it takes 5s
here is my config:
"customWebpackConfig": {
                "path": "./webpack-custom.config.js"
              },
              "allowedCommonJsDependencies": ["rxjs", "rxjs-compat", "inputmask", "quill-emoji", "pixi.js", "jodit"],
              "outputPath": "dist",
              "index": "src/index.html",
              "main": "src/main.ts",
              "polyfills": "src/polyfills.ts",
              "deleteOutputPath": false,
              "outputHashing": "none",
              "tsConfig": "tsconfig.app.json",
              "namedChunks": false,
              "showCircularDependencies": false,
              "extractLicenses": false,
              "statsJson": false,
              "progress": true,
              "sourceMap": false,
              "buildOptimizer": false,
              "aot": false,
              "preserveSymlinks": false,
              "optimization": false,
              "vendorChunk": true,
              "commonChunk": true,
              "assets": ["src/img"],
              "styles": [],
              "scripts": [
                "node_modules/jquery/dist/jquery.min.js",
                "node_modules/underscore/underscore-min.js",
                "libs-manual/modernizr/modernizr.js",
                "node_modules/moment/moment.js",
                "node_modules/angular/angular.js",
                "node_modules/angular-resource/angular-resource.js",
                "node_modules/angular-bindonce/bindonce.js",
                "node_modules/pixi.js/dist/pixi.js",
                "node_modules/signalr/jquery.signalR.js"
              ],
              "fileReplacements": [
                {
                  "replace": "/apps/shared/src/environments/environment.ts",
                  "with": "/apps/shared/src/environments/environment.devNoStyles.ts"
                }
              ]
environment.devNoStyles.ts:

export const environment = {
  production: false,
  optimizeTerser: true,
};
there is also a terser minimizer in the custom webpack:

optimization: {
    concatenateModules: false,
    minimizer: [
      new TerserPlugin({
        terserOptions: {
          keep_classnames: environment.optimizeTerser ? true : false,
          keep_fnames: environment.optimizeTerser ? true : false,
        },
      }),
    ],
  },

also we have downgraded components

package.zip

I suspect that the lock file is unmaintained, and hence you are using an older version of devkit packages.
Since you are using @angular-builders/custom-webpack, The pulled versions of @angular-devkit/build-angular and @ngtools/webpack by this dependency are used to build your application and not the once defined in your workspace package.json.
I suggest to clean the lock file and re-generate it.
rm -rf node_modules package-lock.json
npm i

If the problem persist after the above, please provide the output of
npm ls @ngtools/webpack

Also, as @clydin mentioned in the other issue there are several packages which are not compatible with each other defined in your package.json. Also looking at your package.json it appears that you have a number of dependencies which might not be needed in the first place like @angular-devkit/build-webpack, @angular-devkit/build-optimizer, @angular-devkit/architect, webpack-cli , webpack and many others.

@alan-agius4 reinstalling the<EMAIL_ADDRESS>helped, updating to<EMAIL_ADDRESS>continued to work.
The build time with sourcemaps still did not improve however, still 40s.
...yeah I need to clean those up

Can you please provide the output of the above mentioned command? Thanks.

@alan-agius4 it works also with the maps. the prolonged build time was probably because of the css.
the name of the script is NoCssNoMap but I set the sourceMaps:true so it works.

@jlabaj, so Is the issue solved?

@alan-agius4 I'd say yes


Migrate select-to-ul from skaled project

select-to-ul is an angular directive that will transform the json input for a select into a input+ul. It features a standard select element for mobile devices that is bound to the transformed one, and will be displayed if touch is enabled.
Check https://github.com/moxienyc/skaled.com-web-app/pull/398#discussion-diff-59934509 for details.

@camilodelvasto please avoid linking to private repos and create a gist instead.
Thanks.


[SPARK-41147][SQL] Assign a name to the legacy error class _LEGACY_ERROR_TEMP_1042

What changes were proposed in this pull request?
This PR proposes to assign a name to _LEGACY_ERROR_TEMP_1042 as INVALID_FUNCTION_ARGUMENT.
Why are the changes needed?
The legacy error classes were temporary named to cover the all exceptions by error class, so we should assign the proper name on those all legacy error classes.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
./build/sbt “sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*”

Sure, let me integrate into DATATYPE_MISMATCH.WRONG_NUM_ARGS

Thanks for the review, @MaxGekk
Just addressed the comments!

Closing since it's duplicated to #38707

Closing since it's duplicated to #38707


NaN ephemeris time passed to SPICE spkezr_c

When I run a Mars ascent propagation with a RKF7(8) integrator with an increasingly small time step, and that my propagation needs for some reason to call the spkezr_c method from SPICE, I get the following  error:
Toolkit version: N0066

SPICE(DAFNEGADDR) --

Negative value for BEGIN address: -2147053925

A traceback follows.  The name of the highest level module is first.
spkezr_c --> SPKEZR --> SPKEZ --> SPKGEO --> SPKPVN --> SPKR02 --> DAFGDA

Oh, by the way:  The SPICELIB error handling actions are USER-TAILORABLE.  You
can choose whether the Toolkit aborts or continues when errors occur, which
error messages to output, and where to send the output.  Please read the ERROR
"Required Reading" file, or see the routines ERRACT, ERRDEV, and ERRPRT.

After some testing, I changed the getBodyCartesianStateAtEpoch() function from spiceInterface.cpp to print the ephemerisTime input, and it appears that, after some time into the propagagtion, the ephemeris time that is input to this function is -nan.
Now I still have no idea why tudat decides to change my ephemeris time (from 9.82325e+08) to -nan after some time. I expect that this error is caused by something that breaks in my simulation at small time steps.
Nevetherless, I suggest to add a check to the getBodyCartesianStateAtEpoch() function to trigger an error if the ephemerisTime is negative or nan. We could also print a warning and return a zero vector as the body cartesian position, but that could lead to more issues down the line.

The issue here is that the time-step control goes haywire, and ends up suggesting a NaN time step. I think it's a good idea to add a check, but let's put it at the level of the integrator (and possibly in the spice function as well), that way it will be caught at the 'source'

I would then suggest the following changes:

Raise an error in the SPICE function in case of incorrect ephemeris time.
Print a warning and return the minimum step size for variable step integrator if the computed step size is invalid.

About the latter: if we then use the minimum step size that is user-defined, this step size could be too high for the problem dynamics. I think that the warning that is printed should then describe this, informing that the propagation results could be slightly off due to this. We could also just use the minimum step size divided by an arbitrary factor, to try to alleviate this problem.
I am currently investigating the implementation for all of this; it seems like a quick fix.

Agreed on the first point. For the second, the issue is not that the time step goes below the permitted time step, but that the state becomes NaN/Inf at some point, which is then used in the time step control algorithm. I propose to catch this at the level of the DynamicsStateDerivativeModel class, checking at the beginning if the input is Inf/NaN, and at the output whether the state(derivative) is Inf/NaN

Since I would propose to completely refactor the time step control anyway, I don't think it's necessary to put a lot of time into this part of the code now.

Fix pushed to develop :)

Thanks for the fix :)
I am running a different fix on my machine that sets the integration step as the minimum one in RungeKuttaVariableStepSizeIntegrator.performIntegrationStep() if it deems it invalid (nan or inf). This allows me to run my fixed-step simulation with the RungeKuttaVariableStepSizeIntegrator without throwing an error. But it's probably not an optimum solution to push for everyone.

With the exception that you have implemented to throw in the SPICE interface and DynamicsStateDerivativeModel, I get the following (instead of the error message):
python: /home/jerem/miniconda3/envs/tudat-bundle/include/eigen3/Eigen/src/Core/Block.h:146: Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Block(XprType&, Eigen::Index, Eigen::Index, Eigen::Index, Eigen::Index) [with XprType = const Eigen::Matrix<double, -1, -1>; int BlockRows = -1; int BlockCols = -1; bool InnerPanel = false; Eigen::Index = long int]: Assertion `startRow >= 0 && blockRows >= 0 && startRow <= xpr.rows() - blockRows && startCol >= 0 && blockCols >= 0 && startCol <= xpr.cols() - blockCols' failed.
Aborted

I think there is an issue in how integrateEquationsFromIntegrator catches exceptions and ends the termination. I have observed the above error in different cases now, and I start suspecting that, in each of these, I was actually supposed to get a more custom error message (from a throw std::runtime_error)...

Turns out that throwing a std::invalid_argument instead of std::runtime_error allows the error to go trough, instead of the above Eigen abort message.
I changed these in DynamicsStateDerivativeModel,  RungeKuttaVariableStepSizeIntegrator, and spiceInterface with 1a1ea805017842b29240c5cbb1cfe02a360818e7.
With this commit, I have also included a few more cases in which the error should be thrown in spiceInterface (negative or inf ephemeris times).

I think there is an issue in how integrateEquationsFromIntegrator catches exceptions and ends the termination. I have observed the above error in different cases now, and I start suspecting that, in each of these, I was actually supposed to get a more custom error message (from a throw std::runtime_error)...

That's quite odd.. Could you elaborate a bit on what you mean here? What was the output you got in this case before this update?

Turns out that throwing a std::invalid_argument instead of std::runtime_error allows the error to go trough, instead of the above Eigen abort message.

That's good. What output from this is now communicated to the user (if any)?

That's quite odd.. Could you elaborate a bit on what you mean here? What was the output you got in this case before this update?
What I mean is that, if a std::runtime_error is thrown during the propagation itself (in this case from DynamicsStateDerivativeModel or spiceInterface), the following error is actually raised in the terminal:

python: /home/jerem/miniconda3/envs/tudat-bundle/include/eigen3/Eigen/src/Core/Block.h:146: Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Block(XprType&, Eigen::Index, Eigen::Index, Eigen::Index, Eigen::Index) [with XprType = const Eigen::Matrix<double, -1, -1>; int BlockRows = -1; int BlockCols = -1; bool InnerPanel = false; Eigen::Index = long int]: Assertion `startRow >= 0 && blockRows >= 0 && startRow <= xpr.rows() - blockRows && startCol >= 0 && blockCols >= 0 && startCol <= xpr.cols() - blockCols' failed.
Aborted

Now that I changed this so that we throw a std::invalid_argument instead, the proper error is raised.

That's good. What output from this is now communicated to the user (if any)?
With the latest implementation, if the cartesian state of a body at -nan is for instance requested to the spiceInterface, the user will see the following:

Error when retrieving Cartesian state from Spice, input time is -nan
Error, propagation terminated at t=982325358.987522, returning propagation data up to current time.

Hi Jeremie, I am making some small modifications: the isinf function is not platform-independent, so I'm removing this check from the spice functions for now.

Oh, I thought it couldn't, because I thought the ephemeris input to spice was different to the tudat epochs. I got confused by this issue, since the error message states that a negative time is invalid. I assume that these times are then different.
My apologies if this caused any errors to someone.


Enable creating accounts without a VPC

Provide a flag that prevents AFT from creating any VPC's beyond those required for Codebuild
Alternatively, some way to tell AFT to use IPAM to create its VPC would be nice.
Is your feature request related to a problem you are currently experiencing? If so, please describe.
I would like to use Amazon's IP Address Manager IPAM to manage VPC's in my Control Tower managed accounts. AFT's current behavior is to create VPC's with the same default CIDR ranges. Thus, to setup IPAM, it seems like I would have to manually go and cleanup all the VPC's that AFT creates, defeating to some extent, the point of using automation.
Additional context
There seems to be a way to do this manually through the UI, so it would be nice to have the option on AFT.

@mbuotidem Thank you for the feature request and the details.
I have created an internal backlog to track this request.

@mbuotidem - is this a duplicate of #142, or are you asking for something different?

@owenfarrell It was unclear to me from the documentation if AFT will create VPC's in all my vended accounts even if I had asked Control Tower not to using the steps at  configure Control Tower without a VPC.  But I guess the flag in the issue you linked should take care of this for me. I'll try it!

Hi @mbuotidem, apologies for the late follow up here.
If you follow the process to configure Control Tower to create accounts without VPCs, then accounts created by AFT will also not have CT-created VPCs in them. As such, I believe the "no VPC" ask of this request has already been met.
I've copied the IPAM integration feature request into its own ticket. Please use https://github.com/aws-ia/terraform-aws-control_tower_account_factory/issues/401 for IPAM tracking purposes.


Setup CI with GitHub Actions

Based on #3 (needs to be merged first).

Cool, thanks! Can you rebase? #3 was merged.

Cool, thanks! Can you rebase? #3 was merged.

Rebased to master.

Rebased to master.


Fix Event.write to have writable = true

I was testing the library and my code got "stuck", I tried using Poll.set mux socket Poll.Event.write  to handle EINPROGRESS from connect, but strace was showing that the FD was not getting added to the epoll set.
This was because the code thought no change was requested, since Event.write was equal to Event.none.

Thanks for merging, there are still some other problems, e.g. 'oneshot' seems to be added to each event, so now after one event everything is still stuck.... (unless I keep changing epoll set)

I’ve been thinking about allowing users to specify one shot vs level triggered events. Both kqueue and epoll support it so this seems like an option worth surfacing. I liked the idea of one shot events so a readiness event is only reported once instead of multiple times, and then considering file descriptors always ready unless encountering EAGAIN

Giving control the user sounds right, I have no experience with kqueue though, so I"ll leave that improvement idea to you.


What is ?

Subscribe to a node
sentinelcli tx subscription subscribe-to-node \
    --home "${HOME}/.sentinelcli" \
    --keyring-backend os \
    --chain-id sentinelhub-2 \
    --node https://rpc.sentinel.co:443 \
    --gas-prices 0.1udvpn \
    --from <KEY_NAME> <NODE_ADDRESS> <DEPOSIT>

I couldn't figure out what DEPOSIT is supposed to be. I also don't understand why desktop client doesn't require sudo, but cli client does.

Query Subscriptions
Retrieve information regarding the subscriptions.
sentinelcli query subscriptions \
  --home "${HOME}/.sentinelcli" \
  --node https://rpc.sentinel.co:443 \
  --page 1


Scrape commit history

What's in the commit history that you are looking for?

#4 and #32 are currently open which would rely on having contributor & commit message information for each commit (although #4 is a long ways off). It'll also be for #41, which will need to look at featureck at various times. Not sure whether I want to rely on filesystem state with on-disk cloned repos, or try to manage a git repo in a postgres database -- neither is great for a web service, IMO. Regardless, the scraper will need someway to look at code and commits.
GitHub provides commit info and diffs via their API, but for looking at the actual code (like will be needed for a feature pipeline dashboard), I don't think that having rust-dashboard manage the diffs is what should be done.

Boilerplate: I'm going to refocus this project on rfcbot, since that's the primary usage rusty-dash.com is seeing.


Lists appearing as tasks in pull request templates

Is your feature request related to a problem? Please describe.
list items present in pull request templates appearing as tasks in pull request overview
Describe the solution you'd like

Use  double space in -[  ] brackets so that only checked items appear as a task in the PR overview, and unchecked items remain still without appearing in the PR overview

if we don't want checked items not appearing in pr overview as well,  Instead of using lists which can be checked, use numbered list and contributors can decide what to keep and what not to keep depending on the pr created.

Additional context
before

after :
only checked items appear in the PR overview

for second  solution, no task status will appear in pr overview
Are you working on this? (Yes/No)

@bumi  @escapedcat

Sounds good.
Also would be nice to replace this with i.e. #[ISSUE_NUMBER].
At the moment some PRs already are linked to 147 because people didn't modify or remove the number.

what we shall go with then, solution 1 or 2

Ah sorry 🤦
Suggestion:

"Type of change" - Can be switched to a normal list with a note that says i.e. "Please remove not matching type"
"How Has This Been Tested? - List can be removed but the headline stays. People can fill this out when needed.
"Checklist" - Could stay I think. We can use this to enforce certain tasks.


Intl: Standardize around spec-compliant ResolveLocale

This pull request eliminates a substantial amount of WinGlob-specific code in the ICU part of Intl.js. In doing so, it also standardizes all ICU-based Intl.js functions around the spec-compliant ResolveLocale function rather than the old resolveLocaleList.
Fixes #4450

@obastemur Do you have any insight on the OS X issue?

@dotnet-bot test OSX static_osx_osx_debug please

Just took a look at the commit history; do you feel it's worth to remove the intermediate bytecode commits, and just have one at the end?

I merged intl-datetimeformat as ~30 or something commits mostly because I didn't feel like rebasing and squashing, and @dilijev told me to not worry about it since our history isnt particularly meaningful or useful at this point anyways. I can rebase if necessary, though at the same time, each time i update bytecode, it means the code is in a runnable state that passes tests, if that matters.


beamngpy.logging.BNGError: No BeamNG binary found in BeamNG home. Make sure any of these exist in the BeamNG home folder: Bin64/BeamNG.tech.x64.exe, Bin64/BeamNG.drive.x64.exe

I do not know what the error is and I have been stuck here for hours.

Hi, the BNG_HOME variable should be set to the root simulator directory, not to the Bin64 folder. In your case, you should use C:\Users\df\Desktop\BeamNG.tech.v<IP_ADDRESS> as the value of the BNG_HOME variable.


Triggers infinitely when placed in an array

Hello,
Waypoint is already used on my project, I tried to implement it inside a table (with Material UI). The onEnter action then fires infinitely.
But if I remove the scroll from the table, and leave the browser's default scroll and place the Waypoint tag outside the table, the bug no longer occurs and everything works normally.
I wonder if it's due to react-waypoint or material-ui
Here is my code below, there are probably unnecessary rendering conditions, since I tested several things before realizing where the bug came from
  const handleEnter = () => {
    setQueryProps(({ page_size }) => ({
      page_size,
      next_token: data?.next_token,
      query_execution_id: data?.query_execution_id,
    }));
  };

  return (
    <>
      <Typography
        variant="h2"
        component="h2"
      >
        Reporting
      </Typography>

      <Box sx={style.wrapper}>
        <TableContainer sx={style.tableContainer}>
          <Table
            aria-label="sticky table"
            style={style.table}
          >
            <TableHead>
              <TableRow>
                {tableHeaders.map(({ accessor, label }) => (
                  <TableCell
                    key={accessor}
                    sx={style.tableHeaderCell}
                  >
                    {label}
                  </TableCell>
                ))}
              </TableRow>
            </TableHead>
            <TableBody sx={style.tableBody}>
              {reportList.map((item: ReportItemType) => (
                <TableRow
                  key={item.unique_row_number}
                  sx={style.tableRow}
                >
                  {tableHeaders.map(({ accessor }) => (
                    <TableCell key={accessor}>
                      {item[accessor]}
                    </TableCell>
                  ))}
                </TableRow>
              ))}
              {isLoading && (
                <CircularProgress />
              )}
              {!isLoading &&
                hasNextPage &&
                !error &&
                reportList.length > 0 &&
                page > 0 && (
                  <Waypoint
                    onEnter={handleEnter}
                    key={data?.next_token}
                  >
                    <CircularProgress />
                  </Waypoint>
                )}
            </TableBody>
          </Table>
        </TableContainer>
      </Box>
    </>
  );

I just found a workaround, I just had to define Wapypoint in the


Enhancement in Meshsync api to include kind filter param

Current Behavior

Like connection api has param for status and kind to filter(doc) same enhancement might be needed in meshsync so the filtering the data based on kind will be more consistent . Because currently we are directly applying filter which backend doesn't support so page and pagesize doesn't come in effect.
Desired Behavior

Implementation

Acceptance Tests

Mockups

Contributor Guides and Handbook

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Please enhance the description of this issue in following with the provided template. Offer links to APIs that are being referenced. You can use the API reference in Meshery Docs or links in meshery/meshery source.

Let me check for this and get an idea via API docs.

@sudhanshutech  are you going to take care of this?


should the index be 0 or 1?

https://github.com/gnosis/dutch-exchange/blob/bde981624709412732ed3761acc96229c2f1e636/contracts/DutchExchange.sol#L264

should be 1


How to setup gotrue in docker compose with supabase correctly

Improve documentation
How to setup Gotrue in context with supabase (selfhosted )
Describe the problem
I have used the supabase docker compose file and at first Gotrue did not start since the env.sample did not contain a value. So for the host, I use localhost and for the post I use 9999. This is my env
## DB port
POSTGRES_PORT=5432

## Realtime
WS_PORT=4000

# Auth

## General
SITE_URL=http://localhost:3000
ADDITIONAL_REDIRECT_URLS=
JWT_EXPIRY=3600
DISABLE_SIGNUP=false

## Email auth
ENABLE_EMAIL_SIGNUP=true
ENABLE_EMAIL_AUTOCONFIRM=true
SMTP_ADMIN_EMAIL=
SMTP_HOST=localhost
SMTP_PORT=9999
SMTP_USER=
SMTP_PASS=
SMTP_SENDER_NAME=

## Phone auth
ENABLE_PHONE_SIGNUP=false
ENABLE_PHONE_AUTOCONFIRM=false

# Ports

## API endpoint ports
KONG_HTTP_PORT=8000
KONG_HTTPS_PORT=8443

When I try to call the signup method on the client. I get the error back
time="2021-10-19T20:29:11Z" level=error msg="500: Database error updating user" component=api error="ERROR: operator does not exist: text = uuid (SQLSTATE 42883)" method=POST path=/signup referer= remote_addr="***" request_id=99c64f3b-e228-4eb8-9532-1c8ddd1e9c7c

I read the documentation, but somehow I dont get it, what should i configure, so that gotrue can create user in the db.
The Realtime API and postgrest API works fine.
Any help appriciated.

[UPDATE], I actually found the real cause of this issue. It is completly unrealted to gotrue 🙈.
I have created triggers on the auth.user table to copy some userdata, like the id and email to a user table in the public scheme.
I use this, to have users available while create, design and sync my tables schemas via prisma. Because primsa cannot handle cross schema references.
the problem was, that I used text as the type of a column and not the database uuid. So it could not convert uuid to text and this is the meaning of the over error.


Add Ability To Make Different Widgets For Each Profile

It would be nice if a selector came up when making a widget that asked to choose which profile and then created a widget that just switched to that profile upon activation.
This older LineageOS profile app which no longer works past LOS 16 has this feature:
https://play.google.com/store/apps/details?id=net.battlemoose.cmprofileshortcuts.googleplay
Unfortunately it does not appear to be open source. It can be looked at as an example though.

I see what you mean. I'll think about it. For the moment I keep busy with other stuff, and I don't think this will be added soon.
If you can reach the author of the other app, he could use my code to make its own app working with LOS 17/18.


Composer could not find a composer.json file in /var/www/symfony

Hello,
I get this error: Composer could not find a composer.json file in /var/www/symfony
every time i try to run: composer update
But I have composer.json in my project.
Any advice?

I have this issue as well


Writing & Reading of semi-arbitrary data from/to P-Chain

This is not intended to make it into a final branch, but is a stepping of point to show its possible to write this kinds of data.
Overview
For several featuers we need to be able to send arbitrary data from P-Chain to most importantly C-Chain. One of the more presing Requests is the ability to vote on a BaseFee change on P-Chain and then have it applied to C-Chain (and others).
Changes

Create AtomicWriteTx
Plumbing for the new Tx
Add new endpoints on the PlatformVM service
ignore precommit file

Caveats
!!This is not done!!
and meant as a POC to see the workflow on how to send data from/to P-Chain.

The AtomicTx is free atm and does not require any signing to make it easier to debug (if a notion of this kind of Tx makes it into the final build it will have a high tx cost, that scales exponentially with the numnber of bytes you want to write to shared mem)
There has not been done any research done on how this will affect memory usage in a production setting

supercesed by https://github.com/chain4travel/caminogo/pull/269


CleanUnitPass assumes unit.FilePath has a directory name

In this screenshot's situation, unit.FilePath is "myheader.h".
I believe Path.GetDirectoryName returns an empty string (maybe null?) but in any case, passing the result through to Path.GetFullPath seems to be invalid.

Thank you for your report. The obvious fix would be to add a check in our code but I am curious to know how your file path ended up containing just a file name. Where is your header located?

That is just how the project is set up. There is not a /src/ subdirectory below the .vxproj location, so there are a few headers that are commonly included (ie, "common.h") which are in the root alongside the .vxproj

Do I correctly conclude that you have no include directories in your configuration?

parseOptions.AddIncludeDirs(@".");
Apparently that line is important else it finds nothing btw.

Thank you. We definitely have a bug here but I cannot fix it right now. Please work around it by assigning '.' to the local 'includeDir' if it turns out empty, I think Path.GetFullPath should be able to resolve it.

It's fine, I have the ability to rebuild cppsharp now (though technically that work-around is insufficient, get directory name for ".\filename.ext" does not return anything different from "filename.ext').

My mistake. What I meant was:
var includeDir = Path.GetDirectoryName(unit.FilePath);
if (string.IsNullOrWhiteSpace(includeDir))
    includeDir = ".";
includeDir = Path.GetFullPath(includeDir);

Should be fixed with @ddobrev suggestion.


bug:  ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  when running pnpm i

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
1.1.0
Current Behavior
I am unable to install dependencies and get the local dev environment up and running.
When I run:
pnpm i

I get:
Scope: all 7 workspace projects
/Users/lars/dev/wagmi/packages/cli:
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In packages/cli: "@wagmi/chains@workspace:*" is in the dependencies but no package named "@wagmi/chains" is present in the workspace

This error happened while installing a direct dependency of /Users/lars/dev/wagmi/packages/cli

Packages found in the workspace: docs, example-dev, @wagmi/cli, fixture-hardhat, @wagmi/core, wagmi

Expected Behavior
I expected pnpm i to succesfully install dependencies
Steps To Reproduce

Clone the repository
Run pnpm i

My environment:

Nodejs: v16.20.0
Pnpm: 8.6.1
Macos: Apple M1 Pro

Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
No response

Did you clone the references submodule too?

Worked with my fork
git clone --recurse-submodules git@github.com:MarcusWentz/wagmi.git

so the format for other users would be
git clone --recurse-submodules git@github.com:<your_github_username_fork>/wagmi.git


License

Hello Enrique (@isseu),
May I use parts of your project in a demo? I like the emoticon display and would use it for my model, with credit to you of course. If you can add a license (eg, MIT) then I will happily include a reference to your code in my project.

Sure! Just include a reference
I will add MIT


Preliminary support for function inlining

Still a WIP, need to fill the global context.

Merry christmas !

@jmmartinez this looks like a good start to me


Openapi crashes with models contains custom type fields

Bug
datetime field works fine with pydantic
But when I use datetime field in odmantic models - openapi.json creation crashes :(
Traceback
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 396, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 190, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 111, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 181, in __call__
    raise exc from None
  File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 159, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
    raise exc from None
  File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 71, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 566, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 227, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 41, in app
    response = await func(request)
  File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 143, in openapi
    return JSONResponse(self.openapi())
  File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 121, in openapi
    self.openapi_schema = get_openapi(
  File "/usr/local/lib/python3.8/site-packages/fastapi/openapi/utils.py", line 348, in get_openapi
    definitions = get_model_definitions(
  File "/usr/local/lib/python3.8/site-packages/fastapi/utils.py", line 25, in get_model_definitions
    m_schema, m_definitions, m_nested_models = model_process_schema(
  File "pydantic/schema.py", line 525, in pydantic.schema.model_process_schema
  File "pydantic/schema.py", line 566, in pydantic.schema.model_type_schema
  File "pydantic/schema.py", line 222, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 476, in pydantic.schema.field_type_schema
  File "pydantic/schema.py", line 821, in pydantic.schema.field_singleton_schema
ValueError: Value not declarable with JSON Schema, field: name='created' type=_datetime required=True

How to reproduce
Just add datetime field to your tree example from odmantioc docs.
E.g.: birth: datetime
Then launch fastapi and open /docs or /redoc
from typing import List
from datetime import datetime

from fastapi import FastAPI, HTTPException

from odmantic import AIOEngine, Model, ObjectId

class Tree(Model):
    name: str
    average_size: float
    discovery_year: int
    birth: datetime

app = FastAPI()

engine = AIOEngine()

@app.put("/trees/", response_model=Tree)
async def create_tree(tree: Tree):
    await engine.save(tree)
    return tree

@app.get("/trees/", response_model=List[Tree])
async def get_trees():
    trees = await engine.find(Tree)
    return trees

@app.get("/trees/count", response_model=int)
async def count_trees():
    count = await engine.count(Tree)
    return count

@app.get("/trees/{id}", response_model=Tree)
async def get_tree_by_id(id: ObjectId):
    tree = await engine.find_one(Tree, Tree.id == id)
    if tree is None:
        raise HTTPException(404)
    return tree

Found some info
Since you use custom type _datetime instead of datetime, you should properly set schema creation for it

Custom field types can customise the schema generated for them using the __modify_schema__ class method;
see Custom Data Types for more details.

Or you can can inherit _datetime from datetime.
With added inheritage problem disappears (checked).
Hope it not breaks something else :)

Or you can can inherit _datetime from datetime.
With added inheritance problem disappears (checked).
Hope it not breaks something else :)

Hey @Olegt0rr
Can you point me how did you fix this issue?
I'm having the same problem, and I'm not sure what you mean by inheriting _datetime from datetime.
Thanks!


Improve behaviour of output pins related methods after sieve changes

Is your feature request related to a problem? Please describe.
Suppose a module has a connection with sieve disabled, still the getAllOutputPinsByType only returns the output pins. Currently, to get the pin IDs of these unsieved pins, the only way is to call getAllOutputPinsByType of previous module in the pipeline.
Describe the solution you'd like
For all the functions related to output pins, we should take a implicit flag as argument. The default value of this flag will be false. When true, we should consider input pins for the result as well.
Some method to be considered for this: getAllOutputPinsByType, getOutputMetadataByType, getNumberOfOutputPins, getNumberOfOutputPinsByType.
Describe alternatives you've considered
None.
Additional context
Sieve = disabled allows the input pins to be sent out as output pins as well.

As per discussion, following was agreed upon:
getAllOutputPinsByType -> only returns the declarative pins
getOutputMetadatByType -> only considers the declarative pins
getNumberOfOutputPins -> takes implicit as arg, if implicit=false, then it considers both input and output pins
getNumberOfOutputPinsByType -> only considers the declarative pins


When building my file i cant share it with other people

What steps will reproduce this issue?
create a wpf application and send it to a friend
Write problem description here
the program wont even open
Expected outcome
the program wont even open
Write expected outcome here
the program wont even open
--
Environment
C# wpf

MahApps.Metro latest
Windows 10
Visual Studio 2013
.NET Framework 4.5

@HupHupscripts So do you send all necessary dlls to your friend? Any other infos? Stacktrace?


Hide games with selected tags (inverse tag search)

Third feature request, a "without tags" filter, identical to "with tags" filter.
UI components allowing clicking on a tag (e.g. the existing game detail view)
would simply toggle between "unselected" (slightly grey as current behavior)
"with tags" (again, as current behavior) and "without tags"
(red, triggered by clicking an already selected tag present in the "with tags" list)

Suggested by Dragonfyre13 via Chat

I could really use this for filtering out VR games!


Slowness everywhere.

Type: Bug
Slow commit to local git, slow search, slow / missing intellisense. Something like this I has in Visual Studio 2022.
 Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Switch to eslint

Switch to eslint using most of airbnb/legacy.  This should keep the code much more consistent.  Also fixes our inconsistent indentation.

:boom: thanks - been meaning to do this for a while.

Just a note, you can run npm run lint -- --fix and it will auto-fix the semicolon and some of the spacing issues for you.  It takes multiple runs for nested indentation though.


Draggable datatable rows

This function solves the problem (这个功能解决的问题)
I'd like to see draggable datatable rows, similar to how it working in mantine https://ui.mantine.dev/component/dnd-table
Expected API (期望的 API)
We can have property for datatable called draggable-rows, and update hook like on-row-drag with oldIndex and newIndex.
Also i'd like to have opportunity to disable drag on some rows partially.

You can implement this super easily yourself using https://alfred-skyblue.github.io/vue-draggable-plus
Here's how I did it :

export function useTableDrag(params: {
  draggable: ComputedRef<boolean>
  tableRef: Ref<InstanceType<typeof NDataTable> | undefined>
  data: FullQueryState['data']
  onRowDrag: ComputedRef<DataTableSchema['onRowDrag']>
}) {
  const tableEl = computed(() => params.tableRef?.value?.$el as HTMLElement)
  const tableBodyRef = ref<HTMLElement | undefined>(undefined)

  const { start } = useDraggable(tableBodyRef, params.data, {
    immediate: false,
    animation: 150,
    handle: '.drag-handle',
    onEnd: (event) => {
      const { oldIndex, newIndex } = event
      const start = Math.min(oldIndex!, newIndex!)
      const end = Math.max(oldIndex!, newIndex!) - start + 1
      const changedRows = [...params.data.value].splice(start, end)
      params.onRowDrag.value?.(unref([...changedRows]))
    },
  })

  onMounted(async () => {
    while (!tableBodyRef.value) {
      tableBodyRef.value = tableEl.value?.querySelector('tbody') || undefined
      await new Promise(resolve => setTimeout(resolve, 100))
    }
  })

  watchOnce(() => tableBodyRef.value, (el) => {
    if (el && params.draggable.value)
      start()
  })
}

duplicate  https://github.com/tusen-ai/naive-ui/issues/1563


Passing nested objects in graphql service

Error occurs most likely in the grapql.service.ts in the prepareArguments method, probably in the process object part of the method(approx. line 185-210). I think there should be a condition that checks if the current property of the args Object is also an object. If thats the case the method should call itself with on a higher level to ensure that all nested objects are considered (similar to the array condition).

It wasn't a bug in the ng base code but a problem with the structure of the filter object of type FindArgs in my code.
Therefore you should be careful that you pass the filter object itself and not nested in another object.
FALSE:
this.graphQl('find', {       arguments: { filter },       ... });
CORRECT:
this.graphQl('find', {       arguments: filter,       ... });


[CI] [v0.11] lighthouseOptions.throttlingMethod always set to provided

Describe the bug
Despite throttle is true by default, lighthouseOptions.throttlingMethod always has the value provided, effectively disabling throttle entirely. Explicitly setting lighthouseOptions.throttlingMethod in the config file doesn't work as well.
Command used:
unlighthouse-ci --site <url> --debug

Config file:
export default {
  cache: false,
  ci: {
    buildStatic: true,
    budget: {
      performance: 90,
      accessibility: 91,
      'best-practices': 100,
      seo: 92,
    },
  },
};

Debug output (some of the paths are masked):
[Unlighthouse 11:18:22 AM] ⚙ Starting Unlighthouse at root: / cwd: /
[Unlighthouse 11:18:22 AM] ⚙ Discovered config definition { config: { cache: false, ci: { buildStatic: true, budget: [Object] } },
  sources: [ '/unlighthouse.config.ts' ] }
⚙ Unable to locale page files, disabling route discovery.                           Unlighthouse 11:18:22 AM
[Unlighthouse 11:18:22 AM] ℹ Using system chrome located at: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome.
⚙ Post config resolution { routerPrefix: '/',                                       Unlighthouse 11:18:22 AM
  apiPrefix: '/api',
  cache: false,
  client:
   { groupRoutesKey: 'route.definition.name',
     columns:
      { overview: [Array],
        performance: [Array],
        accessibility: [Array],
        'best-practices': [Array],
        seo: [Array] } },
  scanner:
   { customSampling: {},
     ignoreI18nPages: true,
     maxRoutes: 200,
     skipJavascript: true,
     samples: 1,
     throttle: true,
     crawler: true,
     dynamicSampling: 8,
     sitemap: true,
     robotsTxt: true,
     device: 'mobile',
     exclude: [ '/cdn-cgi/*' ] },
  server: { port: 5678, showURL: false, open: true },
  discovery: false,
  root: '/',
  outputPath: '/.unlighthouse',
  debug: true,
  puppeteerOptions:
   { headless: true,
     ignoreHTTPSErrors: true,
     defaultViewport:
      { mobile: true, width: 412, height: 823, deviceScaleFactor: 1.75, disabled: false },
     executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' },
  puppeteerClusterOptions:
   { monitor: true,
     workerCreationDelay: 500,
     retryLimit: 3,
     timeout: 300000,
     maxConcurrency: 7,
     skipDuplicateUrls: false,
     retryDelay: 2000,
     concurrency: 3,
     puppeteer:
      PuppeteerNode {
        _isPuppeteerCore: true,
        _changedProduct: false,
        connect: [Function: bound bound connect],
        defaultBrowserRevision: '122.0.6261.69',
        configuration: [Object],
        launch: [Function: bound launch],
        executablePath: [Function: bound executablePath],
        defaultArgs: [Function: bound defaultArgs],
        trimCache: [Function: bound trimCache] AsyncFunction } },
  lighthouseOptions:
   { onlyCategories: [ 'performance', 'accessibility', 'best-practices', 'seo' ],
     throttlingMethod: 'provided',
     throttling:
      { rttMs: 300,
        throughputKbps: 700,
        requestLatencyMs: 1125,
        downloadThroughputKbps: 2625,
        uploadThroughputKbps: 2625,
        cpuSlowdownMultiplier: 4 },
     formFactor: 'mobile',
     screenEmulation:
      { mobile: true, width: 412, height: 823, deviceScaleFactor: 1.75, disabled: false },
     emulatedUserAgent:
      'Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Mobile Safari/537.36' },
  urls: [],
  site: '<url>',
  ci:
   { budget: { performance: 90, accessibility: 91, 'best-practices': 100, seo: 92 },
     buildStatic: true,
     reporter: 'jsonSimple',
     reporterConfig: { lhciHost: undefined, lhciBuildToken: undefined } },
  hooks: { 'resolved-config': [AsyncFunction: resolved-config] },
  chrome:
   { useSystem: true,
     useDownloadFallback: true,
     downloadFallbackVersion: 1095492,
     downloadFallbackCacheDir: '/.unlighthouse' } }

Reproduction
See above
System / Nuxt Info
System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 1.26 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.4 - /usr/local/bin/npm
    pnpm: 8.15.4 - ~/Library/pnpm/pnpm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 121.0.6167.184
    Edge: 122.0.2365.63
    Firefox Nightly: 122.0a1
    Safari: 17.2.1

Also reproducible in GitHub Actions ubuntu-latest

Hi @mwskwong, thanks for the issue.
I've pushed up a fix for overriding the throttling.
v0.11 was meant to re-introduce throttling on by default but the configuration was actually set up incorrectly, I've gone with a custom throttling config to account for the CPU and network already getting trashed. Saying that, Unlighthouse has been and will never be for producing accurate performance metrics that are effected by variability.
Try out 0.11.4 and let me know if it's working better for you.

Hi @mwskwong, thanks for the issue.
I've pushed up a fix for overriding the throttling.
v0.11 was meant to re-introduce throttling on by default but the configuration was actually set up incorrectly, I've gone with a custom throttling config to account for the CPU and network already getting trashed. Saying that, Unlighthouse has been and will never be for producing accurate performance metrics that are effected by variability.
Try out 0.11.4 and let me know if it's working better for you.

For the original intent of this issue, it seems to load the correct config now in v0.11.4. However, would you mind elaborating on the "we need a custom throttling profile to account for the CPU/ network already getting blasted" part? i.e. the rationale of loosening the throttling.

The issue to solve is that the performance scores reported by Unlighthouse are either always too low (when throttling is enabled) or too high (because throttling is disabled). Users expect to see performance scores matching PSI.
While we're running multi-threaded Lighthouse scans there isn't really a solution besides fine-tuning the throttling


Bluetooth: Mesh: disable/enable advertising when suspending/resuming Mesh

Adds bt_mesh_adv_disable() to the advertising API for Mesh.
Disables/enables advertising when suspending/resuming Mesh.
Adds a bsim test checking that periodic publication is stopped when Mesh is suspended.

Adding the implemented bt_mesh_adv_disable() to bt_mesh_suspend() broke the pb_remote_timeout.sh test in test_provision.c (here). As far as I can see the changes should not be in conflict with the test should work, but likely disabling the advertising instance(s) causes some problems in the test. I will await some reviews before investigating further.
DNM was added and will be removed when this is resolved.

@omkar3141 I have implemented two tests; the first where we suspend then resume mesh, and the second where we suspend mesh, then disable Bluetooth before re-enabling Bluetooth and resuming Mesh.

Granted that the changes in the PR is ok, the failing "provision/pb_remote_timeout" test can be fixed by adding k_sleep(K_MSEC(100)) before this call:
https://github.com/zephyrproject-rtos/zephyr/blob/bc08e801c6b1416dcbbc679f5e25f801d438a531/tests/bsim/bluetooth/mesh/src/test_provision.c#L159
The problem is that mesh is suspended in the same period a message is sent, interrupting the message.

Granted that the changes in the PR is ok, the failing "provision/pb_remote_timeout" test can be fixed by adding k_sleep(K_MSEC(100)) before this call:
https://github.com/zephyrproject-rtos/zephyr/blob/bc08e801c6b1416dcbbc679f5e25f801d438a531/tests/bsim/bluetooth/mesh/src/test_provision.c#L159
The problem is that mesh is suspended in the same period a message is sent, interrupting the message.

If I understand correctly this will let the transport layer to send a SegAck. Sounds fine by me for now, though it can brake later. Probably k_work_schedule with 100ms will be better as it will not block bt rx thread and allow to process other messages (segments retransmission during this timeout).

You can rebase now to fix broken CI

I guess DNM can be removed?


No IntelliSense/AutoCompletion/Type information for ffi

Describe the bug
I am not getting IntelliSense/AutoCompletion/Type information for ffi
To Reproduce
Steps to reproduce the behavior:

Install this extension
Create a new .lua file
Type ffi = require("ffi")
Hover over the declared ffi variable, or in a new line type ffi.

Expected behavior
Type information is shown on hover, or autocomplete triggers when typing ffi.
Screenshots

This is the expected outcome (screenshot by someone else):

Environment (please complete the following information):
VSCode
Version: 1.68.1 (user setup)
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19043
Lua Language Server 3.4.0
Provide logs
file_d%3A_Downloads_lua-5.1.5_Win64_bin.log

Set "Lua.runtime.version": "LuaJIT", in your settings

It's already set to that.

I cannot reproduce this, please add --loglevel=debug in Lua.misc.parameters then provide your new log.

new_log.log

new_log.log

Strange, I can't reproduce your problem, but I found another problem. I'll try to fix the other first, maybe there is some connection between the 2 issues.
local math = require 'math'


Rails 7 upgrade with turbo

DEPLOYING REQUIRES CACHE CLEAR
app/packs is no longer a thing since Rails 7, so no moving files is necessary, everything stays in app/javascript
GOAL:

Change as little behavior as possible, just deploy the update to Rails and Turbo.

REALITY:

All of playlist playback js was heavily refactored

Player QA Issues

[x] Play on playlist should start loading on big play
[x] Play on big play should start playback
[x] Play track 1, pause. Play track 2: 100% visual progress
[x] Click on a played track for the second time sets big play timer to 0:00
[x] Click on track that already played results in big play time @ 0:00

TASKS:

[x] Turbolinks -> Turbo
[x] Update webpacker to 6.x
[x] Get rid of Rails.fire
[x] link_to remotes need to be replaced
[x] Update form: get an account
[x] Update form: login
[x] Update forms

[x] Get An Account

[x] create account after approved

[x] Login

[x] bio
[x] profile links
[x] change password
[x] change login

[x] create playlist
[x] edit playlist
[x] upload track
[x] mass invite
[x] password reset

[x] form on login page
[x] post reset pick a password form

[x] follow button
[x] favorite button

[ ] Playlist playback

Frontend:

[x] login form styles

QA:

[ ] Sudara: Check production bundle size
[ ] Toggles on edit
[ ] Theme toggle
[ ] Playlist ajax navigation
[x] Playlist sorting
[x] Check login form success and error
[ ] Check get and account form success and error
[ ] Check mass invite form success and error
[ ] Other forms?
[x] Favorite button
[ ] Follow button
[ ] Playlist playback

@ofsound I went ahead and added inline errors to the login form.
I was wondering if you could look at the html and css in user_sessions/new.html.erb and login.html.erb and the css there to determine the best shared path for the form styles....
You'd have to yarn install for this branch and restart bin/webpack-dev-server, if there's problems, blow away the node_modules dir.... Additionally, be aware that javascript has now moved into app/packs and therefore there some 5% chance you might have to manually move MorphSVGPlugin.js into the right place? Not totally sure since git is told to ignore that file.

I checked out this branch and it seems to work great on latest node 16 (nvm install 16 / nvm use 16 ...right now it's version 16.10.0).  I'd recommend adding a note to use that version in the contrib doc.

@ofsound Ok, this is ready for player QA on single and playlist playback.... I'm going to take a look at tests next....

Gannon SVG covers don't appear when returning to cover view
Multiple versions of the same track added to a playlist can't be navigated to from one another in the sidebar playlist
Using the browser Back Button can often have no effect on the site while used during or after Playlist Player
If you click back to profile from a playlist, and then return to that playlist, it briefly flashes the full state before showing the cover view:
https://user-images.githubusercontent.com/407724/149046044-9310f61c-3ef3-468f-ac84-792f0dd07b9f.mov
Handling of Playlist Player track ends, and replaying or animation states is out of sync. ( Includes play/pause states of playlist sidebar as well ):
https://user-images.githubusercontent.com/407724/149046104-cffb6b4a-44bf-4069-900c-250d111e78ae.mov
Should the to-pause animation happen every time you navigate back to viewing the currently playing track?
https://user-images.githubusercontent.com/407724/149046489-4dd8e56c-db83-48f5-bcb9-0f9228ba0e94.mov

@ofsound All of these are resolved except the "multiple of the same track" problem. I'm going to open up an issue for that one, as it will require some backend shuffling....
deploy deploy deploy?.... wanna do one more poke around?

Ok, I fixed the multiple tracks thing. You can't link to anything other than the first copy, but you can at least select the tracks in the sidebar and stitches will let you jump between them as different tracks.


IOS version will give error when initiating user to user chat.

Error happens immediately after loading the emoticons. Because of the error, users cannot talk with each other and chat is not auto-reloaded.
[2014-03-04 16:23:22] myapp.INFO: Matched route "_api_GET_filedownloader" (parameters: "_controller": "{}", "_route": "_api_GET_filedownloader") [] []
[2014-03-04 16:23:22] myapp.INFO: > GET /wwwroot/api/filedownloader?file= [] []
[2014-03-04 16:23:22] myapp.CRITICAL: Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "/vagrant_data/src/Spika/Controller/../../../uploads/" does not exist (uncaught exception) at /vagrant_data/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php line 41 {"exception":"[object] (Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "/vagrant_data/src/Spika/Controller/../../../uploads/" does not exist at /vagrant_data/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php:41)"} []
[2014-03-04 16:23:22] myapp.INFO: < 500 [] []

Its says that UPLOADS folder does not exists.
See instructions of installing. There is says "Create folders uploads & logs"


Fix Tekton Target's Cryptic Logs

By using Infow and Fatalw to correctly print the logs.
closes #242

Taking over so we can merge this.


Unabstractify VCS stuff

There's too much abstraction. It's more a readability than a speed issue.

Resolved by https://github.com/OSU-Net/cyder/pull/824


Adding new initialization loader

Replace the old initialization loader with a new modern one from the UX team

Hi @OmolemoBlessingLethuloe , @Tshepo1103-lab, the below screenshot is what I'm seeing on function site and I believe this is not the expected results. Please update and set the ready for testing when it is complete


CrossRef metadata import: improve handling of JATS markup in CrossRef JSON response

Description
This PR is a bug fix of issue #9382 .

content of abstract element in JSON response of https://api.crossref.org/works/10.1111/jan.12345:
<jats:title>Abstract</jats:title>
<jats:sec>
<jats:title>Aim</jats:title>
<jats:p>To explore the similarities and differences in the nursing practice in nutritional care between a residential
    aged care setting and a hospital setting.
</jats:p>
</jats:sec>
<jats:sec>
<jats:title>Background</jats:title>
<jats:p>Despite being preventable and treatable, undernutrition remains a problem for many older people in residential
    aged care and hospital settings. Nurses have a crucial role in assisting people who are unable to eat independently
    and are uniquely positioned to implement solutions that will lead to better nutritional care.
</jats:p>
</jats:sec>
<jats:sec>
<jats:title>Design</jats:title>
<jats:p>During 2007\u20132010, an action research study was conducted, underpinned by the principles of the
    participatory world view to address undernutrition in a residential aged care setting and a hospital setting.
</jats:p>
</jats:sec>
<jats:sec>
<jats:title>Methods</jats:title>
<jats:p>The multimethod approach of data and between\u2010method triangulation were used to collect and analyse
    qualitative non\u2010participant observations and action research group data. Non\u2010participant observations and
    action research group data were qualitatively analysed using the Analytic Hierarchy.
</jats:p>
</jats:sec>
<jats:sec>
<jats:title>Findings</jats:title>
<jats:p>How nurses chose to participate in the provision of nutritional care and assert their autonomy when changing
    practice to nutritional care affected the quality of the resident\/patient mealtime experience. Operational
    efficiency influenced the choices that nurses made about the type of intervention to implement to improve nursing
    practice in nutritional care. Nurses required management approval to change practice in nutritional care.
</jats:p>
</jats:sec>
<jats:sec>
<jats:title>Conclusion</jats:title>
<jats:p>The reasons for undernutrition are multifactorial and more research is needed to investigate the organizational
    structures and processes that affect the delivery of nutritional care across role functions, how these affect the
    continuity of care and the nurses' role in defining the culture around resident\/patient mealtimes.
</jats:p>
</jats:sec>

Result (abstract without JATS markup) in UI:

@saschaszott : This appears to be failing cause of some minor checkstyle issues.  See our Code Style Guide for how to do this check from your IDE or commandline to help you correct the code.


'Documents' app ignoring the 'filetype'

@Elyx0 , thanks man for your effort. This works really smooth.
But when I choose 'Documents' app it lets me choose any filetype and returns it with its extension.
However that is not supposed to be the case as in both iCloud and GoogleDrive the user can pick file with type specified in 'filetype' prop only and the url doesn't have an extension.
Do you have some ideas to handle such situations?
Thanks.

Hi @vaibhawc I actually have no idea, maybe @npomfret has some ideas though

What value are you passing for the filetype prop?

filetype:['com.adobe.pdf'],
Hey guys I am sorry, I had almost lost hope in this case, saw it just now.
I am trying to pick pdfs only, which both Google Drive and iCloud adhere to but not the Documents app.

You've solved your problem?

No man, it still exists. I had to settle with putting a check after after the file is picked, which sucks.
Why this must be happening?

Which os, iOS or Android?

It is iOS.

And what is the Documents app?

This one : https://readdle.com/products/documents
I came across this app while trying to test how document picking was going on apart from Drive and iCloud.

No idea about this one, sorry.  Maybe it just doesn't support a filter?

Oh, it's ok. Somehow I expected all apps were bound to accept a filter. Weird.

@npomfret, @Elyx0, I am curious, could there be a way to know the source of the file? i.e which app was used to pick it?


Can't configure secure cookies when webserver deployed behind an SSL facade

As far as I can tell, iron-session will only use the TLS attribute of the socket to verify that the request is https in order to allow setting the 'secure' attribute of the cookie. We deploy our apps behind a facade that terminates the SSL and passes the request to the nextjs server over plain http -- so I need to override this behaviour (or some ugly workaround).
Would it be reasonable to allow the 'secure' option to have a setting that means "set the secure flag even if the request doesn't look like http, if it breaks you get to keep the pieces"? Or possibly override the predicate for testing whether a request has arrived over HTTPS?

Hey there, you're definitely right and a fix was released to solve that in the latest version v6.0.2 can you try it?
Thanks!

Ah, we were some way behind on versions. I've updated now and it works just as needed. Thank you!


Pressing "Enter" results in a uncaught TypeError

Hey there
I have found a strange behaviour of slider-pro. When pressing the enter key it results in following error message:
Uncaught TypeError: Cannot read property 'click' of undefined (anonymous function) @ jquery.sliderPro.min.js:8 n.event.dispatch @ jquery.min.js:3 r.handle @ jquery.min.js:3
Check it out on the demo site: Demo
Is there an easy way to prevent this?

Hi,
For now you can prevent it by setting the 'keyboard' option to false, but I'll add a fix for it in a future update.
Cheers.

The latest update, 1.3, addresses this issue.


CloudStack allows deploying VMs on Networks that should not be accessed by VM's owner

ISSUE TYPE

Bug Report

COMPONENT NAME

API

CLOUDSTACK VERSION

(probably affects also versions before 4.15, but not tested before)
4.15
4.16
main (4.17)

CONFIGURATION

Advanced network with security groups
OS / ENVIRONMENT

N/A
SUMMARY

VMs can be deployed with Networks that have a domain ID where the VM’s owner / domain should not be able to.
Even with the user not being able to list the UUID, it is still possible to use the API command to deploy when passing the UUID.
This also can be easily reproduced when the root admin (which can list all networks) uses a "private" network when deploying a VM to a user that does not have access to the respective "private" / "restricted" network.
This can become a very serious issue in case this grows into multiple VMs on the wrong networks.
Also, this is a security issue.
STEPS TO REPRODUCE

Deploy VM for an account that has no access to the network ID

EXPECTED RESULTS

VM is not deployed (propper error message should be thrown)

ACTUAL RESULTS

VM is deployed on network that the user / domain should not be able to

Can you do this by using the UUID as a normal user from an account that should not be able to see this network?

@PaulAngus yes, it can be a normal User calling the API and the VM will be deployed on any network, regardless of the owner/domain of the network.
Normal users are unable to list these networks but they can still deploy VMs there.

@GabrielBrascher
I have fixed a similar issue but with L2 network in #5784
what type of network do you use ?

Thanks for raising that PR, @weizhouapache.
I have not dug deeper into your PR, so I might be missing another context beyond the lines you presented here.
Please, correct me if I am missing something regarding your PR.
Unfortunately, I don't see how changing from "caller" to "vmOwner" in the _accountMgr.checkAccess, does fix this issue.
I've tested both ways:

Root admin deploying VM for a user account
the user account itself deploying a VM (thus, caller = vmOwner)

Both ways the VM was deployed even with the owner / caller not holding permissions to deploy VMs on the respective network.

Thanks for raising that PR, @weizhouapache.
I have not dug deeper into your PR, so I might be missing another context beyond the lines you presented here. Please, correct me if I am missing something regarding your PR.
Unfortunately, I don't see how changing from "caller" to "vmOwner" in the _accountMgr.checkAccess, does fix this issue.
I've tested both ways:

Root admin deploying VM for a user account
the user account itself deploying a VM (thus, caller = vmOwner)

Both ways the VM was deployed even with the owner / caller not holding permissions to deploy VMs on the respective network.

@GabrielBrascher
OK, could you share your cloudstack version, zone type and network type ?
in my PR #5769, there are many changes related to network permissoins, mostly in server/src/main/java/com/cloud/network/NetworkModelImpl.java
However, first of all, we need to get a consensus if this is a critical issue for <IP_ADDRESS>.

Since the normal user can't list a network or has knowledge of the UUID then in 99.99% of cases this doesn't sound like a critical issue. This still however is a bug that should be fixed, I think it's upto the 4.16.1 RM @sureshanaparti to decide/triage.
@GabrielBrascher I also wonder if there are other APIs that have similar behaviour where a normal user can't list the resource or has knowledge of UUID, but other APIs could allow accepting those uuids for an operation on a resource.

@rohityadavcloud I was thinking the same. It is a good thing to run some tests with other API endpoints as well.


Package Request: FOG (Free Opensource Ghost)

Project description
An open source computer cloning & management system.
Metadata

homepage URL: https://fogproject.org/
source URL: https://github.com/FOGProject/fogproject
license: GPL-3.0
platforms: Linux

I would also be happy to see this


Display timestamps in threads

This is a two parter -

If messages are 15-30 minutes (or more) apart, a visible timestamp should always be shown.
All messages should have a tooltip/title-text that displays the time sent/received

Added in v2.0.0


Looking for Code Contributors and Reviewers

Hello Coders
I'm looking for code reviews and contributors to create a streamlined
[ ] setup CI/CD pipeline for testing on Travis
[ ] generating builds for developer testing, production demo on heroku and Google cloud run, electron builds for generating standalone app.
[ ] review code - code sanity, optimise for performance and longevity of this project.
[ ] write automation tests and setup test coverage standards.
The project status is in close to alpha version now, so wanted to scale the speed of project with help from opensource.
TLDR:
I'm Ravi, an IT consultant based in Hyderabad. I have been exploring Graph Databases for over a year, and found it every fascinated by the way, it can allow us organise data and find solutions for our questions. The best part of Graph Databases are heavily optimised for reads because every connection in always established on the write itself.
Coming back to this project, this is meant to be the User Interface for the Graph Data. This involves features like showing the connected data using data graphs, giving better visual feedback for the queries by users.
While I build the product, I'm looking for few more coding hands with expertise in reactjs  development and build life cycle.
Thanks ! Looking forward

@rrmerugu great initiative, check you mailbox :)


Igonchar/tcomp 513

What is the current behavior? (You can also link to an open issue here)
Runtime API classes work with any object
What is the new behavior?
Runtime API classes work with IndexedRecord instances
Please check if the PR fulfills these requirements

[ ] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
Related to https://jira.talendforge.org/browse/TCOMP-513

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: failure :x:

The work is postponed. I'll create another PR, when it will be ready.


QA for feat: disallow assigning on non new pulls

Testing pr 499

uhhh

but u should assign me now

im retarded my bad

/unassign

test

idk

/help

test 2

help

/help


[MXNET-749] Correct usages of CutSubgraph in 3 control flow operators

Description
This PR corrects the usage of CutSubgraph.
CutSubgraph consumes a Symbol s, and

Assumes the attribute __subgraph_name__ of s->outputs[0].node is the name of the subgraph
Assumes the boundary of this subgraph be nodes who has at least one immediate predecessor whose attribute __subgraph_name__ is not the name of the subgraph
Duplicates and puts these immediate predecessors into this subgraph

Calling CutSubgraph without very special care will cause disastrous consequences, often when s->outputa[0].node has an improper name. For example, in control flow operators, if we write a function lambda: x which captures an outside symbol x (so the attribute of x is not desirable), and an operator passes x into CutGraph as the first output of subgraph, the entire procedure breaks. Without copying and manually correcting such symbols, this will happen anywhere and be very hard to debug. An example that causes this bug could be https://github.com/dmlc/gluon-nlp/pull/233 in which the pred I pass to cond is calculated outside the subgraph.
This bug affects all three control flow operators, foreach, while_loop and cond.
CC: @zheng-da
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] 3 control flow operators.
[x] BTW, remove some unnecessary copies of std::string in the implementation of CutSubgraph.

Comments

Just looked into the code, seems that another thing we haven't ensure is that each subgraph should have its distinct name, otherwise the CutSubgraph may not work properly. Fixed in #12106.

we shouldn't add identity on all outputs. it's too expensive as a fix for a corner case.
But the current solution may not work either. I think a better way is to check if __subgraph_name__ is in symbol.list_attr() in the output symbol from the function.

@zheng-da I agree it is expensive. We need to ensure all output nodes of the symbol fed to CutGraph to have the same sub graph name, so not only should we check existence of  subgraph_name, but also should check if they are equal. But currently we have not ensured all subgraphs have different names though...

I submitted a PR ensuring subgraphs names to be unique in #12106.

@zheng-da I updated this PR just now, and now each symbol is copied only when their __subgraph_name__ != current subgraph name.
Another fix ensuring control flow operators to have unique names is also submitted #12106.

@zheng-da Hi, I add unittests for foreach, cond and while_loop according to the code you provided offline. Thank you so much for providing the testcases!

Thank you guys for have this merged!


im also there check it out

Your pull request needs further work because of the following reason(s):

Your filename must be HasangaLakdinu.html

Once you have resolved the issues, comment on this request to be re-judged
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

624fe9a6f63b8f74f82f6b44c3c76e790fa5eb2e

This PR has been idle for more than 24 hours, and will now be closed. Feel free to re-open.
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

624fe9a6f63b8f74f82f6b44c3c76e790fa5eb2e


Picketlink update to final version and inclusion of missing managed d…

…ependencies

http://github.com/uberfire/uberfire/commit/ea8eecdac


KeyError: 'GITHUB_OUTPUT'

There is an error in esphome/build-action v1.5.3 that got reverted (https://github.com/esphome/build-action/commit/085d17833cf95bde50236a39dcf54c35d6b8890b), but now this got merged here and therefor all the other builds will fail with the below error. Please revert: https://github.com/esphome/workflows/pull/40
    File "/usr/lib/python3.9/os.py", line 679, in __getitem__
  Version: 2022.12.1
      raise KeyError(key) from None

  KeyError: 'GITHUB_OUTPUT'

Oh, I see, the tag hasn't been janked 😭
Ok, will revert!


Few more icons

Any chance of getting a few more icons built in? Very helpful for building map apps.

About
Info
Slides/Bookmarks
Legend

Thanks!

@alaframboise we can ask the icon team to do more and add them. I should ask that we do have in info icon icon-ui-description

We could use icons for:

Ideas (lightbulb?)
Video
Training/Presentation

Based on some apps I created lately, here's a few more:

2D
3D
LayerList


Add-DbaServerRoleMember and Remove-DbaServerRoleMember

Summarize Command's Functionality'
It appears there are commands to add and remove Server roles, add and remove DB roles, and add/remove members from a DB role. However, there are no commands to add/remove members from server roles. I am trying to automate everything in our SQL Server cookbooks (we use Chef) using DBATools and feel this one is critical to get automated.
Thanks!
Is there a command that is similiar or close to what you are looking for?
Yes
Technical Details
similar commands:
https://docs.dbatools.io/#Add-DbaDbRoleMember
https://docs.dbatools.io/#Remove-DbaDbRoleMember

Have you tried this one for adding members to the server role?
https://docs.dbatools.io/Add-DbaServerRoleMember

No. I did not know that existed. I look for the list of all commands on the commands page: https://dbatools.io/commands/
Then, I look for syntax on the docs page: https://docs.dbatools.io/
It appears that Add-DbaServerRoleMember is not on the commands page, but is on the docs page.
However, it appears that Remove-DbaServerRoleMember is missing from both.
Thanks!

@JoelMiller74  you're right about the Remove-* function, it's not in the module.
@potatoqualitee can you please remind me what is the best way to update the  https://dbatools.io/commands/ page content? In the past it was WordPress, but don't think I made any changes since the migration.

Thanks, @MikeyBronowski! The website is severely out of date until I figure out how to automatically update it in our publish process. Till then, it can be updated here: https://github.com/sqlcollaborative/web/tree/html/commands


Hello,I met a bug: AttributeError: 'Trainer' object has no attribute 'num_gpus'

/nemo/utils/exp_manager.py", line 232, in exp_manager
global_rank = trainer.node_rank * trainer.num_gpus + local_rank
AttributeError: 'Trainer' object has no attribute 'num_gpus'

/nemo/utils/exp_manager.py", line 232, in exp_manager
global_rank = trainer.node_rank * trainer.num_gpus + local_rank
AttributeError: 'Trainer' object has no attribute 'num_gpus'

I change “global_rank = trainer.node_rank * trainer.num_gpus + local_rank” into “global_rank = trainer.node_rank * trainer.num_nodes + local_rank”，and my pytorch-lightning  version is 1.9.4

If I want to use your dataset in the paper"We split the segments to the maximal length of 0.63 seconds and added them as an additional category to the Speech Google Commands V2 dataset.", and I download Freesound and GSCV2 dataset, how to mix the two datasets, I want to try.

Also, "We publish a pre-trained Pytorch checkpoint (sgvad.pth)", I use my own dataset to train , the project generates .ckpt , but the inference file"sgvad.py" use the ".pth"file, there is bug"
Traceback (most recent call last):
File "/SG-vad-main/sgvad.py", line 89, in
sgvad = SGVAD.init_from_ckpt()
File "/SG-vad-main/sgvad.py", line 73, in init_from_ckpt
preprocessor.load_state_dict(ckpt['preprocessor'], strict=True)
KeyError: 'preprocessor'"
and I print the outputs of .pth and .ckpt,respectively,  I found the context of the two files is similar, but the orderdict is different. The output of sgvad.pth is"preprocessor OrderedDict([('featurizer.dct_mat', tensor()xxxxxxx",and the output of SG-VAD--val_loss=2.9956-epoch=102.ckpt is “ckpt {'preprocessor': OrderedDict([('featurizer.dct_mat', tensor([[ 0.1768,  0.24”.
Maybe I should change .ckpt into .pth?
Maybe I should try the function in the sgvad.py?
def save_ckpt(self):         ckpt_dict = {"preprocessor": self.preprocessor.state_dict(), "vad": self.model.state_dict()}         torch.save(ckpt_dict, './sgvad.pth')
I did't see the call of the "save_ckpt".

Forgive me , I have too many questions. Your threshold is 3.5, is this loss? And how to choose the threshold. Thank you!

Hello @moshengmao,
Sorry for the delay in my response.
Once the model is trained (SG-VAD module + auxiliary classifier module), we calculate the model prediction score by summing up the tensor in channel dimension and taking a mean value in time dimension. So the score is the prediction confidence. It is not normalized to the range [0,1] and your target data examples should be used for setting the optimal score for your application.
If you define the score to be 2.0 then you will probably accept many noise chunks in addition to the speech chunks.
We recommend to set the value to be [3,3.5] but you should verify on your target audios that it is good enough.
Please ask any questions you have.
Best

Also, "We publish a pre-trained Pytorch checkpoint (sgvad.pth)", I use my own dataset to train , the project generates .ckpt , but the inference file"sgvad.py" use the ".ckpt"file, there is bug"

Traceback (most recent call last):
File "/SG-vad-main/sgvad.py", line 89, in
sgvad = SGVAD.init_from_ckpt()
File "/SG-vad-main/sgvad.py", line 73, in init_from_ckpt
preprocessor.load_state_dict(ckpt['preprocessor'], strict=True)
KeyError: 'preprocessor'"

and I print the outputs of .pth and .ckpt,respectively, I found the context of the two files is similar, but the orderdict is different. The output of sgvad.pth is"

preprocessor OrderedDict([('featurizer.dct_mat', tensor()xxxxxxx

",and the output of SG-VAD--val_loss=2.9956-epoch=102.ckpt is “

ckpt {'preprocessor': OrderedDict([('featurizer.dct_mat', tensor([[ 0.1768,  0.24

”. Maybe I should change .ckpt into .pth? Maybe I should try the function in the sgvad.py? def save_ckpt(self): ckpt_dict = {"preprocessor": self.preprocessor.state_dict(), "vad": self.model.state_dict()} torch.save(ckpt_dict, './sgvad.pth')  I did't see the call of the "save_ckpt".

Regarding the checkpoin: the NeMo model is saved as a standard pytorch-lightning checkpoint. In order to produce the model in the format we put here on the Github we use the function here  that operates on the NeMo model. To convert the model you can use the next code:
    nemo_ckpt_path = "Classifier-with-STG-VAD--val_loss=0.0398-epoch=98.ckpt" # for example
    nemo_model = EncDecClassificationModel(cfg=train_cfg.model)
    ckpt = torch.load(nemo_ckpt_path , map_location='cpu')
    nemo_model .load_state_dict(ckpt['state_dict'], strict=False)

    print("Saving SGVAD as a seperate model")
    sgvad_dict = {'ckpt': nemo_model.fs.state_dict(), 'cfg': train_cfg.model.feature_selector}
    torch.save(sgvad_dict , './sg-vad.pth')

    print("Saving preprocessor as a seperate model")
    prep_dict = {'ckpt': nemo_model.preprocessor.state_dict(), 'cfg': train_cfg.model.preprocessor}
    torch.save(prep_dict, './preprocessor.pth')


Add Ruby and Ruby Signatures targets

This PR adds support for Ruby and RBS (Ruby Signatures).
The main issue with this PR in its current state is that it doesn't currently test that Ruby Signatures code will type-check against the generated Ruby code. This is arising from the fact that this is the first time there are two codegen targets whose code must be "in sync".

I think I'm going to live with the shortcoming in tests for RBS for now. In a separate effort, one could imagine a PR that figures out a way to test two targets in tandem. I don't want to block making progress with Ruby just on account of this issue.


Define $PATH variable when installing openlab via github/npm

After installing openlab via github, I receive a not found error by zsh. It is probably a missing $PATH that has to be set. Can we add that line to the README install instructions?

solved
npm install -g @labdao/openlab-cli


test(dm): fix unexpected sync-diff temporarily

What problem does this PR solve?
https://github.com/pingcap/tiflow/issues/4029
What is changed and how it works?

add comment to sync-diff probably wrong.

Check List
Tests

Integration test

Release note
`None`.

/run-dm-integration-test

Codecov Report

Merging #4031 (c9af242) into master (eed6f9b) will decrease coverage by 0.4700%.
The diff coverage is 58.2125%.

Flag
Coverage Δ

cdc
57.8121% <72.0095%> (-0.6251%)
:arrow_down:

dm
56.0457% <44.1463%> (-0.3295%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #4031        +/-   ##
================================================
- Coverage   57.3452%   56.8751%   -0.4701%
================================================
  Files           460        473        +13
  Lines         54927      56188      +1261
================================================
+ Hits          31498      31957       +459
- Misses        20180      20985       +805
+ Partials       3249       3246         -3

/cc @lance6716

/merge

/run-leak-test

/merge


TypeScript should infer relationship between function argument types from overloads

🔍 Search Terms
typescript function argument conditional type overloads automatic infer
✅ Viability Checklist

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
[X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
It would be nice if compiler could use the overloaded function declarations to automatically infer information about types in the implementation, to avoid unnecessary type checking.
📃 Motivating Example
https://tsplay.dev/w1LKOW
// The compiler forces us to type check the `value` in the implementation...
function Foo(value: number, ok: true): void;
function Foo(value: undefined, ok: false): void;
function Foo(...args: [number, true] | [undefined, false]): void;
function Foo(value: number | undefined, ok: boolean): void {
  var n: number;
  var u: undefined;
  if (ok) {
    n = value; // ERROR: Type 'number | undefined' is not assignable to type 'number'.
  } else {
    u = value; // ERROR: Type 'number | undefined' is not assignable to type 'undefined'.
  }
}

// ...even though the function overloads guarantee that the above cannot happen:
Foo(42, false); // ERROR: No overload matches this call.
Foo(undefined, true); // ERROR: No overload matches this call.

declare var value: number | undefined;
declare var ok: boolean;
Foo(value, ok); // ERROR: No overload matches this call.

declare var args: [number, true] | [undefined, false];
Foo(...args); // No error: arguments are fine

💻 Use Cases

What do you want to use this for?

I want to define a function which can receive a union tuple and have an efficient implementation of it.

What shortcomings exist with current approaches?

Unnecessary runtime checking required.

What workarounds are you using in the meantime?

Runtime checking.

You can do:
function Foo(value: number, ok: true): void;
function Foo(value: undefined, ok: false): void;
function Foo(...[value, ok]: [number, true] | [undefined, false]): void { ... }

That's another workaround, sure, but I have trouble understanding why TypeScript can't infer the case above.
Why does one construct work, but another (equivalent one) doesn't?
Is there some kind of rule I can follow to know in advance when something isn't working, and I should use alternative, equivalent format to achieve the thing?
Sometimes it feels like trying to make TypeScript work with me instead of against me is a game of cat and mouse.

That's another workaround, sure, but I have trouble understanding why TypeScript can't infer the case above. Why does one construct work, but another (equivalent one) doesn't? Is there some kind of rule I can follow to know in advance when something isn't working, and I should use alternative, equivalent format to achieve the thing?

It could be (but isn't currently) possible to write
function Foo(value: number, ok: true): void;
function Foo(value: undefined, ok: false): void;
function Foo(value,ok) { ... }

because the necessary info is already in the overloads, as you say.  In fact I recently read an old ts issue saying exactly that - I can't find it right it now though.  So that part of your issue is a duplicate.  Likewise for type checking the implementation.
Here is one way your code could be rewritten to avoid compile errors, yet handle all possibilities safely:
// The compiler forces us to type check the `value` in the implementation...
// function Foo(value: number, ok: true): void;
// function Foo(value: undefined, ok: false): void;
function Foo(...[value,ok]: [number,true]|[undefined,false]): void;
function Foo(...[value,ok]: [number,true]|[undefined,false]|[number|undefined,boolean]): void; // | throws "rangeError"
//function Foo(value: number | undefined, ok: boolean): void; // throws "rangeError"
//function Foo(value: number | undefined, ok: boolean): void {
function Foo(...[value,ok]: [number,true]|[undefined,false]|[number|undefined,boolean]): void {
    if (ok && typeof value === "number"){
        value; // number
    }
    else if (!ok && typeof value === "undefined"){
        value; // number
    }
    throw "rangeError";
}

// ... you wrote these apparently meaning that Foo might be called with rangeError inputs.
try {
  Foo(42, false); // no ERROR:
  Foo(undefined, true); // no ERROR:
}
catch(e){}

// ... you wrote these apparently meaning that Foo might be called with rangeError inputs.
declare var value: number | undefined;
declare var ok: boolean;

try {
  Foo(value, ok); // no ERROR
} catch (e) {}

// ... you wrote this safe in the knowledge that there is no rangeError inputs so try/catch not needed
declare var args: [number, true] | [undefined, false];
Foo(...args); // no ERROR

There is an ambiguity in your code comment "...even though the function overloads guarantee that the above cannot happen:".
Overloads cannot guarantee that a user will not pass rangeError data.  They can only guarantee that a compiler error will be raised.  But a compiler error can be a nuisance too - as in your call to Foo(value, ok);.
See #57057 for a proposal to less the verbiage in the final overload.  (Additional proposal 2).
You will notice that the overloads have been rewritten entirely in ...[] format, and the others commented out.  That because your last statement Foo(...args); gives an error otherwise.  That is a bug.


DPE-5178 Adopt admin-address throught out

Issue
As part of cycle, we ought to utilize admin-address for charm usage.
The idea is to ensure that the charm can connect to mysqld
instances (local or remote unit) even when max_connections is saturated
by related application(s), since connections to admin-address are do not count against max_connections.
Solution

library code to render admin_address in configuration file.
use admin_address:admin_port for users with ADMIN_CONNECTION privilege.
s/clusteradmin/serverconfig due cluster admin not having (and not needing to have, since replication channels don't count against max_connection) ADMIN_CONNECTION privilege.
add integration test to saturate client connections
use new feature on mysql-test-app PR#37 to retrieve connection data, used in integration test

Thank you! LGTM. Q: do we still have usecases for clusteradmin OR we need to clean it one day in the future from Juju Secrets and Documentation?

clusteradmin it still in use, since it's the (less privileged) user used for group replication, just not for charm operation.