ModuleNotFoundError: No module named 'mc_observers'

Hello,
So I'm using Ubuntu 20, ROS Neotic, and Python 3.
I have created a basic file: mctest.py
This is the file contents:
#!/usr/bin/env python

"""
Test for MC RTC
"""

import mc_control
import mc_rbdyn
import mc_rtc

def main():
        mc_gc = mc_control.MCGlobalController("")
        mc_robot = mc_gc.robot()
        rm = mc_robot.module()
        print("Running MC RTC controller")
        mc_gc.running = True

if __name__ == "__main__":
    main()

This is how I tried to run it:
python3 mctest.py
And this is the terminal output:
Traceback (most recent call last):
  File "mctest.py", line 16, in <module>
    import mc_control
  File "/usr/lib/python3/dist-packages/mc_control/__init__.py", line 1, in <module>
    from . import fsm
  File "/usr/lib/python3/dist-packages/mc_control/fsm/__init__.py", line 1, in <module>
    from .fsm import *
  File "mc_control/fsm/fsm.pyx", line 1, in init mc_control.fsm.fsm
  File "mc_observers/mc_observers.pxd", line 7, in init mc_control.mc_control
  File "/usr/lib/python3/dist-packages/mc_observers/__init__.py", line 1, in <module>
    from .mc_observers import *
ModuleNotFoundError: No module named 'mc_observers.mc_observers'

Thank you
@hu-yue

Hello @NourhanKhatab
This is an issue with the packaging of the Python bindings. I will push a fix during the day and a new stable release to address this in the stable packages as well.
Thanks

Hello @NourhanKhatab
This is now fixed on the head mirror. I will publish a release within the day to have it on the stable mirror as well.

@gergondet thanks for the fix, I installed the head version to test it out.
But now I am getting this error:
Traceback (most recent call last):
  File "mctest.py", line 16, in <module>
    import mc_control
  File "/usr/lib/python3/dist-packages/mc_control/__init__.py", line 1, in <module>
    from . import fsm
  File "/usr/lib/python3/dist-packages/mc_control/fsm/__init__.py", line 1, in <module>
    from .fsm import *
ImportError: /lib/x86_64-linux-gnu/libmc_solver.so.1: undefined symbol: _ZN5tasks2qp15CollisionConstr12addCollisionERKSt6vectorIN3rbd9MultiBodyESaIS4_EEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN3sch8S_ObjectERKN3sva10PTransformIdEEiSG_SJ_SO_ddddRKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEST_

Hi @NourhanKhatab
Can you try to update/upgrade the packages?
I think you caught an unfortunate glitch in the system where packages for Tasks were updated but mc_rtc packages were not yet. I have tried just now in a clean docker for Ubuntu 20 + ROS noetic + Python 3 and I have no such issue.


Update 6to5 and rename everything 'babel'

https://github.com/richgilbank/ES6-Repl-Chrome-Extension/commit/f4ad56662856f71986c04e87a2cf0dc83f308f78


Add noframework option in AST compiler methods

I added this option to the AST compiler methods in order to work around this issue in my QuotationCompiler library.

So this removes an implicit FSharp.Core reference?

Yes, same as --noframework in fsc.exe.

@dsyme Why is there no Compile* methods in normal SourceCodeServices?
I think that the API should be normalised that way, its annoying to have to create another type to Compile when you are already using FsharpChecker in SourceCodeServices which essentially the same API.

@7sharp9 - yes, it would be reasonable to bring the Compile methods into FSharpChecker. For starters that could then help ensure the same Reactor thread is used for both checking and compilation.

This fix is good enough considering it only affects the compile-from-AST methods.
There is certainly duplication between the AST and compile-from-text paths which ideally should be resolved in the future, e.g. the command-line arguments governing the compilation (such as noframework) should probably come inn textual form, for uniformity with the rest of the compiler services.  But that would be a different commit.
So I'm ok to merge this.

Thanks. Looking forward for a nuget package update!


Allow \t and \n in Substition

i like to add some new lines and tabs to the Substitution text field.
but i tried \t and \\t  and '\n' and \n\r but they not work there.
it would be nice if this would be possible.

Hi, I add this in my roadmap!


Is it possible to force renaming a certain enum fields or turn them into integers?

Currently it is possible to force renaming all enum fields with the configuration file.
But, is there a way to specifically renaming a few enum fields only?
Is there a way to change enum values into integers (including rewriting corresponding methods or properties signatures which reference those enum types)?

What do you mean by "a few enum fields"? You want to rename only some fields of one specific enum? Or you want to force to rename some enums and others not?
Stripping the enums and replacing them with integer values (or with what ever data type the enum declares) isn't possible currently, but it's on the todo list. It should be relatively easy to implement, because renaming of enum values works under similar conditions. If an enum is allowed to be renamed, it's likely allowed to be stipped out entirely. I won't be able to add this any time soon, but contributions are welcome. ;)

I meant renaming some enums and others not.
In practical cases, some enums are to be serialized to JSON strings and they should not be renamed, and others can be renamed or turned into integer values.

Oh that is possible. You just need to declare separate rules to include or exclude the ones you want to rename or not.
For example, you could set up your rules like this:
<rule pattern="true">
  <protection id="rename" />
</rule>
<rule pattern="namespace('Your.Namespace.Here') and is-type('enum')">
  <protection id="rename" action="remove" />
</rule>

This way the namespaces inside one specific namespace are excluded from the renaming.

Thank you very much for the explanation. I am going to give it try.
I will be looking forward to the replacing enum with integer types :)


⚠ Bofrost.de has degraded performance

In 76c58c1, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1192 ms

Resolved: Bofrost.de performance has improved in 3872143 after 303 days, 18 hours, 5 minutes.


Enable other  area relations than "intersects"

Hello,
Usually, the given area relations allowed to be used in a query are {intersects, contains, is-within}. They are used with a given AOI.
For now, only the intersects one is used (for compatibility issues I assume).
However, I would really use an option to enable other area relations.
Could it be done by adding a simplified crunching plugin than filter_overlap ?
With this one I understand that I can recreate the effect of the contains area relation by setting a 100% overlap, but I cannot recreate the is-within. (am I missing sth ?)
Thanks a lot

Hello Rémi, and thank you for this feature request. We will also try to add these crunchers and give you a feedback


Not possible to sign on PDF Signature field

Well, this is not an issue as a question.
Is it possible to sign (visible signature) a  PDF document on a signature field  that I have created previously?
I am using this code to get my X.509 certificate from my spanish eID card, but also I don't know how to use this certificate to sign:
    from pkcs11 import Attribute, ObjectClass, NoSuchKey, SignMixin,KeyType
    import PyKCS11
    import OpenSSL

               lib = pkcs11.lib("/usr/lib64/pkcs11/opensc-pkcs11.so")
               fname='lorem_ipsum_definicion.pdf'
               data=open('lorem_ipsum_definicion.pdf', 'rb+').read()
               for slot in lib.get_slots():
                     token = slot.get_token()
                     print(token)

    with token.open(user_pin=<PIN>) as session:
        private = next(session.get_objects({Attribute.CLASS: ObjectClass.PRIVATE_KEY,}))
        public = next(session.get_objects({Attribute.CLASS: ObjectClass.PUBLIC_KEY,}))
        cert=next(session.get_objects({Attribute.CLASS: ObjectClass.CERTIFICATE,Attribute.LABEL:'CertFirmaDigital'}))
        sig = SignMixin.sign(data)
        print(sig)
        sig_verif = public.verify(data, sig) # Works!
        print("Signature is valid? "+str(sig_verif)) # True
        fname = fname.replace('.pdf', '-signed.pdf')
        with open(fname, 'wb') as fp:
             fp.write(data)
             fp.write(sig)

Any help will be grateful
Thanks in advance

Hi, this doesn't make a lot of sense. PKCS#11 has nothing to do with graphic signatures. It is to do with cryptographic signatures. Representing that value is beyond the scope of this library. Similarly, signing or encrypting PDFs via the Adobe extensions for signed PDFs is beyond the scope of this library. However this library could produce the signature required.
It would help to start from one of the examples of the tests. The exact mechanism, format and parameters of your signature need to match with the party you're changing it with.
You can't just call methods on SignMixin. You need to call it on an instance. To sign something you need a private key. Certificates, which contain the public keys, can only be used to verify a signature. Think of a certificate as a public key with attached metadata about its validity.

Hi, this doesn't make a lot of sense. PKCS#11 has nothing to do with graphic signatures. It is to do with cryptographic signatures. Representing that value is beyond the scope of this library. Similarly, signing or encrypting PDFs via the Adobe extensions for signed PDFs is beyond the scope of this library. However this library could produce the signature required.
It would help to start from one of the examples of the tests. The exact mechanism, format and parameters of your signature need to match with the party you're changing it with.
You can't just call methods on SignMixin. You need to call it on an instance. To sign something you need a private key. Certificates, which contain the public keys, can only be used to verify a signature. Think of a certificate as a public key with attached metadata about its validity.


Escalation support + error code adjustment

Related to https://github.com/camunda/camunda-modeler/issues/3318

I missed one part: https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/79

This is now ready for review.


NetStandard2.1 - Get compiler error: Reference to type 'ExportAttribute' claims it is defined in 'System.ComponentModel.Composition', but it could not be found

SqlPackage or DacFx Version: 161.6374.0
.NET Framework (Windows-only) or .NET Core: .NET Standard 2.1
Environment (local platform and source/target platforms):

Steps to Reproduce:

Using Visual Studio 2022, create a new Class Library, targeting .NET Standard 2.1
Add nuget package reference for Microsoft.SqlServer.DacFx, v 161.6374.0 (this is currently the latest version)
Add a dummy class that has a single ExportDeploymentPlanModifierAttribute.  the following one-liner is enough:
[Microsoft.SqlServer.Dac.Deployment.ExportDeploymentPlanModifier("Dummy", "<IP_ADDRESS>")] public class Dummy { }
Attempt to build - get a compiler error:
error CS7069: Reference to type 'ExportAttribute' claims it is defined in 'System.ComponentModel.Composition', but it could not be found
However I expected no errors.

Did this occur in prior versions?  If not - which version(s) did it work in?
This did not happen with nuget package version 150.5282.3
This error is shown for all 161.* versions of the package.

Workaround here seems to be adding a reference to the System.ComponentModel.Composition package to my own project.  seems a little odd as this is already listed as a dependency of the DacFX nuget package??

There was a mismatch in the nuspec and our actual dependency to System.ComponentModel.Composition, should be fixed now. Can you give our latest preview version a try? 162.1.39-preview

@zijchen
Just tried it, looks like there is no longer a problem. Thanks!


Caps lock works like Caps lock and Backspace on gnu/linux

I am very new in this new layout that I started to investigate thanks to a friend, however, I had the misconception that like Colemak, Norman replaced Caps Locks with an additional Backspace key, as indicated by the keyboard map of my system (fedora 30 with GNOME).

However, in the images of the website and here on github, it is shown that Caps lock remains the same as in the QWERTY layout.
Anyway, in the case of my system when I press Caps Lock, it does Caps Lock and Backspace at the same time and it is somewhat disconcerting.

It probably means to need a keyboard where you can tell the firmware to not lock caps on.

I'm having the same issue on my Linux laptops, one running KDE and the other one GNOME. It's frustrating that Caps Lock also acts as backspace.

I don't have a universal solution that will always work. Would it be better if I just set the keylayouts back to caps lock only?

I don't have a universal solution that will always work. Would it be better if I just set the keylayouts back to caps lock only?

It would, probably.
If you were to make changes to the layout for Linux users, does that mean it has to be re-submitted to xkeyboard-config and wait for months/years for it to ship with any Linux distro? Just curious.

The maintainers of xkeyboard are pretty responsive. It's the downstream vendors that take forever to incorporate updates.


🐛 [CLOUD_FIRESTORE] The service is currently unavailable.

Bug report
I'm try to use Firestore with Flutter Deskop (MacOS). But I'm getting always this error since my first try for a month.
[cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.

Steps to reproduce

Created iosApp on Firebase and downloaded GoogleService-Info.plist file to macos project
AppBundle (in Runner.xcworkspace) is edited like on Firebase
Creted a collection and document on Firebase (myCollection/myDocument)
(All steps on https://firebase.flutter.dev/docs/installation/macos)

Expected behavior
I wish to get name value from myDocument on Firebase

Additional context
main.dart
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp()
      .then((value) => print("connected " + value.options.asMap.toString()))
      .catchError((e) => print(e.toString()));
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  FirebaseFirestore firestore = FirebaseFirestore.instance;

  void _initializeApp() async {
    await Firebase.initializeApp();
  }

  @override
  void initState() {
    _initializeApp();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    CollectionReference users =
        FirebaseFirestore.instance.collection('myCollection');

    return Scaffold(
      appBar: AppBar(),
      body: FutureBuilder<DocumentSnapshot>(
        future: users.doc("myDocument").get(),
        builder:
            (BuildContext context, AsyncSnapshot<DocumentSnapshot> snapshot) {
          if (snapshot.hasError) {
            print(snapshot.error.toString());
            return Text(snapshot.error.toString());
          }

          if (snapshot.connectionState == ConnectionState.done) {
            Map<String, dynamic> data = snapshot.data.data();
            return Text("Name: ${data['name']}");
          }

          return Text("loading");
        },
      ),
    );
  }
}

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel dev, 1.22.0-9.0.pre, on Mac OS X 10.15.5 19F101, locale en-TR)
    • Flutter version 1.22.0-9.0.pre at /Users/leventkantaroglu/Development/flutter
    • Framework revision 7a43175198 (13 days ago), 2020-08-28 23:18:04 -0400
    • Engine revision 07e2520d5d
    • Dart version 2.10.0 (build 2.10.0-73.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/leventkantaroglu/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1

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

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.0.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

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

[✓] Connected device (3 available)
    • macOS (desktop)  • macos      • darwin-x64     • Mac OS X 10.15.5 19F101
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.10.0-73.0.dev
Flutter SDK 1.22.0-9.0.pre
flutter_desktop_macos 1.0.0+1

dependencies:
- cloud_firestore 0.14.0+2 [flutter meta quiver firebase_core firebase_core_platform_interface cloud_firestore_platform_interface cloud_firestore_web]
- cupertino_icons 0.1.3
- firebase_core 0.5.0 [firebase_core_platform_interface flutter quiver meta firebase_core_web]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]

dev dependencies:
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- async 2.5.0-nullsafety [collection]
- boolean_selector 2.1.0-nullsafety [source_span string_scanner]
- characters 1.1.0-nullsafety.2
- charcode 1.2.0-nullsafety
- clock 1.1.0-nullsafety
- cloud_firestore_platform_interface 2.0.1 [flutter meta collection firebase_core plugin_platform_interface]
- cloud_firestore_web 0.2.0+1 [flutter flutter_web_plugins firebase http_parser meta firebase_core cloud_firestore_platform_interface js]
- collection 1.15.0-nullsafety.2
- fake_async 1.1.0-nullsafety [clock collection]
- firebase 7.3.0 [http http_parser js]
- firebase_core_platform_interface 2.0.0 [flutter meta plugin_platform_interface quiver]
- firebase_core_web 0.2.0 [firebase firebase_core_platform_interface flutter flutter_web_plugins meta js]
- flutter_web_plugins 0.0.0 [flutter characters collection meta typed_data vector_math]
- http 0.12.2 [http_parser path pedantic]
- http_parser 3.1.4 [charcode collection source_span string_scanner typed_data]
- js 0.6.2
- matcher 0.12.10-nullsafety [stack_trace]
- meta 1.3.0-nullsafety.2
- path 1.8.0-nullsafety
- pedantic 1.9.0
- plugin_platform_interface 1.0.2 [meta]
- quiver 2.1.3 [matcher meta]
- sky_engine 0.0.99
- source_span 1.8.0-nullsafety [charcode collection path term_glyph]
- stack_trace 1.10.0-nullsafety [path]
- stream_channel 2.1.0-nullsafety [async]
- string_scanner 1.1.0-nullsafety [charcode source_span]
- term_glyph 1.2.0-nullsafety
- test_api 0.2.19-nullsafety [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0-nullsafety.2 [collection]
- vector_math 2.1.0-nullsafety.2

Hi @kaiserleka,
Can you create a fresh Flutter project and try below steps to see if it works ?

Setup a default Flutter project.
Add cloud_firestore and firebase_core to pubspec.yaml.
Create a project in Firestore. Create a collection. Create a single simple document in that collection.
Follow the instructions at https://firebase.flutter.dev/docs/installation/macos to install GoogleService-Info.plist file.
Initialize Firebase, following the FutureBuilder / Stateful example here: https://firebase.flutter.dev/docs/overview/#initializing-flutterfire
Add import 'package:cloud_firestore/cloud_firestore.dart';
Use your code sample provided above.
Run app and see if you still get same error ?

Thanks.

Hi @kaiserleka,
Can you create a fresh Flutter project and try below steps to see if it works ?

Setup a default Flutter project.

I have created a new Flutter project and enabled desktop support.

Add cloud_firestore and firebase_core to pubspec.yaml.

I have added both of that packages to pubspec.yaml

Create a project in Firestore. Create a collection. Create a single simple document in that collection.

I have created new Firestore project and created a collection named "testCollection"

Follow the instructions at https://firebase.flutter.dev/docs/installation/macos to install GoogleService-Info.plist file.

4.1 I have name my named my project

Initialize Firebase, following the FutureBuilder / Stateful example here:
https://firebase.flutter.dev/docs/overview/#initializing-flutterfire

I have located that stateful example onto my main.dart. When I run it, it works
import 'package:flutter/material.dart';
// Import the firebase_core plugin
import 'package:firebase_core/firebase_core.dart';
import 'package:cloud_firestore/cloud_firestore.dart';

void main() {
  runApp(MaterialApp(home: App()));
}

class App extends StatefulWidget {
  _AppState createState() => _AppState();
}

class _AppState extends State<App> {
  // Set default `_initialized` and `_error` state to false
  bool _initialized = false;
  bool _error = false;

  // Define an async function to initialize FlutterFire
  void initializeFlutterFire() async {
    try {
      // Wait for Firebase to initialize and set `_initialized` state to true
      await Firebase.initializeApp().catchError((e) => print(e));
      setState(() {
        _initialized = true;
      });
    } catch (e) {
      // Set `_error` state to true if Firebase initialization fails
      print(e);
      setState(() {
        _error = true;
      });
    }
  }

  @override
  void initState() {
    initializeFlutterFire();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    // Show error message if initialization failed
    if (_error) {
      print("_error : " + _error.toString());
      return Scaffold(
        body: Center(
          child: Text("Error: " + _error.toString()),
        ),
      );
    }

    // Show a loader until FlutterFire is initialized
    if (!_initialized) {
      return Scaffold(
        body: Center(
          child: CircularProgressIndicator(),
        ),
      );
    }
    return Scaffold(
      body: Center(
        child: Text("initialized"),
      ),
    );
  }
}

Add import 'package:cloud_firestore/cloud_firestore.dart';

I have added

Use your code sample provided above.

I have updated my code with firestore. Event I run Firebase.initializeApp(), it says "[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()"
import 'package:flutter/material.dart';
// Import the firebase_core plugin
import 'package:firebase_core/firebase_core.dart';
import 'package:cloud_firestore/cloud_firestore.dart';

void main() {
  runApp(MaterialApp(home: App()));
}

class App extends StatefulWidget {
  _AppState createState() => _AppState();
}

class _AppState extends State<App> {
  // Set default `_initialized` and `_error` state to false
  bool _initialized = false;
  bool _error = false;

  // Define an async function to initialize FlutterFire
  void initializeFlutterFire() async {
    try {
      // Wait for Firebase to initialize and set `_initialized` state to true
      await Firebase.initializeApp().catchError((e) => print(e));
      setState(() {
        _initialized = true;
      });
    } catch (e) {
      // Set `_error` state to true if Firebase initialization fails
      print(e);
      setState(() {
        _error = true;
      });
    }
  }

  @override
  void initState() {
    initializeFlutterFire();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    // Show error message if initialization failed
    if (_error) {
      print("_error : " + _error.toString());
      return Scaffold(
        body: Center(
          child: Text("Error: " + _error.toString()),
        ),
      );
    }

    // Show a loader until FlutterFire is initialized
    if (!_initialized) {
      return Scaffold(
        body: Center(
          child: CircularProgressIndicator(),
        ),
      );
    }
    CollectionReference users =
        FirebaseFirestore.instance.collection('testCollection');
    return Scaffold(
      body: Center(
        child: Column(children: [
          Text("initialized"),
          Divider(),
          FutureBuilder<DocumentSnapshot>(
            future: users.doc("testDocument").get(),
            builder: (BuildContext context,
                AsyncSnapshot<DocumentSnapshot> snapshot) {
              if (snapshot.hasError) {
                print(snapshot.error.toString());
                return Text(snapshot.error.toString());
              }

              if (snapshot.connectionState == ConnectionState.done) {
                Map<String, dynamic> data = snapshot.data.data();
                return Text("Value: ${data['testField']}");
              }

              return Text("loading");
            },
          ),
        ]),
      ),
    );
  }
}

@kaiserleka,
Since firebase_core is the first and foremost important plugin after migration, initializing it is the first step to integrate firebase in your app. You can do that inside main() method itself, like below and see if it works for you.
void main() async {
  await Firebase.initializeApp();
  runApp(MyApp());
}

@kaiserleka,
Since firebase_core is the first and foremost important plugin after migration, initializing it is the first step to integrate firebase in your app. You can do that inside main() method itself, like below and see if it works for you.
void main() async {
  await Firebase.initializeApp();
  runApp(MyApp());
}

I'm getting : [core/not-initialized] Firebase has not been initialized. Please check the documentation for your platform.
bool isFirebaseReady = true;
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp().catchError((e) {
    isFirebaseReady = false;
    print(e);
  });
  runApp(MaterialApp(home: App()));
}

Why I can't find any complete Flutter Firestore Macos project :(

@kaiserleka - is your macos app in App Sandbox mode, and if so, did you add the com.apple.security.network.client entitlement?

@kaiserleka - is your macos app in App Sandbox mode, and if so, did you add the com.apple.security.network.client entitlement?

I have also added this to entitlement files but still getting : [core/not-initialized] Firebase has not been initialized. Please check the documentation for your platform.
<key>com.apple.security.network.client</key>
<true/>

My apologies, my comment wasn't very helpful without additional context. I don't know why you are getting the Firebase has not been initialized. error. I tried looking through your code, but I'm pretty new to Flutter and wasn't able to spot the issue.
My comment about the entitlement was to address your original problem, which was that you were getting an error message about cloud_firestore being unavailable.
That said, here is a main.dart file that successfully connects to Firestore for me on macos. I imagine all the other setup (pubspec, entitlements, etc is now similar to mine so I won't paste it all).
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:cloud_firestore/cloud_firestore.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.

  @override
  Widget build(BuildContext context) {
    return FutureBuilder(
        // Initialize FlutterFire:
        future: Firebase.initializeApp(),
        builder: (context, snapshot) {
          // Check for errors
          if (snapshot.hasError) {
            return const Text("Error", textDirection: TextDirection.ltr);
          }
          if (snapshot.connectionState == ConnectionState.done) {
            return MaterialApp(
              title: 'Flutter Demo',
              theme: ThemeData(
                primarySwatch: Colors.blue,
                visualDensity: VisualDensity.adaptivePlatformDensity,
              ),
              home: MyHomePage(title: 'Flutter Demo Home Page'),
            );
          }
          return const Text("Loading", textDirection: TextDirection.ltr);
        });
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: StreamBuilder(
          stream: FirebaseFirestore.instance.collection('mycollection').snapshots(),
          builder: (context, snapshot) {
            if (!snapshot.hasData) return const Text('Loading');

            return ListView.builder(
                itemExtent: 80,
                itemCount: snapshot.data.documents.length,
                itemBuilder: (context, index) => ListTile(
                        title: Row(
                      children: [
                        Expanded(
                          child: Text(
                              snapshot.data.documents[index].data().toString()),
                        )
                      ],
                    )));
          }),
    );
  }
}

That said, here is a main.dart file that successfully connects to Firestore for me on macos. I imagine all the other setup (pubspec, entitlements, etc) is now similar to mine so I won't paste it all.

Could you share those files and related macos files just in case? Your dart code still giving that error @evanpon

I created a new project from scratch, and made the (I think) minimum changes to make it work for Firestore. You can see the repo and look at the commits here: https://github.com/evanpon/macos_firestore. The one piece it doesn't have is the GoogleService-Info.plist file, since you'll need that from your own project.

I'm also looking for a solution to this error. In my case I get it only when my device (Android) is offline.

Anyone found a solution for this. I have been trying for the last two days and couldnt find a solution.

[cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.
Steps to reproduce
it happened recently.
google products always have annoying bugs

Same here.
Used to work like a charm but not anymore.
await Firebase.initializeApp();
await authService.signinAnonymously(); // OK
var documentSnapshot =  await FirebaseFirestore.instance.collection('user').doc(deviceId).get();  // HANG
after 10 seconds or so:
The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.

Same error on iOS 14 physical device. Anyone found a solution ?

Similar issue on macos: Resource temporarily unavailable

Same issue on macos with firebase_core 0.5.1 and cloud_firestore 0.14.2

Adding the network client entitlement fixed my issue (com.apple.security.network.client). I'm guessing that App Sandbox mode is the default for macos Flutter apps, so this step should probably be added to the documentation.

Hi, same error here, on physical Android devices. Firestore client throws same error randomly.
[cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.

firebase_core: 0.5.1
cloud_firestore: 0.14.2

In my case, a network connection of those devices were active. In addition, I already implemented a retry process using the exponential backoff algorithm. However, this issue is not resolved.

Same here. My app was working fine until about 2 weeks ago, and now I'm getting that error about 70% of the times I try and start the app

Make sure that in your android/build.gradle there is classpath 'com.google.gms:google-services:4.3.3'
Emphasis on the version. Took me the whole day

The same is happening here https://github.com/FirebaseExtended/flutterfire/issues/2753
Sadly, it is almost impossible to work with Flutter and Firebase.

Any solution on this?

I also encountered this problem, but the issue has been resolved a few days back on one of my devices.
@Ehesp I would like to confirm that this issue was not limited to FlutterFire, native Android Firebase Apps were not working as well.
I was in contact with Firebase Support, they told me that there are some issues with ISPs on which they are working to get them resolved.
For me, things are working fine now, but once in a couple of weeks, I still face this issue for 5-10 mins. And, I have noticed that when this issue occurs, even YouTube takes a long time in loading.

@nelstein do you mean, as opposed to 4.3.4, or to 3.x?
I am also being hit hard by this error.

I downgraded to   cloud_firestore: 0.13.6
And it started working

I have the same error in one user in production. It's totally inappropriate behavior.

Facing this issue too, but only on ios simulator

[cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.

Keeps happening...!! what is going on ?

https://github.com/FirebaseExtended/flutterfire/issues/3521#issuecomment-723031748
Since last December 24, the same error suddenly stopped occurring. I have not made any configuration changes or upgraded any packages. Therefore, for reasons unknown, my Sentry client has gone quiet. What about you?

https://github.com/FirebaseExtended/flutterfire/issues/3521#issuecomment-723031748
Since last December 24, the same error suddenly stopped occurring. I have not made any configuration changes or upgraded any packages. Therefore, for reasons unknown, my Sentry client has gone quiet. What about you?

@iktakahiro
I had the issue also being solved on its own. The problem is that it's still appearing here and there which is super annoying.
It's not really explainable what the reason could be, right?

@iktakahiro
I had the issue also being solved on its own. The problem is that it's still appearing here and there which is super annoying.
It's not really explainable what the reason could be, right?

I have this issue with some users but not all. Still no fix?

I have this issue with some users but not all. Still no fix?

I have the same issue with cloud_firestore 0.16.0
This is my first time using cloud firestore, and just want to do very simple tasks(add, get) but it doesn't work. Cloud Firestore seems to be not so reliable.

I have the same issue. Same code working fine most of the time. One or two times it throws this error. Any solution for this?

Just started getting this on ipad.

Make sure that in your android/build.gradle there is classpath 'com.google.gms:google-services:4.3.3'
Emphasis on the version. Took me the whole day

Thanks a lot! I updated to 4.3.4

I just got the error in @zzterrozz comment suddenly. So I tried everything that 'maybe' solved this problem, and it works. I hope someone get rescue by this rambling solutions:

Execute rm -rf ios/Podfile ios/Podfile.lock pubspec.lock ios/Pods && flutter clean && flutter pub get
Change second line in ios/Podfile : platform :ios, '10.0' (no '#')
pubspec.yaml :

# ...
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0

  firebase_core: ^0.7.0
  cloud_firestore: ^0.16.0+1
  firebase_auth: ^0.20.1
  firebase_crashlytics: ^0.4.0+1
  firebase_storage: ^7.0.0
  firebase_messaging: ^8.0.0-dev.15
  firebase_analytics: ^7.0.1

  intl: ^0.16.0
  equatable: ^2.0.0
  url_launcher: ^6.0.2
  device_info: ^2.0.0
  shared_preferences: ^2.0.3
  fluttertoast: ^7.1.8
  provider: ^5.0.0
  flutter_html:
  dio:
  html: 0.14.0

# ...

Today morning I upgraded to flutter 2.0. So I thought maybe it would the cause. So I tried to upgrade every firebase-related dependencies to 'null-safety version (e.g. 1.0.0)'. but it doesn't work so re-downgraded all.

flutter doctor -v

[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H15 darwin-x64, locale ko-KR)
    • Flutter version 2.0.1 at /usr/local/Caskroom/flutter/2.0.1/flutter
    • Framework revision c5a4b4029c (3 days ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/roeniss/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/roeniss/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/roeniss/Library/Android/sdk
    • Java binary at: /Users/roeniss/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6626763/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Users/roeniss/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6626763/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
    • IntelliJ at /Users/roeniss/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.54.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • iPhone 11 Pro Max (mobile) • A09F8BAA-5C6A-40E7-A3D1-BACED0EB2DBC • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 88.0.4324.192

• No issues found!

Created and used another simulator.
Every time I tried something, I fully quitted/deleted my debug app.

If someone need more information about my settings, please mention me. I'll gladly responded to you.

Cold restarting my flutter emulator solved it for me.
This can be done by setting "cold restart" in Android studio, see here: https://stackoverflow.com/questions/49949818/firebaseinstanceid-token-retrieval-failed-service-not-available

This happened to me too, but it only happened if I use release buildType, if I use debug, it works fine. It fixed after rebuilding a couple of times

That error might occur whenever device is offline and there is no data inside firestore local cache. And accordingly to firebase sdk developers, it is the normal behaviour.
So, try to wrap get calls in a try/catch, handle the failure normally and you should be fine.

@vhmolinar thanks! Can you share a link to where firebase SDK developers state that, or maybe some example code about how to work around / handle this failure, please? We're seeing this error occasionally on production / release and do not know how to work around it yet. Thanks a lot!

Moving to discussions as this isn't an issue with FlutterFire itself. Let's continue 'discussions' there.


Uploaded the new logo for website

Issue that this pull request solves
Closes: #85
Proposed changes
Brief description of what is fixed or changed
Uploaded the logo I created into the assets folder.
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[x] Other (please describe): Upload logo

Checklist
Put an x in the boxes that apply

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] My changes do not break the current system and it passes all the current test cases.

Screenshots
Example:

Other information
Any other information that is important to this pull request

This PR is for DWOC Thank you!


[release-1.21] Bump helm.sh/helm/v3 from 3.14.1 to 3.14.2

Please provide a description of this PR:
#49497 was a dependabot PR  to move up from helm 3.14.1. This branch has helm 3.13 which seems to have a
CVE:  https://vuldb.com/?id.253906 which wants one to move to 3.14.1 but that has the CVE noted meaning meaning we should also move to 3.14.2.

IMO, there's no real change, but will save people from cve alert. it's good to merge this before release.


Update env var docs to mention InstallationConfig

Update env var docs to user super admin panel to be used for variables migrated to GlobalConfig

Fixes https://github.com/chatwoot/chatwoot/issues/3674


feat: support 2kHz ASC files with floating-point timestamps

Description
EyeLink's edf2asc CLI has an option -ftime that will output timestamps as floating point numbers. For 2000Hz recordings, this avoids issue #688, except that parse_eyelink() doesn't support floating-point timestamps. This PR adds this support.
Related to issue #688 (doesn't fix it, but might make it redundant?)
Implemented changes
Insert a description of the changes implemented in the pull request.

[x] Add floating point digits to regex patterns in parsing.py
[x] Use Float64 dtype instead of Int64 for timestamps in DataFrames. (Note that for <= 1000Hz, the timestamps will still be converted back to Int64 when calling from_asc(), so there is no change of behavior for from_asc() with other sampling rates.)
[x] Necessary int→float conversions to make the type checker happy.

Type of change

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

How Has This Been Tested?

[x] Added a test case to asc_test.py::test_from_asc_has_shape_and_schema with a new test file eyelink_monocular_2khz_example.asc (created by hand)
[x] Tested locally with a real ASC file generated with edf2asc -ftime

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

hi @saeub thank you for the great contribution, just one minor comment above.


Headers not showing on IE11

It seems that even after the last fix on this function, the headers are not showing on IE. Looking into debug, it seems that the actual headers are located in
response.headers.map and the code below just ignores it:
headers: Array.from(res.headers).reduce((res, pair) => {
    res[pair[0]] = pair[1]
    return res
  }, {})

The solution i found is to check if the property map exists and if so, i get the headers from there using Object.keys. If theres no map property, i use the array.from like above.
It works like a charm now


fatal: could not create leading directories of '/opt/homebrew/Library/Taps/wix/homebrew-brew': Permission denied

Do you not get this?
Homebrew bundle...
Tapping wix/brew
==> Tapping wix/brew
fatal: could not create leading directories of '/opt/homebrew/Library/Taps/wix/homebrew-brew': Permission denied
Error: Failure while executing; `git clone https://github.com/wix/homebrew-brew /opt/homebrew/Library/Taps/wix/homebrew-brew --origin=origin --template= --config core.fsmonitor=false` exited with 128.
Tapping wix/brew has failed!
Warning: 'applesimutils' formula is unreadable: No available formula with the name "applesimutils".

Can you tell how did you fix it?

Ahhh I figured it out, you're not using nix-homebrew but rely on homebrew independently installed. I was using nix-homebrew because of which the confusion. This approach is actually really much cleaner. I struggled alot with nix-homebrew.
Perhaps this process can be documented in a readme.


define-pass should work with a language with no nonterminals.

For testing purposes it is useful to be able to define a language as:
(define-language L)
and a pass as:
(define-pass test-pass : L (x) -> L ())
Right now this produces:
Exception in define-pass: unrecognized non-terminal #f

Issue moved to new repository: nanopass/nanopass-framework-scheme


Robust and ClueWeb Training Data

Hi Hamed,
Thanks a lot for your advanced work~ I plan to reproduce your paper. Could you please offer some ideas about how to get Robust and ClueWeb data except download from TREC... I don't find them in web..
Thanks a lot
Yaao

In the case of robust04, I believe NIST has removed any restrictions on distributing it. You could extract the raw documents from the robust index linked to in the Anserini Colab demo.


Add short command aliases to improve user experience and efficiency

Description of the new feature / enhancement
I propose adding short command aliases to winget-cli to enhance user experience and improve efficiency for frequent users. This feature would allow users to execute common winget commands using abbreviated versions of both the main command and its subcommands.
Currently, users need to type out full commands like:
winget install -e --id Git.Git

With the proposed feature, users could instead use shorter aliases like:
wg i -e --id Git.Git

This enhancement would:

Reduce typing effort for frequent users
Improve command memorability
Align winget more closely with other popular CLI tools that offer similar shortcuts
Maintain full backward compatibility with existing long-form commands

Proposed alias examples:

winget -> wg
install -> i
search -> s
list -> l
upgrade -> u
uninstall -> rm

Proposed technical implementation details

Implement an alias mapping system that translates short commands to their full equivalents.
Add a configuration file (e.g., winget-aliases.json) where users can define custom aliases.
Modify the command parser to check for aliases before processing the full command.
Update the help documentation to include information about aliases and how to use them.
Optionally, add a new command like winget alias to manage custom aliases directly from the CLI.

This feature would make winget more user-friendly while maintaining its current functionality and compatibility. It would be particularly beneficial for power users and those who frequently use winget in scripts or daily workflows.

winget -> wg
install -> i
search -> s
list -> l
upgrade -> u
uninstall -> rm

Some of these are already taken:

-a,--architecture - Select the architecture
-e,--exact - Find package using exact match
-h,--silent - Request silent installation
-i,--interactive - Request interactive installation; user input may be needed
-l,--location - Location to install to (if supported)
-o,--log - Log location (if supported)
-r,--rename - The value to rename the executable file (portable)
-s,--source - Find package using the specified source
-v,--version - Use the specified version; default is the latest version

uninstall -> rm

This one already exists. winget <command> --help would show you all aliases available, but most of them aren't short like rm

The primary command "winget" isn't something we would likely shorten in the "CLI", but the PowerShell Module can have shorter aliases for cmdlets.
The auto-completion feature can also save typing in the CLI, and PowerShell already has a notion of this.

There do already exist short aliases for some of these, as @mdanish-kh mentioned. Specifically,

install => add
list => ls
uninstall => rm

The one character aliases could be very confusing to new users - i could be for import or install; s could be for show, search, source, or settings


Calling dataTable.openWebSocket multiple times causes user-added handlers to get called multiple times

To reproduce:

Create a data table object dataTable
Create a handler logHandler that logs the received message
Add the handler to the data table (dataTable.addWebSocketHandler(logHandler))
Call dataTable.openWebSocket() twice
Observe that logHandler was called twice with the same message

@daishiflux for review


opa response set in the http response to the client when the request isn't allowed

The response from Opa is set in the response to the client with the response isn't allowed. While this is useful when developing and debugging in a production system this can lead to a leak of policy and data details to a bad actor.
An example of such responses is {"result":{"allow":false,"cert":[],"customer_id":"<redacted>"}}

Hey @eshepelyuk let's do that, I don't want to wait too long to have this reviewed since as it stands isn't safe to use in production (unless you get your contributor powers back)

Thanks for the PR, when the review comments are addressed we can merge and release a new version.... For me the main showstopper is the README formatting, once that's fixed we can release.

@blagerweij @eshepelyuk Hopefully we can merge this soon so that I can remove my forks from the traefik public archive in favour of this. As I mentioned, we considered this critical for our production system to protect opa policy details.


HMI ros node service running at localhost:8887
Failed to start HMI.
Traceback (most recent call last):
File "modules/hmi/web/hmi_main.py", line 23, in
import handlers
File "/apollo/modules/hmi/web/handlers.py", line 27, in
import config
File "/apollo/modules/hmi/web/config.py", line 26, in
import modules.hmi.proto.config_pb2 as config_pb2
ImportError: No module named modules.hmi.proto.config_pb2
michah@in_dev_docker:/apollo$ ^C

Make sure you run
bash apollo.sh build


Please invite me to the GitHub Community Organization

Name
Jyotsna
Discord Username (if applicable)
erbium#8368
Additional Context
I would like to be part of this awesome community and contribute to it.

It's great having you contribute to this project
If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord Server and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.

Invitation sent for the GitHub Organisation. Welcome to the community 🎉#
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/jaidevstudio/people
Like this

Tips for practising:
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps

Please check your email or organisation page 🙏


[Feature] Add the ability to choose displayed range for the Chart widget

The chart widget currently chooses ranges intelligently based on the data itself. Users may have use cases where they would like to visualize their data for a specific range. We should add optional min and max values for both the axes to support this.

@nidhi-nair can you add a few more details here? I believe we show all the data today, maybe the data is getting cut and the user needs to enable horizontal scroll?

Control the X and Y axis so that you can control the exact length/height of the exis even when data might not exist for the entire range
Ensure X and Y range for all charts are the same so that stuff looks consistent

This can be achieved today using the custom charts config
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/chart-limits


Specify folder for git clone in compile-pytorch-ipex.sh; update IPEX pin

Closes #2651

Closes #2651

The change LGTM, but it doesn't resolve the problem reported by #2651.

@Stonepia just to clarify, did you made force push to dev/triton-test-3.0 branch? https://github.com/intel/intel-extension-for-pytorch/commit/15ef7db18b0a50101b41d9c78780d35ea7937ffc looks similar to the previous that we use.

@whitneywhtsang could you try with the last change?

@whitneywhtsang could you try with the last change?

It passes the reported problem, it is at the step [ 74%] Built target dnnl_gpu_ocl for a while, will reply again when it works e2e.

[ 74%] Built target dnnl_gpu_jit
make: *** [Makefile:136: all] Error 2
Traceback (most recent call last):
  File "/home/jovyan/intel-xpu-backend-for-triton/.scripts_cache/intel-extension-for-pytorch/setup.py", line 1168, in <module>
    setup(
  File "/home/jovyan/.conda/envs/python-3.12/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Oh sorry for that. Yes we made a force push to the dev/triton-test-3.0 branch, because there is a token leak, that should be our fault. We will fix that.

Hi @Stonepia,
thanks for confirming! Don't worry, it's not that bad. I was able to build code with PTDB, even with python 3.12.

[ 74%] Built target dnnl_gpu_jit
make: *** [Makefile:136: all] Error 2
Traceback (most recent call last):
  File "/home/jovyan/intel-xpu-backend-for-triton/.scripts_cache/intel-extension-for-pytorch/setup.py", line 1168, in <module>
    setup(
  File "/home/jovyan/.conda/envs/python-3.12/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@whitneywhtsang I can't reproduce that problem. If it's still there, I guess we can continue in a separate thread.

Well, this is kind of expected, our IPEX branch doesn’t involve working with 2025 compiler, or I missed something?

Make sense, verified it works for me with PTDB.


Pull from production branch before running schedules

This is actually tricky in the Github case. Currently all user git interactions are managed through OAuth, which should only really be done under the guise of a users action as it is on their behalf.
As this is an asynchronous offline operation, we should use a Github App instead, that can act as Dataform itself. We don't currently have the right workflows in place to set this up for a project and would need to implement that first.


Add Hashable to EpochNo and EpochLength

Used in ouroboros-consensus

It seems there's a typo in the commit message: it says EpochLength instead of EpochSize. Do you mind amending that commit and fixing the message?

Closing this PR, as per discussion at https://input-output-rnd.slack.com/archives/CCZSDE005/p1578668295031700


fix #1149 trailing icon position

[ ] Doesn't actually do anything if the icon is an icon button. Only adjusts the padding if the icon is just an icon. Examples below:

In React, if you use this code it works:

<GoAInput
  name=""
  value=""
  onChange={noop}
  type="text"
  trailingIcon="finger-print"
>

But if you use this code, it doesn't:
<GoAInput
  trailingIcon="finger-print"
  name=""
  value=""
  onChange={noop}
  type="text"
  onTrailingIconClick={noop}
/>

Also @twjeffery. should the leadingIcon also have this extra padding?

@ArakTaiRoth I don't know what the padding is exactly from your screenshots, but it looks correct. I've attached the specs from design for leading and trailing icons within an input.

The commit message will still need to follow the fix: convention to trigger npm releases

:tada: This PR is included in version 4.0.0-alpha.167 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.204 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-alpha.18 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.4.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.13.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.5.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.13.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Wheel build action

Adds Github action to invoke cibuildwheel to generate python wheels.
Fixes #666
Summarize your change.
Adds github action, pyptoject.toml to specify needed dependencies for that action, and refactors setup.py to properly leverage the newly cleaned up cmake builds (reworked in #837).
Left to do:

[ ] Get Windows wheels working
[ ] Get community help testing the new wheels in a variety of environments

Codecov Report

Merging #955 (187b008) into master (846bfb1) will decrease coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #955      +/-   ##
==========================================
- Coverage   85.75%   85.63%   -0.12%
==========================================
  Files         191      191
  Lines       18098    18160      +62
  Branches     2046     2061      +15
==========================================
+ Hits        15520    15552      +32
- Misses       2055     2085      +30
  Partials      523      523

Flag
Coverage Δ

unittests
85.63% <ø> (-0.12%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

contrib/opentimelineio_contrib/adapters/rv.py
15.97% <0.00%> (-10.96%)
:arrow_down:

tests/test_serialized_schema.py
92.59% <0.00%> (-7.41%)
:arrow_down:

tests/test_plugin_detection.py
84.12% <0.00%> (-0.19%)
:arrow_down:

tests/test_otiod.py
96.77% <0.00%> (ø)

tests/test_otioz.py
97.95% <0.00%> (ø)

...ntrib/opentimelineio_contrib/adapters/extern_rv.py
0.00% <0.00%> (ø)

...-opentimelineio/opentimelineio/plugins/manifest.py
88.33% <0.00%> (+1.04%)
:arrow_up:

src/opentimelineio/composition.cpp
78.26% <0.00%> (+1.28%)
:arrow_up:

Continue to review full report at Codecov.

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

For windows, I'm pretty certain we need to at least pull:
https://github.com/pybind/cmake_example/blob/6de957d06a372a7b106e5e3b8e29b97a8ec3afc7/setup.py#L10-L15
and:
https://github.com/pybind/cmake_example/blob/6de957d06a372a7b106e5e3b8e29b97a8ec3afc7/setup.py#L73
And replace this:
https://github.com/PixarAnimationStudios/OpenTimelineIO/blob/db9996779cc80bf4268d0c3b2f1f8f80cfd55154/setup.py#L129-L130
@meshula notes:

also see this confusing stuff: https://github.com/PixarAnimationStudios/USD/blob/090ef0d849ced875b3b99a15e454b69148ccd8e1/build_scripts/build_usd.py#L337

Notice that VS2019 and greater has an inconvenient new incompatible syntax.
There's a wodge of code here that detects the species of Visual Studio in the active build environment: https://github.com/PixarAnimationStudios/USD/blob/090ef0d849ced875b3b99a15e454b69148ccd8e1/build_scripts/build_usd.py#L133

this is a pretty substantial change to the setup.py (but one that looks good!). could we break the cmake setup.py stuff out away from the cibuildwheel stuff?

Sure, I could make the first one be "properly target build output from setup.py" and then make the second one be adding the action and publishing the wheel artifacts.

Oh, it also looks like I may have branched from an old commit. I'll rebase and split.

Great, thanks @reinecke.


How to clear a specific vault?

Currently, it is supported to clear all vaults at once. Is it possible to clear a specific vault?

It's not supported yet, but for sure I can implement it in the future.

Implemented in 0.2.3 release. oclearvault


Ad Manager mediation with facebook not working Need Help

I am on windows 11
Plugin Version
pakage google_mobile_ads: ^4.0.0
google mobile ads SDK v22.5.0
Describe the problem
I am trying to add mediation in google admanager with facebook ( Meta ) , I have followed the 2 guides
1 - https://developers.google.com/ad-manager/mobile-ads-sdk/android/mediation/meta
2 - for flutter -> https://developers.google.com/ad-manager/mobile-ads-sdk/flutter/mediation
I have done exact steps , and added dependencies in my app level build.gradle

But the problem is google mobile ads sdk is not able to find any adapter at , i am using ad inspector to inspect it and also using code in flutter to print the status of adapters it also not finding it

and due to this issue only ad manager ads are visible (test and real) , mediation is not working

Flutter Doctor
[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22621.3007], locale en-IN)
    • Flutter version 3.16.9 on channel stable at C:\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (8 days ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Rohan\AppData\Local\Android\Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\Rohan\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2017 15.9.54)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    • Visual Studio Build Tools 2017 version 15.9.33529.398
    • Windows 10 SDK version 10.0.17763.0
    X Visual Studio 2019 or later is required.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.86.0)
    • VS Code at C:\Users\Rohan\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.82.0

Updates:
There is no implementation error on my side, I have verified this by logging the version of the mediation adapter and SDK from the native side at runtime
I don't know why Google mobile ads can't detect the mediation adapter. Is there a step I'm missing 🤔?

Hi @Rohan487, this appears to be related to the mediation network on Android rather than directly related to the google_mobile_ads Flutter plugin.
As an actionable next step, please create a new thread in the AdMob Developers Forum, you can link to this GitHub if you choose, and please include your App ID so your issue can be appropriately triaged. Closing this issue out. Thanks!


Upgrade: Update runtime image on release-2023b based on the commit id d4b8703

Upgrade: Update runtime image on release-2023b based on the commit id d4b8703
As codeflare SDK is upgrade to version 0.14.1

Merging to get the latest images get build :+1:


Include inttypes.h for UINT16_MAX

This fixes some build-breakage:
,----
| sctpassociation.c: In function ‘gst_sctp_association_init’:
| sctpassociation.c:84:22: error: ‘UINT16_MAX’ undeclared (first use in this function); did you mean ‘UINT_MAX’?
|  #define MAX_SCTP_SID UINT16_MAX
`----

Saw the same issue when building on an ARM64 system (Nvidia Xavier). Opened a similar PR #67
@superdump Is anyone still maintaining this project?

@vglavtchev I have merged your PR because it was trivially correct. There is no one maintaining this project anymore, and you should move to something else, such as GStreamer's WebRTC implementation added in 1.14. I blogged about it some months ago too: http://blog.nirbheek.in/2018/02/gstreamer-webrtc.html


Invalid property type: DTS\eBaySDK\Trading\Types\StoreCustomCategoryArrayType::CustomCategory expected <DTS\eBaySDK\Types\UnboundType>, got <DTS\eBaySDK\Trading\Types\StoreCustomCategoryType>

now i'm trying to store custom category to ebay store and i got this error
my code is like this.
`$siteId = Constants\SiteIds::US;
$config = config('configuration');
$service = new Services\TradingService(array(
'apiVersion' => $config['tradingApiVersion'],
'sandbox' => true,
'siteId' => $siteId,
'devId'  => $config['sandbox']['devId'],
'appId'  => $config['sandbox']['appId'],
'certId' => $config['sandbox']['certId']
));
$requests = new Types\SetStoreCategoriesRequestType();
$requests->RequesterCredentials = new Types\CustomSecurityHeaderType();
$requests->RequesterCredentials->eBayAuthToken = $config['sandbox']['userToken'];
$requests->Action = 'add';
$requests->ItemDestinationCategoryID = intval(1);
$requests->DestinationParentCategoryID = intval(0);
$storeCustomCategoryType = new Types\StoreCustomCategoryType();
$storeCustomCategoryType->Name = 'first 1 category testing';
$storeCustomCategoryType->Order = intval(1);
$storeCustomCategory = new Types\StoreCustomCategoryArrayType();
$storeCustomCategory->CustomCategory = $storeCustomCategoryType;
$StoreCategories[] = $storeCustomCategory;
$requests->StoreCategories = $StoreCategories;`
i can't understand this error please reply me with solution.

Ok, I solved. just set unbound from true to false here

There is no need to edit the code. You will need to set it back to 'true'. The CustomCategory field is known in the API as a repeatable field. This means that more than one value can be assigned to it. The SDK treats repeatable fields as arrays.
You can therefore assign values as follows.
$storeCustomCategory->CustomCategory[] = $storeCustomCategoryType;

To be honest this is not explained in the SKD's docs or code.
You may also need to change $requests->StoreCategories = $StoreCategories; to $requests->StoreCategories = $storeCustomCategory; as the StoreCategories field is not repeatable and can only take one value.

i'm set unbound to true tryout about what you give and it work perfectly.
Thank You @davidtsadler .

I've created some gists that show how to use the SDK using the examples from the API docs.
Add eBay store category
Delete eBay store category
Move eBay store category
Move eBay store category to top
Rename eBay store category

i think you have to add this to this package in trading section.
but appreciate for your support. thank you.


This module will be work react js also ?

Actually we are try to do social authentication using react js. But we don't have find correct module for reactJS till now. My question is React native module will be work on react js project ?

No, you should use https://github.com/aws/aws-amplify/tree/master/packages/amazon-cognito-identity-js with Reactjs


question about sheet load

is possible to load a single sheet by sheet name as a table without load the whole file?

No, but you can do it yourself.
https://github.com/ExcelDataReader/ExcelDataReader/issues/201#issuecomment-303347059


Increase buy limit by 20x, from 250K to 5M.

Description:
Requested by #bso-vote (not many votes, but enough to make it worth)

Other checks:

[X] I have tested all my changes thoroughly.

This is not a good idea for other buyable items besides feathers, what we really need is a buy limit system and just assign a big limit to feathers. I started to code it a while ago and it was just an array of transactions (not stored in the db) done, e.g. {user: '12349', item: 1234, quantity: 123, time: timestamp}, and then each item would have like [Time.Hour, 1000] = you can only buy 1000 per hour.


Added leaderboard page

Added leaderboard's page. Backend task is left. Minor UI change in the dropdown of sort by to be taken care of.

Hello @djbarnwal! Thanks for submitting the PR.

In the file kwoc/app.py, following are the PEP8 issues :

Line 5:1: E402 module level import not at top of file
Line 6:1: E402 module level import not at top of file
Line 7:1: E402 module level import not at top of file
Line 13:1: E302 expected 2 blank lines, found 1
Line 51:1: E302 expected 2 blank lines, found 1
Line 64:1: E305 expected 2 blank lines after class or function definition, found 1

Closing in favor of #129. You can push to the stats branch.


[BugFix] Fix bug existing partitions send unnecessary requests to BE

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #18162
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[x] 2.5
[ ] 2.4
[ ] 2.3

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 21 / 21 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ListPartitionInfo.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/catalog/RangePartitionInfo.java
5
5
100.00%
[]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
14
14
100.00%
[]

run all

[FE PR Coverage Check]
:heart_eyes: pass : 21 / 21 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/ListPartitionInfo.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/catalog/RangePartitionInfo.java
5
5
100.00%
[]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
14
14
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

@Mergifyio backport branch-2.5

https://github.com/Mergifyio backport branch-3.0


Added filter push up test

The pushup filter test now matches directly against the physical plan

Closing this for now since we have removed oblivious mode from the public release.


Twillio SMS provider's error codes are not returned properly.

When we configure Twilio SMS provider for SMS OTP and provide a well-formed and invalid phone number, Twilio SMS provider returns a "400 Bad Request"  HTTP Response with the body containing the error code and error message from Twilio.
Currently, we are only returning the response code and reason phrase returned in status line of the HTTP response. As in https://github.com/wso2-extensions/identity-outbound-auth-sms-otp/blob/v2.0.15/component/authenticator/src/main/java/org/wso2/carbon/identity/authenticator/smsotp/SMSOTPAuthenticator.java#L888
context.setProperty(SMSOTPConstants.ERROR_CODE,
httpConnection.getResponseCode() + " : " + httpConnection.getResponseMessage());

This issue faced here is the end user is displayed with a error page without proper information on the actual error occurred as the following.
 TID[-1234] [IS] [2019-03-29 17:25:25,308] ERROR {org.wso2.carbon.identity.authenticator.smsotp.SMSOTPAuthenticator} - Error while sending SMS: error code is 400 and error message is BAD REQUEST

Twilio has a set of error codes and error messages defined and sent in the body with "400 Bad Request" status line. https://support.twilio.com/hc/en-us/articles/223181868-Troubleshooting-Undelivered-Twilio-SMS-Messages.
A sample response will look like this

   <title>400 Bad Request</title>

Bad Request

Error Code

Error Message

We might need to modify the logic to fetch the error code and error message from the body and pass it to the end-user for better useability.
Steps to reproduce :

Setup a SMS OTP with IS-5.6.0 https://docs.wso2.com/display/IS560/Configuring+SMS+OTP#ConfiguringSMSOTP-Configuringtheidentityprovider
Provide the mobile number as "1111111111"
Try to authenticate using SMS OTP

as a further driver, the reason string (which is currently used by IS) is dropped entirely from HTTP/2: https://tools.ietf.org/html/rfc7540#section-<IP_ADDRESS>


Updated the OpenJcePlusTests to FIPS140_3_OpenJCEPlusFIPS or FIPS140_3_OpenJCEPlusFIPS

Signed-off-by: Anna Babu Palathingal<EMAIL_ADDRESS>related:https://github.com/adoptium/aqa-tests/issues/5605

Please provide Grinder links.

Grinder links:
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43177/
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43178/

The test is skipped in both Grinder.

For OpenJcePlusTests, you need to use Semeru build.

Grinder links with Semeru builds
s390x_linux
TEST_FLAG:
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43224/
TEST_FLAG:FIPS140_3_OpenJCEPlusFIPS
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43227/
ppc64le_linux
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43225/testReport/
FIPS140_3_OpenJCEPlusFIPS
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43228/

The PR title has a typo. The two flags are FIPS140_3_OpenJCEPlusFIPS and FIPS140_3_OpenJCEPlusFIPS.FIPS140-3
Please run a Grinder with FIPS140_3_OpenJCEPlusFIPS.FIPS140-3 as well

Grinder link:
FIPS140_3_OpenJCEPlusFIPS.FIPS140-3:-
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/43235/


Produce a fully static build of xeus-sqlite

We should work on producing a fully static build of xeus-sqlite.
One way to do so is to adapt the xeus-python cmake which now has the appropriate options to enable such a build, and other fixes.
A single-binary executable would also be easier to distribute with packaging systems such as PyPI.

add xvega to it.

@SylvainCorlay where can I learn how to do this?
I think I remember you saying something regard me looking xeus-python up?
Thanks!


build: add script for approving public API changes

The Bazel targets for approving public API changes are a little convoluted and hard to remember. These changes add a small script to make it easier to manage. E.g. yarn api:approve material/chips.

Fantastic idea. What would you think of making it yarn approve-api instead?

I'm not attached to the name. I chose it so it's consistent with the ts-circular-deps:approve script right above it.


fix event data naming

ACS callautomation GA release work items:

L160 Adopt EG convetion of using a common EventData suffix
L171 and L172  Rename event processor properties

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Communication.CallAutomation


Uneven distribution of numbers when range is not divisible by 16

To save on network calls, qrng.js requests a block of hexadecimal numbers from ANU. Converting this base-16 number to base-10 results in an uneven distribution of random numbers depending on the requested range. The steps are:

determine the range required (e.g.: getInteger(200, 250) will have a range of 50)
determine how many hexadecimal characters we need to cover that range
get that many hex characters from the qrng cache
convert those hex characters to a base-10 number
add that base-10 number to the minimum range (from the above example, 200)
if the resulting number is greater than the maximum range (from the above example, 250) then subtract to find the excess and add that to the minimum

So suppose we call getInteger(0, 10) to generate a random character between 0 and 9 inclusive. This will extract a single hexadecimal character with a possible value of 0 to 15 inclusive. If the random hexadecimal character has a value of 10-15, then we shift that up such that the value becomes 0-5. This means that for a random base-10 integer between 0 and 9 (generated from a random base-16 number from ANU), you have the following possible outcomes:

base-16 from ANU
generated base-10

0
0

1
1

2
2

3
3

4
4

5
5

6
6

7
7

8
8

9
9

A
0

B
1

C
2

D
3

E
4

F
5

Note that there is a 2/16 chance of selecting a 0-5 vs a 1/16 chance of selecting 6-9
This problem basically resembles this stackoverflow question. We're trying to fit a random number from the bin [0,15] into an [a,b] bin where b - a might not equal 15. I'm not sure if there's some math or bit magic we can use to make this work, but I think we might simply have to resort to caching base-10 integers.

Per a chat with ChatGPT, I've updated the _getRandom() function to include the following changes:
	_getRandom(rangeSize)
	{
		// If rangeSize is 1, we can just return 0
		if (rangeSize == 1) {
			return 0;
		}

+		// Check if the range is a power of 16
+		if (!QRNG._isBase16Compatible(rangeSize)) {
+			console.warn(`QRNG: rangeSize (${rangeSize}) is not a power of 16! This will cause bias towards lower numbers pending a fix.`);
+		}
+
		// Verify that we have enough in the cache to satisfy the range size
		var hexLength = this._rangeToHexLength(rangeSize);
		this._verifyCache(hexLength);

-		var num = this._cachePop(hexLength);
+		var num = this._cachePop(hexLength + 1);

		// Check to see if we got the last number in the cache
		if (this._cache.length == 0)
		{
			this.onCacheEmpty();
			this._isReady = false;
			this._fillCache();
		}

		return num;
	}

This seems to fix the distribution issue in some testing, but I'm not super mathy and can't validate for certain if this is a good fix off the top of my head. I need to do some actual work, but I'll come back to this over the next few days. If this doesn't work, I'm going to explore some possible approaches playing with bits, but I suspect that I'll end up just utilizing a different endpoint for either base-10 numbers or a random stream of bits if ANU offers that.

Some testing indicates that the above fix does seem to have resolved the distribution issue. All ranges return evenly distributed values. I still want to reach out to the math stackexchange to confirm with people who math more than I can math that this is true, but I've got high high hopes

So I reached out to math.stackexchange.com with the following notes:

Adding hex numbers only reduces the bias; it doesn't remove it
In order to remove the bias, we'll essentially need to pull a random hexadecimal number, see if it fits a given range, and try again if it doesn't. Repeat until we get a hex number that fits.
We can reduce the odds that a random hexadecimal doesn't fit the range by increasing the number of hexadecimal numbers pulled each time, although this comes with the caveat that we'll be unnecessarily using up extra data some percentage of the time. Will need to do some testing and maths to see what the optimum number of hexadecimal characters to pull is (minimum, minimum + 1, minimum + 2, etc...)


Gamepad stopped working on recent update

Type
Incorrect behavior
Operating System
Windows
OS Version
10
Bug description
I use a gamepad with the keyboard mapped to it to play runescape on runelite. Always worked no issues. On recent update it stopped doing so. Its 100% runelite because tried it elsewhere and it works, even on runescape normal launcher. Please look into it, thanks.
Screenshots or videos
No response
RuneLite version
lastest
Logs
No response

Temporal fix
Use gamepad program in admin mode

latest is not a valid RuneLite version.
OSRS does not support gamepads natively, so this issue likely lies somewhere with whatever software you're using to make that work.


Add to Travis, Scrutinizer, Composer, etc

@oscarotero I just created this middleware. Can you review it and add to services?
Please and thank you!

I understand the reason of this repo, but not sure if it's a good idea. There's an error-handler middleware with a similar purpose (I know that it's quite improvable). Maybe a better approach is that this middleware extends error-handler, or provide a RequestHandlerInterface to handle json requests.
I say this because I had planned, some day (when I have available time), to split the ErrorHandlerDefault in different ErrorHandlers, so they can be added individually and cover only the content types needed.
The base error handler repository could cover only html and plain errors and additional repositories (like this) would provide other content types, like json, images, xml, etc. That's similar to what we've done with payload and csv-payload
thoughts?

Wow, not sure how I missed that package. I don't think we need to split error-handler into separate packages, but I would like to make some modifications that will allow it to be more extensible.
I'll make a PR.


Add subtitles support

Documentation

How to convert softsub.mkv videos to hardsub.mp4 videos?
I used the following command with shell_exec and it worked:
ffmpeg -i "softsub.mkv" -threads 4 -vcodec libx264 -acodec aac -b:v 400k -pix_fmt yuv420p -map 0:v -map 0:a -map_chapters -1 -preset veryfast -s 640x360 -vf subtitles="softsub.mkv" "360p.mp4"
How do I use php-ffmpeg?

You can follow the doc, converting a video from one format to another one is pretty straightforward.
If you have a specific issue, please file a new one.


Rerun analysis on all dirty files in the workspace?

I was running into some type errors from Rust-Analyzer (missing fields and a missing associated function) that cargo check did not report. I was used to saving the file (in the case, a module using a type from a different crate local to the same workspace) and this would "fix" the diagnostics in RA. However, I now noticed that saving the "using" file is not enough, and I had to save the "definition" file in order for RA to notice the updated type definitions.
It would be nice if, on file save, RA would re-evaluate all changed files in the workspace. This is particularly relevant because of things like changing branches with Git, where a lot of files change at the same time.
This seems to be a recent change in behavior, from maybe a week ago at most.

I don't think anything about this changed recently. Can you provide more detailed reproduction steps?
Note that there are different things here: RA's own analysis, which runs immediately even on unsaved files, and cargo check, which only runs on saved files, whenever you save one. Also, changing branches with git is still a slightly different case because it relies on the editor watching the files and reporting the changes to RA. Missing fields could be reported by RA's own analysis or by cargo check; missing associated functions currently can only come from cargo check. (The diagnostics say rust-analyzer or rustc depending on where the error comes from.)

I don't have any detailed reproduction steps. :( I noticed this issue and it seemed to stick around for one or two days (throughout VS Code window reloads). But then I tried saving the defining file and it went away. I did have a screenshot which I uploaded to GitHub for the issue, but I'm not sure if I can recover that screenshot.

Without a reproduction, I don't think we can do much here :/


Link broken: Easing#back Wolfram plot

Link in Easing.back() docs is broken
https://facebook.github.io/react-native/docs/easing.html#back

Unfortunately it looks like it is gone. Feel free to delete it.


{Packaging} Bump azure-mgmt-datalake-analytics to 1.0.0b2

Description

0.2.1 is not compatible with Homebrew, see #27047.
Only the beta version is compatible.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Packaging

azure-mgmt-datalake-analytics 1.0.0b2 is Track 2. Related code also needs to be migrated.