Handle the URL with parent directories

In my org project, there are sub-directories. The backlinks won't show due to them. So in this PR, the sub-directories are handled.
Here is the debug info:
Load is triggered on #filenode
(index):688 The original string is http://localhost:8080/2020/2020-11-monthly.html?token=null
(index):690 The filtered (v1) string is 2020-11-monthly.html?token=null
(index):692 The filtered (v2) string is 2020-11-monthly
(index):695 select2Data[0]: index
(index):695 select2Data[1]: kb/roam
(index):695 select2Data[2]: kb/python
(index):695 select2Data[3]: kb/note_taking_app
(index):695 select2Data[4]: kb/geant4
(index):695 select2Data[5]: 2020/2020-weekly
(index):695 select2Data[6]: 2020/2020-11-monthly

Sorry for the late response, I couldn't look into it, a little bit busy :( I will check it out this weekend

Hi @goktug97,
Thank you very much.

Thanks for the contribution!!


[Feature Request]: Extract Cookies without admin privileges

Describe the feature
Hi. Tried rookiepy on windows. But it has to be run as administrator. Earlier I found a nice gist from @thewh1teagle describing how to get Chrome cookies using websocket so no admin privileges needed. https://gist.github.com/thewh1teagle/359675c2f5ea4920949448ec705f9fb2
Is there any chance we will have this for some more browsers ?

Looking forward to improvement.


WARNING: Renegotiation needed but unimplemented

Someone help?
I start server with apprtc-node-server.
Client 1 connect successfully
Client 2 connect to server and get below log.
2017-02-16 17:38:56.449 AppRTC[3186:971716] Client connecting.
2017-02-16 17:38:56.456 AppRTC[3186:971716] Registering with room server.
2017-02-16 17:38:56.457 AppRTC[3186:971716] url = http://<IP_ADDRESS>:3000/join/678567
2017-02-16 17:38:56.818 AppRTC[3186:971716] Registered with room server.
2017-02-16 17:38:56.819 AppRTC[3186:971716] Opening WebSocket.
2017-02-16 17:38:57.451 AppRTC[3186:971716] Client connected.
2017-02-16 17:38:57.888 AppRTC[3186:972801] WARNING: Renegotiation needed but unimplemented.
2017-02-16 17:38:57.892 AppRTC[3186:971716] Failed to set session description. Error: Error Domain=RTCSDPError Code=-1 "(null)" UserInfo={error=SessionDescription is NULL.}
2017-02-16 17:38:57.892 AppRTC[3186:971716] C->RS: BYE
2017-02-16 17:38:57.893 AppRTC[3186:971716] url = http://<IP_ADDRESS>:3000/leave/678567/13001337
2017-02-16 17:38:57.916 AppRTC[3186:971716] Client disconnected.
2017-02-16 17:39:07.081 AppRTC[3186:971716] Received bad response: <!DOCTYPE html><title></title><link rel="stylesheet" href="/stylesheets/style.css">
clientIds is not defined

ReferenceError: clientIds is not defined
    at Room.removeClient (/Users/.../apprtc-node-server/lib/rooms.js:55:23)
    at /Users/.../apprtc-node-server/routes/index.js:470:12
    at Rooms.get (/Users/.../apprtc-node-server/lib/rooms.js:81:5)
    at /Users/.../apprtc-node-server/routes/index.js:462:9
    at Layer.handle [as handle_request] (/Users/.../apprtc-node-server/node_modules/express/lib/router/layer.js:82:5)
    at next (/Users/.../apprtc-node-server/node_modules/express/lib/router/route.js:110:13)
    at Route.dispatch (/Users/.../Project/apprtc-node-server/node_modules/express/lib/router/route.js:91:3)
    at Layer.handle [as handle_request] (/Users/.../apprtc-node-server/node_modules/express/lib/router/layer.js:82:5)
    at /Users/.../apprtc-node-server/node_modules/express/lib/router/index.js:267:22
    at param (/Users/.../apprtc-node-server/node_modules/express/lib/router/index.js:340:14)

2017-02-16 17:39:07.087 AppRTC[3186:971716] Failed to unregister from room server.

Check your media session.


Llama's rope

Hi team, I was wondering when we train llama v2 model with TE, how should we generate rotary_pos_emb argument to pass into forward? Do we have an code example for it? Thank you in advance.

This is how the user can configure and pass the parameters. The RotaryEmbedding module is defined here.


[miomio] fix info extraction (fixes #7366)

i used the same headers for the video urls.

Thanks merged.


Cant switch profile if profiles are included via $(cat)

What happened?
I upgraded to 5.18.5. There is new feature: profiles can be described as includes via $(cat). It perfectly working, if you use --profile flag. But if you try call devspace use profile local - there is an error, says profile is not found. If I change it manually in .devspace/generated.yaml - profile changes.  If I try devspace list profiles, it says there is no entries found.
What did you expect to happen instead?
I expect, that profile is changing correctly to my "local" profile if it is included via $(cat), when I enter devspace use profile local
How can we reproduce the bug? (as minimally and precisely as possible)
My devspace.yaml:

version: 5.18.5, MacOS
...

Local Environment:

DevSpace Version: 5.18.5
Operating System:  mac
ARCH of the OS: ARM64(M1)
Kubernetes Cluster:
Cloud Provider: Rancher-Desktop

Anything else we need to know?

/kind bug

@vladitot thanks for reporting this issue! Seems like the cat is not correctly resolved on the devspace use profile command. We will fix that!

@vladitot since this functionality will be removed in v6 I'm not sure if it's a good idea to fix that now

We don't remove profiles completely, rather we remove the devspace use profile command as it makes DevSpace harder to understand if the profile is cached. In v6 (for which we will release docs very soon), we rather recommend to use pipelines and flags instead, although profiles still will work fine.

Ok, when the docs will be ready? And when v6 release is planned?

Docs should be ready on monday next week, and release will be in approx 2-3 Weeks


added debug message

This PR exist to figure out why mpirun is used for the github ci tests when it shouldn't be.


Behavior of molecule state enumerators

Is your feature request related to a problem? Please describe.
When using the molecule enumeration methods (enumerate_tautomers, enumerate_stereoisomers, enumerate_protomers), it has come to attention that, during batch processing in e.g. QCSubmit, it is not clear that calling these methods will or will not have the input molecule in the return. This means that, if I have a molecule and I enumerate with a max_* of 5, it is not clear whether I now have 5 or 6 states of this molecule.
Describe the solution you'd like
Either documentation/doc strings that explain the behavior (hopefully independent of TK wrapper), or an option kwarg to indicate whether the input molecule must be in the return list. This is more relevant when max_* < total_*, since I assume that if there is no max specified, then the return will have the input molecule since all enumerations were generated.
In general, it makes sense to me that 1) the return always includes the input molecule, and 2) if I specify a max_*, the input molecule is always in the return, even if the wrapper enumerator didn't explicitly generate it.
Describe alternatives you've considered
Manually checking this downstream works. However, it would be desirable to not have to propagate TK differences downstream to e.g. QCSubmit. For example, if I call enumerate_stereoisomers, it would be great if I didn't have to consider which wrapper was used.

@trevorgokey I think this is a really good request. To help clarify -- Would it be necessary for your purposes for the "original" molecule in the output to be fully identical to the starting mol? Or is having a molecule with an isomorphic graph sufficient? Specifically, would the "original" molecule in the output need the same:

Name
Atom ordering
Conformers
Properties dictionary
Partial charges/bond orders
?

So I have been a bit careless, as @jthorton pointed out, the docstring indicates that the return does not have the included molecule. I only looked at the top-level description in the docstring and didn't think to read the object descriptions.
With that said, I have to disagree with the docstring, as I am actually seeing the input returned:
In RD:
In [3]: mol = molecule.Molecule.from_smiles("CCCC([OH])(CC)", allow_undefined_stereo=True)
Warning (not error because allow_undefined_stereo=True):

In [4]: mol.enumerate_stereoisomers()
Out[4]:
[Molecule with name '' and SMILES '[H][O][C@]([H])([C]([H])([H])[C]([H])([H])[H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[H]',
 Molecule with name '' and SMILES '[H][O][C@@]([H])([C]([H])([H])[C]([H])([H])[H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[H]']

In [5]: mol = molecule.Molecule.from_smiles("CCC[C@@H]([OH])(CC)")

In [6]: mol.enumerate_stereoisomers()
Out[6]: []

In OE:
In [2]: mol = molecule.Molecule.from_smiles("CCCC([OH])(CC)", allow_undefined_stereo=True)
Warning (not error because allow_undefined_stereo=True): OEMol has unspecified stereochemistry. oemol.GetTitle():
Problematic atoms are:
Atom atomic num: 6, name: , idx: 3, aromatic: False, chiral: True with bonds:
bond order: 1, chiral: False to atom atomic num: 6, name: , idx: 2, aromatic: False, chiral: False
bond order: 1, chiral: False to atom atomic num: 8, name: , idx: 4, aromatic: False, chiral: False
bond order: 1, chiral: False to atom atomic num: 6, name: , idx: 5, aromatic: False, chiral: False
bond order: 1, chiral: False to atom atomic num: 1, name: , idx: 14, aromatic: False, chiral: False

In [3]: mol.enumerate_stereoisomers()
Out[3]:
[Molecule with name '' and SMILES '[H][C@](C([H])([H])C([H])([H])[H])(C([H])([H])C([H])([H])C([H])([H])[H])O[H]',
 Molecule with name '' and SMILES '[H][C@@](C([H])([H])C([H])([H])[H])(C([H])([H])C([H])([H])C([H])([H])[H])O[H]']

In [4]: mol = molecule.Molecule.from_smiles("CCC[C@@H]([OH])(CC)")

In [5]: mol.enumerate_stereoisomers()
Out[5]: [Molecule with name '' and SMILES '[H][C@@](C([H])([H])C([H])([H])[H])(C([H])([H])C([H])([H])C([H])([H])[H])O[H]']

In [6]: mol.enumerate_stereoisomers(undefined_only=True)
Out[6]: []

Unfortunately there is a difference and neither really do what I want. I would first expect, with an exact SMILES, to have both isomers returned (undefined_only=False). Barring this, if we give an exact SMILES, I see that either 1 or no molecules are returned. I think I would prefer no molecules, since it would not immediately be clear if the C@@ or C@ version was returned (remember that undefined_only=False here).
Given this weirdness, as I think about it more, I like the idea of never including the input. This, for the most part, simplifies things and makes it much easier to reason with.

@jwags Trying hard not to focus too much on the details, it makes sense to me that  enumerate_stereo returns exactly what from_smiles would return if I gave it an exact SMILES. In fact, I would be happy enough if enumerate_stereo simply returned a list of SMILES, but the explicit conversion would be nice. I am sitting in the stage where I am trying to enter the toolkit, so my standpoint is starting from nothing, rather than somewhere elbow-deep.
With that said, to answer your other points. Since I am preferring more of a "return a SMILES" approach, it is perfectly acceptable to me that A) the ordering can be different, and that B) there is no reasonable person who would want to copy the conformers and/or partial charges over. I do think that protomer/tautomer enumeration should copy the correct bond orders over though.

However! Returning 0 when there is an undefined stereocenter in the SMARTS input is a bad idea, so we should come up with a sane behavior here (or reflect existing behavior in the docs, etc). I don't count CCCC([OH])(CC) as either C@@ or C@ (I consider it a logical OR) , but calling generate_conformers on it (with allow_undefined_stereo=True) seems to work, which (to me) seems dubious. Luckily, both wrappers chose C@@ by default in the 3D structure, but unfortunately a to_smiles doesn't reflect this after conformers were generated.

Ah, sorry to drop off this conversation.

I don't count CCCC([OH])(CC) as either C@@ or C@ (I consider it a logical OR) , but calling generate_conformers on it (with allow_undefined_stereo=True on the from_smiles call) seems to work, which (to me) seems dubious. Luckily, both wrappers chose C@@ by default in the 3D structure, but unfortunately a to_smiles doesn't reflect this after conformers were generated.

It's important to remember that coordinates are second-class citizens in OpenFF-land. We deal with graph molecules which MAY have coordinates attached, and not the other way around. Similar to my "tiers of molecule info" show-and-tell a few weeks ago, I think it's fine for all sorts of automagic to happen when we have a graph representation and we're "deriving" some acceptable coordinates from it. However, it should require user input to interpret stereochemistry from a graph.
Put another way: it's basically impossible to police that graph and 3D stereochemistry are in sync. We'd need to re-validate the stereochemistry every time a new conformer is added, or even when a single coordinate is changed. Not even OpenEye polices conformers to ensure they match the graph stereochemistry.
Attempt to summarize
To make sure I'm following and can turn this into a close-able issue, we've identified some issues/desired behaviors here:
For enumerate_stereoisomers:

When a molecule with no stereocenters is provided

Always return an empty list

When a fully stereo-defined molecule is provided

if undefined_only=True

return an empty list

if undefined_only=False

Return lots of stereoisomers

When a partially stereo-defined molecule is provided

if undefined_only=True

Return two or more stereoisomers

if undefined_only=False

Return all possible stereoisomets

We shouldn't require the input molecule to be present in the output
The molecules present in the output should have the same atom order (I think we can reasonably guarantee this), element, formal charge, aromaticity, bonds, and bond orders as the input, but "optional" info like partial charges and conformers should be left out.


[FEATURE] Add a Prettier Linter Workflow

Description
To ensure proper and consistent linting of the codebase, include the prettier linter.
For a project with many contributors to ensure greater code readability for users, a proper linting style must be upheld.
Automated linting checks using the prettier linter in GitHub activities are an ideal way to accomplish this.
Screenshots
No response
Additional information
I want to work on this issue.
Please assign me the task under GSSoC'23.

Complete via #62


Bump package

Codecov Report

Merging #53 (26bd512) into main (7a7df8a) will increase coverage by 1.12%.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             main       #53      +/-   ##
===========================================
+ Coverage   98.87%   100.00%   +1.12%
===========================================
  Files          30        41      +11
  Lines         266       543     +277
===========================================
+ Hits          263       543     +280
+ Misses          3         0       -3

Impacted Files
Coverage Δ

...ntler.Commons.CodeGen.Core/Base/CompilationBase.cs
100.00% <ø> (ø)

...vantler.Commons.CodeGen.Core/FileTemplateLoader.cs
100.00% <ø> (ø)

...er.Commons.StringHelpers/CasingStringExtensions.cs
100.00% <ø> (ø)

...ure.DataAttributes/AutoNSubstituteDataAttribute.cs
100.00% <100.00%> (ø)

...tler.Commons.CodeGen.CSharp/CSharpCodeGenerator.cs
100.00% <100.00%> (ø)

...ler.Commons.CodeGen.CSharp/CSharpTemplateLoader.cs
100.00% <100.00%> (ø)

...ntler.Commons.CodeGen.CSharp/Models/CSharpClass.cs
100.00% <100.00%> (ø)

...Commons.CodeGen.CSharp/Models/CSharpCompilation.cs
100.00% <100.00%> (ø)

...Commons.CodeGen.CSharp/Models/CSharpConstructor.cs
100.00% <100.00%> (ø)

...er.Commons.CodeGen.CSharp/Models/CSharpDocBlock.cs
100.00% <100.00%> (ø)

... and 23 more

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


Include metricsgraphics CSS

When a metricsgraphics plot appears in the notebook right now, it's a black and white graphic:

This package needs to make the metricsgraphics CSS get included somehow (I have no idea).

If it gets included by creating an HTML element in the notebook it's ok though.

Making it happen via JavaScript when the script is loaded seems reasonable.


Cannot install on 2021 M1 Macbook Pro on MacOS 13.0

When I try to install names-matcher via pip, setuptools throws an error that "Darwin" isn't a valid OS.
~/Projects/scripts/name-verification via  v3.10.7 (scripts)                                                                                 15:48:13
✖ pip install names-matcher --no-cache
Collecting names-matcher
  Downloading names_matcher-2.0.13-py3-none-any.whl (12 kB)
Requirement already satisfied: rapidfuzz<3.0,>=2.0.0 in /Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages (from names-matcher) (2.11.1)
Collecting lapjv<2.0,>=1.3.14
  Downloading lapjv-1.3.24.tar.gz (10 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      Traceback (most recent call last):
        File "/Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/kevin.obrien/.virtualenvs/scripts/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/7g/40b5r8ps5yq_8f3h0b5dmr800000gt/T/pip-build-env-lnqihez8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/7g/40b5r8ps5yq_8f3h0b5dmr800000gt/T/pip-build-env-lnqihez8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/7g/40b5r8ps5yq_8f3h0b5dmr800000gt/T/pip-build-env-lnqihez8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 53, in <module>
      KeyError: 'Darwin'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Probably not relevant, but the same issue occurs on a 2021 M1 MacBook Pro running Ventura (13.1)

As a workaround you can explicitly pip install lapjv==1.3.22


Processing CSS urls from node_modules dependencies.

Laravel Mix Version: 4.0.15
Node Version (node -v): v11.1.0
NPM Version (npm -v): 6.4.1
OS: Win10

Description:
Importing css from node_modules that contains another import, gives an error:
ERROR in ./resources/styles/bundles/base.css (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./resources/styles/bundles/base.css)
Module not found: Error: Can't resolve '../fonts/fontawesome-webfont.woff?v=4.7.0' in D:\dev\myapp\app\resources\styles\bundles'
 @ ./resources/styles/bundles/base.css (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./resources/styles/bundles/base.css) 7:235885-235937
 @ ./resources/styles/bundles/base.css

webpack.mix.js:
const mix = require('laravel-mix');

mix.options({
    postCss: [
        require('postcss-import'),
        require('precss'),
        require('autoprefixer'),
        require('postcss-mixins'),
        require("cssnano")
    ],
});

mix.postCss('resources/styles/bundles/base.css', 'public/css')

base.css :
/* VENDORS */
@import "normalize.css";
@import "font-awesome";
(...)

Steps To Reproduce:
Install laravel, install normalize, fontawesome, install postcss import, precss, poctcss-mixins, cssnano.
Run 'npm run watch'.
There is a way to deal with it by passing:
.options({
        processCssUrls: false,
    });

to mix.postCss()
but that means I have to manually copy files over to public dist folder?
I am guessing, even though I use postCss in mix it still uses some sass magic to import stuff?
This guess is based on the fact, that when I use plain gulp + postcss + postcss import plugin, it handles the imports correctly without errors.

Some SCSS files use the <@import> directive from SASS and references on a <_variables.scss> file. If there are any URL or path strings laravel-mix isn't able to resolve them. Font-Awesome for example makes problems with that.
##Solution##
https://bit.ly/2XteH0K


runtime and compiletime cudu is not match

this is my code:
import torch
import datetime
from diffusers import StableDiffusionXLPipeline
from onediffx import compile_pipe, save_pipe
pipe = StableDiffusionXLPipeline.from_single_file("../../../ComfyUI/models/checkpoints/sd_xl_base_1.0.safetensors", use_safetensors=True)
pipe.to("cuda")
pipe = compile_pipe(pipe)
run once to trigger compilation
image = pipe(
prompt="street style, detailed, raw photo, woman, face, shot on CineStill 800T",
height=512,
width=512,
num_inference_steps=30,
output_type="pil",
).images
end = datetime.datetime.now()
save_pipe(pipe, dir="cached_pipe")
and i got this mistake:
W20240507 03:27:18.496176  2366 cuda_stream.cpp:49] Runtime version 12.1 of cuBLAS incompatible with compiletime version 12.2.
0%|                                                                                | 0/30 [00:00<?, ?it/s]
Killed
CUDA Version: 12.2
python3 -m pip install -U --pre oneflow -f https://github.com/siliconflow/oneflow_releases/releases/expanded_assets/community_cu122
please help me, tks

W20240507 03:27:18.496176 2366 cuda_stream.cpp:49] Runtime version 12.1 of cuBLAS incompatible with compiletime version 12.2.

This is just a warning.
Is there more error info.

It's too old to follow, please feel free to reopen it.


build inferno+ES6 code as dev (with webpack) and dist (with rollup) script

Hi, I am trying to setup Inferno with npm build scripts. At this point my approach is to use webpack+watch+reload npm run dev for development and bundle a script with rollup for production npm run bundle.
The inferno packages on npm currently have a jsnext:main field, but that does not point to the es6 code, so rollup will rollup the distributed uml script that was already rollup-ed-up.
One approach could be to exclude Inferno from rolling up.
With the current inferno distribution rollup mycode+inferno is not supported is this correct?
Could inferno distribute the es6 code too?
Else jsnext:main does not make sence.
Here is my hello world. Note: the webpack dev reloading is working with this approach. The Rollup script does rollup the dist/inferno that was already rolledup and builds a scritps that errors in the browser.
main.js
import Inferno from 'inferno';
import InfernoDOM from 'inferno-dom';

const template = Inferno.createTemplate(() => ({
	tag: 'section',
	children: [
		{ tag: 'h1', text: 'Hello World'}
	]
}));

const main = document.querySelector('body');

InfernoDOM.render(template(), main);

package.json scripts
    "dev": "webpack-dev-server --config ./conf/webpack.dev.js --inline",
    "bundle": "node ./conf/rollup.prod.js",

webpack.dev.js
/* global __dirname */

const webpack = require('webpack');
const ExtractText = require('extract-text-webpack-plugin');

module.exports = {
  'entry': {
    'main': './app/main.js',
    'html': './app/index.html'
  },
  'output': {
    'path': './build',
    'publicPath': '/',
    'filename': './[name].js'
  },
  'devServer': {
    'contentBase': './build',
  },
  'module': {
    'loaders': [
      {
        'test': /\.html$/,
        'loader': 'file',
        'query': {
          'name': '[name].[ext]'
        }
      },
      {
        'loader': 'babel-loader',
        'test': /\.js$/,
        // 'exclude': /(node_modules)/,
        'query': {
          'presets': ['es2015']
        }
      }
      ]
    },
    'plugins': [
      new ExtractText('index.html'),
      new webpack.NoErrorsPlugin()
    ],
    'devtool': 'source-map'
  };

rollup.prod.js
const rollup = require('rollup').rollup;
const npm = require('rollup-plugin-npm');
const commonjs = require('rollup-plugin-commonjs');
const babel = require('rollup-plugin-babel');

rollup({
  'entry': './main.js',
  'plugins': [
    npm({ 'jsnext': true, 'main': true }),
    commonjs(),
    babel({ 'babelrc': false, 'presets': ['es2015-rollup'] }),
  ]
})
.then(function(bundle){
  return bundle.write({
    'banner': '/* Bundle */',
    'dest': 'dist/scripts/bundle.js',
    'format': 'iife',
    'indent': false,
    'sourceMap': false
  });
})
.catch(function(error){
  console.log(error);
});

when running the prod script built with rollup there is a Uncaught TypeError: babelHelpers.typeof is not a function because babelHelpers is defined in 2 places and the second overwrites the first one.

Simply create wrapper file for InfernoJS if you want to use it with rollup
You need to create Inferno wrapper file which imports ES6 source files and exports the features you want to use in your project.
to get sources you can do following:
package.json
  "dependencies": {
    "inferno-src": "https://github.com/trueadm/inferno.git"
  }

You can see my complete setup here (obviously the whole project is work in progress) but you can see how I bundle Inferno with Rollup for Browser environment:
https://github.com/Havunen/inferno-gear

@thisconnect Is this issue solved now?

Ok I got it working using trueadm/inferno git repo as dependency and importing as @Havunen suggested by importing from inferno-src/src/<things>
I want to emphasize that, once .es2015.js code is shipped in dist and jsnext:main points to the .es2015.js files, all this is not necessary.
  "dependencies": {
    "inferno-src": "trueadm/inferno#dev"
  }

main.js
For this:
// Inferno
import createTemplate, { addTreeConstructor } from 'inferno-src/src/core/createTemplate';
// import TemplateFactory from 'inferno-src/src/core/TemplateFactory';

// Component
// import InfernoComponent from 'inferno-src/src/component/Component';

// InfernoDOM
import { render } from 'inferno-src/src/DOM/rendering';
// import createRef from 'inferno-src/src/DOM/createRef';
import createDOMTree from 'inferno-src/src/DOM/createTree';

const InfernoWrap = {
    createTemplate,
    // TemplateFactory,
    addTreeConstructor
};

// Fixes for browser
InfernoWrap.addTreeConstructor('dom', createDOMTree);

const Inferno = InfernoWrap;
const InfernoDOM = {
    render: render,
    // createRef: createRef
};

const template = Inferno.createTemplate(() => ({
	tag: 'section',
	children: [
		{ tag: 'h1', text: 'Hello World'}

	]
}));

const main = document.querySelector('body');

InfernoDOM.render(template(), main);

Additionally for this to work I had to install the 'rollup-plugin-replace' and replace({'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)}) in the rollup script.
If you want I could setup a git repo for this.

Please keep this issue open until .es2015.js is distributed in the npm packages

@thisconnect  Sounds good :+1: , my implementation was more like workaround anyway .

Applied in latest release


Fix linker problem in MSVC release mode

Which linker error did you get without that include?

Actually, it wasn't a linker error, sorry. I got a compilation error saying the type base_lco_with_value is incomplete here: https://github.com/STEllAR-GROUP/hpx/blob/23c400e640921c9a534b3c069f494088263ac128/src/runtime/trigger_lco.cpp#L176-L186


error in docs

this is throwing an error: https://jupysql.ploomber.io/en/latest/api/configuration.html#feedback

I can no longer see this error so closing this


⚠ Melody has degraded performance

In 8b3ca7e, Melody (https://melody.triza.dev) experienced degraded performance:

HTTP code: 200
Response time: 1304 ms

Resolved: Melody performance has improved in 1bf71df.


spago installed via npm does not seem to fully install

brandon@c9460f72c9e4:/wd$ type -a spago
spago is /usr/local/bin/spago
brandon@c9460f72c9e4:/wd$ cat /usr/local/bin/spago
#!/usr/bin/env bash
set -e

echo "This is a stub that will be replaced on install. \
It is needed to workaround https://github.com/yarnpkg/yarn/issues/3421"

I have a container for this that reproduces the issue: 305e449d39b9a146f5bfca1f335a80cd2c2bebe0 at https://github.com/bbarker/purescript-hodgepodge, or just use master's HEAD for now.
To run the container, use psc.sh in the repo, or a modified version that has fewer mounts, though I'm not sure what the behavior will be (should be mostly fine though). To build the container, you can run build.socker.sh.

Thanks for the report @bbarker!
Some notes:

I'd recommend downloading spago in the same way you're downloading the purs and psc-package binaries in the container, as that's much more reliable than npm
I'm able to reproduce just trying to install spago on a bare node image, I'll investigate more on this:

$ docker-bash node:12
root@71c1f9e95b14:/# npm install -g spago

><EMAIL_ADDRESS>preinstall /usr/local/lib/node_modules/spago
> node ./install.js

/usr/local/bin/spago -> /usr/local/lib/node_modules/spago/spago.exe
+<EMAIL_ADDRESS>added 29 packages from 19 contributors in 4.809s
root@71c1f9e95b14:/# spago -v
This is a stub that will be replaced on install. It is needed to workaround https://github.com/yarnpkg/yarn/issues/3421
root@71c1f9e95b14:/#

Found it. TL;DR: you need to use --unsafe-perm as an npm option if you want to install packages as root and have them to work, or just set a user in your Dockerfile. See this medium post or this StackOverflow question for more info.
So running this command in the container works correctly: npm install -g --unsafe-perm spago
I feel this "installing npm packages as root" might be a common problem, so we should definitely add to the FAQ something along the lines of "DON'T RUN NPM AS ROOT"

I don't know the full context of this issue (so my apologies if this isn't
helpful), but isn't this a symptom of not configuring the npm prefix to a
directory that doesn't require root privileges? Otherwise, one has to run
node with root privileges to get anything to work.

@JordanMartinez what happens here is that Docker by default runs all commands as root (unless you specify otherwise), combined with the fact that npm installs binaries as nobody when root. See the links in my previous comment, or this issue: https://github.com/npm/npm/issues/3849
The result is that installing spago with npm running as root will never work, unless --unsafe-perm is specified

@f-f Gotcha. Thanks for clarifying that for me.

@JordanMartinez you're welcome! 🙂


[Bug] Can not use stream as identifier

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
0.14.13 and above
What's Wrong?
In 0.13 and previous versions, user can use stream as an identifier.
For example:
CREATE ROUTINE LOAD cdn_stream_stats_routine_load_v2 ON cdn_stream_stats_v2
COLUMNS TERMINATED BY "," ,
COLUMNS(domain,host,conn,stream,ts,node,peer,score,videofps,videorate,flowrate,tcprtt,videofpsvar)
PROPERTIES
(
  "desired_concurrent_number"="4",
  "max_batch_interval" = "20",
  "max_batch_rows" = "6000000",
  "max_batch_size" = "209715200",
  "max_error_number"= "209715200"
)
FROM KAFKA
(
  "kafka_broker_list" = "xxx",
  "kafka_topic" = "xx",
  "property.security.protocol" = "ssl",
  "property.ssl.ca.location" = "FILE:ca.pem",
  "property.ssl.certificate.location" = "FILE:client.pem",
  "property.ssl.key.location" = "FILE:client.key",
  "property.client.id" = "xxx"
)

But when upgrade Doris to 0.14.13, the sql is parsing error after restarted FE.
java.io.IOException: error happens when parsing create routine load stmt:

When execute a sql contain stream as identifier, it occurs error too.
ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 3:
COLUMNS(domain,host,conn,stream,ts,node,peer,score,vi...
                         ^
Encountered: STREAM
Expected: STREAM is keyword, maybe `STREAM`

What You Expected?
Execute normally.
How to Reproduce?
upgrade

Set up a Doris cluster in 0.13.16.
Create table

CREATE TABLE `cdn_stream_stats_v2` (
  `domain` varchar(128) NOT NULL DEFAULT "" COMMENT "",
  `host` varchar(32) NOT NULL DEFAULT "" COMMENT "",
  `conn` varchar(32) NOT NULL DEFAULT "" COMMENT "",
  `stream` varchar(128) NOT NULL DEFAULT "" COMMENT "",
  `ts` datetime NOT NULL COMMENT "",
  `node` varchar(32) REPLACE NOT NULL DEFAULT "" COMMENT "",
  `peer` varchar(128) REPLACE NOT NULL DEFAULT "" COMMENT "",
  `score` int(11) REPLACE NOT NULL DEFAULT "0" COMMENT "",
  `videofps` float REPLACE NOT NULL DEFAULT "0" COMMENT "",
  `videorate` int(11) REPLACE NOT NULL DEFAULT "0" COMMENT "",
  `flowrate` int(11) REPLACE NOT NULL DEFAULT "0" COMMENT "",
  `tcprtt` int(11) REPLACE NOT NULL DEFAULT "0" COMMENT "",
  `videofpsvar` float REPLACE NOT NULL DEFAULT "0" COMMENT ""
) ENGINE=OLAP
AGGREGATE KEY(`domain`, `host`, `conn`, `stream`, `ts`)
COMMENT "OLAP"
PARTITION BY RANGE(`ts`)
(PARTITION pw2021_17 VALUES [('2021-04-27 00:00:00'), ('2021-04-29 00:00:00')),
PARTITION pw2021_18 VALUES [('2021-04-29 00:00:00'), ('2021-05-06 00:00:00')),
PARTITION pw2021_19 VALUES [('2021-05-06 00:00:00'), ('2021-05-13 00:00:00')),
PARTITION pw2021_20 VALUES [('2021-05-13 00:00:00'), ('2021-05-20 00:00:00')))
DISTRIBUTED BY HASH(`stream`) BUCKETS 1
PROPERTIES (
"replication_num" = "1",
"dynamic_partition.enable" = "false",
"dynamic_partition.time_unit" = "WEEK",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-2",
"dynamic_partition.end" = "2",
"dynamic_partition.prefix" = "pw",
"dynamic_partition.replication_num" = "2",
"dynamic_partition.buckets" = "16",
"dynamic_partition.start_day_of_week" = "4",
"in_memory" = "false",
"storage_format" = "V2"
);

Create routine load

CREATE ROUTINE LOAD cdn_stream_stats_routine_load_v2 ON cdn_stream_stats_v2
COLUMNS TERMINATED BY "," ,
COLUMNS(domain,host,conn,stream,ts,node,peer,score,videofps,videorate,flowrate,tcprtt,videofpsvar)
PROPERTIES
(
  "desired_concurrent_number"="4",
  "max_batch_interval" = "20",
  "max_batch_rows" = "6000000",
  "max_batch_size" = "209715200",
  "max_error_number"= "209715200"
)
FROM KAFKA
(
  "kafka_broker_list" = "xxx",
  "kafka_topic" = "xxx",
  "property.security.protocol" = "ssl",
  "property.ssl.ca.location" = "FILE:ca.pem",
  "property.ssl.certificate.location" = "FILE:client.pem",
  "property.ssl.key.location" = "FILE:client.key",
  "property.client.id" = "xxx"
);

Upgrade Doris to 0.14.13
The FE won't start up.

Current

Set up a current version of Doris
Create table as above.
Create routine load as above.
Occurs error.

Anything Else?

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I also encountered this problem ,but I don't find any 'stream' column which exsists in my dev cluster

Is there some others keyword like 'stream'?

Is there some others keyword may exsist like 'stream'?

You can apply this patch to show the orgin routine load stmt in fe.out.
Is there any stream column in your routine load destination table?

Is there some others keyword may exsist like 'stream'?

You can apply this patch to show the orgin routine load stmt in fe.out.
Is there any stream column in your routine load destination table?

I can only confirm that 'stream' does not exist in the columns of all tables by select information_schema
But I cannot confirm whether 'stream' exists in all routine load Job...

@WindyGao You can apply this path to print the origin load stmt, then you can confirm which keyword is wrong.

@WindyGao You can apply this path to print the origin load stmt, then you can confirm which keyword is wrong.

you mean 'origStmt.originStmt'?

Yes.

Which field might be wrong?

type,struct,name
parent
There are several possibilities...
i need to verfiy it by upgrading fe version

you just copy and execute that routine load stmt in mysql cli to see what's wrong

you just copy and execute that routine load stmt in mysql cli to see what's wrong

...good idea


[Bug]: Invalid undefined function error in main method

Description
public function main() {
    int test = 7;
    var b = test();
}

function test() returns [int] {
    return [];
}

Gives undefined function 'test' error.
But the function test is defined in module level scope.
So, the error message should be change to something like cannot invoke a integer
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

int test = 7; // redeclared symbol 'test'

public function main() {
    var b = test(); // undefined function 'test'
}

function test() returns [int] {
    return [];
}

Don't we have to log the same error like this?


Energy Skate park does not run within office add in with Windows 7.

Here are more details.
I'm running windows 7. The sims are embedded within a powerpoint.
Energy Skate Park: Basics runs fine but the simulation Energy Skate Park does not.

The message states that you should use a different browser but since it is a plugin, the user does not have any say over the choice of browsers,

For your information, the office Add-in can play Energy Skate Park if one uses Windows 10.

I have tested about 10 other sims with windows 7 and they all load properly. It seems to affect only Energy Skate Park on Windows 7, so it may be just a corner case. Maybe a good reason to upgrade to windows 10.

According to https://learn.microsoft.com/en-us/troubleshoot/windows-client/windows-7-eos-faq/windows-7-extended-security-updates-faq
there is more extended security updates for Windows 7 after January 14, 2023.
What do Windows 7 ESU include?
Windows 7 Extended Security Updates (ESU) include security updates for critical and important issues as defined by Microsoft Security Response Center (MSRC) for a maximum of three years after January 14, 2020. After January 14, 2020, if your PC is running Windows 7, and you haven't purchased Extended Security Updates, the computer will no longer receive security updates.

There won't be an ESU offering or an extension of support for Office 2010.

It feels safe to close at this point.


Make types compatible with both HTML and SVG elements

We use HTMLAttributes<HTMLElement> in a lot of return types from React Aria hooks. In addition, we often accept refs for RefObject<HTMLElement>. However, in many cases it is also possible to use React Aria with SVG elements, which support all of the ARIA attributes, and most of the events we use. For example, I made a Meter component using SVG. However, the current types wouldn't allow this if you use TypeScript.
This replaces most instances of HTMLAttributes<HTMLElement> with a new type: DOMAttributes exported from @react-types/shared. This type includes an intersection of attributes supported by both HTML and SVG elements.
In addition, most usages of HTMLElement (e.g. in refs and other APIs), have either been replaced with Element, or with a new type called FocusableElement which is an element plus a focus() method and tabIndex attribute (both supported by SVG as well).
There are a few places where we do rely on HTML element specific features (notably drag and drop), so those have been retained where necessary. However, mostly all components can be used with SVG elements with TypeScript now.

Yay, we've needed this for a while.


fix: add correct focus styles to tertiary dark

Add specific focus styles to tertiary--dark button.

Thanks David S. The sign-out button on the public site looks perfect to me; however I can't see it on AdviserNet so I'll give a proper look once the code is merged.

Thanks Minnie! Yep I'll need to merge another change in the public-website (https://github.com/citizensadvice/public-website/pull/1438) and release and update the design-system, I'll ping when it's ready :-)


sonoff GK-200MP2-B can't ptz! Help!

problem: can't ptz
stream video: ok
steam voice: ok
My card config:
type: custom:webrtc-camera
url: rtsp://account:key@192.168.x.x:xxx/av_stream/ch0
title: xxx
muted: false
background: true
poster: https://xxx.jpg
ptz:
opacity: 0.4
service: sonoff.send_command
data_left:
device: 'my 6 digital id'
cmd: left
data_right:
device: 'my 6 digital id'
cmd: right
data_up:
device: 'my 6 digital id'
cmd: up
data_down:
device: 'my 6 digital id‘
cmd: down
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
my configuration.yaml:
sonoff:
username: +00xxx
password: xxx
reload: always
script:
left:
sequence:

service: sonoff.send_command
data:
device: 'my 6 digital id' # use quotes, this is important
cmd: left
right:
sequence:
service: sonoff.send_command
data:
device: 'my 6 digital id' # use quotes, this is important
cmd: right
up:
sequence:
service: sonoff.send_command
data:
device: 'my 6 digital id' # use quotes, this is important
cmd: up
down:
sequence:
service: sonoff.send_command
data:
device: 'my 6 digital id' # use quotes, this is important
cmd: down

My fault. The cam id was the problem.


The url of the js file will appear "\t" causing an error

When I use WebClient to request some websites and execute website js code, when requesting js files, the url of js files will have a "\t" separator, which will cause the request for js files to fail. The url of the js file in the website is out of our control, so I think this special character should be handled with "replace()" in the code.

I think maybe it can be dealt with here：

think i did it, please try the latest snapshot (comments on the code are also welcome)


Special keys don't work as shortcuts in dvorak layout

VSCode Version: Code 1.7.2 (7ba55c5860b152d999dda59393ca3ebeb1b5c85f, 2016-11-21T22:01:10.756Z)
OS Version: Darwin x64 15.6.0
Extensions:

Extension
Author
Version

Ruby
rebornix
0.10.3

sass-indented
robinbentley
1.2.1

JavaScriptSnippets
xabikos
1.2.0

Material-theme
zhuangtongfa
1.0.3

Steps to Reproduce:

Set keyboard to Dvorak layout. In this layout the key marked "{" is now the "/" which is used for commenting.
Try to comment with the key marked "{" on the layout. It instead indents left as should be done on a US layout.
Changing it does not work because in the editor pressing the pressing the key marked "{" produces "/" as it should according to the dvorak layout.

To clarify: The dvorak keyboard layout works correctly in the editor. But not when using shortcuts. And the shortcuts cannot be re-mapped because its tied to the editor.

Dup of #6020 . @Yathi thanks for reporting this issue, let's track it there.


distinguish between different pikaday components

When having multiple pikaday components on a page, selectDate would result in setting date only to the component zero (same for selectDay).
Added a quick fix for that.

I'm sympathetic to the intent - however, tests break because of this approach. Would you be willing to put in another attempt?

Closing because of inactivity. Feel free to re-open with passing tests.


can you share the font name in readme gif?

can you share the font name in readme gif?
it is so tidy and beautiful.
very thx for this

Hey,
Sorry for the delayed response. It's Space Mono by Google (https://fonts.google.com/specimen/Space+Mono)


KmPlot:  'title' param from km object is undefined

Although I have incorporated the latest changes from dev branch of acthp/ucsc-xena/client, KmPlot.js does not appear to be getting the "title" prop variable.  The file js/controllers/ui.js has in fact been updated within latest change:
'km-open': (state, id) => _.assocInAll(state,
['km', 'id'], id,
['km', 'title'], _.getIn(state, ['columns', id, 'columnLabel', 'user']),
['km', 'label'], Grouped by ${_.getIn(state, ['columns', id, 'fieldLabel', 'user'])}),

I was not on the dev branch...


Split cases without type the variable name, namely just hit the enter key cannot work at the first hit.

To make Agda provide you all the implicit arguments, just C-c-c without typing any names, but it needs to do this twice.

Thanks for reporting this!
This is what I get from the first C-c C-c:
Unbound variable !
when checking that the expression ? has type ...

Thanks for reporting this!
This is what I get from the first C-c C-c:
Unbound variable !
when checking that the expression ? has type ...

That is the behavior of doing C-c-c <ENTER> on two different editor, maybe I need to compile the extension itself via source?

That is the behavior of doing C-c-c <ENTER> on two different editor, maybe I need to compile the extension itself via source?

maybe I need to compile the extension itself via source?
Nah, it should be fixed in v0.2.4

maybe I need to compile the extension itself via source?
Nah, it should be fixed in v0.2.4


Implement -n arg to match native redis-cli option to use database number

I need to be able to flush a specific database index from a non-interactive command line. The SELECT command works fine to select the correct database in interactive mode, but I can't run multiple commands in non-interactive mode. Adding the -n arg will solve this problem.
https://redis.io/docs/ui/cli/#host-port-password-and-database

This looks like exactly what I need, but the latest NPM package is 2.1.2. Can a new package be published containing this fix?


Update README and other documentation to follow standards

Standards are here.
If there are any pending technology or setup/environment choices, you can wait until those are made to do this.

Just updated these files, I made you @kauffj the contact person in README.

@Krisseck acknowledged.


support for trivy status

Describe the solution you'd like
[A clear and concise description of what you want to happen.]
allow filtering by vuln status
https://aquasecurity.github.io/trivy/v0.44/docs/configuration/filtering/#by-status
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

Eraser version:
Kubernetes version: (use kubectl version):

Hi! 👋🏼 Was thing planned to be picked up by someone else or could I?
I see it's on the 1.4 milestone, with latest LTS release being 1.2, so not sure if this is planned to just be left until the time comes.
If I can pick it up, it looks not too bad. I'm thinking of updating the helm template to allow for an extra field
ignoredStatuses:
# - will_not_fix
# - <... + other ones from the trivy filter page>

then updating our Trivy CLI to use the above values as its arguments --ignore-status <ignoredStatuses,>

@inFocus7 hello! 👋 we would love the contribution!
This would be a similar type of field as these (types, security checks, severities) in the configmap: https://github.com/eraser-dev/eraser/blob/7cdb6eb5a14eece9a2b35a19d0485067e8728318/pkg/scanners/trivy/types.go#L74-L79 and depending on the user specified values it'll ignore those statuses (such as not_affected). https://github.com/eraser-dev/eraser/blob/7cdb6eb5a14eece9a2b35a19d0485067e8728318/pkg/scanners/trivy/types.go#L118-L131

Awesome, thank you!
I just put up a draft PR that I worked on yesterday. I'll still need to manually test that it acts as expected before being confident enough to un-draft it 👍🏼

I'd say I'm very close to the finish line. I manually verified it and added my verification steps on the PR.
Two final questions/unknowns are:

Did I update every relevant area to expose ignoredStatuses both dev & user-facing?
I tried doing go get and make build but hit issues with them.

go get
github.com/eraser-dev/eraser imports
        github.com/eraser-dev/eraser/controllers imports
        github.com/eraser-dev/eraser/controllers/imagejob imports
        k8s.io/kubernetes/pkg/scheduler/framework: cannot find module providing package k8s.io/kubernetes/pkg/scheduler/framework
github.com/eraser-dev/eraser imports
        github.com/eraser-dev/eraser/controllers imports
        github.com/eraser-dev/eraser/controllers/imagejob imports
        k8s.io/kubernetes/pkg/scheduler/framework/plugins/noderesources: cannot find module providing package k8s.io/kubernetes/pkg/sc

make build using go1.18 led to
docker run --rm -v /Users/fabiangonz98/Documents/ProgrammingProjects/oss/eraser:/eraser eraser-tooling conversion-gen \
                --output-base=/eraser \
                --input-dirs=./api/v1alpha1,./api/v1,./api/v1alpha2 \
                --go-header-file=./hack/boilerplate.go.txt \
                --output-file-base=zz_generated.conversion
stat /eraser/test/e2e/tests/configmap_update/configmp_update: no such file or directory
stat /eraser/test/e2e/tests/configmap_update/configmp_update: no such file or directory
stat /eraser/test/e2e/tests/configmap_update/configmp_update: no such file or directory
go fmt ./...
go vet ./...
# k8s.io/component-base/metrics
../../../../go/pkg/mod/k8s.io/component-base@v0.26.0/metrics/registry.go:35:29: undefined: atomic.Bool
note: module requires Go 1.19
make: *** [vet] Error 2

And using go1.19
docker run --rm -v /Users/fabiangonz98/Documents/ProgrammingProjects/oss/eraser:/eraser eraser-tooling conversion-gen \
                --output-base=/eraser \
                --input-dirs=./api/v1alpha1,./api/v1,./api/v1alpha2 \
                --go-header-file=./hack/boilerplate.go.txt \
                --output-file-base=zz_generated.conversion
stat /eraser/test/e2e/tests/configmap_update/configmp_update: no such file or directory
stat /eraser/test/e2e/tests/configmap_update/configmp_update: no such file or directory
stat /eraser/test/e2e/tests/configmap_update/configmp_update: no such file or directory
go fmt ./...
go vet ./...
# github.com/eraser-dev/eraser
vet: ./main.go:232:45: InDeleteSelf not declared by package inotify
make: *** [vet] Error 2


About timestamps in RealEstate Dataset

Hi, I'm trying to retrieve frames from Youtube links on the first line of txt files. I downloaded videos and use opencv-python to read and match frame timestamps:
video = cv2.VideoCapture(path) video.set(cv2.CAP_PROP_POS_MSEC, 0) while video.isOpened():     frame_exists, curr_frame = video.read()     video_timestamp = (int)(round(video.get(cv2.CAP_PROP_POS_MSEC)*1000))
Then I found that not all of the timestamps in txt files match with video timestamps. They sometimes have an error in the order of 100 microsecond or 1 millisecond. Am I doing something wrong?
Looking forward to your help. Thank you!

Thank you very much for the response, that seems working.
Just one more question, It seems to me that one video is mapped with multiple txt files, is that right? Then how many videos in total are needed to match with the dataset? Can I have a rough number? Thank you.

Yes, there are in general multiple clips from each video, and each clip has a separate txt file. There are about 7200 videos that have at least one clip.

Thank you for the quick response.

Hi, it's me again. Sorry to bother.
In fact, I tried to extract the frames by following your suggestion(frame&file timestamp difference less than 8 ms), it turns out that there are still 2000+ txt files in the training set who cannot find their corresponding frames. Is it possible to know your way of extracting frames?
Then I removed those 2k txt files and tried to continue training on the pre-trained model with the remaining files to validate the dataset, using parameters: batch_size=4, min_stride=2, max_stride=5, vgg loss, then I found through tensorboard that the total_loss fluctuates a lot between 10.0 and 40.0. There's something which wasn't done in the right way I think.
p.p.s. One more question about timestamp. Suppose that I have a 25 fps video, then the timestamp of the first frame should be 0(ns) or 40000(ns)?
Looking forward to your response, thank you.

Hi, and sorry for the slow response.
I'm afraid I can't give more details about our method for extracting frames, beyond the fact that we used an internal system which is not generally available. However, perhaps I can help with the timestamp issues.
Firstly, I assume that you already discarded any cases where you were not able to get any frames for the video at all. (This could happen if, for example, a user removed their video from YouTube or a video was blocked.)
After that, perhaps we can figure out what's going on by comparing the list of timestamps you are getting and the list of timestamps in our data? For example, we could see if the frame-rate is different, or if the start time is wrong. Can you show an example of a cameras file for which you don't get the same timestamps, and also show what timestamps you are getting for that video?
I believe in our data the first frame of a video is considered to have timestamp 0. I haven't used cv2.VideoCapture myself, but in your example code above it looks like you are reading the timestamp after calling read(), which perhaps means that you are getting the timestamp of the next frame instead of the one you just read? (I think you could try instead getting the timestamp before calling read.)

@olivertai hello, Would you mind sharing the script you have used to download datasets that you have used for your training ?


Content plugin enhancements

the display description template is now made as a table. But I guess a bootstrap grid is nicer.
Might be the helper modul can have some setting modvars for this to configure it a bit better

[ ] We do need to make the hight always the sam
[ ] Space around must be adjusted


Current xopen compression levels do not scale gradually.

Xopen uses a mixture of zlib, isal and zlib-ng. The current default is to prefer isal, then zlib-ng and then zlib.
Below are a few benchmarks on an illumina fastq file. (Can be compressed quite well.)
Compression ratios (relative to original):

compression level
zlib
isa-l
zlib-ng

0
100.01%
25.28%
100.01%

1
23.88%
22.49%
34.99%

2
22.88%
22.47%
22.92%

3
21.66%
22.60%
21.32%

4
21.47%

20.44%

5
20.76%

19.93%

6
19.72%

19.27%

7
19.28%

19.19%

8
19.03%

19.01%

9
18.93%

18.83%

Compression times (seconds)

compression level
zlib
isa-l
zlib-ng

0
1.29
2.89
1.15

1
11.46
2.78
4.61

2
12.92
2.87
8.28

3
22.12
6.77
11.57

4
18.69

17.40

5
35.37

21.68

6
92.65

37.62

7
168.00

112.92

8
241.37

143.97

9
327.82

208.06

From this I take it is a good thing to prefer python-isal. On the lowest compression levels, it provides the best performance as well as the best compression. However this results in the following weird behaviours:

If compression level is 0 and isal is available, the file will be compressed rather than uncompressed.
Levels 1,2,3 are virtually indistuingishable in filesize
Level 3 is significantly slower whilst not differing significantly in filesize. This is because it uses avx-512, but on a non-avx512 processor, this leads to slower results. Level 2 uses avx2 by the way.

I propose that only levels 1 and 2 are forwarded to isal. Levels 3-9 should be done by zlib-ng. Level 0 should be the uncompressed block format that zlib gives by default. This way using xopen across multiple systems with different available libraries gives a relatively consistent compression experience.

Was fixed with #142


Fix git push error for protected CLA branch

The pull request is created from master636820509235897685 to master to fix git push error for protected CLA branch

@fenxu : Thanks for your contribution! The author, @, has been notified to review your proposed change.

@corob-msft I've enabled service account for sync action, in the future, it won't use my account but service account to do sync. Please let me know if you find any problem.

Sounds good. What is the name of the account?
// Colin Robertson | docs.microsoft.com | Visual Studio | C++

From: Feng Xu<EMAIL_ADDRESS>Sent: Thursday, January 3, 2019 5:54:28 PM
To: MicrosoftDocs/cpp-docs
Cc: Colin Robertson; Mention
Subject: Re: [MicrosoftDocs/cpp-docs] Fix git push error for protected CLA branch (#668)
@corob-msfthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcorob-msft&data=02|01|corob%40microsoft.com|91f171f3528d46f724a308d671e78fbd|72f988bf86f141af91ab2d7cd011db47|1|0|636821636691070436&sdata=OHT0U7py8wKbxKTogLd3Q3NctKGO66Bl8jhKnZx5PVo%3D&reserved=0 I've enabled service account for sync action, in the future, it won't use my account but service account to do sync. Please let me know if you find any problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fcpp-docs%2Fpull%2F668%23issuecomment-451334299&data=02|01|corob%40microsoft.com|91f171f3528d46f724a308d671e78fbd|72f988bf86f141af91ab2d7cd011db47|1|0|636821636691080444&sdata=C8AdAITeS6BsfBCBllC1xdTc1Dj%2BWGFkqIeWacQUrQA%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADqKCVKnfS8HhudQrjpW8EIN59xuENKoks5u_rRUgaJpZM4ZnC8n&data=02|01|corob%40microsoft.com|91f171f3528d46f724a308d671e78fbd|72f988bf86f141af91ab2d7cd011db47|1|0|636821636691080444&sdata=qzwaCtr1fdpMxJeRjC5uSJjh3SUYJ2%2F%2F8nE%2BWTo4mAM%3D&reserved=0.

It's like opbld** account. ** represents for number because we have to use a pool of service accounts to avoid GitHub Rate Limit issue.

Okay, I've added the build_service_account group, which includes all of the Opbld## accounts, to the list of accounts that have permissions to push to the master branch. Will this fix the git push error in the automation?
Sent from Outlookhttp://aka.ms/weboutlook

From: Feng Xu<EMAIL_ADDRESS>Sent: Thursday, January 3, 2019 8:02:58 PM
To: MicrosoftDocs/cpp-docs
Cc: Colin Robertson; Mention
Subject: Re: [MicrosoftDocs/cpp-docs] Fix git push error for protected CLA branch (#668)
It's like opbld** account. ** represents for number because we have to use a pool of service accounts to avoid GitHub Rate Limit issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fcpp-docs%2Fpull%2F668%23issuecomment-451348874&data=02|01|corob%40microsoft.com|2f4f7ad1f61645bfa0f408d671f98394|72f988bf86f141af91ab2d7cd011db47|1|0|636821713799543855&sdata=ryQPctvIeXD6QgLfRGhSOlKYXQeCHiPVS1JjIGq01ig%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADqKCUoEQkevj0jHUTOGQYpSkwj-I667ks5u_tJygaJpZM4ZnC8n&data=02|01|corob%40microsoft.com|2f4f7ad1f61645bfa0f408d671f98394|72f988bf86f141af91ab2d7cd011db47|1|0|636821713799553860&sdata=DTVRwWUdS2uYs60xMG3MPeFpanXAgwhT183odvELTjI%3D&reserved=0.


Organising

Just moved a few things around. @crisptrutski I really hope this doesn't conflict with anything.
I've brought across the Traceur sourceRoot change manually, but not the set expectations system.
Moved the builder class into its own file, and made the tree operations static methods.
Also separated out compile functions into a separate file.

The plan tomorrow is to do similar organising to clean up the test folder a bit and then publish a release.

Structure definitely better.
Git failing to grok the renames with amount of changes, so didn't have energy to go through the diffs too much beside where things sit now, and to spot what came through from the Traceur related stuff.
Throwing away rest of #84?


"FATAL ERROR: invalid table size Allocation failed" with many inferred types

TypeScript Version:
3.3.3333
3.3.4000
3.4.5
Version 3.5.0-dev.20190515
Search Terms:

"invalid table size": this one is new
"Allocation Failed"

Code
I will continue trying to build a reduced repro, but the code right now is a private React-Native project with Redux. We have ~200 source TS files and ~70 basic redux actions, as well as some thunk actions.
We use a lot of type inference to build a discriminated type union of our redux types, similar to this article. Right now, if I add one additional redux type to our application, it will crash with the below Allocation Failed error
Here is a reasonable facsimile of one of our action files:
// utility helper to get inference of the correct action type (TODO replace w/ `as const`)
export function createAction<T extends string, U extends Action<T>>(action: U) {
  return action;
}

function myReduxActionOne() {
  return createAction({ type: 'some_long_string_constant' });
}
function myReduxActionTwo(data: object) {
  return createAction({
    type: 'some_long_string_constant',
    data
  });
}

export type MyReduxActions = ReturnType<
  | typeof myReduxActionOne
  | typeof myReduxActionTwo
  // If I add one more `typeof actionCreator` to this union,
  // the program will crash with OOM.
>;

These action types are used in segmented reducers, and eventually get combined into one large discriminated union of types near a redux combineReducers() call. I can provide more sample code, and will continue to work on a reduced repro.
Expected behavior:
tsc compiles the codebase without error.
Actual behavior:
tsc crashes with a unique out of memory error:
$ tsc --noEmit --diagnostics

<--- Last few GCs --->

[16153:0x102645000]   147934 ms: Scavenge 2141.2 (2240.4) -> 2126.5 (2240.9) MB, 9.1 / 0.0 ms  (average mu = 0.998, current mu = 1.000) allocation failure
[16153:0x102645000]   148047 ms: Scavenge 2141.7 (2240.9) -> 2127.0 (2241.4) MB, 8.7 / 0.0 ms  (average mu = 0.998, current mu = 1.000) allocation failure
[16153:0x102645000]   148160 ms: Scavenge 2142.2 (2241.4) -> 2127.5 (2241.9) MB, 15.1 / 0.0 ms  (average mu = 0.998, current mu = 1.000) allocation failure

<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x2c389e8dbe3d]
Security context: 0x1fe24991e6e1 <JSObject>
    1: set [0x1fe249911ea1](this=0x1fe2f27d91d9 <Map map = 0x1fe2a7104359>,0x1fe2ac0b0e59 <String[11]: 545159,4710>,2)
    2: recursiveTypeRelatedTo(aka recursiveTypeRelatedTo) [0x1fe2bf802201] [/Users/mbusby/snip-project-name/node_modules/typescript/lib/tsc.js:~35308] [pc=0x2c389e8f82e5](this=0x1fe23dd826f1 <undefined>,source=0x1fe2a9be4a09 <Type map = 0x1fe2...

FATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory
 1: 0x10003b125 node::Abort() [/Users/mbusby/.nvm/versions/v10.15.0/bin/node]
 2: 0x10003b32f node::OnFatalError(char const*, char const*) [/Users/mbusby/.nvm/versions/v10.15.0/bin/node]
 3: 0x1001a8e85 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/mbusby/.nvm/versions/v10.15.0/bin/node]
 4: 0x1005742a2 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/mbusby/.nvm/versions/v10.15.0/bin/node]
 5: 0x1006e0756 v8::internal::OrderedHashTable<v8::internal::OrderedHashMap, 2>::Rehash(v8::internal::Handle<v8::internal::OrderedHashMap>, int) [/Users/mbusby/.nvm/versions/v10.15.0/bin/node]
 6: 0x1007a8793 v8::internal::Runtime_MapGrow(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/mbusby/.nvm/versions/v10.15.0/bin/node]
 7: 0x2c389e8dbe3d

Playground Link: None yet
Related Issues: #31281  looks similar, but the error message was very different.
Other diagnostic info
If I remove the 1 action that puts tsc over the edge, I can get diagnostic info on various versions of typescript:
On 3.3.3333:
Files:            644
Lines:         352690
Nodes:        1075014
Identifiers:   391809
Symbols:       505217
Types:         490478
Memory used: 3475902K
I/O read:       0.15s
I/O write:      0.00s
Parse time:     2.94s
Bind time:      1.13s
Check time:   369.67s
Emit time:      0.00s
Total time:   373.73s

On Version 3.5.0-dev.20190515:
$ tsc --noEmit --diagnostics
Files:            644
Lines:         353393
Nodes:        1075852
Identifiers:   391910
Symbols:       573963
Types:         537306
Memory used: 3537350K
I/O read:       0.15s
I/O write:      0.00s
Parse time:     2.81s
Bind time:      1.14s
Check time:   262.53s
Emit time:      0.00s
Total time:   266.47s

These numbers were collected with a tsconfig that looks like:
{
    "compilerOptions": {
      "esModuleInterop": true,
      "allowJs": false,
      "target": "es6",
      "lib": ["dom", "es2018"],
      "jsx": "react-native",
      "alwaysStrict": true,
      "strict": false,
      "module": "esnext",
      "moduleResolution": "node",
      "skipLibCheck": true,
      "skipDefaultLibCheck": true,
      "allowSyntheticDefaultImports": true,
      "baseUrl": "./",
      "types": [
        "jest",
        "node"
      ]
    },
    "include": [
      "src"
    ],
    "exclude": [
      "node_modules",
      "android",
      "ios"
    ]
  }

One thing I noticed in comparison to some of my other similar-but-larger projects is that this has a very large number of "Types" in the diagnostic info.  This project shows 500k types in 650 files vs  the ~80k types in 2000 files I have in another project.

I think the issue is related to my inference of action types through reducers.
// pseudocode of reducers:
declare function fooReducer(state: IFooState | undefined, action: MyFooReduxActions): IFooState;
declare function barReducer(state: IBarState | undefined, action: MyBarReduxActions): IBarState;

const appReducers = {
  foo: fooReducer,
  bar: barReducer,
};

// Read computed reducer type
type TAppReducer = typeof appReducers;
// Build the type of our application state through the return types of all reducers
export type TAppState = {
  [key in keyof TAppReducer]: ReturnType<TAppReducer[key]>
};
// Build the discriminated union of all our actions using inference
type TAppActions = Values<TAppReducer> extends Reducer<any, infer TActions> ? TActions : never;
// Type our final reducer using these values
type TRootReducer = Reducer<TAppState, TAppActions>;

// Build the root reducer
export const rootReducer: TRootReducer = combineReducers<TAppState, TAppActions>(appReducers);

If I remove all the type logic and just do export const rootReducer = combineReducers(appReducers), it compiles without error, but the root reducer gets the type of Reducer<TAppState, AnyAction>, where AnyAction is overly generic. Also the number of "Types" in the --diagnostics info goes down to 90230 (90% reduction). So I think I found the culprit :(
Would love to build all my redux types through inference like this, but maybe I will have to manually collect action & state types like a caveman.

I figured out the root of my problem, reduceable to a Typescript Playground. This is primarily error on my part.
Demo of the core issue that was causing a type bomb here
Basically, I expected
(((x: T) => void) | ((x: U) => void)) extends (x: infer V) => void ? V : never

to resolve to T | U. But instead it resolves to T & U. Which makes sense conceptually--I had just expected the "extends" test to map across the union.
So, instead of n1 + n2 + n3 types of actions, I produced n1 * n2 * n3 types of actions... which grew to use a ton of memory.
The only oddity left is that a type like type x = { y: 'a' } & { y: 'b' }; can be considered valid. But I'd guess this is probably captured in some other issue report.


VaultReactiveBootstrapConfiguration does not use endpointProvider

The VaultReactiveBootstrapConfiguration class does not use a VaultEndpointProvider and instead self constructs a VaultEndpoint statically, which breaks the use-cases when a custom VaultEndpointProvider is given and spring.cloud.vault.reactive.enabled is true.

https://github.com/spring-cloud/spring-cloud-vault/blob/master/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultReactiveBootstrapConfiguration.java#L81

The same works just fine when using a non-reactive configuration - https://github.com/spring-cloud/spring-cloud-vault/blob/master/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultBootstrapConfiguration.java#L71
Please add support for VaultEndpointProvider in VaultReactiveBootstrapConfiguration

Do you want to submit a pull request to fix that issue?


Typo on custom error call

On lib/index.js the customerror require is with only E capitalized, but the filename has C and E capitalized.

PR to fix this
https://github.com/kbariotis/throw.js/pull/8


Added Parrot

Added Parrot OS (Owner of the project: @PalinuroSec).

Continuing with the pull request number #65 it reopens with the changes, the logo was modified only in size so that it could be adjusted to the size of the vectors.

Thanks @kyb3rcipher! Merged via 01b8585.


Constrain to SilverStripe >=3.1,<4

Seems good to me. @axyr ?

This would be better to be a ^3.1 constraint?

@Firesphere look at the commit, it actualy is. I just used >< as issue title for those who don't know what ^ does.

@Zauberfisch I know :) I just wanted to make sure you actually meant it like that instead of using the upper constraint method ;)

I am not quiet sure what you are trying to say. Both methods will yield exactly the same result, therefore it's not actually relevant which you would use.

I'm saying I wanted to make sure you decided to go with the > < on purpose


Update tests to install all requirements and add PATH

I noticed that CUDA 11.4 tests does not have SciPy/Cython installed.

/test

pfnCI, test this please.

Jenkins CI test (for commit 4b6401419e5bbc775645cf87f7a2993a3badedda, target branch master) succeeded!

LGTM.


Ignore invalid package.json files

Hi there and thanks for your work on credits-cli - it's a very useful module!
What I noticed when running credits-cli on one of my projects is that it struggles when it encounters an invalid package.json file.
Sadly, some npm modules ship with test fixtures that include invalid package.json files (see npm/read-package-tree#18).
What I think would be useful is for credits-cli to simply ignore any invalid package.json files.
Thanks!
Jan

Hey Jan,
glad that it's useful. Tbh I don't have the time to work on this. But if you want to propose a PR or help maintaining it, happy to give a helping hand. :)

https://github.com/stefanjudis/credits/commit/16f5ce849bbcd7141b27655598b8b2c170b3a36b Already fixed this issue. However the version in package.json haven't changed since then. I think all you need to do is to publish a new version.


Error : Cannot send video as audio

Hi,
Using the SDK, We are trying to publish both Audio and Video.
nativeHandler.startGetCaptureSourcesForAudio(true, video: true)
However, when I try to handle the answer received, following error is encountered:
0:06:19.694238000   837    0x1036df070 ERROR      owrtransportagent owr_transport_agent.c:703:handle_new_send_source: Cannot send video as audio
0:07:14.218096000   837    0x1036df070 ERROR      owrtransportagent owr_transport_agent.c:703:handle_new_send_source: Cannot send audio as video
(If I only try to Set Capture Source as Audio, things work fine. )
I tied matching the answer SDP from your native-demo project and my project and they both look similar. The only difference was the order of mediaDescriptions was reversed. In my answer, audio was the first media and yours video was the first media. (I dont think that should matter though). Let me know if you need my sample answer sdp

Alright.. Looks like I found the issue. It is indeed the order of media in the answer received.
handleAnswerReceived() function:
for (item = media_sessions; item; item = item->next) {
media_session = OWR_MEDIA_SESSION(item->data);
...
now the media_sessions are in the order of "Video" and "Audio".
My sdp answer generated from server was in the order of "Audio" and "Video"
So the "audio" payload was sent with "Video" media session and hence creating the problem.
(Just to quickly test, i reversed the media_sessions list and tried. It worked)
A simple fix would be in this line:
NSDictionary *mediaDescription = sdp[@"mediaDescriptions"][i++];
mtype = [mediaDescription[@"type"] UTF8String];
instead of using variable i, find that media description object in answer whose mtype = media_session source type.

You're welcome to make a patch and pull request for this fix. Perhaps take the first video session and set the video source on it, and the first audio session and set the audio source on it. Or something more flexible if you're interested in implementing it.

Sure thing :)
I'll be glad to fix this.

Nice @ShGup, looking forward to it!

@ShGup we would really appreciate a PR for your fix. Let us know if you are unable to do it and we will add it to our TODO list. Thanks in advance.


The executable file doesn't work when processing any directory in external storage

This might be due to the privilege or failure in parsing the path.

I could not reproduce the error when I used my USB storage, that is, the reported error is probably due to the privilege.

According to the reporter, this might be resolved. So I closed this and will open it if the same error occurs again.


Added basic jobqueue config tests

As we're starting to process jobs, lets add some tests
cc @wikimedia/services

Coverage remained the same at 89.068% when pulling 7dd3d11227d2f3c620fbe21a0a2916ff87510509 on Pchelolo:job_tests into babbc777cf6224a8f8316593b064902edb5eb962 on wikimedia:master.

LGTM modulo @d00rman's comment re the stray console.log.

Updated and removed the console.log

Coverage remained the same at 89.068% when pulling b303c5b5a602411804135f040dbf990709666621 on Pchelolo:job_tests into babbc777cf6224a8f8316593b064902edb5eb962 on wikimedia:master.


API validation works only for golang SDK

Golang SDK has validation for api standards that needs to be moved.

See https://github.com/redhat-developer/app-services-sdk-js/issues/139

2021/08/05 15:36:02 encountered disallowed external reference: "kas-fleet-manager.yaml#/components/schemas/Error"

This comes from a separate library which does not support external references. The error happens here: https://github.com/redhat-developer/app-services-sdk-go/blob/d3ef7c96e96df7031f48dd706bbe3e9b92e3b4a8/internal/apigen/generator/golang/generate.go#L62
See https://github.com/deepmap/oapi-codegen/issues/42
So there is nothing to worry about here, there is no missing validation.


Allow additional Puppeteer options

Sometimes you want to pass additional options into Puppeteer, e.g. to disable web security, but currently you can't.

Wait I'm dumb, we added this, it's called browser-args.