TextPainter miscalculates size when using a font

When project is executed it prints:
standard is 54, custom is 54 (wrong!!!)
After hot restart on the web:
standard is 54, custom is 62 (expected, but this makes no sense)

standard is when there is no font (the default one)
custom is when there is a different font (in this case, via Google Fonts).

For more information, check the code below.

To run this code you need to have: google_fonts: ^2.0.0.
Optionally, download the project (it is just google_fonts in pubspec + the code below): buggg.zip
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(body: MyWidget()),
    );
  }
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final TextStyle flutterStyle = TextStyle(fontSize: 13);

    final TextPainter textPainterNative = TextPainter(
      text: TextSpan(
        text: "Welcome",
        style: flutterStyle,
      ),
      textDirection: TextDirection.ltr,
    )..layout(minWidth: 0, maxWidth: double.infinity);

    final TextStyle customStyle = GoogleFonts.poppins(fontSize: 13);

    final TextPainter textPainterCustom = TextPainter(
      text: TextSpan(
        text: "Welcome",
        style: customStyle,
      ),
      textDirection: TextDirection.ltr,
    )..layout(minWidth: 0, maxWidth: double.infinity);

    print(
        "standard is ${textPainterNative.width}, custom is ${textPainterCustom.width}");

    return Center(
      child: Container(
        width: 300,
        height: 300,
        color: Colors.blue,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text("Welcome", style: flutterStyle),
            SizedBox(
              width: textPainterNative.width,
              child: Text("Welcome", style: flutterStyle),
            ),
            SizedBox(height: 16),
            Text("Welcome", style: customStyle),
            Container(
              color: Colors.red,
              width: textPainterCustom.width,
              child: Text("Welcome", style: customStyle),
            ),
          ],
        ),
      ),
    );
  }
}

➜ flutter doctor -v
[✓] Flutter (Channel beta, 2.1.0-12.2.pre, on macOS 11.2.1 20D74 darwin-x64,
    locale en-BR)
    • Flutter version 2.1.0-12.2.pre at /usr/local/flutter
    • Framework revision 5bedb7b1d5 (8 days ago), 2021-03-17 17:06:30 -0700
    • Engine revision 711ab3fda0
    • Dart version 2.13.0 (build 2.13.0-116.0.dev)

@bernaferrari Thanks for the detailed report, but I wasn't able to replicate the size difference, both on latest master as well as on beta.

Master, with flutter run -d chrome and hot restarting with r:

dhs@Dhss-MacBook-Pro web % flutter run -d chrome
Changing current working directory to: /Users/dhs/Documents/NCFlutter/int_test_demo
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             17.7s
Debug service listening on ws://<IP_ADDRESS>:51740/CCdI0ZFiqeo=/ws

Running with unsound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".
standard is 54, custom is 54

Performing hot restart...                                          104ms
Restarted application in 106ms.
standard is 54, custom is 54

Performing hot restart...                                           97ms
Restarted application in 97ms.
standard is 54, custom is 54

flutter doctor -v
[✓] Flutter (Channel beta, 2.1.0-12.2.pre, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-GB)
    • Flutter version 2.1.0-12.2.pre at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 5bedb7b1d5 (8 days ago), 2021-03-17 17:06:30 -0700
    • Engine revision 711ab3fda0
    • Dart version 2.13.0 (build 2.13.0-116.0.dev)

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                               •
      web-javascript • Google Chrome 89.0.4389.90

! Doctor found issues in 1 category.

@darshankawar 54 is the wrong answer. If you are getting 54 for the custom, it is wrong.
I guess, forguet about hot restart, because in your case it is not "fixing" the issue.

@bernaferrari
final TextStyle customStyle = GoogleFonts.poppins(fontSize: 13);
Does the difference occur if you use core textstyle instead of google_fonts ?

@darshankawar upon further debug:
With Poppins font imported locally:
✅ TextStyle(fontFamily: "Poppins", fontSize: 13)
✅ GoogleFonts.poppins(fontSize: 13)
Without Poppins font imported:
❌ GoogleFonts.poppins(fontSize: 13)
The issue, it seems, then, is how TextPainter deals with a Font that is not directly available. Google fonts is not async, but TextPainter works as if it is.

Keeping this issue open for further investigation.

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.3, on Mac OS X 10.15.4 19E2269 darwin-x64,
    locale en-GB)
    • Flutter version 2.0.3 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 4d7946a68d (10 days ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • Mac OS X 10.15.4 19E2269
      darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.90

! Doctor found issues in 1 category.

Fonts are loaded asynchronously. If the font is not loaded yet we will fallback to Roboto. I don't know how google_fonts package works, but Flutter provides an API to load a font and wait until it's loaded: https://api.flutter.dev/flutter/dart-ui/loadFontFromList.html

This may also be helpful: https://api.flutter.dev/flutter/rendering/RelayoutWhenSystemFontsChangeMixin/systemFontsDidChange.html, although it doesn't tell you which font loaded.
I think google_fonts package should provide a listener interface, through which you can be notified that your custom font is ready to be used.

What is good behavior? (Ignoring Google Fonts) use loadFontFromList synchronously on the app load? Or calling it before TextPainter?

I'm not sure. Consider filing an issue at https://github.com/material-foundation/google-fonts-flutter/issues. I'm going to close this issue, but if there's something that needs to be done of the Flutter side, please feel free to reopen.


About Attention map Visualization

Hi, How to visualize the attention map when performing a prediction task?

When the model is called for output in exp_long_term_forecasting.py, attention is returned if the parameter output_attention=True is set. But here outputs = self.model(batch_x, batch_x_mark, dec_inp, batch_y_mark)[0] received only the predicted value output and ignored the attention returned, So where does the visualized attention map come from?
What part of the code do I need to modify if I want to visualize the attention map?

Based on my understanding, the visualization of the temporal 2D-variation in the "TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis" paper is generated by creating two-dimensional tensors. These tensors are obtained by dividing the original time series into segments of length "x," where "x" represents the period length of the considered frequency.
To determine the cutoff length, the authors utilize the FFT algorithm to identify the top frequency, denoted as "k." The cutoff length is then calculated by dividing the total length of the time series by "k."
Each segment of the time series is represented as a cut part and arranged in the 2D tensor, with each segment forming a row in the tensor.
Authors please let me know if my explanation is accurate or if any corrections are needed. Thank you, and I look forward to your response. Goodbye!

Hi, thanks for your interest.
You can follow our previous repo (Autoformer: https://github.com/thuml/Autoformer/blob/main/layers/Transformer_EncDec.py#L50), where the attention map is maintained in the return.


Add the ability to handle freezes

I have a freeze that causes a crash in trainwreck producing a log. It just is stuck with this logger waited a minute or two.
Probably should just dump the stack and move on.

Happy to take a PR, but we're talking about the halting problem here.


Upgrade openapi-typescript-codegen to v0.1.8

This change includes fixes POST requests querystring parameters.

Merging without review because of urgency.


validation comparison - run 007

Run on the BioSamples schema.
Running instructions: see #25
For the 400 accession set:

[x] script to retrieve samples from BioSamples by accession
[x] change json schema conversion templates
[x] validate using biovalidator
[ ] compare results

@theisuru I see in the run007 directory several documents that failed validation:

SAMEA111303371.json
SAMEA111303379.json
SAMEA111308902.json
SAMEA111309343.json
SAMEA111309356.json
SAMEA111309385.json
SAMEA111301963.json

Have you investigated what the issue is?

Related to allOf entry in checklist 56, empty mandatory field. Fixed and re-running in the same run.


RE: URN without definition

Proposal for lacking definition of
urn:cite:perseus:latlexent.lex6395.1 "adjective of belonging to or of Peneus"

Corrected in commit 021ffa0


Exclude health checks from activity log

Hey! I'm loving v0.23, but I've noticed my uptime monitors are causing a lot of logs for the /api/health endpoint. This PR sets requestEventKeySkipSuccessActivityLog to exclude these.

The health endpoint is public and it is better to have logs by defalt so that you know who invoked the action.
You can:

change the min log level to something > 0

add a middleware with Go or JS that will exclude it; I haven't tested them but here is an example:
JS:
// pb_hooks/main.pb.js
routerUse((e) => {
    if (e.request.url.path == "/api/health") {
        return $apis.skipSuccessActivityLog().func(e);
    }

    return e.next()
})

Go:
e.Router.BindFunc(func(e *core.RequestEvent) error {
    if e.Request.URL.Path == "/api/health" {
        return apis.SkipSuccessActivityLog().Func(e)
    }
    return e.Next()
})

As side-note, keep in mind that the develop branch is not safe to be used in production environment and the implemented features that are not in master can change without notice, so I'd recommend to avoid using it for now and switch to the latest stable v0.23.12.

@ganigeorgiev Ha, you closed this as I was rebasing to merge into the develop branch, ignore the random commits. I know it's a public API, but I just can't see those logs being useful. I'll add the middleware to all of my PocketBase apps. Thank you!

@ganigeorgiev The Go middleware works fine!


Add context support for editor property name i18n

Fixes #82788

Two optional params are added to process_name(): full property path & class name

Full property path is enough for most use cases, e.g. constant_force vs force/8_bit
Class name is used when full property paths are the same, but have different meanings, e.g. Normal in Decal.texture_normal and TextureButton.texture_normal

Context is assigned inside EditorPropertyNameProcessor

Context is rarely needed.
Easy to parse when extracting for POT.

Context can be specified either for full/property/path or for Class::full/property/path

Class name is rarely needed. I think this kind of properties should be renamed when possible.
Simplifies theme_overrides_style/normal as it applies to many UI nodes

Note: also needs to update https://github.com/godotengine/godot-editor-l10n/tree/main/scripts to parse these contexts.

Using "Noun" or "Verb" as context is a bad idea because sometimes even identical nouns or verbs can have different meanings.

Granted but it refers to how English uses it, i.e. what word to translate from

Using "Noun" or "Verb" as context is a bad idea because sometimes even identical nouns or verbs can have different meanings.

I think you might be worried that "Noun" and "Verb" won't resolve all the possible ambiguities in the project? These contexts are not part of a fixed set of labels that would be picked from when a new ambiguous string appears. They are chosen on a case-by-case basis for each ambiguous string independently.
In this case, the two existing usages are "Constant Force Applied to the Object" and "Force the Audio File to be Imported as 8-Bit". I thought about "Physics" vs "Audio" too, but it feels weird because the word "force" itself has nothing to do with audio.

Yes, technically the context could be anything to just resolve the collision. I was just arguing it could be a little bit more descriptive. But technically this is not 100% required as long all collisions are resolved.

@Wuzzy2 Any suggestions?

For the physical "Force", name the context "physics".
For the concept of forcing a setting, name the context "forcing a setting".

Changed to "Physics" and "Enforce". I think "forcing a setting" is a bit specific.

I tested the context for Normal and it works for "Geometry", but not for "Ordinary". Theme overrides translate the names without using context.

Good catch! I tested with Ordinary one and no context one being the same, so I didn't spot that bug. I'll work on that.

Thanks!


anndata issue?

After subset genes/cells from the scanpy object, it does not recognise it as anndata object anymore and cannot add any obsm fields. Here, I manage to solve it by import anndata and do anndata.AnnData(adata). However, after this, I cannot change type of my obs fields. For example, if I do adata.obs['xxx'] = adata.obs['xxx'].astype('category'), it does not update the field.

adata = adata[idx,:]
import anndata
adata = anndata.AnnData(adata)
adata.obs['xxx'] = adata.obs['xxx'].astype('category') <--- does not update!

<!-- Put your Error output in this code block (if applicable, else delete the block): -->
```pytb
...

Versions:

scanpy==1.4.3 anndata==0.6.18 umap==0.3.8 numpy==1.16.1 scipy==1.2.0 pandas==0.24.1 scikit-learn==0.20.2 statsmodels==0.9.0 python-igraph==0.7.1 louvain==0.6.1

Hi @SharonWang
I think what's happening here is that after subsetting your anndata object becomes a View of the original object. You cannot assign new data to a view as it's not an AnnData object. You can get a full object instead if you subset and add .copy() at the end. Something like this:
adata_sub = adata[adata.obs.cluster.isin(['1', '2']),:].copy()
I'm not sure exactly what your AnnData object is when you instantiate it from a View, but it should be a regular AnnData object again. I'm not entirely sure what is happening with your type conversion, but you can always check if you're dealing with a View or not by just looking at the output of adata, if that's the name of your AnnData object.

Hi @LuckyMD , thanks a lot for your quick reply. The most strange thing is that my colleague ran the same code and using the same singularity and he did not have this problem, which means that after subsetting, he managed to get an anndata object by just doing;
adata_sub = adata[adata.obs.cluster.isin(['1', '2']),:]
without copy().
Would it be possible to know that at what circumstances the anndata object will be switched to a VIEW object?

Would it be possible to know that at what circumstances the anndata object will be switched to a VIEW object?

Once you've subset it.
I'd also recommend updating your versions of scanpy and anndata to avoid more bugs!


Cannot make Conda environment

Hello, thank you for sharing your work! I tried creating the Conda environment running conda env create -f environment.yml, but the process got stuck with the message Solving environment: /. I have the same issue both on WSL and on Ubuntu. Am I skipping any pre-installation step? Thanks

Problem solved - I installed using python 3.7.2.

Problem solved - I installed using python 3.7.2.

What does it mean? use conda env create -f environment.yml?

@repoholder23 @fikry102  Can you specify how you solved it? I face same issue. Thanks!


[VL] Forbid unsupported write using velox

What changes were proposed in this pull request?
This pr does two things:

Forbid velox write with ctas. It can be supported in Spark3.4
Forbid velox dynamic partition and bucket write. As mentioned at https://github.com/oap-project/gluten/issues/2042, it would fail if we use dynamic partition write with velox. There is a lot of work need to be done. This pr just throw exception in advance when contains partition or bucket.

How was this patch tested?
add test

cc @JkSelf @zhouyuan thank you


Fork post-processors before loading the language model.

This prevents out-of-memory errors when the system's RAM is nearly full. With this commit, I can launch a worker which requires 2.4GB of RAM on a server with 2.6GB free; otherwise, I get an out of memory error. Once the LM has been loaded into memory, the footprint is huge so a fork is expensive.

Thanks!


ckanext.spatial.common_map.subdomains not used?

I am using SSL, so with ckanext-spatial, I needed to use a custom tile server just so I could add the extra two characters in the url :)
I see SSL is now working without the custom server (brilliant!) but I'd like to keep using both extensions for a little while longer and stick with the custom server.
In any case, the problem: I've included the {s} wildcard for subdomains but it isn't getting replaced by one of the characters in ckanext.spatial.common_map.subdomains as used to happen with ckanext-spatial.

I found this as well.
The lastest version of OpenLayers says it you can specify the {s} as {a-d}. Assuming that your subdomains are just represented as  {a-d}-place.something replace as a-place.something, b-place.something.
But I am wondering if this is an earlier version of the OpenLayers?
I saw doc: http://openlayers.org/en/latest/apidoc/ol.source.XYZ.html

The version of OpenLayers looks to be a couple of years old.
Is there any work currently being done around updating the version of OpenLayers?

Well, that's a very timely question, as a beta version of the integration
with OpenLayers 4.2 is available at pduchesne/ckanext-geoview#ol4 .
Be welcome to be an early adopter, or wait for its merging into the
official branch, hopefully in the coming weeks.
Le 13 juil. 2017 9:25 AM, "Dythya"<EMAIL_ADDRESS>a écrit :
The version of OpenLayers looks to be a couple of years old.
Is there any work currently being done around updating the version of
OpenLayers?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ckan/ckanext-geoview/issues/9#issuecomment-314995108,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWOHNoHskGZ39ogITg2SqyVb-ETHm_Xks5sNcZ2gaJpZM4EMyqo
.

Thanks for that.

This would appear to be fixed, I see requests to
http://stamen-tiles-b, c, d in the network activity


error: cannot download type_getattro.patch from any mirror (6cndicniv2yhsaiij4fv8ynlfxyxad27-type_getattro.patch.drv)

Issue description
Out of curiosity I decided to attempt to build Wesnoth from scratch. Unexpectedly, it failed on a step related to some Python patching. The package is currently non-reproducible.
Failed derivation: 6cndicniv2yhsaiij4fv8ynlfxyxad27-type_getattro.patch.drv
installing 'wesnoth-1.14.3'
these derivations will be built:
  /nix/store/1baxjcdw990800g0wxs0bgx2fbyv6yc2-gfortran-7.3.0.drv
  /nix/store/zig7hvxab4y836js18rx5l48skjjz252-gfortran-wrapper-7.3.0.drv
  /nix/store/3kqmfyyp8dir4gws0mv51xzb8asa26l2-openblas-0.3.0.drv
  /nix/store/6cndicniv2yhsaiij4fv8ynlfxyxad27-type_getattro.patch.drv
  /nix/store/gv96gvywp9vybxi407znd8fs1k3gjpvp-python-2.7.15.drv
  /nix/store/cjai77jxa1dbf1mnqwvk3ssshgc2g3cd-hook.drv
  /nix/store/b5hkb8zwwix6iwzpak18cnz7n1v7ix38-python2.7-setuptools-39.0.1.drv
  /nix/store/g7y6lbsqh6fdqa8j53pk26ivvbl8j8ig-python2.7-bootstrapped-pip-10.0.1.drv
  /nix/store/6d7f6wx8anfabjaxl2z596ybpw9l247a-python2.7-coverage-4.5.1.drv
  /nix/store/nfqssabzwnvbpiz4n0r6rgnidi0vhf6q-python2.7-nose-1.3.7.drv
  /nix/store/d7j52r8668033j73zhwl5ggxq97hapy6-python2.7-numpy-1.14.3.drv
  /nix/store/04pcgv411xmc6ms5w427l8rngv4sq42q-boost-1.67_0.drv
  /nix/store/05kxr8fz1az65zs8kp4wlc7w6kiz6f5n-xineramaproto-1.2.1.tar.bz2.drv
  /nix/store/cna0p62gs2r0gh3ql6yl56zvrxjxhw92-libxml2-2.9.8.drv
  /nix/store/q9p0gq5nl2j0mzlx1b47riphm7im44mq-libxslt-1.1.32.drv
  /nix/store/4qhkcxzhsz3jfc1wm66w4lvsjfdm0sj8-fontconfig-2.12.6.drv
  /nix/store/90f4y2rikcf70pnijlzrqzy65n4cjyb3-util-linux-2.32.tar.xz.drv
  /nix/store/aqq0yxdxhz21718viq6f093mqzd3r44d-util-linux-2.32.drv
  /nix/store/5kv31dyk5ib59zb1wvlim4crzq6mnywh-glib-2.56.0.drv
  /nix/store/dx2pbr9x6v2zf7v9v3hjj4q2b38jf2ii-xcb-util-0.4.0.tar.bz2.drv
  /nix/store/y4q15n8ss4fia91wrhr1b4ypcvr34pc8-xcb-proto-1.12.tar.bz2.drv
  /nix/store/j9nj7q4av0kj9bzazfw566ffa2vvd5y2-xcb-proto-1.12.drv
  /nix/store/xzjwkhhs9w88mm3smph3qrl0bqdcyn93-libxcb-1.12.drv
  /nix/store/6ppxzayb2q7z28zgy3lm25hz0z1xaaim-xcb-util-0.4.0.drv
  /nix/store/85jki4ihgcls5mbwprdzgw0n06pxb297-xf86bigfontproto-1.2.0.drv
  /nix/store/5ipibc58y1ahdrpg07fksw107szm4ssv-xtrans-1.3.5.tar.bz2.drv
  /nix/store/grqkm9qpj7viz077w5k3kjpy2kc3vwly-xtrans-1.3.5.drv
  /nix/store/wssdn230lp1mdbr5k2pxgr20hyc63ar7-libX11-1.6.5.drv
  /nix/store/gp9mz8bjd912s0kgs7lnzsx69v06zzby-libXrender-0.9.10.drv
  /nix/store/xpqmwvdmnikssy9zaj1yl0z7sp5gkan5-libXext-1.3.3.drv
  /nix/store/0ml7z43i89hc9nacgz29m6hywhfj0ad5-cairo-1.15.12.drv
  /nix/store/0s0sp7131p2qzz6xq6zcw4g9h23p0yh9-asciidoc-8.6.9.drv
  /nix/store/4a8zn0z5s3ziyidrvkasjj9v542wak2c-libXi-1.7.9.drv
  /nix/store/yxd8imkws1wrkm9avqfxldn2plcxplv2-libICE-1.0.9.drv
  /nix/store/b0944c8i0isigz2qfwsclxindzrxzb90-libSM-1.2.2.drv
  /nix/store/yyw5pvzafbxz98ryjw8m7kg3v368z0fi-xz-5.2.4.drv
  /nix/store/2izjzpnsgh3jh00al3pklcjzj1al0gdp-python3-3.6.5.drv
  /nix/store/rgn4ck19hikgag1i8g8misr51q4jfpra-unbound-1.7.1.tar.gz.drv
  /nix/store/b02kn6aqcyndxhj84ssg6qrsim9iwzam-unbound-1.7.1.drv
  /nix/store/aixj4dqynnad9mfc7wfzk19q8icmrsqr-guile-2.0.13.drv
  /nix/store/wn7cjnmzg71r4l0hy65vndv6vh1ys48p-autogen-5.18.12.drv
  /nix/store/bh68sqj0nd2glxdzbqlcmy3lyq0k4gkd-gnutls-3.6.2.drv
  /nix/store/4d3ddj9fw6ahfyj50iqp93h6z998nl3j-libmicrohttpd-0.9.59.drv
  /nix/store/q60ypiljxhjxwh9acqr1spasqdsd942p-hook.drv
  /nix/store/3gfqpnnqj7dvdjchp7cm52zp95b4dfrs-python3.6-setuptools-39.0.1.drv
  /nix/store/3k43v6rbycmr0i9m7yc2n75z4k46sdi9-python3.6-bootstrapped-pip-10.0.1.drv
  /nix/store/726bc46s3nd6ylkwl5vvjn3lygw6yqjx-python3.6-lxml-4.2.1.drv
  /nix/store/jrjbx39g1pcync4ibz8q88s2ad21g8kn-python3-3.6.5-env.drv
  /nix/store/prxyil44vwn6ckw1adhkjhp6qlm2ipx2-meson-0.46.1.drv
  /nix/store/vwb19wsjg5x240gdy0ayckvwny7phczn-ninja-1.8.2.drv
  /nix/store/s65zhcrdxmzxy1k1q658mn9lg8m2d1q4-systemd-238.drv
  /nix/store/d2lizsanmwlwjhd7skjlagiq6h2jhr17-dbus-1.12.8.drv
  /nix/store/8s859ms1hcr0yh54pinqljm5iad72qr8-libpulseaudio-11.1.drv
  /nix/store/b81gys8i7hrggaqpwlbqnf45svyjla9k-libXcursor-1.1.15.drv
  /nix/store/am0f85kacxazfmvkfkg32cc11nn6hzf2-e2fsprogs-1.44.2.drv
  /nix/store/rdmfknwimwp121wj2rmdjy634gw4gq6s-libarchive-3.3.2.drv
  /nix/store/dqb0r4f3g7jb1ghdak182apk1bhvg1cc-cmake-3.11.2.drv
  /nix/store/avsz82b8brx7brm535b7q4pkx0sr0yvd-doxygen-1.8.14.drv
  /nix/store/f35znw7z4jqlhh250w8jplidwq8r513k-libxkbcommon-0.8.0.drv
  /nix/store/xfca3m3pia4b37qvdcyd4v48myv0vfhh-xineramaproto-1.2.1.drv
  /nix/store/gnxpskakwybrgzmbsw7k13ahsdg5w3fz-libXinerama-1.1.3.drv
  /nix/store/x33z1whmsdipran9nnkfg5hg2b2mxknj-libXrandr-1.5.1.drv
  /nix/store/hhxrgb15x99xv075da72xrgfyvqxg3sb-SDL2-2.0.8.drv
  /nix/store/jvy6fgca65qggj4ybhnbj2xq482ayrsg-scons-3.0.1.drv
  /nix/store/pc190bp5gribgkk6d3iyj11n503x00dc-serf-1.3.9.drv
  /nix/store/h0rc9mp0z2qafz3qii0hg31ky8rv2y8f-subversion-1.9.7.drv
  /nix/store/49v56biqm38mqsgs0hbr0gczl107ksjm-smpeg-r412.drv
  /nix/store/i2r94x1q2fpiw47qpmval12lgx9jlqdy-smpeg2-svn412.drv
  /nix/store/xwh4c29zm18kdk66nzsc7b5kl0f20naa-eigen-3.2.10.drv
  /nix/store/ff78y72b23g75gcf9ywsskn1sqnfww61-libjack2-1.9.12.drv
  /nix/store/vn9avibd64kgj5xpn85v82ij41gzcy6j-fluidsynth-1.1.10.drv
  /nix/store/1brrf1cn1x21k1pbwzy9ch73bylhchvw-SDL2_mixer-2.0.2.drv
  /nix/store/f6pck5py9nb3g2xwrwz3g1kq9zx482l9-libXt-1.1.5.drv
  /nix/store/4k4vmxbbsllgq3pk9i3gfhwyfnkfyzar-libXpm-3.5.12.drv
  /nix/store/2jcnc3baw4xwjcayfcippcjfh3xsry48-SDL2_image-2.0.3.drv
  /nix/store/57zfyl0xdgr3242m19pq7vgwh6r5dgcx-SDL2_ttf-2.0.14.drv
  /nix/store/d0bqzplrj4571y3cxjjk8k5cr660231f-SDL2_net-2.0.1.drv
  /nix/store/sl98z7aid40qnznihj2jip4dp6s9myfy-fribidi-1.0.4.drv
  /nix/store/gi8qmrpp44mbvfbwc814kz0dm4c4c5ij-libXft-2.3.2.drv
  /nix/store/jp6n54g8frf4g0h9wjamb4wps77nk9nn-harfbuzz-1.7.6.drv
  /nix/store/jwcdb7qpmcjh81lsar1g829c1lf3d2rc-absolute_gir_path.patch.drv
  /nix/store/yqif2kz6n59ljjhz1174q39sz1f36gz2-gobject-introspection-1.56.0.drv
  /nix/store/ywbawg4lbzx89z2kzpmjngw7619k2k5d-pango-1.40.14.drv
  /nix/store/9lxjsxvqab1x6121hgdbqlm4mfcjac2r-wesnoth-1.14.3.drv
building '/nix/store/6cndicniv2yhsaiij4fv8ynlfxyxad27-type_getattro.patch.drv'...
building '/nix/store/85jki4ihgcls5mbwprdzgw0n06pxb297-xf86bigfontproto-1.2.0.drv'...
building '/nix/store/1baxjcdw990800g0wxs0bgx2fbyv6yc2-gfortran-7.3.0.drv'...
building '/nix/store/dx2pbr9x6v2zf7v9v3hjj4q2b38jf2ii-xcb-util-0.4.0.tar.bz2.drv'...
unpacking sources
unpacking source archive /nix/store/55538yli04jdvpp37c5lvgv89958m8nq-xf86bigfontproto-1.2.0.tar.bz2
source root is xf86bigfontproto-1.2.0
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file xf86bigfontproto-1.2.0/ChangeLog
patching sources
configuring
configure flags: --prefix=/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0
checking for a BSD-compatible install... /nix/store/6vi2j0q737v63i129x888g81iwmnrj2l-coreutils-8.29/bin/install -c
$CPATH is `/nix/store/8ikswbw1iys4qdlslxxh1npd2jpm3c4s-zlib-1.2.11-dev/include'
$LIBRARY_PATH is `/nix/store/i8pq6i4i2pwjbz7jh3mnv4fvar6095xv-zlib-1.2.11/lib'
unpacking sources
unpacking source archive /nix/store/m16cs9a00znx11mqfbkmk5f3i7gyn1ca-gcc-7.3.0.tar.xz

trying https://github.com/python/cpython/pull/6118/commits/8c6da2d7e7e719c40fb539b7f7cb7583cccc5527.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

trying http://tarballs.nixos.org/sha256/1sahmrgbpyki4bb72hxym0zvxwnycmswsxiisgqlln9vrdlr9r26
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/6vi2j0q737v63i129x888g81iwmnrj2l-coreutils-8.29/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xf86bigfontproto.pc
building
build flags: -j4 -l4 SHELL=/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash
make: Nothing to be done for 'all'.
installing
install flags: SHELL=/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash appdefaultdir=/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/share/X11/app-defaults install
make[1]: Entering directory '/tmp/nix-build-xf86bigfontproto-1.2.0.drv-0/xf86bigfontproto-1.2.0'
make[1]: Nothing to be done for 'install-exec-am'.
test -z "/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/lib/pkgconfig" || /nix/store/6vi2j0q737v63i129x888g81iwmnrj2l-coreutils-8.29/bin/mkdir -p "/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/lib/pkgconfig"
 /nix/store/6vi2j0q737v63i129x888g81iwmnrj2l-coreutils-8.29/bin/install -c -m 644 xf86bigfontproto.pc '/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/lib/pkgconfig'
test -z "/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/include/X11/extensions" || /nix/store/6vi2j0q737v63i129x888g81iwmnrj2l-coreutils-8.29/bin/mkdir -p "/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/include/X11/extensions"
 /nix/store/6vi2j0q737v63i129x888g81iwmnrj2l-coreutils-8.29/bin/install -c -m 644 xf86bigfont.h xf86bigfproto.h xf86bigfstr.h '/nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/include/X11/extensions'
make[1]: Leaving directory '/tmp/nix-build-xf86bigfontproto-1.2.0.drv-0/xf86bigfontproto-1.2.0'
propagating requisites
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0/lib
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
patching script interpreter paths in /nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0
checking for references to /tmp/nix-build-xf86bigfontproto-1.2.0.drv-0 in /nix/store/nhwqpn6nmvvysg43jh37spzid9m0d9vf-xf86bigfontproto-1.2.0...
building '/nix/store/aixj4dqynnad9mfc7wfzk19q8icmrsqr-guile-2.0.13.drv'...
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 406 Not Acceptable
error: cannot download type_getattro.patch from any mirror
builder for '/nix/store/6cndicniv2yhsaiij4fv8ynlfxyxad27-type_getattro.patch.drv' failed with exit code 1
cannot build derivation '/nix/store/gv96gvywp9vybxi407znd8fs1k3gjpvp-python-2.7.15.drv': 1 dependencies couldn't be built
building '/nix/store/rgn4ck19hikgag1i8g8misr51q4jfpra-unbound-1.7.1.tar.gz.drv'...
building '/nix/store/90f4y2rikcf70pnijlzrqzy65n4cjyb3-util-linux-2.32.tar.xz.drv'...
cannot build derivation '/nix/store/04pcgv411xmc6ms5w427l8rngv4sq42q-boost-1.67_0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/avsz82b8brx7brm535b7q4pkx0sr0yvd-doxygen-1.8.14.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/5kv31dyk5ib59zb1wvlim4crzq6mnywh-glib-2.56.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/yqif2kz6n59ljjhz1174q39sz1f36gz2-gobject-introspection-1.56.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ff78y72b23g75gcf9ywsskn1sqnfww61-libjack2-1.9.12.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xzjwkhhs9w88mm3smph3qrl0bqdcyn93-libxcb-1.12.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/cna0p62gs2r0gh3ql6yl56zvrxjxhw92-libxml2-2.9.8.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/q9p0gq5nl2j0mzlx1b47riphm7im44mq-libxslt-1.1.32.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vwb19wsjg5x240gdy0ayckvwny7phczn-ninja-1.8.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jvy6fgca65qggj4ybhnbj2xq482ayrsg-scons-3.0.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/9lxjsxvqab1x6121hgdbqlm4mfcjac2r-wesnoth-1.14.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/9lxjsxvqab1x6121hgdbqlm4mfcjac2r-wesnoth-1.14.3.drv' failed

Steps to reproduce
Run in bash shell:
nix-env -j$(nproc) --cores $(nproc) --option binary-caches "" -i wesnoth &> /tmp/nix.log
In my case $(nproc) evals to 4
For the exact same error log, re-run it after the first time.
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the results.
 - system: `"x86_64-linux"`
 - host os: `Linux 4.9.0-6-amd64, Debian GNU/Linux, 9 (stretch)`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(name): `"nixpkgs-18.09pre143801.5ac6ab091a4"`
 - nixpkgs: `/home/name/.nix-defexpr/channels/nixpkgs`

(Username was redacted to name)

Fixed by https://github.com/NixOS/nixpkgs/pull/43130.


Error whilst installing Netbeans 8.2

Everytime I attempt to install Netbeans on my linux machine i get this error.
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
An error occured while initializing the NetBeans IDE installer UI.
Most probably the running JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.
/usr/local/java/jdk1.8.0_121/jre/lib/i386/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory

Exception:
java.lang.UnsatisfiedLinkError:
/usr/local/java/jdk1.8.0_121/jre/lib/i386/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory

You can get more details about the issue in the installer log file:
/home/mikeydoesit/.nbi/log/20170214211338.log

Can anybody help me correct this issue please?

This seems to be a Netbeans installation issue, not related to this plugin directly.
Try the instructions posted on this SO question, they should help you get NB up and running.

Thank You
@ZaLiTHkA


[FEATURE] hovering of login signup to be improved

Description
if shrinks on hover which doesnot look great , would like to improve it
Screenshots
No response
Additional information
No response

@harshita-2003 Someone already working on this in another issue. Please find an another one


Recoverable Transaction History

Soundtrack of this PR: Roy Ayers - Oh What a Lonely Feeling
Motivation
Add support for Recoverable Transaction History
In this PR

New tests
FFI Wrappers
Updates to TxOut definitions
Updates to TransactionBuilder
BlockVersion enum
Updated libmobilecoin-ios-artifacts generated

TODO Before Merge

make static libraries compatible with latest mobilecoin master

Future Work

Dynamically pull block_version from the ledger and store for use in the TxBuilder

Related PRs
mobilecoin https://github.com/mobilecoinfoundation/mobilecoin/pull/1701
libmobilecoin-ios-artifacts https://github.com/mobilecoinofficial/libmobilecoin-ios-artifacts/pull/20

splitting into two PRs:
Part 1 - https://github.com/mobilecoinofficial/MobileCoin-Swift/pull/127
Part 2 -  https://github.com/mobilecoinofficial/MobileCoin-Swift/pull/128


No rounding when multiplying

Inside
template<int INT_BIT_LEN, int FRAC_BIT_LEN>
template<int T1, int T2>
FixedPointNumber<INT_BIT_LEN, FRAC_BIT_LEN> FixedPointNumber<INT_BIT_LEN, FRAC_BIT_LEN>::operator* (const FixedPointNumber<T1, T2> &rhs) const

The bits behind LSB are discarded, but it's better to round it to LSB.
FixedPointNumber res;
uint64_t product = lv * rv;
product >>= T2; // No rounding here

solved at 89f314c


Feat: skip duplicated types during spoon model building

A project might have sub projects or files in some resources folder containing classes of the same name as another class in another location. This PR suggests that we ignore loading the same type twice by one-by-one loading in each files into SpoonLauncher while skipping the type already occured to improve usability for the CI integration by avoiding spoon.compiler.ModelBuildingException. :)
what this PR does:

Move all buggy files into a new folder in the resources folder
create a new folder for duplicated files in the resources folder
Add one-by-one loading logic into SpoonLauncher
Add JSAP option to activate that.

@monperrus @fermadeiral

What about launcher.getEnvironment().setIgnoreDuplicateDeclarations(true); instead of all those things?

convenience command !  :)

Thank you, Henry!


Filter containing and not containing at the same time

I assume and I am a completely clueless about filtering rules and that this question is probably out of scope of your rules section but your help would be greatly appreciated.
What I want to do is to match every post that contains the word "bus", "train" or "flight" as long as it doesn't include the word Greyhound but I have no idea how to make this possible in just one rule because I tried to use two rules but all post not containing "Greyhound".
My current Trigger Agent is as follows:
{
  "expected_receive_period_in_days": "2",
  "keep_event": "true",
  "rules": [
    {
      "type": "regex",
      "value": "bus|train|flight",
      "path": "content"
    }
  ],
  "message": "Looks like your pattern matched in '{{value}}'!"
}

Remove the "message" key from this agent.  "keep_event" will forward any matching events as-is.
Put another Trigger Agent after this one, type !regex, value "greyhound", with the path "$.content".
Generally speaking, try to break up tasks like this as much as possible.  Agents (in terms of system resources) are cheap, so use as many as you need.  Check the "Propagate immediately" box as necessary to get better response time (but don't use it all the time or you'll bog down the scheduler).

Generally speaking, try to break up tasks like this as much as possible. Agents (in terms of system resources) are cheap, so use as many as you need.

That is very true.
In this particular case you could also add another rule to the TriggerAgent with !regex and value set to greyhound.

I never thought about using more than one agent to use different filters but it's indeed a clever idea.
Thank you both for your help!


Extrapolation error when following the tutorial of navigation2

[x] Waffle Pi
[x] ROS 2 Dashing Diademata
[x] Raspberry Pi 3
[x] Ubuntu Server 18.04 or later
[x] Ubuntu 18.04 LTS (Bionic Beaver)

I followed the Turtlebot3 Tutorial to create a map with SLAM and use it to follow the Tutorial on Navigation2.
$ ros2 launch turtlebot3_bringup robot.launch.py
$ ros2 launch turtlebot3_navigation2 navigation2.launch.py map:=$HOME/map.yaml

I set the estimated 2d pose in rviz, then the following error message is posted in the rviz-terminal:
[rviz2-9] [ERROR] [rviz2]: Lookup would require extrapolation into the future.  Requested time<PHONE_NUMBER>.39042 but the
latest data is at time<PHONE_NUMBER>.34734, when looking up transform from frame [base_scan] to frame [map]

Now, when I set a goal, the path is calculated and drawn, but the robot only moves in abrupt moves and the navigation is not completed.

@ClarkyMacLeod
Hi, thank you for reporting the issue. We'll take a look at it and get back to you.
Thank you for your patience.

@ClarkyMacLeod
Hi. Thanks for your interest our TB3!
Please check Timesync between your TurtleBot3 and Remote PC?
Please refer to the 33.2 Timesync between TurtleBot3 and Remote PC shown in the eManual.
Test above and let me know if it still doesn't work,
Thank you.

Please check Timesync between your TurtleBot3 and Remote PC?
Please refer to the 33.2 Timesync between TurtleBot3 and Remote PC shown in the eManual.
Test above and let me know if it still doesn't work,
Thank you.

Hi ashekim,
yes I tried the Timesync with ntp.ubuntu.com, also I tried to use the remote PC as timesync server.
It still doesn't work.

@ClarkyMacLeod
Hi :)
Would you check frequency of tf topics using below commands?
$ ros2 topic hz /tf
OpenCR publishes tf topics in 30Hz. So, If the frequency is significantly different, check your OpenCR and network environments.
I attach the link below. Thank you for your reference.
ref 1.
ref 2.
And it would be nice to ask questions on the ROS forum as well.
Thank you.

This issue thread will be closed as there is no recent activity. Please feel free to reopen if needed.


Grammatical changes to README.md

A series of small grammatical changes to make the README maker a little more sense.

Thanks Aaron!


Setting up Windows Authentication for web application

Cookbook version
iis (6.8.0)
Chef-client version
13.6.4
Platform Details
Windows 2008 R2
Scenario:
Setting up Windows Authentication for web application
Steps to Reproduce:
iis_site 'MySiteName' do
protocol :http
#port 80 Default port is 80
path "D:\Folder\Path"
action [:add,:start]
end
Expected Result:
How do I enable windows authentication and disable anonymous auth?
Actual Result:
I did not find any doc. This is a feature request.

The following works for me.


adding SentarExpansion

Here is the .netkan file.
https://www.dropbox.com/s/oqfea4pmo20e9nz/SentarExpansion.netkan?dl=0

Are the cache folders intentionally installed or are those files extraneous?

Intentional.

Ty. Netkan is merged in #2035 and will be live for end-users within 3 hours.


CUDA_ERROR_LAUNCH_FAILED - possible memory issue

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
I have modified an example keras project (https://github.com/keras-team/keras/blob/master/examples/lstm_seq2seq.py) by just removing the dataset size loaded.

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10 Pro

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
N/A

TensorFlow installed from (source or binary):
tensorflow-gpu installed through pip

TensorFlow version (use command below):
Git Version: v2.3.0-rc2-23-gb36436b087
Version: 2.3.0

Python version:
3.8.5 64-bit

Bazel version (if compiling from source):
N/A

GCC/Compiler version (if compiling from source):
N/A

CUDA/cuDNN version:
CUDA: 10.1
cuDNN: 7.6

GPU model and memory:
GPU: GTX 1080 Ti
Memory: 11GB (9.5 GB effective from log)

-System Memory:
32GB
Describe the current behavior
Using the script here (https://github.com/keras-team/keras/blob/master/examples/lstm_seq2seq.py) to start learning a bit about LSTM's and Sequence2Sequence learning. The result is when training starts I have ~16 GB allocated by CPU side over the epoch it gradually raises itself until it nearly maxes out the system memory. Sometimes I can complete a few epochs but eventually I get the following error:
"CUDNN_STATUS_INTERNAL_ERROR
in tensorflow/stream_executor/cuda/cuda_dnn.cc(1892): 'cudnnRNNForwardTraining( cudnn.handle(), rnn_desc.handle(), model_dims.max_seq_length, input_desc.handles(), input_data.opaque(), input_h_desc.handle(), input_h_data.opaque(), input_c_desc.handle(), input_c_data.opaque(), rnn_desc.params_handle(), params.opaque(), output_desc.handles(), output_data->opaque(), output_h_desc.handle(), output_h_data->opaque(), output_c_desc.handle(), output_c_data->opaque(), workspace.opaque(), workspace.size(), reserve_space.opaque(), reserve_space.size())'
2020-08-23 21:11:43.812986: E tensorflow/stream_executor/cuda/cuda_event.cc:29] Error polling for event status: failed to query event: CUDA_ERROR_LAUNCH_FAILED: unspecified launch failure"
My assumption is this has to do something with the memory allocation going a bit crazy and eventually triggering an OOM under the hood, but I'm not 100% sure how to get anymore data to help determine what is going on.
I have tested it at 100k items and everything works as expected, but not 124k. My assumption is something is moving everything over to the GPU and thus crazy allocations are happening once the entire dataset won't fit into GPU memory.
If there is something dumb I didn't do to prevent the memory from scaling crazy I apologize, but hadn't got an answer on stackoverflow so figured asking here might be better.
Describe the expected behavior
I would expect the memory usage to scale only on batch_size, not total dataset size. I would expect if I can complete an epoch once I should be be able to complete the remaining ones without an error. I have built a generator to see if maybe the issue was all the memory being allocated, but that also didn't fix the issue. I could see adding more memory but seems like the issue is more that memory use scales by total dataset size. When doing image training I haven't ever seen anything like that, only with this LSTM network.
Standalone code to reproduce the issue
https://github.com/keras-team/keras/blob/master/examples/lstm_seq2seq.py
Run this script but set the total size to 124000.
Output
(.venv) PS C:\Dev\CompressedMemory>  cd 'c:\Dev\CompressedMemory'; & 'c:\Dev\CompressedMemory.venv\Scripts\python.exe' 'c:\Users\ChaseRLewis.vscode\extensions\ms-python.python-2020.8.103604\pythonFiles\lib\python\debugpy\launcher' '50370' '--' 'c:\Dev\CompressedMemory\train.py'
2020-08-23 20:59:49.133632: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
v2.3.0-rc2-23-gb36436b087
2.3.0
Number of samples: 124325
Number of unique input tokens: 91
Number of unique output tokens: 114
2020-08-23 21:08:54.280683: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll
2020-08-23 21:08:54.314777: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:0a:00.0 name: GeForce GTX 1080 Ti computeCapability: 6.1
coreClock: 1.6705GHz coreCount: 28 deviceMemorySize: 11.00GiB deviceMemoryBandwidth: 451.17GiB/s
2020-08-23 21:08:54.322233: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
2020-08-23 21:08:54.355314: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cublas64_10.dll
2020-08-23 21:08:54.386173: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cufft64_10.dll
2020-08-23 21:08:54.398183: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library curand64_10.dll
2020-08-23 21:08:54.419257: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusolver64_10.dll
2020-08-23 21:08:54.439330: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusparse64_10.dll
2020-08-23 21:08:54.550070: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudnn64_7.dll
2020-08-23 21:08:54.554182: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-08-23 21:08:54.567696: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations:  AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-08-23 21:08:54.662347: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2b911c0e2b0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-08-23 21:08:54.667058: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-08-23 21:08:54.671211: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:0a:00.0 name: GeForce GTX 1080 Ti computeCapability: 6.1
coreClock: 1.6705GHz coreCount: 28 deviceMemorySize: 11.00GiB deviceMemoryBandwidth: 451.17GiB/s
2020-08-23 21:08:54.686125: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
2020-08-23 21:08:54.699127: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cublas64_10.dll
2020-08-23 21:08:54.702580: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cufft64_10.dll
2020-08-23 21:08:54.716295: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library curand64_10.dll
2020-08-23 21:08:54.719900: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusolver64_10.dll
2020-08-23 21:08:54.733723: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusparse64_10.dll
2020-08-23 21:08:54.737621: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudnn64_7.dll
2020-08-23 21:08:54.749712: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-08-23 21:08:55.792500: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1257] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-08-23 21:08:55.796084: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1263]      0
2020-08-23 21:08:55.798310: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1276] 0:   N
2020-08-23 21:08:55.801223: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1402] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9525 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:0a:00.0, compute capability: 6.1)
2020-08-23 21:08:55.821954: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2b938950590 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-08-23 21:08:55.832406: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce GTX 1080 Ti, Compute Capability 6.1
Epoch 1/300
2020-08-23 21:09:07.991819: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cublas64_10.dll
2020-08-23 21:09:08.422643: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudnn64_7.dll
3108/3108 [==============================] - ETA: 0s - loss: 0.21842020-08-23 21:11:43.812127: E tensorflow/stream_executor/dnn.cc:616] CUDNN_STATUS_INTERNAL_ERROR
in tensorflow/stream_executor/cuda/cuda_dnn.cc(1892): 'cudnnRNNForwardTraining( cudnn.handle(), rnn_desc.handle(), model_dims.max_seq_length, input_desc.handles(), input_data.opaque(), input_h_desc.handle(), input_h_data.opaque(), input_c_desc.handle(), input_c_data.opaque(), rnn_desc.params_handle(), params.opaque(), output_desc.handles(), output_data->opaque(), output_h_desc.handle(), output_h_data->opaque(), output_c_desc.handle(), output_c_data->opaque(), workspace.opaque(), workspace.size(), reserve_space.opaque(), reserve_space.size())'
2020-08-23 21:11:43.812986: E tensorflow/stream_executor/cuda/cuda_event.cc:29] Error polling for event status: failed to query event: CUDA_ERROR_LAUNCH_FAILED: unspecified launch failure
2020-08-23 21:11:43.839269: W tensorflow/core/framework/op_kernel.cc:1767] OP_REQUIRES failed at cudnn_rnn_ops.cc:1517 : Internal: Failed to call ThenRnnForward with model config: [rnn_mode, rnn_input_mode, rnn_direction_mode]: 2, 0, 0 , [num_layers, input_size, num_units, dir_count, max_seq_length, batch_size, cell_num_units]: [1, 114, 256, 1, 280, 32, 256]
2020-08-23 21:11:43.853074: F tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc:220] Unexpected Event status: 1

I am also experiencing the same issue, however, I am a beginner with TensorFlow so it's likely my code's fault.
My system also uses a GTX 1080 Ti.
I have tried a couple configurations according to this:
Version             | Python version | Compiler     | Build tools              | cuDNN | CUDA
-----------------------|------------------|--------------|----------------------|---------|-------
tensorflow_gpu-2.3.0 |      3.8         | MSVC 2019 | Bazel 3.1.0              |     7.4    | 10.1
tensorflow_gpu-2.1.0 |      3.7         | MSVC 2019 | Bazel 0.27.1-0.29.1 |     7.4    | 10.1
I have written custom code, use Win10 Home x64, IntelliJ IDE.

@ChaseLewis
Could you please provide the complete code to reproduce the issue reported here?
Also, please take a look at this comment from a similar issue and let us know if it helps.
Also refer to link,link1,  #34695 #37932 #39264
Thanks!


Fix overflow handling for signed int abs

Fix #1911

@scoder this is still a WIP, I'm all ears for comments / improvements

ok, it may be a WIP, but it passes validation :-)

I guess the first comment is likely to be "add a test".
Looking at the bug report it looks like you may have to play with CFLAGS to make it reliable, so it might need to be a srctree list (look in the tests folder for files ending with .srctree, but it'll let you have a "setup.py" with compiler options)

srctree added. Let see how it goes validation-wise :-)

you may have to play with CFLAGS to make it reliable

If needed, # distutils: extra_compile_args=… should work in .pyx file tests.

@scoder I reused an existing test case with the extra distutils flag then. Does it make sense?

All green \o/ anything else needs to be addressed?

Thanks


Estudo do dia 14/12/2021

[x] Constructing Strings with Variables
[x] Appending Variables to Strings
[x] Find the Length of a Strings
[x] Use Bracket Notation to Find the First Character in a String
[x] Understand String Immutability
[x] Use Bracket Notation to Find the Nth Character in a String
[x] Use Bracket Notation to Find the Last Character in a String
[x] Use Bracket Notation to Find the Nth-to-Last Character in a String
[x] Word Blanks
[x] Store Multiple Values in one Variable using JavaScript Arrays

Estudo do dia 14/12/2021 finalizado! 😎


Comments modal

Javascript Capstone - final project

Use JavaScript to make websites dynamic and build basic single page apps. ✔
Use ES6 syntax. ✔
Use ES6 modules. ✔
Use callbacks and promises. ✔
Use webpack. ✔
Apply JavaScript best practices and language style guides in code. ✔
Use AAA pattern for unit tests. ✔
Write units tests for a JavaScript app. ✔
Follow Gitflow. ✔
Solve simple git conflicts. ✔
Send and receive data from an API. ✔
Use API documentation. ✔
Understand and use JSON. ✔
Make JavaScript code synchronous. ✔
Perform a code review for a team member. ✔

Co-authors: Vitor G. M. & Raúl A. O.
click here to see the live demo
Description video: link

Changes Applied

We included the APIs links in the readme file.
We did code reviews daily in the zoom project meetings.


How to support pre-fetch tokens for objects in context?

As part of the specification of each hook, each field defined in context is explicitly labeled whether it can be used as a Prefetch Token.
Prefetch tokens are important because they are how a CDS service specifies any specific FHIR queries to be run as part of its pre-fetch during the request. A CDS service's discovery endpoint specifies it's pre-fetch as a pre-fetch template.
Currently, our pre-fetch token syntax is nice and simple - it only supports top-level elements. For example, a service responding to the [order-review](https://cds-hooks.org/hooks/order-review/) hook can request pre-fetch data about the patient, like so:
{
  "prefetch": {
    "p": "Patient/{{context.patientId}}"
  }
}

But the service has no way to request pre-fetch data that's based upon the orders object which is also sent in context. Unlike the simple, valued {{context.patientId}}, relating a prefetch template to the orders being sent would necessitate a prefetch key such as: {{context.orders.MedicationRequest.id[0]}} or something even more complicated using FHIRPath.
This inability to refer to objects in context is a gap.
Is there a simple, targeted method to enable this? What about something as straighforward as context...id returning a simple comma-delimited string of FHIR identifiers that could be subsequently used in a search?

What Isaac actually proposed where it says context...id before Github intervened was context.<prefetch key>.<FHIR resource name>.id
I'd be in favor of this.  The reason for putting resource names in is to allow you to search by each resource because the ids aren't unique across resource types.  The comma-separated approach allows you to say something like DeviceRequest?_id={{context.orders.medicationRequest.id}}&_include=DeviceRequest.device
Though that does mean that your prefetch space is going to contain both device requests and devices, the former being redundant with what's already in the hook invocation.

I'd be in favor of this. The reason for putting resource names in is to allow you to search by each resource because the ids aren't unique across resource types.

So is context.<prefetch key>.<FHIR resource name>.id only important in the case where the context value can multiple FHIR resource types?
In the hooks I've seen prototyped today, if the context field value relates to a FHIR resource, there is just a single resource in use so using context.<prefetch key>.id as the prefetch token is not ambiguous.

Right.  If the context element is limited to a single resource type, no need to include the resource name in the path (unless there was some reason we wanted consistency in context strings, perhaps to allow for future evolution of the hook?)

I'm not sure "remove the need to make their own FHIR queries" is necessarily an illegitimate requirement.  It may be that EHRs will choose not to satisfy the prefetch, but at least if the prefetch is computably expressible, an intermediary could do it for them.  My concern is that if prefetch isn't possible, DaVinci is likely to push to drop CDS Hooks and proceed with a custom operation instead where they can demand inclusion of whatever data they like (and still have the flexibility to subsequently query through the inclusion of a hook-like token they can exercise).  I don't think that would be a good outcome.

Note the last part of my statement which was left out: "remove the need to make their own FHIR queries for convenience rather than on better merits". This critical part of my argument is what I'm pushing back against here (which is what I'm hearing is the reasoning behind this request). Please correct my understanding of the situation if I am not understanding this correctly.

My concern is that if prefetch isn't possible, DaVinci is likely to push to drop CDS Hooks and proceed with a custom operation instead where they can demand inclusion of whatever data they like (and still have the flexibility to subsequently query through the inclusion of a hook-like token they can exercise).

I may be further misunderstanding you, but these statements seem like an argument for introduce complexity and promoting a design/approach that I think does not stand on its own merits due to implementers that are prioritizing their convenience above good API/standards design. I know you don't agree with that as well so there must be a disconnect here.

It's not totally clear to me that convenience doesn't itself have merit or that doing so necessarily constitutes bad API design, though I'm open to that perspective.  One challenge that I have is that there isn't anyone who can convincingly make the case that prefetch for convenience/simplification for payers is a bad idea.  (Isaac doesn't speak with as strong an opinion on this as you do :>)  If I have to weigh the cost of enabling (but not mandating support for) more complex prefetch vs. DaVinci mandating that EHRs implement a custom operation instead, I know where I'd land.  If we can convince payers they don't need prefetch, that'd be even better.  However, I'm not confident of my ability to make that pitch given my own ambivilence on the question and the mindset they bring to the table from prior interfaces.

I'll try to add some more context from Da Vinci to see if that helps justify the request or see if we are on the right path.
In our group, @lmckenzi has advocated that we stick with hooks that have been included in the specification, such as order-review. Given that, with the currently defined context and current capabilities of prefetch, we will be unable to send all of the information we know a payer will need to properly respond to a request.
That appears to leave us with two options if we want to be able to send all of the information necessary in a single request:

Define a new hook that has a context with all of the information we need
Enhance prefetch capabilities so that all of the desired information can be sent in the request

As I mentioned before, we have taken Option 1 off of the table to avoid hook proliferation and try to leverage current EHR implementation. We are pursuing Option 2 because payers in our group did not respond well to the suggestion of querying the EHR system.
I understand the benefits that querying the EHR can convey. It gives the payers future opportunities to make decisions on even more data than they may use today. However, our base use case with order-review forces us to query for information that is necessary to all CDS Services.

The base usecase for prefetch - wanting to provide optimal access to data that may already be in memory, minimizing queries when providing data to multiple hook services, etc. all seems to elements associated to resources provided in context, not just those passed as an identifier in the context.  The payer's current preference for prefetch/context data rather than querying their own is not a driver for this architectural change.  The key is that the decision to include a full resource rather than just an identifier in context should not drive whether prefetch is possible.  The decision of identifier vs. full resource should be driven only by whether we believe almost all consumers of the hook will need the full resource rather than just the id.  Ensuring that prefetch is possible with both approaches is the best way of separating these concerns.
Whether some systems rely on prefetch or not (and whether they should) is a separate architectural/cultural question that will need to be addressed separately from the "Is it reasonable to enable prefetch at all here?" question.

Proposed Disposition: Persuasive, the limitation on prefetch token references within prefetch templates will be relaxed to allow for context..[].id
Moved: Isaac Vetter, Second: Ken Kawamoto
Motion tabled to allow for more discussion
MedicationRequest?id={{context.orders.MedicationRequest.id}}
&_include=MedicationRequest:patient
&_include=MedicationRequest:intended-dispenser
&_include=MedicationRequest:requester:Practitioner
&_include=MedicationRequest:medication
&_include=MedicationRequest:on-behalf
&_include=MedicationRequest:insurance:Coverage

I haven't seen more discussion - how do we move this forward?

I think we should.

Poking on this.  There was a proposed disposition, but it never moved forward.  @brynrhodes @isaacvetter - can we take this up at the Thur. Q4 session?

Proposed disposition:
Support the use of Simple FHIRPath as the context selector in prefetch template processing, option 2 below.
Requires the implementer to

Retrieve the "value" from the context based on the context.X reference
Process the remainder of the path as a Simple FHIRPath focused on that "value"
If the result of that process is a collection, "stringify" it as a comma-separated list to put it in the URL

Motion: Lloyd McKenzie/Bob Dieterle:
Further discussion: Propose additional discussion, motion tabled
Propose to take this up on the next CDS WG call on 1/26.

"prescriber": "MedicationRequest?_id={{context.draftOrders.MedicationRequest.id}}&_include=MedicationRequest:author"
Shorthand, requires implementers to perform the expansion and recognize when it's required
"Simple FHIRPath": {{context.draftOrders.entry.resource.ofType(MedicationRequest).id}}
Requires a limited FHIRPath implementation, supports most, if not all the use cases required, implementers would need to concatenate expressions, constrained FHIRPath: https://www.hl7.org/fhir/fhirpath.html#simple
"Full FHIRPath": {{context.draftOrders.entry.resource.ofType(MedicationRequest).id.aggregate($total + ', ' & $this)}}

context.fooResource.id

It would be helpful to see an example for another use case.  Consider a MedicationRequest in the draft orders that includes a medicationReference.  The details of this Medication resource are often very important for CDS.  What would the syntax look like to indicate that we would like the system to prefetch this Medication resource?
Similarly, if there are other MedicationRequest resources that are sent as part of the prefetch, but if they too include medicationReference elements, how could we ask the system to prefetch these Medication resources as well?

It would be the same, just the include would change.  i.e. "&_include=MedicationRequest.medication".  If somehow a hook had a context that could be a mixture of MedicationRequest and MedicationStatement instances, then you'd have two separate contexts - one for MedRequest and one for MedStatement.

For retrieving Medications as part of pre-fetch, would need to be:
MedicationRequest?_id={{context.draftOrders.entries.ofType('MedicationRequest').id}}&_include=MedicationRequest.medication
Note this is re-requesting the draftOrders which may not be in the FHIR server

{{context.draftOrders.entries.ofType('MedicationRequest').medication.reference}}
{{context.draftOrders.entries.ofType('MedicationRequest').requester.reference}}?_include=PractitionerRole.organization&_include=PractitionerRole.location
Can we propose a shorthand "include" for prefetches?
Support EvenSimplerFHIRPath (with path navigation and ofType() only), plus the additional semantics that if the result of the FHIRPath is a reference, it is transformed into a search by id so that it can be used as the basis for a prefetch with additional includes. In addition, the requirement that the prefetch would always be evaluated against the FHIR server (so would not be expected to be able to access in memory content).
Alternatively, add an option to the prefetch template to support specifying additionalReferenceTypes, so you could say, with this prefetch, also include any references to resources of type "Medication", "Location", and "Organization", recursively.


[type: refactor]Refactor random loadbalancer.

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #3890 (4144254) into master (22546ae) will decrease coverage by 0.38%.
The diff coverage is 88.23%.

@@             Coverage Diff              @@
##             master    #3890      +/-   ##
============================================
- Coverage     65.99%   65.61%   -0.39%
+ Complexity     6265     6227      -38
============================================
  Files           900      900
  Lines         24901    24896       -5
  Branches       2244     2241       -3
============================================
- Hits          16434    16335      -99
- Misses         7082     7179      +97
+ Partials       1385     1382       -3

Impacted Files
Coverage Δ

...he/shenyu/loadbalancer/spi/RandomLoadBalancer.java
91.66% <88.23%> (-1.44%)
:arrow_down:

...n/alibaba/dubbo/cache/AlibabaDubboConfigCache.java
47.12% <0.00%> (-31.04%)
:arrow_down:

...controller/ShenyuClientHttpRegistryController.java
77.77% <0.00%> (-22.23%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
50.00% <0.00%> (-13.83%)
:arrow_down:

...yu/sync/data/http/refresh/AbstractDataRefresh.java
68.96% <0.00%> (-13.80%)
:arrow_down:

...ruptor/RegisterClientServerDisruptorPublisher.java
52.94% <0.00%> (-11.77%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
81.63% <0.00%> (-8.17%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

... and 29 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Nghttp2 update to 1.31.0

Update nghttp2 to 1.31.0 and nghttp2 support build static lib
see: https://github.com/nghttp2/nghttp2/pull/1146

PR https://github.com/nghttp2/nghttp2/pull/1146 is master branch


Issue #70: Remove resource_name from get_group

The Marathon response for a GET /v2/groups/{group_id} call does not have a resource_name in the JSON response.

Hmm

Confirmed, I believe this is correct.
If you use this feature a lot you might want to write an itest to make sure it continues to work with new versions too.


Fix the ReadMe and Make the view pretty

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.32%. Comparing base (f9b266f) to head (0fd6169).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   77.24%   77.32%   +0.07%
==========================================
  Files          31       31
  Lines        1138     1142       +4
  Branches      143      147       +4
==========================================
+ Hits          879      883       +4
  Misses        236      236
  Partials       23       23

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


C_CPP : Banker's Algorithm (OS)

Description 📜
This documentation on banker's algorithm includes brief explanation on Banker's Algorithm along-with an example, then algorithms used in Banker's Algorithm are described followed by code of Banker's Algorithm and its output. Also, advantages and disadvantages of Banker's Algorithm are stated.
Fixes #8105

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[x] C/CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@palak1101  Entire code plagiarised from here , even some part of documentation


Summaries page

@ishanthukral Looks like you need to remove the marking_schemes_controller_test, which appears to have been automatically generated.

I'm suspecting some changes to Submission caused marks to not be retrieved. I changed Course Summaries to use the methods used by Assignment to display marks in the summaries section.


nignx需要做相应防护么，/etc/nigix/log error.log看到大量的请求记录有点担心

首先感谢脚本，看访问日志部分内容如下
2019/10/19 09:23:33 [error] 21295#0: 902 open() "/home/wwwroot/levis/cn" failed (2: No such file or directory), client:*****
2019/10/19 09:23:39 [error] 21295#0: 903 "/home/wwwroot/levis/support/troubleshooting/china-status/index.html" is not found (2: No such file or directory), client: ******
2019/10/19 09:23:44 [error] 21295#0: 902 open() "/home/wwwroot/levis/vpn-software/vpn-windows" failed (2: No such file or directory), client: ******
2019/10/19 10:12:16 [error] 21295#0: 1051 open() "/home/wwwroot/levis/cn" failed (2: No such file or directory), ******
2019/10/19 10:12:23 [error] 21295#0: 1052 open() "/home/wwwroot/levis/support/troubleshooting" failed (2: No such file or directory), client: ******
2019/10/19 10:12:27 [error] 21295#0: 1053 open() "/home/wwwroot/levis/support/troubleshooting/china-status" failed (2: No such file or directory), ******
2019/10/19 11:50:08 [error] 21295#0: 1241 open() "/etc/nginx/html/mysql/admin/index.php" failed (2: No such file or directory),
2019/10/19 11:50:09 [error] 21295#0: 1242 open() "/etc/nginx/html/mysql/dbadmin/index.php" failed (2: No such file or directory),*****
2019/10/19 11:50:10 [error] 21295#0: *1243 open() "/etc/nginx/html/mysql/sqlmanager/index.php" failed (2: No such file or directory), ******
2019/10/19 11:50:10 [error] 21295#0: *1244 open() "/etc/nginx/html/mysql/mysqlmanager/index.php" failed (2: No such file or directory), ******
是否要做些安全防护什么的或者说不用，服务器端有fail2ban保护ssh，还请指点一二

页面仅用于所谓的伪装，不需要做防护

好的


BodyReader shouldn't be a Singleton

Hi, we've just started using the package but have found some problems with the latest version (v2.1.0).
We only get the original response body returned to the user on the very first request (after app restart).
All subsequent requests get the correct status code returned but a blank response body.
I believe it is because BodyReader has been changed to be a Singleton:
private static void AddBodyLogger(IServiceCollection services)
{
    services.AddSingleton<BodyLoggerMiddleware>();
    services.AddSingleton<IBodyReader, BodyReader>();
    services.AddSingleton<ITelemetryWriter, TelemetryWriter>();
    services.AddSingleton<ITelemetryInitializer, ClientIpInitializer>();
}

The _originalResponseStreamReturned flag will always be "true" after the first request.
Downgrading to v2.0.2 fixes the problem.
Also, separately, the max bytes field defaults to 80,000 bytes. This should probably be 8000 given that AppInsights custom properties only support 8,192 bytes.
public int MaxBytes { get; set; } = 80000;

Thanks for your bug report. Will investigate and provide a fix

Released 2.1.1, please let me know if things are working again.

Yep, that fixes it. Thanks for your help


Davon Throttle Control Systems is compatible with 1.0.5, but CKAN.exe doesn't show it

When I use CKAN on a 1.0.4 game, the Metadata for this says:
Max KSP Ver: 1.0.5 (using mod version 080)
When I use CKAN on a 1.0.5 game, it doesn't show up

Ummm, please check this, it suddenly seemed to start working.  So if you can confirm that it's working, then assume it was a glitch on my system.

Was able to install the mod without issue on both a 1.0.4 and 1.0.5 install.

ok, thanks for checking


"no route to host" in macOS Sequoia (and a workaround)

Description
I just updated to macOS Sequoia 15.0. Having started DBeaver 24.2 directly after the update it works as expected. Then, I updated to DBeaver 24.2.1, and each connection attempt to any database in my local network failed with a "no route to host".  The workaround is that you have to open System Settings -> Privacy & Security -> Local Network and toggle the "DBeaver" button off and then on again. Starting DBeaver the next time the "no route to host" error will disappear.
I assume strongly that this behavior is not related to DBeaver, but to Sequoia with the new security feature to allow for local network access, and not notifying that the DBeaver binary was updated.
This workaround was inspired by https://dev.iachieved.it/iachievedit/macos-sequoia-no-route-to-host/
DBeaver Version
Community edition 24.2.1
Operating System
macOS Sequoia 15.0
Database and driver
n/a, the "bug" is not related to the database driver, but to Sequoia.
Steps to reproduce

Update macOS to macOS Sequoia
Start DBeaver, Sequoia will ask to allow DBeaver for local network access, allow that
Download & update DBeaver to the next version, Sequoia will NOT ask again to allow for local network access
Open System Settings -> Privacy & Security -> Local Network and toggle the "DBeaver" button off and then on again
Start DBeaver anew, it should now connect without a "no route to host" error

Additional context
No response

Thanks for the bug report and workaround

Hi, would you modify/accept a modification for this issue to stop, or do you consider it's macos that should change?

Hi Raphael,
with the last update to macos 15.2 the problem disappeared, I‘ll add a comment.
Viele Grüße,
Heiko

Am 22.12.2024 um 17:16 schrieb raphael12333 @.***>:

Hi, would you modify/accept a modification for this issue to stop, or do you consider it's macos that should change?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

nice :)
I have macos 15.2 , i've just updated dbeaver to 24.3.1, the issue seems gone now :)

@raphael12333 and @hkirschk great news! Thank you for testing.

@arhayka
@hkirschk
Hi, i just got the issue again
😱

yes i confirm, still have the issue
maybe updating had the same effect as toggling Local Network access
sorry i should have check better
i see no button to re-open the issue btw


Loading cursor not visible when we are off-holograms

Overview
The loading cursor is not visible when we are off-holograms
Expected Behavior
The loading cursor is visible also when we are off-holograms
Actual Behavior
If the input is disabled the loading cursor is not visible when we are off-holograms because it is too far.
I think it would be better if the loading cursor is always visible when the input is disabled
Something like this (Cursor class):
// If no game object is hit, put the cursor at the default distance
if (newTargetedObject == null)
{
    TargetedObject = null;
    TargetedCursorModifier = null;

    if (pointerIsInputSourcePointer)
    {
        // This value get re-queried every update, in case the app has
        // changed the pointing extent of the pointer for the current scenario.
        float distance = FocusManager.Instance.GetPointingExtent(Pointer);
        if (DefaultCursorDistance != distance)
        {
            DefaultCursorDistance = distance;
        }
    }
    else if (DefaultCursorDistance != originalDefaultCursorDistance)
    {
        DefaultCursorDistance = originalDefaultCursorDistance;
    }

    targetPosition = RayStep.GetPointByDistance(Pointer.Rays, InputManager.Instance.IsInputEnabled? DefaultCursorDistance : originalDefaultCursorDistance);
    lookForward = -RayStep.GetDirectionByDistance(Pointer.Rays, DefaultCursorDistance);
    targetRotation = lookForward.magnitude > 0 ? Quaternion.LookRotation(lookForward, Vector3.up) : transform.rotation;
}

Steps to reproduce

InputManagerTest scene
Click timer button

Unity Editor Version
2017.4.2f2
Mixed Reality Toolkit Release Version
2<IP_ADDRESS>

Ahh, good point. I hadn't considered the loading state, only the targeting state.
Something like your proposed fix seems like a good solution, though perhaps caching InputManager.Instance so we don't ask for it each frame.

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


How to automatically download new posts?

How can I use this to automatically download new posts in a public telegram channel?

try to re run the program it will automatically update its backend file and re download it

you can check my script which is working and download files   @DamianMorozov  can i work on this project

Hello. What's the script?

https://github.com/Tusharvoid/telegram_media_downloader my bad sorry to say it as script but this repo  you can use it
no error working fine


upgrade signal-exit and nyc dependencies

This pull in the new versions of signal-exit and nyc, see:
https://github.com/bcoe/signal-exit/pull/9

Travis failure due to 0.8.  Will fix and then merge.


fix: install script when running as non-sudo

Closes #11301
Signed-off-by: Stephen Bell<EMAIL_ADDRESS>What this PR does / why we need it:
The get-helm-3 script fails to install when passing the --no-sudo argument as /usr/local/bin is typically only root writable.
This PR attempts to rectify that by installing helm into $HOME/.local/bin when using --no-sudo, which is a common directory for user apps in modern distros and usually exists in PATH.
This also handles the case when passing a custom HELM_INSTALL_DIR with --no-sudo.
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

The get-helm-3 script fails to install when passing the --no-sudo argument as /usr/local/bin is typically only root writable.

Presumably when --no-sudo is passed and the user is root, this would be okay? And it would not be desirable to switch to $HOME/.local/bin for root?

Closing stale PR. Can reopen if wanted.


redcarpet is not installed

I've never worked on a ruby application so I don't know if I'm doing something wrong. I followed the instructions in the README and I got the following error:
root@9b6a0afcbd49:/rust-www# bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Installing colorator 0.1
Installing ffi 1.9.10 with native extensions
Installing sass 3.4.21
Installing rb-fsevent 0.9.7
Installing kramdown 1.10.0
Installing liquid 3.0.6
Installing mercenary 0.3.5
Installing rouge 1.10.1
Installing safe_yaml 1.0.4
Using bundler 1.11.2
Installing rb-inotify 0.9.7
Installing jekyll-sass-converter 1.4.0
Installing listen 3.0.6
Installing jekyll-watch 1.3.1
Installing jekyll 3.1.2
Bundle complete! 1 Gemfile dependency, 15 gems now installed.
Bundled gems are installed into /usr/local/bundle.

root@9b6a0afcbd49:/rust-www# jekyll serve
Configuration file: /rust-www/_config.yml
            Source: /rust-www
       Destination: /rust-www/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
  Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- redcarpet' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting 'community.md':
                    redcarpet
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    redcarpet

(this is the output I got from the official ruby Docker container. I wanted to be sure that it is not a problem with my setup)
I added
gem 'redcarpet'

to the Gemfile and then it worked.

Yes, this is an issue. But we also need to move off of redcarpet, see https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0

I don't believe this is an issue anymore, jekyll serve runs fine without having redcarpet installed.

Yes, this should be fixed now.


Issue after migrating to ibm-products*rc2 version

The issue seen while running npm start is as below,
./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
Can't import the named export 'Children' from non EcmaScript module (only default export is available).
Also it is observed that, the issue is seen "@carbon/ibm-products": "^2.0.0-rc.3"  onward.

We’ve seen this issue and believe it’s related to ESM. Please take a look at #2378 as well as the documentation here.


multiline expressions with backslash don't support eol comments

You can write this
a = 1000 \
     + 2 \
     - 3

but not this  ("unknown token ' '")
a = 1000 \  # base price
     + 2 \  # supplement for dog
     - 3    # discount for cat

No, the backslash must immediately be followed by a newline and that means it's a line continuation. The above is pretty confusing and no other language does that (neither C, nor Ruby nor Elixir)
You can write:
a = 1000 + # base price
     2 -   # supplement for dog
     3     # discount for cat

And there's no need to use backslash there.


Adding Known Issue for the 471 stack trace perf issue

@vivmishra - please take a look
@lt72
FYI - Tomorrow (Tuesday 11/21) is my last working day for the year. If this work isn't complete by then you can coordinate with my lead Lorenzo to figure out who will finish it.

@rpetrusha as well

@rpetrusha - I'd be glad to have you make all the changes you suggested - much appreciated.

@vivmishra and @noahfalk, I've updated the topic.


Cannot use attribute type: 'longtext' because it always fails validation

Anchor doesn't have a validation rule for 'longtext', so if any of your model attributes have type: 'longtext', they will always fail validation.

Closing this as duplicate of balderdashy/anchor#71 (which should be fixed by balderdashy/anchor#73). Please reopen if the referred issue and PR don't fix this.


Relay service stress tests

SPDX-License-Identifier: Apache-2.0
What did we change?
Added a Relay-Service folder in the Technical folder which contains the details about the stress testing.
Why are we doing this?
To elaborate how the tests were done and what the results were.
How was it tested?

[ ] Locally
[ ] Development Environment
[x] Not needed, changes very basic
[ ] Husky successfully run
[ ] Unit tests passing and Documentation done

AH, thanks.  I wasn't able to open the links
Regards
Sandy Labuschagne
Product Owner, the Tazama Project
The Linux Foundation
Mobile +27-82-771-8665
tazama.org
On Thu, Nov 21, 2024 at 1:33 PM UmairKhan-Paysys @.***>
wrote:

Those sharepoint links open up the same result files already added in the
stress testing folder in this pull request.
Tazama-Nats-Results
Tazama-Rabbit-Results
Tazama-http-Results
They contain the logs and the calculated results.
—
Reply to this email directly, view it on GitHub
https://github.com/tazama-lf/docs/pull/151#issuecomment-2490875814, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BB55QA6UMTL2L5XQMDWNYI32BXAH7AVCNFSM6AAAAABRD22LC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJQHA3TKOBRGQ
.
You are receiving this because you commented.Message ID:
@.***>


Bug in Richtext render in DefaultView.jsx

https://github.com/plone/volto/blob/master/src/components/theme/View/DefaultView.jsx#L85-L88
Buggy when a mailto: can be used, then it got replaced too.
Since we are already treating it in:
https://github.com/plone/volto/blob/master/src/config/RichTextEditor/ToHTML.jsx#L173-L197
I think we can assume we can remove it.

closed via #1545


Made the show content button and breadcrumb sticky

PR Fixes:

1 Made the show content button and breadcrumb sticky

Resolves #1472
Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I assure there is no similar/duplicate pull request regarding same issue

https://github.com/user-attachments/assets/797bf5c3-f5eb-4bc2-a781-0c37de1480a0

Thankyou sir!


How to uncheck all other checkboxes using one of the checkbox in angular schema form?

schema: {
"freeOptions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Demo...",
"Free edition ...",
"Free trial ...",
"None..."
]
}
}
}
if I need to uncheck all the checkboxes on click of "None" option, how to do it?
Im using the onChange property in the form but dont know how to retrieve which checkbox it clicked as the model updates after onChange command is completed and last click value is added to model array containing clicked options.
@davidlgj Hi David, if you could help out in this case...
thanks

@gaganmalhotra you would just use the onclick event of a button and then update the model directly in javascript, you don't need to make changes to the form just update the data model and Angular handles the rest.
Please re-open if you do not feel the question has been answered sufficiently.

Thanks for your reply @Anthropic , but i want the onClick event to be attached not to a button click but to a checkbox click which is made by using schema form. I have the schema formed as below:
{
"key" : "inputs.isSBSOnboardingCompleted",
"type" : "radios",
"title" : "Is SBS onboarding completed?",
"titleMap": [
{ "name": "Yes" },
{ "name": "In progress" },
{ "name": "Planned for the future" },
{ "name": "No"}
]
},
I want to attach an event on click of 'No' in titleMap above.

@gaganmalhotra , I am running into similar issue , did you found any solution ?


Fix a key name change for actions/download-artifact@v4

I overlooked this change in #235, and that PR didn't change files that would have triggered the CI test suite to run.
So, in addition, this PR modifies ci.yaml so that changes to that file trigger the workflow, too.

Thanks!


Optimize recursive ls

Series of patches for optimizing recursive ls

Remove redundant clones / copies
Cache metadata for a path before hand so that subsequent functions that require it can reuse cached data
Some more caching

Mostly resolves #2069
This will require an update to sync with latest de-reference related changes so marking as draft.
Brief results with the patch locally:
BEFORE:
anup@LAPTOP-29TC204U:~/oss/coreutils$ hyperfine --warmup 2   --show-output 'ls -al -R /home/anup/ > /dev/null' '/tmp/ls -al -R /home/anup/ > /dev/null'
Benchmark #1: ls -al -R /home/anup/ > /dev/null
 Time (mean ± σ):      1.396 s ±  0.128 s    [User: 594.1 ms, System: 800.3 ms]
 Range (min … max):    1.212 s …  1.643 s    10 runs

Benchmark #2: /tmp/ls -al -R /home/anup/ > /dev/null
 Time (mean ± σ):      8.250 s ±  0.447 s    [User: 6.642 s, System: 1.545 s]
 Range (min … max):    7.835 s …  9.071 s    10 runs

Summary
 'ls -al -R /home/anup/ > /dev/null' ran
   5.91 ± 0.63 times faster than '/tmp/ls -al -R /home/anup/ > /dev/null'

AFTER:
anup@LAPTOP-29TC204U:~/oss/coreutils$ hyperfine --warmup 2   --show-output 'ls -al -R /home/anup/ > /dev/null' '/home/anup/oss/coreutils/target/release/ls -al -R /home/anup/ > /dev/null'
Benchmark #1: ls -al -R /home/anup/ > /dev/null
  Time (mean ± σ):      1.610 s ±  0.584 s    [User: 724.3 ms, System: 883.9 ms]
  Range (min … max):    1.244 s …  3.108 s    10 runs

  Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet PC without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.

Benchmark #2: /home/anup/oss/coreutils/target/release/ls -al -R /home/anup/ > /dev/null
  Time (mean ± σ):      1.995 s ±  0.067 s    [User: 1.618 s, System: 0.372 s]
  Range (min … max):    1.909 s …  2.119 s    10 runs

Summary
  'ls -al -R /home/anup/ > /dev/null' ran
    1.24 ± 0.45 times faster than '/home/anup/oss/coreutils/target/release/ls -al -R /home/anup/ > /dev/null'

don't hesitate to add more tests too

don't hesitate to add more tests too

I've added a small test for error path related to width specifically (it was a low hanging fruit for error path that was not covered as per local code coverage report)
Other than that, this PR does not attempt to add any specific feature, and and I think most of the paths it introduces are covered (except few error paths, I'm thinking of revisiting those as a separate PR)
Please let me know if you think any specific cases I should try to cover

and please create a
src/uu/ls/BENCHMARKING.md
to document this like src/uu/sort/BENCHMARKING.md

Yes, that was a great idea - I have created one to start with.

Please also fix the conflicts

Conflicts are now fixed
Marking this as ready, please revisit this for review/merge.
Thanks!

@tertsdiepraam I think you are the best reviewer for this. please let me know when you think we can merge it :)

@tertsdiepraam I've updated to remove the dependency on cached altogether and fixed other MSRV related issues.
I would prefer to merge this PR and defer other optimizations that we discussed to a follow-up PR if that sounds okay.

well done :)

Interesting, I have different results than you.
On firefox source code:
  'ls -R /home/sylvestre/dev/mozilla/mozilla-central.hg' ran
    5.28 ± 1.56 times faster than './target/release/coreutils ls -R /home/sylvestre/dev/mozilla/mozilla-central.hg'
    8.39 ± 1.26 times faster than '/tmp/coreutils ls -R /home/sylvestre/dev/mozilla/mozilla-central.hg'

it is an improvement but still much slower than ls :)

@sylvestre I also tried it on my machine with difference combinations of -a and -l and it seems like -a slows GNU down:
'ls -al -R' ran
  2.05 ± 0.05 times faster than '../coreutils/target/release/coreutils ls -al -R'
'ls -R' ran
  5.03 ± 0.03 times faster than '../coreutils/target/release/coreutils ls -R'
'ls -a -R' ran
  5.25 ± 0.07 times faster than '../coreutils/target/release/coreutils ls -a -R'
'ls -l -R' ran
  2.18 ± 0.03 times faster than '../coreutils/target/release/coreutils ls -l -R'

@sylvestre for difference between results, I imagine that could be because I'm trying this on wsl2 rather than bare linux and / or other filesystem / hardware differences (these kind of differences will affect what is the bottleneck and hence the overall results I believe)
I do get results along these lines (note this is on linux source tree - not sure of how that compares with firefox sources, but I've tried on larger directories too with more or less similar results)
  'ls -al -R' ran
    1.45 ± 0.04 times faster than 'coreutils ls -al -R'

  'ls -a -R' ran
    5.65 ± 0.49 times faster than 'coreutils ls -a -R'

  'ls -l -R' ran
    1.31 ± 0.22 times faster than 'coreutils ls -l -R'

  'ls -R' ran
    5.02 ± 0.35 times faster than 'coreutils ls -R'

There are some more optimization opportunities that this PR exposes - some are listed in comments from @tertsdiepraam 's review that I couldn't get to in this PR.
As for the difference with vs without -a / -l, I imagine that maybe because GNU skips fetching information that is not really required (eg. GNU ls will do no stat calls with just -R but the way things are working after this PR, we do it once, always for every path regardless of whether we will require it down the line or not)
We may be able to do the same following one of @tertsdiepraam 's suggestions of adding methods to PathData structure that will lazyily fetch information as opposed to the way this PR introduces of fetching all information upfront.
I am open to keeping the linked issue open and getting into some of these optimizations with another PR if that sounds okay to you.

I am open to keeping the linked issue open and getting into some of these optimizations with another PR if that sounds okay to you.

Ok, thanks!


Reorder the operations in

Reorder the operations in
DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule a
bit so that we only read the binaries out of memory once we've
determined that we can find a real binary on the local system.
Previously, lldb would read all of the kext binaries out of memory
and then determine if it had the local copy.  The kext table gives
us most the information we need (address, name, uuid) so lldb only
needs the actual in-memory load commands when it comes time to set
the section load addresses.  Delay reading until that point for all
the kexts.
NFC; doing the operations in a different order.
rdar://problem/41181173
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@356108 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit c857e324bad30097ec3a94f7cc730fc8542687df)

@swift-ci test and merge