Conditional probability model notation p(y|f(x))

Hello,
In section 14.1 Introduction of chapter Predictive models: an overview (2023-01-19 version), it is said:
"... learning to predict outputs $y$ from inputs $x$ using some function $f$ that is estimated from a labeled training set.... We can model our uncertainty about the correct output for a given input using a conditional probability model of the form $p(y | f (x))$."
If the output of the function $f(x)$ is $y$, so $p(y | f (x)) = p(y | y)$.
Moreover, in section 14.1.1, the model is noted by $p(y | x)$, which is the correct notation of the conditional probability known as the posterior probability. However, later in this section, the model is defined again by $p(y | x) = p(y | f (x; \theta))$ where $\theta$ is the set of parameters of the models.
The conditional probability (the model/the posterior) should be noted as $p(y=f (x) | x)$. Also, if $f$ is parameterized by $\theta$, we can note the model/posterior as $p(y=f (x; \theta) | x) = p(y | x; \theta)$.
Please let me know if I overlooked something between the lines.
Thank you.
Kind regards,
Amine.

I'm a bit sloppy when it comes to p(y|x) vs f(x) notation. In the classification case, f(x) often returns the logit vector, rather than y itself, in which case p(y|x) = Cat(y | softmax(f(x)). Or maybe f(x) returns the class probabilities, in which case  p(y|x) = Cat(y | f(x). Hope this clarifies things.


[Feature Request]: Making register form for Hostel Management project

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I want to add register page in hostel management project , there is an option to register , but there is no page for registration
Use Case
It would help new customers to join
Benefits
No response
Add ScreenShots
This is the login page , I want to make similar register page

Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[ ] I'm a SSOC'24 contributor
[X] I have starred the repository

@apu52 Please assign it to me

@Maana-Ajmera can u please double check it , I think the register page also exists in the website

yes sorry , it exists , I am closing this issue


Rebasing feature branch onto main branch

What changes were proposed in this pull request?
Rebased onto main branch to get latest changes.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2562/
Test FAILed.
Test FAILured.


Possibility to always show re-exports in the main navigation?

Search terms
re-export, rename, alias, module page, navigation, sidebar
Question
TypeDoc 0.23.28 was always showing re-exports in the sidebar, among all other functions exported by a module.
With TypeDoc 0.26.5, I only see re-exports on the module page - in the grid and in "On this page" menu.
This new behavior is inconvenient - it makes re-exports less discoverable.
When aliases added not for code compatibility but for ease of use, I want to keep them equally discoverable.
Expected usage scenario: user jumps between individual function pages (there are a lot of them), not visiting the module page often.
Is there a way to restore previous behavior?
Looking through the documentation I couldn't find it.

This changed in 0.26.4, the page navigation sidebar was never intended to include links to elements which don't have an individual page, so including the links broke the active page highlighting.
It's an easy enough change to fix the active page highlighting while still including re-exports... I should probably just revert the change to remove them.


not close when clicking mouse.

Ask your Question

Hello, I want to know,
How the modal will not close when clicking outside it. Click the button below to try it?

Hi!
I'm closing this issue because it's a question and not a bug report. Please don't take it personally, I'm just trying to make it easier to maintain this project by separating questions from bug reports 🙏.
If you're still looking for feedback/answers, could you please ask your question in a new discussion?
Thank you!


user12986714: Watch legendshub.com

user12986714 requests the watch of the watch_keyword legendshub\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

legendshub\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Daniil in Charcoal HQ


Configurable reportUnusedDisableDirectives

It gets pretty weird sometimes.

--report-unused , defaults to true
pass --no-report-unused to disable it


[FIX] Update default value of BERTAdam epsilon to 1e-6

Description
This PR updates the default value for eps in the BERTAdam optimizer, so that it is consistent with the official bert repo. Note that a few other fine-tuning scripts are also using this optimizer. The epsilon values in these scripts are all explicitly provided in these scripts and will not be affected. #571 by @kenjewu  #493 by @fierceX  and https://github.com/dmlc/gluon-nlp/blob/master/scripts/bert/finetune_classifier.py by @haven-jeon. @bikestra your ongoing BERT+NER work might be affected.
Checklist
Essentials

[x] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
[x] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage
[x] Code is well-documented

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

Job PR-601/1 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-601/1/index.html


Path Argument Error Message

We have written the needed data into your clipboard beca
Issue Type: Bug
After writing a simple 'Hellow World" Java program, when I try to compile and run the program, an error message appears saying, The 'path' argument must be of type string. Received type object. This error message appears no matter what code is in the program. It even appears if the entire program is commented out, suggesting it isn't a problem with the code itself, but the VSCode software or, more likely, some problem in setting up the Java debugger and compiler.
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:13:11.295Z)
OS version: Windows_NT x64 10.0.18363
Remote OS version: Linux x64 4.4.0-18362-Microsoft

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz (8 x 1498)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.60GB (1.21GB free)

Process Argv
--folder-uri=vscode-remote://wsl+Ubuntu/home/bestell --remote=wsl+Ubuntu

Screen Reader
no

VM
0%

Item
Value

Remote
WSL: Ubuntu

OS
Linux x64 4.4.0-18362-Microsoft

CPUs
Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz (8 x 1498)

Memory (System)
7.60GB (1.21GB free)

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

remote-wsl
ms-
0.44.4

cpptools
ms-
0.29.0

java
red
0.65.0

vscodeintellicode
Vis
1.2.10

vscode-java-debug
vsc
0.28.0

vscode-java-dependency
vsc
0.12.0

vscode-java-pack
vsc
0.10.0

vscode-java-test
vsc
0.24.1

vscode-maven
vsc
0.24.1

use it was too large to send. Please paste.

/extJava


Patching latest lablgtk version

@rtetley : FYI: required changes have been merged upstream in lablgtk, so no patch to lablgtk is required any more. Instead a patch of coqide is required. This should all be fine.

Noted ! I'll close this then


[Stacked Themes] Theme persistence issue

Can you please check if a theme is being saved to local storage on change?
In my case, it remains the same as the first time I run an app, no matter which theme I select later.
I think you should add _sharedPreferences.userThemeMode = _selectedThemeMode to toggleDarkLightTheme() method in theme_manager.dart.

@birkoni5 This should work in v0.2.0 which has the new setThemeMode function that will allow you to set any of the ThemeMode values. light, dark or system.

I am still getting theme persistence issue in version 0.2.2+2. I am using getThemeManager(context).setThemeMode(selectedThemeMode) for changing theme once user select theme from list of three (System, Light and Dark) theme. Can you please let me know what is missing here from my end?
main.dart:
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  FlutterStatusbarcolor.setStatusBarWhiteForeground(true);

  await Firebase.initializeApp();
  await ThemeManager.initialise();

  runApp(MultiProvider(
    providers: [
      // Provider needed by app
    ],
    child: MyApp(),
  ));
}

class MyApp extends StatelessWidget {
  MyApp();

  @override
  Widget build(BuildContext context) {
    return ThemeBuilder(
      defaultThemeMode: ThemeMode.system,
      darkTheme: darkTheme,
      lightTheme: lightTheme,
      statusBarColorBuilder: (theme) => theme.accentColor,
      themes: getThemes(),
      builder: (context, regularTheme, darkTheme, themeMode) {
        return LayoutBuilder(
            //return LayoutBuilder
            builder: (context, constraints) {
          return OrientationBuilder(
              //return OrientationBuilder
              builder: (context, orientation) {
            //initialize SizerUtil()
            SizerUtil().init(constraints, orientation);

            return ProgressDialog(
              orientation: ProgressOrientation.vertical,
              loadingText: "Please wait...",
              backgroundColor: Theme.of(context).backgroundColor,
              child: MaterialApp(
                title: "My App",
                theme: regularTheme,
                darkTheme: darkTheme,
                themeMode: themeMode,
                home: SplashScreen(),
              ),
            );
          });
        });
      },
    );
  }
}

setting_page.dart:
// Calling this method when user selected any of theme from list of theme
void _updateSelectedThemeMode(ThemeMode selectedThemeMode) async {
    // Just gave it a try but no luck
    // getThemeManager(context).toggleDarkLightTheme();

    getThemeManager(context).setThemeMode(selectedThemeMode);
  }

@FilledStacks Guys do you have any idea what's going wrong here. I cross-verified implementation on your blog as well but no luck and unable to figure out exact source of issue.

I am still getting theme persistence issue in version 0.2.2+2. I am using getThemeManager(context).setThemeMode(selectedThemeMode) for changing theme once user select theme from list of three (System, Light and Dark) theme. Can you please let me know what is missing here from my end?
main.dart:
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  FlutterStatusbarcolor.setStatusBarWhiteForeground(true);

  await Firebase.initializeApp();
  await ThemeManager.initialise();

  runApp(MultiProvider(
    providers: [
      // Provider needed by app
    ],
    child: MyApp(),
  ));
}

class MyApp extends StatelessWidget {
  MyApp();

  @override
  Widget build(BuildContext context) {
    return ThemeBuilder(
      defaultThemeMode: ThemeMode.system,
      darkTheme: darkTheme,
      lightTheme: lightTheme,
      statusBarColorBuilder: (theme) => theme.accentColor,
      themes: getThemes(),
      builder: (context, regularTheme, darkTheme, themeMode) {
        return LayoutBuilder(
            //return LayoutBuilder
            builder: (context, constraints) {
          return OrientationBuilder(
              //return OrientationBuilder
              builder: (context, orientation) {
            //initialize SizerUtil()
            SizerUtil().init(constraints, orientation);

            return ProgressDialog(
              orientation: ProgressOrientation.vertical,
              loadingText: "Please wait...",
              backgroundColor: Theme.of(context).backgroundColor,
              child: MaterialApp(
                title: "My App",
                theme: regularTheme,
                darkTheme: darkTheme,
                themeMode: themeMode,
                home: SplashScreen(),
              ),
            );
          });
        });
      },
    );
  }
}

setting_page.dart:
// Calling this method when user selected any of theme from list of theme
void _updateSelectedThemeMode(ThemeMode selectedThemeMode) async {
    // Just gave it a try but no luck
    // getThemeManager(context).toggleDarkLightTheme();

    getThemeManager(context).setThemeMode(selectedThemeMode);
  }

@FilledStacks Guys do you have any idea what's going wrong here. I cross-verified implementation on your blog as well but no luck and unable to figure out exact source of issue.

@bipinvaylu what problem are you having?

What do you want to happen?
What is happening at the moment?

@bipinvaylu what problem are you having?

What do you want to happen?
What is happening at the moment?

@FilledStacks Thanks for quick response.

What do you want to happen?

As per given details on pub.dev and checkout examples, I believe package should manage to save last selected theme mode when i set it using getThemeManager(context).setThemeMode(selectedThemeMode) method call.

What is happening at the moment?

Right now, Seems like this package is not storing last selected theme mode. So always get System/Light theme mode which is my Android device theme as well.

themes.dart
List<ThemeData> getThemes() {
  return [lightTheme, darkTheme];
}

Let me know if you need anything else from me. I am having 2 themes only. Light and Dark.

@FilledStacks Thanks for quick response.

What do you want to happen?

As per given details on pub.dev and checkout examples, I believe package should manage to save last selected theme mode when i set it using getThemeManager(context).setThemeMode(selectedThemeMode) method call.

What is happening at the moment?

Right now, Seems like this package is not storing last selected theme mode. So always get System/Light theme mode which is my Android device theme as well.

themes.dart
List<ThemeData> getThemes() {
  return [lightTheme, darkTheme];
}

Let me know if you need anything else from me. I am having 2 themes only. Light and Dark.

Hi @bipinvaylu
I searched for this kind of thread, because I faced the same issue: the theme would not persist.
The issue can be solved like this:

create your service

ThemeService _themeService = locator<ThemeService>();
..

Use the setThemeMode function to persist the selected theme. I used dark and light themes.

switchTheme(){
    _themeService.toggleDarkLightTheme();
    _themeService.setThemeMode(_themeService.isDarkMode? ThemeManagerMode.dark : ThemeManagerMode.light);
}

Hope it helps,
Cheers!

Hi @bipinvaylu
I searched for this kind of thread, because I faced the same issue: the theme would not persist.
The issue can be solved like this:

create your service

ThemeService _themeService = locator<ThemeService>();
..

Use the setThemeMode function to persist the selected theme. I used dark and light themes.

switchTheme(){
    _themeService.toggleDarkLightTheme();
    _themeService.setThemeMode(_themeService.isDarkMode? ThemeManagerMode.dark : ThemeManagerMode.light);
}

Hope it helps,
Cheers!

Hey @victorbalaban Thanks for solution, I did give it a try but it still not working for me. Please find my code base here:
main.dart: where I am reading persisted theme
ThemeService _themeService = ThemeService.getInstance();
ThemeMode _themeMode = _themeService.isDarkMode? ThemeMode.dark : ThemeMode.light;

return ThemeBuilder(
          defaultThemeMode: _themeMode,
          darkTheme: darkTheme,
          lightTheme: lightTheme,
          ....);

Getting _themeService null in main.dart only.

settings_page.dart: where i am persisting theme selection
ThemeService _themeService = ThemeService.getInstance();
_themeService.toggleDarkLightTheme();
_themeService.setThemeMode(_themeService.isDarkMode? ThemeManagerMode.dark : ThemeManagerMode.light);

I am not sure how to locator would make difference here and had not used locator before. It would be great if you can help me out with bit more details or code sample. Thanks.

@FilledStacks, having this same issue still. Using getThemeManager(context).toggleDarkLightTheme(); and the theme (dark/light) is not persisting upon re-opening the app.
My main.dart looks as follows:
Widget build(BuildContext context) {
    return ThemeBuilder(
      // statusBarColorBuilder: (theme) => theme?.backgroundColor,
      defaultThemeMode: ThemeMode.light, // change to "ThemeMode.system" to get default system theme
      lightTheme: themesList[0],
      darkTheme: themesList[1],
      builder: (context, regularTheme, darkTheme, themeMode) => MaterialApp(
        title: "Confessi",
        theme: regularTheme,
        darkTheme: darkTheme,
        themeMode: themeMode,
        debugShowCheckedModeBanner: false,
        useInheritedMediaQuery: true,
        locale: DevicePreview.locale(context),
        builder: DevicePreview.appBuilder,
        home: const Root(),
      ),
    );
  }

My themes.dart file looks like this:
List<ThemeData> themesList = [
  ThemeData(
    colorScheme: const ColorScheme(
      brightness: Brightness.light,
      primary: Color(0xff333333),
      onPrimary: Colors.white,
      secondary: Color(0xffF6C0F6),
      onSecondary: Color(0xff333333),
      error: Color(0xffEB5353),
      onError: Colors.white,
      background: Colors.white,
      onBackground: Color(0xff595959),
      surface: Color(0xffEBEBEB),
      onSurface: Color(0xff595959),
    ),
  ),
  ThemeData(
    colorScheme: const ColorScheme(
        brightness: Brightness.dark,
        primary: Colors.yellow,
        onPrimary: Colors.orange,
        secondary: Colors.blue,
        onSecondary: Colors.green,
        error: Colors.pink,
        onError: Colors.white,
        background: Colors.indigo,
        onBackground: Colors.black,
        surface: Colors.orange,
        onSurface: Colors.cyanAccent),
  )
];

Any idea what's going on?


Failing with Generic Error message: Failed to obtain stable measurement.

I am testing on the basic models. Model take input and return the same output of same datatype.
Inference is happening:
2024-08-20 09:35:15,923 - INFO - array_final: array([[103]], dtype=uint8)
array_final:  [[103]]
perf_analyzer -m model_equals_b_uint8 --measurement-mode count_windows --measurement-request-count 5 -v
*** Measurement Settings ***
Batch size: 1
Service Kind: TRITON
Using "count_windows" mode for stabilization
Stabilizing using average latency and throughput
Minimum number of samples in each window: 5
Using synchronous calls for inference
Request concurrency: 1
Pass [1] throughput: 478.67 infer/sec. Avg latency: 2059 usec (std 3372 usec).
Pass [2] throughput: 621.713 infer/sec. Avg latency: 1625 usec (std 3008 usec).
Pass [3] throughput: 491.884 infer/sec. Avg latency: 2027 usec (std 13098 usec).
Pass [4] throughput: 18.0441 infer/sec. Avg latency: 54594 usec (std 80657 usec).
Pass [5] throughput: 16.6456 infer/sec. Avg latency: 61007 usec (std 68590 usec).
Pass [6] throughput: 62.8963 infer/sec. Avg latency: 5822 usec (std 7896 usec).
Pass [7] throughput: 16.871 infer/sec. Avg latency: 60256 usec (std 112842 usec).
Pass [8] throughput: 15.6989 infer/sec. Avg latency: 63212 usec (std 110034 usec).
Pass [9] throughput: 15.1902 infer/sec. Avg latency: 65797 usec (std 87972 usec).
Pass [10] throughput: 14.0266 infer/sec. Avg latency: 72140 usec (std 93986 usec).
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-request-count.
Failed to obtain stable measurement.
perf_analyzer -m model_equals_b_uint8 --measurement-mode count_windows --measurement-request-count 50 -v
*** Measurement Settings ***
Batch size: 1
Service Kind: TRITON
Using "count_windows" mode for stabilization
Stabilizing using average latency and throughput
Minimum number of samples in each window: 50
Using synchronous calls for inference
Request concurrency: 1
Pass [1] throughput: 23.4639 infer/sec. Avg latency: 42614 usec (std 182802 usec).
Pass [2] throughput: 141.78 infer/sec. Avg latency: 3437 usec (std 5377 usec).
Pass [3] throughput: 14.8405 infer/sec. Avg latency: 67552 usec (std 97666 usec).
Pass [4] throughput: 12.2003 infer/sec. Avg latency: 82423 usec (std 75027 usec).
Pass [5] throughput: 14.2399 infer/sec. Avg latency: 70712 usec (std 120651 usec).
Pass [6] throughput: 86.8397 infer/sec. Avg latency: 2083 usec (std 2502 usec).
Pass [7] throughput: 22.6803 infer/sec. Avg latency: 45020 usec (std 178493 usec).
Pass [8] throughput: 17.8704 infer/sec. Avg latency: 56233 usec (std 175833 usec).
Pass [9] throughput: 23.0646 infer/sec. Avg latency: 43166 usec (std 148978 usec).
Pass [10] throughput: 18.234 infer/sec. Avg latency: 55330 usec (std 102755 usec).
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-request-count.
Failed to obtain stable measurement.
perf_analyzer -m model_equals_b_uint8 --measurement-mode count_windows --measurement-request-count 75 -v
*** Measurement Settings ***
Batch size: 1
Service Kind: TRITON
Using "count_windows" mode for stabilization
Stabilizing using average latency and throughput
Minimum number of samples in each window: 75
Using synchronous calls for inference
Request concurrency: 1
Pass [1] throughput: 428.863 infer/sec. Avg latency: 2328 usec (std 3510 usec).
Pass [2] throughput: 494.642 infer/sec. Avg latency: 2018 usec (std 3441 usec).
Pass [3] throughput: 308.695 infer/sec. Avg latency: 3156 usec (std 13751 usec).
Pass [4] throughput: 340.429 infer/sec. Avg latency: 1828 usec (std 3966 usec).
Pass [5] throughput: 21.0775 infer/sec. Avg latency: 47814 usec (std 168738 usec).
Pass [6] throughput: 18.7684 infer/sec. Avg latency: 53730 usec (std 65595 usec).
Pass [7] throughput: 16.0608 infer/sec. Avg latency: 62265 usec (std 63152 usec).
Pass [8] throughput: 3.68812 infer/sec. Avg latency: 271139 usec (std 363750 usec).
Pass [9] throughput: 203.656 infer/sec. Avg latency: 4908 usec (std 6825 usec).
Pass [10] throughput: 214.693 infer/sec. Avg latency: 2469 usec (std 3830 usec).
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-request-count.
Failed to obtain stable measurement.
perf_analyzer -m model_equals_b_uint8 --measurement-mode count_windows --measurement-request-count 100 -v
*** Measurement Settings ***
Batch size: 1
Service Kind: TRITON
Using "count_windows" mode for stabilization
Stabilizing using average latency and throughput
Minimum number of samples in each window: 100
Using synchronous calls for inference
Request concurrency: 1
Pass [1] throughput: 423.137 infer/sec. Avg latency: 2331 usec (std 2866 usec).
Pass [2] throughput: 99.6489 infer/sec. Avg latency: 10037 usec (std 135019 usec).
Pass [3] throughput: 253.617 infer/sec. Avg latency: 1639 usec (std 1605 usec).
Pass [4] throughput: 16.316 infer/sec. Avg latency: 62273 usec (std 161047 usec).
Pass [5] throughput: 22.5236 infer/sec. Avg latency: 44084 usec (std 143282 usec).
Pass [6] throughput: 13.3747 infer/sec. Avg latency: 75319 usec (std 81540 usec).
Pass [7] throughput: 15.3824 infer/sec. Avg latency: 65006 usec (std 130209 usec).
Pass [8] throughput: 2.24593 infer/sec. Avg latency: 445246 usec (std 205477 usec).
Pass [9] throughput: 145.757 infer/sec. Avg latency: 2459 usec (std 4845 usec).
Pass [10] throughput: 15.9015 infer/sec. Avg latency: 63902 usec (std 89986 usec).
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-request-count.
Failed to obtain stable measurement.
perf_analyzer -b 1 -m model_equals_b_uint16 -v
*** Measurement Settings ***
Batch size: 1
Service Kind: TRITON
Using "time_windows" mode for stabilization
Stabilizing using average latency and throughput
Measurement window: 5000 msec
Using synchronous calls for inference
Request concurrency: 1
Pass [1] throughput: 264.819 infer/sec. Avg latency: 2428 usec (std 19166 usec).
Pass [2] throughput: 19.249 infer/sec. Avg latency: 45776 usec (std 59715 usec).
Pass [3] throughput: 11.4458 infer/sec. Avg latency: 87830 usec (std 55669 usec).
Pass [4] throughput: 13.7479 infer/sec. Avg latency: 73070 usec (std 177674 usec).
Pass [5] throughput: 16.5643 infer/sec. Avg latency: 59318 usec (std 166888 usec).
Pass [6] throughput: 11.5103 infer/sec. Avg latency: 86986 usec (std 188720 usec).
Pass [7] throughput: 32.5302 infer/sec. Avg latency: 31859 usec (std 184371 usec).
Pass [8] throughput: 23.3457 infer/sec. Avg latency: 42082 usec (std 186189 usec).
Pass [9] throughput: 14.2139 infer/sec. Avg latency: 70781 usec (std 194576 usec).
Pass [10] throughput: 14.5149 infer/sec. Avg latency: 68353 usec (std 190451 usec).
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-interval.
Failed to obtain stable measurement.
Everytime i am getting same generic error message.Though I am increasing the measurement-request-count

@Kanupriyagoyal Can you please provide complete reproduction steps, which includes Trtiton-sdk container version, your server set-up instructions for us to reproduce the issue you are observing?

Using perf_analyzer built from source
RUN git clone https://github.com/triton-inference-server/client -b r24.07
RUN mkdir client/build && \
    cd client/build && \
    cmake -DTRITON_ENABLE_PERF_ANALYZER=ON .. && \
    make -j8 cc-clients

Server : r24.07
loaded multiple models with different data types with batch and non batch to see different datatypes supported with perf analyzer
I0814 14:12:56.254085 68896 server.cc:674]
+-------------------------+---------+--------+
| Model                   | Version | Status |
+-------------------------+---------+--------+
| model_equals_b_bytes    | 1       | READY  |
| model_equals_b_float16  | 1       | READY  |
| model_equals_b_float32  | 1       | READY  |
| model_equals_b_float64  | 1       | READY  |
| model_equals_b_int16    | 1       | READY  |
| model_equals_b_int32    | 1       | READY  |
| model_equals_b_int64    | 1       | READY  |
| model_equals_b_int8     | 1       | READY  |
| model_equals_b_uint16   | 1       | READY  |
| model_equals_b_uint32   | 1       | READY  |
| model_equals_b_uint64   | 1       | READY  |
| model_equals_b_uint8    | 1       | READY  |
| model_equals_nb_bytes   | 1       | READY  |
| model_equals_nb_float16 | 1       | READY  |
| model_equals_nb_float32 | 1       | READY  |
| model_equals_nb_float64 | 1       | READY  |
| model_equals_nb_int16   | 1       | READY  |
| model_equals_nb_int32   | 1       | READY  |
| model_equals_nb_int64   | 1       | READY  |
| model_equals_nb_int8    | 1       | READY  |
| model_equals_nb_uint16  | 1       | READY  |
| model_equals_nb_uint32  | 1       | READY  |
| model_equals_nb_uint64  | 1       | READY  |
| model_equals_nb_uint8   | 1       | READY  |
| model_lightgbm          | 1       | READY  |
| model_string            | 1       | READY  |
+-------------------------+---------+————+
Need check on this also:
https://github.com/triton-inference-server/server/issues/7526

If I want to pass specific data to perf analyzer using --input-data
passing json in this pattern, but getting error :  Failed to init manager inputs: unable to find float data in json.
{"data":
      [
        {
          "IN0":
            {
                "content": [[54.88135039273247, 71.51893663724195, 60.276337607164386, 54.48831829968969, 42.36547993389047, 64.58941130666561, 43.75872112626925, 89.17730007820798, 96.36627605010293, 38.34415188257777, 79.17250380826646, 52.88949197529045, 56.80445610939323, 92.5596638292661, 7.103605819788694], [49.04588086175671, 22.741462797332325, 25.435648177039294, 5.802916032387562, 43.44166255581208, 31.179588199410258, 69.63434888154595, 37.775183929248094, 17.960367755963482, 2.467872839133123, 6.724963146324859, 67.93927734985672, 45.36968445560453, 53.65792111087222, 89.6671293040342]],
                "shape": [2, 15]
            }
        }]}

Would you please give an example how to create json , If I want specific json to be used for perf analyzer without round robin.

@debermudez  I did load and unload of the model in explicit mode, so now one model loaded at a time. Still getting these issues
root@092f07c34488:/home/ibm-user# curl -X POST -v localhost:8000/v2/repository/models/model_equals_b_uint64/load
*   Trying <IP_ADDRESS>:8000...
* Connected to localhost (<IP_ADDRESS>) port 8000 (#0)
> POST /v2/repository/models/model_equals_b_uint64/load HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 0
<
* Connection #0 to host localhost left intact
root@092f07c34488:/home/ibm-user# curl -X POST -v localhost:8000/v2/repository/models/model_equals_b_uint32/unload
*   Trying <IP_ADDRESS>:8000...
* Connected to localhost (<IP_ADDRESS>) port 8000 (#0)
> POST /v2/repository/models/model_equals_b_uint32/unload HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 0
<
* Connection #0 to host localhost left intact
 perf_analyzer -m model_equals_b_uint64
*** Measurement Settings ***
  Batch size: 1
  Service Kind: TRITON
  Using "time_windows" mode for stabilization
  Stabilizing using average latency and throughput
  Measurement window: 5000 msec
  Using synchronous calls for inference

Request concurrency: 1
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-interval.
Failed to obtain stable measurement.

# perf_analyzer -m model_equals_b_uint64
*** Measurement Settings ***
  Batch size: 1
  Service Kind: TRITON
  Using "time_windows" mode for stabilization
  Stabilizing using average latency and throughput
  Measurement window: 5000 msec
  Using synchronous calls for inference

Request concurrency: 1
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-interval.
Failed to obtain stable measurement.

If I want to pass specific data to perf analyzer using --input-data
passing json in this pattern, but getting error : Failed to init manager inputs: unable to find float data in json.

@Kanupriyagoyal  You need to match the input name, type, and shape. Could you share the model config of the model you want to query?

model config.pbtxt
name: "gbm_model"
backend: "python"
max_batch_size: 32
input [
  {
    name: "IN0"
    data_type: TYPE_FP32
    dims: [ 30 ]
  }
]
output [
  {
    name: "OUT0"
    data_type: TYPE_FP64
    dims: [ 1 ]
  }
]

version_policy: { all { }}

instance_group [
  {
    count: 2
    kind: KIND_CPU
  }
]

dynamic_batching {
  max_queue_delay_microseconds: 500
}

input_gbm.json passed
{"data":
      [
        {
          "IN0":
            {
                "content": [17.99,10.38,122.8,1001,0.1184,0.2776,0.3001,0.1471,0.2419,0.07871,1.095,0.9053,8.589,153.4,0.006399,0.04904,0.05373,0.01587,0.03003,0.006193,25.38,17.33,184.6,2019,0.1622,0.6656,0.7119,0.2654,0.4601,0.1189],
                "shape": [30]
            }
        }]}

Running perf analyzer:
perf_analyzer -m gbm_model --service-kind=triton --model-repository=/models -b 1 -u localhost:8001 -i grpc -f gdm_model_1-results.csv  --verbose-csv --concurrency-range 1 --measurement-mode count_windows --input-data input_gbm.json --collect-metrics --metrics-url http://localhost:8002/metrics --metrics-interval 1000
**error: Failed to init manager inputs: unable to find float data in json**

@Kanupriyagoyal Pinged another teammate to investigate more.
Part of the issue is the format of the content.
Looking at the doc here, the tensors need to be flattened in a row-major format. The shape stays as [2,15] however.
Can you give that a shot?

@Kanupriyagoyal any luck?

@Kanupriyagoyal any luck?

Yes by changing the data as flattened in a row-major format it worked for float data, failing with Failed to obtain stable measurement
perf_analyzer -m gbm_model -b 1 -u localhost:8001 -i grpc --input-data input_flatten.json --measurement-interval 10000
 **Successfully read data for 1 stream/streams with 1 step/steps.**
*** Measurement Settings ***
  Batch size: 1
  Service Kind: TRITON
  Using "time_windows" mode for stabilization
  Stabilizing using average latency and throughput
  Measurement window: 10000 msec
  Using synchronous calls for inference

Request concurrency: 1
Failed to obtain stable measurement within 10 measurement windows for concurrency 1. Please try to increase the --measurement-interval.
Failed to obtain stable measurement.

but for string data still facing the error.
Below issue.
https://github.com/triton-inference-server/server/issues/7526

@debermudez would you please suggest for the bytes data . Any example
import numpy as np
import tritonclient.grpc as grpcclient

if __name__ == "__main__":
    inputs = []
    inputs.append(grpcclient.InferInput("IN0", [16], "BYTES"))
    input0_data = np.array(["17", "2", "2007", "6", "30", "16", "15", "0", "5.4", "Swipe Transaction", "-6571010470072147219", "Bloomville", "OH", "44818",  "5499", "Bad PIN"], dtype=np.dtype("bytes"))
    inputs[0].set_data_from_numpy(input0_data)
    print(inputs[0]._raw_content)


client can't reach graphql server

hi,
after following the instructions in the readme I'm getting this:

The graphQL server is running and I can execute the queries as well, but somehow the client can not reach it. I tried it on 2 PCs already.
Any ideas?
thx in advance!

now I'm getting this:

@richardpatsch  I met the same problem that 400 Bad Request from the Graphql server. As the GrapQL error message said  'Your session expired. Sign in again.', that should happened at the following code snippet in the server/src/index.js.
  if (token) {
    try {
      return await jwt.verify(token, process.env.SECRET);
    } catch (e) {
      throw new AuthenticationError(
        'Your session expired. Sign in again.',
      );
    }
  }

and the question is how the null token expected value from token = req.headers['x-token']; can involve the if statement. I try to console.log(req.headers) it and see the result is like { ..., 'x-token': 'null', ...}. You 'token' value is equal to String 'null' not null.

Oh, might be my bad implementation here. Thanks @Azrealy for figuring it out. Can you open a Pull Request for this project which fixes this? :)

@rwieruch Of course, and also I notice one more issue that happened at the following code snippet.
const errorLink = onError(({ graphQLErrors, networkError }) => {
  if (graphQLErrors) {
    graphQLErrors.forEach(({ message, locations, path }) => {
      console.log('GraphQL error', message);

      if (message === 'NOT_AUTHENTICATED') {
        signOut(client);
      }
    });
  }

here will cause a problem when the token expired. Because graphql server will throw the 'Your session expired. Sign in again.' error message, and this won't involve  the if (message === 'NOT_AUTHENTICATED') statement, and I try to fix it through the following modification.
if (message) {
  const token = localStorage.getItem('token')
  if (token) {
     signOut(client);
  }
}

BTW, I create a new branch and fixed those issues but don't have permission to push it.

I think you have to go the official way of making a fork of the project and then opening up a Pull Request with it. Thanks for your help on this! 🚀

@Azrealy - Did you make a PR?


Fix set of issues related to upgrade from secure transcript to chat

These changes address the following issues:

Sending a message from welcome screen and navigating to chat transcript doesn't show operator messages (MOB-2002)
Queue ticket gets cancelled when sending a message from secure conversations chat transcript (MOB-1990)
Incorrect message positioning when sending multiple messages before starting engagement (MOB-2018)
Secure messaging flow does not work in case of restored engagement

The key point is to evaluate InteractorState and based on that do enqueueing, upgrading etc.
MOB-2002

There is a case that doesn't work still, which is one of the things I also struggled and I believe enters under MOB-1990.
Steps to reproduce:

Authenticate.
Go to secure conversations welcome screen, but press "Check messages". Don't send any messages from welcome screen.
Send two messages.

Both MOB-1990 and MOB-2018 happen. However, MOB-2002 is fixed indeed.

There is a case that doesn't work still, which is one of the things I also struggled and I believe enters under MOB-1990.
Steps to reproduce:

Authenticate.
Go to secure conversations welcome screen, but press "Check messages". Don't send any messages from welcome screen.
Send two messages.

Both MOB-1990 and MOB-2018 happen. However, MOB-2002 is fixed indeed.

I've changed how we do the upgrade: instead of enqueueing after sending message, just subscribe to engaged event. This seem to resolve mentioned issues 7dc931ecf1b8b317cce11aec4ff0cd370a413119.

!merge


Zowe process documents for review by the Zowe ZLC on 20180829

Signed-off-by: John Mertic<EMAIL_ADDRESS>

John, is this complete?

They are ready for ZLC to review, provide feedback, and when ready approve.

Please review all for next  meeting.

@jplinardon Thanks for the feedback - all issues addressed!
All - please provide further feedback. Note I do need someone from the CI/CD team to work on the release process docs.

Hi @nannanli !
Appreciate your comments and thanks for taking the time to review.
Here's my thoughts on your questions:

In README.md ->current ZLC voting members, now it's just a list of names. Shall we add some short bio for each one and add a picture for them?

You could, but since this is a simple markdown file in a repo that might be considered a bit too heavy.

Example_governance.md has some content that overlaps with what's in role.md (which defines the project roles like adopter, committer, and contributor, leads) and release.md (which defines release process, communication chanels, etc). Shall we consider combining these two documents into one?

There is some overlap - but the aims are different.
roles.md - these are the defined roles for members of the Zowe community as established by the ZLC
example_governance.md - in the event of a new sub-project coming into Zowe that has no existing governance, this is a recommended governance to start with ( but not required to use this )

Also Roles.md -> Contributor describes how to contribute with details like DCO. This part of information is not definition but part of the how to contribute process. So I'd suggest we combine them and add links to contribution guidelines.

Probably make sense, and I would say there is overlap on the [https://github.com/zowe/zlc/blob/forreviewzlc20180829/process/LicenseAndCopyrightGuidance.md] as well. Might be good to at minimum reference that file here.

Thanks @jmertic fro detailed explanation! I have no questions/comments now. :-)

@jmertic Further actions on this or is this complete?


A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system.

Hi,
Not sure if this should go here or at Azure-Pipelines-Tasks.
I recently installed a new agent on a local VM.
For some reason, two tasks fail with the following error:
##[error]A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X86)'. Contact the task author for more details.
The two tasks that fail are:

File System - Robocopy v1.0.12 by Jungerius IT
Regex Replace v1.0.8 by Ivan Boyko

I suspect this is not related to the tasks themselves because they weren't modified recently.
My guess is that either I'm running an agent with a bug or I'm missing something on my machine.
Agent Version and Platform
Agent.Version: 2.141.1
Agent.OS: Windows
Agent.OSVersion: 10.0.14393
Agent.OSArchitecture: X86 (This is odd because the machine is running Windows Server 2016 x64)
VSTS: https://votiro.visualstudio.com
Please advise

@roizentner the error means those 2 tasks are using legacy task execution engine that not support in x86 environment.
the legacy execution engine is x64 only, you might want task author knows about this.

@TingluoHuang But I'm running it on a x64 environment...

@roizentner then why you are using x86 agent? Agent.OSArchitecture: X86
we produce both x86 and x64 version agent.
where do you get your agent package?
https://vstsagentpackage.azureedge.net/agent/2.141.2/vsts-agent-win-x64-2.141.2.zip

@TingluoHuang I downloaded it directly from VSTS. Now I see there are 'x86' and 'x64' tabs to choose under Windows agent. I've never noticed that before, is that new?
I'll replace the agent with an x64 one and report back...

@TingluoHuang I replaced the x86 agent with an x64 agents and it fixed the issue. I'm really surprised I haven't noticed this before. Thanks for pointing me in the right direction!!


Add support for NXP UWB position sensor

Describe problem solved by the proposed pull request
Based on #9029. This PR adds a driver for the NXP RDDrone UWB system, and integrates it with the existing precision landing code.
Test data / coverage
I held the sensor in my hands, spun around in my chair, and looked at the logs.
This is a WIP, I have not tested much.

@dk7xe This is still in the early stages, but here it is if you want to keep up with development. Right now it is reading the data and publishing a uORB topic, but I still need to add error checking and generally clean up the code.

@ItsTimmy Have you thought about docs for this? Possible integration points:

Module documentation would be nice http://dev.px4.io/master/en/middleware/modules_main.html
Precision landing: https://docs.px4.io/master/en/advanced_features/precland.html
Peripherals: https://docs.px4.io/master/en/peripherals/

I'm just curious, in the pozyx case has anyone looked into doing it directly without the arduino sketch?

Have you started to develop UWB fusion for indoor positioning？

I have not. The goal of this PR is to use the UWB positioning only within the existing precision landing framework. However, once this is done, it should be easy to get the raw data from UWB and use it however you want.


Integration Test - Release - 2019/03/04 18:30:29

Auto create for integration test. IssueCommandFlow

@PRMergerTest3 : Thanks for your contribution! The author, @v-caxian, has been notified to review your proposed change.


Readme: suggest SPM as default install method

This PR adds install instructions for using R.Swift with SPM. This is preferable for those starting new projects and wanting to avoid cocoapods given the now-widespread support for SPM.
I changed it to be the recommended method, however opinions may differ... Please feel free to just add it as another option if that's preferable 😄

Thanks for this PR!
I haven't tried this yet, but reading the PR, it seems interesting to use SPM in this way.
It does seem like quite a few steps to get everything working, but it's nice to not depend on CocoaPods anymore.
I'll have a more detailed look later on.

I opted to keep the instructions very verbose assuming it’s all new to people, but it boils down to very quick steps:

Create a Package.swift file
Make Run Script
Add R.swift.Library and generated file to target

Interesting to use SPM in this way, think we need to write it in a bit more compact way and not make it the default yet.
Also when we add this option think the readme needs a bit of restructuring or foldable parts to keep it readable.
Lets fix those points then merge this.

@mac-cain13 I am not sure where to ask this.. important R.swift with SPM is fine, some people wrote about how to then use it in your Xcodeproj. However, I don't seem to find anyone who's written of using R.swift "outside an Xcode project". I am developing a swift package "Kit" that internally uses R.swift but I don't have a way to run R.swift for its sources without generating the Xcode project and adding a script phase. Is there any way I could do so without generating the Xcode project ?

I don't like the BuildTools step. It is annoying to create folders on root project. This build script may be better.
cd $TEMP_DIR
mkdir RSwiftBinary
cd RSwiftBinary
echo `pwd`
echo "// swift-tools-version:5.1

import PackageDescription
let package = Package(
    name: \"RSwiftBinary\",
    platforms: [.macOS(.v10_11)],
    dependencies: [
        .package(url: \"https://github.com/mac-cain13/R.swift\", from: \"5.4.0\"),
    ]
)
" > Package.swift
/usr/bin/xcrun --sdk macosx swift run -c release rswift generate "$SRCROOT/R.generated.swift"

Another option is that.
Content of the Package.swift can be put on a folder on the library project. And we can run the script below. This method allow us to use always use correct R.swift and R.swift.Library library together.
cd "${BUILD_DIR%Build/*}/SourcePackages/checkouts/R.swift.Library/BuildTools/"
/usr/bin/xcrun --sdk macosx swift run -c release rswift generate "$SRCROOT/R.generated.swift"


Download Files from SMB Share

It would be nice if CME could download files from the fileshare, either specific files the user wanted, all the files in a folder or the files that were found by the spider.

@jabra- the reason why i took it out of v3.0 is because you can just use smbclient to do this... is there any reason that I'm missing why CME should have this ?

can you use the hash instead of the password for smbclient?  If not, it would be great as I can spider the files using the -H flag, but can not download with it.


Rename to repobee-peergrade?

I was thinking about this plugin, and it seems like "peer grading" would adequately describe its intent. How about renaming it to "repobee-peergrade"?

Works for me. I think you'll need to do the renaming of the repo itself? I can change the config files etc afterward (or beforehand) if you like.


libuvc on FreeBSD - program hangs, _uvc_stream_callback never executes

Hi,
I'm having problems while running test.c and example.c on FreeBSD. The execution of a thread hangs on the _uvc_user_caller function in the following part:
while (strmh->running && last_seq == strmh->hold_seq)
{
      pthread_cond_wait(&strmh->cb_cond, &strmh->cb_mutex);
}

I traced the problem to the _uvc_stream_callback function which is almost never executed. I said almost because around 1 out of 30 times that I run the program the thread doesn't hang. The problem is that if _uvc_stream_callback is never executed, then _uvc_swap_buffers function is also not executed. As a consequence the value of strmh->hold_seq, that is compared in the while loop above, is never updated to:
strmh->hold_seq = strmh->seq;
and the pthread_cond_wait in the while loop causes the calling thread to block on the condition variable cond.
I already tried solution #16 but it did not solve my problem. Any ideas how can I solve this.
Any help will be very much appreciated.

I forgot to mention that I'm using FreeBSD on VMware Workstation 12 Player (version 12.5.2). I also have already tested in the Virtual Machine Settings of VMware different USB compatibility options (e.g. USB 2.0, USB 3.0) but the test.c program still not working.
I also can corroborate that on Linux on VMware the code works perfectly. However, I would like to have it working on FREEBSD.


segmentation fault when export_onnx_gpu

Are there any solutions to the following situation? thanks!
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Warning: Constant folding - Only steps=1 can be constant folded for opset >= 10 onnx::Slice op. Constant folding not applied.
Traceback (most recent call last):
File "wenet/bin/export_onnx_gpu.py", line 574, in
run_decode_onnx_gpu.sh: line 32: 542480 Segmentation fault      (core dumped) python3 wenet/bin/export_onnx_gpu.py --config=$model_dir/train.yaml --checkpoint=$model_dir/avg_10.pt --cmvn_file=$model_dir/global_cmvn --ctc_weight=0.5 --output_onnx_dir=$onnx_model_dir --fp16

The segmentation fault is solved by setting the session options intra_op_num_threads to 1 according to https://github.com/microsoft/onnxruntime/blob/main/docs/FAQ.md
And I have another question, since deploying tritonserver on our server is difficult, are there any repositories supporting onnx gpu batch inferencing without using triton? Thanks!

If this is only offline asr model, you can refer to https://github.com/wenet-e2e/wenet/blob/main/wenet/bin/recognize_onnx.py and replace the feature extractor with kaldifeat, which you can refer here or here.

If this is only offline asr model, you can refer to https://github.com/wenet-e2e/wenet/blob/main/wenet/bin/recognize_onnx.py and replace the feature extractor with kaldifeat, which you can refer here or here.

Thanks!


Grab altitude, accuracy when using Set to Current Location

When using Set to Current Location, grab the altitude and GPS accuracy and store in the Spot.

Fixed with commit a035d14


[8.x] fix paginator footer text

The current codes were not compatible for all languages.
For example, in my language (Turkish), the places of words are different.
English: Showing 1 to 2 of 4 results
Turkish: Toplam 4 sonuç arasından 1 ile 2 arasındaki sonuçlar gösteriliyor
I think it will be more useful this way. After this update we will no longer need to customize this section for every project.
Ref: livewire/livewire#2628
Related to: laravel/laravel#5621

Wouldn't it be a breaking change for existing applications which don't publish pagination view?

This is indeed a breaking change. Probably best to send this to master.

@driesvints @jrmajor
Yes you are right. I thought about it and couldn't find a way. I changed the target to master.

@driesvints  @jrmajor  I created a new PR because the file history changed when I changed the target branch. #37540


Starting over

Literal is full of so many half-baked experiments. These experiments have taught us a lot about what’s possible. I’m creating a branch called legacy, which will be locked to the current state of main. If you’re using literal from git in your project, you should point to that branch for the next few months.
After that, I’m going to be ripping everything out and starting again, using the legacy branch as reference. This time, I’m only interested in implementing fully tested, documented features. Nothing half-baked.
The initial focus will be on:

Types
Attributes
Structs
Data Objects
Unions
Enums

Thanks @hangsu! ❤
Literal::Decorator makes sense to include with this. 👍  I want to get this fully documented with 100% code coverage before moving on to other stuff. Some of the other stuff may never make it back in.

Some of the other stuff may never make it back in.

I like the idea of literal being focused on type checking and related conveniences.
If you wanted to expand to monads, memoization, etc. I think a separate gem would make sense. It's easier for me psychologically to buy in to a more focused, cohesive project (like Phlex 😉).


HTTPS/SSL Support

Currently the site is only accessible through unencrypted HTTP. This is a security risk and will affect search rankings.

Done


Insert audio

How do I insert the audio of each stroke when I execute the animateCharacter method?

Or is there a callback function provided for each stroke to handle other

There's not a callback for each stroke on animateCharacter(), although it's not a bad idea to add that feature. Currently to achieve what you're after you'd have to call each animateStroke() method individually. You can pass a callback to do whatever you want, e.g. play audio, then animate the next stroke. Maybe something like:
let strokeNum = 0;
const maxStrokes = 5;
const animateCb = () => {
    writer.animateStroke({ onComplete: animateCb });
    playAudio();
    strokeNum += 1;
    if (strokeNum < maxStrokes) {
        animateCb();
    }
}

animateCb();


Fix comments in config file

Some of the defaults in the comments do not match the actual default values.

Looks good to me

Yep, lgtm too.

Hey @FryDay, could you get rid of the merge commit in the history please? Let me know if you don't know how to do that and we can sync on IRC.
In the future, when you want to sync with master, always use git rebase master instead of merge or pull (pull is simply fetch + merge).
Thanks a lot for fixing cruft!!! :smile:

@astorije certainly, I'll take care of it tonight when I get home.

Perfect :-)

@astorije I believe I fixed it. If it doesn't look okay, let me know.

I'm :+1: on this, going for second review (as there were changes after @YaManicKill's comment).
@FryDay, maybe squash the commits into one if you happen to stop by before @YaManicKill gives his :+1:, otherwise not a huge deal.

:+1:
I'm fine with teh 2 commits because they are both doing logically seperate things. Merging.


Fix water tower 2 and dumpster rotation

Fixes #27

I broke something, setting this to draft for now

I forgot to update the MapifyEditor.dll in my Unity project.

Interesting. The model must be rotated under the root in the base game then.


Unexpected error fetching porscheconnect

Hello,
A of  11:41 CET today I am getting the below error every 5 minutes (on each pooling) and also all Prosche connect related entities appear as unavailable.
2022-02-04 11:44:05 ERROR (MainThread) [custom_components.porscheconnect] Unexpected error fetching porscheconnect data: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/porscheconnect/init.py", line 218, in _async_update_data
vdata = await self._update_data_for_vehicle(vehicle)
File "/config/custom_components/porscheconnect/init.py", line 145, in _update_data_for_vehicle
**await self.controller.getStoredOverview(vin),
File "/usr/local/lib/python3.9/site-packages/pyporscheconnectapi/client.py", line 418, in getStoredOverview
data = await self._connection.get(
File "/usr/local/lib/python3.9/site-packages/pyporscheconnectapi/connection.py", line 183, in get
return await resp.json()
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1119, in json
return loads(stripped.decode(encoding))
File "/usr/local/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Please discard it, apologies, it looks like after reboot it is working fine again.

Re-opening the issue. After the reboot made because a new HA version it worked, but not too late afterwoards started to happen again every 5 minutes. Something may have changed at HA or Porsche side. Thanks

I'm not seeing this problem, is it possible this was a temporary error on their backend or do you still have this?

Thanks for answering. No, i am not longer seeing it, it may has been as you said a temporary thing.

No more errors happened


Include hint in query error

We get a lot of people in the discord who are confused about query errors because all they see is "Validation failed for query" in the error message. This passes along the hint so that they can identify the problem.
Before
{
    "message": "Validation failed for query"
}

After
{
    "message": "Validation failed for query",
    "hint": {
        "data-type": "query",
        "input": {
            "comments": {
                "$": {
                    "where": {
                        "someField": {
                            "$gt": 50
                        }
                    }
                }
            }
        },
        "errors": [
            {
                "expected?": "indexed?",
                "in": [
                    "comments",
                    "$",
                    "where",
                    "someField"
                ],
                "message": "The `comments.someField` attribute must be indexed to use comparison operators."
            }
        ]
    }
}

(I think some of the docs got included with this PR)
Thanks for catching! Fixed!


Translation of some vane plugins to chinese simplified

Thanks a lot! This will be included in the next release ❤


Welcome back to china

Google cannot be accessed in China for legal reasons until this Aug. So I believe go play ground should be accessed, too! Maybe because you guys forget to open this magic land to china.

See https://github.com/golang/go/issues/25097.


Not working

app(Spatie\ImageOptimizer\OptimizerChain::class)->optimize($pathToImage);
I used above code to optimized image while displaying ,but it not works
Also that function is return null

Our tests prove that the package is working as intended. I'm thinking you don't have the required tools installed in your environment.
Use logging as described to check if any optimiser are being used.


how to handle meta server update failure?

hi i have several questions about how pegasus handle some corner case

how pegasus handle meta server update failure in step4?， just retry forever？

This step4 is for meta server to update new PartitionConfiguration into zk. If meta server failed to store metadata, its operation will depend on the error. If the error is timeout, it will retry, otherwise, meta server will kill itself and restart. In current design, zk is considered as a stable and reliable component, stores cluster metadata.

@hycdong thanks for your explanation
another question is,  in step3 primary will send new config to metaserver, what to do if send fail? maybe kill primay itself?

In pegasus, the leader vote is handled by meta server, meaning which replica is primary and which is secondary is determined by meta server, not the replica group.
In step2, primary will try to downgrade itself, and it will send a downgrade request to meta server, after that its status is not primary, but a status called inactive. Then, the meta server will choose a suitable secondary and a new primary. And then, meta server will send proposal to vote primary and add secondary to let replica group healthy(1 primary and 2 secondaries).
The word in the picture simplifies the process, the request sent to meta is actually NOT the new PartitionConfiguration without the failed secondary, but the request downgrade primary itself. And if the primary failed while sending request, it doesn't matter, and meta server will know this replica group unhealthy in other ways.
Hoping my answer helps you.

thx


Can't import privatekey from pdf paper

When I try import my privatekey from pdf paper from myneucoin wallet into neucoin client "dumpprivkey my_privatekey_address" in debug window I get error message "Invalid private key (code -5).

Use « importprivkey MYPRIVKEY » instead of dumpprivkey.


F/automation

Delete CocosPod dependency from project
Delete xcodeproj xworkspace file from repo
add cmake supporting
Delete AFNetworking code from repo, add it as a submodule

@ZuqiuMao
git submodule init
./maker.bash


Support for extinguished campfires

What do you think about this? It has all the normal campfire functionality but can be combined with slabs (and even vertical slabs)

it looks great! i can even stack them on each other. though now the ones on the slab or vertically placed cant be extinguished now. (also for me they are "dark" and dont emit light,but it can be a problem with me specifically)

Thanks. Could you show me a screenshot of how they look? I understand that they don't emit light (this isn't a supported feature yet)

not emitting light is fine imo,and apart from that they look good

Nice. I think the lighting is due to the fact that they don't emit light and that you have shaders enabled. Once light support is enabled (as some slabs may have emit light) it should work perfectly :)

hope so! thanks for your work, its great! :)

No problem :+1:

Hello, I've noticed that campfires can't be extinguished with a shovel or when placed in water if it is a double slab. It also doesn't damage entities when it's lit. It also won't place sideways in water.

Fixed in the latest version :)


[dif] Implement function dif_csrng_stop

This PR only contains:

Implementation of the dif_csrng_stop function
Application of the dif_csrng_stop on the sca module

@doreis-lowrisc Can you rebase this onto the latest master? I'd like the CI tests to run again and then I'll merge it. Thanks!

@doreis-lowrisc Can you rebase this onto the latest master? I'd like the CI tests to run again and then I'll merge it. Thanks!

Done!


[excel] (Table) Adding SortDataOption sample

Docs Build status updates of commit 220831c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/docs-ref-autogen/excel/excelscript/excelscript.sortdataoption.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.sortfield.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/sample-scripts/excel-scripts.yaml
:white_check_mark:Succeeded

generate-docs/json/excel/snippets.yaml
:white_check_mark:Succeeded

generate-docs/tools/API Coverage Report.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 32546ea:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/docs-ref-autogen/excel/excelscript/excelscript.sortdataoption.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.sortfield.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/sample-scripts/excel-scripts.yaml
:white_check_mark:Succeeded

generate-docs/json/excel/snippets.yaml
:white_check_mark:Succeeded

generate-docs/tools/API Coverage Report.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit f252fd8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/docs-ref-autogen/excel/excelscript/excelscript.sortdataoption.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.sortfield.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/sample-scripts/excel-scripts.yaml
:white_check_mark:Succeeded

generate-docs/json/excel/snippets.yaml
:white_check_mark:Succeeded

generate-docs/tools/API Coverage Report.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


adding sort for arrays

To me, a list of ["a", "b", "c"] is different from an array of ["c", "b", "a"]. I am not the maintainer but I as a user would be surprised & displeased to see this behavior. If this is to be included, I would expect it to be an option, & by default off.
I would also ask that it be consistently implemented. This repository contains two different implementations of canonicalization, but this PR only applies to the first of the implementations. The two implementations should have consistent functionality, else we don't really have a canonical canonicalization system.


Release 0.1.2

Description
Self-explained
Types of changes

[ ] House cleaning (change at project level, like tooling revamp, refactors, etc)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (non-breaking change which improves existing functionality)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (something that would cause existing functionality to not work as expected)
[x] Documentation (self-explained)

Implementation details
N/A

Codecov Report

Merging #106 (4ec9495) into main (eccd6c3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #106   +/-   ##
=======================================
  Coverage   84.80%   84.80%
=======================================
  Files          11       11
  Lines         500      500
=======================================
  Hits          424      424
  Misses         76       76

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 eccd6c3...4ec9495. Read the comment docs.


raft_client: check context and extra_ctx size in BatchMessageBuffer::push

What problem does this PR solve?
Issue Number: close #9714
Related change and discussion:  https://github.com/tikv/tikv/pull/10724
Problem Summary:
Due to the #9714, the context field could have large key ranges which could make the estimate very inaccurate.This leads to some RaftClient's gRPC call failed due to exceeding the max_grpc_send_msg_len.
What is changed and how it works?
This change will add the message's context field's size into estimated size
Check List
Tests

Unittest
Manual test

Release note
Fix the issue #9714. Now RaftClient will check the size of RaftMessage.extra_ctx and RaftMessage.message.context size as part of its message size estimate.

/merge


spsc::Queue: add single core variant

bors r+

published: https://crates.io/crates/heapless/0.4.1


FieldSpecs should only be equal if they permit the same values

As a developer, I want FieldSpec equality to align with functional behaviour so that I can write algorithms that rely on identifying duplicate FieldSpecs (e.g. equivalence class derivation)
The problem
#332 introduced equality methods for FieldSpecs, but in a way such that two FieldSpecs that are functionally equal (i.e. they permit the same set of values) might not be considered equal, because they express the same restrictions in different ways. For examples, see checklist below.
The solution
Either:

Normalise FieldSpecs as we're creating them, such that two FieldSpecs that permit the same values will have the same underlying representation.
Relax the equality methods so they recognise equality of functionally-equivalent restrictions.

Or a mix of both.
Examples

[ ] The absence of a restrictions object (eg, FieldSpec.numericRestrictions being null) vs the presence of an unrestrictive restrictions object (eg new NumericRestrictions())
[ ] "between 2 and 9" vs "between 2 and 9 and not 13"
[ ] Set/type/nullity restrictions objects can limit values in a way that makes type-specific restrictions irrelevant (e.g. "inSet []", "is null", "not numeric, string or temporal")

We believe this is fixed.


Allow color temperature as low as 1500

I have a LifX Mini Day & Dusk and it can go as low as 1500 kelvin. This allows setting it that low :)

Thank you so much.


Fix issue where no common end statement could be found

This PR fixes an issue where no common end statement can be found.
We now just ignore this case, because this can only occur when a true/false branch has no successors. In this case it must contain a return or throw statement, and these cases we want to keep the branches.

Codecov Report

Merging #109 into master will increase coverage by 0.32%.
The diff coverage is 87.5%.

@@             Coverage Diff              @@
##             master     #109      +/-   ##
============================================
+ Coverage     86.03%   86.35%   +0.32%
  Complexity      244      244
============================================
  Files            25       25
  Lines           537      535       -2
  Branches        109      110       +1
============================================
  Hits            462      462
+ Misses           24       23       -1
+ Partials         51       50       -1

Impacted Files
Coverage Δ
Complexity Δ

...hgenerator/jimple/filters/BranchStatementFilter.kt
87.5% <87.5%> (+4.16%)
6 <0> (ø)
:arrow_down:

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 cb8b090...eb4b13b. Read the comment docs.


Trailing comments cause parse error in pipenv install -r requirements.txt

Running pipenv install -r requirements.txt on a file with trailing comments (such as those generated by pip-compile) gives the following error:
$ pipenv install -r requirements.txt
Installing amqp==2.1.4               # via kombu...

Error:  An error occured while installing amqp==2.1.4               # via kombu
Invalid requirement: 'amqp==2.1.4               # via kombu'
Traceback (most recent call last):
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py", line 92, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 1617, in parseString
    raise exc
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 1607, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 3376, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 3164, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 26), (line:1, col:27)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/req/req_install.py", line 82, in __init__
    req = Requirement(req)
  File "/Users/paul/qwil/backend/.venv/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'# via ko'"

Looks like the requirements parser is just skipping lines which startwith('#') but looks like we need to be a bit more cunning to pluck out trailing comments.

open to a PR! Should be an easy fix.

Related: #25

fixed!


Back button from detail page to navigate back to product list

My first Saleor shop project (record shop) is rapidly evolving which is quite nice considering the fact, that I have no long term front end experience and I had to touch every model due to my customer's legacy data schema (+MySQL 👎 ) which can not be redesigned at the moment. I am pretty stoked about Saleor, because the codebase is just so easy to get started with. Awesome project!
However, I am getting a little tired about the loading spinner when I go back from the detail page to the product list. Are there any plans to implement a detail page with Relay and then just have a "back" button? I think this could save a lot of requests.

Hey @tillkolter, it's very nice to hear that Saleor is helping you!
Actually we've had the discussion about migrating product details page to React a few times already, since we've added the category page that uses React and Relay. However, this is not our priority right now but it's definitely in our long-term plan. Our first priority would be extending the GraphQL API to allow people to write Saleor's storefront entirely as a Single Page App.
Regarding your problem, how long does it take to load the product list in your case? How many products do you have in the database?

The load times are around 800ms with DEBUG=False, my database has about 150k product entries + relational objects.
In the meantime my development took two turns:

I implemented a detail view myself 😊
The customers requirement for an audio player with continous playback in the main frame forced me to leave Django frontend-wise and completely rewrite the storefront which I now started (with ViuJS + Apollo).

FWIW we're also planning to switch from Relay to Apollo. Main reason is we want to switch to TypeScript and drop Babel (and Relay is a Babel plugin).

@tillkolter Sounds good, I'd love to see Saleor's storefront made in VueJS. I'm closing this issue for now and if you need any help feel free to open a new one. Also, if you came up with some improvements to the GraphQL API that could be ported to Saleor, a PR is welcome:)


Repository Log Feature

It would be nice to have a log in the repository level informing who and when someone executed the pull to update the local objects because we would like to track who is importing the new tool version successfully, and who is leaving it without finishing the upgrade.

Hi,
On the list page, toggle detail, and it shows who last did a deserialize = pull, however it just shows the latest, does this help?

It is enough! Thanks @larshp  👍


Tap "Select" before spinning ends, return pre-edited value

This might be Apple UIDatePicker issue as well.
While the picker is animating, if user tap on "Select", UI seems wait for a while to let datePicker settle down to the final value, but the return value will still show the original value.
Tried capturing value through UIControlEventValueChanged, seems it able to return the final value even if DateSelectionViewController is dismissed.
I'm not sure how it could be patched in the component itself since UIDatePicker doesn't expose much info about the UI.  Maybe you have some better idea.

Dealing with this as well: https://github.com/CooperRS/RMPickerViewController/issues/50
It seems like an OS-level issue and my only thought is maybe (as a workaround) perhaps during the  animation of the view disappearing... the picker could remain allocated somewhere so that the animation could finish and the actual correct choice can be registered?
That, or just putting an actual time delay on it. I wouldn't want to mess up the UX, but it's sort of messed up already to be honest.


integrations: Allow ifttt and zapier to take a topic instead of subject.

Currently for zapier and ifttt we recommend the json contain a "subject" and "content" field. We should also accept a "topic" field (without deprecating subject).
As a part of this, we should also update the two zerver/webhooks/*doc.md docs.
@eeshangarg fyi, this might be a good small project as a part of the docs work.

Tagging this as a priority, since it's likely both easy and high-value.

Is it ok to try this? Or is this so high priority that it should just be fixed super quickly?

@neiljp, @timabbott, @rishig: I just migrated all webhooks to use check_send_webhook_message except a handful that might take more work. That PR #8696 would include these two as well, so I'd like that to get merged before we tackle this, just in case. I'm not sure what impact that might have on this issue.
I'll be pushing to #8696 in a bit! Thanks! :)

@neiljp: Oh and feel free to take this up but I am not sure how the check_sent_webhook_message migration will affect doc macros yet, so I'd hold off on this for now! :)

@zulipbot claim

Claiming pending @eeshangarg's changes.

@neiljp #8696 is now merged.

How does #8737 look like as the first step, for zapier? If it looks reasonable, then I'll do something similar for the other integration.


Configuration for disabling default transaction wrapping in prisma calls

Problem
I'm trying to setup a test strategy with Jest that runs each of the tests inside transactions and rollback all changes after the assertions. In order for this to work the strategy need to be paired with a connection_limit=1 and running tests in sequence with --runInBand.
Basically what I'm looking for is this:
beforeEach(async () => {
   prisma.$executeRaw`BEGIN;`
})

afterEach(async () => {
    prisma.$executeRaw`ROLLBACK;`
})

describe('some context', () => {
    test('doSomethingComplexThatHitsTheDatabase', async () => {
        await setupData()
        const result = await doSomethingComplexThatHitsTheDatabase()
        expect(result.foo).toBe('bar')
   })
})

This way we could setup each test with whatever data we wanted and it would rollback automatically to the default state. The good part of it is that it causes no write to the disk and executes everything in memory, making the tests crazy fast.
Prisma don't support this today because it wraps every call between a transaction by default:

I have similar setup with @databases but I really wish to replicate this with Prisma so I can leverage both the speed and simplicity on writing tests like this.
Suggested solution
Add a config when instantiating the prisma client that we could use to disable the behavior:
const client = new PrismaClient({
    wrapCallsInTransaction: false
})

Or something similar.
This would simply not run BEGIN and COMMIT after every prisma call.
I'm pretty sure prisma already has to do it when we use the $transaction API. I didn't find the code myself to PR it though.
Alternatives
Can't really think of anything.
Additional context
I don't think it's necessary.

If we want to use the principle of dependency inversion, we will want to create our own wrapped transaction class by use-case or other means.
Therefore, I want to disable the auto-commit feature of Prisma.

We have some desire for this testing strategy, would love to see an easy flag to disable automatic wrapping so that we can do our own wraparound

I'd also like to see this; it would cut down on latency when dealing with slow databases, because most Prisma queries do not actually require a transaction to execute effectively.


'capacity' typo

VecAny::capacity is spelled VecAny::capcaity. https://docs.rs/list-any/0.2.0/list_any/struct.VecAny.html#method.capcaity

Thank you!  Fixed in 0.2.1.


[Impeller] Scene is unconditionally selecting kD32SfloatS8UInt for a depth attachment

The device may not support this, which will result in errors. There needs to be some caps based selection here.
https://github.com/flutter/engine/blob/bc28b6792248d5b8b5c2a4d52dc30a2fcda7aaa0/impeller/scene/scene_context.cc#L21-L27

@bdero fyi

Impeller Scene is an absolute bare minimum 3D renderer. If we can't keep an easy path open for building its pipelines on CI, then Impeller's HAL is unsuitable for 3D.
This format is required for iPhones. We're missing a good validation and querying story for available formats at the moment. I think we'll eventually need to add these.
However, I believe it will always be the case that a depth+stencil format is available, and so in this case it may be useful to sidestep the problem by adding a GetDefaultDepthStencilFormat() in the capabilities alongside GetDefaultStencilFormat(). Where GetDefaultStencilFormat() biases towards selecting a stencil-only format, and the other guarantees that a depth segment is included.

Isn't that just a typo? Why isn't D24S8 suitable?

Isn't that just a typo? Why isn't D24S8 suitable?

It's not available on iOS.
iOS will always have D32S8 and never have D24S8.
Vulkan might have one or the other.

We have a Capabilities::GetDefaultColorFormat and Capabilities::GetDefaultStencilFormat. The latter doesn't care about depth. We should have a Capabilities::GetDefaultDepthStencilFormat too for this use case.

Yes, that's what I recommended. 😆

derp

I added an issue about the more general problem of determining which formats are supported here: https://github.com/flutter/flutter/issues/133496


Add a way to enforce that a mocked function is called with certain arguments

Component
Forge
Describe the feature you would like
Currently tests don't break if a mocked function is called with different arguments to what was expected.
Currently for example:
    cheats.mockCall(
      address(mocker),
      abi.encodeWithSelector(
        SomeContract.someFunction.selector,
        5
      ),
      abi.encode(6)
    );

With the above code it will return 6 if the function is called with an argument of 5 or anything else, additionally it won't fail if it isn't called with 5 (which is something you sometimes want to check.
I propose adding a function called something like mockCallStrict to the cheats so that tests can be more strict about this.
Additional context
This is a feature of Smock: https://smock.readthedocs.io/en/latest/fakes.html#asserting-call-arguments

You might be interested in expectCall instead. I don't think mockCall should be a superset of expectCall. If you want a stricter version perhaps this is a good addition to Forge Std instead

Thanks, that makes sense to me too.
I won't make any changes to the std lib right now, but I'm working on some code-gen stuff that might be useful for others once it is done to assist with mocking.
Maybe that can be upstreamed at some point if it is useful.

Also FYI - my codegen work will allow mocking of internal functions without needing to move the the REVM as mentioned in this PR - https://github.com/foundry-rs/foundry/issues/432 .
Like I say, I'll definitely share my work on that in the coming weeks/months :+1:

@brockelmore Perhaps we should transfer this to Forge Std as well? Or maybe just close it and open up a new issue? Wdyt?


throw timeout error not as XHRError Exn.Error, but as separate error

Description of the change
fixes https://github.com/purescript-contrib/purescript-affjax/issues/155

Checklist:

[x] Added the change to the changelog's "Unreleased" section with a link to this PR and your username
[x] Linked any existing issues or proposals that this pull request should close
[x] Updated or added relevant documentation in the README and/or documentation directory
[x] Added a test for the contribution (if applicable)

example of XHROtherError
Error__AffjaxError {
  value0: XHROtherError {
    value0: TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
        at new ClientRequest (_http_client.js:151:13)
        at Object.request (https.js:313:10)
        at XMLHttpRequest._sendHxxpRequest (/home/srghma/projects/extract-pdf-notes/node_modules/xhr2/lib/xhr2.js:480:24)
        at XMLHttpRequest._sendHttp (/home/srghma/projects/extract-pdf-notes/node_modules/xhr2/lib/xhr2.js:460:14)
        at XMLHttpRequest.send (/home/srghma/projects/extract-pdf-notes/node_modules/xhr2/lib/xhr2.js:278:18)
        at /home/srghma/projects/extract-pdf-notes/output/Affjax/foreign.js:84:11
        at __do (/home/srghma/projects/extract-pdf-notes/output/Effect.Aff.Compat/index.js:15:22)
        at runAsync (/home/srghma/projects/extract-pdf-notes/output/Effect.Aff/foreign.js:98:20)
        at run (/home/srghma/projects/extract-pdf-notes/output/Effect.Aff/foreign.js:333:22)
        at /home/srghma/projects/extract-pdf-notes/output/Effect.Aff/foreign.js:348:19 {
      code: 'ERR_UNESCAPED_CHARACTERS'
    }
  }
}

if one forgets to use JSURI.encodeURIComponent


For #74 (naicreport): Add last-seen field to cpuhog report

This field was already computed, it just needed to be exposed in the report.

Waiting for some live testing to complete.


Proxy Error in AWS Provision Dialog

Hey there,
i would like to report an issue while provision an Instance in AWS.
Howto reproduce:

Install Vanilla Darga Appliance
Create AWS Provider
Sync public Images (as described HERE)
wait until 27k Images has been indexed
Create a new Instance

You will get an Proxy Error in JavaScript Console (like this)

this looks like your UI worker died on the appliance.
can you still log into the UI?
can you ssh into the appliance and do
vmdb
rake evm:status

not that syncing all public images still requires more RAM on the appliance than normal.

yes i can move in the UI and the server response to SSH and anything else...
here the status of this appliance:
Checking EVM status...
 Zone    | Server Name | Status  |             ID |  PID | SPID | URL                     | Started On           | Last Heartbeat       | Active Roles
---------+-------------+---------+----------------+------+------+-------------------------+----------------------+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 default | test02.miq  | started |<PHONE_NUMBER>0001 | 2752 | 2771 | druby://<IP_ADDRESS>:42400 | 2016-09-23T13:38:54Z | 2016-10-14T15:50:07Z | automate:database_operations:database_owner:ems_inventory:ems_metrics_collector:ems_metrics_coordinator:ems_metrics_processor:ems_operations:event:notifier:reporting:scheduler:smartstate:user_interface:web_services:websocket

 Worker Type                                                       | Status   |             ID |   PID | SPID  | Queue Name / URL      | Started On           | Last Heartbeat
-------------------------------------------------------------------+----------+----------------+-------+-------+-----------------------+----------------------+----------------------
 ManageIQ::Providers::Amazon::CloudManager::EventCatcher           | started  |<PHONE_NUMBER>0559 | 10450 | 10456 | ems_15000000000003    | 2016-10-12T08:31:13Z | 2016-10-14T15:49:50Z
 ManageIQ::Providers::Amazon::CloudManager::MetricsCollectorWorker | started  |<PHONE_NUMBER>0555 | 10428 | 10435 | amazon                | 2016-10-12T08:31:12Z | 2016-10-14T15:50:04Z
 ManageIQ::Providers::Amazon::CloudManager::MetricsCollectorWorker | started  |<PHONE_NUMBER>0556 | 10432 | 10437 | amazon                | 2016-10-12T08:31:12Z | 2016-10-14T15:49:58Z
 ManageIQ::Providers::Amazon::CloudManager::RefreshWorker          | stopping |<PHONE_NUMBER>0710 |  5278 | 5286  | ems_15000000000003    | 2016-10-14T12:43:10Z | 2016-10-14T14:25:39Z
 ManageIQ::Providers::Amazon::CloudManager::RefreshWorker          | started  |<PHONE_NUMBER>0721 | 10845 | 10849 | ems_15000000000003    | 2016-10-14T14:43:38Z | 2016-10-14T14:43:53Z
 ManageIQ::Providers::Amazon::NetworkManager::RefreshWorker        | started  |<PHONE_NUMBER>0722 | 10850 | 10854 | ems_15000000000004    | 2016-10-14T14:43:38Z | 2016-10-14T15:50:09Z
 ManageIQ::Providers::Azure::CloudManager::EventCatcher            | started  |<PHONE_NUMBER>0719 |  9156 | 9160  | ems_15000000000005    | 2016-10-14T14:08:21Z | 2016-10-14T15:50:16Z
 ManageIQ::Providers::Azure::CloudManager::MetricsCollectorWorker  | started  |<PHONE_NUMBER>0089 |  2923 | 2927  | azure                 | 2016-09-23T13:38:57Z | 2016-10-14T15:50:00Z
 ManageIQ::Providers::Azure::CloudManager::MetricsCollectorWorker  | started  |<PHONE_NUMBER>0090 |  2928 | 2932  | azure                 | 2016-09-23T13:38:57Z | 2016-10-14T15:50:01Z
 ManageIQ::Providers::Azure::CloudManager::RefreshWorker           | started  |<PHONE_NUMBER>0717 |  9146 | 9154  | ems_15000000000005    | 2016-10-14T14:08:21Z | 2016-10-14T15:50:13Z
 ManageIQ::Providers::Azure::NetworkManager::RefreshWorker         | started  |<PHONE_NUMBER>0718 |  9150 | 9155  | ems_15000000000006    | 2016-10-14T14:08:21Z | 2016-10-14T15:50:11Z
 MiqEmsMetricsProcessorWorker                                      | started  |<PHONE_NUMBER>0092 |  2940 | 2944  | ems_metrics_processor | 2016-09-23T13:38:57Z | 2016-10-14T15:50:13Z
 MiqEmsMetricsProcessorWorker                                      | started  |<PHONE_NUMBER>0091 |  2933 | 2939  | ems_metrics_processor | 2016-09-23T13:38:57Z | 2016-10-14T15:49:57Z
 MiqEventHandler                                                   | started  |<PHONE_NUMBER>0096 |  2965 | 2969  | ems                   | 2016-09-23T13:38:59Z | 2016-10-14T15:50:16Z
 MiqGenericWorker                                                  | started  |<PHONE_NUMBER>0715 |  7897 | 7901  | generic               | 2016-10-14T13:41:10Z | 2016-10-14T15:50:13Z
 MiqPriorityWorker                                                 | started  |<PHONE_NUMBER>0099 |  2980 | 2984  | generic               | 2016-09-23T13:38:59Z | 2016-10-14T15:50:18Z
 MiqPriorityWorker                                                 | started  |<PHONE_NUMBER>0100 |  2985 | 2989  | generic               | 2016-09-23T13:38:59Z | 2016-10-14T15:50:18Z
 MiqReportingWorker                                                | started  |<PHONE_NUMBER>0101 |  2990 | 2996  | reporting             | 2016-09-23T13:38:59Z | 2016-10-14T15:50:17Z
 MiqReportingWorker                                                | started  |<PHONE_NUMBER>0102 |  2998 | 3002  | reporting             | 2016-09-23T13:38:59Z | 2016-10-14T15:50:16Z
 MiqScheduleWorker                                                 | started  |<PHONE_NUMBER>0103 |  3004 | 3011  |                       | 2016-09-23T13:39:00Z | 2016-10-14T15:50:06Z
 MiqUiWorker                                                       | started  |<PHONE_NUMBER>0565 | 31984 |       | http://<IP_ADDRESS>:3000 | 2016-10-12T10:02:21Z | 2016-10-14T15:50:07Z
 MiqWebServiceWorker                                               | started  |<PHONE_NUMBER>0106 |  3052 |       | http://<IP_ADDRESS>:4000 | 2016-09-23T13:39:02Z | 2016-10-14T15:50:18Z
 MiqWebsocketWorker                                                | started  |<PHONE_NUMBER>0104 |  3017 |       | http://<IP_ADDRESS>:5000 | 2016-09-23T13:39:02Z | 2016-10-14T15:50:09Z

i will raise the RAM and will give feedback immediately !

Hey,
i raised the RAM to 16GB and 6 Cores, and changed some memory threshold settings:

but the error still appears...

I experience this from the API too, the more templates I have, the longer it takes for the provision_request to get created. (with 5000 templates, API POST /provision_requests takes more than 30s)

My guess is this is due to the workflow processing of the templates starting here app/models/miq_provision_virt_workflow.rb#L758 with a good bit of work done here app/models/miq_provision_virt_workflow.rb#L330.
@durandom If you want I'll take this one and get it reassigned.

@gmcculloug sure, it's yours :plate_with_cutlery: thanks for stepping in
@miq-bot assign @gmcculloug

@gmcculloug maybe add the UI team too, to increase that JS timeout? And how about the performance?


feat: add gateway cloud and self-hosted icons

Description
Add 2 new icons:

gateway cloud
gateway self-hosted

Additional context

📚  View the storybook of this branch here

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

npm package (@latest dist-tag)
npm package (@latest dist-tag)
npm package (@latest dist-tag)
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Strider isn't returning all sub queries from Aragorn

Given the following query:
{
  "message": {
    "query_graph": {
      "edges": {
        "t_edge": {
          "knowledge_type": "inferred",
          "object": "ON",
          "predicates": [
            "biolink:treats"
          ],
          "subject": "SN"
        }
      },
      "nodes": {
        "ON": {
          "categories": [
            "biolink:Disease"
          ],
          "ids": [
            "MONDO:0005361"
          ]
        },
        "SN": {
          "categories": [
            "biolink:ChemicalEntity"
          ]
        }
      }
    }
  }
}

Strider is returning 12 out of 20 queries before sending the "completed" message. The other 8 queries are failing unexpectedly and never getting returned.

I've run this a handful of times locally and not been able to reproduce. I'll keep trying some different things (also on dev).

Running this a couple times in dev with bypass_cache, Strider is returning all subqueries. This seems to be an intermittent issue? @cbizon

OK, I'll give it a shot - thanks @maximusunc


Handle errors if closing a repository fails

The first step would be to find out how to reproduce a failure. Missing javadocs jars maybe?

@braedongough is this still an issue?


search backend to identify relevant functions based on capability data

we can use solr/elastic for searching the json-based capability DB as the backend task

will be backend for #76

closing as tracked here: https://github.com/eBPFDevSecTools/ebpf-projects-annotations/issues/4