Missing context after upgrading to 0.73.2

Description
After upgrading to react-native 0.73.2 a really strange thing happen to me.
I have a Context provider inside my App, at the very top level.
I'm using it into 2 screen and in my custom tab bar from @react-navigation/native-stack
The error only happens in the component inside the tab-bar
If I remove that component the error goes away (so the 2 screen are still working fine)
now I get the error:
Error: useNetwork must be used with NetworkProvider
This error is located at:
in NetStatus (created by BabyPlayer)
in BabyPlayer
in Unknown (created by SafeAreaInsetsContext)
in RCTView (created by View)
in View (created by GestureHandlerRootView)
in GestureHandlerRootView (created by SafeAreaInsetsContext)
in RCTView (created by View)
in View (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by BottomTabView)
in BottomTabView (created by BottomTabNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by BottomTabNavigator)
in BottomTabNavigator (created by TabNav)
in TabNav (created by TabNavigator)
in SearchProvider (created by TabNavigator)
in TabNavigator (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by SceneView)
in RCTView (created by View)
in View (created by DebugContainer)
in DebugContainer (created by MaybeNestedStack)
in MaybeNestedStack (created by SceneView)
in RCTView (created by View)
in View (created by SceneView)
in RNSScreen
in Unknown (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by SceneView)
in SceneView (created by NativeStackViewInner)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by ScreenStack)
in RNSScreenStack (created by ScreenStack)
in ScreenStack (created by NativeStackViewInner)
in NativeStackViewInner (created by NativeStackView)
in RCTView (created by View)
in View (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by NativeStackView)
in NativeStackView (created by NativeStackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by NativeStackNavigator)
in NativeStackNavigator (created by PlayerStackNavigator)
in PlayerStackNavigator (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by SceneView)
in RCTView (created by View)
in View (created by DebugContainer)
in DebugContainer (created by MaybeNestedStack)
in MaybeNestedStack (created by SceneView)
in RCTView (created by View)
in View (created by SceneView)
in RNSScreen
in Unknown (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by SceneView)
in SceneView (created by NativeStackViewInner)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by ScreenStack)
in RNSScreenStack (created by ScreenStack)
in ScreenStack (created by NativeStackViewInner)
in NativeStackViewInner (created by NativeStackView)
in RNCSafeAreaProvider (created by SafeAreaProvider)
in SafeAreaProvider (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by NativeStackView)
in NativeStackView (created by NativeStackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by NativeStackNavigator)
in NativeStackNavigator (created by MainStackNavigator)
in MainStackNavigator (created by App)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by App)
in MsgProvider (created by App)
in NetworkProvider (created by App)
in SessionProvider (created by App)
in Provider (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
You can clearly see, here at the bottom, that the NetworkProvider is here, I don't know if it's a bug, or a false error, or what has been broken.
I'm reporting this so that someone with more experience could understand what happens.
Also I've seen that if I comment out the component, load the app, and then reactivate the component the error does not fire.
Usually when a context is missing, if you reactivate the component the error still fire any time.
Steps to reproduce
It happens immediatly after opening the app
React Native Version
0.73.2
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
  OS: macOS 14.2.1
  CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
  Memory: 16.55 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.5.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.yarn/bin/yarn
  npm:
    version: 10.2.4
    path: /usr/local/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.21
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/simo97/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.2
    wanted: ^0.73.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs
Error: useNetwork must be used with NetworkProvider

This error is located at:
    in NetStatus (created by BabyPlayer)
    in BabyPlayer
    in Unknown (created by SafeAreaInsetsContext)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by SafeAreaInsetsContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by BottomTabView)
    in BottomTabView (created by BottomTabNavigator)
    in PreventRemoveProvider (created by NavigationContent)
    in NavigationContent
    in Unknown (created by BottomTabNavigator)
    in BottomTabNavigator (created by TabNav)
    in TabNav (created by TabNavigator)
    in SearchProvider (created by TabNavigator)
    in TabNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by SceneView)
    in RCTView (created by View)
    in View (created by DebugContainer)
    in DebugContainer (created by MaybeNestedStack)
    in MaybeNestedStack (created by SceneView)
    in RCTView (created by View)
    in View (created by SceneView)
    in RNSScreen
    in Unknown (created by InnerScreen)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by InnerScreen)
    in InnerScreen (created by Screen)
    in Screen (created by SceneView)
    in SceneView (created by NativeStackViewInner)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by ScreenStack)
    in RNSScreenStack (created by ScreenStack)
    in ScreenStack (created by NativeStackViewInner)
    in NativeStackViewInner (created by NativeStackView)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by NativeStackView)
    in NativeStackView (created by NativeStackNavigator)
    in PreventRemoveProvider (created by NavigationContent)
    in NavigationContent
    in Unknown (created by NativeStackNavigator)
    in NativeStackNavigator (created by PlayerStackNavigator)
    in PlayerStackNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by SceneView)
    in RCTView (created by View)
    in View (created by DebugContainer)
    in DebugContainer (created by MaybeNestedStack)
    in MaybeNestedStack (created by SceneView)
    in RCTView (created by View)
    in View (created by SceneView)
    in RNSScreen
    in Unknown (created by InnerScreen)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by InnerScreen)
    in InnerScreen (created by Screen)
    in Screen (created by SceneView)
    in SceneView (created by NativeStackViewInner)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by ScreenStack)
    in RNSScreenStack (created by ScreenStack)
    in ScreenStack (created by NativeStackViewInner)
    in NativeStackViewInner (created by NativeStackView)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by NativeStackView)
    in NativeStackView (created by NativeStackNavigator)
    in PreventRemoveProvider (created by NavigationContent)
    in NavigationContent
    in Unknown (created by NativeStackNavigator)
    in NativeStackNavigator (created by MainStackNavigator)
    in MainStackNavigator (created by App)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by App)
    in MsgProvider (created by App)
    in NetworkProvider (created by App)
    in SessionProvider (created by App)
    in Provider (created by App)
    in App
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer

Reproducer
no-reproducer
Screenshots and Videos
https://github.com/facebook/react-native/assets/93389293/cd8916d9-3f30-4872-af50-43577a14150b

After updating to react-native 0.72.3 a really strange thing happen to me.

From which version are you upgrading from?
Also can you create a reproducer?

@cortinico I'm upgrading from 0.73.1 to 0.73.2, sorry there was a typo in the versions before.
I don't know if I can do the repro, I will try to do it tonight.

I don't know if I can do the repro, I will try to do it tonight.

Please do as I don't see how 0.73.1 -> 0.73.2 could create this regression

@cortinico I've seen all the commits and I was thinking the same thing. I will definetely try do make a repro tonight

@cortinico copying this from reddit where I tagged you in a comment:
u/cortinico it freezes the app AND the cli after package installs (even ctrl+c won’t work), it throws similar error like the op’s, react found a string while expecting xxx for no reason,  and one error that I can’t remember exactly but it’s something like required files/import not found.
Only solution for the above is to nuke metro and restart, I always have my run command to clear cache and watchman del all.
one weird this is that iOS bundle goes to 100% immediately from a cold npm start while on android it loads the bundle fine, I’m talking about the green loading indicator on metro.
this could be definitely be happening because of metro fucking things up, something IS there and the metro doesn’t pick it up, happened to me too: https://github.com/facebook/react-native/issues/42225, I also use 0.73.2

I'm sorry if I did't provide the repro, but I'm full of work these days, I will do it when I can, do not close the issue for now because in my app it's still happening, even after I have deleted all the cache and rebuilt, and in both real phone and simulator.
I've removed the component inside the tabBar for now.

Updates: It happens also with different import while reloading during development.
From when I'm in 0.73.2 it happens consistently:
TypeError: 0, _$$_REQUIRE(_dependencyMap[13(...)/../redux/store").useAppDispatch is not a function (it is undefined)
So I have to stop metro, and restart with reset cache.
The context still missing.
Sorry but I have not made the repro for now

Error like this happens almost every change I made, so I have to restart metro to let reload the app. Idk

@cortinico copying this from reddit where I tagged you in a comment:
u/cortinico metro freezes the app in "refreshing state" AND the cli after package installs (even ctrl+c won’t work), it throws similar error like the op’s, react found a string while expecting xxx for no reason, and ~one error that I can’t remember exactly but it’s something like required files/import not found~ errors like this popping out of nowhere: TypeError: 0, _$$_REQUIRE(_dependencyMap[26(...), "react-native-size-matters").s is not a function (it is undefined).
Only solution for the above is to nuke metro and restart, I always have my run command to clear cache and watchman del all.
one weird this is that iOS bundle goes to 100% immediately from a cold npm start while on android it displays the bundle loading just fine. (I’m talking about the green loading indicator on metro).
this could be definitely be happening because of metro f things up, something IS there and the metro doesn’t pick it up, I also use 0.73.2
Screen.Recording.2024-01-12.at.08.45.08.mov

Can you solve this problem ?
I also have same problem.

Updates: It happens also with different import while reloading during development. From when I'm in 0.73.2 it happens consistently: TypeError: 0, _$$_REQUIRE(_dependencyMap[13(...)/../redux/store").useAppDispatch is not a function (it is undefined)
So I have to stop metro, and restart with reset cache. The context still missing. Sorry but I have not made the repro for now

Did you solve this problem ?
I also have same problem.

haven't found a solution, it drived me mad at first but know I'm used to it 🤯
everytime I install a package I have to kill metro for it to work again. If I let it hanging for about a minute it starts working again.
I'm using the latest watchman available, latest metro and latest babel plugins available as of today (13 April 24).
In the past I had the same issue because of babel messing things up but it was solved after a month of struggle (by babel).
One other thing that I suspect messing things up is the Proxyman app that I use to debug network traffic, they install a certificate for the proxy to work. I have the same suspicion about NordVPN app.

haven't found a solution, it drived me mad at first but now I'm used to it 🤯
everytime I install a package I have to kill metro for it to work again. If I let it hanging for about a minute it starts working again.
I'm using the latest watchman available, latest metro and latest babel plugins available as of today (13 April 24).
In the past I had the same issue because of babel messing things up but it was solved after a month of struggle (by babel).
One other thing that I suspect messing things up is the Proxyman app that I use to debug network traffic, this app installs a certificate for the proxy to work and start capturing traffic. I have the same suspicion about NordVPN app.

Reset metro not work for me, I almost get crazy.
I think it's about RN 0.73

do you by any chance use react-native-svg with expo-modules-core? If yes, latest release of rn-svg uses the expo metro cofnig instead of react-native's one and it messes things up.

do you by any chance use react-native-svg with expo-modules-core? If yes, latest release of rn-svg uses the expo metro cofnig instead of react-native's one and it messes things up.

I don't use Expo at all.

I meant react-native-svg-transformer, not svg, sorry.
I solved the error in the screenshot above by removing all expo improts and keep only the react-native ones.
If I were you I would search in the node_modules folder for references to expo metro config and replace with react-native by using patch-package
these lines are problematic: https://github.com/kristerkari/react-native-svg-transformer/issues/333

I don't use react-native-svg-transformer.
Now I write new function and import my code but I get error.
I added all functions from new file to old functions files it's work :))
I guess I have problem with metro.

there might be other modules in your node_modules that use the same strategy to import expo babel transformer that's why I said earlier to scan the entire node_modules folder for references.

It seems watchman (at least version 2<IP_ADDRESS>) cannot handle too many files so after adding this in .watchmanconfig in the root of the project fixed the hanging metro for me:
{
  "ignore_dirs": [".git", "ios", "android"]
}

If you want to track what watchman is watching then enter this on terminal:
watchman-wait <PATH_TO_PROJECT_ROOT> --max-events 0
My project has ~250 deps so I think watchman is clogged somehow due to millions of files open.


feature request - get code multi

Hi, thank you for the development of multicall3, it is very useful.
I have a request for a feature that can further reduce node calls. Rather than hitting the eth rpc method eth_getCode, we can instead implement a getCodeMulti method, something like the below:
    struct ReturnCode {
         address addr;
         bytes code;
     }

    function getCodeMulti(address[] calldata addresses) public payable returns (ReturnCode[] memory returnContracts) {
         uint256 length = addresses.length;
         returnContracts = new ReturnCode[](length);
         address addr;
         for (uint256 i=0; i < length;) {
             addr = addresses[i];
             returnContracts[i] = ReturnCode(addr, addr.code);
             unchecked {++ i;}
         }
     }

This function would allow for users to get bytecode from multiple contract addresses with only one rpc call. This may be out of scope for this project as it would require redeployment accross all networks, but happy to open a PR or contribute where I can if this feature seems like something worth adding.

Ah interesting, you could also do something similar with code hashes too. I wouldn't count on a new Multicall deploy anytime soon just to add this, so if it's something you currently need you should consider deploying your own version.
One thing worth noting is that if you're returning a lot of bytecode, it all needs to be copied to memory. Gas cost increases quadratically with memory expansion, so you'll very quickly use a lot of gas to execute this. Most RPCs (like Infura/Alchemy) have an eth_call gas limit of ~10x the block gas limit IIRC, to prevent DoS'ing them, though of course you can have no gas limit if running against a local node.
You can also consider batch JSON RPC requests: https://geth.ethereum.org/docs/interacting-with-geth/rpc/batch

Closing this per above comment since it won't be implemented for the current version of Multicall 🙂

@mds1 @ben-polytope
I'm also interested in similar functionality, but in particalur for: isContract.
function isContract(address _addr) private returns (bool isContract){
  uint32 size;
  assembly {
    size := extcodesize(_addr)
  }
  return (size > 0);
}

@timaiv I found a contract that has such functionality.
For others who might be looking for contracts with other public / external functions I will share below the method I used to find the contract.
I used search operators on google, which allowed me to get down to only a few good candidates and after a little manual checking of the source code, I was able to find one that I can use.
The google search I used is the following
"function isContract(address account) public view returns (bool)" site:etherscan.io
Here is the contract that implements the isContract function
0xD17C3BD8b499F0965181473596098dE3BE905B0e

@Pybast
Here are some our deployed contract, hope it can help you
https://github.com/mds1/multicall/issues/265#issuecomment-2370101042


Ability to manually delete logs

Clear and concise description of the problem
I've had an "incident" recently. I ran pipeline with command below:
skopeo copy --dest-authfile=.cicd/ecr-creds "docker://$SRC_IMAGE" "docker://$DST_IMAGE"

I had AWS ECR credentials in that file: AWS:AKIAIOSFODNN7EXAMPLE instead of JSON. Therefore skopeo wasn't happy and printed content to the log.
I had to remove step's logs from the database.
Suggested solution
It would be great if an admin could remove step logs via UI. For example, button can be placed in positions 1 or 2:

Alternative 1
Delete from database.

Note pipeline ID in UI (for example 11).
Find step (for example 33):

select * from steps where step_pipeline_id=11;

Delete logs:

delete from log_entries where step_id=33;

Alternative 2
Delete all pipeline logs using API. Requires admin token.
Additional context
#1883 suggested to delete whole pipeline. Answering the question: yes, that is what the feature request about.
Seems, https://github.com/woodpecker-ci/woodpecker/issues/1068#issuecomment-1427621985 talks about the same, but in a little bit different FR.
Validations

[X] Checked that the feature isn't part of the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

There is at least an api endpoint already, maybe even a cli command.

api endpoint

Thanks, added as Alternative 2 in FR.
Unfortunately, it deletes logs from all steps. I would like to delete logs of one step.
Seems, DELETE /repos/{repo_id}/logs/{number}/{stepID} endpoint have to be implemented like GET /repos/{repo_id}/logs/{number}/{stepID}.

cli command

I didn't find... Only show


GPL dependency

I've just noticed that this project depends on "github.com/yookoala/realpath" which is licensed under GPL-like dependency. I'm not sure, but may be it's impossible to have this project licensed under MIT because of it. Anyway, thanks for a perfect library :)

Thanks @vitalyisaev2 I'll look into it as soon as I can; think a pull request brought in the dependency, definitely want to keep it MUST.

@vitalyisaev2 I reached out to the author and he reached out to the author he based his work off of and they are both going to changing to MIT or another compatible license as soon as they find time.
so closing this :)


Upgraded from 9.8.1 to 9.10.0 and now have broken image icon for profile avatar

I recently upgraded from 9.8.1 to 9.10.0 and now the profile avatars (on home page in upper right, and on profile page itself) do not display the actual profile avatar, but instead the broken image link and the alternate text of "Profile Avatar" are displayed.
The html source shows the img src is /DnnImageHandler.ashx?mode=profilepic&userId=587&h=32&w=32&cdv=637583215027800000
If I apply that link to the domain address I receive the following error message
Server Error in '/' Application.Value of 'null' is not valid for 'stream'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.ArgumentException: Value of 'null' is not valid for 'stream'.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

The stack trace is as follows:
[ArgumentException: Value of 'null' is not valid for 'stream'.]
System.Drawing.Bitmap..ctor(Stream stream) +237
DotNetNuke.Services.GeneratedImage.ImageTransform.CopyImage(Stream imgStream) +49
DotNetNuke.Services.GeneratedImage.StartTransform.UserProfilePicTransform.ProcessImage(Image image) +112
DotNetNuke.Services.GeneratedImage.ImageHandlerInternal.GetImageThroughTransforms(Image image) +110
DotNetNuke.Services.GeneratedImage.ImageHandlerInternal.GetImageThroughTransforms(Byte[] buffer) +74
DotNetNuke.Services.GeneratedImage.ImageHandlerInternal.HandleImageRequest(HttpContextBase context, Func`2 imageGenCallback, String uniqueIdStringSeed) +3551
DotNetNuke.Services.GeneratedImage.ImageHandler.ProcessRequest(HttpContextBase context) +78
DotNetNuke.Services.GeneratedImage.ImageHandler.ProcessRequest(HttpContext context) +44
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +814
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73

It looks like this is related to this section of code: https://github.com/dnnsoftware/Dnn.Platform/blob/746498be089bedcb0e70d8ffaa0c4eb67de7fbbe/DNN Platform/Library/Services/GeneratedImage/StartTransform/UserProfilePicTransform.cs#L48-L125
The two scenarios are where a user has a valid photo file and FileManager.Instance.GetFileContent is called on it to get a Stream which is passed to CopyImage, or there isn't a valid photo file, and File.OpenRead(Globals.ApplicationMapPath + @"\images\no_avatar.gif") is called to get a Stream which is passed to CopyImage.
Can you validate that /images/no_avatar.gif is accessible and can be read by the application? Can you validate whether there's a valid photo file for the user? Are you using a folder provider other than Standard (e.g. are your files stored in the database or on a third party storage system like AWS S3 or Azure)?

Thank you.  I have reapplied permissions on all folders which has resolved the issue.


Docs: add accordion always open example

Add accordion example to use checkbox instead of radio inputs to keep accordion items open.

Thanks for the PR, but there are already examples for that:
https://daisyui.com/components/collapse/#collapse-with-checkbox
collapse and accordion are basically the same thing visually, we can use them with checkbox or radio input and if it uses radio input, only one item can be open which makes it an "accordion"
I know there are different terms and opinions about how to call them.
In daisyUI they are using the same class name (collapse) because they are visually the same thing, How ever because of the way radio inputs work (only one radio input with the same name can be checked) it allows us to have multiple collapse items next to each other and opening one can close the others which makes it what we can call "accordion"
Otherwise, using a checkbox, they can be open separately and we put those examples here as "collapse" because they can be collapsed regardless of the behavior of others.
Let me know if you have a question.

Sorry, I'm new to using DaisyUI.
I've been adding DaisyUI components quickly and I didn't stop to read everything in detail.
You are right, according to the definition of accordion in DaisyUI "only one item can stay open at a time".
However, as a newcomer, I missed a live demo of an accordion with the option to keep multiple sections open like they do in other frameworks:

Bootstrap: https://getbootstrap.com/docs/5.3/components/accordion/#always-open
Material UI: https://mui.com/material-ui/react-accordion/#introduction

I love DaisyUI and I just wanted to improve the user experience for those looking for this specific functionality and not have to go to the collapse section and figure out how to do it, as there is no real example either.

Thanks.
About keeping an item open, simply checking the radio or the checkbox using checked attribute will do it (like the examples from MUI or Bootstrap you mentioned)
I would be happy to merge future PRs from you and I don't want this one to discourage you from future contribution.
Thanks 🙏

I think the title of this pull request "Always open" is a bit confusing.
This PR only adds a new example of accordion (not always open) but with the option to keep several open at the same time:

The code of this PR is the same as the example Accordion with arrow icon but replacing type="radio" by type="checkbox" and removing name="my-accordion-2".

  <input type="checkbox" />

    Click to show/hide content

hello

I make this PR because because when I wanted to add an accordion with this functionality and went to the documentation, it was not clear to me if this was possible as there was no example like in the other frameworks.

I think the title of this pull request "Always open" is a bit confusing.
This PR only adds a new example of accordion (not always open) but with the option to keep several open at the same time:

The code of this PR is the same as the example Accordion with arrow icon but replacing type="radio" by type="checkbox" and removing name="my-accordion-2".

  <input type="checkbox" />

    Click to show/hide content

hello

I made this PR because because when I wanted to add an accordion with this functionality and went to the documentation, it was not clear to me if this was possible as there was no example like in the other frameworks.

I think the title of this pull request "Always open" is a bit confusing.
This PR only adds a new example of accordion (not always open) but with the option to keep several open at the same time:

The code of this PR is the same as the example Accordion with arrow icon but replacing type="radio" by type="checkbox" and removing name="my-accordion-2".

  <input type="checkbox" />

    Click to show/hide content

hello

I made this PR because when I wanted to add an accordion with this functionality and went to the documentation, it was not clear to me if this was possible as there was no example like in the other frameworks.
Adding this example to the accordion documentation would be great.

@saadeghi I think the title of this pull request "Always open" is a bit confusing.
This PR only adds a new example of accordion (not always open) but with the option to keep several open at the same time:

The code of this PR is the same as the example Accordion with arrow icon but replacing type="radio" by type="checkbox" and removing name="my-accordion-2".

  <input type="checkbox" />

    Click to show/hide content

hello

I made this PR because when I wanted to add an accordion with this functionality and went to the documentation, it was not clear to me if this was possible as there was no example like in the other frameworks.
Adding this example to the accordion documentation would be great.


[MM-T331] Image link preview - Collapse and expand

Summary

Adds an E2E test that checks if collapsing and expanding image link previews works properly (tested using the UI button as well as slash commands).
Ticket Link

MM-T331

Thanks @saturninoabril for the feedback, I've updated the code to reflect your suggestions.

/update-branch


Conflicting name type transition rules when installing k3s on MicroOS

Environmental Info:
K3s Version:
k3s version v1.26.3+k3s1 (01ea3ff2)
go version go1.19.7

Node(s) CPU architecture, OS, and Version:
Linux blackhawk 6.2.10-1-default #1 SMP PREEMPT_DYNAMIC Thu Apr  6 10:36:55 UTC 2023 (ba7816e) x86_64 x86_64 x86_64 GNU/Linux

openSUSE MicroOS (fresh install)

Cluster Configuration:

Single node

Describe the bug:
When installing k3s via curl -sfL https://get.k3s.io | sh - (as stated on https://k3s.io/), the k3s-selinux-1.2.stable.2-1.2.noarch package fails to install:
(1/1) Installing: k3s-selinux-1.2.stable.2-1.2.noarch [..
Conflicting name type transition rules
Binary policy creation failed at /var/lib/selinux/targeted/tmp/modules/200/k3s/cil:135
Failed to generate binary
/usr/sbin/semodule:  Failed!

It looks though as this has no immediate functional implications. The installation runs through, and a simple k3s kubectl get node  still works.
Steps To Reproduce:

curl -sfL https://get.k3s.io | sh - on a fresh MicroOS VM

Expected behavior:

No error messages during installation

Actual behavior:

Error message during installation

Additional context / logs:

None

Please see the exiting issue at https://github.com/k3s-io/k3s-selinux/issues/36#issuecomment-1402856657 - you can try installing K3s using INSTALL_K3S_CHANNEL=testing to automatically install the k3s-selinux package from the testing channel, or install it manually from https://github.com/k3s-io/k3s-selinux/releases/tag/v1.3.testing.4


Improve obj.noSuch() error message using GETPROPC

Work in progress for better performing alternative of #438.

[x] Add GETPROPC opcode with callability check
[x] Add compiler GETPROPC emission; either patch afterwards (carefully with shuffling) or work into ivalue conversion
[x] Add internal duk_is_callable_tval()
[x] Optimize duk_is_function() and duk_is_constructable() a bit
[x] Reorg opcodes
[x] Check diff of #438 of things to include
[x] Possible side effect order approach: https://github.com/svaarala/duktape/pull/438#issuecomment-317588233
[x] Update debugger opcode metadata
[x] Update debug print opcode metadata
[x] Testcase: basic case
[x] Testcase: shuffling case
[x] Testcase: computed base and key
[x] Testcase: exact side effect sequence: property lookup, argument evaluation, callability check
[x] Testcase fixes
[x] Manual perf test
[x] Manual test for side effect torture (valstack realloc during GETPROPC + error)
[x] Ensure side effect torture automatically cover valstack realloc during GETPROPC
[x] Releases entry

The side effect approach described in https://github.com/svaarala/duktape/pull/438#issuecomment-317588233 would seem workable, though a bit clunky. The clunkiness only affects the error throwing path of both GETPROPC and call handling, so only the footprint impact of the handling really matters.
Example:
var base = {};
Object.defineProperty(base, 'func', {
    get: function myGetter() { print('getter'); return 'notCallable'; }
});

try {
    base.func(print('foo'), print('bar'), print('quux'));
} catch (e) {
    print(e);
}

try {
    new RangeError('aiee')();
} catch (e) {
    print(e);
}

Node.js prints:
getter
foo
bar
quux
[TypeError: base.func is not a function]
[TypeError: (intermediate value) is not a function]

This branch prints:
getter
foo
bar
quux
TypeError: 'notCallable' not callable (property 'func' of [object Object])
TypeError: [object Error] not callable

For completeness, Firefox:
getter
foo
bar
quux
TypeError: base.func is not a function
TypeError: (new RangeError(...)) is not a function

My Node.js test was also on a relatively old Node.js version (v4.2.6) so it might have changed.

Chrome console:
getter
foo
bar
quux
TypeError: base.func is not a function
Stack trace:
@debugger eval code:7:5

TypeError: (new RangeError("aiee", "debugger eval code", 13)) is not a function
Stack trace:
@debugger eval code:13:5

Nope, same result on 8.2.1:
> process.version
'v8.2.1'
> new RangeError('aiee')()
TypeError: (intermediate value) is not a function
    at repl:1:23
    at ContextifyScript.Script.runInThisContext (vm.js:44:33)
    at REPLServer.defaultEval (repl.js:239:29)
    at bound (domain.js:301:14)
    at REPLServer.runBound [as eval] (domain.js:314:12)
    at REPLServer.onLine (repl.js:433:10)
    at emitOne (events.js:120:20)
    at REPLServer.emit (events.js:210:7)
    at REPLServer.Interface._onLine (readline.js:278:10)
    at REPLServer.Interface._line (readline.js:625:8)

SM just seems to maintain a lot more expression-level information at runtime than other engines.  Which is nice, but maybe a bit overkill :)

Huh, maybe Node.js is using an older V8 version than Chrome.

The console has special handling for error objects, so maybe that makes some difference compared to Node.js console.log(). Or maybe it's some version difference. Interesting how much variance there is :)
MuJS:
getter
foo
bar
quux
TypeError: called object is not a function
	/tmp/test.js:7: in function ''
	[C]: in function '?'
TypeError: called object is not a function
	/tmp/test.js:13: in function ''
	[C]: in function '?'

Rhino (seems to handle side effects incorrectly or at least differently):
getter
TypeError: Cannot call property func in object [object Object]. It is not a function, it is "string".
TypeError: RangeError: aiee is not a function, it is object.

But interestingly Rhino's description of the error is closer to this branch: it identifies the property name and the base value (but not its identifier name).

I left the error message formatting untouched for now, so that the majority of the work could go into master. I'm still open to changing it if there's a good replacement.


Configure Envoy access logs on a per-pod basis

Describe the feature request
Be able to configure access logging meshConfig controls on a per-pod basis. We have some use cases where customers would like modify the default Envoy access log format.
Currently, we are able to configure the following, but only in a mesh-wide context:

accessLogFile
accessLogFormat
accessLogEncoding

This is similar to https://github.com/istio/istio/issues/42138
Describe alternatives you've considered
This can be implemented in ProxyConfig or in the Telemetry API. I would vote for the Telemetry API as that already has some AccessLogging controls. But the codebase may be easier to implement if done in ProxyConfig
Affected product area (please put an X in all that apply)
[ ] Ambient
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[X] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

cc @howardjohn @costinm @zirain @kyessenov @douglas-reid  thoughts on what api should be changed?

Telemetry can already do this?

Maybe I'm just running into usability issues.
I'd like to change the access logging format from
[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS%
\"%UPSTREAM_TRANSPORT_FAILURE_REASON%\" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\"
\"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME%\n

to something like
[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %ROUTE_NAME%\n

but only for a few pods.
Looking at https://github.com/istio/api/blob/bcd542ae5e1c21a2afdddc45d92506be405f5e30/telemetry/v1alpha1/telemetry.proto#L613
it doesn't appear you can configure the accessLogFormat only somethings, like the conditions for it to log.

Looking at this I think I could possibly setup multiple providers with envoy to get this functionality. Let me try and get back to you. It's not very intuitive.

Looking at this I think I could possibly setup multiple providers with envoy to get this functionality. Let me try and get back to you. It's not very intuitive.

yes, that should be worked.
there's discussion in https://github.com/istio/api/pull/2170 and https://github.com/istio/api/pull/2171

I was able to do this using the api.
Here's my yamls used
istioctl-install.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  meshConfig:
    extensionProviders: # The following content defines two example tracing providers.
    - name: "envoy1"
      envoyFileAccessLog:
        path: /dev/stdout
    - name: "envoy2"
      envoyFileAccessLog:
        path: /dev/stdout
        logFormat:
          text: "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %ROUTE_NAME%\n"

and the telemetry api
logging-envoy1.yaml
apiVersion: telemetry.istio.io/v1alpha1
kind: Telemetry
metadata:
  name: default
spec:
  accessLogging:
  - providers:
    - name: envoy1

logging-envoy2.yaml
apiVersion: telemetry.istio.io/v1alpha1
kind: Telemetry
metadata:
  name: default
spec:
  accessLogging:
  - providers:
    - name: envoy2


Fixed day view

Fixed how empty text is presented (https://www.pivotaltracker.com/story/show/97925894)
Draw time axes behind events (https://www.pivotaltracker.com/story/show/98237080)

:+1:


Update DataChannel APIs for payload types

Users can now get/set what payload types they are sending and receiving

Pull Request Test Coverage Report for Build 324

2 of 42 (4.76%)  changed or added relevant lines in 7 files are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.05%) to 25.148%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

rtcpeerconnection.go
0
1
0.0%

internal/sctp/association.go
1
3
33.33%

examples/data-channels/main.go
0
3
0.0%

rtcdatachannel.go
0
5
0.0%

pkg/datachannel/payload.go
0
14
0.0%

internal/network/manager.go
0
15
0.0%

Files with Coverage Reduction
New Missed Lines
%

internal/dtls/dtls.go
1
9.09%

examples/data-channels/main.go
1
0.0%

Totals

Change from base Build 321:
-0.05%

Covered Lines:
980

Relevant Lines:
3897

💛  - Coveralls


Strongly-typed collections

re https://github.com/HydraCG/Specifications/issues/233
Alcaeus should also be able to find collections where the member assertions are on the class type, as long as they appear in the ApiDocumentation resource representation.
This should be implemented by the getCollection method

I think I have a question related to this. Currently, how should one access the member field of a resource that is known or expected to be a collection? Currently, I have managed it by explicitly casting the resource.representation.root object to any and accessing member, but I am wondering if there is a more type safe way to do it?

Obviously, there is no "safe" way, meaning that you can never know in runtime that the response will in fact be the collection you expect.
You can force the with type by explicitly setting a generic argument to loadResource. Something along the lines
import { Hydra } from 'alcaeus/web'
import { RdfResource, Collection } from 'alcaeus'

interface MyType extends RdfResource {
}

const collection = Hydra.loadResource<Collection<MyType>>('foo')

Follow this doc page for information on actually implementing the MyType interface


simulide: migrate to pkgs/by-name

This should not cause any rebuilds.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I could move the optional parts directly into the place it's used, but it's a bit easier to review like this.
When I add the next versionNum I'll probably do it, but not now.

@reckenrode was just wondering if I was doing anything wrong with the pkgs/by-name-compatible multi-version support.
Tried to do it similarly to apple-sdk, but maybe there's something better than what I came up with.

The thing is, this is a non-trivial move. This is why I only made changes that didn't cause any rebuilds, to ensure correctness.
I think we won't lose too much in the history, since there weren't a lot of updates

@reckenrode was just wondering if I was doing anything wrong with the pkgs/by-name-compatible multi-version support. Tried to do it similarly to apple-sdk, but maybe there's something better than what I came up with.

Sorry, just saw this. The reorganized derivation seems fine. FWIW apple-sdk uses callPackage instead of override because of the way the latter interacts with overlays. If an overlay changes apple-sdk, then it also changes all overrides of apple-sdk, which may not be desirable.


New Direction For Storage - Collecting Requirements From Community

Background
After our recent visit to FOMS 2019, and some very insightful conversations, it has occurred to us that we may have mis-judge the requirements that our community has for a storage solution.
It was brought to our attention that some of our integration partners would prefer to own their own storage solution, but need us to parse the manifest and handle licensing.
To quote @joeyparrish as best I can, "We may have given them HTMLMediaElement when they wanted MediaSource".
Rational
For those who just want an out-of-the-box feature set, we will still have a sample implementation available and included in the code base (our Demo Page will continue to use that solution). But this new direction, we will give greater control to our integration partners, allowing them to tailor their offline features to meet their products requirements.
Action Items
We would like YOU (anyone who has any investment in Shaka Player + Offline) to chime in on this issue to help us understand what requirements you have. From those requirements, we will draft a new storage proposal and present it to the community for review.

Our product doesn't currently support offline playback on web platform, so I don't use the storage API's at all. It's something I'd like to add in the future though.
So, this is coming from the perspective of someone who hasn't used storage, and I'm not even sure what the current capabilities are. But at a high level what I would like to do:

Store VOD content for offline playback (use case: download ahead of time, and e.g. watch on a flight)
Eagerly fetch and store VOD content during periods of intermittent network connectivity (use case: streaming while e.g. commuting or on a long drive)
Store Live content (perhaps hours worth) for the purposes of supporting Live pause

Thanks @chrisfillmore!

I'm using the storage, but I have two uses cases that is not working:

Store asset while playing to VOD
Support persistent licenses in not stored content (improve the load latency) (Chrome in Windows/macOS support it)

@avelad, thank you for contributing to the conversation!
I believe I understand your first use-case, but I could use some help understanding the fullness of your second use-case. From a user perspective, what would the use-case look like?

Improve the load latency when the user zap between live channels.

@avelad please make sure I understand correctly, in your case:

The user is streaming live content
The user may change between multiple live streams
To avoid making license requests when the user changes streams, you want to use offline licenses so that the request can be made once.
To avoid latency,  you want to pre-fetch them so that you can start playback right after the user changes streams.

Is that accurate?

Yes, that's just what I want to do. Although The most important thing is to avoid the license request, it is the one that takes the most time to resolve on the server.

Thanks @avelad! We will keep your two use-cases in mind when thinking through what a new solution will need to support.

We are using offline and the main pain point is the data storage limit that the browsers have and are all over the place (especially on mobile). Then we also use it with WebView in Ionic/Cordova apps and there is a need for a plugin interface to swap DB type see #1005 and examples for doing so would be welcome. Quote from our docs:

How much can I store?
Chrome for Desktop and Android: < 6% of free space
Cordova-based mobile app for Android: < 6% of free space
Firefox for Desktop and Android: < 10% of free space
Safari for Desktop and iPadOS: < 500MB - see WebKit note
MS Edge: < 20% of free space
Users may be prompt by the browser to allow for more storage capacity before the above limits can be reached.

I will also add to the need to support persistent licenses in not stored content (e.g. streaming content) on the pricing front. Some DRM service providers charge per license request so reducing the number of requests made to the license server may become a business requirement at some point as much as a technical requirement.


A ‘No NgModule metadata found’ error occurs When the package is used in async router .

Type of Issue
[x] Bug Report
[ ] Feature Request

Description
Try to package a library with NgModule and RouterModule.forChild.
When the app use the library with loadChildren to Async loading，will put a ‘No NgModule metadata found’ error like this.
ERROR in Error: No NgModule metadata found for 'MyappFeatureModule'.
    at NgModuleResolver.resolve (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler/bundles/compiler.umd.js:20249:23)
    at CompileMetadataResolver.getNgModuleMetadata (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler/bundles/compiler.umd.js:15218:60)
    at visitLazyRoute (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler/bundles/compiler.umd.js:31063:104)
    at visitLazyRoute (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler/bundles/compiler.umd.js:31067:17)
    at AotCompiler.listLazyRoutes (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler/bundles/compiler.umd.js:31031:20)
    at AngularCompilerProgram.listLazyRoutes (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler-cli/src/transformers/program.js:156:30)
    at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@angular/compiler-cli/src/ngtools_api.js:44:36)
    at AngularCompilerPlugin._getLazyRoutesFromNgtools (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:247:66)
    at Promise.resolve.then.then (/Users/aaronjin/aaronjin2013/NX-packagr/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:561:50)
    at process._tickCallback (internal/process/next_tick.js:109:7)

How To Reproduce
I push the code to this repo
NX-packagr
Expected Behaviour
I would like to have successful async load routing modules.
Version Information
ng-packagr: 1.6.0
@angular/*: 5.1.0
typescript: 2.5.3
rxjs: 5.5.2
node: 7.8.0
npm/yarn: 5.6.0
nrwl/nx：0.6.19
ngrx：4.1.1

I'v faced similar issue
ERROR in Error: No NgModule metadata found for 'PhysicalAssetModule'.
    at NgModuleResolver.resolve (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler/bundles/compiler.umd.js:20284:23)
    at CompileMetadataResolver.getNgModuleMetadata (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler/bundles/compiler.umd.js:15237:60)
    at visitLazyRoute (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler/bundles/compiler.umd.js:31175:104)
    at visitLazyRoute (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler/bundles/compiler.umd.js:31179:17)
    at AotCompiler.listLazyRoutes (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler/bundles/compiler.umd.js:31143:20)
    at AngularCompilerProgram.listLazyRoutes (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler-cli/src/transformers/program.js:156:30)
    at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/home/kyoz/Desktop/Projects/main-dev/node_modules/@angular/compiler-cli/src/ngtools_api.js:44:36)
    at AngularCompilerPlugin._getLazyRoutesFromNgtools (/home/kyoz/Desktop/Projects/main-dev/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:248:66)
    at Promise.resolve.then.then (/home/kyoz/Desktop/Projects/main-dev/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:571:50)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Version:

angular: 5.2.3
cli: 1.6.7
typescript: 2.6.2
ng-packagr: 2.0.0-rc.10

My public_api.ts file:
export * from './physical-asset.module';
export * from './components';

Hi all, I went to reproduce from the github repository you posted.
$ npm install
$ ls -al node_modules/@nx-ex
ls: node_modules/@nx-ex: No such file or directory
$ ls -al node_modules/nx-example
ls: node_modules/nx-example: No such file or directory
$ cat dist/package.json
{"name":"nx-example"
$ ng build
/* ... */
ERROR in apps/myapp/src/app/app.module.ts(9,36): error TS2307: Cannot find module '@nx-ex/feature'.
apps/myapp/src/app/app.router.ts(1,36): error TS2307: Cannot find module '@nx-ex/feature'.

Would you please check the nx-packaged demo repository and use a package.json per library?

@dherges
sorry,'@nx-ex/feature' is a file '.nxexample-0.0.1.tgz' in the repository, but clone is not download.
Your 'nx-packaged' demon I have clone and run it, when in local with folder, it's run ok. But when I publish to the nexus, it will put error like this, the error has happened in the past.

ERROR in ./apps/one-app/src/app/app.component.ngfactory.js
Module not found: Error: Can't resolve<EMAIL_ADDRESS>in '/Users/aaronjin/aaronjin2013/nx-packaged/apps/one-app/src/app'
resolve<EMAIL_ADDRESS>in '/Users/aaronjin/aaronjin2013/nx-packaged/apps/one-app/src/app'
  using description file: /Users/aaronjin/aaronjin2013/nx-packaged/package.json (relative path: ./apps/one-app/src/app)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /Users/aaronjin/aaronjin2013/nx-packaged/package.json (relative path: ./apps/one-app/src/app)
    using description file<EMAIL_ADDRESS>(relative path: ./nx-packaged-two-lib.ngfactory)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
<EMAIL_ADDRESS>doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
<EMAIL_ADDRESS>doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
<EMAIL_ADDRESS>doesn't exist
      as directory
<EMAIL_ADDRESS>doesn't exist
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS> @ ./apps/one-app/src/app/app.component.ngfactory.js 11:9-91
 @ ./apps/one-app/src/app/app.module.ngfactory.js
 @ ./apps/one-app/src/main.ts
 @ multi webpack-dev-server/client?http://<IP_ADDRESS>:0 ./apps/one-app/src/main.ts

I will try again, thank you for your help.

@dherges
sorry,'@nx-ex/feature' is a file '.nxexample-0.0.1.tgz' in the repository, but clone is not download.
Maybe my description is not accurate enough. This Error will happen with RouterModule use loadChildren. When you use the async loading and AOT，you will meet it.

Sorry for my misunderstanding about ng-packagr. At the moment, this workaround work good with me :smile:


fix: Fixed defaults, changed default ref to github.ref

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


Update deployment section of porch guide

Updates the instructions for deployment in the porch guide:

Add instructions for how to configure multirepo mode for Config Sync.
Remove the namespace flag for the get and delete commands.

It looks like this didn't get merged yesterday. The site build failed and I can't rerun it for some reason, but the change looks harmless (famous last words) and I don't see any conflicting changes, so I'm going to merge it.

Change looks fine after a force reload AFAICT
https://kpt.dev/guides/porch-user-guide


v1 ingress_per_unit support

Issue
Prometheus ingress-per-unit recently released a v1 version, this PR updates IPU to v1 and makes the necessary changes in prometheus.
Testing Instructions
Deploy with traefik and relate

Release Notes

updated ingress-per-unit v0 -> v1

Hey @PietroPasotti,
At some point yesterday I had test failing and ended up integrating the fixes in this PR in #318.

Closing this as the changes are already in.


Make Default as the default Python runner instead of Pyodide

Chalk'it backend is now launched with pythonWorkers=10 by Default.
So, make the Default runner default

Thanks Tristan, it is solved


qutebrowser: cannot open shared object file: Operation not permitted

Describe the bug
here is the original issue from qutebrowser for reference. My comments are at the bottom explaining what I've done so far.
I am getting very close to adding support for the widevine plugin in qutebrowser. I would like to submit my work in a pr, but I have hit a final snag that I can't seem to figure out. For whatever reason, I cannot load libwidevinecdm.so when it is located in the nix store. When trying to play something back in qutebrowser I get the error:
[1:1:0923/013042.723958:ERROR:cdm_module.cc(136)] CDM at /nix/store/ghgv3wpc80y30s73wrqhq32hy6542ssx-widevine-cdm/lib/libwidevinecdm.so could not be loaded.
[1:1:0923/013042.724231:ERROR:cdm_module.cc(137)] Error: /nix/store/ghgv3wpc80y30s73wrqhq32hy6542ssx-widevine-cdm/lib/libwidevinecdm.so: cannot open shared object file: Operation not permitted

I know this is the nix store because if I simply copy the libwidevinecdm.so out of the nix store and into a writeable directory, even with the same permissions and owner, it loads and plays back content just fine.
To Reproduce
you will need the following package description:
{ stdenv, patchelf, gcc, glib, nspr, nss, ... }:
let
  inherit (stdenv) lib mkDerivation;
  mkrpath = p: "${lib.makeSearchPathOutput "lib" "lib64" p}:${lib.makeLibraryPath p}";
in
mkDerivation {
  name = "widevine-cdm";
  src = ./widevine;

  PATCH_RPATH = mkrpath [ gcc.cc glib nspr nss ];

  patchPhase = ''
    patchelf --set-rpath "$PATCH_RPATH" libwidevinecdm.so
  '';

  installPhase = ''
    install -vD libwidevinecdm.so \
      "$out/lib/libwidevinecdm.so"
  '';
}

I can't distribute widevine so if you just get a copy of libwidevinecdm.so yourself and put it in the src directory you should be able to build the package.
now put:
  c.qt.args.append('widevine-path=${widevine}/lib/libwidevinecdm.so')

in your qutebrowser/config.py (replace ${widevine} with the full path). Finally load qutebrowser and head over to a drm demo. You'll notice it won't play. If you want to see it work simply copy the libwidevinecdm.so from the derivation into a writable directory, point qutebrowser there and see the video playback no problems.
Expected behavior
Since it works in a writable directory, why shouldn't it work from a read-only one? Other libraries don't seem to have an issue loading from the nix store so something strange is happening here.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Sorry about all the convoluted steps to reproduce but I haven't automated the acquiring of libwidevine yet. Was gonna do it last when I hit this issue.
Metadata

system: "x86_64-linux"
host os: Linux 5.2.11, NixOS, 19.09.git.64a45a4 (Loris)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.2.2
channels(nrd): ""
channels(root): ""
nixpkgs: /home/nrd/git/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

This is a big in webengine. If I turn of the chrome sandbox it loads the plugin just fine. Which means that webengine must not load the widevinecdm plugin into the sandbox unless it exists in one of the predefined locations. I'll file a bug upsteam.


python311Packages.levenshtein: 0.23.0 -> 0.24.0

Diff: https://github.com/maxbachmann/Levenshtein/compare/refs/tags/v0.23.0...v0.24.0
Changelog: https://github.com/maxbachmann/Levenshtein/blob/refs/tags/v0.24.0/HISTORY.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg eval


Update Node.js version guidance

Update Node.js version guidance to sync with CDK readme

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This was made against the wrong repo. Sorry.

no, I was wrong, this is the right place.


Implement basic Korean support

Hello. I implemented basic Korean support for proofreading Korean. I referred to #568 and added Korean morphological analyzer Komoran as a dependency.

Coverage increased (+0.02%) to 91.027% when pulling 1c397c24d052bc4e9c17f4f3fbe8eafa01a82048 on nacyot:korean into de767784e1532684225a915ccb0585d92625be70 on redpen-cc:master.

👍


_this.getElementForCurrentStep()

I am trying to implement the add-on, but I can't get it to work properly. When I add steps to the tour, including the default next button, I get a console error when it hits _this.getElementForCurrentStep():
Uncaught TypeError: Cannot read property 'style' of null
Any thoughts as to why?
Here are my options:
    this.get('tour').set('steps', [
      {
        id: 'tour-step-1',
        options: {
          title: 'Step 1 title!',
          text: ['Step 1 text.'],
          builtInButtons: [
            {
              classes: 'btn',
              text: 'Exit',
              type: 'cancel'
            },
            {
              classes: 'btn btn-success',
              text: 'Next',
              type: 'next'
            }
          ]
        }
      },

      // Step 2
      {
        id: 'tour-step-2',
        options: {
          attachTo: '.main-menu bottom',
          title: 'Step 2 title',
          text: ['Step 2 text'],
          builtInButtons: [
            {
              classes: 'btn',
              text: 'Exit',
              type: 'cancel'
            },
            {
              classes: 'btn btn-success',
              text: 'Next',
              type: 'next'
            }
          ]
        }
      }
    ]);

Using:
    "ember": "2.2.0",
    "ember-data": "2.2.1"

Is it possible to get a JSBin or Ember-Twiddle to replicate this?  I'm happy to fix the issue, it's just 1000 times easier if I have a broken example to work with.

@anthonycollini I have same error as you do, a work-around is to set attachTo in step1 options.

@alexlafroscia The error is raised when you did not set up attachTo in step options and triggering next or back event. Sometimes I don't want my step attach to any element... So it would be great if this can be fixed.

@anthonycollini and @eguitarz I believe I have fixed this issue. Can you please grab v1.0.5 and try again?


Confusing Error Message When Calling apply_chat_template Without chat_template Configuration

System Info
windows 10
(This issue is not related to the system)
Environment/Platform

[ ] Website/web-app
[ ] Browser extension
[X] Server-side (e.g., Node.js, Deno, Bun)
[ ] Desktop app (e.g., Electron)
[ ] Other (e.g., VSCode extension)

Description
If a tokenizer is not configured with chat_template and apply_chat_template is called, the error message is incorrect and raises TypeError: Cannot use 'in' operator to search for 'default' in null.
Specific location:
https://github.com/xenova/transformers.js/blob/8891a142859782a6a4a622056741f1a5be55e93b/src/tokenizers.js#L3134-L3151
This is not a critical issue, but the error message is misleading.
Reproduction

Use https://huggingface.co/Xenova/gpt-4o
<EMAIL_ADDRESS>Call apply_chat_template.

Hi there 👋 Can you provide the code used? I believe this should have been fixed in one of the recent alpha releases.
// npm i @huggingface/transformers
import { AutoTokenizer } from '@huggingface/transformers';

const tokenizer = await AutoTokenizer.from_pretrained('Xenova/gpt-4o');
const tokens = tokenizer.encode('hello world');
console.log(tokens); // [24912, 2375]

const messages = [
    { role: 'user', content: 'Hello!'}
]
const prompt = tokenizer.apply_chat_template(messages);
console.log(prompt);
// Error: Cannot use apply_chat_template() because tokenizer.chat_template
// is not set and no template argument was passed! For information about
// writing templates and setting the tokenizer.chat_template attribute,
// please see the documentation at https://huggingface.co/docs/transformers/main/en/chat_templating

ooops, my bad
I see. In fact, it's because I was using the code from the @huggingface/transformers branch, thinking it was the latest.
I've noticed that the latest code is in the v3 branch. Thank you for your reply! This issue can be closed.


i get banned guys from official discord server

i am soo sorry for send ip server disban pleases

Whats your Discord IGN?

my name discord is bielbi12

working on it now. Thanks :)


Implemented pin-input box as reusable component

03/01/2023
Implemented Pin-Input field
Here, I attach screenshot of my output for reference


Feature/multiple descriptor type support

This adds WDL support to the Dockstore webservice and some tests to ensure it works.  The changes that were added include adding WDL to the database, grabbing WDL files from Github and Bitbucket, and using the Broad parser to check validity of the WDL file.  It does not include any support for WDL on the CLI or workflows.

FYI, investigating why this pull request only has one check

FYI, this overlaps with https://github.com/ga4gh/dockstore/pull/124 in the sense that you should be able to reference the parser in that dependency rather than copy-and-paste the parser code. Giving it a shot.


run align_data error

RuntimeError                              Traceback (most recent call last)
 in
----> 1 predictor = dlib.shape_predictor(SHAPE_PREDICTOR_PATH)
RuntimeError: Error deserializing object of type int64
while deserializing a floating point number.
while deserializing a dlib::matrix
while deserializing object of type std::vector
while deserializing object of type std::vector
while deserializing object of type std::vector

This error occurs because align.dat is missing.
Please see #13
The problem is now fixed
Daniel


clean fetch_certificate

This is to remove the first loop of fetch_certificate

@hzxuzhonghu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

test_ztunnel
d97aa848a08239023293c3eccf07ffa5108e6e05
link
unknown
/test test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


In Progress: Mailing list

Resolves #33. @Aaronontheweb started it off and we'll see if we can clean it up since he's on travel.
Remaining Work
To fix CSS so the box and form are styled correctly

[x] Yellow lines should become the green color we are using as an accent
[x] Add Line at the bottom of the mailing list box
[x] Fix any awkward spacing prior to the footer
decided this isn't needed
[ ] Text of the form needs to match the size of the button
[x] Button should likely share the accent color (sea foam green, not yellow)
[ ] Bounding for the submit button

Other Work

[x] Need to fix JS / CSS so text can actually be input onto the form
[x] Need to do a test-run to see that the form can actually be submitted correctly
[ ] Need to add signup link to the mailing list from header

@Aaronontheweb @RyKilleen welp -- I looked at it for a bit but I eclipsed my timebox and I'm dead for the week. Here's where I got stuck:

No matter what the hell I did, I couldn't increase the padding of the e-mail text box higher than zero; I think something is overriding it somewhere and I can't figure out where. It's maddening.
The text on the form wasn't being hidden or off the screen -- THE FONT WAS WHITE. :rage2: also, the style was being applied to text inputs, not email inputs. Fixed both of those.

@SeanKilleen you guys are rockstars. this is probably good enough IMHO. No need to make perfect the enemy of good. Can always submit another PR with more fixes.

Verified that the submit works.

@Aaronontheweb submit seemed to go to last year's list though (e.g. I got an error that I was already subscribed). Is that an issue?

@SeanKilleen nope, it's the same list. Want to re-use it year after year

Going to pipe this PR over to the main dotnetfringe repo so Troy and friends can deploy the site whenever they're ready. I'm sure we can fix that CSS issue on the go

@Aaronontheweb pipe the master branch over


Cannot make SQLitePCLRaw.bundle_sqlcipher work with EF Core 2

Hi,
I try to make SQLitePCLRaw.bundle_sqlcipher (1.1.8) work with ASP.Net Core 2 / EF Core 2 but it seems the DB is never encrypted. Am I missing something?
I made a minimal repo here. SqliteCipherTest.zip
        [Fact]
        public void Test1()
        {
            var encryptedConnexion = new SqliteConnection("Data Source=test.db;");
            encryptedConnexion.Open();
            var command = encryptedConnexion.CreateCommand();
            command.CommandText = "SELECT quote($password);";
            command.Parameters.AddWithValue("$password", "password1");
            var quotedPassword = (string)command.ExecuteScalar();

            command.CommandText = "PRAGMA key = " + quotedPassword;
            command.Parameters.Clear();
            command.ExecuteNonQuery();

            encryptedConnexion.Execute("CREATE TABLE IF NOT EXISTS test (value TEXT)");
			encryptedConnexion.Execute("DELETE FROM test");
            encryptedConnexion.Execute("INSERT INTO test VALUES (@val)", new {val = "myVal"});

            var vals = encryptedConnexion.Query<string>("SELECT * FROM test").ToList();
            Assert.Equal(1, vals.Count);
            Assert.Equal("myVal", vals.Single());

            var connection = new SqliteConnection("Data Source=test.db;");
            connection.Open();

            //Should fail
            var vals2 = encryptedConnexion.Query<string>("SELECT * FROM test").ToList();
            Assert.NotEqual(1, vals2.Count);
        }

Normally, the second connexion should not be able to read the file as I don't set the PRAGMA key. So I suppose the DB is not encrypted.
In my example, I use Dapper for more convenience, but the result is exactly the same when using only EF
Thanks for your help!

You should take your dependency on Microsoft.EntityFrameworkCore.Sqlite.Core, not Microsoft.EntityFrameworkCore.Sqlite.  Note the extra .Core at the end.  This is the form of that package which is suitable for use with bundle_sqlcipher.

You should dispose the encrypted connection before opening the other one.

With those two changes, your test "works" for me, in the sense that the "should fail" query throws an exception because it cannot read the db.  And using the sqlite3 command line shell app to look at the resulting test.db file shows it to be unreadable.

Thanks a lot for your help!
In my full project, I was using Microsoft.EntityFrameworkCore.Sqlite.Core, but I was also using the new meta-package Microsoft.AspNetCore.All, which includes Microsoft.EntityFrameworkCore.Sqlite.
So the solution is to remove the meta-package and add all the packages individually.


Hello, JSON data is not highlighted

Hello, JSON data is not highlighted

hello, for some reason I have all elements rendered as white, I wonder why this is happenning. I checked for css file to link but cannot find any in vue-json-tree-view folder.

still have this issue. it s very strange because if I edit the element from chrome dev tools an add manually a color (for exemple), it is applied but not if I edit the classes directly (ex : tree-view-item-key)

Could you show an example of the the css you're using to style the items?
It's important to prefix the classes with a . (.tree-view-item-key) for styles to have an effect


Fix "similar-code" issue in src/components/image/index.tsx

Similar blocks of code found in 3 locations. Consider refactoring.
https://codeclimate.com/github/bylapidist/components/src/components/image/index.tsx#issue_5ec9b3d0cfdf110001000052

:tada: This issue has been resolved in version 2.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


edit-chroot -m breaks on.... meteorjs..?

The machine had Meteor.js installed on it. And the move (edit-chroot -m NEW_LOCATION) failed horribly (after probably ten hours of waiting). This is the only output I've got. Lenovo Chromebook, Ubuntu (Trusty). After the move, sudo enter-chrooting fails; no chroots found in /mnt/stateful_partition/crouton/chroots. Bummer. The new location was on an ext4-formatted 64GB usb drive.
Suggestions and help welcome, but I'm hoping to help others avoid this problem. Happy to give any other info you'd like.

Could you please describe the steps you took and the exact commands you put in?

Unmounted (just to be sure) and then moved:
sudo unmount-chroot -a
sudo edit-chroot -am /media/removable/U/.chroots/trusty-migratory

Afterward, sudo enter-chroot -c /media/removable/U/.chroots/ results in:
Entering /media/removable/U/.chroots/trusty-migratory...
chroot: failed to run command 'su': No such file or directory
WARNING: starting chroot system dbus daemon failed with code 127
chroot: failed to run command 'su': No such file or directory
WARNING: /etc/rc.local failed with code 127
chroot: failed to run command 'su': No such file or directory
Unmounting /media/removable/U/.chroots/trusty-migratory...

closing this as I've been unable to reproduce it a second time


Image Resizer

Description of the new feature / enhancement
Resize picture -
We have three options Fit, Fill, Stretch
I propose to add a new option -  Keep ratio
Scenario when this would be used?
In application development. We often have to work with images that respect certain ratios.
Supporting information
No more explication needed :)

Fit and fill already keep the aspect ratio. Oly "stretch" is the one that...stretches.

Thanks 🙂
JL V

From: Clint Rutkas @.>
Sent: Sunday, April 16, 2023 3:01:11 PM
To: microsoft/PowerToys @.>
Cc: jlvill @.>; Author @.>
Subject: Re: [microsoft/PowerToys] Image Resizer (Issue #25543)
Closed #25543https://github.com/microsoft/PowerToys/issues/25543 as completed.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerToys/issues/25543#event-9018090619, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AURMEYP22F6GSF3KRMWT3MDXBQ6XPANCNFSM6AAAAAAW7QN3FU.
You are receiving this because you authored the thread.Message ID: @.***>


Missing database creation script

Getting the wiki up and running was easy. There is no database contents though, so accessing the sites URL gives the following error:
ERROR: relation "w_pages" does not exist (15)
I would have expected the database schema to be included.

woops, didn't really expect anyone to even look at it - thanks for the nudge.
I'll try to get it online later.

@AaronDP SQL dump (manually cleaned up) is online, feel free to shout if something doesn't work

Thank you! It works now. Here is the output: Welcome! / start / pages / users / login
wheee! Welcome to wheee, a wiki written in Lua, with Lapis and Postgres.


Declare dependency on six

Used here:
https://github.com/DavidMStraub/homeconnect/blob/d16e3baeda2383f55617fe40003c92fcb192c03e/homeconnect/sseclient.py?rgh-link-date=2022-06-05T02%3A52%3A50Z#L10

Good point. I think it would be better to get rid of it, Python 2 is not supported.

Removed.


2D Shader Editor nodes problem

Not everything seem to work about 2D Shader Editor:

When using uniforms, and setting it's values from inspector of object that uses this shader, they seem to not apply on the shader at all... Values seem to stay unchanged.default.
When using Uniforms I get this error after pluging everything up and saving the shader:
core/io/resource_format_binary.cpp:1417 - Can't save RIDs - with a red square on the left
( don't know what that means here ).
It happened to me once, that the RGB constant was giving me totaly wrong output ( B was not working at all, G was setting G and B thesame value (?!?!!), and R was ok ). I happened very single time, and I cant reproduce it now... It wasn't my fault for sure.
I've also included 2 proposals about shader editor's gui to UI Rewrite Plan.

It works great anyways. Love to see the output in realtime on the preview! =]

does this still happen? (there were a few recent fixes to that)

reduz wrote:

does this still happen? (there were a few recent fixes to that)

@Krzycho666 Ping :)

Assuming it was fixed.


How To Set Fading to Repeat Forever Without Flipper Zero Afterwards

Hi Dani,
First of all, thank you so much for providing these signal files so that I am able to re-use the wristband.
At the end of the concert, they set everyone's wristband to fade Magenta forever, even after you turn it off and on. I'm wondering if there is a simple way to edit the .ir files so that I can have it set to that state forever without needing a Flipper Zero again. Thank you.
Sincerely,
Asher

By "forever", I mean "persistent to battery removal and reinsertion"

Hi, I'm hoping to accomplish the same effect of the magenta fade on an infinite loop.
I saw this issue on the main reverse engineering repository asking a similar thing: https://github.com/danielweidman/pixmob-ir-reverse-engineering/issues/37
@danielweidman
I'm having trouble converting the binary codes into the instructions for the flipper .ir files. What would be the .ir equivalent of the binary strings from the linked issue?

The flipper give me "failed to load /any/infrared/pixmob_main.ir" when I try to launch this.  Did i miss a step or is there a problem with the code executing on a updated flipper?

Hi, I'm hoping to accomplish the same effect of the magenta fade on an infinite loop.
I saw this issue on the main reverse engineering repository asking a similar thing: danielweidman/pixmob-ir-reverse-engineering#37
@danielweidman
I'm having trouble converting the binary codes into the instructions for the flipper .ir files. What would be the .ir equivalent of the binary strings from the linked issue?

Hi Dani,
First of all, thank you so much for providing these signal files so that I am able to re-use the wristband.
At the end of the concert, they set everyone's wristband to fade Magenta forever, even after you turn it off and on. I'm wondering if there is a simple way to edit the .ir files so that I can have it set to that state forever without needing a Flipper Zero again. Thank you.
Sincerely, Asher

Hey, I would love do know this as well. I borrowed a flipper and the PixMob_main.ir works fine. But I have to give it back and I'd love to have my Pixmob x2 in infinity loop.
Best wishes,
Mona

Hey, I would love do know this as well. I borrowed a flipper and the PixMob_main.ir works fine. But I have to give it back and I'd love to have my Pixmob x2 in infinity loop. Best wishes, Mona

Hey @monafarmer, hi @rshock262,
I used the effects_to_flipper_files.py to convert the binaries to Flipper remote files.
Now the question, I have an issue with enabling the infinity loop on the new Coldplay wristbands (from last weekend). I just copied this answer from bellow on the flipper (inside inifinity.ir file that I created). I can see the labels but when I click on them, piximob doesnt light up :( . Could it be the version problem or did I do something wrong when copying? Could you include these new infinity codes as a files in the repo so it is easier to test what is wrong?
Thank you thank you thank you!

Hey, I would love do know this as well. I borrowed a flipper and the PixMob_main.ir works fine. But I have to give it back and I'd love to have my Pixmob x2 in infinity loop. Best wishes, Mona

Hey @monafarmer, hi @rshock262,
I used the effects_to_flipper_files.py to convert the binaries to Flipper remote files. You can copy the following code, save it as pixmob_loops.ir and move it to the infrared folder on the SD card:
Filetype: IR signals file
Version: 1
#
name: LOOP_BLUE
type: raw
frequency: 38000
duty_cycle: 0.330000
data: 1388 2082 694 1388 694 694 694 694<PHONE_NUMBER><PHONE_NUMBER> 694 1388 694 2776 694 1388 694 1388<PHONE_NUMBER> 1388 1388 694 1388 2082 1388 1388 694 1388 694 2776 694
#
name: LOOP_BLUE_2
type: raw
frequency: 38000
duty_cycle: 0.330000
data: 1388 2082 694 1388 694 694 694 694<PHONE_NUMBER> 2082 694 1388 694 1388 694 2776 694 1388 694 1388<PHONE_NUMBER> 2082<PHONE_NUMBER> 2776 694 1388 694 1388 694 2776 694
#
name: LOOP_GREEN
type: raw
frequency: 38000
duty_cycle: 0.330000
data: 1388 2082 694 1388 694 694 694 694<PHONE_NUMBER> 1388 694 2082 694 1388 694 2776 694 2082 694 694<PHONE_NUMBER> 2082<PHONE_NUMBER> 2082 1388 1388 694 1388 694 2776 694

I believe the Coldplay wristbands are based on the x4 (gen 1), so the commands should work. Perhaps the batteries died? They should be easily replaceable. I've yet to get my hands on one of these bracelets but I have one on the way so I can investigate further.

Hi, here are the photos of the bracelet. It says it is Piximob Aurora v1.7.
Batteries are ok, since I can still use all of the other commands from this repo. Only the ones that you have commented above are not possible to run :/ . I guess I have saved it wrongly or something else is different.
Basically I have taken copy of above code and saved it as infinity.ir . Then I copied it to infrared folder of my Flipper Zero. I can open the commands and I can see it on FZ but unfortunately when I click on "LOOP_BLUE" nothing happens.

Thanks for the info. Very interesting. Turns out my Coldplay band is arriving from eBay today, I'll see if I have any luck.

Nope. Same issue as you. My guess is that since this is a custom model made for them, they probably stripped out parts of the firmware that aren't needed for their shows. Or maybe a component is missing to store the persistent effect data and therefore it cannot write such an effect to the band. Not sure, but it seems like this isn't possible for these :(

Shame :( Thank you so much for checking nevertheless :) It would be fun to have the persistant possibility but, it is what it is.

By the way, this is a little off-topic but: how long do your batteries last?
I only checked a few effects, the bands were probably on 10 minutes in total in the last 2-3 weeks. Now my batteries (non-brand) ran out, the brightness was also significantly lower in the last couple of days.
I assume the band is always on and consuming a little power when the IR receiver is on but I would have hoped for longer battery life.

I have used mine for last week or so... it is still running... I am playing here and there with them (I have 2) with my dog so it is not full day use but definitely more than 10 minutes on 1 charge. Also, I still have original cheapo batteries in them :)

By the way, this is a little off-topic but: how long do your batteries last?
I only checked a few effects, the bands were probably on 10 minutes in total in the last 2-3 weeks. Now my batteries (non-brand, replaced the after the concert) ran out, the brightness was also significantly lower in the last couple of days.
I assume the band is always on and consuming a little power when the IR receiver is in an active state but I would have hoped for longer battery life.

For me I have the pull tabs for most of them so I never really let them die. When I'm testing effects, I usually have the band(s) hooked up to a power supply.

Dunno if this is still being checked, but I got one from the eras tour, and played around with the ir and my flipper. Now I'd like to set the band back to the color fade that the eras tour left it in at the end of the show.

Dunno if this is still being checked, but I got one from the eras tour, and played around with the ir and my flipper. Now I'd like to set the band back to the color fade that the eras tour left it in at the end of the show.

Unfortunately once the band gets a new signal it is removed from storage. I tried recording the end signal at Indy n1,2, and 3 but the flier didn't see it at all, unlike most other commands.

Dunno if this is still being checked, but I got one from the eras tour, and played around with the ir and my flipper. Now I'd like to set the band back to the color fade that the eras tour left it in at the end of the show.

Unfortunately, once the band gets a new signal it is removed from storage. I tried recording the end signal at Indy n1,2, and 3 but the flipper didn't see it at all, unlike most other commands.

Damn... now i regret trying this out. I need the wristband back to how it was... hopefully someone has a dump of the final command the show sent out.


[Bug]: we have thousands of directories so we get a nice long loop until rate limited

What happened?
https://github.com/codebar-ag/laravel-flysystem-cloudinary/blob/v4.2/src/FlysystemCloudinaryAdapter.php#L686
With thousands of directories this causes issues. Either that or there is an infinite loop somehow.
Package Version
4.2
PHP Version
8.2
Laravel Version
11
Which operating systems does with happen with?
Linux

Hey @robclancy
Thanks for your message.
When I quickly review our code now, you might be correct that this method does not look like a proper way to check a file's existence for thousands of folders. But because we've never had to solve a case with thousands of folders, I think that's okay.
So there are two options we can consider:
We would accept a pull request with an updated approach to handle and maintain the updated code in the future.
We can build a test setup with such a use case and find a solution. However, this would take some time because it is not currently on our priority list.
Best regards
Sebastian

I have since just started a new environment on cloudinary to start fresh.

Hey @robclancy
Cool! If I can support you in any way let me know.
Best regards
Sebastian


The generation-result is not deterministic

Describe the bug
I have a controller-class.
I'm able to generate json and yaml.
But every time I run the plugin the result looks different to the prev. one.
This is not so helpfull because I put the result into my git-repo.
<plugin>
        <groupId>io.swagger.core.v3</groupId>
        <artifactId>swagger-maven-plugin</artifactId>
        <version>${swagger-maven-plugin.version}</version>
        <configuration>
          <outputPath>${basedir}/src/openapi/</outputPath>
          <outputFileName>cc-${api.version}</outputFileName>
          <outputFormat>JSONANDYAML</outputFormat>
          <prettyPrint>TRUE</prettyPrint>
          <attachSwaggerArtifact>true</attachSwaggerArtifact>
          <resourceClasses>
            <resourceClasse>com.siemens.spice.cc.rest.service.ConfigurationController</resourceClasse>
          </resourceClasses>
        </configuration>
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>resolve</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

To Reproduce
Simply run the generation multiple time without any change.
Expected behavior
The generated json/yaml must create always the same output.
I tried to "fix" this behavior in io.openapitools.swagger.GenerateMojo.execute()
OpenAPI swagger = reader.read(reflectiveScanner.classes());

// XXX .... try to bring all the props in a "stable" order ...
swagger.paths(sortPaths(swagger.getPaths()));
swagger.components(sortComponents(swagger.getComponents()));

...
private Components sortComponents(Components components) {
        if (components==null)
            return null;
        Components r = new Components();
        r.setSchemas(sort(components.getSchemas()));
        return r;
    }

    private io.swagger.v3.oas.models.Paths sortPaths(io.swagger.v3.oas.models.Paths paths) {
        if (paths==null)
            return null;
        io.swagger.v3.oas.models.Paths r = new io.swagger.v3.oas.models.Paths();
        r.putAll(sort(paths));
        return r;
    }

    private <K extends Comparable<K>, V> Map<K, V> sort(Map<K, V> map) {
        return map
                .entrySet()
                .stream()
                .sorted(Map.Entry.comparingByKey())
                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
    }
``´

But I'm not sure if this is the right direction to go :)

I am not sure whether the plugin is actually behaving differently than the Swagger framework itself. I mean we could add a sorting, as you suggest, but I am thinking whether this would more correctly be solved in Swagger itself as we are merely wrapping it.

This problem seems to be reoccurring quite often in the Swagger framework itself. There are many open issues about this, even from 2017:
https://github.com/swagger-api/swagger-core/issues/2775
https://github.com/swagger-api/swagger-core/issues/2828
https://github.com/swagger-api/swagger-core/pull/3266
https://github.com/swagger-api/swagger-core/issues/2400
What is the best way to solve this matter both properly and swiftly you reckon, @langecode ? How can I help?

Well, if there is that many open issued with Swagger Code it seems not very high priority and I do acknowledge it can be a problem if you want to do a simple diff between outputs (we actually did do a diff tool for OpenAPI specifications that does it semantically - however I do not think we ported that to OpenAPI 3 yet: https://github.com/openapi-tools/open-api-diff).
If it has value to you I think it would be ok to include a sorting option to the plugin as suggested by @ahoehma - I am not working much with Java these days so it is a little hard to find the time to implement it - but feel free to do a PR and I shall find the time to look through that.

@wanno-drijfhout @langecode @ahoehma We generated a pull request for this issue. This causes blocking problems when adopting this plugin.

@langecode I fear updating to the new version doesn't lead to a deterministic or sorted output. @hiddewie found a bug in the refactoring and creating a PR :-)

Feedback ... now I'm using 2.1.4 and I still have some random jumps of paths in the output.json/yaml.
<plugin>
        <groupId>io.openapitools.swagger</groupId>
        <artifactId>swagger-maven-plugin</artifactId>
        <version>${swagger-maven-plugin.version}</version>
        <configuration>
          <outputDirectory>${basedir}/src/openapi/</outputDirectory>
          <outputFormats>JSON,YAML</outputFormats>
          <prettyPrint>true</prettyPrint>
          <attachSwaggerArtifact>true</attachSwaggerArtifact>
          <swaggerConfig>
            <info>
              <title>SPICE Configuration Service API</title>
              <license>
                <name>The Siemens Inner Source License - 1.1</name>
                <url>https://code.siemens.com/ebconf/spice-configuration-cluster/-/blob/develop/LICENSE</url>
              </license>
              <description></description>
              <version>${api.version}</version>
            </info>
          </swaggerConfig>
        </configuration>
        <executions>
          <execution>
            <id>cc-configuration</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <resourcePackages>
                <resourcePackage>com.siemens.spice.cc.rest.service.configuration</resourcePackage>
              </resourcePackages>
              <outputFilename>cc-${api.version}-configuration</outputFilename>
            </configuration>
          </execution>
          <execution>
            <id>cc-settings</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <resourcePackages>
                <resourcePackage>com.siemens.spice.cc.rest.service.settings</resourcePackage>
              </resourcePackages>
              <outputFilename>cc-${api.version}-settings</outputFilename>
            </configuration>
          </execution>
          <execution>
            <id>cc-products</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <resourcePackages>
                <resourcePackage>com.siemens.spice.cc.rest.service.products</resourcePackage>
              </resourcePackages>
              <outputFilename>cc-${api.version}-products</outputFilename>
            </configuration>
          </execution>
          <execution>
            <id>cc-brain</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <resourcePackages>
                <resourcePackage>com.siemens.spice.cc.rest.service.brain</resourcePackage>
              </resourcePackages>
              <outputFilename>cc-${api.version}-brain</outputFilename>
            </configuration>
          </execution>
          <execution>
            <id>cc-history</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <resourcePackages>
                <resourcePackage>com.siemens.spice.cc.rest.service.history</resourcePackage>
              </resourcePackages>
              <outputFilename>cc-${api.version}-history</outputFilename>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>4.0.1</version>
            <scope>runtime</scope>
          </dependency>
        </dependencies>
      </plugin>

@ahoehma There seem to be more things that need to be sorted, e.g. https://github.com/openapi-tools/swagger-maven-plugin/pull/50#issuecomment-671770396. The current solution is a workaround, and should be solved in swagger-core). PRs and issues have also been referenced opened there.


feat: 4492 - Tests for page scrolling

Reason for Change

#4492

Changes

add
Tests to check pages can be scrolled

I have a fix for the failing e2e test here!
https://github.com/chanzuckerberg/single-cell-data-portal/pull/4623
Seems like Firefox cannot scroll a long distance in one go, so I added a loop scroll until we hit the bottom 😆
PTAL thank you!

@tihuan , @atarashansky can I merge this now?