Slot and spinner not working when using<EMAIL_ADDRESS>

Hi,
I'm using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and instead of getting the spinner while loading the content, im getting a text "undefined". Everything else works fine. What could be the culprit ?
Thanks.

Could you paste your code of template here?

The :spinner is a shorthand of the v-bind:spinner, so you can replace your spinner setting with the following ways:

Use a normal attribute:

<infinite-loading :on-infinite="onInfinite" spinner="spiral" ref="infiniteLoading"></infinite-loading>

Use a string:

<infinite-loading :on-infinite="onInfinite" :spinner="'spiral'" ref="infiniteLoading"></infinite-loading>

Use a variable:

<infinite-loading :on-infinite="onInfinite" :spinner="spinnerType" ref="infiniteLoading"></infinite-loading>
<!-- You must set the spinnerType in your script code -->

To this day, I received three issue about the same problem, but I didn't found the reason because of it still running well when I using<EMAIL_ADDRESS>in my computer.
So I think it's a special and important problem in some special environment, I need your help to find the real reason @altinselimi @dinho-afsn @icyfire. First of all, I think we should to repeat the problem in JsFiddle, what do you think?

here my site http://afsn.tk/takao/
in vue tools spinner is set
view return in vuetools
distance: 100 prop
isComplete: false
isFirstLoad: false
isLoading: false
onInfinite: Function prop
scrollHandler: Function
scrollParent: Window
spinner: "spiral" prop
spinnerType: "loading-spiral" computed
See that in vuetools it appears computed as spiral

@dinho-afsn Thanks, I found the problem in your site.
Which build tool did you used? And does this problem only appear in<EMAIL_ADDRESS>

const elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
elixir.config.assetsPath = 'assets/';
elixir(mix => {
//mix.browserify('app.js');
mix.webpack('app.js');
mix.sass('app.scss');
mix.scripts([
    './node_modules/jquery/dist/jquery.js',
    './node_modules/bootstrap/dist/js/bootstrap.js',
    './node_modules/owl.carousel/dist/owl.carousel.min.js',
    //'./node_modules/vue-infinite-loading/dist/vue-infinite-loading.js',
], './public/js/vendor.js');

mix.styles([
    './node_modules/bootstrap/dist/css/bootstrap.min.css',
    './node_modules/owl.carousel/dist/assets/owl.carousel.min.css',
    './node_modules/owl.carousel/dist/assets/owl.theme.default.css',
    './node_modules/font-awesome/css/font-awesome.css'
], './public/css/vendor.css');

// mix.copy('node_modules/font-awesome/fonts', './assets/fonts');
/*
 mix.browserSync({
 proxy: 'localhost:8000'
 })
 */

});

Okay, but I have never used elixir, I need to try it base on your configurations.

I'm having the same issue, laravel project too, but i'm using webpack directly:
'use strict';

const path = require('path');
var webpack = require('webpack');

module.exports = {
	entry: './resources/assets/js/app',
	resolve: {
		alias: {
			root: path.join(__dirname, 'node_modules'),
			'vue$': 'vue/dist/vue.js',
		}
	},
	output: {
		path: path.resolve(__dirname, './public/js'),
		publicPath: '/js/',
		filename: 'all.js'
	},
	module: {
		rules: [
			{
				test: /\.vue$/,
				loader: 'vue-loader',
				options: {
					loaders: {
						scss: 'style!css!sass'
					}
					// other vue-loader options go here
				}
			},
			{
				test: /\.js$/,
				loader: 'babel-loader',
				exclude: /node_modules/
			},
			{
				test: /\.(png|jpg|gif|svg|mp3)$/,
				loader: 'url-loader',
				query: {
					limit: 10000,
					name: '[name].[ext]?[hash]'
				}
			}
		],
	},
	plugins: [
		new webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(en|es)$/),
		new webpack.ProvidePlugin({
			$: "jquery",
			jQuery: "jquery"
		})
	],
	devtool: '#eval-source-map',
}

if (process.env.NODE_ENV === 'production') {
	module.exports.devtool = '#cheap-source-map'
	// http://vue-loader.vuejs.org/en/workflow/production.html
	module.exports.plugins = (module.exports.plugins || []).concat([
		new webpack.DefinePlugin({
			'process.env': {
				NODE_ENV: '"production"'
			}
		}),

		new webpack.optimize.UglifyJsPlugin({
			compress: {
				warnings: false
			}
		}),

		new webpack.optimize.OccurrenceOrderPlugin()
	])
}

I use the  Webpack + vue-loader.

为什么没有下拉刷新

Which vue-loader version do you use? @dinho-afsn @killgt @icyfire

I tried to match your package.json, but it always returns undefined.
"babel-core": "^6.7.7",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.7.5",
"babel-preset-es2015": "^6.6.0",
"babel-runtime": "^6.0.0",
"chai": "^3.5.0",
"css-loader": "^0.23.1",
"eslint": "^3.3.1",
"eslint-config-airbnb-base": "^5.0.2",
"eslint-loader": "^1.3.0",
"eslint-plugin-html": "^1.4.0",
"eslint-plugin-import": "^1.6.1",
"file-loader": "^0.9.0",
"html-webpack-plugin": "^2.16.0",
"isparta-loader": "^2.0.0",
"karma": "^1.2.0",
"karma-chai": "^0.1.0",
"karma-coverage": "^1.0.0",
"karma-mocha": "^1.0.1",
"karma-phantomjs-launcher": "^1.0.0",
"karma-spec-reporter": "0.0.26",
"karma-webpack": "^1.7.0",
"less": "^2.6.1",
"less-loader": "^2.2.3",
"mocha": "^3.0.2",
"phantomjs-prebuilt": "^2.1.7",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"vue": "^2.0.0-rc.6",
"vue-hot-reload-api": "^1.3.3",
"vue-html-loader": "^1.2.2",
"vue-loader": "^9.4.2",
"vue-style-loader": "^1.0.0",
"webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1"

Now delete the folder node_modules, I will remove everything and try again from 0
I will include the version next, and some packages of your package and post it results already already

It's very weird, did you try to clone this repository and run it? @dinho-afsn

Yes, I did it and it works. They are certainly package dependencies.
But I use it in hybrid application, so it would be interesting to run it, not only in the bundle running as dev.
But today I'm going to spend all day here to find the error.

What I noticed is that in the next package, you do not use vue-infinite-loading in your package.json, why?

Will not be some problem in the npm repository version?

I have never install vue-infinite-loading through package.json in master and next branch, I import it from dist directory with webpack because I need to debug it

My lock file if it helps:
https://gist.github.com/killgt/83ac60af6e3d898caa9c83a8b231a8bb

I'll do the same here to test it.

我的vue-loader是10.0.2版本。我直接用你的源码作为component引入的话是正常的。

Did you use the webpack@2? @dinho-afsn @altinselimi @icyfire

No, the webpack version i use is 1.14.0. @PeachScript

Thanks, I try to repeat this problem now, please tell us if you have any progress about this issue :P @icyfire

I found the real reason just now, it be cause by the breaking changes in the v2.1.7 of Vue.js, I missed the release notes ago, I will release a new version to fix it, please wait a moment.
Thanks you all! @altinselimi @dinho-afsn @icyfire

I have been release a new version v2.0.0-rc.5 to fix this problem, please upgrade it with npm and try again, please tell me if it still has problem :P

I will close this issue, you can reopen it if this problem still exist.


Map_blocks error: zip argument #2 must support iteration

Discussed in https://github.com/pydata/xarray/discussions/6762

Originally posted by tlsw231 July  7, 2022
I am trying to use map_blocks to: ingest a multi-dimensional array as input, reduce along one dimension and add extra dimensions to the output. Is this possible? I am attaching a simple MRE below that gives me an zip argument #2 must support iteration error. Any pointers on what I might be doing wrong?
[My real example is a 3d-dataset with (time,lat,lon) dimensions and I am trying to reduce along time while adding two new dimensions to the output. I tried so many things and got so many errors, including the one in the title, that I thought it is better to first understand how map_blocks works!]
# The goal is to feed in a 2d array, reduce along one dimension and add two new dimensions to the output.

chunks={}
dummy = xr.DataArray(data=np.random.random([8,100]),dims=['dim1','dim2']).chunk(chunks)

def some_func(func):

    dims=func.dims

    n1 = len(func[func.dims[1]])  # This is 'dim2', we will average along 'dim1' below in the for loop

    newdim1 = 2; newdim2 = 5;

    output = xr.DataArray(np.nan*np.ones([n1,newdim1,newdim2]),dims=[dims[1],'new1','new2'])

    for n in range(n1):
        fmean = func.isel(dim2=n).mean(dims[0]).compute()
        for i in range(newdim1):
            for j in range(newdim2):
                output[n,i,j] = fmean

    return output

#out = some_func(dummy)  # This works

template=xr.DataArray(np.nan*np.ones([len(dummy.dim2),2,5]),
                      dims=['dim2','new1','new2'])
out = xr.map_blocks(some_func,dummy,template=template).compute()  # gives me the error message in the title

[Edit: Fixed a typo in the n1 = len(func[func.dims[1]]) line, of course getting the same error.]

template.chunks is None. It needs to have the expected output chunking.
A PR raising a nice error message here when if not template.chunksizes: would be very welcome
We can also delete the if clause here:https://github.com/pydata/xarray/blob/ce40b9391a996b8218e1c7b1e83905b8dd4bc1fd/xarray/core/parallel.py#L383-L388
and use the new chunksizes property: output_chunks = template.chunksizes

It has to look exactly like the output dataset prior to computing (just constructed with dummy values)


component helper w/ class constructor returns nullable value

In a component I yield another (private) component with the component helper, like this:
{{yield (hash field=(component this.FieldComponent data=this.internalData))}}

this.FieldComponent is the class (constructor) of the other yielded component. It should only be used in the yielded form, and will not be exposed in the app re-exports, that's why I don't pass a string (like in (component "path/to/field")).
The signature for the component is (simplified):
{
  Args: {...};
  Blocks: {
    default: [
      {
        field: WithBoundArgs<typeof FieldComponent, 'data'>;
      }
    ];
  };

Now Glint complains about this:

It seems to me the issue is that it thinks that the return value of the component helper could be null (which is not the case!), while the block params in the signature don't allow this obviously.
Having had a quick look at the type definitions for the component helper, and with my non-hardcore-expert-level TS skills, I still interpret this definition in such a way, that passing a valid component constructor (which I do) could still return null or undefined. Which is not true, right? Wouldn't it be more correct to say that when the component argument is a valid constructor, then the return value is a PartiallyAppliedComponent, otherwise in case of null or undefined being passed in returns just that?

Although the definition here seems right. Is that supposed to get picked up by TS instead of the other? But even then, why is it thinking it can be null? 🤔

Wouldn't it be more correct to say that when the component argument is a valid constructor, then the return value is a PartiallyAppliedComponent, otherwise in case of null or undefined being passed in returns just that?

That's exactly what the signature above the one you linked does 🙂
I think the type tests for {{component}} would probably have caught this if it were a general all-the-time problem (see e.g. these assertions), so I wonder if there's something different about your types 🤔
Just to confirm, this.FieldComponent isn't nullable, is it?

Just to confirm, this.FieldComponent isn't nullable, is it?

No, it isn't:

I think the type tests for {{component}} would probably have caught this if it were a general all-the-time problem (see e.g. these assertions), so I wonder if there's something different about your types 🤔

Yeah, makes sense! 🤔
What I am working on is open source, I can push my work and send you a link later, if that helps!

@dfreeman I have now pushed my work in progress here, if you want to take a look: https://github.com/CrowdStrike/ember-headless-form/pull/14
I silenced the Glint error mentioned above here. The component constructor is assigned here, without being able to be null.

@simonihmig I just pulled main in that repo (since it looks like your PR was merged) and as far as I can tell everything is typechecking as expected now—did you figure out what was happening?

Sorry, I should have provided a more stable reproduction, than just pointing to a PR...
Things there have changed quite a bit since raising this issue, so the Glint error reported here IIRC did go away when introducing ensure-safe-component (which had its own issue #518) and the type juggling added to workaround that issue.
I just tried to create a stable reproduction based on the earlier commits. Although I was able to reproduce again, I saw that there was a flaw in how I handled my own generic types. And I was able to fix that error by a simple type cast. So it seems you are right that this wasn't a "general all-the-time problem". Still not understanding really where the null type came from that was reported in the error message...
I could push my current reproduction (without that type fix), but at this point I guess we don't want to waste more time on this? Therefore closing this issue. Sorry for taking your time here!

Sorry for taking your time here!

No problem at all! Sorry it took me so long to take a look at this that everything had shifted around in the meantime 😄

I could push my current reproduction (without that type fix), but at this point I guess we don't want to waste more time on this?

If you're satisfied with how you've got things working currently, then I'm happy to leave this closed. But if you do run into the issue again elsewhere (or, for anyone else who comes along and finds this issue: if you run into it), I'm happy to reopen this and dive deeper.


Connect to h2o flow

Hi Niels - my students and I are using your image again this year.  Can I ask - whilst it is easy to open a notebook in the browser, on the other hand I cannot seem to connect to h2o-flow.
When I start h2o - it would be nice to demonstrate h2o-flow from the browser.  This opens as stardard on port 54321.  However even though I expose port 54321 on the container - I cannot connect in a browser.  Did you even try this?

Hello Alan,
Thanks again for using this docker image (which needs a bit of updating ...)!
I hadn't really tested this case and indeed even exposing the port 54321 doesn't work.
It's always constraining when launching several services inside a container with internal/external network configurations.
I found a solution for your problem, you can use the configuration --network=host to link the network inside the container with your local network!
I tried it and it works, by going to http://localhost:54321 I have access to the h2o flow.
Here is the command  :
docker run --name ML-env --network=host -d -v ~/:/home/jovyan/work/ -e NB_UID=1000 --user root nielsborie/ml-docker start-notebook.sh --NotebookApp.password="sha1:b6dba7097c97:7bded30fcbd5089adb3b63496d5e68921e102a5f"
By the way, the jupyter notebook will be accessible at port 8888 in this configuration...
I hope it helped you and your students!
See you soon

Hi
Thanks for the quick response!
I spent almost all day yesterday.  The only thing I finally managed was to manually go into the container (sudo docker exec …. /bin/bash), manually navigate down to where h2o.jar is and start the jar.  If I do that - then for some reason it worked and I could get into flow.  Your way sounds about one million times better and I will try that immediately!
Yes the image does need a little bit of updating - I do not dare myself because I seem to break something every time I try.  In particular it is so easy for various boosting packages and vowpal wabbit to have conflicting requirements for numpy version or whatever…..  I am half tempted to update h2o - because I am sure they have a lot more in it now - and the version on this image is a year out of date…
Anyway thanks again - it is good to chat once a year :-)
I hope you are otherwise keeping healthy and safe in these crazy times…
Regards
Alan

On 27 May 2020, at 09:53, Niels Borie<EMAIL_ADDRESS>wrote:
Hello Alan,
Thanks again for using this docker image (which needs a bit of updating ...)!
I hadn't really tested this case and indeed even exposing the port 54321 doesn't work.
It's always constraining when launching several services inside a container with internal/external network configurations.
I found a solution for your problem, you can use the configuration --network=host to link the network inside the container with your local network!
I tried it and it works, by going to http://localhost:54321 http://localhost:54321/ I have access to the h2o flow.
Here is the command :
docker run --name ML-env --network=host -d -v ~/:/home/jovyan/work/ -e NB_UID=1000 --user root nielsborie/ml-docker start-notebook.sh --NotebookApp.password="sha1:b6dba7097c97:7bded30fcbd5089adb3b63496d5e68921e102a5f"
By the way, the jupyter notebook will be accessible at port 8888 in this configuration...
I hope it helped you and your students!
See you soon
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/nielsborie/ml-docker/issues/6#issuecomment-634523568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ7P336NIOCGIVWNV36WGTRTTIH7ANCNFSM4NKSE7SQ.

Hi again,
By the way, I managed to my students onto google VMs - onto which they load dropbox and docker and your image.
Which means each student has an identical environment - compared to when I started a few years ago when they were working on their laptops in their own Python environments - this is light years ahead :-)
Best regards
Alan

On 27 May 2020, at 09:53, Niels Borie<EMAIL_ADDRESS>wrote:
Hello Alan,
Thanks again for using this docker image (which needs a bit of updating ...)!
I hadn't really tested this case and indeed even exposing the port 54321 doesn't work.
It's always constraining when launching several services inside a container with internal/external network configurations.
I found a solution for your problem, you can use the configuration --network=host to link the network inside the container with your local network!
I tried it and it works, by going to http://localhost:54321 http://localhost:54321/ I have access to the h2o flow.
Here is the command :
docker run --name ML-env --network=host -d -v ~/:/home/jovyan/work/ -e NB_UID=1000 --user root nielsborie/ml-docker start-notebook.sh --NotebookApp.password="sha1:b6dba7097c97:7bded30fcbd5089adb3b63496d5e68921e102a5f"
By the way, the jupyter notebook will be accessible at port 8888 in this configuration...
I hope it helped you and your students!
See you soon
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/nielsborie/ml-docker/issues/6#issuecomment-634523568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ7P336NIOCGIVWNV36WGTRTTIH7ANCNFSM4NKSE7SQ.

Hi Alan,

By the way, I managed to my students onto google VMs - onto which they load dropbox and docker and your image.

Very glad to hear that! It's always nice to know that what you've created can be useful for other people :)
What do you teach? And to whom? (if not indiscreet)?

Yes the image does need a little bit of updating

Yes it's clear that it's time to clean up this image, I'm going to take care of updating all this!
I also had some version problems this winter, especially with TensorFlow.
I'll take care of that shortly, stay tuned!
Best regards,
Niels

By the way, one of the students suggested
-e NB_UID=$(id -u)
Which then works for any uid. :-)
Not indiscreet at all.  Mainly I work for an insurance company - trying to do some data science for them…..
But once a year I teach a Machine Learning elective to post grads at a Uni in London.  It is a basic course - but still keeps me on my toes. :-)
What do you do?
Look forward to an updated version if you manage to find the time :-)
Regards
Alan

On 27 May 2020, at 14:34, Niels Borie<EMAIL_ADDRESS>wrote:
Hi Alan,
By the way, I managed to my students onto google VMs - onto which they load dropbox and docker and your image.
Very glad to hear that! It's always nice to know that what you've created can be useful for other people :)
What do you teach? And to whom? (if not indiscreet)?
Yes the image does need a little bit of updating
Yes it's clear that it's time to clean up this image, I'm going to take care of updating all this!
I also had some version problems this winter, especially with TensorFlow.
I'll take care of that shortly, stay tuned!
Best regards,
Niels
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/nielsborie/ml-docker/issues/6#issuecomment-634664877, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ7P32TYXZLSAITA3F2OQ3RTUJGVANCNFSM4NKSE7SQ.


Add step to change directory

This adds a step to explicitly change the directory after installing librealsense, to bring this in line with the same change on https://dev.intelrealsense.com/docs/compiling-librealsense-for-linux-ubuntu-guide

Can one of the admins verify this patch?

Thanks!!


Use "GeoTag-X" consistently everywhere

The repository uses "GeoTag-X" in some places, and "Geotag-X" in some places, it should use "GeoTag-X" consistently everywhere.

Updated most of the changes in the templates, but these files will still need to be dealt with. Leaving this for @supranove as it requires a working pbs instance to update those changes.

@spMohanty thanks for updating the projects, I can do the pbs updates.

@supranove did this get updated in the end? can we close it?

@elliec yes it's done.


add runtime type-checking & well understood warnings

What problem does this feature solve?
If we accidentally set to prop of router-link to null, an error TypeError: Cannot read property 'name' of null will be thrown.
At this line:
https://github.com/vuejs/vue-router/blob/dev/src/util/location.js#L18
There should be a better error message but not just crash and leave users confused.
What does the proposed API look like?
warn like react

There is already a warning if the route is null because to is a required prop


Ads showing for Android and iOS, but not Windows. No error thrown.

I have an app on Android, iOS and Windows Phone and cordova-admob-pro works stunningly on Android and iOS. However, it fails to ever show an ad on Windows Phone. I've tried with the emulator as well as a live device.
There are no errors thrown and tracing down the code, it appears everything is firing as it should, but no ads are ever loaded. I'm building with the most recent version of the plugin and I've tried with Cordova version 6.0.0 and version 5.4.1. I have the windows-target-version and windows-phone-target-version preferences set to 8.1 in my config.xml.
        var admobid = {};
        // select the right Ad Id according to platform
        if (/(android)/i.test(navigator.userAgent)) {
            admobid = { // for Android
                banner: 'ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx'
            };
        } else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
            admobid = { // for iOS
                banner: 'ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx'
            };
        } else {
            admobid = { // for Windows Phone
                banner: 'ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx'
            };
        }
        if (AdMob) AdMob.createBanner({
            adId: admobid.banner,
            adSize: 'SMART_BANNER',
            overlap: true,
            position: AdMob.AD_POSITION.BOTTOM_CENTER,
            autoShow: true
        });

Is there anything I'm missing here for Windows Phone 8.1?

I found the issue with my situation:
https://github.com/floatinghotpot/cordova-admob-pro/issues/184
This plugin doesn't work for Windows Phone Universal projects which is what I'm building for my Windows Phone 8.1 users.


Fix manual subscription renewals and unsubscibe failure handling with asyncio

Fixes #822

Coverage decreased (-0.01%) to 54.322% when pulling 15a25beea8dc96b20d8c7d01bb551bb1e151ec73 on bdraco:fix_renew into db484181176a87f219af62e6031198b026a6eea1 on SoCo:master.

Hi @bdraco -- thanks for working on this.
I've addressed the new Black issues in #825, so check jobs are succeeding again. Just pull over the changes onto this branch.

Rebased, good to go now 👍

v0.22.2 now released including this patch.


Test_Misc_018 failes when executed "normally"

It worked before I changed the test so that it used two different temp folders, one of which is managed.
Since then it 100% reproducibly fails, but when I trace through the code it works.

This was caused by an incorrect check to determine if the dependency list had been modified after the build list had been compiled.
Fixed in 0.103.0.


Hide some pictures

Hello I want to hide some pictures in the album How can I do ?

You can use the assetFilter, like this:
pickerController.assetFilter = { asset in
    return asset.isFavorite
}

Hi, How do I make (isFavorite -- for asset) the photo after taking the camera

what is the exact you want to do?

After uploading the pictures I uploaded to the server, I want to hide them in the album
Sory i have  bad English

I'll allow disable storing images from the camera in the next version. I think this will solve your issue :)

Thansk @zhangao0086


Add information about request into ExecutionMeta

There is no way to retrieve information about the actual requests in createJsonQuery and createJsonMutation.
It would be great to have this information in the meta field in finished events.
My main use case: I want to have something like attachSentry(query) and subscribe to failure-event inside that operator. But for good logging I need information like URL or request headers, otherwise, in sentry, I can't distinguish 2 different queries, if they have the same params or I can't understand with what params request failed (for example, if I have URL as a sourced field)

It's a great idea, however due to lack of resources, I'm going to move it to next releases.


Add pt-BR translation

Blocked by #240 / #264
Since there is an ongoing progress to add i18n support, I think it is nice to also add Brazilian Portuguese translation to this project.
Brazil has a huge ruby/rails community and, unfortunately, a small amount of developers is fully proficient with english language. In order to improve expansion to them, it is nice to have pt-BR translation too.
I'm up for the task, as soon as #264 is merged

#264 is merged! Feel free to start translating :)


Sample ratio mismatch check

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

Project coverage is 100.00%. Comparing base (c8d2584) to head (c115c1c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #52   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           10        11    +1
  Lines          441       491   +50
=========================================
+ Hits           441       491   +50

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


cannot find module 'fetch'

Hello i am fairly new to magic mirror but i do have a few modules up and running. when i run npm run start i get the above error in the title. I believe its pointing towards a missing file in node_helper.js but any help would be greatly appreciated

Had the same error. In the dependencies in package.json “fetch” is missing. Quick fix, just go to the MagicMirror folder in a console and run “npm install fetch”.


docker-compose.exe -f docker-compose-mysql.yml up  failed

Hi,
When I try to execute
docker-compose.exe -f docker-compose-mysql.yml up
or
docker build -f Dockerfile .
it always show this：
ADD failed: stat /var/lib/docker/tmp/docker-builder215098260/target/oauth2-code.jar: no such file or directory
docker engine:18.06.1-ce
compose:1.22.0

I passed  'mvn clean install'，and there is jar file in the path "/target/oauth2-key.jar"

If you are not planning to change the light-oauth2, please use the https://github.com/networknt/light-docker/blob/master/docker-compose-oauth2-mysql.yml
For developers of the light-oauth2, you need to build the jar locally and then call the docker-compse

If you are not planning to change the light-oauth2, please use the https://github.com/networknt/light-docker/blob/master/docker-compose-oauth2-mysql.yml
For developers of the light-oauth2, you need to build the jar locally and then call the docker-compse

Got it ,thx


10.0.19041.2075 - Windows 10 Pro 22H2 Only one session

Hi Guys,
Recently updated both my Windows 10 Pro systems to 22H2
RDP Wrapper installed ok and fully supported using updated INI file.
However on both systems no matter what I do I can only get one session running.
I've tried both Stas'M version 1.6.2 and sebaxakerhtc version <IP_ADDRESS> both versions install ok and diagnostics shows all is good with the updated ini file installed.

As soon as I start a remote RDP session it logs the current local session out on the remote machine.
And behaves like the windows 10 default with no RDP Wrapper installed
As an experiment I also tried manually patching termsrv.dll with a hex editor and it too behaved the same allowing only one session at a time.  I've since restored termsrv.dll back to its original version and gone back to sebaxakerhtc version <IP_ADDRESS>.
I see the same on both systems which are running Windows 10 pro - version 22H2 with all updates applied.
RDP Wrapper diagnostics report termsvr.dll as version 10.0.19041.2075.
I've attached a zip archive below of the unmodified termsvr.dll and a copy of the rdpwrap.ini file I'm using.
Any help would be much appreciated.
Archive.zip

RDP Wrapper installed ok and fully supported using updated INI file.
However on both systems no matter what I do I can only get one session running.

Try:

Download RDP Wrapper 1.6.2 and extract this to any directory.
Place rdpwrap.ini in the same directory.
Open CMD as administrator
Execute this commands

cd C:\path\to\directory\
rdpwinst -u -k
rdpwinst -i

Enjoy!

Original message: https://t.me/rdpwrap/49131

One termsrv.dll version = one opened issue --> this issue will closed as duplicate :)

Duplicate of https://github.com/stascorp/rdpwrap/issues/1992


@alexanderdean @pkallos => Make PR #689 production ready

Thanks to the Snowplow team for building such a great product!
As per my comments here: https://github.com/snowplow/snowplow/pull/689
I needed to make a few changes before getting this PR working locally, and successfully inserting into redshift.
Namely, this PR replaces the copy-pasted dummy schema originally from the aws kinesis connectors library with the appropriate one resulting from the scala-kinesis-enrich app.
That schema is declared in scala-common-enrich, but from experience, not all of these events are kept.
It also inserts new lines between each event in the S3 files that will be uploaded. This is required as @pkallos mentioned in the aforementioned PR.
The inheritance problem, and my inexperience with java development led to a pretty wonky, but from my perspective unavoidable, solution. Let me know if there are ways around this!

GitHub auto-closed this PR - the code now lives in here: https://github.com/snowplow/snowplow/tree/kinesis-redshift-sink


nimble/l2cap: Add smarter CID assignment

@andrzej-kaczmarek thanks, fixed according to the comments

@andrzej-kaczmarek ping

@mfarag13 does it e


Firebase Auth implementation for signInWithCustomToken.

I currently only see the following implemented sign in functions for Firebase Auth:

signInAnonymously
signInFacebook
signInGoogle
signInWithEmailAndPassword

Firebase is a retro fit for our legacy app and so we are using the custom token SDK on our Python backend.
How hard would it be to implement signInWithCustomToken()?

@kroikie why is this closed?  Any way we can do signInWithCustomToken()?

@kroikie why is this closed? Any way we can do signInWithCustomToken()?

I would think so since the signInwithCustomToken() method exists on an auth instance

@SEGVeenstra the method exists on auth instance because of this
Future<PlatformAuthResult> signInWithCustomToken(String app, String token) {
   throw UnimplementedError('signInWithCustomToken() is not implemented');
 }

Still wondering why this issue is closed? Is there another way to achieve this? My flutter app needs a way to sign in without using any of the existing providers.


HHH-13790 Fix temporary session not being closed

In some cases, for example when AssertionFailure "bug adding collection twice" is thrown, temporary session is not being closed.
This caused extremely severe consequences like connection pool starvation and application death.
I presume, method addUninitializedDetachedCollection, potentially capable of throwing Exception should be within try/finally block

Hi @flexo0, could you open a JIRA issue and update the commit message to include the JIRA issue number as a part of it.  Thanks.

Hi @NathanQingyangXu, it would be hard for me to provide proper test case since i'm not well versed in hiberrnate project, and especially in tests

Hi @NathanQingyangXu, it would be hard for me to provide proper test case since i'm not well versed in hiberrnate project, and especially in tests

Yeah, providing testing case is another serious roadblock. Hibernate provides excellent testing infrastructure. Usually some well-designed abstract testing class is to be inherited by your testing class (e.g. BaseCoreFunctionalTestCase, BaseEntityManagerFunctionalTestCase, BaseNonConfigCoreFunctionalTestCase). Bootstrapping Hibernate 5 directly in testing case is also another option. You can search the usage of the above abstract classes to see examples. A good example to bootstrap Hibernate directly can be seen in https://github.com/hibernate/hibernate-orm/pull/3151/files#diff-4bf9ec6bb9519c3000e2d8b4444e9b52. Hopefully it helps.

Hi @NathanQingyangXu, it would be hard for me to provide proper test case since i'm not well versed in hiberrnate project, and especially in tests

Your story has enjoyed a good testing case by throwing some AssertionFailure. If I knew as much as you on this bug, I might even help to create one testing case.

At this moment "bug adding collection twice" is fired
And then HikariPool notifies about connection leak

In our case AssertionFailure fired in such sircumstances:
1 We have property hibernate.enable_lazy_load_no_trans=true
2 We have Entity parEnt with lazy loaded collection, thread-1 loads parEnt without loading elements of lazy collection and finishes transaction
3 Loaded parEnt stays in detached state with lazy collection not beeing initialized.
4 Then two threads thread-2 and thread-3 are accessing parEnt and trying to load that lazy collection simultaniously.
At this moment "bug adding collection twice" is fired
And then HikariPool notifies about connection leak

thanks. seems a good recipe for testing. Without testing case associated, PR created here has slim chance to be reviewed, let alone getting merged, unless it is pure code refactoring PR.

At this moment "bug adding collection twice" is fired
And then HikariPool notifies about connection leak

So I came up with the following testing case. It seems the AbstractPersistentCollection is not thread-safe, but I am not able to reproduce the 'AssertionError'.
`
package org.hibernate.collection.internal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OrderColumn;
import javax.persistence.Table;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.Configuration;
import org.hibernate.internal.build.AllowSysOut;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Assert;
import org.junit.Test;
import static org.hibernate.testing.transaction.TransactionUtil.doInHibernate;
/**

@author Nathan Xu
*/
public class AbstractPersistentCollectionTest extends BaseCoreFunctionalTestCase {
private College college;
private College loadedCollege;
private final ExecutorService executorService = Executors.newFixedThreadPool(5);
@Override
protected void configure(Configuration configuration) {
configuration.setProperty( AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS, Boolean.TRUE.toString() );
}
@Override
protected Class[] getAnnotatedClasses() {
 	return new Class[] {
College.class
};
}
@Override
protected void prepareTest() throws Exception {
doInHibernate( this::sessionFactory, session -> {
college = new College();
college.setStudents( Arrays.asList( "student1", "student2", "student3" ) );
session.persist( college );
} );
}
@Test
@TestForIssue( jiraKey = "HHH-13790" )
@AllowSysOut
public void testConnectionLeakWhenExceptionThrown() throws Exception {
doInHibernate( this::sessionFactory, session -> {
loadedCollege = session.load( College.class, college.getId() );
} );
 final List<Callable<String>> futureTasks = new ArrayList<>(5);
 for (int i = 0; i < 5; i++) {
 	futureTasks.add(() -> loadedCollege.getStudents().get(0));
 }
 List<Future<String>> futures = executorService.invokeAll(futureTasks);
 for (Future<String> future : futures) {
 	try {
 		future.get();
 	} catch (Exception e) {
 		e.printStackTrace(System.out);
 	}
 }
 AbstractPersistentCollection students = ( AbstractPersistentCollection )(loadedCollege.getStudents());
 Assert.assertNull(students.getSession());

}
@Entity( name = "College" )
@Table( name = "college" )
public static class College {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 private Long id;

 @ElementCollection(fetch = FetchType.LAZY)
 @OrderColumn
 private List<String> students = new ArrayList<>();

 public long getId() {
 	return id;
 }

 public List<String> getStudents() {
 	return students;
 }

 public void setStudents(List<String> students) {
 	this.students = students;
 }

}

}
`

In our case AssertionFailure fired in such sircumstances:
1 We have property hibernate.enable_lazy_load_no_trans=true
2 We have Entity parEnt with lazy loaded collection, thread-1 loads parEnt without loading elements of lazy collection and finishes transaction
3 Loaded parEnt stays in detached state with lazy collection not beeing initialized.
4 Then two threads thread-2 and thread-3 are accessing parEnt and trying to load that lazy collection simultaniously.
At this moment "bug adding collection twice" is fired
And then HikariPool notifies about connection leak

I created a testing class at https://github.com/hibernate/hibernate-orm/compare/master...NathanQingyangXu:HHH-13790. However, I am not able to reproduce the 'bug adding collection twice' error, though other errors abound. Seems the AbstractPersistentCollection should be run in single thread.

Hi @NathanQingyangXu, sorry for long delay. Thanks for your help! I used you code to create test, but it turned out harder than i thought.
I'm trying to execute parallel transactions and cannot manage it to work.
I've updated PR, can you please help to fix the test
Maybe I need another base class instead of BaseCoreFunctionalTestCase?

Hi @flexo0 ,
sorry for taking so long to review this PR.
I think your change makes sense since
session.getPersistenceContextInternal()
						.addUninitializedDetachedCollection( collectionDescriptor, this );

may throw an exception living the temp Session open.
What I'm doing is to create a new PR targeting main and removing the test (It's not easy to create a reproducer).
Can you just add to this PR a comment with the following
By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0.txt)
and can be relicensed under the terms of the [LGPL v2.1 license](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) in the future at the maintainers' discretion.
For more information on licensing, please check [here](https://github.com/hibernate/hibernate-orm/blob/main/CONTRIBUTING.md#legal).

thanks

Thanks @flexo0 I'm going to apply your changes to main and create a new PR.

superseded by https://github.com/hibernate/hibernate-orm/pull/9407


feat(quorum): update platform helm charts with README.md

Description
As a developer I want to add proper documentation for the helm charts, before they are packaged and published on bevel helm repo
Acceptance Criteria

README.md file added.
vaules.yaml file filled with default values.
chart.yaml versions updated.

I will check this.


Can't switch to 'beta' channel

I booted an image from the release channel (835.12.0).  I changed the cloud-init to put it in the beta channel.  On boot:
$ cat /etc/coreos/update.conf
GROUP=beta

however:
$ update_engine_client -update
[0227/191211:INFO:update_engine_client.cc(243)] Initiating update check and install.
[0227/191211:INFO:update_engine_client.cc(248)] Waiting for update to complete.
LAST_CHECKED_TIME=0
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_IDLE
NEW_VERSION=<IP_ADDRESS>
NEW_SIZE=0
[0227/191216:ERROR:update_engine_client.cc(189)] Update failed.

If I manually change the update.conf to put it back into the stable channel (as there is an 835.13.0 release available) and re-run 'update_engine_client -update', it happily updates to 835.13.0.
Looking at 'journalctl -u update-engine' when in the 'beta' channel:
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:dbus_service.cc(57)] Attempting interactive update
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:update_attempter.cc(256)] New update check requested
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:omaha_request_params.cc(60)] Current group set to beta
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:update_attempter.cc(475)] Already updated boot flags. Skipping.
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:update_attempter.cc(658)] Scheduling an action processor start.
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:action_processor.cc(36)] ActionProcessor::StartProcessing: OmahaRequestAction
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:omaha_request_action.cc(257)] Posting an Omaha request to https://public.update.core-os.net/v1/update/
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:omaha_request_action.cc(258)] Request: <?xml version="1.0" encoding="UTF-8"?>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <request protocol="3.0" version="CoreOSUpdateEngine-<IP_ADDRESS>" updaterversion="CoreOSUpdateEngine-<IP_ADDRESS>" installsource="ondemandupdate" ismachine="1">
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <os version="Chateau" platform="CoreOS" sp="835.13.0_x86_64"></os>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <app appid="{e96281a6-d1af-4bde-9a0a-97b76e56dc57}" version="835.13.0" track="beta" bootid="{1970db32-f527-420e-9c50-939bb489af78}" oem="openstack" oemversion="0.0.6" alephversion="835.12.0" machineid="3121cdfaabf34fc5a5fb3536c237ab35" lang="en-US" board="amd64-usr" hardware_class="" delta_okay="false" >
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <ping active="1"></ping>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <updatecheck></updatecheck>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <event eventtype="3" eventresult="2" previousversion="835.12.0"></event>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: </app>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: </request>
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:libcurl_http_fetcher.cc(48)] Starting/Resuming transfer
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:libcurl_http_fetcher.cc(164)] Setting up curl options for HTTPS
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191211:INFO:libcurl_http_fetcher.cc(427)] Setting up timeout source: 1 seconds.
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:libcurl_http_fetcher.cc(240)] HTTP response code: 200
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:libcurl_http_fetcher.cc(297)] Transfer completed (200), 267 bytes downloaded
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:omaha_request_action.cc(574)] Omaha request response: <?xml version="1.0" encoding="UTF-8"?>
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: <response protocol="3.0" server="update.core-os.net">
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: <daystart elapsed_seconds="0"></daystart>
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: <app appid="e96281a6-d1af-4bde-9a0a-97b76e56dc57" status="ok">
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: <updatecheck status="noupdate"></updatecheck>
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: </app>
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: </response>
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:omaha_request_action.cc(394)] No update.
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:action_processor.cc(82)] ActionProcessor::ActionComplete: finished OmahaRequestAction, starting OmahaResponseHandlerAction
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:omaha_response_handler_action.cc(36)] There are no updates. Aborting.
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:action_processor.cc(68)] ActionProcessor::ActionComplete: OmahaResponseHandlerAction action failed. Aborting processing.
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:action_processor.cc(73)] ActionProcessor::ActionComplete: finished last action of type OmahaResponseHandlerAction
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:update_attempter.cc(283)] Processing Done.
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: [0227/191212:INFO:update_attempter.cc(319)] No update.

As you can see, it appears to be asking for a beta channel release with current software 835.13.0 (and previous version 835.12.0)
Feb 27 19:12:11 beta-canary01.tec1.tivo.com update_engine[735]: <app appid="{e96281a6-d1af-4bde-9a0a-97b76e56dc57}" version="835.13.0" track="beta" bootid="{1970db32-f527-420e-9c50-939bb489af78}" oem="openstack" oemversion="0.0.6" alephversion="835.12.0" machineid="3121cdfaabf34fc5a5fb3536c237ab35" lang="en-US" board="amd64-usr" hardware_class="" delta_okay="false" >

I know that 899.8.0 is currently in the beta channel, and it would seem 899.8.0 > 835.13.0.  But the response back from omaha is:
Feb 27 19:12:12 beta-canary01.tec1.tivo.com update_engine[735]: <updatecheck status="noupdate"></updatecheck>

So... what gives?

The beta channel was paused due to a regression. A new beta will be rolling out shortly.

Ah.. so, no new beta was available, even the previous beta that didn't have the regression?  It was a bit surprising that it said there was no update available.  Is 899.9.0 now being served up?

Yes, 899.9.0 is rolling out right now. The default behavior is to pause the entire channel, and only allow the channel to move forward. In this case, it would have been safe to allow older updates to go out.
Additionally a side note: the update-engine software was written by Google for ChromeOS, and as such it wasn't as user-facing as our usage in CoreOS is. This means that you get fairly terrible output for some commands, it doesn't understand the concept of pausing, etc. We're slowing fixing and rewriting what we can to improve it. Sorry for the trouble.

ok... thx.  I thought something might be horribly broken.  turns out it was working correctly.


OSError when loading the model

Hello,
I have followed the steps to install LLM2Vec from the GitHub repository and I'm trying to run the example code found on HuggingFace: https://huggingface.co/McGill-NLP/LLM2Vec-Mistral-7B-Instruct-v2-mntp.
However, when I execute it, I get the following error when loading the AutoModel.from_pretrained(...):
Traceback (most recent call last):
  File "/home/jcastell/snomedEmbeddings/create_dict_llm2vec.py", line 27, in <module>
    model = AutoModel.from_pretrained(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jcastell/miniforge3/envs/llm2vec_env/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 558, in from_pretrained
    return model_class.from_pretrained(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jcastell/miniforge3/envs/llm2vec_env/lib/python3.11/site-packages/transformers/modeling_utils.py", line 3451, in from_pretrained
    raise EnvironmentError(
OSError: mistralai/Mistral-7B-Instruct-v0.2 does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack.

The supposedly missing files are in https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/tree/main so I am not entirely sure why I am getting that error or how could I solve it.

Hi @JavierCastellD,
Is the peft library also installed in your environment. The loading only works if both peft and transformers library is installed.
Alternatively, you can also load using llm2vec library, as documented here.
Let me know if you have any further questions.

Hi.
Both libraries were installed. Apparently the problem was that I did not properly set the huggingface access token permissions.
So now it is correctly working.
Thanks!


cmd/internal/obj: delete Cputime and all its uses

obj.Cputime is used to print elapsed time in various places in the assemblers. It is protected by ctxt.Debugvlog. However, toolstash -cmp sets Debugvlog to true, causing rare spurious timing-based failures. They are rare because the elapsed time is basically always ~0. We could introduce a special flag to turn on/off this timing printing, but I'd rather just wipe it all out. We have good profiling and benchmarking tools; we should use them instead, if/when the assemblers ever become an actual performance bottleneck.
Objections? Not sure who quite who to cc here for input, but maybe: @minux @cherrymui @randall77

IIRC obj.Cputime is also used in the linker when -v is set.
Just curious, why toolstash -cmp needs to set Debugvlog?

Just curious, why toolstash -cmp needs to set Debugvlog?

Debugvlog is pretty heavily overloaded. toolstash -cmp uses it to ask the compiler to emit much more detailed versions of the generated assembly, to better confirm that it is identical.
Why does the linker need obj.Cputime? Any reason we couldn't use pprof instead?

Why does the linker need obj.Cputime? Any reason we couldn't use pprof instead?

I believe it is just historical reason.

At long time, we probably should get rid of obj.Cputime and use pprof.
As a workaround, could toolstash -cmp filter out Cputime outputs?

I guess the question is: Why not now?

Slight misdiagnosis: It's not that variance in the timing causes toolstash -cmp failures. Rather, when toolstash -cmp fails, it causes the output to be about timing rather than about something useful.
I'll send a note to golang-dev to see whether anyone is actively using this.

Yeah, those timing lines are obnoxious when diffing toolstash log files. I for one wouldn't miss them.

I guess the question is: Why not now?

No problem with me, if you want to take it :)

CL 39914 deletes all the assembler usages, which are the ones currently driving me crazy. If no one speaks up on behalf of the linker usages in the next few days, I'll do them too.

@josharian  are you still interested in this CL? I can take a closer look and +2 if so.

Yes please.

Ok, SGTM. I am in transit at the moment, will take a closer look tomorrow.


Remove the unexpected fields when creating services/resources

Describe the bug

Steps to reproduce

New a service.
Check the form.

Result

Some unexpected fields are displayed.

Expected behavior

Remove the unexpected fields.

Environment

Walrus version: a3e5c0343d3e831ca30e4fd76a160212bc5bba7f
UI version: dev-61bd325

Additional context
Add any other context about the problem here.

Environment

Walrus version: 14cd3f8fb0b4028913755cb07364bf4ace803797
UI version: dev-830c6bb

Test Result: pass


Using tab index with multiple CardXxxElements

I'm using material-ui with react-stripe-elments and have code like this
<CardContent style={{ paddingTop: "5px", paddingBottom: "5px" }}>
    <Typography variant="subtitle1">Card Number</Typography>
    <CardNumberElement/>
</CardContent>
<CardContent style={{ paddingTop: "5px", paddingBottom: "5px" }}>
    <Typography variant="subtitle1">Card Expiration</Typography>
    <CardExpiryElement />
</CardContent>

I would like to allow the user to tab between fields. Is that possible? If not is there a way to style the  so that each field is on a separate line?
thanks!

@talkingtab Elements should respect the page's tab order. What elements does material-ui render here in the DOM, and what behavior are you seeing? Would you be able to share URL with a full reproduction so we could take a closer look?

@fred-stripe Thanks. Looking at this, I'm wondering if it has to do with possibly being in a React Portal component. I'm still wandering in the dark on this. I go the demo to work just fine, then put the component into a material-ui  Dialog and it fails.  The react portal doc points to this issue: https://reactjs.org/docs/accessibility.html#programmatically-managing-focus I want the payment window to be in some sort of pop up or overlay or something like that.

Hello @talkingtab,
Please reach out again if you happen to find a bug (reproducible code snippets as @fred-stripe says would be the best here). I'm going to close this for now since I'm not able to reproduce the behavior locally with no frameworks (i.e. not using material-ui).
Thanks,
Matt


update verifiedTransaction api

Codecov Report

Merging #300 into release-rc4 will decrease coverage by 0.09%.
The diff coverage is 5.26%.


[Volunteer] Disorganize layout when browser is resize

Title
[Volunteer] Disorganize layout when browser is resize
Platform / OS
Windows 10
Browser
Chrome
Description
The UI including images, text and buttons overlap when the browser is resize. See attached images for reference.
Steps to Reproduce

Go to Volunteer Page
Enter valid details then click on join and you will be directed to volunteer thank you page -- https://dev.sleepbus.org/volunteer-signup-thanks
Resize the browser until the UI positions begins to move.
Observe the buttons, images and text in the page

Expected Behavior
UI elements are still organized even when the browser is resize
Additional Info

Branch: 3df28384163f3c9dc262b86f61139745073d1332
dev Build: https://circleci.com/gh/sleepbusorg/sleepbus.org/128

wont fix current mobile issues


Disable Registration  Flag

When the service is deployed publicly or semi-publicly there is no way to disable the register functionality. This means that people can register on the site and while they cannot view other operations they can still create new operations and upload data.
It would be great to have a way to disable registration once the users have been onboarded. Or make users disabled by default so that they must be approved by an admin.

Is disabling registration all together preferable to user approval? As written today I don't think it's trivial for us to separate registration from login login being enabled for a specific auth provider. If we did it's something that would probably need to be toggled in the config which would then require a restart to enable adding new users again; probably not ideal either. Overall this feature makes sense, we just need to figure out what makes the most sense around implementation and this may end up being a bigger change than it seems.
In the mean time, if you need a quicker solution, there are a few stopgaps you could use:

Setup basic auth on the reverse proxy to avoid people from accessing ashirt who don't know the password
Put network ACLs in place to disallow ashirt access from the internet and require a VPN or proxy that is on the edge to route to it
Switch to an OIDC2 provider for auth. Currently it is built around Okta support but I would assume any identity provider that supports OIDC2 would work. We haven't tested this but would be open to implementing changes to ensure this is the case

Is disabling registration all together preferable to user approval? As written today I don't think it's trivial for us to separate registration from login login being enabled for a specific auth provider. If we did it's something that would probably need to be toggled in the config which would then require a restart to enable adding new users again; probably not ideal either. Overall this feature makes sense, we just need to figure out what makes the most sense around implementation and this may end up being a bigger change than it seems.
In the mean time, if you need a quicker solution, there are a few stopgaps you could use:

Setup basic auth on the reverse proxy to avoid people from accessing ashirt who don't know the password
Put network ACLs in place to disallow ashirt access from the internet and require a VPN or proxy that is on the edge to route to it
Switch to an OIDC2 provider for auth. Currently it is built around Okta support but I would assume any identity provider that supports OIDC2 would work. We haven't tested this but would be open to implementing changes to ensure this is the case

@SecPrez not sure if you're still looking for a solution but we're prioritizing this and worked out the details today. Don't have a specific timeline for when we'll have it merged but it's getting worked on and expected to land reasonably soon


pcl_type_adapter: 0.0.2-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository pcl_type_adapter to 0.0.2-1:

upstream repository: https://github.com/OUXT-Polaris/pcl_type_adapter.git
release repository: https://github.com/OUXT-Polaris/pcl_type_adapter-release.git
distro file: rolling/distribution.yaml
bloom version: 0.12.0
previous version for package: null

pcl_type_adapter
* fix README
* Merge pull request #2 <https://github.com/OUXT-Polaris/pcl_type_adapter/issues/2> from OUXT-Polaris/feature/zero_copy
  Feature/zero copy
* change supporting pointer passing
* fix compile error
* fix compile error
* update test code
* Contributors: Masaya Kataoka, hakuturu583

Thanks for releasing a new package!
For packages released on rolling, we want people to use ros2-gbp organization as the home of their release repositories.  This allows us to cut releases for new ros distributions as they come available.
We ask that you follow the process outlined here to create a new release team and release repository https://docs.ros.org/en/rolling/How-To-Guides/Releasing/Release-Team-Repository.html#start-a-new-release-team

Thanks, I will make my release repository on this organization and re-open pull request.


Ch. 2.2.5, Type on page 33

About in the middle of page 33 the text says " ... an array of 60000 matrices of 28 x 8 integers.". I believe that should be 28 x 28 integers instead?

True that. I changed it in the hardcover version of the book and in my notes. Thanks.


Create Dialogs without using WaterFall

Hi, is there a way to create dialogs without using WaterFall dialogs because we want to go a step back or 2 step forward skipping ceratin steps and as I found there is no way to do that in WaterFall (only by creating smaller dialogs and skipping one by one)?

I having similar issue with 24.MSGraphAuthentication. it forces user to go through all the steps. I want to skip LoginStep if user is already loggedin

Hihi all!
The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests. That being said:
@Madddog1997:
There are ways to create dialogs without using waterfalls. As you didn't specify a language, I'll use C# as an example. Just one example would be to use a switch case and move between dialogs:
private async Task<DialogTurnResult> InterruptAsync(DialogContext innerDc, CancellationToken cancellationToken)
        {
            if (innerDc.Context.Activity.Type == ActivityTypes.Message)
            {
                var text = innerDc.Context.Activity.Text.ToLowerInvariant();

                switch (text)
                {
                    case "help":
                    case "?":
                        await innerDc.Context.SendActivityAsync($"Show Help...", cancellationToken: cancellationToken);
                        return new DialogTurnResult(DialogTurnStatus.Waiting);

                    case "cancel":
                    case "quit":
                        await innerDc.Context.SendActivityAsync($"Cancelling", cancellationToken: cancellationToken);
                        return await innerDc.CancelAllDialogsAsync();
                }
            }

            return null;
        }

If traversing in a way that is not A->B->C is the reason you'd avoid waterfalls, might I recommending giving these a read?
Non-sequential waterfall models with complex dialog flows bot framework c# v4
In Azure Bot Framework's WaterfallDialog, how do we go to a specific step?
How can I control the microsoft bot framework dialog to repeat the dialog sequence?
Bot framework v4.0 how to execute the previous waterfall step in a dialog?
C# bots in the samples repo that don't use waterfall dialogs are:
01-Console-Echo
02-EchoBot
03-WelcomeUser
07-UsingAdaptiveCards
08-SuggestedActions
11-QnAMaker
14-NLPwithDispatch
15-HandingAttachments
16-ProactiveMessages
17-MultilingualBot
23-FacebookEvents
44-Prompts
45-StateManagement
I'm certain that their Node equivalents are the same.
@Anshul21
Sample 24 was built with step 1 being a catch-all any activity without a token. That way if the user was logged out somehow, it would be caught and they'd have to log back in.
if (tokenResponse != null)
            {
                await stepContext.Context.SendActivityAsync(MessageFactory.Text("You are now logged in."), cancellationToken);
                return await stepContext.PromptAsync(nameof(TextPrompt), new PromptOptions { Prompt = MessageFactory.Text("Would you like to do? (type 'me', 'send <EMAIL>' or 'recent')") }, cancellationToken);
            }

If you're trying to build a bot with OAuth that doesn't loop through OAuth over and over again, make the OAuth a component dialog and when the user is completed logging in, it will return them to a 'main' dialog of some sort.


Set-up codecov.io

Hi @jpuigcerver
Can you set-up www.codecov.io for the project? I think only the owner can. Then I should have write access as a collaborator.
Should be pretty easy.

Done. Let me know if there's any issue.


add PlayerPedia to repo

PlayerPedia is an android native project that will show an Football Player biodata.

this is an android project, so i added new folder to repo


refactor the CI

Some minor fixes to the pipelines. I'm mostly trying to find out why xarray and regionmask have the "pipeline-as-github-check" while pint-xarray doesn't.
This also adds formatting checks using isort and blackdoc.

I can't seem to find an issue with the configuration that disables the "pipeline-run-as-check" feature, which might indicate that there's something wrong with the installed github app? I guess we have to either give up on that, ask support or switch to github actions.
So except from that I think this is ready for review and merging.


feat(icons): added ladder-over-wave icon

Closes #2526
What is the purpose of this pull request?

[x] New Icon

Description
Added new ladder-over-wave icon.
Icon use case

Maps, facilities
Alternative icon designs

Icon Design Checklist
Concept

[x] I have provided valid use cases for each icon.
[x] I have not added any a brand or logo icon.
[x] I have not used any hate symbols.
[x] I have not included any religious or political imagery.

Author, credits & license

[ ] The icons are solely my own creation.
[ ] The icons were originally created in # by @
[ ] I've based them on the following Lucide icons:
[ ] I've based them on the following design:

Naming

[x] I've read and followed the naming conventions
[x] I've named icons by what they are rather than their use case.
[x] I've provided meta JSON files in icons/[iconName].json.

Design

[ ] I've read and followed the icon design guidelines
[ ] I've made sure that the icons look sharp on low DPI displays.
[ ] I've made sure that the icons look consistent with the icon set in size, optical volume and density.
[ ] I've made sure that the icons are visually centered.
[ ] I've correctly optimized all icons to three points of precision.

Before Submitting

[x] I've read the Contribution Guidelines.
[ ] I've checked if there was an existing PR that solves the same issue.

@jguddas Did you try to detach de ladder from the waves? I'm curious how that will look.

What about the name waves-ladder?


Don't allow unavailable nodes during trial cluster upgrades

Description
The autoscaler maxUnavailable is set to 1. With this setting, Gardener starts to drain the only single worker node while the new node is being created, causing several minutes downtime for all workloads.

What about other plans? I see that openstack_provider.go also has this parameter set to 1 - could you change it too?


added git share directive for viya4-iac-azure

Fixes this issue : https://github.blog/2022-04-12-git-security-vulnerability-announced/

This needs testing just added the code snippet needed to start moving forward on this one.

Best way to test. Create the new docker image. Run a container with that image using the entry point bash then
cat .gitconfig

You should see output showing a section with the label [safe] and the correct directory.

Testing complete, see details in IAC-530


runerror

E:\miniconda3\envs\tree-ring-watermark-main\python.exe D:\tree-ring-watermark-main\tree-ring-watermark-main\run_tree_ring_watermark.py
E:\miniconda3\envs\tree-ring-watermark-main\lib\site-packages\huggingface_hub\file_download.py:1150: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:
pip install accelerate
.
E:\miniconda3\envs\tree-ring-watermark-main\lib\site-packages\diffusers\modeling_utils.py:96: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
return torch.load(checkpoint_file, map_location="cpu")
E:\miniconda3\envs\tree-ring-watermark-main\lib\site-packages\transformers\modeling_utils.py:399: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
return torch.load(checkpoint_file, map_location="cpu")
Pipelines loaded with torch_dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Pipelines loaded with torch_dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Pipelines loaded with torch_dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Using the latest cached version of the dataset since Gustavosta/Stable-Diffusion-Prompts couldn't be found on the Hugging Face Hub
Found the latest cached dataset configuration 'default' at C:\Users\宋雨轩.cache\huggingface\datasets\Gustavosta___stable-diffusion-prompts\default\0.0.0\d816d4a05cb89bde39dd99284c459801e1e7e69a (last modified on Wed Aug 21 16:50:04 2024).
Traceback (most recent call last):
File "D:\tree-ring-watermark-main\tree-ring-watermark-main\run_tree_ring_watermark.py", line 217, in
main(args)
File "D:\tree-ring-watermark-main\tree-ring-watermark-main\run_tree_ring_watermark.py", line 48, in main
gt_patch = get_watermarking_pattern(pipe, args, device)
File "D:\tree-ring-watermark-main\tree-ring-watermark-main\optim_utils.py", line 175, in get_watermarking_pattern
gt_patch = torch.fft.fftshift(torch.fft.fft2(gt_init), dim=(-1, -2))
RuntimeError: Unsupported dtype Half
Hello, I encountered the above error while running run_tree_ring_watermark.py. How can I resolve this issue?

Hi, torch.fft.fftshift2 might not support float16. Im not sure why it's not a problem for me. Maybe it's due to different torch versions.
Can you try to make git_init float32 first and cast it back to float16 after fft? For example, you add git_init = git_init.to(torch.float32) at line 159, and git_init = git_init.to(torch.float16) at line 192.
Let me know if you have further questions!

Traceback (most recent call last):
File "/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py", line 218, in
main(args)
File "/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py", line 28, in main
scheduler = DPMSolverMultistepScheduler.from_pretrained(args.model_id, subfolder='scheduler')
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/schedulers/scheduling_utils.py", line 118, in from_pretrained
config, kwargs = cls.load_config(
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 354, in load_config
raise EnvironmentError(
OSError: stabilityai/stable-diffusion-2-1-base does not appear to have a file named scheduler_config.json.
Hello, I encountered the above error while running run_tree_ring_watermark.py. How can I resolve this issue?

Hi, I think it's a problem with transformers version. Can you double-check if your environment has transformers == 4.23.1
diffusers == 0.11.1? Sorry about this. This code only supports old versions, but you can check out this implementation if you want to use the latest transformers or diffusers: https://huggingface.co/spaces/devingulliver/dendrokronos/blob/main/app.py.

root@autodl-container-4c99419959-9ca65ed2:~# python '/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py'
/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 490, in _make_request
raise new_e
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connection.py", line 615, in connect
self.sock = sock = self._new_conn()
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connection.py", line 205, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f06a3d7d1c0>, 'Connection to huggingface.co timed out. (connect timeout=10)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-1-base/resolve/main/scheduler/scheduler_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f06a3d7d1c0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1751, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1673, in get_hf_file_metadata
r = _request_wrapper(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 376, in _request_wrapper
response = _request_wrapper(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 399, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
File "/root/miniconda3/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_http.py", line 66, in send
return super().send(request, *args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/requests/adapters.py", line 688, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-1-base/resolve/main/scheduler/scheduler_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f06a3d7d1c0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: a9879712-70b7-4bdf-8d5f-8b54c437825a)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 326, in load_config
config_file = hf_hub_download(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1240, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1347, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1857, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py", line 218, in
main(args)
File "/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py", line 28, in main
scheduler = DPMSolverMultistepScheduler.from_pretrained(args.model_id, subfolder='scheduler')
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/schedulers/scheduling_utils.py", line 118, in from_pretrained
config, kwargs = cls.load_config(
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 354, in load_config
raise EnvironmentError(
OSError: stabilityai/stable-diffusion-2-1-base does not appear to have a file named scheduler_config.json.
Hi，I have synchronized the version of your code, but I am still getting an error。

root@autodl-container-4c99419959-9ca65ed2:~# python '/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py'
/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py:1150: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 490, in _make_request
raise new_e
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connection.py", line 615, in connect
self.sock = sock = self._new_conn()
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connection.py", line 205, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f06a3d7d1c0>, 'Connection to huggingface.co timed out. (connect timeout=10)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/root/miniconda3/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-1-base/resolve/main/scheduler/scheduler_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f06a3d7d1c0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1751, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1673, in get_hf_file_metadata
r = _request_wrapper(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 376, in _request_wrapper
response = _request_wrapper(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 399, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
File "/root/miniconda3/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_http.py", line 66, in send
return super().send(request, *args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/requests/adapters.py", line 688, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-1-base/resolve/main/scheduler/scheduler_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f06a3d7d1c0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: a9879712-70b7-4bdf-8d5f-8b54c437825a)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 326, in load_config
config_file = hf_hub_download(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1240, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1347, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/root/miniconda3/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1857, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py", line 218, in
main(args)
File "/tmp/pycharm_project_368/tree-ring-watermark-main/run_tree_ring_watermark.py", line 28, in main
scheduler = DPMSolverMultistepScheduler.from_pretrained(args.model_id, subfolder='scheduler')
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/schedulers/scheduling_utils.py", line 118, in from_pretrained
config, kwargs = cls.load_config(
File "/root/miniconda3/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 354, in load_config
raise EnvironmentError(
OSError: stabilityai/stable-diffusion-2-1-base does not appear to have a file named scheduler_config.json.
Hi，I have synchronized the version of your code, but I am still getting an error.

(tree) root@autodl-container-956011b53c-0cffe4e6:/tmp/pycharm_project_808/tree-ring-watermark-main# python run_tree_ring_watermark.py --run_name rotation --w_channel 3 --w_pattern ring --r_degree 75 --start 0 --end 1000 --with_tracking
wandb: Currently logged in as:<PHONE_NUMBER><PHONE_NUMBER>-zhengzhou). Use wandb login --relogin to force relogin
wandb: Tracking run with wandb version 0.17.7
wandb: Run data is saved locally in /tmp/pycharm_project_808/tree-ring-watermark-main/wandb/run-20240827_185009-88rmgxd2
wandb: Run wandb offline to turn off syncing.
wandb: Syncing run rotation
wandb: ⭐ View project at https://wandb.ai/1832235909-zhengzhou/diffusion_watermark
wandb: 🚀 View run at https://wandb.ai/1832235909-zhengzhou/diffusion_watermark/runs/88rmgxd2
Traceback (most recent call last):
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connection.py", line 196, in _new_conn
sock = connection.create_connection(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connectionpool.py", line 490, in _make_request
raise new_e
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connection.py", line 615, in connect
self.sock = sock = self._new_conn()
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connection.py", line 205, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f1124142a30>, 'Connection to huggingface.co timed out. (connect timeout=10)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-1-base/resolve/main/scheduler/scheduler_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f1124142a30>, 'Connection to huggingface.co timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1751, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1673, in get_hf_file_metadata
r = _request_wrapper(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 376, in _request_wrapper
response = _request_wrapper(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 399, in _request_wrapper
response = get_session().request(method=method, url=url, **params)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/utils/_http.py", line 66, in send
return super().send(request, *args, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/requests/adapters.py", line 688, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-1-base/resolve/main/scheduler/scheduler_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f1124142a30>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 62eba637-30ac-4a71-80d1-0dec203aeded)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 379, in load_config
config_file = hf_hub_download(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1240, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1347, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1857, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_tree_ring_watermark.py", line 218, in
main(args)
File "run_tree_ring_watermark.py", line 28, in main
scheduler = DPMSolverMultistepScheduler.from_pretrained(args.model_id, subfolder='scheduler')
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/diffusers/schedulers/scheduling_utils.py", line 150, in from_pretrained
config, kwargs, commit_hash = cls.load_config(
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/envs/tree/lib/python3.8/site-packages/diffusers/configuration_utils.py", line 406, in load_config
raise EnvironmentError(
OSError: stabilityai/stable-diffusion-2-1-base does not appear to have a file named scheduler_config.json.
wandb: 🚀 View run rotation at: https://wandb.ai/1832235909-zhengzhou/diffusion_watermark/runs/88rmgxd2
wandb: ⭐ View project at: https://wandb.ai/1832235909-zhengzhou/diffusion_watermark
wandb: Synced 6 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
wandb: Find logs at: ./wandb/run-20240827_185009-88rmgxd2/logs
wandb: WARNING The new W&B backend becomes opt-out in version 0.18.0; try it out with wandb.require("core")! See https://wandb.me/wandb-core for more information.
Hi，I have synchronized the version of your code, but I am still getting an error。

Hi sorry for the late reply. Not sure if there's something wrong with the huggingface size, but could you try stabilityai/stable-diffusion-2-base instead?


No "Blazing fast" in readme

I was very disappointed when I opened the collector for bloodhound on rust, went to the page, did ctrl f and did not find "blazing fast" on it
Now I'm not sure if I'm written in rust at all
Fix it ASAP

Hello @gomep342,
The readme has been updated with new statistics. Is that what you were expecting to see?
https://github.com/OPENCYBER-FR/RustHound#rocket-statistics

nice
thx


Cleanup formatting, use more modern Java, fix serialization

Each of these commits are intertwined with previous commits, so it didn't make sense to split these out into multiple PRs (even though four different things are occurring here).
Here, we:

Cleanup some too-far-right code
Undo previous commits downgrading code from Java 7 to Java 6 (bringing us back up to Java 7)
Add a serialization fix for resolving classes (protected Class<?> resolveClass(ObjectStreamClass desc))
Add session class restoration fix using Tomcat 8+ style (context.bind)

These changes (hopefully) close/resolve/fix all open issues and PRs in the session-managers repository.
Note: the serialization changes need proper review from someone with actual Tomcat experience.  All tests pass, but these changes haven't been tested against live servers/applications.

@pivmatt Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@pivmatt Thank you for signing the Contributor License Agreement!

Thank you Matt.

👍


Add juju-info itest

Issue
No itests.
Solution
Add juju-info itest.
Context
A CI task to run the integration-machine tox env is NOT added at this point.
Testing Instructions

Release Notes

k8s_metadata.yaml → k8s_metabooboo.yuk ??

k8s_metadata.yaml → k8s_metabooboo.yuk ??

Haha oops. Didn't mean to commit that. Reverted.
Was troubleshooting some weirdness so temporarily renamed.
BTW tests pass locally.


[REVIEW] functional updates for AWS .ipynb

I added a number of user direction # comments to make it simpler to understand what options are available
There was also a training job failure point because a user will not have access to the stated s3_model_output path. It should be updated to current users s3 path (s3://{bucket}/trained-models)

Thanks @erinkhoo !
Good catch on the S3 bucket, this fix was already in for the official AWS sagemaker-examples repo version of the HPO notebook, and it would be great to have it here as well.
I think the comments may be a little overly verbose since they are in the 'Key Choices' section, but lets go ahead and add them in for extra clarity.

Thank you for the improvements, @erinkhoo ! Much appreciated.


[#513]SofaMetaDataSubscriber miss unSubscribe method.

Make sure that:

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

Codecov Report

Merging #514 (d4e14a2) into master (92b7584) will decrease coverage by 1.15%.
The diff coverage is n/a.

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