Package slowing Atom down

This package adds a conciderable load on Atom at boot time:

Is there anything that can be done about this? I really like this package, but Atom really slows down after a while.

Can you reload atom 5-10 times and get an average of the activation times? It really shouldn't take that long. I see about 12ms.

Hey @akonwi ,
I've stopped using Atom as an IDE, opting for Phpstorm instead.
Thanks for your reply though, I'll close this issue =)

I'm running Atom 1.39.0-beta3 x64 on a MacBook Pro (2016) with Mojave 10.14.5.
My average start time of git-plus (over 5 reloads) is 435ms.

@robhicks That's odd. Is this a recent development? How many projects are in the window, if any? Have you tried it with stable Atom to see if it's similar behavior?

@akonwi I usually run each project in a separate Atom window. I just tried loading projects in the same window and git-plus loads in about 10ms.
I tried the latest version of the stable branch with basically the same results.
So, it looks like Atom will be faster if I don't use separate windows for each project.

Those are interesting results. I wonder if the big numbers you saw were a bit flukey because I usually have at least 3 windows with multiple projects in them and the load times I see are consistent.


remove the usage of deprecated io/ioutil package

resolve: https://github.com/cloudevents/sdk-go/issues/921

LGTM


Calling PropTypes validators directly is not supported

Hi,
The new version of react router redux "^5.0.0-alpha.6" have problems, is showing me this message:
Failed context type: Calling PropTypes validators directly is not supported by the prop-types package. Use PropTypes.checkPropTypes() to call them
Im using a full typescript project whit out webpack
It is possible to avoid type checking?
regards!

Compiling the re react router package solves the problem. The umd version of react router repository seems to be outdated 🤔

Yes, we need to rebuild with the latest prop-types version. This was fixed on their end. Dupe of #5173


[Question]: Is Playwright Test Runner coming to playwright-dotnet?

Your question
Hi! I saw the recent release of "Playwright Test"/"Playwright Test Runner" (I've seen it referred to by both of those names), but on the docs page it looks like there's only Javascript documentation.
Will a C# binding for Playwright Test be coming at some point? Sooner or later? Unknown?
Thanks,
Christian

I've been running into some into some issues with NUnit's TestCaseSource method of building tests from lists/collections and was just curious if an alternative would be available on the horizon. I can open a separate issue for that if I can't figure out a good workaround though.
When you say "we do have support for [our custom test runner in .NET]", are you referring to Playwright Test or Microsoft.Playwright.NUnit? In other words, are you saying you currently support the custom test runner in .NET?

Playwright for .NET is generally not opinionated on the runner is what I'm trying to say :-) , i.e., we won't not work on them, but we do have varying degrees of integration with frameworks on top of them (i.e. NUnit, xUnit, MSTest).
I believe your issue wrt the TestCaseSource was addressed in #1721. As for a custom test runner/framework, we'd need to see a more concrete feature request/scenario for it to be considered.

Ah I understand :) And yes you are correct, my core issue was addressed - thanks so much for all your help and I think we can consider this one closed.


more: don't skip the first line when there are less lines than rows

See also https://github.com/uutils/coreutils/pull/2378
When running for i in {1..5}; do echo "$i"; done | cargo r more the first line was not printed.
Also fixes the bug that when there were more lines than rows and you press down, some lines were printed twice (e.g. when running for i in {1..47}; do echo "$i"; done | cargo r more and pressing down until the end, if you scroll up again some numbers are printed twice)
Is there a way mock key events in tests? I'd like to test this but I'm not sure how.

Closing in favor of https://github.com/uutils/coreutils/pull/2382


Deleting request

The main thing here is that I moved the check to re-enqueue the cleaning request outside of the if block else if (shouldKillTask(cleanupTask, activeTaskIds, cleaningTasks, incrementalCleaningTasks) && checkLBStateAndShouldKillTask(cleanupTask))
That should allow it to check if it needs to re-enqueue even if the task fails and doesn't clean up properly. Added some tests for this as well

LGTM


[R] Add some example data to the package to be able to have example code in function documentation

Most functions have no example code provided in their documentation.
For that purpose, the R package may include some raw data to process.
There are 3 possibilities:

add some custom data directly in the package (like in XGBoost R package)
add a dependency to a package which contains some data. Right now, mlbench is used in the RMarkdown documents.
It is also possible to include some example without the data and mark the example code as not executable (so during the package compilation the example is not tested).

@tqchen @hetong007 @thirdwing What do you think we should do?

I prefer the first one. Example should be the first code piece that helps a user to learn the way to call the function. So the more convenience the better.

Do you think the same dataset than XGBoost is Ok? (the one with mushroom)
If yes should be easy to copy paste and we are sure it works...
Moreover, it would make it possible to compare results from both packages.

BTW, in the current building process, all examples are not tested

@tqchen do we support sparse matrix input, or we need to do sparse -> dense conversion first?
For the latter case, I now prefer to use two data sets to represent regression and classification respectively. They could be the Sonar and BostonHousing as in the document or other "easier" data sets.

You can also generate some data like this:
#GENERATE DATA

N = 100 # number of points per class
D = 2 # dimensionality
K = 3 # number of classes
num_examples = N*K
X = matrix(0,num_examples,D) # data matrix (each row = single example)
y = matrix(0,num_examples) # class labels

for (j in 0:(K-1)){
  ix = seq(N*j+1,N*(j+1))
  r = seq(0.0,1,length.out=N) # radius
  t = seq(j*4,(j+1)*4,length.out=N) + rnorm(N)*0.2 # theta
  X[ix,1] = r*sin(t)
  X[ix,2]= r*cos(t)
  y[ix] = j +1
}
# lets visualize the data:
plot(X[, 1], X[, 2], col=rainbow(3)[y])

I am closing this now, since example data has been provided during the unit test: https://github.com/dmlc/mxnet/blob/master/R-package/tests/testthat/get_data.R


Option to use venvs using environment variable

Is your feature request related to a problem? Please describe.
Love the plugin, just had an issue where my virtual environments were named after their python versions (e.g., 3.8.17, 3.9.17) and I found that I kept getting muddled between venvs and PEP 582 style environments because I'd forget to add the -e flag to my commands.
Describe the solution you'd like
Suggesting a new feature where there is an environment variable, PDM_MULTIRUN_USE_VENVS which when set to 1 will use virtual environments by default.

Closed by https://github.com/pawamoy/pdm-multirun/pull/3

Implemented in #3, thanks :slightly_smiling_face:

Released as 1.0.0 :slightly_smiling_face:


mruby: powl() not available when compiling for Dreamcast

Hello,
Tried to compile the latest mruby for Dreamcast, but it failed with this message:
/opt/toolchains/dc/kos-ports/mruby/build/mruby-3.2.0/src/readfloat.c: In function ‘mrb_read_float’:
/opt/toolchains/dc/kos-ports/mruby/build/mruby-3.2.0/src/readfloat.c:69:12: error: implicit declaration of function ‘powl’; did you mean ‘powf’? [-Werror=implicit-function-declaration]
69 |     res *= powl(10.0, sign * e);
|            ^~~~
|            powf
Cause:  https://github.com/mruby/mruby/commit/bd668e4c9dc2244aa201addf95acbb8663596423
that went from pow() to powl()
This commit warned about architectures not supporting long doubles... and the Dreamcast seems to be one of those.
Dreamcast mruby compiled via:

latest https://github.com/KallistiOS/KallistiOS
latest https://github.com/KallistiOS/kos-ports
using sh-elf-gcc 13.2.0

Confirmed also to be an issue with the latest sh-elf-gcc 14.2.0. I just don't believe Newlib-based platforms are going to have that function for most of its targets... If needed, I think we could add it to KallistiOS, but I'm pretty sure we don't actually have long double, and that it would just be a #define back to regular pow()...

I see. I was concerned about that, but it has become a reality. We will take care of it as soon as possible. Thanks for the report.

I found out we don't need long double for our purpose. I fill fix it soon.


Session timeout on app client does not cause silent reauthentication

Session handling is a bit weird anyway. After the session times out, a reload redirects to https://identity.eurofurence.org/auth/choose. Clicking "Login with existing account" gets me directly to the dashboard without having to actually log in.

The clients all got a limited session time. Although that session time does not end the cookie session at the idp.
E.x. the idp may have a cookie lifetime of 180 days meanwhile the apps only got an hour.
The right solution should be to redirect when the session times out.

Creates from #10

Fixed by using refresh tokens


Next release?

@matz, the latest release if  632 commits ago already. I am curious when we can expect to see a new version?

2.0.2 will be released soon. "Soon" here means "within weeks".

I thinks the impact of the changes between 2.0.1...current might not be as a patch level!
Next release should be 2.1.0 !!!


incorporation of test improvements from parallel branch

Updates to include improvements from "merged key dimension table" branch (krivard/v4-rpp-mergeddim-leftjoin), specifically at commit hash fbf878e.
Changes include:

unit/integration testing refactorization and other improvements.
percona dbms now used in db docker image, plus changes for resulting compatibility issues.
db schema names are specified in ddl files.
removed of obsolete index hint guessing method.
updated comments.

This changeset is essentially just a port of the excellent work @krivard did to refactor and otherwise improve the test architecture, as she applied it to branch mentioned above.  Most of the files were simply copied over from the other branch to this one to create this PR; I only really made edits to these files: (and most edits were to strip out "mergedkey" stuff)

src/ddl/v4_schema.sql
src/acquisition/covidcast/database.py
src/acquisition/covidcast/test_utils.py
integrations/acquisition/covidcast/test_covidcast_meta_caching.py
integrations/server/covidcast/test_covidcast_meta.py

Is this duplicating some of the work in #927?

@dshemetov half maybe? it will supersede it. target of #927 is v3; target of this PR is v4

@dshemetov kinda sorta in-a-way but not really, in that #927 duplicated work in #923, then #923 evolved into #931, and this is essentially merging all that from #931 back into the v4 development branch (without the merged key stuff).
i did give #927 a good look-through (though not in a very thorough or methodical way) but didnt see anything that seemed too different from what i got from #931.  if theres something else there that you think i need to explore, im happy to give it a look!

Gotcha, yea, I didn't add anything extra in #927 that wasn't in #923. I'll close that one.


Problem using rac extract on mulitple files

rac extract v 2.7
This was investigated sorting datetimes and looking at first and last items.
Racfile download dates
EXP Dates in files
21st to 28th:
EXP Date from 22-11-22 08:32:54 to 22-11-23 19.16:07:25.
25th to 28th:
EXP Date from 2022-11-24 00:01:20 to 2022-11-24 00:05:31.
26th to 28th:
EXP Date from 2022-11-24 18:06:05 to 2022-11-24 19:00:03.
Something wrong when reading in multiple files?
To reproduce
Download all .rac data from OHB FTP server and try and run rac extract on all of them.

@OleMartinChristensen Could you see if you can reproduce the problem with v0.2.6?

@skymandr we are unfortunatelly completelly swamped with test results, and do not have too much time to debug, but I'll see if we find time and let you know

There appears to be a stretch of files around the 27th/28th that contain severely corrupt JPEG-files. It seems that the rac extract tool handles some of these problems fine (Corrupt JPEG data: bad Huffman code and Premature end of JPEG file seem to be handled correctly) but at some point we encounter a problem so severe that the tool makes a hard crash without error output. It appears to occur directly after or at least near to (some variation of ) Unsupported marker type 0x6b, but the fact that it manages to print this (and sometimes a different error after it) before termination means that we can't be sure that this error is the actual cause.
Anyway, we think we have isolated the problem to the JPEG-reading routines, which should be enough to go on a proper bug-hunt.

ok, do what you think is best. Currently this is a very large bottleneck in our processing, since we cannot search the data in any meaningfull way and need to spend alot of time guessing on which rac file to exract.
do you know roughly when we can either have a fix for this or an alternative system up running? I just want to know if I should but energy on finding a work around or not.

ok, do what you think is best. Currently this is a very large bottleneck in our processing, since we cannot search the data in any meaningfull way and need to spend alot of time guessing on which rac file to exract.
do you know roughly when we can either have a fix for this or an alternative system up running? I just want to know if I should but energy on finding a work around or not.

The files that I've found that have the errors ar all from 24–27/11, so if you skip those for now, you should be fine. That being said, I have a pull request up now that fixes the error-handling, see #155. Should be built and ready around lunch time CET.

ok

A release has been made and binaries should be here shortly: https://github.com/innosat-mats/rac-extract-payload/releases/tag/v1.1.1
Please see releasenotes for v1.0.0 and v1.1.0 for changes compared to v0.2.7.


refactor(nuxt): improve NuxtLink types

🔗 Linked issue

Related to https://github.com/nuxt/nuxt/issues/25532
❓ Type of change

[x] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[x] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Exposed types from vue-router are being re-implemented, we should avoid doing this for maintenance / inconsistency reasons
Types aren't documented, copied docs from the site
Added auto-completion for rel for most common privacy, security & SEO use cases
Improved type safety for the router link props we generate

📝 Checklist

[x] I have linked an issue or discussion.
[ ] I have added tests (if possible).
[x] I have updated the documentation accordingly.

Not too sure why but it seems like using the RouterLinkOptions['to'] type does not provide the typedPages augmentation :thinking:

Other than the comment I left, I don't think my review is valuable here. But I appreciate you thought it could be 😄 . Let me know if you have other vue-router questions

Other than the comment I left, I don't think my review is valuable here. But I appreciate you thought it could be 😄 . Let me know if you have other vue-router questions

Thanks for reviewing! Your sanity check is more than appreicated

Thanks for the merge satisfies fix 👍


SCSS preset is not working with latest node-sass

Describe the bug

I followed this guide to configure SCSS in my storybook project:  https://github.com/storybookjs/presets/tree/master/packages/preset-scss#basic-usage
when executing the project I would get this error coming from the "sass-loader" package

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
    at Object.loader

I found out this issue almost identical on "nuxt"
the solution proposed was to install a supported version of<EMAIL_ADDRESS>not the 11 version.

Possible Fix would be identical to this
npm uninstall -D sass-loader && npm install -D<EMAIL_ADDRESS>

I tried using<EMAIL_ADDRESS>but unfortunately it didn't work. I'm using these packages too:

@storybook/react: ^6.1.21
@storybook/preset-scss: ^1.0.3

If you have sass-loader installed try changing the installed version to 10.1.1, that fixed it for me. v11 went out on Feb 5th and now requires webpack 5.

In case someone initialised storybook to the existing create-react-app project, do the above (downgrade sass-loader to 10.1.1) and remove @storybook/preset-create-react-app from the .storybook/main.js file.
Thanks @riccardogiorato & @massivelines

@mbaranovski can you share your package.json & main,js, having the same issue, doesn't solve the import scss

I'm guessing this is blocked until webpack 5 is supported in storybook core? There are some improvements in sass-loader v11 we'd like to use :)

In case someone initialised storybook to the existing create-react-app project, do the above (downgrade sass-loader to 10.1.1) and remove @storybook/preset-create-react-app from the .storybook/main.js file.
Thanks @riccardogiorato & @massivelines

This works 👍🏾

Can anyone take a look at my main.js and package.json to see if they can spot my issue 🙏🏼
package.json
  "devDependencies": {
    "@babel/core": "^7.14.6",
    "@size-limit/preset-small-lib": "^5.0.1",
    "@storybook/addon-essentials": "^6.3.0",
    "@storybook/addon-info": "^5.3.21",
    "@storybook/addon-links": "^6.3.0",
    "@storybook/addons": "^6.3.0",
    "@storybook/preset-scss": "^1.0.3",
    "@storybook/react": "^6.3.0",
    "@types/node": "^15.12.5",
    "@types/react": "^17.0.11",
    "@types/react-dom": "^17.0.8",
    "babel-loader": "^8.2.2",
    "css-loader": "^5.2.6",
    "husky": "^6.0.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-is": "^17.0.2",
    "sass": "^1.35.1",
    "sass-loader": "10.1.1",
    "size-limit": "^5.0.1",
    "style-loader": "^3.0.0",
    "tsdx": "^0.14.1",
    "tslib": "^2.3.0",
    "typescript": "^4.3.4"
  },
  "dependencies": {
    "next": "^11.0.1"
  }

main.js
module.exports = {
  stories: ['../_components/**/*.stories.@(ts|tsx|js|jsx)', '../stories/**/*.stories.@(ts|tsx|js|jsx)'],
  addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/preset-scss'],
  typescript: {
    check: true, // type-check stories during Storybook build
  }
};

@PudparK I have same problem, you also need fixed style-loader version to 2.0.0, that's work for me.

@moonou thanks, that fixed it for me. Downgrading sass-loader to v10 alone didn't help. After downgrading style-loader to v2, then the project compiled. Hope this gets more upvotes so people can see how to fix it.

@moonou I finally got around to trying it out and it indeed did work. Thank you so much!

Not sure if this will help someone but I had to do a third downgrade before things worked. Here are my steps:
yarn remove sass-loader && yarn add<EMAIL_ADDRESS>yarn remove style-loader && yarn add<EMAIL_ADDRESS>// still not working for me
yarn remove css-loader && yarn add<EMAIL_ADDRESS>

Not sure if this will help someone but I had to do a third downgrade before things worked. Here are my steps:
yarn remove sass-loader && yarn add<EMAIL_ADDRESS>yarn remove style-loader && yarn add<EMAIL_ADDRESS>// still not working for me
yarn remove css-loader && yarn add<EMAIL_ADDRESS>

This is the solution. Absolutely terrible add-on if the basic readme.md doesn't even work.
Here's my full config seen as this is what infuriated me when people post their 'solutions'.
main.js
const path = require('path');

module.exports = {
  stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
  addons: [
    '@storybook/addon-links',
    '@storybook/addon-essentials',
    '@storybook/preset-scss',
  ],
};

package.json
  "dependencies": {,
    "sass": "^1.36.0"
  },
"devDependencies": {
    "@storybook/addon-actions": "^6.3.6",
    "@storybook/addon-essentials": "^6.3.6",
    "@storybook/addon-links": "^6.3.6",
    "@storybook/html": "^6.3.6",
    "@storybook/preset-scss": "^1.0.3",
    "@storybook/preset-scss": "^1.0.3",
    "css-loader": "5.2.6",
    "sass-loader": "10",
    "style-loader": "2.0.0",
  },

If you have the same packages as above it will finally work.

Not sure if this will help someone but I had to do a third downgrade before things worked. Here are my steps:
yarn remove sass-loader && yarn add<EMAIL_ADDRESS>yarn remove style-loader && yarn add<EMAIL_ADDRESS>// still not working for me
yarn remove css-loader && yarn add<EMAIL_ADDRESS>

Tnx dude

PR created to update preset-scss README
https://github.com/storybookjs/presets/pull/209
yarn add -D @storybook/preset-scss<EMAIL_ADDRESS>sass<EMAIL_ADDRESS><EMAIL_ADDRESS>

I also needed to downgrade css-loader to 5.2.6

Do we know if storybook has a plan to update to webpack 5?

Not sure if this will help someone but I had to do a third downgrade before things worked. Here are my steps:
yarn remove sass-loader && yarn add<EMAIL_ADDRESS>yarn remove style-loader && yarn add<EMAIL_ADDRESS>// still not working for me
yarn remove css-loader && yarn add<EMAIL_ADDRESS>

Thanks  It's  working

Why am I still failing with
  {
    "@babel/core": "^7.16.12",
    "@storybook/addon-actions": "^6.4.16",
    "@storybook/addon-essentials": "^6.4.16",
    "@storybook/addon-links": "^6.4.16",
    "@storybook/html": "^6.4.16",
    "@storybook/preset-scss": "^1.0.3",
    "babel-loader": "^8.2.3",
    "css-loader": "^5.2.7",
    "sass": "^1.49.0",
    "sass-loader": "^10.2.1",
    "style-loader": "^2.0.0"
  }

npm uninstall -D sass-loader && npm install -D<EMAIL_ADDRESS>
This works for me, thanks.
It has been almost a year now since this issue is reported and sadly the issue still occurs.
I hope this gets fixed soon.

Not sure if this will help someone but I had to do a third downgrade before things worked. Here are my steps:
yarn remove sass-loader && yarn add<EMAIL_ADDRESS>yarn remove style-loader && yarn add<EMAIL_ADDRESS>// still not working for me
yarn remove css-loader && yarn add<EMAIL_ADDRESS>

This one worked for me. After hours of debugging! Thank you.

The following packages still aren't working with SCSS preset:
I'm attempting to use builder 5 so, maybe that's what's causing issues? Repo here
package.json
 "sass": "^1.53.0",
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0",
"svelte-loader": "^3.1.3"

main.js
const path = require('path');

module.exports = {
    stories: [
        '../src/**/*.stories.mdx',
        '../src/**/*.stories.@(js|jsx|ts|tsx|svelte)',
    ],
    addons: [
        '@storybook/addon-links',
        '@storybook/addon-essentials',
        '@storybook/addon-interactions',
        '@storybook/preset-scss',
    ],
    framework: '@storybook/svelte',
    core: {
        builder: 'webpack5',
    },
};


Automatically detect package name for in-app-frame detection

The Flutter initialization can be changed to the following, in order to automatically detect the application package name to correctly identify in-app-stack-frames.
/// Initializes the SDK
  static Future<void> init(
    FlutterOptionsConfiguration optionsConfiguration, {
    AppRunner? appRunner,
    @internal PackageLoader packageLoader = _loadPackageInfo,
    @internal MethodChannel channel = _channel,
    @internal PlatformChecker? platformChecker,
  }) async {
    final package = Trace.current(1).frames.first.package;

    final flutterOptions = SentryFlutterOptions();

    if (package != null) {
      flutterOptions.addInAppInclude(package);
      flutterOptions.considerInAppFramesByDefault = false;
    }

    if (platformChecker != null) {
      flutterOptions.platformChecker = platformChecker;
    }

    final nativeChannel = SentryNativeChannel(channel, flutterOptions);
    final native = SentryNative();
    native.setNativeChannel(nativeChannel);

    // first step is to install the native integration and set default values,
    // so we are able to capture future errors.
    final defaultIntegrations = _createDefaultIntegrations(
      packageLoader,
      channel,
      flutterOptions,
    );
    for (final defaultIntegration in defaultIntegrations) {
      flutterOptions.addIntegration(defaultIntegration);
    }

    await _initDefaultValues(flutterOptions, channel);

    await Sentry.init(
      (options) async {
        await optionsConfiguration(options as SentryFlutterOptions);
      },
      appRunner: appRunner,
      // ignore: invalid_use_of_internal_member
      options: flutterOptions,
    );
  }

This works at least on Flutter VM platforms. I haven't looked at pure Dart and Web use cases.

@ueman which package is this one? Trace.current(1).frames.first.package
The idea isn't bad, the only problem I see is if the SDK is being initialized in a library or 3rd party, that could lead to a wrong inApp, I guess?

For a normal App, it'd return:

#0      Sentry.init (package:sentry/src/sentry.dart:44:30)

#1      main (file:///Users/user/Github/sentry-dart/dart/example/bin/example.dart:17:3)

So it'd only work for Flutter apps most likely.

@ueman which package is this one? Trace.current(1).frames.first.package

It's from the stack_trace library which is already in use by the SDK.

The idea isn't bad, the only problem I see is if the SDK is being initialized in a library or 3rd party, that could lead to a wrong inApp, I guess?

Yep, that's true, but still better than the current default of in-app = true

trace.frames.first.library would return bin/example.dart  from a Dart App.
So in the isInApp function, we could do: final packageOrLibrary = frame.package ?? frame.library; and verify the inAppIncludes and inAppExcludes.
Maybe that's doable.

Yeah, they can remove it from the inAppIncludes anyway, let's toy with it, it still needs testing on the Web due to minified JS and Flutter + split debug symbols.

Since this is possible to do it manually, and also, doing It automatically can lead to unwanted side effects, for example, when initialising the SDK later.


Some ideas for package manager-independent dep resolution

After a discussion with the original author and designer of the Eclipse P2 dep resolver, both p2 and libsolv could be candidates for universal dep resolution.

FYI, here's what resolvers we're looking into:

maven-resolver / aether for Maven dependencies
coursier for Scala / SBT dependencies

(I'll edit this post to update.)

FYI,
Found this one:
https://github.com/jeremylong/DependencyCheck (More details here)

@sschuberth FWIW the latest scancode develop includes https://github.com/sassoftware/pymaven (with some patches and some contributions that will eventually end upstream) which provides a decent pure python maven client. This eventually can resolve (as in fetch) deps even if crudely.
One possibility here would be to feed additional inputs besides POM: gradle, sbt, leningen, etc
On the dep resolution side, I have been looking at https://github.com/ContinuumIO/pycosat  and Conda by @ilanschnell  which provides a solid dependencies resolver https://github.com/conda/libconda/blob/master/libconda/resolve.py ... My idea would be to go from:

collect direct dependencies with scancode package manifests
here, provide "clients" that know how to fetch manifests and artifacts from various repos (e.g. maven, pypi, etc)
here, based on a set packages and clients, resolve (and eventually fetch) the deps

The point is that I want a solution that would be as much as possible neutral with regards to package formats and provides a good enough resolution (albeit not guaranteed to be exactly the same as the regular resolver for a given package manager)

@roscopecoltran Richard: thanks for the link. I have been tracking DependencyCheck  for quite a while and borrowing some (or all) of its code is an option too. I wish it were written in Python though ;)
The think I like about it is that it is based on a static analysis of deps (and does not require all the package managers to be installed)

latest scancode develop includes https://github.com/sassoftware/pymaven

Hmm, looks like that code hasn't been touched in years, and quote "fetch artifacts and artifact dependencies from maven2 repositories". I haven't seen Maven 2 projects since years...
FYI, our currently approach is to do 1. and 2. in a single step, and later do 3., all using whatever is the native package manager for the respective language. More details later 😉

@sschuberth you wrote:

Hmm, looks like that code hasn't been touched in years,

Not entirely correct and not correct of late: This is what's cooking for instance: https://github.com/sassoftware/pymaven/pull/8

and quote "fetch artifacts and artifact dependencies from maven2 repositories". I haven't seen Maven 2 projects since years...

Fair enough! but this is in reference to the maven2 repository layout for Maven POMs 4.0.0 as opposed to the maven1 repository layout (which was used with older POM versions 3.0 and earlier) .... this is not about Maven (the software) v2.x.... pymaven handles the current Maven 3.x things alright (and actually only support current Maven POMs)
Now in all cases having both static-analysis-based dependencies resolution and dynamic-package-manager-based resolution are not in conflict. In fact the best approach is likely to support both with the dynamic being the preferred, first try and the static a fall-back solution if the first is not working (for instance if the package manager too is not installed or if only a static resolution is requested)

Back Duck started with hub-detect a somewhat similar project, though tailored towards sending the results to their hub platform, whereas we're targeting at store results in ABCD format.

@sschuberth neat! is this standalone? or tied to having some stuffs fetched from their servers?

./gradlew bootRun yields ERROR--- Your Hub configuration is not valid, so it does not seem to be able to run the detection stand-alone before uploading anything to their hub.

Some ideas of tools that could help with dependency resolution:

https://github.com/sarugaku/resolvelib now used in pip
https://github.com/ContinuumIO/pycosat used on Conda
https://github.com/sdispater/mixology (now at https://github.com/python-poetry/poetry/tree/master/poetry/mixology) from the author of Poetry

Also related, these are universal package manager tools:

a universal package manager idea: https://gist.github.com/pombredanne/d3585617882f91d9316be5ce5eddf190
and UPT that can convert mostly all package formats https://framagit.org/upt
https://github.com/sigoden/upt

And of course for dynamic resolution of dependencies, this:

https://github.com/oss-review-toolkit/ort (which if it could be run without Java may be great here)


Support loading u-net from stable-diffusion.cpp GGUF files

stable-diffusion.cpp quantizes some extra layer types so some more operations needed to be added. the argument parsing for those is sort of brittle, not really sure how to make it better.
they prefix their keys with model.diffusion_model. - maybe we should too to enable loading from GGUF checkpoints rather than just u-net, CLIP, etc separately.
some initial work to make gguf_sd_loader usable for loading from different key prefixes.
some other small cleanups like using tuple rather than a mutable list type for short constant sequences, avoid recalculating lengths/file lists unnecessarily. couldn't help myself, but if you want i can remove those unrelated changes.
still seems to work with the existing GGUF u-net files i tested with as well as output from stable-diffusion.cpp which has u-net, CLIP and baked VAE (but we only currently load the u-net keys).
lightly tested but theoretically could be merged in its current state.
may close #53

actually, SDXL doesn't work - fails on missing key conv_in.weight. that doesn't exist in our GGUF file either but still works, so i think something in model detection is making it take an alternative code path. not sure exactly what's going wrong.

The shape of that key is used to detect the model channels, so it could be that. It's probably returning the shape of the reshaped tensor causing it to fail. Are they storing the original tensor shape anywhere in the file?

The shape of that key is used to detect the model channels, so it could be that.

actually found that stuff - turns out their GGUF file has the shape padded with 1 dimensions, so ours would be [640, 640] and theirs is [640, 640, 1, 1]. can we just squeeze the last dimension however many times when loading?

This works for SD but for Flux the group norm fails with the following:

Those tensors should be small enough so maybe we can do something like what's done with the text encoder and just dequantize them on load? I think the less layers we mess with the better in this case, and conv2d/linear are the two main ones that make up the bulk of the data anyway. That has less of a chance of breaking things like clip/controlnet/etc (which may already be broken since they can't grab the layer.in_features attribute).
https://github.com/city96/ComfyUI-GGUF/blob/abe5c6a6c90a3f8a53a097614bf749de506c6df7/nodes.py#L93-L96
Or I guess you could refactor and inherit from nn.[whatever], do the super().init, delete the weights, then reuse all the .self attributes. You'd replace the forward  with *args, **kwargs and pass them to the other one, though that might just be even more annoying and hacky lol.

This works for SD but for Flux the group norm fails with the following

do you mean these changes break the previously working ComfyUI-GGUF Flux or that Flux created with stable-diffusion.cpp is all that fails?

Previously working ones created by our own conversion stuff.

Previously working ones created by our own conversion stuff.

that's unfortunate.

Those tensors should be small enough so maybe we can do something like what's done with the text encoder and just dequantize them on load?

are you saying there's a way to know what type of operation a tensor is going to be used for at load time? the first thing we could do if that's the case is only enable ops if there's at least one quantized tensor that uses it. stable-diffusion.cpp-quantized Flux models still may not work but that would at least eliminate the possibility of breaking the GGUF files ComfyUI-GGUF created itself.

@city96 just checking to make sure you didn't miss the above question amidst other notifications. i'll probably have time to work on this early tomorrow, right now it's not clear exactly what to do though. if there is a relatively easy way to know what operation the tensors will be used for at the very least i can make sure it doesn't break any of the existing stuff. would also need to know how to do that to take your advice about just pre-dequantizing those tensors also.
if you just didn't get a chance to respond yet or are still thinking about it, not pressing you or anything.

just checking to make sure you didn't miss the above question amidst other notifications.

I did in fact miss it lol. I had a couple ideas on how to deactivate ops, one was some logic based around this part as we hijack it anyway:
https://github.com/city96/ComfyUI-GGUF/blob/abe5c6a6c90a3f8a53a097614bf749de506c6df7/ops.py#L87-L93
We could possibly do a switch where the layer is initialized normally, and if neither the bias nor the weight are quantized, then they're just loaded as regular weights and the original ComfyUI forward is used for the ops. If they are quantized, then we delete/overwrite the weight with the quantized one. Not the best but it's an idea. Beats guessing based on the tensor names I guess.
Though what you say is definitely what we should be doing:

the first thing we could do if that's the case is only enable ops if there's at least one quantized tensor that uses it.

i.e. no reason to ever touch conv2d for flux, or linear when someone is loading a regular clip model using the gguf loader/etc.

@blepping okay, check this out. I've refactored around the original comfy stuff. Somehow it's also way faster in lowvram mode.
Anyway, you should be able to add more layers by pasting the forward_comfy_cast_weights function from ComfyUI/comfy/ops.py

sorry, got distracted by other stuff. hopefully i will get a chance to work on this tomorrow and finish it up. (no response necessary)

okay, current iteration is tested to work with:

t5xxl (from your HF repo)
SD 1.5 (both yours and stable-diffusion.cpp)
SDXL (both yours and stable-diffusion.cpp)
Flux (both yours and stable-diffusion.cpp)

sorry, i should have tested with Flux and T5 before instead of making you do the work.
note: i changed this pull to point at your ops_rework branch. just mentioning it since if you do something like merge ops_rework and then merge this into ops_rework it could be awkward.


AbstractKafkaStreamsBinderProcessor ignores TimestampExtractor configuration starting with kafka-streams 3.7.0

Hello,
about this code snippet starting at AbstractKafkaStreamsBinderProcessor:627 (version 4.1.0):
	if (timestampExtractor != null) {
		consumed.withTimestampExtractor(timestampExtractor);
	}

"consumed" is an Consumed-instance which is part of kafka-streams.
In kafka-streams 3.6.1 a call to consumed.withTimestampExtractor() changes the existing instance.
Since kafka-streams 3.7.0 the same call creates a new instance of "Consumed", but the code above ignores this new instance.
In the end, the timestampExtractor is not used at all since kafka 3.7.0.
Same for "consumed.withName" a couple of lines below.
IMHO this is a big change in kafka-streams inside a minor version change.
To fix this anyway the code above might be changed to
	if (timestampExtractor != null) {
		consumed = consumed.withTimestampExtractor(timestampExtractor);
	}

Regards,
Ralf

@qxv1612 Your fix makes sense. If you are willing, please feel free to send a PR with the fix. Otherwise, we will look into it later. Thanks!

Hello @sobychacko,
I forked the repo and created the PR based on the main branch. I'm not sure if this is the right method.
A local build currently fails in KafkaBinderTests, but I expect its related to my local env settings.
Actually I started the same test with the current main branch.


Why WCP's output score is [batch,header_num] not [batch,4,header_num]?

Thank you! @whwang299

Please refer to https://github.com/naver/sqlova/issues/28.
Wonseok


Add method for returning DiceRoller total

Currently, you can only get the total of an individual DiceRoll. If you want to get the total of all DiceRolls on a DiceRoller object, you have to manually loop through each roll and sum the totals.
I propose that there be a public method on the DiceRoller object which returns the sum totals for all of its rolls.
It probably makes sense to name the method the same as on the DiceRoll; getTotal().

This has been added in pull request #71.
With the update to ES6 last year, the naming convention has changed slightly.
Instead of a getTotal() method, there is a new DiceRoller.total ES6 getter method, which is accessible like a property.
Since this issue was raised, we've also added pool dice (#23), so I've also added a DiceRoller.successes ES6 getter method, for returning the total successes for all rolls in the log.
If all rolls in the log are pool dice, then the total and successes should be the same.


feat: add .NET quickstart guide and timings on quickstart cards

Description

Testing required outside of automated testing?

[ ] Not Applicable

Screenshots (if appropriate):

[ ] Not Applicable

Rollback / Rollforward Procedure

[ ] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

:tada: This PR is included in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


use-cases: change word in diagram in share-data-and-model-files

"Serving" -> "Storage" in https://dvc.org/doc/use-cases/share-data-and-model-files

@jorgeorpinel serving is the right word here :) (it's when you need need to open a model file in a Falsk app for example to drive your REST API - you can use dvc get or dvc.api.open to get the file)

Cool


Readme.md on Typst Universe is not visible

On Typst universe, I don't see the readme.md. There is absolutely no text. I think will think that this is not a real repo or something like that.
Here is the link that I am referring to : https://typst.app/universe/package/diagraph.

Fixed


SLES support

We love this feature but have a mix of linux os's. The biggest os missing for us is SLES - is this on the roadmap?

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

ID: bb8e2623-1f79-aee3-bd97-8b5f647b6980
Version Independent ID: 6346b54d-cc8d-0b79-a6b8-f9144cfa2459
Content: Log in to a Linux VM with Azure Active Directory credentials
Content Source: articles/virtual-machines/linux/login-using-aad.md
Service: virtual-machines-linux
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the question! We are investigating and will update you shortly.

@deosandeep Can you please share if you have the information on the roadmap for adding SLES to AADForLinuxExtension. Thanks. :)
@richardharrison2 Please provide your feedback/feature-request here
This allows you to get direct feedback on your request from engineering, and will also allow other customers to vote it up for prioritization.

@deosandeep Did you get a chance to take a look at this question. Customer is looking for info on whether adding SLES is on the roadmap. Thanks.

@richardharrison2 Currently we do not have support for SLES. I would recommend providing your feedback here.
I am trying to get the information internally on roadmap for SLES. I will update it here once I have the info.
I will close this issue for now. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

We did add support for SLES version 12 and openSUSE version 42.3. We are working on updating our documentation and Azure portal experience to include the Azure AD logon option when you create a Linux VM in Azure using the above mentioned SLES and openSUSE versions. In the meantime you can install the Azure AD login VM extension on your SLES or openSUSE Azure VMs, using the instructions documented here.


[BUG] Test failure PrimaryAllocationIT.testPrimaryReplicaResyncFailed fails with reproducible seed on main

Describe the bug
From: https://build.ci.opensearch.org/job/gradle-check/45305/testReport/junit/org.opensearch.cluster.routing/PrimaryAllocationIT/testPrimaryReplicaResyncFailed/ on PR
https://github.com/opensearch-project/OpenSearch/pull/15410#issuecomment-2310783564
seed -Dtests.seed=6656B3A5382F367D
./gradlew ':server:internalClusterTest' --tests "org.opensearch.cluster.routing.PrimaryAllocationIT.testPrimaryReplicaResyncFailed" -Dtests.seed=6656B3A5382F367D -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=en-LC -Dtests.timezone=IST -Druntime.java=21

more trace:
java.lang.AssertionError:
Expected: a collection with size <4>
     but: collection size was <2>
	at __randomizedtesting.SeedInfo.seed([6656B3A5382F367D:A99394DE100FA3ED]:0)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
	at org.junit.Assert.assertThat(Assert.java:964)
	at org.junit.Assert.assertThat(Assert.java:930)
	at org.opensearch.cluster.routing.PrimaryAllocationIT.lambda$testPrimaryReplicaResyncFailed$13(PrimaryAllocationIT.java:715)

Originally failed on this PR but i have reproduced this on main locally.
Related component
Cluster Manager
To Reproduce
see above.
Expected behavior
Test to pass
Additional Details
N/A

[Triage - attendees 1 2 3]


XML parser error

setup description:
Matrox Rapixo frame grabber card (dual input not quad).
Adimec TMX74 Coaxpress camera.
installed on computer Matrox MIL 10, SP4, update 87. when checked - the firmwareupdater states that the frame grabber is up to date. Continuous acquisition is possible using Matrox's intellicam app (certain that the camera is fine and works properly)
i'm using the Spyder IDE through anaconda, running on python 3.7.6 (conda base).
problem statement:
Whenever I try to run my code (attached below) I keep getting a RuntimeException from an XmlParser.cpp file. I think it fails reading the ® symbol somewhere. The error:

when i go to the relevant place in the XML file i see:

I expected from my code to grab and save 10 images from the camera. instead, it saves 10 completely black images.
I can't seem to understand if the problem is somewhere in the harvesters module, the Matrox environment (the .cti file) or something else entirely.
Would greatly appreciate some help. thanks in advance :)
my code:
temp.txt

OS: windows 10
Python: 3.7.6
Harvester: 1.2.8
GenTL Producer: Matrox
Camera: Adimec tmx74 coaxpress

Did you get any solution? I am facing same kind of issue.
Error while parsing XML stream at line 1 and column 2 : 'not well-formed (invalid token)' : RuntimeException thrown (file 'XmlParser.cpp', line 1720)

hi
once i installed the genicam module it solved my issues
On Fri, Feb 12, 2021 at 9:27 PM Divya Saxena<EMAIL_ADDRESS>wrote:

Did you get any solution? I am facing same kind of issue.
Error while parsing XML stream at line 1 and column 2 : 'not well-formed
(invalid token)' : RuntimeException thrown (file 'XmlParser.cpp', line 1720)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/genicam/harvesters/issues/207#issuecomment-778403925,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARR3J4KUZNROGF2MHHQRIGTS6V6K7ANCNFSM4TDTLUPQ
.

I have already installed genicam. I think in my case it’s not reading xml file from one of the  zip folder.

Describe the bug:
XML parser issue due to "-en" token in XML file. Likely the genicam XML parser needs some error handling for unknown tokens or the XML files need correcting to remove the token. Not sure who the maintainer for the genicam module is as I could not find it on GitHub to post the issue there.
The other thing is the camera seems to use custom tl_type but is connected with a U3V interface, is there away to force the tl_type not sure if it would load different XML files then.
(id_='MQ042MG-CM-TG (37060850)', vendor='XIMEA GmbH.', model='MQ042MG-CM-TG', tl_type='Custom', user_defined_name=None, serial_number='37060850', version='V<IP_ADDRESS>')
To Reproduce:
Steps to reproduce the behavior:
_harvester = Harvester()
_harvester.add_file("../../Viserion_NFBP/nfbp/devices/camera/genTL/libXIMEA_GenTL.cti")
_harvester.update()
ia = _harvester.create_image_acquirer(serial_number='37060850')
This is the console output:

Desktop (please complete the following information):
OS: MacOS 11.1
Python: 3.8
Harvester: 1.2.8
GenTL Producer: Ximea
Camera: MQ042MG-CM-TG

I suspect the root cause being discussed here under the topic must be the same as ticket #226. Nothing has been concluded yet but this issue could turn out an issue that needs to be discussed by the GenICam committee. I will try to keep you all up to date. Thanks, Kazunari.

Thanks!
On Thu, Apr 22, 2021, 10:33 Kazunari Kudo @.***> wrote:

I suspect the root cause being discussed here under the topic must be the
same as ticket #226 https://github.com/genicam/harvesters/issues/226.
Nothing has been concluded yet but this issue could turn out an issue that
needs to be discussed by the GenICam committee. I will try to keep you all
up to date. Thanks, Kazunari.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/genicam/harvesters/issues/207#issuecomment-824612208,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARR3J4K2QJOMN3MFLPFMFADTJ7GK5ANCNFSM4TDTLUPQ
.

@superted6851, @divyasaxenaa, and @Impstar314 Hi, probably the latest commit at ff862dea22a1eb53610417a3d8f9e2c39c680509 should fix the issue. I would highly appreciate it if you could try it out when you can. Thank you. Best regards, Kazunari.

@kazunarikudo I still get the same error but now it returns an image acquirer so I am able to capture one frame but then it throws an error message when I try to close the stream.
OS: MacOS 11.3.1
Python: 3.8
Harvester: 1.3.1.post.dev5
GenTL Producer: Ximea
Camera: MQ042MG-CM-TG
Console Output

Test image output

@superted6851 Thank you for giving it a try. Could you give me the GenTL_Stream.xml file, please? It should be located somewhere under the /var directory. I believe the directory itself is alive until the machine is rebooted. Thanks, Kazunari.

@kazunarikudo  Here it is
GenTL_Stream.TXT

@superted6851 Hi, could you give it a try for the latest commit in the master? I have added a feature to the ImageAcquire class so that you can specify the file name pattern and a sequence of data that is used as the beginning of garbage to be dropped/truncated. For your case, give it the following code if you are sure the linked camera causes the issue discussed here; the file_dict is optional so it is not necessary to pass a dict if you are sure the linked camera or the GenTL Producer does not cause any exception:
ia = h.create_image_acquirer(
    # no change here, use this parameter as you have used before:
    0,
    # pass it a dict consists of a key and a value, a regular expression pattern
    # for a file name to be applied the data truncation and a marker data,
    # respectively:
    file_dict={r'GenTL_Stream\.xml': bytes('-en', encoding='utf-8')})

The ImageAcquire object will drop/truncate the sequence that begins as -en if the file name is GenTL_Stream.xml. Having dropped the garbage data, that you have seen as -en, the XML parser can start to handle a valid XML file at last.

@kazunarikudo Still getting the same error seems file_dict is not working as expected.
OS: MacOS 11.3.1
Python: 3.8
Harvester: 1.3.1.post.dev12
GenTL Producer: Ximea
Camera: MQ042MG-CM-TG

@superted6851 Hi. Your case needs to have r'GenTL_.+\.xml' actually. The target seems to have the garbage in other files.


Add access token to configuration file

Instead of opening the authorization link every time when running the program, could you add the access token to the configuration file? I would also like to use the program on a machine without a desktop environment and this is making it impossible. Thank you!

@KaMyKaSii
You can pass in your own access token with the --token flag:
ttchat --channel <channel> --token randomAccessToken

The documentation in the latest release is updated to show this.

@KaMyKaSii
You can pass in your own access token with the --token flag:
ttchat --channel <channel> --token randomAccessToken

The documentation in the latest release is updated to show this. Make sure the token has the scopes to read and edit/write chat.

Working, thank you! Also I would like to know, is it possible to start/put ttchat in backgroung in the shell? I tried with & at the end of the command but the process is killed right away, CTRL Z during execution does nothing

@KaMyKaSii
Hm, no I don't think that is possible right now. Why would you want to put it in the background?


Add missing port connections after changes to prim_fifo_sync

https://github.com/lowRISC/opentitan/commit/71d98f8e4adf0b1ba851ce096ecc10909327156b by @tjaychen added a new port to prim_fifo_sync, but not all users were adopted. Grep for it and adjust as necessary. Here's sample AscentLint output:
E   OPEN_OUTPUT:   tlul_adapter_sram.sv:286   Missing connection to port 'full_o' on instance 'u_reqfifo' of module 'prim_fifo_sync'                     New

E   OPEN_OUTPUT:   tlul_adapter_sram.sv:307   Missing connection to port 'full_o' on instance 'u_sramreqfifo' of module 'prim_fifo_sync'                 New

E   OPEN_OUTPUT:   tlul_adapter_sram.sv:330   Missing connection to port 'full_o' on instance 'u_rspfifo' of module 'prim_fifo_sync'                     New

E   OPEN_OUTPUT:   tlul_fifo_sync.sv:32       Missing connection to port 'full_o' on instance 'reqfifo' of module 'prim_fifo_sync'                       New

E   OPEN_OUTPUT:   tlul_fifo_sync.sv:64       Missing connection to port 'full_o' on instance 'rspfifo' of module 'prim_fifo_sync'                       New

ah yes thanks for fixing.

ah yes thanks for fixing.


Clear error message when passphrase not supplied with encrypted private key

Before
vagrant@st2test:~$ st2 run core.remote hosts=localhost cmd=date username=vagrant private_key=/home/vagrant/.ssh/test_rsa_pp
.
id:<PHONE_NUMBER>fc8c18adf74f00
status: failed
parameters:
  cmd: date
  hosts: localhost
  private_key: '********'
  username: vagrant
result:
  error: "Unable to connect to any one of the hosts: [u'localhost'].

 connect_errors={
  "localhost": {
    "failed": true,
    "traceback": "Traceback (most recent call last):\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/ssh/parallel_ssh.py\", line 241, in _connect\n    client.connect()\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/ssh/paramiko_ssh.py\", line 144, in connect\n    self.client = self._connect(host=self.hostname, socket=self.bastion_socket)\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/ssh/paramiko_ssh.py\", line 578, in _connect\n    client.connect(**conninfo)\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/paramiko/client.py\", line 380, in connect\n    look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/paramiko/client.py\", line 597, in _auth\n    raise saved_exception\nSSHException: not a valid EC private key file\n",
    "timeout": false,
    "succeeded": false,
    "stdout": "",
    "stderr": "",
    "error": "Cannot connect to host. not a valid EC private key file: not a valid EC private key file",
    "return_code": 255
  }
}"
  traceback: "  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/container/base.py", line 89, in _do_run
    runner.pre_run()
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/ssh/paramiko_ssh_runner.py", line 159, in pre_run
    self._parallel_ssh_client = ParallelSSHClient(**client_kwargs)
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/ssh/parallel_ssh.py", line 60, in __init__
    connect_results = self.connect(raise_on_any_error=raise_on_any_error)
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/ssh/parallel_ssh.py", line 90, in connect
    raise NoHostsConnectedToException(msg)
"
vagrant@st2test:~$

After
(virtualenv)vagrant@st2dev /m/s/s/st2 ❯❯❯ st2 run core.remote hosts=localhost username=vagrant private_key=/home/vagrant/.ssh/test_rsa_pp cmd=date
.
id: 57633ad7d9d7ed1889ad2098
status: failed
parameters:
  cmd: date
  hosts: localhost
  private_key: /home/vagrant/.ssh/test_rsa_pp
  username: vagrant
result:
  error: "Unable to connect to any one of the hosts: [u'localhost'].

 connect_errors={
  "localhost": {
    "failed": true,
    "traceback": "Traceback (most recent call last):\n  File \"/mnt/src/storm/st2/st2actions/st2actions/runners/ssh/parallel_ssh.py\", line 241, in _connect\n    client.connect()\n  File \"/mnt/src/storm/st2/st2actions/st2actions/runners/ssh/paramiko_ssh.py\", line 144, in connect\n    self.client = self._connect(host=self.hostname, socket=self.bastion_socket)\n  File \"/mnt/src/storm/st2/st2actions/st2actions/runners/ssh/paramiko_ssh.py\", line 549, in _connect\n    raise Exception(msg)\nException: Private key file /home/vagrant/.ssh/test_rsa_pp is passphrase protected. Supply a passphrase!\n",
    "timeout": false,
    "succeeded": false,
    "stdout": "",
    "stderr": "",
    "error": "Failed connecting to host localhost.: Private key file /home/vagrant/.ssh/test_rsa_pp is passphrase protected. Supply a passphrase!",
    "return_code": 255
  }
}"
  traceback: "  File "/mnt/src/storm/st2/st2actions/st2actions/container/base.py", line 89, in _do_run
    runner.pre_run()
  File "/mnt/src/storm/st2/st2actions/st2actions/runners/ssh/paramiko_ssh_runner.py", line 159, in pre_run
    self._parallel_ssh_client = ParallelSSHClient(**client_kwargs)
  File "/mnt/src/storm/st2/st2actions/st2actions/runners/ssh/parallel_ssh.py", line 60, in __init__
    connect_results = self.connect(raise_on_any_error=raise_on_any_error)
  File "/mnt/src/storm/st2/st2actions/st2actions/runners/ssh/parallel_ssh.py", line 90, in connect
    raise NoHostsConnectedToException(msg)
"
(virtualenv)vagrant@st2dev /m/s/s/st2 ❯❯❯

👍

Good catch - thanks!
Let's please also add a test case for it.

Added unit test: https://github.com/StackStorm/st2/pull/2755/commits/1bf5009d0a4b6dbedbc9a3da0032079935599941#diff-4e2bf97e5b553c71e4a57637fb0d1253R148


Adding Orange to landscape

Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[ ] Have you picked the single best (existing) category for your project?
[ ] Does it follow the other guidelines from the new entries section?
[ ] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[ ] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[ ] Does your project/product name match the text on the logo?
[ ] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~15 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

:heavy_check_mark: Deploy Preview for landscape ready!
:hammer: Explore the source changes: a79dfffcdab9dbd63d9d7abff2639759ba4fb63d
:mag: Inspect the deploy log: https://app.netlify.com/sites/landscape/deploys/60b92151931f0f0009b67d03
:sunglasses: Browse the preview: https://deploy-preview-2127--landscape.netlify.app

LGTM


WIP: fix fuzzit script to work with latest CLI syntax

@dvyukov this should fix this https://github.com/google/syzkaller/pull/1397#issuecomment-531229318
I'll ping again once the travis is finished so you can merge.
Thanks!

Codecov Report

Merging #1398 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1398   +/-   ##
=======================================
  Coverage   57.82%   57.82%
=======================================
  Files         131      131
  Lines       24849    24849
=======================================
  Hits        14368    14368
  Misses       9812     9812
  Partials      669      669

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 40fa42b...7b47964. Read the comment docs.

@dvyukov now looks like it fixed and ready to be merged:) Thanks!


Add self-check to covid_hosp updates

We recently fixed a problem in the covid_hosp endpoint acquisition code that was causing columns to be scrambled. This problem did not show up in unit tests and never would have, since the migration on the production database caused columns to be in a different order than is specified in the ddl used by the container for unit tests.
We can however add a guard against this happening in the future as follows: During the update job, if a new file was added, have the code spot-check a few values to make sure they come out of the endpoint under the proper column headings.
Low priority, but useful if we can find the time.

We converted this pipeline to explicitly name columns in all places, so a check like the one described is no longer necessary.


Docs site is broken

I'm just seeing a blank page right now.

Apologies, I am aware. We need to fix this https://github.com/RobbieTheWagner/ember-flatpickr/pull/2043 and then I will have new docs out.

Docs are back up now, sorry for the inconvenience!


How to user AddChatUser method properly?

Hi.
I have target chat ID and users ID (long).
await client.AddChatUser(chat, user);
How to use this method properly? When I try to write long ID's, I am getting error;
https://prnt.sc/cp0JgtXQZAd_
Thanks a lot!

To add/invite/remove a member in a chat/channel, you can look at this example https://wiz0u.github.io/WTelegramClient/EXAMPLES#add-members
ID is not enough. You need to create TL.InputPeer and TL.InputUserBase

To add/invite/remove a member in a chat/channel, you can look at this example https://wiz0u.github.io/WTelegramClient/EXAMPLES#add-members
ID is not enough. You need to create TL.InputPeer and TL.InputUserBase

Thanks for your reply mate!
Any example?

see also https://wiz0u.github.io/WTelegramClient/FAQ.html#access-hash
As it is not an issue with the library itself, here is not the right place to ask.
For further questions about Telegram API usage, please ask them on StackOverflow so the whole community can help and benefit:
https://stackoverflow.com/questions/ask?tags=c%23+wtelegramclient+telegram-api


Update k8s to v0.31.4

This PR contains the following updates:

Package
Type
Update
Change

k8s.io/api
require
patch
v0.31.3 -> v0.31.4

k8s.io/apimachinery
require
patch
v0.31.3 -> v0.31.4

k8s.io/cli-runtime
require
patch
v0.31.3 -> v0.31.4

k8s.io/client-go
require
patch
v0.31.3 -> v0.31.4

k8s.io/kubectl
require
patch
v0.31.3 -> v0.31.4

Release Notes

kubernetes/api (k8s.io/api)
v0.31.4
Compare Source

kubernetes/apimachinery (k8s.io/apimachinery)
v0.31.4
Compare Source

kubernetes/cli-runtime (k8s.io/cli-runtime)
v0.31.4
Compare Source

kubernetes/client-go (k8s.io/client-go)
v0.31.4
Compare Source

kubernetes/kubectl (k8s.io/kubectl)
v0.31.4
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

1 additional dependency was updated

Details:

Package
Change

k8s.io/component-base
v0.31.3 -> v0.31.4

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 44.198%

Totals

Change from base Build<PHONE_NUMBER>1:
0.0%

Covered Lines:
438

Relevant Lines:
991

💛  - Coveralls


Add integration test to run a helm deploy pipeline

Fixes: #63
Proposed changes

Create a pipeline of two tasks,
First task build and push an image
Second task helm deploys that image
Verify the service created is reachable

/cc @bobcatfish

/cc @shashwathi

wut
/meow space

/meow space

Added cleanup task after the test is runs to remove tiller from cluster

Just a quick note that we should leave #63 open after this b/c we still need to do some work to respect the cluster parameters (e.g. mount and create a kubeconfig that helm can use?). At the moment, we can only deploy to the cluster that the Pipeline CRD is already running in.
(Apologies if I added this comment already, I thought I did but I can't find it 😅 )

@bobcatfish should the different cluster be a different issue since this is not yet implemented in the controllers?

/hold

/retest

This PR also addresses : https://github.com/knative/build-pipeline/issues/148

@bobcatfish should the different cluster be a different issue since this is not yet implemented in the controllers?

sure that's fine!


Dataset with string

I want to train a CV network with MXNet and I created a custom Dataset class (inherited from SegmentationDataset in GluonCV - works well) but I'd now like this class to return the name of the image file (a string).
Problem is MXNet refuses to batch strings.
So I tried to create a NDArray from my string but NDArray won't take strings as dtype. What should I do?

@mxnet-label-bot add [question, gluon]


segmeentation fault

Hello, Thank you for this project which is really interesting. I start to do it again but I find the following error "segmentation fault" when I run the code techeable.py.
Could you help me thank you in advance.

@SEYDINALAYE This repo's issues got missed somehow. Are you still facing this issue ?

Feel free to reopen if the issue still persists.


Use the correct option to handle the global error

Continuing from https://github.com/mochajs/mocha/pull/2229

@amsul Thanks.  A rebase onto master should fix the CI failures.
I have some questions.
So, if we return false (when allowUncaught is true), this means the default event handler will not be executed.  Until this change, it executes.  Does this mean:

it overrides the browser's default behavior (whatever that is)?
it overrides any other global event handler that has been set?
can a user set multiple global handlers for a particular event?
are there any browsers (I'm looking at PhantomJS and IE) that have peculiar behavior here?

If you're unsure about some of these, would it be possible to write an integration test for this?

Moreover, what bug does this fix?

The bug this fixes is mentioned here: https://github.com/mochajs/mocha/pull/2229#issuecomment-226589541
Essentially, there was no way to allow errors from propagating to the window and being handled in the dev tools (since mocha catches those errors to allow tests to continue running). Adding this option meant that there is an opportunity to debug these errors by pausing for uncaught errors. However, the implementation had a bug, which is what this corrects.
In regards to your questions:

it overrides the browser's default behavior (whatever that is)?

It doesn't override the browser's default behavior - just prevents mocha from "catching" the error and allows it to propagate up.

it overrides any other global event handler that has been set?

Nope

can a user set multiple global handlers for a particular event?

Not sure I understand what you mean by this..

are there any browsers (I'm looking at PhantomJS and IE) that have peculiar behavior here?

Nope..they all seem to handle this behavior pretty consistently


Parsing error: Cannot read file tsconfig.json, when it's in subfolders and not in root

Hi, I have nested subprojects, with individual esling and tsconfig configurations, which get parsed correctly from command line, but not from the extension.
You can check the repo in its current state at: https://github.com/fcole90/fullstack_open_2020_part9/tree/f56f5c6c2df77b80c2f7e4df42c07fe6718ff53a
Details
I have a root folder fullstack_open_2020_part9, which contains some subfolders, each with a separate .eslintrc and an associate tsconfig.json. If I run eslint --ext .ts . within each of the subfolders I get the correct parsing. However, the extension doesn't read the right configuration file: e.g. in the file fullstack_open_2020_part9/patientor/backend/index.ts it reports Parsing error: Cannot read file '/home/fabio/Projects/aalto/fullstack_open_2020_part9/tsconfig.json' but I would be expecting it to check /home/fabio/Projects/aalto/fullstack_open_2020_part9/patientor/backend/tsconfig.json instead.
Note
I used this same dir structure for other projects (most of those "fullstack_open_2020_part*" you can find among my repos) which didn't use Typescript, and .js files were parsed correctly without any need to customise ESlint options.
I think this issue might be related to using this extension with an eslint file pointing to a parserOptions.project with a relative link like mine:
    "parserOptions": {
        "project": "./tsconfig.json"
    }

@fcole90 the eslint.workingDirectories setting is your friend here since you need to do a cd when running in the terminal.
Please ping if this doesn't help.

Thanks, for reference I add here a link to the documentation for eslint.workingDirectories

Solved by adding .vscode/settings.json to the root of the project with the following content (as you suggested):
{
  "eslint.workingDirectories": [
    "./part_b",
    "./part_c_patientor/frontend",
    "./part_c_patientor/backend",
    "./part_d",
  ]
}

Link to repo with fix: https://github.com/fcole90/fullstack_open_2020_part9

@dbaeumer,
I'm using npm workspaces, and I have the same issue. However, it works fine when running a command like npm run lint -w client (-w is used to specify the workspace).
It also seems to run without issue in PhpStorm.
Which project (this extension, eslint, ts-eslint, etc.) is responsible for resolving parserOptions.project? I get the feeling that it's being resolved incorrectly (not relative to the .eslintrc.js file). But why is it working fine in PhpStorm?

@glen-84 resolving the files is nothing the extension does itself. They are resolved either by ESLint npm module or one of the plugins. From my experience this highly depends on the current working directory. This is why setting "eslint.workingDirectories" mostly resolve the issue.
Can you try to run eslint directly (not via npm run lint, but using something like ./node_modules/.bin/eslint ....) and see if you can reproduce this when running from the workspace folder?

@dbaeumer,
I was able to fix or workaround the issue by using:
project: path.join(__dirname, "tsconfig.eslint.json")

... to force ESLint (or probably TS-ESlint) to use the file in the current directory. It's a bit strange that it doesn't do this by default though.
Perhaps PhpStorm changes into the configuration directory before running ESLint.

project: path.join(__dirname, "tsconfig.eslint.json")

Where did you put this? In which file?

@juliaheller In the .eslintrc.js file for the workspace (i.e. client/.eslintrc.js).

should .vscode folder be on github?

should .vscode folder be on github?

Yes, you can use it to ensure your team is using the same settings (in vscode settings this is the "workspace" settings), you can also use it "recommend" vscode extensions that are needed for the project. A general tip is to keep the .vscode/settings.json limited to only what must be in there, so don't copy-paste your full "user" settings.json into the "workspace" settings.json.
The only situation where this could be a problem is if you're copy-pasting your "user" settings.json into the "workspace" settings.json and one of your vscode extensions had a secret in your user settings. Extensions are not supposed to do that and it's rare, but beware of it.

This also works for me:
{
  "eslint.workingDirectories": [
    {
      "mode": "auto"
    }
  ]
}

In my case I was using turbo repo (the main project was nested under sub-directory) so the VS Code ESLint extension was using the project's root as the base path instead of the project directory, so I ended up manually appending the app directory (if it doesn't have one) to the cwd.
This is my .eslintrc.js implementation.
const { resolve } = require('node:path')

const dir = 'apps/dashboard'
const cwd = process.cwd()

// VS Code ESLint extension sets `cwd` as project root and running the `lint`
// or base `turbo lint` command will the `cwd` to app directory. We need to
// append the app directory for VS Code ESLint extension to detect and
// properly parse the Typescript configuration (`tsconfig.node.json`)
const project_dir = cwd.endsWith(dir) ? process.cwd() : `${cwd}/${dir}`
const project = resolve(project_dir, 'tsconfig.node.json')

/** @type {import("eslint").Linter.Config} */
module.exports = {
    parserOptions: {
        project
    }
}


python3Packages.shapely: 1.8.2 -> 1.8.4

Fixes https://github.com/NixOS/nixpkgs/issues/185996 (!!) where the tests were segfaulting on macOS/aarch64.
Probably fixes the django and other builds for a lot of the ecosystem.
Description of changes

Deleted an obsolete patch, and disabled some logging tests. I spent about an hour trying to debug the logging tests, but ultimately, they're some kind of weird test setup problem that's not consequential.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
--> pgspecial is still jacked on python 3.10, but that's not my fault.
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

nixpkgs-review reveals no new failures, macos 10.15 & nixos x86_64
@ofborg build python39Packages.shapely python310Packages.shapely


Next 14 + TypeScript 5 setup issue

While setting up keep react with NextJS And TypeScript.
It gave this error:

@codeblitz97 You don't need to import it. Please use this line of code presets: [require("keep-react/preset")].


Add property-based tests

Hapistrano seems like a very good candidate for adding property-based tests. I don't think this is required, just nice to have and worth the effort.

I thinking it may be a good task for Haskell beginners to learn QuickCheck, and we could review it then.

I haven't used QuickCheck. I would like to work on this, I'll submit a PR as soon as possible.

I think that property-based tests would be good. However, the code is likely to change quite a bit when we transition to something like Shake. Would it make sense to wait until that is done before improving the test coverage?

@jsl Yes, perhaps wait until #28 is closed? (cc @flandrade)

 Add property-based tests

I will be working on this.

Added three property tests with PR #128

Thanks @cptrodolfox I'll be closing this issue since you already helped us with those tests. :bow:


add unicode symbol escape

add "unicode char is \u54f2 \U7f453d4c" syntax for inserting unicode character

done


💡Enable Site Collection App Catalogs on a specific sites using CSV

Enable this for a list of sites
Indicate there is a dependency that the user must have access to the app catalog to apply

Can I work on this?

Thank you 😊

Hi @pkbullock
We already have similar script sample - Add App Catalog to SharePoint site
Should I update this script sample to use CSV input or write a new script sample altogether?
Please suggest.


README should specify all constraints passed to activate should be unactivated

The framework expects all constraints passed to "activate" to be unactivated. The README should point this out, as many autolayout DSLs by default will activate constraints.

I should also consider adding an assert or a log when people pass in activated constraints explaining it's a bad idea.

I think i should change the quickstart VC to be simple but display the declarative layout better. Maybe rename it from quickstart VC. Really the registration examples are the best place to see how to use the framework.

should add links to section of readme at top

I should also consider adding an assert or a log when people pass in activated constraints explaining it's a bad idea.

I'm not going to do this since I can't rely on #if DEBUG directives, and it would probably affect performance to check that property on every constraint passed in.

done


Allow customizing ClientHttpRequestFactory including using insecure trust manager

Hello.
I use MVC Gateway version.
I try to route to HTTPS resource, but get exception:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target`

With debug on error from javax.net.ssl is this one:

I want to skip this certificate validation, so I use in application.properties:
spring.cloud.gateway.mvc.http-client.ssl.use-insecure-trust-manager=true
but no reaction from Gateway on this instruction.
Configuration of the route is:
route("myRoute")
          .route(path("/my-partner/**"), https(URI.create("https://test-site/")))
          .build();`

Is this instruction implemented, o I'm missing something?
If it is not implemented yet, can anyone suggest a workaround?
Thank you.

This is not implemented yet. The Gateway WebFlux Server, where you found that setting, uses reactor-netty as the only http client. The WebMVC version uses ssl bundles. I wonder if we can do it with ssl-bundles spring.cloud.gateway.mvc.http-client.ssl-bundle=<mybundle>

Looks like that function is to be added in spring boot https://github.com/spring-projects/spring-boot/issues/38920

This is not implemented yet. The Gateway WebFlux Server, where you found that setting, uses reactor-netty as the only http client. The WebMVC version uses ssl bundles. I wonder if we can do it with ssl-bundles spring.cloud.gateway.mvc.http-client.ssl-bundle=<mybundle>

Yes, I've tried with SSL bundle and it worked for me.


Missing parent: GO:0014028 notochord formation

GO term ID and label for which you request a new superclass
GO:0014028 notochord formation

New superclass (parent) suggested
GO:0048645 animal organ formation

The above two are siblings under the parent: GO:0048646 anatomical structure formation involved in morphogenesis

Reference(s), if appropriate
The following is-a relations already exists in GO.
GO:0030903 notochord development
is_a
GO:0048513 animal organ development

Notochord is an organ. see PMID:15890825 Structure and function of the notochord: an essential organ for chordate development. If we add this IS_A relationship in Uberon, we may get the desired classification automatically.


Suggestion: why not use pm2 to serve darkwire.io server?

Hi thank you for your awesome work and sharing it with the world!
I have a suggestion.
As we all know that in production it is better to run your node
server with pm2 why don't we use it with darkwire.io ?
Here is a link as example where I've added yarn start:prod script
for darkwire.io-server-ts
We can use it as a reference to make some changes
Cheers
Paul

Hi,
Yes, why not, feel free to contribute if you have time.
Thanks for your support !


Include User ObjectID (not idirGuid) in the NATS message sent to Public Cloud for Azure Products

Description:
Include User ObjectID (NOT idirGuid) (that we get from Azure while looking for IDIR contact) in the NATS message sent to Public Cloud for Azure Products

Now Registry sends 'providerUserId' for every user for all cloud providers inside NATS message to Provisioner for Public Cloud products:


Core-http mistaken xml response as json response when there is no 'content-type' header

Package Name: core-http
Package Version: 1.2.3
Operating system: N/A
[x] nodejs

version: 12.16.3

[ ] browser

name/version:

[ ] typescript

version:

Describe the bug
When a response doesn't have the 'content-type' header, core-http by default parse it as an JSON object. However, this may be incorrect. If I have a premium GPV2 storage account and I call this API,
https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
The response will be xml without a 'content-type' header.
To Reproduce
Steps to reproduce the behavior:

Create a premium GPV2 storage account
Call the Get blob service properties API using @azure/storage-blob module, which internally uses core-http.
Debug inside and catch the exception.

Expected behavior
Ideally it simply works and returns something matching the SDK interface.

Additional context
I think since there are just two available options here and text parsing isn't too expensive, having some kind of auto content type detection would be nice if no 'content-type' is given.

@ljian3377 @EmmaZhu could you please help check with service team on why content-type is not set for premium GPV2 storage account? Is it a bug in the service?

Hi @JasonYeMSFT, @jeremymeng
Just checked with our FE team. This is a known issue in storage service, I'll open a bug to FE team to follow-up it.

Closing since this is a service bug and we will not add special handling in core.


Added 'm_cacheId' getter to sf::Texture

Description
This member function would be very useful for checking whether a sf::Texture has been swapped/created between calls to a class that contains it.  An example would be custom font or text classes that operate on some format not supported directly by the SFML API, e.g., SVG files or some custom raster font.  My use case was a font class that loaded individual PNG files from an existing application (Super Mario 64 port) and built a dynamically sized texture from them, mapping their texture rects to characters. These could then be rendered to the screen via a custom text class with a vertex buffer, minimizing draw calls. I need a way to check whether the texture has been resized between calls the the custom text object, which may not be accessed every frame. I don't need direct access to an internal variable like m_cacheId; that would be stupid, but I don't see a reason to preclude someone from utilizing its value, and the additional code is pretty minuscule.  I've searched for this topic online and found one example of someone bringing it up, but it didn't seem like they made a very good case for it, and I believe they even suggested making the variable public, which again, like I said, is pretty silly.

I spoke with some other SFML maintainers and this is not something we'd like to do because it exposes implementation details that we would rather users not be able to access. A change like this hinders our ability to make implementation changes in the future.


Error in kbfs.service

https://github.com/keybase/kbfs/blob/b9e9cf8e4dce274e0a55eb8043946cb3a5e3f6e0/packaging/linux/systemd/kbfs.service#L12
This line in the service file is apparently badly formatted. The kbfs is correctly started even if the ExecStartPre fails, due to the =-.
 ~$ systemctl --user status kbfs.service
● kbfs.service - Keybase Filesystem service
   Loaded: loaded (/usr/lib/systemd/user/kbfs.service; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-06-10 14:48:18 CEST; 20s ago
  Process: 1524 ExecStartPre=/bin/sh -c fusermount -uz "$(keybase config get mountdir|sed s/\"//g)" (code=exited, status=1/FAILURE)
 Main PID: 1540 (kbfsfuse)
   CGroup<EMAIL_ADDRESS>           └─1540 /usr/bin/kbfsfuse -debug -log-to-file

Running that command in bash I get:
 ~$ /bin/sh -c 'fusermount -uz "$(keybase config get mountdir|sed s/\x5c"//g)"'
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")

Thanks!  cc: @oconnor663, my systemd-fu isn't strong enough.

The issue here is that systemd's escaping is different from Bash's. If you replace \x5c with \, you'll find that it works in Bash but causes errors in systemd :(

$ systemd-escape -u $'/bin/sh -c \'fusermount -uz \"$(keybase config get mountdir|sed s/\\x5c\"//g)\"\''
/bin/sh /c 'fusermount /uz "$(keybase config get mountdir|sed s/\"//g)"'

Or in python:
>>> from subprocess import run
>>> run(['systemd-escape', '-u', r"""/bin/sh -c 'fusermount -uz "$(keybase config get mountdir|sed s/\x5c"//g)"'"""])
/bin/sh /c 'fusermount /uz "$(keybase config get mountdir|sed s/\"//g)"'

Just in case all this quoting was driving you nuts and you wanted to throw more quotes at something to decode everything.


re-add Directus SDK

Overview
This pull request re-adds the directus CMS types generator.
Type of change

[ ] Bug fix (non-breaking change; fixes an issue).
[ ] New feature (non-breaking change; adds functionality).
[x] Breaking change (fix or feature that breaks existing functionality).
[ ] This change requires a documentation update.
[ ] Operational change.
[ ] Test Coverage.

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 on my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

Dependencies
No new dependencies were added.

We are closing this pull request cause we don't have plans to re-add Directus SDK generation for now.


Make bower respect HTTP_PROXY/HTTPS_PROXY

Hello,
Why does Bower not respect the HTTP_PROXY/HTTPS_PROXY environment variables? It seems senseless that I have to re-define them in a special place just for bower.
Surely if the proxy keys are not defined anywhere in the configuration chain (~/.bowerrc, or .bowerrc) then the environment variables should be used? This allows project overrides if you so need.

it should respect them

Nope, it's never respected them as long as I've used it. I can't find any reference to the environment variables in any of the code either. npm doesn't either, but at least that has npm config set proxy you can run.

here it is: https://github.com/bower/config/blob/master/lib/util/defaults.js


Feature/list all buckets

to allow everyone to list all buckets we use admin request and NPA account
now by default listing buckets is allowed and creating is disallowed

Codecov Report

Merging #11 into master will increase coverage by 0.16%.
The diff coverage is 95%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
+ Coverage      92%   92.17%   +0.16%
==========================================
  Files          24       25       +1
  Lines         438      447       +9
  Branches       44       46       +2
==========================================
+ Hits          403      412       +9
  Misses         35       35

Impacted Files
Coverage Δ

...la/com/ing/wbaa/airlock/proxy/AirlockS3Proxy.scala
100% <ø> (ø)
:arrow_up:

...ock/proxy/api/ProxyServiceWithListAllBuckets.scala
100% <100%> (ø)

...ck/proxy/handler/radosgw/RadosGatewayHandler.scala
94.11% <100%> (+0.17%)
:arrow_up:

.../com/ing/wbaa/airlock/proxy/api/ProxyService.scala
95.23% <92.3%> (+0.5%)
:arrow_up:

Continue to review full report at Codecov.

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


How to identify if it is a real person or a picture in front of webcam.

Is there's a way on how to identify who's in front of the webcam a real person or picture?

@justadudewhohacks I need your help please.

@esmeromichael @justadudewhohacks I'm interested too!
Will be realy interesting to distinguish a person or photograph.

+1 🙋♂


[MSVC][dashing] Avoid build break for Visual Studio 2019 v16.3

From Visual Studio 2019 v16.3, the usage of the deprecated <experimental/filesystem> is escalated to be a compiler error like below:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include\experimental/filesystem(26,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning.

There are two ways to do about it:

Since <filesystem> is supported in Visual Studio 2017 v15.7, we can switch to use if __has_include(<filesystem>) && __cplusplus >= 201703L case, however, <filesystem> is considered a C++17 feature, so the whole project needs to target CMAKE_CXX_STANDARD 17 in order to make MSVC enable that, but which seems not to be the target platform for ROS2 Dashing. Hence, I didn't go with that route.

Define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that for now so it won't break the build. This one looks more conservative but it accommodates the current C++14 configuration.

cc @nuclearsandwich

This fixes https://github.com/ms-iot/ROSOnWindows/issues/155

I've opened #166 to make sure that this change gets to ROS 2 mainline development for Eloquent as well. There's some noise in this PR as I first tried reparenting it directly but that didn't work.

Linux
Linux-aarch64
macOS
Windows

The Eloquent failure is an artifact from when I tried to reparent this PR. #166 takes care of Eloquent and that is not expected to pass here.


Miller Column View

I actually just found this project in a reddit post where miller column view was mentioned. I'm on a brand new linux install and I'm looking for a modern, performant, file manager, ideally with miller column view. I'm going to install this for now, and look into working on adding the feature myself, but wanted to open this as a place for other people to chime in. It seemed there was a handful of folks interested in this feature on the reddit post.

In fact, some people were interested in miller columns, but I haven't added this view yet because it is one of the less popular ones. I will dig into it when I have some free time and try to implement the view.

@the-arkhive
I just finished the first version for the miller columns and the packages are being build right now.
You can test the new release, but keep in mind that this is a very very very early pre-release but I think you can test it enough to know, if that is what you wanted.
I will continue the development on miller columns and for example try to make drag n drop working across panels

Implemented drag and drop onto folders for any view.
Closing with #60


automatic conversion x->int with 2^31<=x<2^32 doesn't work

$ bsh
BeanShell 2.0b1.1 - by Pat Niemeyer<EMAIL_ADDRESS>bsh % int i = 0xff000000;
// Error: Parser Error: Parse error at line 1, column 9 : Error or number too big for integer type: 0xff000000
bsh %
In Java this works (assigned int value is -16777216 in this case). Any yes, this is a feature, and it is used in real-world programs (image manipulation for example). Since Beanshell aims for 100% Java compatibility, it is a bug that this doesn't work in Beanshell, right?
Reported by: oklischat
Original Ticket: "beanshell/bugs/317":https://sourceforge.net/p/beanshell/bugs/317

This should be strictJava, we are still in the process of testing all the strict java rules. Maybe for BeanShell 4.0???
bsh % int i = 0xff000000;
// Error: Internal Error: cannot assign number<PHONE_NUMBER> to type int
bsh % this.interpreter.strictJava = true;
--> void
bsh % int i = 0xff000000;
--> $0 = -16777216I :int
bsh % this.interpreter.strictJava = false;
--> void
bsh % val = 0xff000000;
--> $1 =<PHONE_NUMBER>L :long

I wouldn't call it a feature, it's just what happens when the data size overflows it starts populating from the bottom again. You cannot know exactly what the value is and why java doesn't allow assigning down with an error like:
jshell> long ll = 3;
ll ==> 3
jshell> int ii = ll;
|  Error:
|  incompatible types: possible lossy conversion from long to int

To see the problem lets multiply Integer.MAX_VALUE to see what happens.
jshell> Integer.MAX_VALUE * 2
$346 ==> -2
jshell> Integer.MAX_VALUE * 3;
$347 ==><PHONE_NUMBER>
jshell> Integer.MAX_VALUE * 4;
$348 ==> -4
jshell> Integer.MAX_VALUE * 5;
$349 ==><PHONE_NUMBER>
jshell> Integer.MAX_VALUE * 6;
$350 ==> -6

As you can see it is not consistent and there is no way to tell what the actual value is.
Beanshell will automatically safely cast down for you within the type's available size;
bsh % long ll = 3;
--> $8 = 3L :long
bsh % int ii = ll;
--> $9 = 3I :int

And will also grow automatically once available size has been reached. Lets look at what those actual values were supposed to be.
bsh % Integer.MAX_VALUE *2;
--> $0 =<PHONE_NUMBER>L :long
bsh % Integer.MAX_VALUE *3;
--> $1 =<PHONE_NUMBER>L :long
bsh % Integer.MAX_VALUE *4;
--> $2 =<PHONE_NUMBER>L :long
bsh % Integer.MAX_VALUE *5;
--> $3 =<PHONE_NUMBER>5L :long
bsh % Integer.MAX_VALUE *6;
--> $4 =<PHONE_NUMBER>2L :long

Lets see what happens if we use the pow operator, something not implemented in java but available in BeanShell.
bsh % Integer.MAX_VALUE **2;
--> $0 =<PHONE_NUMBER>132420608L :long
bsh % Integer.MAX_VALUE **3;
--> $1 =<PHONE_NUMBER>447984150353281023W :BigInteger
bsh % Integer.MAX_VALUE **4;
--> $2 =<PHONE_NUMBER>2944572736998860269687930881W :BigInteger

Or if we take it from Byte.MAX_VALUE for a slower increment.
bsh % Byte.MAX_VALUE **2;
--> $0 = 16129I :int
bsh % Byte.MAX_VALUE **3;
--> $1 = 2048383I :int
bsh % Byte.MAX_VALUE **4;
--> $2 = 260144641I :int
bsh % Byte.MAX_VALUE **5;
--> $3 =<PHONE_NUMBER>7L :long
bsh % Byte.MAX_VALUE **6;
--> $4 =<PHONE_NUMBER>689L :long
bsh % Byte.MAX_VALUE **7;
--> $5 =<PHONE_NUMBER>65503L :long
bsh % Byte.MAX_VALUE **8;
--> $6 =<PHONE_NUMBER>1018880L :long
bsh % Byte.MAX_VALUE **9;
--> $7 =<PHONE_NUMBER>609397760L :long
bsh % Byte.MAX_VALUE **10;
--> $8 =<PHONE_NUMBER>073393531649W :BigInteger
bsh % Byte.MAX_VALUE **11;
--> $9 =<PHONE_NUMBER>40320978519423W :BigInteger

The idea is not to loose any data which cannot be guaranteed with the standard java implementation. BigInteger and BigDecimal have been granted full citizenship and can be treated the same as any primitive or wrapper type.


qa_crowbarsetup: Drop code specific to milestones in Cloud 6

Milestones are now tracking Cloud 7.
Note: it might conflict with https://github.com/SUSE-Cloud/automation/pull/1008, so better to get that other PR merged first.

needs rebase

needs rebase

done

+1 code looks good.


[IPAM] reserve first N IPs on Networks

Description
This PR adds a feature to reserve the first N IPs on a Network CIDR.
This is useful, for example, to reserve the UnknownSourceIP (the first IP of a CIDR), which is used by some controllers to handle external CIDR traffic.

/build

/build


no sort event thrown when using virtual list

Framework7 version: seen on 4.1.0, 4.2.0 and 4.5.2
Vue.js version: 2.6.10
Platform and Target: electron, ios theme
Live Link or JSFiddle: https://jsfiddle.net/4h7nfp5m/ (ADDED TO THE DEFAULT ROUTE 404)
when creating a sortable virtual list the event for on sort does not fire
To Reproduce
Steps to reproduce the behavior:

create a sortable virtual list
bind some action to the @sortable:sort event
Sort the list
no event fires

Expected behavior
I would expect the event sortable:sort event to fire
Actual Behavior
the event does not fire
Screenshots
see Jfiddle
Additional context
this featured worked before moving from V1 to V4

Because it should be used correctly, and VL is intended to render data dynamically, not with existing list items. Here is the example https://github.com/framework7io/framework7/blob/master/kitchen-sink/vue/src/pages/virtual-list.vue
Also, on VL, :sortable-move-items="false" should be set

I took the example that you linked to and replaced the list in my previous JSFiddle with it.
I made it sortable and again it seems like the onSort event doesn't fire.
Please see https://jsfiddle.net/owgp2b7e/5/ I as with previous example I placed the list in the Default 404 page
Any help would be really appreciated


🔄 Synced file(s) with jhudsl/DaSL_Course_Template_Bookdown

Synced local file(s) with jhudsl/DaSL_Course_Template_Bookdown.

Changed files

Synced local  .github/workflows/render-bookdown.yml with remote  .github/workflows/render-bookdown.ymlSynced local directory .github/ISSUE_TEMPLATE/ with remote directory .github/ISSUE_TEMPLATE/Synced local directory scripts/ with remote directory scripts/Synced local  code_of_conduct.md with remote  code_of_conduct.md

This PR was created automatically by the repo-file-sync-action workflow run #1417570096

Please carefully review these changes and decide which are useful for your course.
See the release notes: https://github.com/jhudsl/DaSL_Course_Template_Bookdown/releases

If you don't want the changes from a particular file, you can always revert that particular commit before merging the sync PR.
If you will not want any updates on this file in the future, you may want to remove a file from being synced in your repo by reconfiguring the sync file.

If you want only some changes, but they are not on a whole file basis, you could check out the branch and make manual edits. To checkout the branch, navigate to your own repository you should be able to run:

git checkout repo-sync/DaSL_Course_Template_Bookdown/default

If you don't want any of the changes you can close the PR entirely.

You may want to unenroll your repository from the sync GitHub actions by filing a PR on DaSL_Course_Template_Bookdown
to delete your repo name from this file if this will continue to be the case.


Replacing ! with not.py because it hides lit errors and breaks on Win32.

use not.py not !
! both breaks on Win32 and hides that this test didn't have a single check line even though it pipes into FileCheck.

@swift-ci please test and merge

…oh right, we went through this already.