RN 0.41 Includes a bundle file which causes a node haste conflict

to: @grabbou
Description
One cannot successfully run the packager in RN 0.41 because there is a bundle file which causes a node haste conflict (duplicate module). It looks like there is a webpack built bundle which includes a @providesModule declaration in it which is causing the packager to get confused.
Loading dependency graph...
React packager ready.

Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: deprecated
  Paths: ./lottie-react-native/node_modules/react-native/local-cli/server/middleware/heapCapture/bundle.js collides with ./lottie-react-native/node_modules/react-native/Libraries/Renderer/src/shared/utils/deprecated.js

This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
  Duplicate module name: deprecated
  Paths: ./lottie-react-native/node_modules/react-native/local-cli/server/middleware/heapCapture/bundle.js collides with ./lottie-react-native/node_modules/react-native/Libraries/Renderer/src/shared/utils/deprecated.js

This error is caused by a @providesModule declaration with the same name across two different files.
    at HasteMap._updateHasteMap (./lottie-react-native/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
    at module.getName.then.name (./lottie-react-native/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:119:31)

It looks like the offending file is $(package_root)/local-cli/server/middleware/heapCapture/bundle.js
Reproduction
react-native init
npm start

Solution
My guess is this got npm published by accident.
Additional Information

React Native version: 0.41
Platform: both
Operating System:MacOS

(Related: https://github.com/airbnb/lottie-react-native/issues/29)

Interesting. Could've happened on the CI? Locally all was working fine as the general release guidelines assume we actually run & test it.

I’ll double check locally. However, that shouldn’t happen as:

CI checks the app so packager has to start
I’ve checked it manually and was able to trigger dev menu and all these things

➔ react-native start
Scanning 557 folders for symlinks in /private/tmp/RNTestProject/node_modules (3ms)
 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /private/tmp/RNTestProject

Loading dependency graph...
React packager ready.

Loading dependency graph, done.
Bundling `index.ios.js`
  Transforming modules  100.0% (392/392), done.
Bundling `index.ios.js`
  No module changed.

My duplications are because React is included in the pod as well as within my react-native project.

@grabbou This appears to still be in 0.41.0-rc.1. Is this expected? cc @mkonicek

I believe I am experiencing similar issue via #12196

Reopening as I think the issue persists since it was gitignored and not npmignored

@lambdapioneer @mkonicek still getting following error on 0.41.1 :/
Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: jsc-heap-capture
  Paths: /Users/ilja/Documents/repositories/testProject/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json collides with /Users/ilja/Documents/repositories/testProject/node_modules/react-router-native/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
  Duplicate module name: jsc-heap-capture
  Paths: /Users/ilja/Documents/repositories/testProject/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json collides with /Users/ilja/Documents/repositories/testProject/node_modules/react-router-native/node_modules/react-native/local-cli/server/middleware/heapCapture/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
    at HasteMap._updateHasteMap (/Users/ilja/Documents/repositories/testProject/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
    at p.getName.then.name (/Users/ilja/Documents/repositories/skimitar/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:133:31)

Literary all I do is init new project, replace package.json file with my one that has few additional packages (double checked that all initial dependencies are correct i.e. v 0.41.1), run yarn and react-native run-ios and get this in the end


App crash on all provider (TV LAYOUT)

Description
I somehow did a alternative approach to the #139 issue i opened via using MATVT to click the TV layout option (coz Auto doesn't make it tv. i tried restarting the app)
App crashes
Provider
ALL PROVIDERS
Reproduction steps

Launch app
Select tv layout
Select any provider
App crashes

Next time you open the app, it just crashes after the start screen.
Operating system
MXQ Pro 4K TVBOX (Fake Android 12: its Android 7.1 [based on the api level])
Logs
No response
Please confirm the following

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] If related to a provider, I have checked the site and it works, but not the app.

You can now download the Streamflix app for TV only (if your device isn't correctly recognized as a TV or mobile) on Release 1.7.2


Fix warning in sync PR

…er.md

@stevestein : Thanks for your contribution! The author, @MashaMSFT, has been notified to review your proposed change.

#sign-off

My bad. Close this one...


Question: Is there a recommended/easy way to have public pages?

We are using NextJS with onLoad: "login-required" set in the _app.tsx. What would be the preferred way for having some pages being completely unauthenticated?
Best regards

Rendering the _error.tsx page for example is a common use case for this.

@alcesleo we have a couple of apps in production with an anonymous zone. use onLoad: 'check-sso' instead.
This will check if there is a user session. If so => retrieve a token, if not => keycloak token will be undefined and you can use keycloak.login() to redirect to the KC login page if needed for restricted zones.

@jannes-io That seems to work! However, the content-page flashes before being redirected to the login page, is there any way to prevent that?

Also, where would you put the check for keycloak.token? I still would like the default behaviour to be like in "login-required" across the vast majority of our pages, and not add a check to every page component.

@alcesleo we made a custom abstraction of BrowserRouter which adds an optional "security" check to each route. When the route is accessed it will check this security parameter. If it isn't set it is considered to be a publicly accessible page, otherwise, check if the user token has the required client roles.
I would post examples but it's proprietary code so I can't share it.

Thank you for your help! It sounds like your solution might be cleaner but AFAIK BrowserRouter is not a thing in NextJS, at least by default.
This is the solution I came up with for NextJS, it's not the least hacky code I've written, so if anyone knows a better way of doing this in NextJS please let me know.
It does let me keep the default behaviour of "login-required" without having to change every single page and risking to forget to use the wrapper/superclass to make pages private (which is almost always the case for us).
Create a LoginRequired.tsx component:
import React from "react";
import { useKeycloak } from "@react-keycloak/nextjs";

interface LoginRequiredProps {
  children: React.ReactElement;
}
export const LoginRequired: React.FC<LoginRequiredProps> = ({ children }) => {
  const [keycloak] = useKeycloak();

  // Do not require login if the component has a truthy `public` prop
  if (!keycloak.token && !children.props?.public) {
    keycloak.login();

    // Do not render anything unless logged in
    return null;
  }

  return children;
};

Wrap the Component in _app.tsx:
function MyApp({ Component, pageProps, cookies }: AppProps & InitialProps) {
  return (
    <SSRKeycloakProvider
      keycloakConfig={keycloakCfg}
      initConfig={keycloakInitCfg}
      persistor={Persistors.Cookies(cookies)}
    >
      <LoginRequired>
        <Component {...pageProps} />
      </LoginRequired>
    </SSRKeycloakProvider>
}

Then you can mark public pages as public by setting a public: true prop:
interface MyPublicPageProps {
  public: boolean;
}
const MyPublicPage: NextPage<MyPublicPageProps> = () => {
  return
Public page

};

MyPublicPage.getInitialProps = () => {
  return { public: true };
};


🛠FIX : Broken image on About Us page

Title of the Pull Request

[x] Have you renamed the PR Title in a meaningful way?

Related Issue

Closes: #1244
Description
About Us page broken image fixed.
How Has This Been Tested? ⚙
Go to About us page and check the image .
Screenshots 📷

Type of change
What sort of changes have you made:

[x] Bug fix (non-breaking change which fixes an issue)

Checklist

[x] My code follows the code style of this project.
[x] I have followed the contribution guidelines
[x] I have performed a self-review of my own code.
[x] I have ensured my changes don't generate any new warnings or errors.
[x] I have updated the documentation (if necessary).
[x] I have resolved all merge conflicts.

@vishanurag please review and merge the PR.


Testing in Windows

Hello, have you done any testing of the project in Windows? Its saying that its having an issue opening the keypoint classifier of the model

Hello, have you done any testing of the project in Windows? Its saying that its having an issue opening the keypoint classifier of the model

I think I've been having the same issue. I always get the error "Value Error: Could not open 'model/keypoint_classifier/keypoint_classifier.tflite'." I've been using tensorflow 2.4.0 but I'll try it with a newer and older version to see if it makes any difference. I'll update here

@rmonnev check also the path to the file, could be issue with different path name on Windows

@mspring6 have you been able to fix the issue? I've attempted several TensorFlow versions, checked the path to the file, changed the tensorflow-model versions, and installed tflite 2.4.0/2.3.0, but I haven't been able to fix the model issue

@rmonnev no I have not found a fix. I tried the same thing you did with installing different versions of tensorflow to no avail. I have moved on to use Ubuntu and have found no issues there

could you please explain how to use and run Ubuntu


Add: OpenGraph Api as proposed in the CanJS issue

https://github.com/canjs/canjs/issues/3453
DoneJS Main Page

<meta property="og:title" content="DoneJS - Your App. Done"/>
<meta property="og:image" content="https://www.bitovi.com/hubfs/Imported_Blog_Media/donejs-logo-ie.png"/>
<meta property="og:site_name" content="DoneJS"/>
<meta property="og:description" content="DoneJS is an open source JavaScript framework that makes it easy to build high performance, real-time, progessiv web and mobile applications."/>

You can add this metadata in your index.stache already. How do you think donejs should assist with this?

@matthewp lol i propose to do that for the donejs sites so they are share able? i tryed sometimes to share and got no good results thats why i stoped sharing i think the whole community will have the same issue :)

Oh ok, for the donejs website, got it.


Feature Request: Add Albedo as transaction signer

What problem does your feature solve?
When user want to sign a transaction on mobile, neither of the third party options are available.

What would you like to see?
A Sign with Albedo button on Sign Transaction screen
What alternatives are there?

this could be closed as completed


fix: add missing branches section

:tada: This PR is included in version 1.2.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update tailwind theme to codify/protect css changes

Changes made in #121 are being lost when running build since main.css is generated.
This PR adds the changes from @nickytonline to the tailwind.js theme config file. However, this spreads the changes out over many classes, which may or may not be desired. On a quick glance it looks ok, but I just wanted to point it out.
There are more improvements to this process that could be made, but wanted to get this in there so we don't accidentally lose #121

Looks like this got taken care of in 4bf8ce61c26bf55bd0e51b0f3e777ebe0d3222c9 !

That's my bad. I didn't realize it gets generated as it's currently committed in the codebase.


Add ChangeNotifier.isDisposed

This resolves an issue discovered in https://github.com/flutter/flutter/pull/24753. With a ChangeNotifier children have to release their resources (removeListener) before their parents do (dispose). However didUpdateWidget progresses from parent to child, so this cannot be used to release a resource which is held by both.
One solution is to allow children to check if the resource has already been disposed. Another would be to place the call to dispose in a microtask.

I don't think we should do this.
Having an API like this implies there was a problem in the ownership model.
By definition, once an object has been disposed, any attempt to use that object is a bug. Dispose() is equivalent to freeing the memory and so any use of the object is the equivalent of a use-after-free.


Ability to set a mirrored repeat texture flag on viewportSprite node

This will allow us to make a wraparound viewport, where the player can wraparound a single screen
On a texture of a sprite node one can set this by:
1 Add Sprite
2 Load texture
3 Check Region on
4 set Region Rect (0,0,640,480)
5 Edit texture
6 Check Repeat on ImageTexture Flags.
I was actually wondering whats the simplest way to do it in other ways, but the paralax layers seem to not work for a player moving around a stationary screen

im a 3d artist that is porting my hombrew to pc but because features like this are missing are in every other engine its not a simple matter of resetting up materials and import. these features can save memory and be use creatively to reduce texture size and im very dissapointed if i use this i have to remake practically every single model.. from an n64 game... that vulkan and opengl supports this.... i used these features that are in unity and unreal. i also dont want to use a game engine with those licenses. im in a bind.


Add real robot devices and scripts to control real robot

What this does

Add a robot_devices directory containing cameras (OpenCV compatible), motors (Dynamixel), robots (Koch)
Add a control_robot.py script allowing to teleoperate, record dataset, replay episode, run policy
Add unit tests that requires an alexander koch robot. For now they are meant to be run locally.

WARNING:
For the first teleoperation of the alexander koch robot, we run a calibration procedure to calculate:

the homing offsets used to normalize the joint positions in [-2048, 2048],
the drive modes used to revert the motor direction.

During this procedure, you will need to move each arm, one after the other, into a horizontal position (see picture) and a 90 degree position. You don't need to be accurate: when the position is slightly off, the procedure outputs the same results.
At the end, we store these values in a cache file to not have to do this process never again ^^
Horizontal position and 90 degree position:

We added proper pictures in our media directory and provided urls to these pictures during the calibration procedure.
TODO for this PR:

[ ] Test run policy

For future PR:

[ ] Add unit tests with mocking
[ ] Add a reproducibility test for data recording with automatic pre-recorded movements and check the data recorded is the same as expected (up to a certain range)
[ ] Add tutorials
[ ] Add intelrealsense camera
[ ] Add feetech motor
[ ] Add aloha robot
[ ] Add so-100 robot
[ ] Add reachy neck motor
[ ] Add reachy1 robot

How it was tested

Teleop can run at 200 Hz
Data recording can run at a consistent 60 Hz
Episodes can be visualized and replayed
Policy can control the robot

How to checkout & try? (for the reviewer)
git fetch origin user/rcadene/2024_06_22_control_robot
git checkout origin/user/rcadene/2024_06_22_control_robot

Try the sequence of commands in header of https://github.com/huggingface/lerobot/blob/95de4b7454567725c89a9eac33e9d7a611c424ba/lerobot/scripts/control_robot.py

For future PR:

[ ]  Add unit tests with mocking
[ ]  Add a reproducibility test for data recording with automatic pre-recorded movements and check the data recorded is the same as expected (up to a certain range)
[ ]  Add tutorials
[ ]  Add intelrealsense camera
[ ]  Add feetech motor
[ ]  Add aloha robot
[ ]  Add so-100 robot
[ ]  Add reachy neck motor
[ ]  Add reachy1 robot

[ ] Add unitree-go1 robot dog, in process
[ ] Add unitree-g1 humanoid robot, g1 is expected on market in October 2024.
[ ] Add skycraft humanoid robot, skycraft is expected on market in December 2024.
[ ] Add Jaka robot arm, can do anytime, if we have bandwidth.


[website] Render Pulsar REST API in ReDoc and Fix endpoint template

Motivation
ReDoc provides a good mechanism to load OpenAPI/Swagger-generated API reference documentation.


Error: Cannot find module './WatchMissingNodeModulesPlugin'

Whenever I attempt to run storybook using start-storybook -p 9001 -c .storybook I receive the error: Error: Cannot find module './WatchMissingNodeModulesPlugin'.
Error: Cannot find module './WatchMissingNodeModulesPlugin'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (<app>/node_modules/@kadira/storybook/dist/server/config/webpack.config.js:58:38)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
error Command failed with exit code 1.

Looking in the ./dist/server/config directory I cannot see the requested file (WatchMissingNodeModulesPlugin.js) however I can see it in the ./src directory.
I've tried running the scripts inside ./scripts to regenerate the file but not having any luck.

Turns out installing with yarn causes this to break.


Feature: GetHierarchy method and Nullable Reference Types

Fixes #5
Adds Nullable Reference Types to the project and enables nullable warnings as errors
Applies suggestions from C# analyzers for C# 8.0
Adds root solution file

In a follow-up PR I'd like to move the Xperience.Core.Breadcrumbs project out of the root of the repo and into src\Xperience.Core.Breadcrumbs so that a test project can also be added.
I'm curious, I noticed a bunch of situations (most noticeable in BreadcrumbHelper) where this library allows for non-DI scenarios. When would this ever occur in ASP.NET Core 3.1+ applications? It seems like a lot could be simplified and cleaned up if we relied on DI to supply things like BreadcrumbsWidgetProperties (added through IServiceCollection.Configure) and allowed that to be overridden if needed at the rendering call site.

I'm curious, I noticed a bunch of situations (most noticeable in BreadcrumbHelper) where this library allows for non-DI scenarios.

It's been so long, I honestly don't know :D This was just some personal project and I did not follow a lot of best practices when I made it. I think it had something to do with the difference between adding the breadcrumbs via view file and adding it via pagebuilder widget, but I'm not sure. I can try messing around with it and cleaning it up as well

No worries! I have plenty of old projects like that 😁
I have been using this in the project for a client, which is why I've been digging into it.
I might take a look at what could be simplified next week if the code assumes DI will be used everywhere...


test(extension): add minor fixes for tests

Checklist

[ ] JIRA - <link>
[ ] Proper tests implemented
[ ] Screenshots added.

E2E tests job

Proposed solution
Explain how does this PR solves the problem stated in JIRA ticket.
You can also enumerate different alternatives considered while approaching this task.
Testing
Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met
Screenshots
Attach screenshots here if implementation involves some UI changes

Allure Report
allure-report-publisher generated test report!

processReports: ✅ test report for 2bc516f0

passed
failed
skipped
flaky
total
result

Total
32
0
0
0
32
✅


[Snyk] Security upgrade firebase-admin from 11.11.0 to 12.0.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
yarn.lock

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

768/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 7.5
Infinite loop SNYK-JS-MARKDOWNIT-6483324
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
103

Relevant Lines:
103

💛  - Coveralls


Fix terrarin texture artifacting.

Can use both mipmaps and anisotropic filtering to reduce the effect. Can probably do this pretty fast so can try it this milestone.

Done with help from Jaker


GEOMESA-699 Force 4326 in GeomesaCoverageReader

GeomesaCoverageReader now defaults to EPSG:4326.

Committed as 179594a4e7ede3e16cc0a74dee4d384fd8192e17 on f_wcs_4.


border: forbid redirecting mangled functions

interface, callback or sidecar functions are to be redirected when loading
the module. But if these functions are mangled by GCC, they lose the
original semantics in general cases, because mangling usually happens when
optimzing for some special cases. Redirecting them will lead to bugs.
Moreover, GCC usually leaves an unmangled symbol in the binary as well,
making it look safe to redirect this unmangled symbol. But is not safe.
So in the analyze phase, we check if interface, callback or sidecar
functions are mangled. If they do, the analyzing fails.
Signed-off-by: Yihao Wu<EMAIL_ADDRESS>

/retest

The overall implementation is too complex, please simplify the algorithm and improve the efficiency of the algorithm

/retest


Add step to improve time sync on Windows 10

Add like 4 ntp servers from https://www.ntppool.org/en/use.html
Update w32time config: https://www.ctrl.blog/entry/tutorial-windows-ntp-config.html
See if we can be a little more aggresive in terms of time sync configuration: https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings

Use configuration for High Accuracy: https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/configuring-systems-for-high-accuracy

Comments from YorickDowne:

[8:47 AM] YorickDowne (he/him): I don't think you need high accuracy. You do need it to sync more often than every 7 days, and w32time needs to actually run
[8:48 AM] YorickDowne (he/him): You could check whether domain-joined, and if not, sc triggerinfo w32time start/networkon stop/networkoff so w32time starts on boot, then start it manually so user doesn't have to reboot.
[8:49 AM] YorickDowne (he/him): Next set Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w32time\Config\MaxPollInterval, for example to hex c
[8:50 AM] YorickDowne (he/him): And check Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w32time\Parameters\NtpServer. If it ends in 0x9 you are done; if it ends in 0x1 then set Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w32time\TimeProviders\NtpClient\SpecialPollInterval to 3600, 1 hour. Or, skip the check, and set it regardless, also a good choice.
[8:50 AM] YorickDowne (he/him): That should do it. Testing needed.

[8:53 AM] YorickDowne (he/him): You can verify that w32time actually started and is working with w32tm /query /status /verbose
[8:54 AM] YorickDowne (he/him): Which outputs something like this:
[8:54 AM] YorickDowne (he/him):

PS C:\Users\> w32tm /query /status /verbose
Leap Indicator: 0(no warning)
Stratum: 4 (secondary reference - syncd by (S)NTP)
Precision: -23 (119.209ns per tick)
Root Delay: 0.0663579s
Root Dispersion: 0.1291156s
ReferenceId: 0x0D5665AC (source IP:  <IP_ADDRESS>)
Last Successful Sync Time: 5/2/2021 8:25:56 AM
Source: time.windows.com,0x9
Poll Interval: 12 (4096s)

Phase Offset: -0.0254738s
ClockRate: 0.0156250s
State Machine: 2 (Sync)
Time Source Flags: 0 (None)
Server Role: 0 (None)
Last Sync Error: 0 (The command completed successfully.)
Time since Last Good Sync Time: 1675.0198357s

[8:55 AM] YorickDowne (he/him): Have at it with various pool servers, I think that's fine and arguably optional. time.windows.com,0x9 works. That 0x9 means it will adjust the poll interval depending on how well the clock is keeping time.
[8:56 AM] YorickDowne (he/him): Dropping the MaxPollInterval down to c just makes sure it doesn't go very long regardless.

Some base commands:
net stop w32time & net start w32time
w32tm /config /update /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
w32tm /resync
w32tm /query /peers

Setting the Windows Time service to Startup Type: Automatic

https://www.top-password.com/blog/automatically-sync-windows-time-more-often-than-default/

Completed wtih 04513abf58e36998a6479926e09ca02f5a3f7dce


Minified JavaScript files sometimes not parsed correctly

The parser for minified JavaScript files sometimes calculate the name of the package incorrectly.
This issue seems to occurred in two cases

The format of the comment with the version does not match the expected pattern
Next to the comment with the version, there are more comments, possible matching the pattern

The first case looks like this:
/*! <package>: <description> - updated mm/dd/yyyy (<version>) */

The second case looks like this:
(function(jQuery){

/*! <package>: <description> - updated mm/dd/yyyy (<version>) */
!function(e){ // come code

/*! Another comment */
// more code
});

Both cases leads to the behavior that

the extracted version contains more than the version, sometimes even JavaScript code
the package name could exceed 255 characters

Example for a version: ")}return e},type:"text"}
This issue is may be related to #723

@3l73 thank you for the report. Would appreciate it if you could contribute a PR with some fixes including filtering out problematic components with some warning.


Added insertion tests for encrypted smalldatetime and datetime columns

Coverage decreased (-0.04%) to 76.577% when pulling 3daac7478ec9917caa3019f71eca6fe302bcbffd on yitam:datetime into 3dddbbb2e262f6b8d1c99249ba6595e611f5c2c5 on microsoft:dev.


Minitest template is wrong

Bundler creates test/test_#{my_gem}.rb file with class TestMyGem, but common practice is to create test/#{my_gem}_test.rb file with class MyGemTest.
Also - why test helper called minitest_helper?

good catch @yuriihabrusiev .. I am working in a solution for this..
Indeed your 2 points should be followed.


Fix ILIKE parameters quoted params

Codecov Report

Merging #2375 into release-candidate will increase coverage by <.01%.
The diff coverage is 100%.

@@                  Coverage Diff                  @@
##           release-candidate    #2375      +/-   ##
=====================================================
+ Coverage              93.76%   93.77%   +<.01%
=====================================================
  Files                    163      163
  Lines                  18647    18663      +16
=====================================================
+ Hits                   17485    17501      +16
  Misses                  1162     1162

Impacted Files
Coverage Δ

qiita_db/test/test_processing_job.py
99.81% <100%> (ø)
:arrow_up:

qiita_db/processing_job.py
92.82% <100%> (+0.07%)
:arrow_up:

Continue to review full report at Codecov.

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


How to optimize over partial parameters of a function?

For example, the objective function is objective(a, b, c), how do we indicate the parameters to be optimized while others are fixed in the two functions : obj_grad = grad(objective) and opt_params = adam(obj_grad, init_params) ?

See #437.


Don't allow idle threads to live forever

From https://bz.apache.org/bugzilla/show_bug.cgi?id=66581
Currently the ExecutorService used for this is as such:
ExecutorService executorService = new ThreadPoolExecutor(0, Integer.MAX_VALUE, Long.MAX_VALUE, TimeUnit.MILLISECONDS, new SynchronousQueue<>(), new AsyncIOThreadFactory());
This means that the threads never terminate and are spawned whenever a thread is not available, which for a server under a spike of load spawns many threads which never exit, consuming system resources indefinitely.
I would suggest that a saner idle timeout than Long.MAX_VALUE should be used, such as 60 seconds, unless there is a good reason I am unaware of as to why such threads should never die.

This seems like a good idea (although no idea about the best default idle value). It was like this since the code was initially added.

My reading of the code is that the AsynchronousChannelProvider submits tasks that never end to the executor so this patch has no effect. The purpose of the Executor is to replace any threads that fail. Local testing appears to confirm this. Unless I've missed something (always possible) I think this PR (and the associated BZ issue) needs to be closed without being merged.

I'll have a further look at this tomorrow. The situation I have is hundreds of idle threads. Potentially a configurable solution using virtual threads would mitigate the issue.

A thread dump would be helpful.

Hum, this is the websocket client and it is using NIO2, so that executor would be used internally for all things that are run asynchronously for IO like calling completion handlers and so on.

I can find this documentation on the AsynchronousChannelGroup.withCachedThreadPool call made within this websocket code:
•  An asynchronous channel group associated with a cached thread pool submits events to the thread pool that simply invoke the user's completion handler.
•  Internal kernel's I/O operations are handled by one or more internal threads that are not visible to the user application.
•  That means you have one hidden thread pool that dispatch events to a cached thread pool, which in turn invokes completion handler
•  Probability of suffering the hangs problem as with the FixedThreadPool is lower.
•  Still might grows infinitely (those infinite thread pool should have never existed anyway!).
•  At least you guarantee that the kernel will be able to complete its I/O operations (like reading bytes).
•  Oups...CachedThreadPool must support unbounded queueing to works properly (grrr not sure I like that!!!).
•  So you can possibly lock all the threads and feed the queue forever until OOM happens. Great!
•  Of course, nobody will ever do that!

So in short this threadpool is only used for completion callbacks.
It seems like the decision was made to have a synchronous queue with an unbounded number of threads, rather than have a bounded number of threads and an unbounded queue. To me this seems like the wrong way round, interested to hear thoughts?
There is no good reason to keep the threads running forever that I can see based on the documentation and also other implementations that call the withCachedThreadPool method?
Additionally, looking at the dump there are two SecureIO threads created for every websocket session. This seems very resource hungry if you have hundreds of websocket connections? This is something that I imagine could be solved by virtual threads, or refactoring to have a shared thread pool?
Thanks all
threaddump.txt

The thread dump confirms the earlier analysis. The sun.nio.ch.KQueuePort$EventHandlerTask never exits so the proposed change will not have the impact desired.
It would be worth exploring if the default group configuration has changed since the code was first written since the intention was to mimic that but with the added benefits that multiple WsWebSocketContainer would share a single pool and that the pool would be destroyed when no longer required.


Audio is claimed not to playback as consistently in r42 as from r41 or other previous versions

The 8-Bit Guy on Discord:

Is it just me... or does the sound not work as well in the latest version of the emulator?
It seems the vera is too loud. And when the music first starts, the emulator kind of chokes on sound.

@SlithyMatt on Discord:

the sound has definitely not worked as well on Linux with the last few releases
I get all sorts of pops and things from about R40 on

Ender on Discord:

I'm running on windows, and I had left Lemur's BASIC sound demo playing for a while and it will eventually start to choke on the sound. Nothing short of closing and opening the emulator seems to fix it.  The window title doesn't show less than 100% emulation speed, so I'm not sure what's making it skip
I've noticed it while playing Tetrads in the past too

@tomxp411 on Discord:

Honestly, I'm getting a lot of pops and dropouts in FM synthesis. I got them before, too, but it's definitely not "great".

Oddly, R42 has been the best-performing release for me when it comes to emulator audio.  I used to get several clicks and pops per second.  Linux in particular was pretty bad in R41.

I have the opposite experience PSG sound is better in R41 than R42, but this might be due to that R42 is slower i.e. the emulation on a slow system such as x86-32 Celeron 900 MHz (EeePC 900) has a lower percentage of full speed than R39 (I don't have R41 on my EeePC).

Here are my findings about this.
I am on Linux and made 2 changes that for me, resolved almost all of the audio crackles:

double the audio buffer size in src/audio.c from 256 to 512  (and adjust SAMP_POS_FRAC_BITS accordingly from 24 to 23)  (note: doubling it again to 1024 breaks stuff severely somehow)
run the emulator with environment variable PULSE_LATENCY_MSEC=20 set.   My system uses Pulse audio.

I don't know what the equivalent of the #2 would be on windows
Another thing that I experimented with was telling the emulator to not use pulseaudio but revert to Alsa using SDL_AUDIODRIVER=alsa ,   and that improved matters as well.  It looks like there may be some SDL <-> pulseaudio buffering shenanigans going on.
No idea how this all relates to the Windows version, because Pulseaudio obviously is not a thing there.

Is it just me... or does the sound not work as well in the latest version of the emulator?
It seems the vera is too loud. And when the music first starts, the emulator kind of chokes on sound.

This should be helped by #61

#88 is also a marked improvement, IMO.

Oh, this is nice!
My 'karaoke' music streaming demo now works equally well on hostfs as on sdcard image.   Great work


Automatically pump os.proc streams when SystemStreams are redirected

Depends on https://github.com/com-lihaoyi/os-lib/pull/283
This moves the subprocess stream handling logic out of Jvm.spawnSubprocess and makes it apply to all os.proc invocations, greatly reducing the room for error. With this, Jvm.spawnSubprocess becomes a very thin wrapper around os.proc.spawn. We also rely directly on OS-Lib's own pumper threads to pump to our destination, rather than having them pump into in-memory buffers and then spawning our own pumper threads to pump from those buffers to the destination
I spent some time looking into how to do the stdout/err handling at the process level, but couldn't find any reasonable mechanism to do so that allows us to preserve the ordering of the stdout/stderr. This is the original motivation to squishing it into one stream via ProxyOutputStream/ProxyStreamPumper and is important because otherwise you find e.g. stack traces out of order with printlns, which makes debugging very difficult. Might be possible using some socket/fifo/pipe cleverness, but not as part of this PR
Added an integration test to assert on the subtleties of stdout, stderr, and their inherited alternatives. This PR is required for the test to pass

I think this should be ready for review @lefou

Tested the BSP integration via intellij on example/scalabuilds/9-realistic. Seems to load successfully with some printlns and os.proc calls added to the necessary tasks


Mobile phone integration?

Hello,
I hope there is some way to be able to sync the data and track it through mobile phones. I mainly use Android, and uhabits is my favorite tracker. However, I can't find an easy way to manage it and dijo. I think it is possible to set up Tasker, which I don't have experience with, to export a csv file and then convert it into json which will get synced through Syncthing. I feel this is over complicated and will take long time to do and probably won't work as expected.
I am basically asking you, the community, for opinions regarding this issue since I didn't find any discussion about this important aspect.
Thanks for the time.

I'm particularly interested in starting to use dijo as my habit tracker. I'm considering making a mobile app that will use this programs file format into a more mobile friendly UI for tablets and phones. If I do end up working on that and making it I'll post a link here if anyone's interested. (it would be Android exclusive)


Create CONTRIBUTING.md

I use the same template with UI repository.

Coverage remained the same at 19.428% when pulling fd5ef76c79bde6327930487c7428c571bd0a7241 on contributing-doc into 101fc110277d8f86ab4b28ead251a929767a7fe0 on master.


add tiktokV2 authentication

Hello Zeeshan!
Thanks for migrating to V2, really need this.
Greetings from Switzerland!


Can support for ssd1306 be added?

i had some ssd1306 displays lying around can the display be changed with a oled ssd1306 display

The advantage of WiFibox lies in its graph feature. Adding Oled compatibility may not be necessary, as there are likely many projects available for a packet monitor with Oled ssd1306.


Added initial markdown parsing

Parses heading level 1 markings in markdown files

These changes look good, I have looked into the issue of the operating system not being chosen. I have left a comment where you can fix this and how.


Please provide a reference to the containing/owning module for every feature in the API

Suggestion:
Presently the Angualr 2 API preview groups the features of the API by module and within every feature of the API an exported from and defined in references are provided, for example @Input:
exported from @angular/core/index, defined in @angular/core/src/metadata/directives.ts
The API feature exported from and defined in are referencing documentation that doesn't specifically reference the Angular module an application would need to import...
A reference within the individual features to the Angular module to import would be handy and would make it obvious for new developers which module is required to use the feature.
This (former)...
exported from @angular/forms/index
...is significantly different from providing a usage example (latter)...
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
in that the latter is instructive / authoritative whereas the former is passive requiring interpretation (foreknowledge) to understand or use with confidence
https://github.com/angular/angular/issues/12036

Reported at #1535 and I believe there is some new effort on doing that already, so stay tuned :)


Compression keeps running

In the newest Fork version (5.8.0) the compression action keeps running, in the console you can see the "File read" is counting but none of the images are being compressed.
A time out is the result.
Already did some debugging and found 1 fix that helped a little bit but after compressing a few images the process again keeps running.
/Engine/TinyPNGApi.php - Line 108
if (substr($header, 0, 10) === 'Location: ') {
By dumping the $header it seems the "Location: ' is lower case 'location: '

Interesting find 👀 !
I have a WIP version that uses the latest composer package for the TinyPNG api, with Server-Sent Events (SSE) to push realtime feedback to the console, will try to finish that and publish a branch. Might fix this issue as the TinyPNGApi.php has not been updated in a while in this repo

@jessedobbelaere  thx, would be great! My first thought was indeed an outdated TinyPNGApi.php

@wouterverstuyf I had issues in my branch too using the tinify/tinify library where it stalls (request to tinypng does not get a response back) 😕 Could be related to the issue you have. Not sure yet what the root cause is...
However, I got compression working using a different library (https://github.com/robopuff/tinypng) but it lacks a way to check how many credits you have left. So what I plan to do is add my own simple Guzzle client in the module that can send a file for compression, or just ask for credits left...

@jessedobbelaere Great, thx for your time! Glad that this will be solved :)

Can you try v4.0.0? I tested this on one of my websites and seems to be working okay :D
https://github.com/friends-of-forkcms/fork-cms-module-compression/releases/tag/4.0.0


The init parameter should accept only positive values

Requirements

[ *] Is there a issue open describing the motivation for this pull request ?

[ ] Does the pull request need an update of the documentation ?

[* ] Does the pull request need additional test(s) ?
non-positive value should be introduced

[ ] Clean up the warnings generated by the style guide

Description of the Change
Explain the approach and possible drawback(s). Use labels to add context.
Steps and Constraints

Please check if zero is accepted as an input (I'm not aware of the algorithmic side)

Applicable Issues
Implements or Fixes #1328

@jcohenadad ayyyyyyyyyyy I am sooo sorry! using an automated script in my laptop causes this ... :( I forgot to fix it :-(

Ignore various format changes (autopep8 applied)
@jcohenadad @zougloub aren't you using pep8 or pylint auto-format? every time I save a code, this will happen

@abtahizadeh i removed "bug" pls see: https://github.com/neuropoly/spinalcordtoolbox/wiki/Contribution-Guidelines#labels

if the change fixes a error in the code.

not related?

about this: i let @zougloub follow-up-- there was already some discussion on this

@abtahizadeh:

changes [...] can only have one category

if you find the guidelines unclear/inappropriate pls suggest improvements-- thx

@jcohenadad guidelines are specific to project owner, it's really your conventions. I just have to follow, will pay attention next time.

On https://github.com/neuropoly/spinalcordtoolbox/pull/1838#issuecomment-395618221:

The discussions we had before were about enforcing PEP8 compliance using Travis, or not.
So far we said no to that, based on the fact that unless we all use the same linter as Travis, a lot of time would be spent to fix everything. Not to comment on the fact that automatic indentation sometimes breaks "creative" alignment that is often used in algorithmic code.

It's OK if you do fixes for formatting issues, better if you could put them in separate commits (using git's stage lines feature) that would be better to separate the actual changes from style changes.

As for personal stances:

PEP8 is not 100% dogmatic, and you will see me not respecting the "one import per line" recommendation when it comes to base stdlib modules (import sys, io, os, re, datetime, collections).
The only thing that I will systematically fix when touching a file, is trailing whitespace.
In this particular commit, the change that adds whitespace to do alignment is not fixing a PEP8 issue though, I believe the previous code was compliant to PEP8. If it were me I wouldn't have "fixed" it. And I find that aligning continuation lines with the same indentation as a code block is less legible; to the opening parenthesis is better, but breaks down in case of function rename (realign everything...), I tend to use a single whitespace for continuation lines, which works in all languages... And I'm in the "indent with tabs, align with spaces" camp of aliens.


Review Gustavo doc

https://docs.google.com/document/d/1ChdHdPfbpOMjliE9wUXCZUsJkZR4YcONQOA0xqjTLFU/edit#heading=h.lne1wwp0x2wy

Basically they want smaller urls and if possible replace some query parameter with routes (like current tab)


drivers: sensors: Add basic I3G4250D gyro support

These changes add basic support for I3G4250D gyroscope mounted for example on STM32F3 discovery board.
No support for triggers/interrups is implemented and the driver only supports spi, no i2c.

Another comment: 91b599a seems to come after 55bcbd1, which is wrong.

commits adding support on f3 disco board should come after the addition of the sensor, otherwise you'll have a range of commits in a broken state.

reordered the commits now:

driver implementation
add gyro to board def
add tests

@gmarull I am not sure, how to generalize my on device tests. I would rather create another PR with more general testing and for example replace my test, with an example application. What is your opinion on this?

@MaureenHelm ping ;)


Restored user account of "akamen"

"akamen" user configuration is configured in our Jenkins build to publish artifacts

Description

Submitter checklist for adding or changing permissions

Always

[x] Add link to plugin/component Git repository in description above

When enabling automated releases (cd: true)

[x] Add a link to the pull request, which enables continous delivery for your plugin or component.
Follow the documentation to ensure, your pull request is set up properly.

When adding new uploaders (this includes newly created permissions files)

[x] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[x] All newly added users have logged in to Artifactory and Jira at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

@jcroall  Can you approve and merge this change?

@vhegde2017 I don't think I can approve, but I will fill out the necessary form.

@vhegde2017 I think you are an authorized maintainer, can you fill out the form - this is the jenkinsci/synopsys-coverity-plugin component - and then it will get reviewed by the jenkins owner.

@vhegde2017 I think you are an authorized maintainer, can you fill out the form - this is the jenkinsci/synopsys-coverity-plugin component - and then it will get reviewed by the jenkins owner.

Indeed, they are a maintainer of the plugin; however, we typically wait for an approval by another plugin maintainer if there is more than one maintainer.

@vhegde2017 I think you are an authorized maintainer, can you fill out the form - this is the jenkinsci/synopsys-coverity-plugin component - and then it will get reviewed by the jenkins owner.

Indeed, they are a maintainer of the plugin; however, we typically wait for an approval by another plugin maintainer if there is more than one maintainer.

Then, I approve.


maybe disable the implicit conversion from Option to Iterable

as it leads to confusing effects f.e. when zip results in an Iterable where it should be an Option (don't be confused by the [use case] in the scala docs, it really does return an Iterable).

This wart was added in https://github.com/puffnfresh/wartremover/pull/167.

cool, thanks


patterns.css and elements.css are unused

all .scss files in app/assets/sass get compiled to css files in /public/stylesheets/
currently that means patterns.scss and elements.scss get compiled to separate .css files, which we don't use (these files are only used as imports for application.scss)
suggest we move them into app/assets/sass/imports

These should be partials.
If we rename them to use an underscore, _patterns.scss and _elements.scss, then they won't be compiled.
Originally elements.css was included as a separate css file, which is why it was compiled in this way.

ok cool, just wondering if an imports folder is easier to understand than leading underscores?


cannot narrow to type qualified by use-site variant type

Attempting to use if(is ...) to narrow a type like:
CeylonProjectBuild<Module,VirtualFile,VirtualFile,VirtualFile>.BuildMessage

To a type like:
CeylonProjectBuild<out Anything,out Anything,out Anything,out Anything>
            .SourceFileMessage

Results in errors like this:
Ceylon backend error: incompatible types: CeylonProjectBuild<Module,VirtualFile,VirtualFile,VirtualFile>.BuildMessage cannot be converted to CeylonProjectBuild<? extends Object,Object,? extends Object,? extends Object>.SourceFileMessage

Note: SourceFileMessage is a subclass of BuildMessage.
@FroMage would you take a look at this please, because it's blocking an IDE task.

Wow, even worse: just trying to assign a CeylonProjectBuild<Module,VirtualFile,VirtualFile,VirtualFile>.BuildMessage to the type CeylonProjectBuild<out Anything,out Anything,out Anything,out Anything>.BuildMessage results in an error:
Error:(164, 37) ceylon: Ceylon backend error: incompatible types: com.redhat.ceylon.ide.common.model.CeylonProjectBuild<com.intellij.openapi.module.Module,com.intellij.openapi.vfs.VirtualFile,com.intellij.openapi.vfs.VirtualFile,com.intellij.openapi.vfs.VirtualFile>.BuildMessage cannot be converted to com.redhat.ceylon.ide.common.model.CeylonProjectBuild<? extends java.lang.Object,java.lang.Object,? extends java.lang.Object,? extends java.lang.Object>.BuildMessage

That's terrible!

This compiles for me:
shared class CeylonProjectBuild<A, B, C, D>(){
    shared class BuildMessage() {}
    shared class SourceFileMessage() extends BuildMessage(){}
}
shared class Module(){}
shared class VirtualFile(){}

void bug6391(){
    CeylonProjectBuild<Module,VirtualFile,VirtualFile,VirtualFile>.BuildMessage f = nothing;
    CeylonProjectBuild<out Anything,out Anything,out Anything,out Anything>.BuildMessage dest = f;
    if(is CeylonProjectBuild<out Anything,out Anything,out Anything,out Anything>
            .SourceFileMessage f){
        print(f);
    }
}

Am I missing some complexity?

Try using the CeylonProjectBuild from ceylon-ide-common.

OK, this fails:
shared class CeylonProjectBuild<A, B>()
        given A satisfies Object
        given B satisfies A {
    shared class BuildMessage() {}
    shared class SourceFileMessage() extends BuildMessage(){}
}
shared class Module(){}
shared class VirtualFile(){}

void bug6391(){
    CeylonProjectBuild<Module,VirtualFile>.BuildMessage f = nothing;
    CeylonProjectBuild<out Anything,out Anything>.BuildMessage dest = f;
    if(is CeylonProjectBuild<out Anything,out Anything>
            .SourceFileMessage f){
        print(f);
    }
}

This is due to the given B satisfies A constraint.

The nightmare that is called needsCast does not even so much as glance at qualifying types. I suppose I have to look at them, but in the context of the qualified type. For example:
shared class Top(){
 shared class Inner(){}
}
shared class Bottom() extends Top(){
}

There, Top.Inner and Bottom.Inner are really exactly the same type, no? Or do I just take both qualifying types and check for casting using the same rules as the qualified type? As in, for QA.A and QB.B, I check needsCast(A, B) and then needsCast(QA, QB)? or do I have to do something more clever?

Excellent, thanks!


Refactored WASM rendering, added MT support for dispatcher

Removed previous hacks with fake platform graphics context and special cased ISkiaGpu, we are now using a proper IGlContext implementation with MakeCurrent that actually works as it supposed to.
Refactored canvas management in a way that can work with .NET 9 MT - canvas can be converted to OffscreenCanvas and transferred to a web worker
Changed render loop and dispatcher to be MT-compatible (.NET 9 MT currently doesn't support JSType.Function)

Note that the rest of the backend isn't MT-ready, so input and resize still won't work in MT mode.

Running this PR on .NET 8 without multithreading:
dotnet.native.worker.js:64  Pthread 0x0 completed its main entry point with an `unwind`, keeping the worker alive for asynchronous operation.
threadPrintErr @ dotnet.native.worker.js:64
dotnet.native.js:3859  Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread
warnOnce @ dotnet.native.js:3859
dotnet.native.js:1284
put_char @ dotnet.native.js:1284
dotnet.native.js:1284  Unhandled Exception:
put_char @ dotnet.native.js:1284
dotnet.native.js:1284  System.NullReferenceException: Object reference not set to an instance of an object.
put_char @ dotnet.native.js:1284
dotnet.native.js:1284     at Avalonia.Browser.Rendering.RenderWorker.JSWebWorkerClone.<>c__DisplayClass3_0.<RunAsync>b__0(Object _) in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/RenderWorker.cs:line 82
put_char @ dotnet.native.js:1284
dotnet.native.js:1284     at System.Threading.Thread.StartCallback()
put_char @ dotnet.native.js:1284
dotnet.native.js:1284  [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.
put_char @ dotnet.native.js:1284
dotnet.native.js:1284     at Avalonia.Browser.Rendering.RenderWorker.JSWebWorkerClone.<>c__DisplayClass3_0.<RunAsync>b__0(Object _) in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/RenderWorker.cs:line 82
put_char @ dotnet.native.js:1284
dotnet.native.js:1284     at System.Threading.Thread.StartCallback()

I don't think  new Thread(() => { }).Start(); is going to throw on .NET 8 without threads.

After hack-fixing previous error by also checking Environment.Version >= 9 I see this:
[Visual]Exception in render loop: 'System.DllNotFoundException: *
dotnet.native.js:1268    at Avalonia.OpenGL.GlBasicInfoInterface.Initialize(Func`2 getProcAddress) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.OpenGL/DevGenerators/Generator.GetProcAddressInitializationGenerator/globalAvalonia.OpenGL.GlBasicInfoInterface.cs:line 38
dotnet.native.js:1268    at Avalonia.OpenGL.GlBasicInfoInterface..ctor(Func`2 getProcAddress) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.OpenGL/GlBasicInfoInterface.cs:line 13
dotnet.native.js:1268    at Avalonia.OpenGL.GlInterface.GlContextInfo.Create(GlVersion version, Func`2 getProcAddress) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.OpenGL/GlInterface.cs:line 32
dotnet.native.js:1268    at Avalonia.OpenGL.GlInterface..ctor(GlVersion version, Func`2 getProcAddress) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.OpenGL/GlInterface.cs:line 48
dotnet.native.js:1268    at Avalonia.Browser.Rendering.WebGlContext..ctor(Int32 contextId, GlVersion version, Int32 sampleCount, Int32 stencilSize) in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/BrowserWebGlRenderTarget.cs:line 114
dotnet.native.js:1268    at Avalonia.Browser.Rendering.BrowserWebGlRenderTarget..ctor(JSObject js, Func`1 sizeGetter) in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/BrowserWebGlRenderTarget.cs:line 31
dotnet.native.js:1268    at Avalonia.Browser.Rendering.BrowserRenderTarget.GetRenderTarget(Int32 id, Func`1 sizeGetter) in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/WebRenderTarget.cs:line 31
dotnet.native.js:1268    at Avalonia.Browser.Rendering.RenderTargetBrowserSurface.BrowserPlatformGraphics.get_Target() in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/RenderTargetBrowserSurface.cs:line 63
dotnet.native.js:1268    at Avalonia.Browser.Rendering.RenderTargetBrowserSurface.BrowserPlatformGraphics.get_IsReady() in /Users/maxkatz6/repos/Avalonia/src/Browser/Avalonia.Browser/Rendering/RenderTargetBrowserSurface.cs:line 65
dotnet.native.js:1268    at Avalonia.Rendering.PlatformRenderInterfaceContextManager.get_IsReady() in /Users/maxkatz6/repos/Avalonia/src/Avalonia.Base/Rendering/PlatformRenderInterfaceContextManager.cs:line 25
dotnet.native.js:1268    at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderCore(Boolean catchExceptions) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.Base/Rendering/Composition/Server/ServerCompositor.cs:line 221
dotnet.native.js:1268    at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderReentrancySafe(Boolean catchExceptions) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.Base/Rendering/Composition/Server/ServerCompositor.cs:line 194
dotnet.native.js:1268    at Avalonia.Rendering.Composition.Server.ServerCompositor.Render(Boolean catchExceptions) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.Base/Rendering/Composition/Server/ServerCompositor.cs:line 174
dotnet.native.js:1268    at Avalonia.Rendering.Composition.Server.ServerCompositor.Render() in /Users/maxkatz6/repos/Avalonia/src/Avalonia.Base/Rendering/Composition/Server/ServerCompositor.cs:line 163
dotnet.native.js:1268    at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time) in /Users/maxkatz6/repos/Avalonia/src/Avalonia.Base/Rendering/RenderLoop.cs:line 111' (RenderLoop #660812652)

Note sure what to do here. That's running on .NET 8 SDK without threading.


What should I pass to the backend to save the actual image file?

I am using this package and everything on the frontend works great.  I wrote a handleUpload function that should pass the file to my django backend and save it in the database, however I am getting errors saying that it is passing "application/json" and not "image/jpeg".
Any help here would be appreciated.
  const handleUpload = (avatar: any) => {
    const response = axiosInstance.post('/avatar-upload/', {
      file: avatar.data_url
    });
  };

Hi @Jake-Mulhern-Bixly ,
For your case, you could get avatar.file to pass to your BE.
Thank bro!


Update README.md

Add installation instructions.
Many of the other webpack modules include installation instructions,
this one should, too.

Thanks


teamviewer: Fix checkver and update to version 15.36.9

Relates to #9790

[x] I have read the Contributing Guide.

/verify

@HUMORCE


Multi tenant DbContext with separate database for each tenant

How can I register the ApplicationDbContext using different connection string according to the current tenant?
The ApplicationDbContext will be registered for the root tenant at startup, but how can I have different ApplicationDbContext based on current tenant with separate database for each tenant

Sorry, missed the ITenantInfo


Unable to properly Interact with Tuya XS-A18 RGB Power Switch

[x] I've read the Readme - Troubleshooting section.

Describe the bug
The plugin appears to be working correctly. However, despite the accessory showing up in Homebridge under the accessories tab, toggling the device does nothing.
The device shows up in Apple Home as a Light and when you attempt to interact with it you get a "No Response"
Note: The device is interactable and works correctly inside the "Tuya Smart App"
Expected behavior
Toggling the accessory in Homebridge should turn the power on and off
In Homebridge: You should have a separate accessory for the Switch and the LED Ring OR someway to easily control both
In Apple Home: You should have a separate accessory for the Switch and the LED Ring OR someway to easily control both
Screenshots

Device info
homebridge debug.txt
tuya device list.txt

During you collecting the debug logs, have you interacted with the device? I didn't see any thing relates to "No Response".
From the device info, this device's category is dj but it's actually a mixed one with additional power on/off feature, the power button will be added later.

In the debug.txt file everything from this point was me opening the Tuya Smart App and turning the power on and off
[11/12/2022, 6:44:10 pm] [@0x5e/homebridge-tuya-platform] Executed didFinishLaunching callback

I made a new log file, which shows me toggling the switch from inside the Tuya IoT web platform.
Hopefully its helpful
homebridge.log.txt

Log of togging from website seems okay, have you tried toggling from homekit and see the logs?

Do you have any other devices? Are they working well?

I don’t have any other Tuya devices but I have Wemo and Philips Hue working fine in HomeKit

Are they support HomeKit natively or via homebridge?

Here's my thoughts:

Exclude the possibility of homebridge not working well. Try install some homebridge dummy switch or dummy light, if they are working well.
Bind some tuya virtual devices (can be added via tuya website), if they are working well.
Clean homebridge accessory caches.


(Compatibility Issue) toomanyemotesscraps messes with the weight of lategameupgrades's shopping kart.

When i put the junk food scrap into the shopping kart, the weight of the kart goes to being 0 lbs. I have tested with both vanilla scrap & other mod scrap and this is the only one causing it.

What mod is the shopping cart from?
Also, have you tried with other emote props? Such as the baseball bat, sexy saxophone, trombone, etc?
Maybe the issue is because the junk food has a weight of zero. In the vanilla code, it's possible that 1 is the lowest weight, but they clamp the values so it doesn't matter. Maybe the zero is causing issues.
I could look into it.

Okay, I pushed a fix for this now. I checked, and it looked like LGU wasn't clamping the weight value, which was making it add a negative number, because the weight it adds is weight - 1, which was -1, but I made the items minimum weight 1 now, since this is how it should have been done anyways. Thanks for letting me know about this!


Two Problems with Document Library

Affected Version of Concrete CMS
9.x
Description

When individual Document Library blocks are setup to display files from a specific Folder / File Set combination and you upload a file using the Add Files option in the Document Library setup, the file is uploaded but does not display in the Document Library File List. Upon investigation, the File Set is correctly updated, but the file is NOT automatically moved into the specified Folder. This functionality worked in V8 (8.5.5). As a workaround, we can manually move the file to the correct folder under File Manager - and then it appears in the Document Library Block.

 OR (fv.fvDescription LIKE ?) OR (fv.fvTitle LIKE ?) OR (fv.fvTags LIKE ?) OR (fv.fvTags LIKE ?) OR (n.treeNodeName LIKE ?) OR (ak_gg_tags LIKE ?)) AND (n.treeNodeParentID IN (‘516’)) ORDER BY fv.fvTitle desc LIMIT 20’ with params ["%2020%", “%2020%”, “%2020%”, “%2020%”, “%2020%”, “%2020%”, “%2020%”]: SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘ak_gg_tags’ in where clause is ambiguous
How to reproduce

Setup Document Library Block to display files for a particular File Set & Folder location. Then use the Add Files facility to upload a new file. The File itself is uploaded (visible in File Manager) - it has the correct File Set, but the File is not moved to the Folder specified in the Document Library Block setup. Hence the new File is not displayed.

Edit the Document Library Block and enable Search in the Header Setup. After publishing this change the Search field is displayed. If you try to search for any text string, the above SQL error appears.

Possible Solution
No response
Additional Context
No response

I was able to reproduce issue number 2; it should be fixed by https://github.com/concrete5/concrete5/pull/10577

Thanks Andrew for looking into these two issues and settling on a fix for the second issue.
The first issue concerns the File Folder setup in the Document Library block – example screenshot:
What we have found since migrating to V9.01 was that new files uploaded were not being moved to the specified File Folder – in this case Meeting Minutes. There is no problem with the newly uploaded file being added to the selected File Set (MeetingMinutes in this case). Here is our setup there:
Hope this clearly explains the issue.
Regards,
Jeff.
From: Andrew Embler @.>
Sent: Tuesday, 26 April 2022 4:16 AM
To: concrete5/concrete5 @.>
Cc: jphoward31 @.>; Author @.>
Subject: Re: [concrete5/concrete5] Two Problems with Document Library (Issue #10575)
I was not able to reproduce the first issue. It worked fine for me. Please ensure that you've actually set the block to assign the files to the proper set:
https://user-images.githubusercontent.com/527809/165149179-2dd2e4f4-9f1f-4ec5-bf05-89317f1c3ba3.png
The block does not just infer which sets to assign the files to. It has to be made explicit by setting this value at the bottom of the dialog.
—
Reply to this email directly, view it on GitHub https://github.com/concrete5/concrete5/issues/10575#issuecomment-1108888625 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AXTOVSHJ4KMZFCJTJX5O6BTVG3ON3ANCNFSM5UET6NJA .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AXTOVSEEVUD4BI5WJDBNVGDVG3ON3A5CNFSM5UET6NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIIMEYMI.gif Message ID: @.*** @.***> >

Ah, that makes sense; I have added an enhancement request for this functionality: https://github.com/concrete5/concrete5/issues/10588

Thanks Andrew,
Regards,
Jeff.
From: Andrew Embler @.>
Sent: Thursday, 28 April 2022 7:32 AM
To: concrete5/concrete5 @.>
Cc: jphoward31 @.>; Author @.>
Subject: Re: [concrete5/concrete5] Two Problems with Document Library (Issue #10575)
Ah, that makes sense; I have added an enhancement request for this functionality: #10588 https://github.com/concrete5/concrete5/issues/10588
—
Reply to this email directly, view it on GitHub https://github.com/concrete5/concrete5/issues/10575#issuecomment-1111503961 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AXTOVSAV2A62SSPPTLDLNV3VHGW5XANCNFSM5UET6NJA .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AXTOVSCPZF7BLWXGMOVEPTDVHGW5XA5CNFSM5UET6NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIJADIWI.gif Message ID: @.*** @.***> >


routes for user

acceptance criteria:
-[] I am able to get all users
-[] I am able to get one user,
-[] create a user
-[] update user,
-[] delete user


doc: SQLAlchemy integration guide

Example code copied from Gitter and posted originally by Nateyo:
def __init__(self, db_engine):
        self.engine = db_engine
        session_factory = sessionmaker(bind=db_engine)
        self.session_registry = scoped_session(session_factory)

    def process_resource(self, req, resp, resource, params):
        req.context["session"] = self.session_registry()

    def process_response(self, req, resp, resource, req_succeeded):
        if req.context.get("session"):
            self.session_registry.remove()

Note 1: scoped_session is supposed to be a magical proxy abstracting away concurrent access troubles. If that level of magic is desired, there is probably no need to dereference this way: self.session_registry(), instances of scoped_session already proxy everything (here, I had prepared hello.db in advance):
>>> from sqlalchemy import Column, Integer, String
>>> from sqlalchemy import create_engine
>>> from sqlalchemy.ext.declarative import declarative_base
>>> from sqlalchemy.orm import scoped_session, sessionmaker
>>>
>>> Base = declarative_base()
>>>
>>> class Item(Base):
...     __tablename__ = 'items'
...     id = Column(Integer, primary_key=True)
...     message = Column(String(64), nullable=False)
...
>>> engine = create_engine('sqlite:////tmp/hello.db')
>>> factory = sessionmaker(bind=engine)
>>> session = scoped_session(factory)
>>> items = session.query(Item).all()
>>> [(item.id, item.message) for item in items]
[(1, u'Hello, world!'), (2, u'Hello again.'), (3, u'Hello, world!'), (4, u'Hello again.'), (5, u'Hello, world!'), (6, u'Hello again.'), (7, u'Hello, world!'), (8, u'Hello again.'), (9, u'Hello, world!'), (10, u'Hello again.')]
>>> session.remove()

Note 3:
Not sure how common this pattern is, but streaming responses from the database might require special care in case database pools/connections/sessions are managed by middleware. Middleware is applied after responders, but before returning response to the client. If the response is streamed off a generator including database code, premature cleanup might interfere.
Consider talking about, and providing examples for, implementing an iterable with close() method, and handling cleanup there, if needed. try... finally and/or context manager should do the job too, although it might depend on the mercy of the WSGI server.

Note that there is nothing wrong with the bare metal example from the FAQ, provided that level of abstraction suffices for the given use case. Maybe that could be converted to an example as well?

Unless I'm mistaken, the bare metal example is doing a similar thing to the middleware originally posted:
In the db manager init:
self.DBSession = scoping.scoped_session(
            orm.sessionmaker(
                bind=self.engine,
                autocommit=True
            )
        )

Then whenever the session property is accessed:
@property
    def session(self):
        return self.DBSession()

From this sqlalchemy docs page it notes something very specific that the example project doesn't seem to do:

Ensure that scoped_session.remove() is called when the web request ends, usually by integrating with the web framework’s event system to establish an “on request end” event.

Though note that these sessions would still likely be implicitly cleaned up. The downside to the middleware session handling is that it makes the scope muddy for "controllers" to have to handle the injection into anything you want to use to access the database.

I could be wrong but I thought autocommit will only call commit() and not close() on the Session though, yea? Agreed it's fine for introductory, but the docs are pretty clear .remove() should be called when using scoped_session when the request or need for the session has ended.
Perhaps we could modify the docs to support examples for explicit session management, much like the link you posted in gitter and a more global style scoped_session approach.
I could easily also see middleware looking like this
def __init__(self, db_engine):
        self.engine = db_engine
        session_factory = sessionmaker(bind=db_engine)

    def process_resource(self, req, resp, resource, params):
        req.context["session"] = self.session_factory()

    def process_response(self, req, resp, resource, req_succeeded):
        sess = req.context.get("session")
        if sess:
            try:
                    sess.commit()
            except...rollback, etc. manage the response
            finally:
                    sess.close()

Where you consider anything that happens within the falcon request as part of a transaction that's only committed and closed when the resource is done being processed. Apologies for typos and succinct code I'm just spitballing in the editor here.
I don't know, it's tough. There's many different ways to accomplish managing a session at different layers of the application. All with different pros and cons. I think what I'm going to do is try and catalog what the official falcon docs cover, discuss with my team early next week how we'd like to structure the approach for our application, and then I think I could better discuss the topic and help out with the official docs.

Given that there are different approaches with different tradeoffs, we should probably include 2-3 in a new recipes section in the docs, but also include a disclaimer that there are other ways and maybe point them to certain areas of the SQLAlchemy docs or other resources for further reading.

hi guys,
just my $0.02 .
I come from a standpoint of considerable pain around configuring sqlalchemy within flask. Here's my opinion on the perfect recipe you can build.
how does one configure  sqlalchemy  in falcon so that:

each endpoint does not have to open session, scope session, etc. This is a people+team issue - i want to reduce possibility of errors made by multiple engineers working on different parts of the codebase. can i have a central place where i set the per-request per-thread scoping, etc

in flask, we end up doing something like

def get_session(db='main'):
    if has_request_context():
        if 'db_sessions' in g and g.db_sessions.get(db):
            return g.db_sessions.get(db)
        session = current_app.databases[db].session_factory()
        g.setdefault('db_sessions', {}).update({db: session})
    elif has_worker_context():
        databases = get_database_conn_from_worker()
        session = databases[db].session_factory()
    else:
        if not DATABASES:
            DATABASES.update(init_databases(get_config('DB_URIS')))
        session = DATABASES[db].session_factory()
    return session

the sqlalchemy models that i have written, should be usable from RQ/Celery. Is the code so intermingled that celery is having to instantiate a Falcon instance ? This is a frequent mess in flask - a lot of sqlalchemy is done within "requestcontext" and causes a lot of problems when i load the models in celery/rq. Which is why you use "has_request_context" above. I can use the same code to load models into rq/celery.

no hard-enforced session level commits. there's a lot of logic where i may choose to not commit data because of some validations, etc inside a request. So there must be flexibility to skip committing data, return a valid error response (which means im not throwing an exception or something) and then finish the request.

Gunicorn. there is all the configuration around gunicorn workers and threads. If you dont configure sqlalchemy properly, then you will run into "session was already closed" errors. Everyone runs into this sooner or later with flask+gunicorn.

No separate "flask-sqlalchemy" package. Show us how to do this with native sqlalchemy. Because your package will always lag behind sqlalchemy. most people are more than happy writing some wrapper code if it means they can use the latest sqlalchemy package right now. Especially with the pace of changes in databases like Postgres, Aurora, etc - this is very important.

connection pooling - this problem is because of points 4 and 5 aboive. mysql guys generally use the built in pooler. postgresql guys generally use pgbouncer. do note the problem is not around configuration in sqlalchemy itself. if you dont setup the configuration of a pooler the correct way (by respecting the threads, workers, etc) you again run into tons of "connection was closed problem".

If you could give ONE recipe that covers these six major pain points, that would be super killer awesome. And for the rest, you can point them towards sqlalchemy documentation!


optimize readiness and liveness checks

I'm having constant issues with Keycloak on PDS clusters, the container does not become ready and gets killed after a while ending up in a crash loop.
This PR tweaks the timeoutes of the liveness and readiness checks and also updates them to the latest scripts from upstream.

@pb82 Do you know if you were to update this fork to upstream with the additional changes around the probes which are also included in this PR would be enough to stop the issues you are seeing? Or do you think you need your additional changes as well?

@davidffrench I'll give that a try

This one can probably be closed already, @pb82 wdyt?

Yes, the updated checks from upstream seem to do the trick


Unable to delete internal evaluation for ever

Deprovisioning is repeatedly unable to complete step De-provision_AVS_Evaluations.
Attempt fails due to:
unable to delete internal evaluation: while decoding avs non success response body for ID: 280869694, URL: https://avs-backend.cfapps.eu10.hana.ondemand.com/api/v2/evaluationmetadata/11497735/child/280869694, message: : EOF

It seems that in the case we receive EOF we will always receive this reply so it is dubious to repeat the call in subsequent deprovision_retrigger_job runs.
Example instance_ids:

a7debde6-7844-4c2b-9866-dbaa9922c690
f2090f69-8101-465b-9b02-b39bae101c11

There are some clusters created by prow-keb-integration job that were not properly removed but supposedly AVS evaluations were removed by SRE (see https://sap-btp.slack.com/archives/C01LGCBS196/p1673490030115739)
At the moment there are 39 such clusters with only AVS removal step not finished.
"3e1e5c70-ab11-4e1b-8ee4-aa9a6fd81d1f"
"1cb12a28-de2d-492d-be12-6e417f6d5404"
"866adcc2-6b91-4d15-b979-8aa2f007f74c"
"d95c0ea6-4e1d-497b-b31b-e5ee3eaa1946"
"c57522f0-01c2-4b6c-90b4-b865418d4c99"
"880190ee-0fc0-4aaa-a900-5e00c2097cc3"
"38c09e2b-b6c8-4393-a43d-03bbb44bc127"
"1bb15eda-af11-435d-b3d2-9cfa9de5f225"
"21f2880b-b552-4430-bcd3-5108c6960032"
"73eca27a-d252-4945-b0a5-58569ec7ab4f"
"de05eb51-2e4e-4f89-9dbd-238eac1cacbc"
"959fdb0a-9cb3-430b-9830-fe209e55067b"
"9693d982-ca02-4f3c-85e1-0c86d34184a2"
"1d513229-049b-4283-9381-96d61a93523d"
"cbdb672e-5308-4d55-b521-4016d18d72f6"
"0bd8cc8e-f2cd-464a-a890-ffb141fed15b"
"53ee05d1-bb7f-40bf-9ab5-8f41269ff566"
"6ce7164c-7bc1-4e8a-b3f2-27ab6504475e"
"a23cd209-02c0-4a8e-b899-b6cea68f42fb"
"011e6bc4-5ada-451f-9b18-35afad24e03c"
"2cf982fa-d618-4f7b-b4d5-2a4701380bcb"
"3471c9e0-6b80-4436-956c-3a655fbeae49"
"5ed8521e-e3ed-4863-ae45-463d2d27bb5b"
"0af7151c-c51d-479e-8cbd-e3ec4f425f02"
"692c8a9a-567c-41ad-b921-1d6682ae281b"
"d3050971-7311-4dc5-a9e1-0732ba673f23"
"12d539b5-bff4-4321-bb89-af75ed80f9cd"
"cc4a9914-2d38-411a-b65b-03f3127ac147"
"b82bd36e-3fd5-43d5-807a-d569cad98d6f"
"7ae66bc1-7969-48ed-94c1-8e2f0647c5b1"
"052394e5-f054-49c6-b34a-04b9d75e7daa"
"8d5572e4-3f82-4b04-976c-e159c8999a0c"
"0a0aa76c-10f2-454b-8acf-6133f41852dc"
"2c7fc4ca-afc4-4ac3-baa6-a3941922aed1"
"712c9bba-6106-45de-a671-165273730b65"
"272f0a99-661b-420b-a865-d007149f9c84"
"b3a4b4a5-810d-46df-90fb-d62793d93911"
"d3c169e6-70c2-4a1a-9667-0de6d0117962"
"230503b3-cb5a-43c6-a936-1bf4c4a84ed5"

PR: https://github.com/kyma-project/control-plane/pull/2981


[Feature]: babel-jest: opting out babel-preset-jest

🚀 Feature Proposal
per https://github.com/jestjs/jest/issues/15152#issuecomment-2198550376
Add an option to babel-jest that allows developers to opt out of babel-preset-jest.
Note that this will break jest.mock hoisting.
Motivation
babel-preset-current-node-syntax does not make much sense if the developer specified their own babel config. Adding a new option that allows developers to have complete control over the Babel config would be useful.
Example
No response
Pitch
.

https://github.com/jestjs/jest/releases/tag/v30.0.0-alpha.6


fix null safety bugs

current nullsafety version not work correctly i face some issuse with like
type '_AnimatedEvaluation<double?>' is not a subtype of type 'Animation<double>' in type cast
When the exception was thrown, this was the stack:
#0      FadeOutAnimation.build (package:flutter_animator/widgets/fading_exits/fade_out.dart:40:40)

this from offical example after migrate it
also  this
RubberBand(
            child: FlatButton(onPressed: () {}, child: Text("hii")),
          )

will throw
type 'Matrix4' is not a subtype of type 'num'
The relevant error-causing widget was:
  AnimatedBuilder
  /flutter_animator-3.1.0/lib/widgets/attention_seekers/rubber_band.dart:39:12

( the bugs here that type here is Matrix4? not Matrix4 so the if(T == Matrix4) give false )

every issuses here because of use " as " like " as List<double>"  or 'as List<Widget>' ( "dart migrate" do this bug a log )

this pull request
solve this bugs
migrate example and demo_app to null safety ( also i test both run fine now )

#3 solve

fix #3

Hi @Ali1Ammar,
Thank you for fixing this issue. Weird that I did not experience these issues on my part.
I will merge the PR and update it on pub.
Kind regards.