Ionic 4: node_modules/@ionic/angular/dist/types/components/modal/modal-interface.d.ts(1,83): error TS2307: Cannot find module '../../interface'

Bug Report
Ionic Info
Ionic:

   ionic (Ionic CLI)          : 4.1.1 (/home/phillip/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.7
   @angular-devkit/core       : 0.7.4
   @angular-devkit/schematics : 0.7.4
   @angular/cli               : 6.1.4
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   NodeJS : v8.11.3 (/home/phillip/.nvm/versions/node/v8.11.3/bin/node)
   npm    : 5.6.0
   OS     : Linux 4.15

Describe the Bug
Error during build
node_modules/@ionic/angular/dist/types/components/modal/modal-interface.d.ts(1,83): error TS2307: Cannot find module '../../interface'
Full stack trace:
[ng] ℹ ｢wdm｣: wait until bundle finished: /
[ng] Date: 2018-09-05T01:26:38.402Z
[ng] Hash: 25c673302d404af029fd
[ng] Time: 7226ms
[ng] chunk {main} main.js, main.js.map (main) 1.94 kB [initial] [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 689 bytes [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
[ng] chunk {styles} styles.js, styles.js.map (styles) 50.2 kB [initial] [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 325 kB [initial] [rendered]
[ng] ERROR in node_modules/@ionic/angular/dist/types/components/modal/modal-interface.d.ts(1,83): error TS2307: Cannot find module '../../interface'.
[ng] ℹ ｢wdm｣: Failed to compile.

A clear and concise description of what the bug is.
Steps to Reproduce
Using the Modal Controller service I am attempting to create a modal with the following code:
Related Code
  async presentModal() {

    let modalOptions = {
        component: SelfRatingPage
    };

    const modal = await this.modalController.create(modalOptions);
    return await modal.present();
  }

This worked in beta0, and I have just today updated to beta7.
Expected Behavior
The code is compiled.
Additional Context
Using ionic serve If I comment out the code for the first build, it builds with no issue, uncommenting the code also results in another succesful build but with errors, however, the modal now works, so seems to be a TS issue.

My bad, my IDE added an import to the top of a page.


Falcon 3 integration code coverage

@antonpirker Codecov shows 100% coverage, Falcon integration tests passed. What should be done?


Question: how to set an "initial" state

As the question says, how do we set the state machine to an initial state?  It seems an obvious thing to want to do, but I can't find documentation on it, and I don't see any obvious attempt at setting an initial state in your code.

Hi,
The initial state lives in your own domain, not in this lib. For example, you can use a default attribute value when defining your class:
class YourModel
{
    private $state = 'initial';
}


[v4] storybook propTable and styled-c doesn't work

So, I'm wondering if anyone has a solution as to how to get the proper propTypes & description rendered in storybook addon-info. I wasn't sure if I should make this issue here or on their page, but I feel like if anyone has solved the issue, they'd more than likely be here.
System:

OS: macOS Sierra 10.12.6
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 222.39 MB / 16.00 GB
Shell: 5.2 - /bin/zsh

Binaries:

Node: 10.8.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.2.0 - /usr/local/bin/npm

npmPackages:

styled-components: ^4.0.0-beta.11.3 => 4.0.0-beta.11.3

Reproduction
Dependencies
"devDependencies": {
    "@storybook/addon-info": "^3.4.11",
    "@storybook/addon-options": "^3.4.11",
    "@storybook/react": "^3.4.11",
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.3",
    "babel-plugin-react-docgen": "^2.0.0",
    "babel-plugin-styled-components": "^1.8.0",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-react": "^6.24.1",
    "prop-types": "^15.6.2",
    "react": "^16.5.2",
    "react-docgen": "^2.21.0",
    "react-dom": "^16.5.2",
    "styled-components": "^4.0.0-beta.11.3"
  }

So here's my storybook  config
import { configure } from '@storybook/react';
import { setOptions } from "@storybook/addon-options";
import { setDefaults } from '@storybook/addon-info';

setDefaults({
  inline: true,
})

const req = require.context('../src/components/', true, /(\.story\.js$)|(\.story\.jsx$)/);
function loadStories() {
  req.keys().forEach((filename) => req(filename));
}

configure(loadStories, module)

And here's a button component, where I currently have my styled-component commented out
import React from "react";
import styled from 'styled-components';
import PropTypes from 'prop-types';

export const Button = ({ disabled, label, onClick, ...props }) => (
  <button type="button" disabled={disabled} onClick={onClick} {...props}>
    {label}
  </button>
);

// export const Button = styled.button``;

const numberStringOrArray = PropTypes.oneOfType([
  PropTypes.number,
  PropTypes.string,
  PropTypes.array
]);
Button.defaultProps = {
  disabled: false,
  onClick: () => {},
  optionalString: 'Default String',
  one: { key: 1 },
  two: {
    thing: {
      id: 2,
      func: () => {},
      arr: [],
    },
  },
  obj: {
    key: 'value',
  },
  shape: {
    id: 3,
    func: () => {},
    arr: [],
    shape: {
      shape: {
        foo: 'bar',
      },
    },
  },
  arrayOf: [1, 2, 3],
  msg: new Set(),
  enm: 'News',
  enmEval: 'Photos',
  union: 'hello',
};

/* eslint-disable react/no-unused-prop-types */

Button.propTypes = {
  /** Boolean indicating whether the button should render as disabled */
  disabled: PropTypes.bool,
  /** button label. */
  label: PropTypes.string.isRequired,
  /** onClick handler */
  onClick: PropTypes.func,
  /** A simple `objectOf` propType. */
  one: numberStringOrArray,
  /** A very complex `objectOf` propType. */
  two: PropTypes.objectOf(
    PropTypes.shape({
      /**
       *  Just an internal propType for a shape.
       *  It's also required, and as you can see it supports multi-line comments!
       */
      id: PropTypes.number.isRequired,
      /** A simple non-required function */
      func: PropTypes.func,
      /** An `arrayOf` shape */
      arr: PropTypes.arrayOf(
        PropTypes.shape({
          /**
           * 5-level deep propType definition and still works.
           */
          index: PropTypes.number.isRequired,
        })
      ),
    })
  ),

  /**
   * Plain object propType (use shape!!)
   */
  obj: PropTypes.object, // eslint-disable-line react/forbid-prop-types

  /** propType for shape with nested arrayOf */
  shape: PropTypes.shape({
    /** Just an internal propType for a shape. */
    id: PropTypes.number.isRequired,
    /** A simple non-required function */
    func: PropTypes.func,
    /** An `arrayOf` shape */
    arr: PropTypes.arrayOf(
      PropTypes.shape({
        /** 5-level deep propType definition and still works. */
        index: PropTypes.number.isRequired,
      })
    ),

    shape: PropTypes.shape({
      shape: PropTypes.shape({
        foo: PropTypes.string,
      }),
    }),
  }),
  /** array of a certain type */
  arrayOf: PropTypes.arrayOf(PropTypes.number),

  /** `instanceOf` is also supported and the custom type will be shown instead of `instanceOf` */
  msg: PropTypes.instanceOf(Set),
  /** `oneOf` is basically an Enum which is also supported but can be pretty big. */
  enm: PropTypes.oneOf(['News', 'Photos']),
  enmEval: PropTypes.oneOf((() => ['News', 'Photos'])()),
  /** A multi-type prop is also valid and is displayed as `Union<String|Message>` */
  union: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Set)]),
  /** test string */
  optionalString: PropTypes.string,
};

Button.displayName = 'Button';

As expected, in my propTable I get the following rendered

Great, that works perfectly. If I switch to using a styled-component like so
//export const Button = ({ disabled, label, onClick, ...props }) => (
//   <button type="button" disabled={disabled} onClick={onClick} {...props}>
//     {label}
//   </button>
// );

export const Button = styled.button``;

RIP

I've also tried adding a custom .babelrc file with the following config and have had no luck
{
  "presets": ["env", "react"],
  "plugins": [
    "babel-plugin-styled-components",
    "transform-class-properties",
    "transform-object-rest-spread",
    "react-docgen"
  ]
}

I found https://github.com/reactjs/react-docgen/issues/256, which seems to be related but there wasn't a clear solution. I've gone through styled-components, storybook, and react-docgen issue tracking and came across a couple similar problems haven't found a solution.
Has anyone been able to conquer this issue? Thanks in advance for the help

Did further research and I've figured out a work around. If you use a stateless functional component to return your styled component, your proptypes will be read. Another thing to keep in mind is that you must define your proptypes within the file. They cannot be in an external file. This is pretty annoying imo, but it's a limitation for react-docgen.
import React from 'react';
import { width } from 'styled-system';
import PropTypes from 'prop-types';
import styled from 'styled-components';

const StyledBox = styled.div`
    ${width}
`;

export const Box = ({ children, ...props }) => {
    return <StyledBox {...props}>{children}</StyledBox>;
};

Box.displayName = 'Box';
Box.propTypes = {
    width: PropTypes.string
};

export default Box;

So, that works. Unfortunately, if you want to say, use styled-system and the proptypes already defined like so
Box.propTypes = {
    ...width.propTypes
};

You'll get

As you can see, you don't get the actual propType and the prop is marked as required, when it's actually not.
Remeber, this is a react-docgen issue. So, you're going to have this problem with all the documentation packages that use it (Storybook, docz, styleguidist, etc.). Good luck!


[dv/rstmgr] Clean up base sequence

Clean up handling of POR reset to be consistent with other resets.
Add random delay from sys reset inactive to rst_cpu_n inactive.
Improve tasks and functions encapsulation.
Add info messages to help diagnose problems.
Signed-off-by: Guillermo Maturana<EMAIL_ADDRESS>

The change in rstmgr_por.sv will be removed prior to committing: they are captured in another PR already approved.


Possible latin1 mojibake

I got this dir with miscoded filenames:
(foo) mdione@diablo:~/tmp/foo$ ls -l /home/mdione/media/music/Los\ Fabulosos\ Cadillacs/Chau/
total 32208
-rw-r--r-- 1 mdione mdione 4278572 ene 31  2007 '01-Basta de llamarme as'$'\355''.mp3'
-rw-r--r-- 1 mdione mdione 4985132 ene 31  2007 '16-Demasiada presi'$'\363''n.mp3'

Checking with hd we can see what bytes we have there:
(foo) mdione@diablo:~/tmp/foo$ ls -l /home/mdione/media/music/Los\ Fabulosos\ Cadillacs/Chau/ | hd
00000030  6e 65 20 33 31 20 20 32  30 30 37 20 30 31 2d 42  |ne 31  2007 01-B|
00000040  61 73 74 61 20 64 65 20  6c 6c 61 6d 61 72 6d 65  |asta de llamarme|
00000050  20 61 73 ed 2e 6d 70 33  0a 2d 72 77 2d 72 2d 2d  | as..mp3.-rw-r--|
[...]
00000160  44 65 6d 61 73 69 61 64  61 20 70 72 65 73 69 f3  |Demasiada presi.|
00000170  6e 2e 6d 70 33 0a 2d 72  77 2d 72 2d 2d 72 2d 2d  |n.mp3.-rw-r--r--|

So what ls reports as '$'\355'' (WTF) is ed. The original letter is í (í)
And then:
In [4]: 'í'.encode('latin1')
Out[4]: b'\xed'

In [10]: 'ó'.encode('latin1')
Out[10]: b'\xf3'

but:
In [8]: os.listdir('/home/mdione/media/music/Los Fabulosos Cadillacs/Chau/')[-1]
Out[8]: '01-Basta de llamarme as\udced.mp3'

In [9]: ftfy.fix_and_explain(_)
Out[9]: ExplainedText(text='01-Basta de llamarme as�.mp3', explanation=[('apply', 'fix_surrogates')])

In [11]: os.listdir('/home/mdione/media/music/Los Fabulosos Cadillacs/Chau/')[-4]
Out[11]: '16-Demasiada presi\udcf3n.mp3'

In [12]: ftfy.fix_and_explain(_)
Out[12]: ExplainedText(text='16-Demasiada presi�n.mp3', explanation=[('apply', 'fix_surrogates')])

Maybe it's because python3 fuggits up (why \udced and \udcf3?), but maybe ftfy drops the ball here too?

You have filenames that aren't in UTF-8, but are instead in ISO-8859-1. Most filesystems impose an encoding on their files so that filenames can be consistently decoded as Unicode, but POSIX filesystems don't.
ftfy says up front that its job is to fix problems in Unicode, not to fix when your problem is that you don't have Unicode.
Python lets you use bytestrings as filenames also, and that's what you'll need to do here. I recommend writing a Python script that reads the filenames as bytestrings, decodes them as ISO-8859-1, and then renames the files to the UTF-8 encodings of the filenames.

Ah, so ftfy goes the other way around, from utf-encoded-in-latin1 back to utf. Sounds reasonable. Thanks for picking up an issue even I forgot about :)


Upgrade to React 18

Version
5.3.2
Describe the bug
Hi !,
When I upgrade my project to React 18, I have this error.

Maybe, you should upgrade React in adapter-react
Reproduction
Classic install with React 18
Logs
No response
Config
{
   "$schema"<EMAIL_ADDRESS>   "baseLocale": "en",
   "adapter": "react"
}

Additional information
No response

have you used this exact version of typesafe-i18n before upgrading to react 18?

No I was in 4.5.0
I have generated the files after upgrading

can you go back to 4.5.0 an see if it works with react 18?

In 4.5.0 I have the same error

Strange, I will try it in my example repository

It seems that react 18 added stricter types. I now have updated the react adapter in version 5.3.3 to fix the issue.

Here is the issue for reference: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210

Ok I see!
It works now, thanks! 😄


[Feature] Autostart & Configuration Option

Checklist

[X] I have already read docs/Tips.md, but my feature is not implemented.
[X] My suggested feature was not mentioned by others, and it is not a duplicate feature.

Summary
Add autostart to the luncher and posibility to use acces the game settings via shift + luncher
Solution or Design

Start when Windows start > Check in/out box
Start the Configuration window before game lunch > Chech in box | After game lunch the state goes from 1 to 0 and the usser need mark the option every time.

Thank you for your suggestion, I have no plans to add the startup feature. But you can implement by yourself.

Create a shortcut for Starward.exe
Change the startup parameter to --hide true
Move the shortcut file to the startup folder


Cross site indexing of content

Feature Request
In response to this discussion https://twitter.com/DockstoreOrg/status/937730314746712064
It would be great to have a community developed, cross index of Dockerstore (and other container resource) content. I can add some detail about Singularity Hub / Registry, is that helps.

Singularity Registry and Hub both serve image manifests to download images. Singularity Hub comes from Google Cloud Storage, and Singularity Registry comes from a served filesystem.
The images themselves serve a json manifest with inspect that conforms to http://jsonapi.org/format/
The manifests match the models in the database, not any kind of standard.

Minimally, given that a manifest is associated with some kind of container content, we would want to be able to search them. The general container naming convention that Singularity Hub uses:
<registry>/<namespace>/<container>:<digest>

Is also a nice search strategy in that it maps well to any kind of storage.
I don't have specific suggestions or ideas, but just want to open up the conversation. I am an advocate for a strategy that is easy, maybe even fun, and can be flexible to allow for many different resources (e.g., a formal registry, or a Github repository)

+1

What is the difference between Singularity Registry and Singularity Hub? (https://singularity-hub.org/ seems to use Singularity Hub and Singularity Container registry)
Interesting though, https://singularity-hub.org/collections looks nice.
We have a similar approach in that most of the data that we serve matches the models in our database, but we have a small subset of endpoints that serve a (hopefully more) generic representation of tools https://dockstore.org:8443/static/swagger-ui/index.html#/GA4GH .

Singularity Hub is a cloud service that provides building, from Github repos. Singularity Registry is optimized for a local institution to deploy, and then push images to it. Both serve the same manifests for downloading, but the registry comes from a filesystem, and Singularity Hub is Google Cloud Storage.
Additional functions to parse the manifests that the registries serve (to then make them searchable from one box) would fit the model I was describing. If we extend that model to manifests of different kinds, then I think we have a good start!
But note the strategy I came up with is as simple as I possible could do - the entire page I linked is served statically (rendered automatically) via Github pages, and other registries are added by adding a markdown file and doing a PR. Any method we do to collect manifests should be that simple - if we have a server, then it could be just an interactive web interface to do it.

Ok, so if I understand correctly. Individual institutions can spin up a Singularity Registry to provide Singularity containers in addition to using those from Singularity Hub.
Currently, you have a strategy of recording what sites have Singularity Manifests by listing them in GitHub and generating a page using GitHub Pages based on that information.
We have a similar idea in that we were thinking of creating a Badge system to validate and check that systems that implement the Tool Registry Schema are valid and then creating list of them.

Ok, so if I understand correctly. Individual institutions can spin up a Singularity Registry to provide Singularity containers in addition to using those from Singularity Hub.

Yes correct! The different registries are handled via the uri. The default (meaning none specified) uses singularity-hub.org, eg:
shub://vsoch/hello-world -->  shub://singularity-hub.org/vsoch/hello-world

and the container is accessible from the command line with singularity software proper:
singularity pull shub://vsoch/hello-world

and then a registry would just add in their address:
shub://dockerstore-registry.org/vsoch/hello-world
singularity pull shub://dockerstore-registry.org/vsoch/hello-world

Currently, you have a strategy of recording what sites have Singularity Manifests by listing them in GitHub and generating a page using GitHub Pages based on that information.

Yes, it's the easiest and simplest method I could think of to have manifests at least browsable from a single place. Having a server would be much better, but in academia we generally don't have funding for anything, so I use Github hacks a lot :)

We have a similar idea in that we were thinking of creating a Badge system to validate and check that systems that implement the Tool Registry Schema are valid and then creating list of them.

This is an awesome idea! I would love to help. Could you tell me more about the Tool Registry Schema? I'm guessing that we could start with some repository with metadata about the registries, and then have the endpoint checked against the schema, and producing a badge to reflect the final score?

Great thread! Thank you for picking this up way faster than I could reach my nearest laptop @vsoch !!!! :) Really liking the badge / schema setup. Could ga4gh/dockstore also be a central place to register and provide as an uri the various schema ontology versions for all different tools (Docker/Singularity/CWL/etc), to have some rigid references to test against?

Could you tell me more about the Tool Registry Schema? I'm guessing that we could start with some repository with metadata about the registries, and then have the endpoint checked against the schema, and producing a badge to reflect the final score?

So when we created Dockstore, we knew that we wanted to specialize in workflows that used Docker containers. The architecture of dockstore is an Angular front-end backed by a RESTful web service ( described here https://dockstore.org:8443/static/swagger-ui/index.html ). Most of the endpoints are pretty specific to our implementation, but we wanted to open the door to cross-indexing with other registries that might register something very different (like Singularity containers for example). So we created a set of endpoints that was intended on being more generic ( https://dockstore.org:8443/static/swagger-ui/index.html#/GA4GH ) and could be implemented more easily by other groups.
There's a bit more in the poster here https://docs.google.com/presentation/d/1b0yLxW0Mms0rBw1x3H4wV22qtwRHhZCN1XoqAdytUwk/edit?usp=sharing
If you're interested or want to influence the schema, we're working on a new iteration of that schema based on some feedback right now actually.
Afterwards, we could cross-index each other for searching, sharing, etc.
The validation idea came later, based on a command-line utility here https://github.com/ga4gh/tool-registry-validator . We're currently working on this, but afterwards you could imagine a list of badges each pointing at Dockstore, Singularity Hub, etc. (kind of like Implementations under http://www.commonwl.org/ except for container repositories).

Could ga4gh/dockstore also be a central place to register and provide as an uri the various schema ontology versions for all different tools (Docker/Singularity/CWL/etc), to have some rigid references to test against?

Could you elaborate a bit more on this?

Could ga4gh/dockstore also be a central place to register and provide as an uri the various schema ontology versions for all different tools (Docker/Singularity/CWL/etc), to have some rigid references to test against?

Could you elaborate a bit more on this?

Apologies for my poor wording, likely due to lack of a complete grasp of the topic from my side :)
I am wondering, in the context of findability, would it be a solution to not just register the containers themselves, but also provide a programmatically queriable container schema resource to register the container metadata, e.g. in the form of a centralized RDF service platform, similar to ebi for life science data ( https://www.ebi.ac.uk/rdf/datasets/ ) an rdf platform for life science workflows?
Or, similarily, a way to query the ontologies for life science workflow components as you can do with life science experimental workflow components: https://www.ebi.ac.uk/ols/search?q=sample&groupField=iri&start=0
Hope I at least managed to word myself better, I guess we are either talking about the same thing, or about something completely different, or I am just out of scope (or all off these points) :)

Oh ok, no worries, I think we're all coming at this from different perspectives and experiences. I agree that whatever solution we decide on should eventually (or immediately!) allow for searchable metadata about the containers. Dockstore generally rely on metadata in the CWL so what we do in the tool registry schema is we propose that you can retrieve all tool descriptors written in those languages (or page through them for large repositories).
Then whatever implements cross-site indexing would be able to grab all descriptors and use whatever searching or query technology they wish.
I'm less familiar wth RDF or these ontologies specicially, but I think @tetron has done some experiments with TRS and RDF. There's some prototype code in the validator for example https://github.com/ga4gh/tool-registry-validator#convert-a-tool-registry-response-to-rdf


Documentation for next release

Get docs in shape for release
Fixes #27

I have updated with installation instructions. @julemai if you feel like it could you try to add some precisions for our users running OSX?

I have updated with installation instructions. @julemai if you feel like it could you try to add some precisions for our users running OSX?

Note also that I have pinned GDAL==2.4 because it seems that it makes the OS-level deps easier to manage.

Note also that I have pinned GDAL==2.4 because it seems that it makes the OS-level deps easier to manage.


cannot open "unread" and "recent"

thanks for the plugin @oplik0
we are having these problems in "recent" and "unread" posts pages...

Although the blocked person just posted one post, it blocks the whole page to be seen. Additionally, it prevents the topics by the blocked person rather than blocking only his posts.
And here are the logs:
2020-05-19T21:50:24.705Z [4568/4527] - error: /api/recent TypeError: Cannot read property 'uid' of undefined     at /home/nodebb/nodebb/node_modules/nodebb-plugin-two-way-block/library.js:50:57     at Array.filter (<anonymous>)     at Object.twoWayBlock.filterTeasers [as method] (/home/nodebb/nodebb/node_modules/nodebb-plugin-two-way-block/library.js:49:30) 2020-05-19T21:50:26.471Z [4568/4527] - error: /api/recent TypeError: Cannot read property 'uid' of undefined     at /home/nodebb/nodebb/node_modules/nodebb-plugin-two-way-block/library.js:50:57     at Array.filter (<anonymous>)     at Object.twoWayBlock.filterTeasers [as method] (/home/nodebb/nodebb/node_modules/nodebb-plugin-two-way-block/library.js:49:30)

The main issue should be fixed in 1.3.0

Additionally, it prevents the topics by the blocked person rather than blocking only his posts.

This is actually the intended behavior, apparently. The same thing happens if you block someone without the plugin. So if you believe this to be an incorrect behavior, report it to NodeBB.
This line of code is to blame


Create a new kind of FlutterView that takes an ImageReader

This will be subtype of android.view.View. It takes an  instance of https://developer.android.com/reference/android/media/ImageReader in its constructor.  It overrides the onDraw(Canvas canvas).  See go/flutter-android-sync for reference.
This view provides a void acquireLatestImage() method, which collects the latest image from the ImageReader and invalidates the view.  In onDraw, it draws the bitmap.
If API level >= 29.  Then it collects the hardware buffer from latest image. Otherwise, it gets the planes from the latest image and re-wires the texture into the android.graphics.Bitmap.
Example branch: https://github.com/blasten/engine/tree/hybrid

cc @bparrishMines

How are you going to get a surface from the platform view?

How are you going to get a surface from the platform view?

There's no need to get a surface from a platform view. The surface is from this new View, which renders the Flutter UI.

But how do you create the ImageReader?

reader = ImageReader.newInstance(
      getWidth(),
      getHeight(),
      PixelFormat.RGBA_8888,
      2,
      android.hardware.HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE | android.hardware.HardwareBuffer.USAGE_GPU_COLOR_OUTPUT);

// new FlutterImageView(context, reader);
// reader.getSurface()

Ok, but suppose you want to associate a view with this ImageReader, as part
of a platform view. Say, a TextView for simplicity.
How are you going to make sure that the textView will draw itself on this
ImageReader/Surface/kind of FlutterView?
Using a virtual display?


The sections attribute is an empty list.

The example page, where I've noticed the issue: Comparison of MUTCD-Influenced Traffic Signs
Here's what's happening:
import wikipedia
mutcd = wikipedia.page('Comparison of MUTCD-Influenced Traffic Signs')
mutcd.sections

Which outputs [].
I would expect the section headers from the ToC to appear in the list as mentioned in the documentation. Let me know if I'm just doing it wrong!

Hi
I think this fixes it. Replace line 646 from wikipedia.py as follows:

query_params.update({'page': self.title})

Apparently the previous thing was essentially returning a dictionary {'titles': self.title} and titles was not a valid call in the API.
Here is an example -- http://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=MATLAB
I'm going to make a pull request now.

@makarandtapaswi I checked your pull request and I believe the attribute check was necessary. Other than that, I made the exact same change. Feel free to try another pull request with my code if you want.

Any news regarding this issue? Has it been fixed and it will be included in the next release? Do you know if there is any workaround for the actual release?

Is this fix going to be moved to the main branch?

It has been over two years since this bug was reported and fixed. This is a serious bug affecting the most basic uses of the API. Will any of the fixes be merged into master?

@goldsmith can you please merge? :)

I was facing the same issue. And since it's almost 3 years and it doesn't look, that it will get fixed, I have created another simple library - Wikipedia-API
import wikipediaapi

wiki = wikipediaapi.Wikipedia('en')
mutcd = wiki.page('Comparison of MUTCD-Influenced Traffic Signs')
print("\n".join([s.title for s in mutcd.sections]))

Output:
Differences between MUTCD-influenced traffic signs
Table of traffic signs comparison
See also
Notes

update on makarandtapaswi recommended changes. This still works but wikipedia.py line 646 shows:
query_params.update(self.__title_query_param)
change to
query_params.update({'page': self.title})


Can't reach database server when doing a large findMany query

Bug description
When I try the following query, I get the following error:
const users = await p.user.findMany({
  include: { quiz: true },
})

(node:7642) UnhandledPromiseRejectionWarning: Error:
Invalid `prisma.user.findMany()` invocation:

 Can't reach database server at `localhost`:`5432`

Please make sure your database server is running at `localhost`:`5432`.

With some initial testing, I noticed removing the include argument allows the query to run just fine.
// works
const users = await p.user.findMany({})

Also, I could leave the include in if I limited the number of rows with take. Roughly 32,000 seemed to be the limit.
// works
const users = await p.user.findMany({
  include: { quiz: true },
  take: 32000,
})

// error
const users = await p.user.findMany({
  include: { quiz: true },
  take: 40000,
})

I think this is a bug. But if it's a known limitation, it would be good if there was a better error message. I initially spent a long time troubleshooting my connection to postgres.
EDIT: I just tested this with the app running on heroku with a heroku managed database. I get the exact same error, so it's not an issue with my local db.
How to reproduce
Run:
p.user.findMany({
  include: { quiz: true },
})

Both user and quiz have about 100k rows.
Prisma information
model User {
  id       String    @default(uuid())
  email    String    @id @unique
  customer Boolean   @default(false)
  name     String?
  acDate   DateTime?
  quiz     Quiz?
}

model Quiz {
  id         String    @id @default(uuid())
  firstName  String?
  skill      String
  playstyle  String
  discipline String
  age        String
  gender     String
  racketNum  Int?
  date       DateTime?
  user       User      @relation(fields: [userEmail], references: [email], onDelete: Cascade)
  userEmail  String
}

Environment & setup

OS:  Windows 10 running WSL2 Ubunutu 20.04
Database: A local postgres instance
Node.js version: v14.5.0

Prisma Version
prisma                  : 3.0.2
@prisma/client          : 3.0.2
Current platform        : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at<EMAIL_ADDRESS>Default Engines Hash    : 2452cc6313d52b8b9a96999ac0e974d0aedf88db
Studio                  : 0.423.0

That sounds familiar ;-) #8832

That sounds familiar ;-) #8832

Interesting. If your case, does the query run correctly when limiting the number of rows with take?

Yes, take: 32766 works, take: 32767 fails.

This is directly related to #8878

Had this problem today

Also having this problem on v3.3.0

Let's close this as a duplicate of https://github.com/prisma/prisma/issues/8832 then 👍

We have closed the original issue in<EMAIL_ADDRESS>please see this comment.


Re-design search

Multiple search categories can be configured
Requests for the different categories are aggregated server-side
Client uses a single request
Results can be pre-processed using configurable hook methods for each category
Categories are queried using HTTP GET requests with configurable URL parameters

Closes #171

Codecov Report

Merging #172 (0b8664b) into master (b548a5d) will increase coverage by 1.66%.
The diff coverage is 30.50%.

@@            Coverage Diff            @@
##           master    #172      +/-   ##
=========================================
+ Coverage    6.78%   8.44%   +1.66%
=========================================
  Files          50      52       +2
  Lines        1179    1231      +52
  Branches      156     163       +7
=========================================
+ Hits           80     104      +24
- Misses        963     984      +21
- Partials      136     143       +7

Impacted Files
Coverage Δ

oereb_client/static/src/api/search.js
0.00% <0.00%> (ø)

...b_client/static/src/component/language/language.js
0.00% <ø> (ø)

oereb_client/static/src/component/map/map.js
0.00% <0.00%> (ø)

...client/static/src/component/map_query/map_query.js
0.00% <0.00%> (ø)

oereb_client/static/src/component/menu/menu.js
0.00% <0.00%> (ø)

oereb_client/static/src/util/coordinate.js
0.00% <0.00%> (ø)

oereb_client/views/search.py
88.88% <88.88%> (ø)

oereb_client/views/__init__.py
91.66% <91.66%> (ø)

oereb_client/views/index.py
98.33% <100.00%> (ø)

Continue to review full report at Codecov.

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


Test compiler optimizations on the roboRIO

Test RobotPathfinder with different compile flags (e.g. -O2 vs -O3) to determine what works the best.

Seems like -O3 isn't possible right now: https://www.chiefdelphi.com/t/guide-to-using-jni-to-make-custom-libraries/347930/24?u=0x54796c6572.
The -O2 test results show that on average RobotPathfinder v3 is about 90% faster than v2.


fix: migration export-script performance update

Issue #, if available:
Description of changes:
Checklist:

[X] Have you successfully deployed to an AWS account with your changes?

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

FYI: The benchmarks that we do on the transform steps, might not be accurate because Spark uses lazy evaluation. It doesn't execute the transforms right away. It groups the transform together and only perform them when absolutely necessary. More info here

Gotcha, I'll leave the timing info in for now, but we can use Spark UI for detailed profiling. I've renamed all variables to be more specific as suggested as well 👍


Gitlab Techdocs endpoints going bad

When using annotation backstage.io/techdocs-ref: dir:./relative the techdocs scaffold for an incorrect path when the
Expected Behavior
should look in the correct repository path and not its parent's

Current Behavior
repositroy have another directory:
https://gitlab.com/org/subfolder/repo
it looks in:
https://gitlab.com/org/subfolder

Possible Solution
tried to add the repository as a relative path prefix, and it still not working

Steps to Reproduce

Gitlab with dir in the org
try to attach techdocs-ref to this repository
when building inyarn dev and moving to the api window you'll get an error

Your Environment

NodeJS Version (v12):  14.17.3
Operating System and Version (e.g. Ubuntu 14.04): MacOs 10.15.7
Browser Information: brave..

##logs
[1] 2021-08-03T13:02:56.363Z techdocs error Failed to build the docs page: Failed to read tree from https://gitlab.com/org/dir/, 404 Not Found Failed to read tree from https://gitlab.com/org/dir/, 404 Not Found type=plugin stack=Error: Failed to read tree from https://gitlab.com/org/dir/, 404 Not Found
[1]     at DocsBuilder.build (${FULL_BACKSTAGE_PATH}/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:127:13)
[1]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[1]     at async DocsSynchronizer.doSync (${FULL_BACKSTAGE_PATH}/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:212:23)
[1]     at async ${FULL_BACKSTAGE_PATH}/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:302:7

The URL resolution is done by the @backstage/integrations library. Currently, the GitLabOntegration uses the default resolver: https://github.com/backstage/backstage/blob/a88073c29afb0f1e9b591f8c5a0f2e1e992075b9/packages/integration/src/gitlab/GitLabIntegration.ts#L54
There aren't any tests for the resolveUrl function in GitLab so I wouldn't be surprised if it actually doesn't work yet: https://github.com/backstage/backstage/blob/e013dbb7ace42c28a605c0a6532deb4de507863f/packages/integration/src/gitlab/GitLabIntegration.test.ts
Could you provide some example links for some basic and complex project setups? Interesting are the values of the annotations of the entity in the catalog: annotations.backstage.io/source-location, annotations.backstage.io/managed-by-location, annotations.backstage.io/techdocs-ref. Feel free to anonymize the folder and project names as long as the structure stays intact.

so I was doing a quick search in gitlab, getting some public repos for you to enquire
https://gitlab.com/vicmanbrile_group/personal/guides/node-vanila
as you can see, there is a full path over dir with many subfolders (you can infer to it as small orgs inside bigger orgs :) )
I was just trying to do a POC with backstage,
If im allowed to rant a bit - I think the On boarding is super complex for nothing - I want the default configs and short- quick start on to how to on board my own Components and stuff - i think CLI based may be good - will open a Feature request for it in a few.
annotations:
backstage.io/edit-url: "https://gitlab.com/org/dir1/repo1/-/edit/master/catalog/components/service-component.yaml"
backstage.io/managed-by-location: "url:https://gitlab.com/org/dir1/repo1/-/blob/master/catalog/components/service-component.yaml"
backstage.io/managed-by-origin-location: "url:https://gitlab.com/org/dir1/repo1/-/blob/master/catalog/all.yaml"
backstage.io/source-location: "url:https://gitlab.com/org/dir2/repo2" #the repo of the component
backstage.io/techdocs-ref: "dir:."
backstage.io/view-url: "https://gitlab.com/org/dir1/repo1/-/blob/master/catalog/components/service-component..yaml"

I tested in an on-premise GitLab (v14.1.x) installation but can't reproduce your error.
Here's what I did:

I used yarn dev at the latest master commit of https://github.com/backstage/backstage
I created two repositories https://gitlab.<private>.com/a-test-group/repository-1 and https://gitlab.<private>.com/a-test-group/another-group/another-repository
Each repo has a catalog-info.yaml with two components. One with a backstage.io/techdocs-ref: dir:. and one with a backstage.io/techdocs-ref: dir:./subfolder.
Both use the following directory layout:

├── catalog-info.yaml
├── mkdocs.yml
├── docs
    └── index.md
└── subfolder
    └── mkdocs.yml
    └── docs
        └── index.md

I registered https://gitlab.<private>.com/a-test-group/repository-1/-/blob/master/catalog-info.yaml and https://gitlab.<private>.com/a-test-group/another-group/another-repository/-/blob/master/catalog-info.yaml
I visited the docs page so Back

catalog-info.yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  annotations:
    backstage.io/techdocs-ref: dir:.
  name: repository-2-1
  description: A short description as a display text.
spec:
  type: service
  owner: nobody
  lifecycle: production
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  annotations:
    backstage.io/techdocs-ref: dir:./subfolder
  name: repository-2-2
  description: A short description as a display text.
spec:
  type: service
  owner: nobody
  lifecycle: production

Entity from /api/entitites/repository-1-1
{
    "metadata":
    {
        "namespace": "default",
        "annotations":
        {
            "backstage.io/managed-by-location": "url:https://gitlab.<private>.com/a-test-group/repository-1/-/blob/master/catalog-info.yaml",
            "backstage.io/managed-by-origin-location": "url:https://gitlab.<private>.com/a-test-group/repository-1/-/blob/master/catalog-info.yaml",
            "backstage.io/view-url": "https://gitlab.<private>.com/a-test-group/repository-1/-/blob/master/catalog-info.yaml",
            "backstage.io/edit-url": "https://gitlab.<private>.com/a-test-group/repository-1/-/edit/master/catalog-info.yaml",
            "backstage.io/source-location": "url:https://gitlab.<private>.com/a-test-group/repository-1/-/blob/master/",
            "backstage.io/techdocs-ref": "dir:."
        },
        "name": "repository-1-1",
        "description": "A short description as a display text.",
        "uid": "2906a39b-d5fd-48a2-8692-b11d54f2c58b",
        "generation": 1,
        "etag": "a15d56a620392637059733482dd12f4875629dd9"
    },
    "apiVersion": "backstage.io/v1alpha1",
    "kind": "Component",
    "spec":
    {
        "type": "service",
        "owner": "nobody",
        "lifecycle": "production"
    },
    "relations":
    [
        {
            "type": "ownedBy",
            "target":
            {
                "kind": "group",
                "namespace": "default",
                "name": "nobody"
            }
        }
    ]
}

I would expect that this should also work with the SaaS version at gitlab.com. Could you prove some more information where your repo setup differs from my test?

first of all - thanks for your help and time, it does not go unnoticed!
As Im running on a local postgres instance - so to make sure nothing god "cached", I scratched the psql and recreated it.
My Configuration is as follows
a backstage Location kind which sits in a general repository ...com/org/dir/repo
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
  name:components
  description: A collection of all components

spec:
  targets:
    - https://gitlab.com/org/anotherdir/repo/-/blob/backstage/backstage-catalog.yaml #backstage is the branch for dev purposes as this is a POC

the above target have the following configuration:
backstage-catalog.yaml

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: the-component
  description: this is the component in anotherdir/repo at backstage branch #this is a temp branch for the POC of backstage
  tags:
    - golang
    - deployment
    - cicd
  links:
    - url: https://gitlab.com/org/anotherdir/repo
      title: Gitlab
      icon: dashboard
  annotations:
    backstage.io/techdocs-ref: dir:.
    backstage.io/source-location: url:https://gitlab.com/org/anotherdir/repo
spec:
  type: service
  lifecycle: production
  owner: nobody
  system: general

then when doing yarn dev (I was generating the directory using the CLI -npx @backstage/create-app so I kinda guess its the latest master )
the system comes up, and the-component is showing up.
but when trying to click on the docs, I get thrown out with the error from above without the full path coming up
another info:
the repository that holds the backstage-catalog.yaml  have the following:
backstage-catalog.yaml repo files

```bash
$ cat mkdocs.yaml
site_name: 'the-component'
site_description: 'Documentation for the-component'
plugins:

techdocs-core

nav:

Overview:

goal?: 'overview/goal.md'

$ ls #ommited everything unrelevant for our issue
docs
backstage-catalog.yaml
mkdocs.yml
$ tree docs
docs
└── overview
└── goal.md
1 directory, 1 file
</p>
</details>

the error that gets thrown out is (as above):

[1] 2021-08-04T06:48:57.096Z techdocs error Failed to build the docs page: Failed to read tree from https://gitlab.com/org/anotherdir/, 404 Not Found Failed to read tree from https://gitlab.com/org/anotherdir/, 404 Not Found type=plugin stack=Error: Failed to read tree from https://gitlab.com/org/anotherdir/, 404 Not Found
[1]     at DocsBuilder.build ${FULL_LOCAL_PATH}/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:127:13)
[1]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[1]     at async DocsSynchronizer.doSync (${FULL_LOCAL_PATH}/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:212:23)
[1]     at async ${FULL_LOCAL_PATH}/node_modules/@backstage/plugin-techdocs-backend/dist/index.cjs.js:302:7

You don't usually need to set the backstage.io/source-location annotation as it is set automatically during the ingestion process. It is used by the techdocs build process (from here), so it's best to not manually change it.

with error spawn mkdocs ENOENT

It looks like backstage is not able to start mkdocs. Do you run it in a container? Here might be some infos on that topic: https://github.com/backstage/backstage/issues/5657#issuecomment-842384871 and https://backstage.io/docs/features/techdocs/getting-started#disabling-docker-in-docker-situation-optional


Add arm64 support

Hi @tolkonepiu,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Interesting, what is your development machine? M1?

@agners yes

Thanks @tolkonepiu !


masked out prefix in val set

In the solution string that the model is being finetuned on, 90% of the string is just MCTS state and goal (problem statement). Those should not be evaluated on, since we do not want to measure whether the model is able to predict the MCTS state and the goal, but we want to measure whether the model is able to predict the next actions to be taken
This PR masks the loss on this 'prefix' s.t. loss is only calculated on the actions.

Should we mask everything except ???Y and ???N instead?


mat-drawer-inner-container with scrollbar shows different widths in Firefox and Chrome

What is the expected behavior?
mat-drawer-inner-container width should be rendered consistently irrespective of Chrome or Firefox.
What is the current behavior?
Currently the sidenav width is being sized 17px higher in Chrome compared to Firefox, which corresponds to the width of the scrollbar.
Chrome

Firefox

This can cause strange issues like this where the right padding appears to be displayed incorrectly in Firefox.

What are the steps to reproduce?
https://angular-mat-sidenav-scrollbar-width-firefox-issue.stackblitz.io
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7
Material 7.3.7
Windows
Typescript 3
Browsers: Chrome/Firefox
Is there anything else we should know?
I'm not sure if this is related or not:
https://github.com/angular/components/issues/11176

@kakins which version of Firefox? I just tried Chrome and FF on macOS and they behave the same way. If it's only on Windows, it may be an OS thing.

This was using the latest version of Firefox, 66.0.5 (64-bit).

Another interesting view of this behavior, side by side using the Stackblitz mentioned above -- Chrome on the left and Firefox on the right.  Browser zoom is at 100% for both.
You can see that the Firefox rendering seems to produce an overflow, resulting in horizontal scrolling.  I trace this back to the aforementioned sizing issues related somehow to the width of the vertical scrollbar.

If this is a Browser and/or OS issue, it should would be nice if the framework could handle it for us so that we don't have to introduce custom CSS hacks per project.

Unfortunately this is due to a bug in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=764076
It seems that firefox does not account for its scrollbar when determining the container's intrinsic width.
Here's a minimal reproduction of the issue: https://stackblitz.com/edit/typescript-muahrr
Closing since it depends on a fix from firefox and I cannot determine a workaround that would make sense for all browsers. Definitely open to suggestions if you can think of a solution.

@andrewseguin Thanks!  It's at least good to know that this is a known bug in Firefox.


Build errors (clang 11.0.0) on macOS 10.15.2

The library fails to build when running the unit tests or building it in part of another project.
I'm using clang (Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)) on macOS Catalina 10.15.2.
I'm using a release version of json.
Here are some of the errors. I'll put the whole lot if you want.
/Users/zacgarby/code/c++/json/test/thirdparty/doctest/doctest.h:395:18: error: use of undeclared identifier
      'nullptr'
typedef decltype(nullptr) nullptr_t;
                 ^
/Users/zacgarby/code/c++/json/test/thirdparty/doctest/doctest.h:402:45: error: a space is required between
      consecutive right angle brackets (use '> >')
typedef basic_ostream<char, char_traits<char>> ostream;
                                            ^~
                                            > >
/Users/zacgarby/code/c++/json/test/thirdparty/doctest/doctest.h:993:6: error: expected expression
    [[noreturn]]
     ^

I cannot reproduce this on macOS 10.15.2 (19C57), Xcode Version 11.3 (11C29):
$ cmake .. -GXcode
-- The CXX compiler identification is AppleClang <IP_ADDRESS>00033
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from /Users/niels/Documents/repositories/json/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/niels/Documents/repositories/json/build

$ cmake --build .

(a lot of output omitted)

Build all projects

** BUILD SUCCEEDED **

Could you please share the steps you took until you observed the issues?

For the unit tests, it turns out I wasn't building properly. But, the problem is still there for another project I'm trying to build which uses json as a dependency.
Unfortunately I can't show you the code, it's private and not my own repository.
I'm still getting the same errors, for example:
/Users/zacgarby/code/c++/melkor-ii/thirdparty/json.hpp:711:60: error: a space is required between consecutive
      right angle brackets (use '> >')
    typename It::reference, typename It::iterator_category >>
                                                           ^~
                                                           > >

Which makes me thing the problem is in our build setup, not the library (i.e. we're probably using the wrong language version or some pedantic error flags). So, I'll close this for now.
Thanks!


System always shows "dumping errors" message

I have a Plametto machine and it appears that every time I boot I see this on the console:
  2.16642|ERRL|Dumping errors reported prior to registration

Why does this happen?
Is there something I can do to fix it?
Thanks!

On Mon, 2015-09-07 at 20:42 -0700, Joel Stanley wrote:

I have a Plametto machine and it appears that every time I boot I see
this on the console:
2.16642|ERRL|Dumping errors reported prior to registration
Why does this happen?
Is there something I can do to fix it?
Afaik it always did that ... even when there's nothing to dump.
Reply to this email directly or view it on GitHub.

Ben is right, that is normal (though I would admit a bit odd.  If there were errors you would see them there.  This seems like something we could remove, need to poke at the code to see if we know about the existence of logs at the point where we print that.

This would be a good thing for Manali to look into with her error log fix.
We display this trace once the error log handler is enabled - we can just move it into the loop where we find if there are previous error logs.

If errors are dumped here, what does that mean? there is an error in last IPL or now?

Any errors logged at this point are leftover from a previous boot.  There
are situations where we are not able to send the error log out to the BMC
during the initial error log.  In those cases we save the data to PNOR to
report on the next boot as extra information.
--
Dan Crowell
Senior Software Engineer - Power Systems Enablement Firmware
IBM Rochester: t/l 553-2987
<EMAIL_ADDRESS>From:   Yunkai Feng<EMAIL_ADDRESS>To:     open-power/hostboot<EMAIL_ADDRESS>Cc:     Daniel M Crowell/Rochester/IBM@IBMUS
Date:   11/23/2015 07:48 PM
Subject:        Re: [hostboot] System always shows "dumping errors"
message (#34)
If errors are dumped here, what does that mean? there is an error in last
IPL or now?
?
Reply to this email directly or view it on GitHub.

We seem to see these messages on every boot, even after doing a clean shutdown. Can we identify what the error is, and check that everything is working as it should?

You shouldn't be seeing errors on every boot, just the message "Dumping errors reported prior to registration".  The message alone means nothing.

Okay. So it will print "Dumping errors" even when it's not dumping any errors?

Yes, I agree that is less than ideal.  It's in our queue of random things to do.

Is there a tool to parsing Errlog in PNOR?

Is there a tool to parsing Errlog in PNOR?
Not at this point.  An error log parser is planned to be released to github at some point.  That tool will be able to take in a flattened binary version of an error log and decode the SRC and other details.

Is there a schedule for that tool?
Furthermore, now we analyse IPL errors based on BMC's sel. Is that enough and are there any other errors stored in pnor but not sent to BMC?

The data in PNOR is only necessary if for some reason we can't send the log out to the BMC.  For most errors you shouldn't need anything except the sel data to replace the bad part.  The full error log is sent to the BMC as an OEM eSEL (0xdf).  That data is useful for more complicated failure analysis.
There is no schedule for release yet.

Thanks!


Boss AI Implementation and NPC AI Improvement

Description
This pull request introduces significant improvements to the boss AI system, including new tasks and enhanced priority management for existing ones. I implemented new tasks such as JumpTask, RangeAttackTask, and AOEAttackTask, and all attack components are now disabled by default. Key tasks like ChargeTask and ChaseTask now enable the MeleeAttackComponent, while JumpTask triggers the AOEAttackComponent for a single attack after landing. The ChargeTask was enhanced with a distance multiplier, allowing the entity to run past its initial target position, and collision detection to stop charging when colliding with NPCs, players, or obstacles.
Additionally, I simplified the NPC task configurations, refined one-time tasks (e.g., ChargeTask, JumpTask, RunAwayTask) to manage priorities properly and stop automatically upon completion. Cooldowns were added to mosts tasks. The RunAwayTask was reworked completely and now can be activated based on health percentage. Overall, these changes result in better priority management, smoother task execution, and more dynamic, unique movements for all NPCs.
Closes #264 #391 #392
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Play testing
[x] ChargeTaskTest
[x] RunAwayTaskTest
[x] JumpTaskTest
[x] ChaseTaskTest

Checklist:

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

All code changes look good now just needs playtesting

Crashing on pickup of tombstone that is not present on team-7-animals branch

Crashing on pickup of tombstone that is not present on team-7-animals branch

Fixed the pets.json file that needed changes because of tasks update

Fixed necromancer load not working

Looks good with the fixes and changes


Pre-defined and Named Elastic Beanstalk Resources Undetected

cfn-lint version: cfn-lint 0.52.0
Description
Elastic Beanstalk has pre-defined named resources. cfn-lint doesn't appear to be able to detect this.
Code Example
Resources:
  AWSEBV2LoadBalancerListener:
    Type: 'AWS::ElasticLoadBalancingV2::Listener'
    Properties:
      Port: 80
      Protocol: HTTP
      LoadBalancerArn:
        Ref: AWSEBV2LoadBalancer
      DefaultActions:
        - Type: forward
          TargetGroupArn:
            Ref: AWSEBV2LoadBalancerTargetGroup

Template Linting Issue
In VS Code, I see red squigglies under LoadBalancerArn and TargetGroupArn because I guess cfn-lint doesn't know that AWSEBV2LoadBalancer and AWSEBV2LoadBalancerTargetGroup (and others not listed) are resources that Elastic Beanstalk creates:
[cfn-lint] E1012: Ref AWSEBV2LoadBalancer not found as a resource or parameter
[cfn-lint] E1012: Ref AWSEBV2LoadBalancerTargetGroup not found as a resource or parameter

Believe this was actually requested a few years ago: https://github.com/aws-cloudformation/cfn-lint/issues/524
Only documented a few mitigations due to the lack of demand but we can leave this open if more people are running into this issue


Use new dailyUsage query for display count

Use new dailyUsage query for display count
Tested via a partial query for just the display count and network display count
@ezequielc @alexey-rise please review. Thanks!

@alex-deaconu I run the query and compared results, as expected there are some discrepancies, but the new results seem more accurate. 👍  Thanks


SW-5047 Implement the new 'remove global roles for users' API into the Accelerator->People list view

Merge activity

Mar 19, 11:32 AM EDT: @nickgraz started a stack merge that includes this pull request via Graphite.


[QUERY] Access to interactive context via app_mention

Hi,
I would like to open a form or show a interactive dialog, once a user triggers a workflow by pinging the slack bot. I could not find the interactive_context as part of the TriggerContextData.Event.AppMentioned.*. Is there a way for me to push this dialog to the user? Are you planning to add the interactive context as part of the app mentioned event?

Hmm, I am not sure this event would be able to provide an interactive context, as an interactive context is user-specific, but the event can come from any user (or even another app).
The idea behind interactivity triggers / contexts is that they are like a key to unlocking higher privileges in your app, allowing your app to open modals or create richer, but also more intrusive, user experiences. Because of the risk of potential abuse of the interactivity APIs (think infinite-ad-popup experience), we gate access to these APIs via interactivity contexts. These contexts are only provided when a specific user interacts with the Slack client in particular ways, such as clicking a link trigger or interacting with an interactive Block Kit element.
If you want to open a form or modal, I suggest triggering your workflow using a link trigger. Those always include an interactivity context.

If I type as a user in a channel as "@bot message to the bot" then that in my mind could be considered as similar interactive context as to user typing a slash command "/bot message to the bot".

@tsarni looked into this a bit more, and it is a bit more complex than what you describe. You could also schedule a message for posting in the future that includes a bot mention. Or another workflow or other bot could mention your bot. So app mentions (or more generally: messages) are not 100% guaranteed to originate from an end-user interaction.


To avoid blocking build tools, suspend ALE when suspending vim

Adds support for having ALE stop any linting jobs when vim is dropped into the backgorund (CTRL-Z).
Closes #1898

This should be better now, as CI is happy 😄

Cheers! :beers:


Converts the line chart into a stacked line chart in [MONITORING][API LATENCY OVER TIME]

Purpose
Converting the line chart into a stacked line chart in [MONITORING][API LATENCY OVER TIME]
Goals
Fixes https://github.com/wso2/analytics-apim/issues/1264
Approach
The following images show the charts. Here the overall latency can be found by selecting all the latencies and looking at the topmost line.

Automation tests

Integration tests
Tested with locally build pack.

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? N/A
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Test environment
Chrome 81.0.4044.138

Isn't a filled stack chart is a better representation?

Isn't a filled stack chart is a better representation?

Have a look at the stacked area chart. Seems better compared to the stackedline.


Enable pure IPv6 Director/UAA/Credhub integration without use of DNS

Pipeline running: https://main.bosh-ci.cf-app.com/teams/main/pipelines/ipv6

cc @cunnie

Related upstream pull request which fixes the need for monkey-patching - https://github.com/ruby/openssl/pull/185


fix(window): Clean up resize handler and avoid errors if called after dispose.

Fixes an error introduced if the resize handler was called after disposal (this.element was no longer defined), and prevents leaking windows due to not removing the event listener.

Also fixed leaking settings window, caused by not calling parent destroy functions and leaving listeners around.


Support Amazon OS

I think it is not taking much time to support Amazon OS.
Thanks

With the use of platform family this cookbook now supports amazon linux


operands could not be broadcast together with shapes (960,720,3) (953,715,1)

When using
`
def process_images_in_folder(folder_path, background_image_paths):
#? Load model
remover = Remover(ckpt='C:\Users\James\.transparent-background\ckpt_base.pth')
#? Get a list of JPG files in the folder
jpg_files = [f for f in os.listdir(folder_path) if f.lower().endswith('.jpg')]
#? Process each JPG image in the folder with each background
for jpg_file in jpg_files:
#? Construct the full path to the image
image_path = os.path.join(folder_path, jpg_file)
#? Open the image and convert it to RGB format
img = Image.open(image_path).convert('RGB')
try:
#? Process the image with each background image 1
out = remover.process(img, type=background_image_paths)
#? Save the processed image with a new name
output_path = os.path.join(folder_path, f'output_{jpg_file}_{os.path.basename(background_image_paths)}.png')
out.save(output_path)
except Exception as e:
print(f"Error processing {jpg_file} with background: {background_image_paths}")
print(f"Error message: {e}")
#? Delete the bad image
os.remove(image_path)
print("Finished processing all images with different backgrounds.")
`
It says "Error processing ghost-stand2.jpg with background: samples\background1.jpg
Error message: operands could not be broadcast together with shapes (960,720,3) (953,715,1)"
Im thinking this is due to SampleImage1 having a resolution of (960,720) while SampleImage2 has (953,715) but im unsure as to why its causing problems and/or how to fix it currently
Test Photos in use can be found attached Below
Full terminal output ::
C:\Users\James>python ImageEngine.py "C:\Users\James\Ghost Booh Stand" 1
C:\Python310\lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ..\aten\src\ATen\native\TensorShape.cpp:3527.)
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
Settings -> Mode=base, Device=cpu, Torchscript=disabled
Error processing ghost-stand2.jpg with background: samples\background1.jpg
Error message: operands could not be broadcast together with shapes (960,720,3) (953,715,1)`
Sample1::

Sample2::

Background1::

Hi, @j-dbooth thank you for reporting a bug for us. We'll try fixing it. Until then, please use cli-tool instead which seems working on your samples.

Hi, please check out for the new release.
Let be briefly explain the error. Because we did not expect using same background for different image resolution, the background image was reused which had been already resized into the previous input.
We fixed the issue by tracking the background image resolution, filename to deal with the new input.
Thank you.

@j-dbooth can you mark this as closed?

Closing the issue. Please open another issue if this problem persists.

@j-dbooth can you mark this as closed?

It got closed ages ago?

@j-dbooth can you mark this as closed?

It was closed by Plemeri ages ago, was it not?


How did you get the TaiChi dataset?

I follow https://github.com/AliaksandrSiarohin/video-preprocessing/tree/master
Dowloading videos and cropping according to precomputed bounding boxes

Instal requirments:

pip install -r requirements.txt

Load youtube-dl:

wget https://yt-dl.org/downloads/latest/youtube-dl -O youtube-dl
chmod a+rx youtube-dl

Run script to download videos, there are 2 formats that can be used for storing videos one is .mp4 and another is folder with .png images. While .png images occupy significantly more space, the format is loss-less and have better i/o performance when training.

Taichi
python load_videos.py --metadata taichi-metadata.csv --format .mp4 --out_folder taichi --workers 8

select number of workers based on number of cpu avaliable. Note .png format take aproximatly 80GB.
but But I failed to download youtube-dl
--2024-07-21 17:00:31--  https://yt-dl.org/downloads/latest/youtube-dl
Resolving yt-dl.org (yt-dl.org)... <IP_ADDRESS>, 2001:1a50:11:0:5f:8f:acaa:177
Connecting to yt-dl.org (yt-dl.org)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 451 Unavailable For Legal Reasons
2024-07-21 17:00:33 ERROR 451: Unavailable For Legal Reasons.

I have the dataset on my machine but its a very large dataset so might be difficult to transfer.

thanks， i got it
---Original---
From: @.>
Date: Thu, Jul 25, 2024 06:07 AM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [ubc-vision/StableKeypoints] How did you get the TaiChi dataset?(Issue #8)
I have the dataset on my machine but its a very large dataset so might be difficult to transfer.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

thanks， i got it
…
---Original--- From: @.> Date: Thu, Jul 25, 2024 06:07 AM To: @.>; Cc<EMAIL_ADDRESS>Subject: Re: [ubc-vision/StableKeypoints] How did you get the TaiChi dataset?(Issue #8) I have the dataset on my machine but its a very large dataset so might be difficult to transfer. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

because the taichi dataset just contains 500+300 images, I found previous research that provides these images.

it's here:
https://github.com/AliaksandrSiarohin/motion-cosegmentation/issues/32

I guess the eval_images is just like 'eval_images' in the taichi.py.
I also feel there are typos here, because I read the Siarohin paper, and found they use 5000 images for training and 300 for testing, which is exactly the same number in the eval_images.tar


Fail early (and tell user) on a message-link tap when the URL is invalid

Like a toast saying "Link is invalid: ${url}".
We hope to do this just after #5492 settles.

Hmm, I think this might interfere with our planned fix for #4136.
I expect that a link that's gone through the URL parser will be URL encoded, and our current plan for #4136 is to do something different from the standard URL encoding:

So it seems like we need to, in openLink on iOS before passing the URL to SafariView.show:

%-encode non-ASCII characters -- that's Exception in SafariView on non-ASCII URLs ("unsupported scheme") #3315;
but not %-encode % itself, instead leave it alone;
and presumably also leave alone all the other characters that encodeURI leaves alone, like a and Z and /;
and it's not clear if we should %-encode the remaining characters that encodeURI affects, like   and " and a bunch of other punctuation.

This makes me wonder if there might be a better plan to consider, but I don't yet know what.

I expect that a link that's gone through the URL parser will be URL encoded, and our current plan for #4136 is to do something different from the standard URL encoding:

[…]

This makes me wonder if there might be a better plan to consider for #4136, but I don't yet know what.

Hmm, interesting.
Looking into a bit, I think it actually points us to such a plan -- more specifically, to a convenient and also reassuring way to implement that plan!
Specifically, if you take a URL string and round-trip it through the URL parser, you end up with pretty much the sort of partial percent-encoding I described -- non-ASCII characters get encoded, % doesn't:
> new URL('https://example.com/?a=b%3D&c=þ').href
'https://example.com/?a=b%3D&c=%C3%BE'

Contrast that with encodeURI:
> encodeURI('https://example.com/?a=b%3D&c=þ')
'https://example.com/?a=b%253D&c=%C3%BE'

As a note in the URL spec (https://url.spec.whatwg.org/#url-code-points) puts the behavior:

Code points greater than U+007F DELETE will be converted to percent-encoded bytes by the URL parser.

Concretely, what's happening in that example is that in query state, the input gets encoded using the special-query percent-encode set; and that contains all code points above U+007E, as do each of the other percent-encode sets defined in the standard, but does not contain U+0025 %, again like all the other percent-encode sets defined there.
I'll update #4136 with that thought.


setUseBOM capability for the writer

Hi,
I'm trying to export a csv file with special characters. In order to make it work using this plugin, The setUseBOM of PHPExcel_IOFactory should be set to true. Hopefully we could have a function to allow us setting the value of setUseBOM or maybe modifying the $this->writer of LaravelExcelWriter class

If you want you can make a PR to add a config value to do this.

What's a PR?

A pull request

The $writer property is public. So you should be able to do:
Excel::create('file', function($writer) {

    $writer->writer-> setUseBOM();

});

@patrickbrouwers writer doesn't get set/initialised until after the protected _render method is called within the public download() function (for example) - by which time it's too late to change the writer property.
In your example above, writer is null and the following error ocurs Call to a member function setUseBom() on null

@patrickbrouwers  as what @sitesense  said, The writer is reinitialized whenever I call download function. I've called setUseBom but then again download function overrides the writer.
There is a _setWriter function called inside download function that recreates the writer inside it. Perhaps can we reuse the writer on download instead of reinitializing it?

Like I said before, make a pull request which adds the useBOM() method. That's the beauty of open source ;)

@patrickbrouwers I also need the setUseBom(true); for a project. Any chance you can do this? I am happy to pay you to do it.

@dannyandersen Any donation would be highly appreciated: https://pledgie.com/campaigns/30385
Would definitely make my consider putting this on top of my todo-list ;)

We are closing all old tickets, because version 2.* is reaching the End-of-Life stage. Our full attention is now allocated to version 3.0. It's still possible to use 2.*, but there will be no active support anymore.


[BUG] - Snippet

NextUI Version
2.1.13
Describe the bug
When I looked at the sample in CodeSandbox, I found that copyIcon's copy function was not working.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Go to https://nextui.org/docs/components/snippet
Click Code under the Usage heading
Click the CodeSandbox icon
Click the copyIcon in the Snippet component

Expected behavior
As a user, I want CodeSandbox's copyIcon to work, but it is currently unresponsive after clicking.
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome

Same problem with nextjs (just in prod)

Upon testing your steps, I can't reproduce mentioned bug. Clicking on a snippet copy icon inside a Codesandbox works fine on my machine. @BuZhiHeWei can you confirm with the latest release?
MacOS Sonoma 14.1
Firefox

I noticed that I only encountered the bug on the server. After some research, I found out that I needed to enable the HTTPS protocol to make the copy button work.

I noticed that I only encountered the bug on the server. After some research, I found out that I needed to enable the HTTPS protocol to make the copy button work.

Could you show me some code and explain it？


docker stack deploy should have a single file option

docker stack deploy now has --compose-file and --bundle-file, which are mutually exclusive.
Since a bundle file is JSON and a compose file is YAML it should be trivial to automatically detect the file format (a bundle file will begin with {, possibly followed by whitespace, and a bundle file will not).
I think it would be much simpler to only have a single option, possibly -f for consistency with other tools.

It would be even better if we can set docker-compose.yml as the default value of -f

Added a PR #28998 for this issue. It seem that in 1.12.3 the flag was still --file so probably no need for deprecation if the PR is accepted before 1.13.0 release.

I think it's better to be explicit about what you're providing. JSON is valid yaml, so someone could generate a yaml file that is interpreted as json, but is not a valid dab.
Also --bundle is experimental. We should not be adding dab file support to a non-experimental flag, because we may still want to remove it.
We don't need a -f, we have a -c for the --compose-file option.

@dnephin @aaronlehmann
WDYT about this alternative idea?

--file: only supports the compose YAML
--file-experimental: supports both compose YAML and DAB JSON. The flag will be removed when we remove or promote DAB.

I think the current flags are more appropriate, both in name and functionality.

https://github.com/docker/docker/pull/28998 is closed, is this issue closable as well?
@thaJeztah @aaronlehmann @dnephin

Lets close for now, we can reconsider in future


Implements a parsing short year format (ex: d.m.yy)

This fix from Wrike Team.

I can't do anything with this without the CLA.

Ping. This needs a CLA. Otherwise I can't do anything with it, and we might as well close.

Yes, I signed it. I added my second email addres.

Thanks!

@alan-knight Can this be reviewed and considered? This is a significant problem as dates with a short year format cannot be parsed still 3 years later... Issue #123 related


test: end-to-end sink test is flaky

Discussion thread here. Occurrences:

https://buildkite.com/risingwavelabs/pull-request/builds/16360#0185f798-e00a-4a90-8b2d-ac2e9f95f484
https://buildkite.com/risingwavelabs/pull-request/builds/15902#0185be6a-a850-43ad-9984-c739898b2c3b

It might be possibly caused by the connector node not fully booting up when the compute node tries to connect it. We need to wait for the port to be ready.

Are we going to fix it in #7452? cc @KivenChen @tabVersion

Need to be solved for sure.

Kiv has ended his internship so assigned to @tabVersion . Feel free to reassign

Only 1-second wait? Shall we increase it?
https://github.com/risingwavelabs/risingwave/blob/d4193889af95cfbceeb5232f60ef96134fd567da/ci/scripts/e2e-sink-test.sh#L65

try to fix in #7452 , leave this issue open for observation.


how to generate kitti style train.txt file

Hi, we try to use python tools/create_data.py but found that it needs txt files such as  ImageSets/train.txt in kitti_format dir.
How could we generate these txt files so that we can reproduce the CTRL work?
Thanks for your kind help : )

Our method: collect the idxs from idx2contextname.pkl and assign idxs to train/val/test in terms of their corresponding context_names

Sorry for the late reply. We have been quite busy lately. Your solution seems nice, did it work? I can upload these files if you need.

@Abyssaledge  It works well and we have reproduced the pipeline successfully : )


Connection trouble for macos sequoia 15.0

Hi
After update my system to latest version (macos sequoia 15.0 for a moment) i have problem with connection. So no data recieved in my client, any logs and error "error sending TUIO" in simulator screen. Nothing changed in my software (i'm using it as c# object in unity, but before update it works fine). Have you any idea why it's can happend?

I expect the issue is the updated macOS Gatekeeper which will be preventing the app from opening network connections. You will probably need to add some entitlements allowing client/server network access and codesign the app using your Apple Developer Id certificate to get things working again. If you're developing your app on the mac already this should be ok because you should have everything you need (Xcode, codesign tools, Apple Developer Account, etc).

Well apple just change my local ip, so need to update startup data in simulator to resolve it. Looks like not issue now :)


Wishlist: support for CBOR Sequences

https://www.rfc-editor.org/rfc/rfc8742.html
For example, if support for cbor sequences were present, I believe the following should parse:
{
  echo '{"a":1}' | cbor-diag --to=bytes ;
  echo '{"b":2}' | cbor-diag --to=bytes ;
} | cbor-diag --to=annotated

Ideally the following would work as well (accept jsonl/ndjson and other representations of sequences of documents):
{ echo '{"a":1}' ; echo '{"b":2}' ; } | cbor-diag --to=annotated

> {
  echo '{"a":1}' | cbor-diag --to=bytes ;
  echo '{"b":2}' | cbor-diag --to=bytes ;
} | cbor-diag --seq --to=annotated
a1       # map(1)
   61    #   text(1)
      61 #     "a"
   01    #   unsigned(1)

a1       # map(1)
   61    #   text(1)
      62 #     "b"
   02    #   unsigned(2)

--seq currently implies --from=bytes, but it seems reasonable to support other formats with it too (would need to add more _partial functions to the library for them).


Create security policy to repo

Description:
Add a security policy in order to improve OpenSSF score:

[optional Relevant Links:]
https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository

dup of #2924


chore(component): remove nextTick

Both mentioned issues are resolved now.

Nice! Have you confirmed that client-side navigation to a page with the Turnstile component still works?

Yes, to the best of my knowledge: I enabled the playground widgets to load right away, navigated to /home and back and I noticed no issues.

I think this is no longer relevant with Nuxt Scripts implementation

Right, I think so too :rocket:


chore: add bug report and feature request templates

The bug report template was streamlined in order to:

minimise meta content that is not related to the problem (instructions how to search for information, add logging, etc.)
focus on the important parts: Playground link if possible, steps to reproduce, etc.
ideally we would like to use this template in the team as well!

Comments are addressed. I also added link to the instruction for obtaining detailed logs.


fix: use edit link in last updated info

Closes #117

Image optimization came back clean!
Vuepress build was successful!
No markdown files were changed, so no page checks were run!

Image optimization came back clean!
Vuepress build was successful!
No markdown files were changed, so no page checks were run!

Image optimization came back clean!
Vuepress build was successful!
No markdown files were changed, so no page checks were run!


Too many digressing links. The tutorial seems to be talking to an experienced programmer and gives too much information too soon.

oo many digressing links. The tutorial seems to be talking to an experienced programmer and gives too much information too soon.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a25bf940-8977-fec4-461b-542a9f550fc8
Version Independent ID: 5492c641-af15-64b8-beaa-ddf511be73e6
Content: Get started with Razor Pages in ASP.NET Core
Content Source: aspnetcore/tutorials/razor-pages/razor-pages-start.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

I didn't feel there were too many links, as it was mitigated by (most of) them being prefaced by "You don't need to review each link provided below. The links are provided as a reference when you need more information..."

@JonWilmer Thanks for your comment. My feeling is these links help those who want to dive deeper - maybe on a 2nd look at the tutorial.

cc @BillWagner @tdykstra I think removing all external links would be a disaster for this tutorial and turn it into a cook-book recipe that must be followed exactly. When you have time take a look at the links. For example, most folks want to know why the app is asking about privacy. You have to accept to unmask the menu items. I think the GDPR link is essential.

Bower is no more.
How do move forward with this as its now completely out  of date.


unable to execute QEMU command

Issue migrated from https://api.github.com/repos/zero-os/0-core/issues/522, opened by @FastGeert
[Wed18 10:12] - Job.py              :68  :j.core.jobcontroller.job.baaf8c7c2fac6be312b2157917b55f57 - ERROR    - job: vm!vm3 (processChange) failed:
Traceback (most recent call last):
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/tmp/actions/vm/f0a9d5626917e010d649440f2241af71.py", line 133, in processChange
updateDisks(job, node, args)
File "/tmp/actions/vm/f0a9d5626917e010d649440f2241af71.py", line 261, in updateDisks
client.client.kvm.attach_disk(uuid, media)
File "/usr/local/lib/python3.5/dist-packages/zeroos/core0/client/client.py", line 2269, in attach_disk
self._client.sync('kvm.attach_disk', args)
File "/usr/local/lib/python3.5/dist-packages/zeroos/core0/client/client.py", line 761, in sync
raise ResultError(msg='%s' % result.data, code=result.code)
zeroos.core0.client.client.ResultError: "failed to attach device: virError(Code=1, Domain=10, Message='internal error: unable to execute QEMU command 'device_add': Property 'virtio-blk-device.drive' c
an't find value 'drive-virtio-disk2'')"

Can't be reproduced


Variable $map4 is not  included in the -ClaimsMappings parameter of the New-SPTrustedIdentityTokenIssuer call

In the PowerShell script, the one used in setting the SP trusted identity provider (Section 8. Configure a new trusted identity provider in SharePoint Server 2016) there is a variable named $map4 regarding the Email claim.
That variable is not included in the -ClaimsMappings parameter of the New-SPTrustedIdentityTokenIssuer call in that same script.

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: abc120a6-1b98-874a-1cfb-b43456f4a718
Version Independent ID: 1008851f-9a43-953c-e6c1-269397268c72
Content: Tutorial: Azure Active Directory integration with SharePoint on-premises
Content Source: articles/active-directory/saas-apps/sharepoint-on-premises-tutorial.md
Service: active-directory
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@tbebekis Thanks for reporting! I have made necessary changes to the script and submitted the pull request.


only vertically center modal dialogs

#52

@wibblymat can you see #52 and my reading of the spec? :)

LGTM :+1:


Added --expose-wasm to d8 flags

This is a one-line fix as suggested in issue #16 .

Looks good, are you a WebAssembly community member?

No, I'm not a member of WebAssembly. Does it mean that my pull request can't be merged by you or someone else? Apologies for all these beginner's questions!

A PR like this can be since it doesn't really contain IP. But for larger changes you will need to join the community group.

This one's simple enough that we can merge it. Substantial or novel changes require CG membership though.


README example does not work

Not sure what is wrong but I can't make a simple example to work:
import FetchBot from 'fetchbot';

const fetchbot = new FetchBot('', {
  attached: false,
  slowmo: 250,
  width: 1280,
  height: 1024,
  trust: true
});

// Pass a path to a job configuration file
(async () => {
  const fetchBotData = await fetchbot.runAndStandby(`${__dirname}/templates/test.json`);
  console.dir(fetchBotData);
})();

Only gives me an empty object output: {}

test.json

{
  "https://google.com": {
    "root": true,
    "type": [["input[type=\"text\"]", "puppeteer-fetchbot aoepeople"], ["input[type=\"text\"]", "\n"]]
  },
  "/search": {
    "fetch": {
      "h3.r > a AS headlines": [],
      "h3.r > a AS links": {
        "attr": "href",
        "type": []
      }
    },
    "waitFor": [[1000]]
  }
}

Any ideas?

update: the hacker-news.json update does work so I guess there might be an issue with this one. Might be worth changing the example in the readme as it is the first thing people will try.

Hey @mgcrea,
thanks for well documented issue — helped me a lot to fix quickly :-)
Seems markup has changed so the example won't work anymore.
When modifying your test.json and remove [type=\"text\"] on both type commands it's working again.
Can you confirm?
Here the test.json content:
{
  "https://google.com": {
    "root": true,
    "type": [["input", "puppeteer-fetchbot aoepeople"], ["input", "\n"]]
  },
  "/search": {
    "fetch": {
      "h3.r > a AS headlines": [],
      "h3.r > a AS links": {
        "attr": "href",
        "type": []
      }
    },
    "waitFor": [[1000]]
  }
}

Once it's working for you I'll push an updated example.


Add Tooltip to menu and Autohide the menu on click of item

Add the tooltip to the side menu bar when it is in collapsible state.
Hide the side menu when user clicks on the menu item
Use the existing material/ngx-bootstrap library for tooltip implementation.

@htvenkatesh Completed the task and its ready for QA.

Working as expected


Gorm slow when querying 4000+ rows

Your Question
version: v1.22.4

I have a query which is not slow when I use explain analyze in pgsql:
pgsql=> explain analyze SELECT * FROM "employees" WHERE (organization_id = 'XYZ') AND is_duplicate = false;
                                                  QUERY PLAN
--------------------------------------------------------------------------------------------------------------
 Seq Scan on employees  (cost=0.00..1072.86 rows=4245 width=232) (actual time=0.845..5.401 rows=4283 loops=1)
   Filter: ((NOT is_duplicate) AND (organization_id = 'XYZ'::text))
   Rows Removed by Filter: 18109
 Planning Time: 1.005 ms
 Execution Time: 5.627 ms

I then try to include network latency as well:
pgsql=> \timing
Timing is on.
pgsql=> SELECT * FROM "employees" WHERE (organization_id = 'XYZ') AND is_duplicate = false;
Time: 1742.852 ms (00:01.743)

Which is not the best, but still ok considering I am running pgsql from China while the Postgres instance is in us-central on GCP.
However, when using GORM to query the data in a golang app, based on the GORM's logger output, it is extremely slow. The code runs in an GCP instance in the same network (us-central1 on GCP) as the Postgres instance, where network latency is minimized. My code looks like:
query := e.db.Orm.WithContext(ctx).Model(&employees).
                 Preload("A").
		Preload("A.X").
		Preload("B").
		Preload("B.Y").
		Preload("C").
		Where("organization_id = ?", organizationID).
		Where("is_duplicate = ?", false)

The employees table has 20 columns. Only has index on primary key. Almost all rows have is_duplicate = false.
The resulting pre-load query performance is fine:
  elapsed: 1283338  // 1.28ms
  message: "trace sql execution"
  rowsAffected: 10
  sql: "SELECT * FROM "C" WHERE "C"."id" IN ('1','2','3','4','5','6','7','8','9','10')"
  tag: "employees"
  timestamp: "2022-01-08T03:31:47.353114137Z"

but querying the 4283 employees take almost 6s:
elapsed:<PHONE_NUMBER>  // 5934.93ms
message: "trace sql execution"
rowsAffected: 4283
sql: "SELECT * FROM "employees" WHERE (organization_id = 'XYZ') AND is_duplicate = false"
tag: "employees"
timestamp: "2022-01-08T03:31:52.448252349Z"

I suspect GORM introduced significant amount of latency in my cause. Where did I do wrong? Where is the latency coming from? Any suggestion to improve the performance with GROM?
--- update ---
Looks like the Preload has something to do with this. I replace some preload with joins in my code and seeing some improvement:
query := e.db.Orm.WithContext(ctx).Model(&employees).
    Joins("A").
    // Preload("A.X"). looks like GORM doesn't support nested joins preloading
    Joins("B").
    // Preload("B.Y"). looks like GORM doesn't support nested joins preloading
    Joins("C").
    Where("organization_id = ?", organizationID).
    Where("is_duplicate = ?", false)

and that reduce quite a lot of latency. However, looks like GORM doesn't support nested joins preloading, so I can't simply change to Joins.

The document you expected this should be explained

Expected answer
Understand the source of the latency and get suggestions on how to reduce it.

What is the definition statement of the table of "employees" or the col num of the table? The number of columns may greatly affect the performance of orm

GORM v1.23 have improved this a lot, please upgrade to the latest version, thank you.


Invalidate 2fa token after first use

Currently a 2fa TOTP code can be used as many times as a user wants within the 30 second window it is valid.
This may allow a malicious actor who can somehow capture one valid 2fa code to reauthenticate during this time.
So we need to invalidate the token once it is used once.

Potentially fixed on unstable


Fix the _onInputChange of input date

@Ephrame Adding some strict parsing for date validation, as saw with @gideruette


Enable rendering of submaps without a grid

related to https://github.com/googlecartographer/cartographer_ros/issues/819

@wally-the-cartographer merge

Merge requested by authorized user kdaun. Merge queue now has a length of 1.


Feature Request: Retry count

Until one of our devs finds the time, I was wondering if there were any plans, or anyone already has extending the library to have a retry count for connections.
I.e Im looking for a feature to retry a download 3 times if it times out/fails cause of a broken connection. Perhaps with a sleep period between attempts.
It would save me writing extra subs each time to support this feature

sorry for digging this out, but I need some advice that, should we be careful about retain circle when recursiving for self?
 failure:^(AFHTTPRequestOperation *operation, NSError *error) {
            [self downloadFileRetryingNumberOfTimes:ntimes - 1 success:success failure:failure];
        }];
    }

the block hold self, and the next recursive downloadFileRetryingNumberOfTimes will lead to self hold the block?

In my case, I frequently required this functionality so I came up wit this retry policy category that will help you with that AFNetworking+RetryPolicy
I know it the old issue, but with respect to AFNetworking 3.0 it could serve well.

Here is a example, support fail retry and timeout retry
+ (NSURLSessionDataTask *)requestWithFailRetry:(int)failRetry timeOutRetry:(int)timeOutRetry manager:(AFHTTPSessionManager *)manager url:(NSString *)url parameters:(NSDictionary *)parameters success:(void (^)(NSDictionary *data))success fail:(void (^)(NSError *error))fail {
    return [manager POST:url parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData>  _Nonnull formData) {
        //
    } progress:^(NSProgress * _Nonnull uploadProgress) {
        //
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        [success:success];
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        if (failRetry <= 0 || timeOutRetry <= 0) {
            [fail:fail];
        } else {
            [YourClass requestWithFailRetry:failRetry - 1
                              timeOutRetry:error.code == NSURLErrorTimedOut ? timeOutRetry - 1 : timeOutRetry
                                   manager:manager
                                       url:url
                                parameters:parameters
                                   success:success
                                      fail:fail];
        }
    }];
}

In my case, I frequently required this functionality so I came up wit this retry policy category that will help you with that AFNetworking+RetryPolicy
I know it's the old issue, but with respect to AFNetworking 3.0 it could serve well.

👍 Good!


Change: Add 'RaftStorage' and 'RaftNetwork' into 'RaftTypeConfig'

Checklist

[x] Updated guide with pertinent info (may not always apply).
[x] Squash down commits to one or two logical commits which clearly describe the work you've done. If you don't, then Dodd will :).

This change is

BTW, this checklist is somehow out-of-date, someone should probably adjust/remove it.

:(


[jhw] support DbValueType.M

I was having trouble being able to build solution and run all unit tests. This is some fixes, some commenting stuff out just to make it compile, and also found the same issue for DbValueType.M as we had for DbValueType.L
The intent is for master branch to be stable

@jweissBHG Just fixed up the repository. Could you rebase and submit DbValueType.M in isolation?

Alright @iamcarbon rebase is done, this is just the DBValueType.M now

@jweissBHG Merged.


[video_player] Cannot play video on iOS

Hey!
When I try to play a video on iOS using the link https://data-big.ru/v1/file/y6845e4k4pb49ccsgdu3kmc6ydeuyqxo9zedszkohnkoqkwuq3, I get an error
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: PlatformException(VideoError, Failed to load video: Operation stopped, null, null)
When playing on Android, this error does not occur
Steps to Reproduce
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({
    Key? key,
  }) : super(key: key);

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

class _MyAppState extends State<MyApp> {
  late VideoPlayerController _controller;

  @override
  void initState() {
    _controller =
        VideoPlayerController.network('https://data-big.ru/v1/file/y6845e4k4pb49ccsgdu3kmc6ydeuyqxo9zedszkohnkoqkwuq3')
          ..initialize().then((_) {
            setState(() {});
          });

    super.initState();
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: _controller.value.isInitialized
              ? AspectRatio(
                  aspectRatio: _controller.value.aspectRatio,
                  child: VideoPlayer(_controller),
                )
              : Container(),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {
            setState(() {
              _controller.value.isPlaying ? _controller.pause() : _controller.play();
            });
          },
          child: Icon(
            _controller.value.isPlaying ? Icons.pause : Icons.play_arrow,
          ),
        ),
      ),
    );
  }
}

Hi @mtrfnvwork, thanks for filing the issue.
Please provide the output of flutter doctor -v as well as the version of video_player you're experiencing this issue with.
Thank you

@danagbemava-nc video_player version is video_player: ^2.2.19
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-x64, locale
    ru-RU)
    • Flutter version 2.10.2 at /Users/.../flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (10 days ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/.../Library/Android/sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

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

[✓] Connected device (4 available)
    ...

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @mtrfnvwork, this is not an issue with video_player but rather an issue with the URL that you have provided to it.
I tested this by creating a native iOS project and trying to play the video in the native AVPlayer (which is used by VideoPlayer) and the video is never initialized. That is why you're getting the error from the video_player widget.
As such I'm going to close this issue since the video cannot be played by the native AVPlayer.
Thank you


RTE in Assignment > New Grader UI

Reduced editor appears in New Grader Feedback Text, Feedback comment & Private notes popups

Looks to be different editor loaded as Nightly has reduced editor in New Grader UI as well

This should be an upstream JIRA IMO. the new grader editors should respect the user's editor preference.