Import step

#208 Import Step
Added a panel to import steps
It has 2 methods of importing steps, into a template or directly into the steps grid.
Import into Steps
This uses a number spinner to place the imported steps an off-set either from the start or the end of the list.
It is not possible to import steps if the spinner is out of range
Import into Template
This creates a new template and populates it with the imported steps.
It names the template based on a text input that needs to be valid before steps can be imported.
Validation
The template name and steps offset both have a validation. That will color them red if they are invalid.
There is also a cursory validation on the main import text field. That will disable the buttons, without coloring them.
Other changes
I've imported wxWidgets.natvis file that should help with debugging. We can remove it if causes issues.
I've changed some of the file filters for better organization.

I am glad you like it. The validation of user input should be solid. Except the imported steps, which follows the logic of open tas. As such it is lenient or broken in the same way.
So you don't need to search for edge cases, since we already know some of them. For instance it is possible to specify invalid recipes for buildings, and other things that are specific to the building type.


Showing Badges in Sidebar Labels

This is a feature request.
Are there any plans to allow showing the badges in the labels of the stories in the sidebar as well?
I saw this for mui for example:

Currently, this is not possible from what I see, so we would just use the sidebar roots to put the components with the same badges in their own group.

Hey!
You're not the first person who's asked for this, so you're in good company.
Last time I looked, it seemed almost possible, I'll have a dig around to see if that's changed.

Hi @geometricpanda I did a very dirty prototype of what this might look like in a v7+ compatible way here https://github.com/shilman/storybook-tag-badges
Tags have been around since 7.0 but not really utilized in user facing features. The upcoming 8.1 release will have some tags features like statically & interactively filtering the sidebar. It would be great to also be able to highlight an upgraded version of this addon based on tags, since I see lots of high quality storybooks that rely on it it.
If you'd be interested in upgrading the addon to use tags, I can potentially rework core bits of storybook to help make it easier/better.

Hey folks.
Just to confirm this is possible only on stories that have already been loaded. See the screenshots. Within the sidebar label renderer, we have access to story parameters if they are loaded, but we always have access to tags.
Switching to rendering tags as badges, like @shilman suggested, would allow this feature to work.

Code is here: https://github.com/geometricpanda/storybook-addon-badges/commit/c0fa99659b9e5571a49d7b5985192bfed2002f51

@Sidnioulz , i really like that, i'm incorporating that now

I'm trying to accomplish the use case highlighted by @Sidnioulz but can't seem to figure it out how 🤔
Any change in docs needed? I'll keep investigating and open a PR if I can figure it out :)

Hi @tibuurcio!
You cannot get this kind of rendering on every sidebar item with this addon, because it uses story parameters as a source of data. Storybook does not provide parameters in the sidebar (for performance reasons), and that's a fundamental limitation of the product that will not change in the future.
A solution is to draw badges based on tags instead of story parameters, because tags are available in more contexts.
Here are ways to do that:

https://gist.github.com/jpzwarte/b7cc6cc1aa2ca03b288c42bef823e344
https://github.com/shilman/storybook-tag-badges

I recently wrote https://github.com/Sidnioulz/storybook-addon-tag-badges specifically to address this need. That addon is only for SB 8.4+, as it relies on new features we've introduced around tags in SB 8.4. There are plenty of things that @geometricpanda's addon does better, and my own addon will never support per-story config because of the same limitation. Going forward, you get to choose which limitations you prefer to have and you have a ready-made solution either way :)


Error "Not all scopes are approved."

I am getting error "Not all scopes are approved." when trying to refresh token. To fetch token I am doing this:
return Observable.create((observer) => {
    gapi.load('auth2', () => {

        let GoogleAuth = gapi.auth2.init({
            client_id: AUTH.GOOGLE.CLIENT_ID,
            scope: 'openid email profile'
        });

        GoogleAuth.then(() => {
            if (GoogleAuth.isSignedIn.get()) {
                let user = GoogleAuth.currentUser.get();
                this.ngZone.run(() => {
                    observer.next(user.getAuthResponse());
                });
            }
        });
    });
});

Then to refresh I use this code:
GoogleAuth.then(() => {
    if (GoogleAuth.isSignedIn.get()) {
        let user = GoogleAuth.currentUser.get();
        user.reloadAuthResponse().then((resp) => {
            this.ngZone.run(() => {
                observer.next(resp);
            });
        });
    }
});

And I am getting this error: {"error":"IMMEDIATE_FAILED","detail":"Not all scopes are approved."}
I hope that I am doing something incorrectly and there is a simple explanation for this.

How do you initialize the GoogleAuth instance in the second snippet? Is that the same set of options? By the way, 'openid email profile' is the default scope so you don't need it.

Also, why do you reload the auth response in the second snippet? If you don't, is the error raised too?

Initialization is the exact same in both cases. I refresh the token so that I could login back to my backend with the new token. Isn't this how you are supposed to get the new token if it expired?

I haven't tried not to reload. How would I get a new token in that case?

When it initializes, it signs in a previously signed in user if any, so you can directly use https://developers.google.com/identity/sign-in/web/reference#googleusergetauthresponseincludeauthorizationdata

Hi again, after changing refresh code from reloadAuthResponse to this
gapi.load('auth2', () => {

    let GoogleAuth = gapi.auth2.init({
        client_id: AUTH.GOOGLE.CLIENT_ID
    });

    GoogleAuth.then(() => {
        if (GoogleAuth.isSignedIn.get()) {
            let user = GoogleAuth.currentUser.get();
            this.ngZone.run(() => {
                observer.next(user.getAuthResponse());
            });
        }
    },
    (error) => {
        throw new Error('Error: ' + error);
    });
});

I am now getting an error from google:
{"message":"Token validation error: {\n \"error_description\": \"Invalid Value\"\n}\n"}
Example token:
https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6IjI1OWY0MzMwY2UwZDI1NWFkNWM5MGFmNzJmODMwMDYwOTIwYjY2MjAifQ.eyJhenAiOiIyMzQ0OTI1OTY0NDMtcWY2dTRxcXBxaG42bXU0NmNiaWdwczM3YzFoMGRia3YuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhdWQiOiIyMzQ0OTI1OTY0NDMtcWY2dTRxcXBxaG42bXU0NmNiaWdwczM3YzFoMGRia3YuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTEyMjM1NTkyMTk2MTA4NjA4MzUiLCJlbWFpbCI6ImcubWlrZWxlbmFzQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoienVfcV9kR0Y2RHdsVkNsUFZGRkM2QSIsImlzcyI6ImFjY291bnRzLmdvb2dsZS5jb20iLCJqdGkiOiJiY2MxN2U3MTU2ZTI5ZTY4MDVlMTQ4YzdlN2VmZThmMWQxMDUxNjZmIiwiaWF0IjoxNTEyODYxNTQwLCJleHAiOjE1MTI4NjUxNDAsIm5hbWUiOiJHZWRpbWluYXMgTWlrZWxlbmFzIiwicGljdHVyZSI6Imh0dHBzOi8vbGg0Lmdvb2dsZXVzZXJjb250ZW50LmNvbS8tQmRHV0JlWFpweTQvQUFBQUFBQUFBQUkvQUFBQUFBQUFBc2svdWpNeFpmN056aFUvczk2LWMvcGhvdG8uanBnIiwiZ2l2ZW5fbmFtZSI6IkdlZGltaW5hcyIsImZhbWlseV9uYW1lIjoiTWlrZWxlbmFzIiwibG9jYWxlIjoiZW4ifQ.p1WDm5U40CDf7YizpFeZihO2SM8QJCEFpjEmBQjJkPJ1-nuXQ2o9BA7ZGBS951Xaftp1JG4TLh8EZEBiIeN-8ArSSpf9bgjCJiHwV78gAiqhDPzRQmfF3X4qCUEZEH0cfuh5GoBKPtO6b-yYVmwf4w92YuHQXlLsf-w9SAchY-FzGhTkNd2L8FOjwa694R_Go2YhQw93WIs2EqylhSJ594VaMc9Te5jaw9NISXE45GhKvjTLUmyMB0Ng2AbMk-W3hJ1bY2xW9n_3FbVfz1KIFKNN3LrHun5yReR-sQgwCj9oJzRCDYxsqhVgF7Sei4UrsY41ELkXcgfIKEKpAb9bMA

Could you post the snippet of code that you use to call the tokeninfo endpoint?

Well we do it back-end. What could this be potentially?
const string url = "https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=";
var result = await _client.GetAsync(url + token);
var content = await result.Content.ReadAsStringAsync();
var tokenInfo = JsonConvert.DeserializeObject<TokenInfo>(content);

getAuthResponse returns an object with id_token and access_token as properties. Are you properly extracting the ID Token?

Well there is not much to extract just response.id_token; Regarding the token as you can see from the previous example it seems that the token is being sent, at least it looks like a token. Also I want to emphasize that this happens only when token is expired, because the first time everything works fine. Also when I used the reloadAuthResponse call this error never happened.
Maybe you could point me to some resource or repository that correctly uses GAPI to login and re-login on token expiration?
Also if you have something in mind regarding what could help to debug this issue please let me know, I could try some more stuff out. Thanks.

@GEMI it's expected that this call fails when the id_token has expired. Are you saying that it's when you re-login more than 1 hour after the first time that this error happens? Unless you call reloadAuthResponse?

Yes, exactly. So am I supposed to use reloadAuthResponse to refresh token or not? Because I thought you said it is not needed. Sorry I am confused with the workflow here.

You should not have to, @GEMI, as the library should not reuse a cached expired token. It seems there might be a bug here. Is your computer clock properly set and synced?
After you have signed in, please check the Application tab of the Developers Console (in Chrome). There is a SessionStorage section. Click the https://accounts.google.com sub-section. There will be an entry with a key starting with oauth2_tr. The value saved is the full token response. It has an expires_at field. Could you check that the following JS code returns something in the order of ~3600 (right after signing in for the first time):
(expires_at - new Date().getTime()) / 1000

To confirm: the issue happens only in the same tab or not? If you open a new tab, the user should be automatically signed in and a new and valid token should be issued. Is that the case? (if you open a new tab you actually don't have to wait for an hour, the cached token is per tab)

Hi, yes the time after login is approx 3600. Yes the issue happens when trying to reload in the same tab. However, I will double check to see if this happens with a new tab as well.


Allow for inferno-like palettes for single channel images in plot_image()

For inspection of single stainings, it can be quite useful to use a perceptually uniform color palette from matplotlib, like inferno, instead of different intensities of an RGB color (https://matplotlib.org/stable/users/explain/colors/colormaps.html)
Currently we enforce the conversion of the image to RGB, thereby preventing the usual behavior of the matplotlib 'cmap' argument.
What do you think?

This has been added in e5959ae


[SPARK-39929][SQL] DS V2 supports push down string  functions(non ANSI)

What changes were proposed in this pull request?
support more  commonly used string functions
BIT_LENGTH
CHAR_LENGTH
CONCAT
The mainstream databases support these functions show below.

Function
PostgreSQL
ClickHouse
H2
MySQL
Oracle
Redshift
Presto
Teradata
Snowflake
DB2
Vertica
Exasol
SqlServer
Yellowbrick
Impala
Mariadb
Druid
Pig
SQLite
Influxdata
Singlestore
ElasticSearch

BIT_LENGTH
Yes
Yes
Yes
Yes
Yes
no
no
no
no
Yes
Yes
Yes
no
Yes
no
Yes
no
no
no
no
no
Yes

CHAR_LENGTH
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
no
Yes
Yes
Yes
Yes

CONCAT
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
no
no
no
Yes
Yes

Why are the changes needed?
DS V2 supports push down string functions
Does this PR introduce any user-facing change?
'No'.
New feature.
How was this patch tested?
New tests.

Can one of the admins verify this patch?

cc @beliefer

retest this please

@HyukjinKwon Thank you for ping me.

@zheniantoushipashi Please update the PR title with [SPARK-39929][SQL] DS V2 supports push down string functions(non ANSI).

LGTM. cc @cloud-fan

thanks, merging to master!


Autopilot Reset Question

To use Autopilot Reset, do the devices have to be enrolled in Autopilot Devices?

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

ID: 98a662f1-c2aa-33ad-0e71-d0cbb288d053
Version Independent ID: 196f1c8d-3179-c173-194f-08bf3a6f82ca
Content: Reset devices with remote Autopilot Reset (Preview)
Content Source: windows/deployment/windows-autopilot/windows-autopilot-reset-remote.md
Product: w10
GitHub Login: @greg-lindsay
Microsoft Alias: greg-lindsay

Judging by the linked documentation page, I would say "yes", because it looks obvious to me.

To enable a device for a remote Windows Autopilot Reset, the device must be MDM managed, joined to Azure AD, and configured to use the enrollment status page.

Windows Autopilot Enrollment Status page
The Windows Autopilot Enrollment Status page displaying the status of the complete device configuration process. Incorporating feedback from customers, this provides information to the user to show that the device is being set up and can be configured to prevent access to the desktop until the configuration is complete.

Even so, I recommend verifying this by testing yourself (if possible) or wait for more feedback from other experienced users or one of the Docs team members.

@officedocsbot assign @mypil

Resolution of the issue #3010 using the PR #3191

I tested on my lab, that feature for Autopilot Reset (preview) will stay grayed out UNLESS you reset the device using Autopilot (either using Fresh Reset or manually sysprep the device).
This should be added to documentation.

@Neckross : Do you have a suggestion for how it could be phrased (written) and if it can be added to the Pull Request #3191 by @j0rt3g4 ?

I've added a rephase into my sentence to add the comments from @Neckross. Hopefully, @nenonix  and @illfated  will get it reviewed and approved soon 👍
#3191

@rlawrimore : The PR has been merged into the master branch of the docs here on Github. We hope you feel that your question has been answered. The changes will migrate to the docs.microsoft.com page within a few days, but if there is anything we have not covered so far, feel free to comment again to add more information to this issue. Otherwise, we hope you are happy with the information provided in the pull request, its following commit and this issue.

@officedocsbot close


Remove URL encode from uri.py.

This is used in Elastic search cache. Ids are base64 encoded, so likely useless and breaking a lot of things.

Hey, @cpommier can I work on this!! And can you help me out what I have to remove?

Hi @sumit-158 , thanks a lot for voluntering ! I'll get back to you ASAP to give you more information.

Thanks @sumit-158
Here are some starter info:
The code to modify is in uri.py .
There is some unit test available. But the most reliable is probably the integration test available in common test folder.
But I would need to check a ocuple of things first. The code has moved in two years, and this might be handled dierently now. I'll get back to you ASAP


Warning and note in sqlite3-binding.c

Every time my application starts or tests are run I get the following in my output:
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
       |          ^~~~~~~

I can get round this by adding -w to the CFLAGS option inside sqlite3.go
Is there a better way to get rid of this warning and note?
I am running on Fedora 32 x86_64

I have added -Wno-return-local-addr" to my environment variables in .bashrc which has got rid of all that mess for the time being.
export CGO_CFLAGS="-g -O2 -Wno-return-local-addr"

A user of a package I maintain complained about the same thing. If you're able I'm interested in your gcc, glibc, and libsqlite3 versions.

with
sqlite3 --version
	3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837balt1

build with gcc10
	echo $CC $CXX $CPP
		/usr/bin/gcc-10 /usr/bin/g++-10 /usr/bin/cpp-10
	$CC --version
		gcc-10 (SUSE Linux) 10.1.1 20200507 [revision dd38686d9c810cecbaa80bb82ed91caaa58ad635]
	go build github.com/mattn/go-sqlite3
		# github.com/mattn/go-sqlite3
		sqlite3-binding.c: In function ‘sqlite3SelectNew’:
		sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
		128049 |   return pNew;
		       |          ^~~~
		sqlite3-binding.c:128009:10: note: declared here
		128009 |   Select standin;
		       |          ^~~~~~~

and, build with gcc9
	echo $CC $CXX $CPP
		/usr/bin/gcc-9 /usr/bin/g++-9 /usr/bin/cpp-9
	$CC --version
		gcc-9 (SUSE Linux) 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2]
	go build github.com/mattn/go-sqlite3

=====> NO SQLITE3 ERROR <====

Yeah, looks like a gcc 10 issue, 9.3 works fine. Same problem with our user. It's likely the issue lies with libsqlite3-0 3.31.1 and gcc 10.x. Either a new warning being detected or a problem with 10.x - a lot of issues were resolved in 10.1 marked as regressions introduced between 9.3 and 10.0 (~700) so it could be that.

fyi, with
sqlite3 --version
	3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837balt1

build with gcc10
	echo $CC $CXX $CPP
		/usr/bin/gcc-10 /usr/bin/g++-10 /usr/bin/cpp-10
	$CC --version
		gcc (SUSE Linux) 10.0.1 20200501 (prerelease) [revision 2aaa1dc3c87372fd55c1c33aa7a9612c4e5179e8]
	git clean -xfd; git reset --hard; git pull
	go build github.com/mattn/go-sqlite3
		# github.com/mattn/go-sqlite3
		sqlite3-binding.c: In function ‘sqlite3SelectNew’:
		sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
		128049 |   return pNew;
		       |          ^~~~
		sqlite3-binding.c:128009:10: note: declared here
		128009 |   Select standin;
		       |          ^~~~~~~

and, build with gcc9
	echo $CC $CXX $CPP
		/usr/bin/gcc-9 /usr/bin/g++-9 /usr/bin/cpp-9
	$CC --version
		gcc-9 (SUSE Linux) 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2]
	git clean -xfd; git reset --hard; git pull
	go build github.com/mattn/go-sqlite3

=====> NO SQLITE3 ERROR <====

looks likely
git clone https://github.com/sqlite/sqlite.git
cd sqlite
git checkout version-3.31.1
gcc --version
	gcc (SUSE Linux) 10.1.1 20200507 [revision dd38686d9c810cecbaa80bb82ed91caaa58ad635]
./configure
make
	...
	libtool: link: /usr/bin/gcc-10 -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -D_FORTIFY_SOURCE=2 -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -DSQLITE_OS_UNIX=1 -I. -I/usr/local/src/sqlite/src -I/usr/local/src/sqlite/ext/rtree -I/usr/local/src/sqlite/ext/icu -I/usr/local/src/sqlite/ext/fts3 -I/usr/local/src/sqlite/ext/async -I/usr/local/src/sqlite/ext/session -I/usr/local/src/sqlite/ext/userauth -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG -DSQLITE_THREADSAFE=1 -DSQLITE_HAVE_ZLIB=1 -DHAVE_READLINE=0 -DHAVE_EDITLINE=1 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_DESERIALIZE -o sqlite3 shell.c sqlite3.c  -ledit -ldl -lz -lpthread -Wl,-rpath -Wl,/usr/local/sqlite-gcc10-test/lib64
	In function 'zipfileComparePath',
	    inlined from 'zipfileUpdate' at shell.c:5784:11:
	shell.c:5656:17: warning: '__builtin_memcmp_eq' specified size between<PHONE_NUMBER>1562067968 and<PHONE_NUMBER>3709551615 exceeds maximum object size<PHONE_NUMBER>854775807 [-Wstringop-overflow=]
	 5656 |   if( nA==nB && memcmp(zA, zB, nA)==0 ) return 0;
	      |                 ^~~~~~~~~~~~~~~~~~
	sqlite3.c: In function ‘sqlite3SelectNew’:
	sqlite3.c:128048:10: warning: function may return address of local variable [-Wreturn-local-addr]
	128048 |   return pNew;
	       |          ^~~~
	sqlite3.c:128008:10: note: declared here
	128008 |   Select standin;
	       |          ^~~~~~~
	sqlite3.c:128008:10: note: declared here
	sqlite3.c: In function 'sqlite3SelectNew':
	sqlite3.c:128048:10: warning: function may return address of local variable [-Wreturn-local-addr]
	128048 |   return pNew;
	       |          ^~~~
	sqlite3.c:128008:10: note: declared here
	128008 |   Select standin;
	       |          ^~~~~~~
	sqlite3.c:128008:10: note: declared here
	...

In my case...
$ go get -u -v github.com/mattn/go-sqlite3
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
       |          ^~~~~~~

ClearLinux version:
$ swupd check-update
Current OS version: 33100
Latest server version: 33100
There are no updates available

GCC Version
$ gcc --version
gcc (Clear Linux OS for Intel Architecture) 10.1.1 20200513 releases/gcc-10.1.0-36-gf2b77b928a
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

windows 10 x64 2004 has the same issue

This is an upstream bug with libsqlite3, not sure where their bug tracker is.

This is an upstream bug with libsqlite3, not sure where their bug tracker is.

https://www3.sqlite.org/cgi/src/ticket

There's a discussion on the SQLite Forum about this issue, including a candidate patch.

Facing this issue with GoORM, which uses this. Any workarounds?

fixed in sqlite3 release 3.33, so go-sqlite3 1.14.1 and later doesn't have this issue
P. S. actual go-sqlite3 release is 1.14.7, not 2.0.x

export CGO_CFLAGS="-g -O2 -Wno-return-local-addr"

itz work

Don't disable these warnings, people. You want to see them.
It's like seeing a small fire, closing your eyes and pretending it's not there!

You have described the whole tech industry

Hello I am facing the same problem while I try to install gophish.
I use sudo go install github.com/gophish/gophish@latest ( Because get is deprecated from go dependecies and should add the value @latest or version.
github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
|          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
|          ^~~~~~~
This is the error I get. Please is there any workaround?

@shalota1 gophish is using v2.0.3 of this library, which is quite old. You will need to ask the maintainer to upgrade to the latest version (v1.14.14) and try that.

For Windows user
go env -w CGO_CFLAGS="-g -O2 -Wno-return-local-addr"

@shalota1 gophish is using v2.0.3 of this library, which is quite old. You will need to ask the maintainer to upgrade to the latest version (v1.14.14) and try that.

Thanks for pointing it out. Tried go get<EMAIL_ADDRESS>and that updated the few dependencies. Able to build successfully in my Amazon Linux box.
Have raised a PR with fix. https://github.com/gophish/gophish/pull/2848

@shalota1 gophish is using v2.0.3 of this library, which is quite old. You will need to ask the maintainer to upgrade to the latest version (v1.14.14) and try that.

Thanks for pointing it out. Tried go get<EMAIL_ADDRESS>and that updated few dependencies. Able to build successfully in my Amazon Linux box. Have raised a PR with fix. gophish/gophish#2848

Thanks - I was able to use your proposed fixes to the go.mod and go.sum files, after doing a git clone https://github.com/gophish/gophish.git then a go build in the directory once the two files were modified. For some reason the go get command didn't work, nor did the go install commands.

Closing because I believe this issue has long since been fixed in SQLite itself.


Group 2 Initial Report

Initial_Report.pdf contains the report.

Review from Group 18:
We also found out that sectioning the matrix into columns gave the best vectorization, but we haven't yet tried copy optimization together with blocking. When you go to implement blocking, are you going to choose block sizes based on the number of threads or on the cache sizes of the processors on the cluster?
What exactly is the formula for scaling efficiency (used in the first two plots) and is the speedup chart (the third figure) for weak or strong scaling?
The MPI_Allgather function is indeed expensive. Maybe you could try alternative communication methods and see if you find something faster. You had three great ideas tuning the serial code.
The pointer swapping and copy optimization (by transposition) really boosted performance. With the copy optimization scheme, do you just copy it once initially and then write/update it as you square the matrix?

Impressive work with MPI, well done!
Vectorization and memcpy elimination are definitely working and the results look very good. Have you tried blocking to further optimize the use of cache memory? Also, playing with optimization flags will help the speed a lot. I suppose you all know what you're doing. The performance looks really good at this point.
One suggestion I have is trying ternary operator to replace if statement in the innermost loop. Depending on where you are in the optimization, this can give you good amount of speedup.
Lastly, maybe you can try use _mm_malloc instead of malloc for the compiler to vectorize the loops.


osvr_server crashes on launch on Mac OS X in hidapi code

Currently, osvr_server crashes on Mac OS X with the following output:
[OSVR] Performing hardware auto-detection.
2016-01-08 13:49:23.233 osvr_server[45387:1885760] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 32} out of bounds; string length 3'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff907c3ae2 __exceptionPreprocess + 178
	1   libobjc.A.dylib                     0x00007fff86c7bf7e objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff907c398d +[NSException raise:format:] + 205
	3   CoreFoundation                      0x00007fff9075eaba -[NSTaggedPointerString getCharacters:range:] + 394
	4   CoreFoundation                      0x00007fff9068afc6 __CFStringEncodeByteStream + 4054
	5   com_osvr_Multiserver.so             0x000000010967b4fd make_path + 123
	6   com_osvr_Multiserver.so             0x000000010967b2c2 hid_enumerate + 408
	7   com_osvr_Multiserver.so             0x000000010966036f _ZN18VRPNHardwareDetectclEPv + 69
	8   com_osvr_Multiserver.so             0x00000001096602b4 _ZN4osvr4util19functor_trampolines6detail6CallerINS1_11this_last_tELi1ELi1EE11SpecializedIPFcPvS7_E18VRPNHardwareDetectE4callES7_S7_ + 18
	9   libosvrPluginHost.0.dylib           0x000000010929d47c _ZN4osvr10pluginhost37PluginSpecificRegistrationContextImpl30triggerHardwareDetectCallbacksEv + 32
	10  libosvrPluginHost.0.dylib           0x000000010929ef16 _ZN4osvr10pluginhost19RegistrationContext21triggerHardwareDetectEv + 28
	11  libosvrServer.0.dylib               0x00000001091d9ea0 _ZN4osvr6server10ServerImpl8m_updateEv + 214
	12  libosvrServer.0.dylib               0x00000001091da055 _ZN4osvr6server10ServerImpl6m_loopEv + 43
	13  libosvrServer.0.dylib               0x00000001091daef1 _ZN5boost6detail11thread_dataIZN4osvr6server10ServerImpl5startEvE3$_2E3runEv + 73
	14  libboost_thread-mt.dylib            0x00000001093dc715 _ZN5boost12_GLOBAL__N_112thread_proxyEPv + 53
	15  libsystem_pthread.dylib             0x00007fff8ee98c13 _pthread_body + 131
	16  libsystem_pthread.dylib             0x00007fff8ee98b90 _pthread_body + 0
	17  libsystem_pthread.dylib             0x00007fff8ee96375 thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]    45387 abort      ./bin/osvr_server ./share/osvrcore/osvr_server_config.json

This can be fixed by updating hidapi in VRPN (https://github.com/vrpn/vrpn/issues/95, https://github.com/vrpn/vrpn/pull/128).

Any status on this?

Status is that the homebrew build works around it, as does the non-windows-workaround branch (do the same thing in different ways). Fix not merged to mainline in VRPN and OSVR because it breaks things on Windows due to changes in behavior, so I'll have to do some work on it first.

I saw the non-windows-workaround branch. When I tried installing osvr-core from homebrew, I experienced this issue.

I was under the impression that https://github.com/OSVR/Homebrew-OSVR/blob/master/osvr-core.rb#L23 should workaround that bug... at least it says it does.

@enilsen16 have you dont a brew update recently? that should, and does for me.

This should be fixed now, as master is now using a version of HIDAPI based on the upstream master. You can use the OSVR-Core master branch since #373 was merged - just make sure that if you're using an existing git clone, that you run git submodule update --recursive after switching branches.


[3.8.0] Peacekeeper gives FIR Dollars if you only have a stack of FIR dollars in your stash when selling items to him

General information:
Project issue is for:
Server
Expected result:
Receiving non-FIR dollars when selling items to Peacekeeper
Actual result:
My FIR dollar stack increases when I sell items to Peacekeeper
How to reproduce:

Only have FIR Dollars in your stash
Sell items to Peacekeeper

Attachments

server-2024-02-08.log (1169 KiB)
LogOutput.log (11 KiB)
2024.02.08_3-46-24_<IP_ADDRESS>.28476 traces.log (49 KiB)
EscapeFromTarkov 2024-02-08 06-48-03.mp4 (25979 KiB)

Originally written by Hicchy

might be due to us finding first suitable stack and not checking their FiR status, we should be moving on if its FiR

Originally written by CWX

I haven't played Live on either of the last two wipes, but this is exactly how Live behaved prior to that, and it behaved like that with all traders, and both Dollars and Roubles (nobody pays you in Euros).
2 wipes ago I routinely used this behavior to convert my non-FIR roubles to FIR--Vendor behavior used to be (and might still be) to fill partial money stacks before creating new ones, even if existing partial stacks were FIR. When filling partial FIR stacks, FIR status was preserved.
It should be pretty easy to test this on live:

Make sure you have only 1 partial non-FIR stack of roubles;
Put your 1 partial non-FIR Rouble stack inside a container, or on your PMC;
Split an FIR stack of Roubles into multiple smaller ones, which each keep , and put them bare at the top of your stash;
Sell > 500k Roubles worth of stuff to anyone but Peacekeeper;
Vendor might fill the partial non-FIR stack first, and if BSG hasn't changed anything, the rest should go into any partial FIR Rouble stacks until they're all full, at which point any new stack created will be non-FIR.

Originally written by Brin

Tested and reproduced on live, selling to Peacekeeper with only a FIR stack of USD adds to that stack

Attachments

FIRStacks.mp4 (5760 KiB)

Originally written by DrakiaXYZ


remove unused configMap field external-gw-nic

Pull Request

[x] Make sure you have followed Kube-OVN Code Style.

What type of this PR
Examples of user facing changes:

Features
Bug fixes
Docs
Tests

Which issue(s) this PR fixes
Fixes #(issue-number)

这个功能是要用 provider-network，vlan，subnet crd 来维护嘛？


Documentation for certain APIs does not show up on DLPy page

Documentation for from_keras_model(), from_caffe_model(), and from_onnx_mode() is not visible on the DLPy documentation page.

I am closing this one as there is another one already opened.


In Seperated GWs setup, only one GW can respond to newly added resources of API product

Description

APIKeyValidator.getAPIProductURITemplates checks for the URI templates from the local entry swagger. However, the URI templates can be retrieved from the SubscriptionDataStore (in memory maps in API Gateway). In that way, we can remove the dependency in gateway for the local entry of API products as similar to APIs.

In API product update flow, the swagger which get saved in the local entry contains the old swagger.We call the updateAPIProductSwagger() after publishing to gateway with the old swagger. Inside updateAPIProductSwagger, after saving the swagger registry, it is published directly to Gateway as a synapse artifact .without saving in the DB as an GatewayArtifactDTO. Hence, in a scenario like in above comments (two node deployment) where GW relies on the event hub to retrieve the synapse artifact, the local entry does not get updated. Even though reported issue get fixed with first fix, features like Schema validation will still fail in similar deployments as updated swagger is not present in the local entry of the other gateway.

Steps to Reproduce
Steps to reproduce :

Creats a setup : 2 CP nodes (active active) and 2 GWs (active active) (attached configs)

Create an API product with resources

Add new resources to API product

Only one GW will be able to respond to requests to newly added resource (even after restart)

Affected Component
APIM
Version
3.2.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Closing as completed
Master fix: https://github.com/wso2/carbon-apimgt/pull/11928


Add ProjectPathProvider abstract for document tracker creation.

First iteration of live share replaced the document tracker factory entirely; however, this will be prone to breaking changes in the future when me make changes to document tracker to not rely on a file path. To pre-emptively prevent breaking changes I added a project path provider that can be overridden in the live share case. Note that one big difference here between old and new is that instead of being a MEF service implementation for the project path resolution we're bringing that to the Workspace service level.
Added tests to validate the two flows of the default project path provider.

Getting this in to unblock.


Files to modify do not exists

I followed the install procedure and installed the dependency with the given directive.
However, following the directives, the pytorch version installed is 1.5.1
The files specified to modify do not exists at the mentioned location.
Should the version being installed specifically be 1.3 ? If that so, what would be the command and compatible pytorch and vision to install ? the git and website of pytorch provides it only for version 1.5, 1.2 but not 1.3
https://pytorch.org/get-started/previous-versions/
Thanks

conda install pytorch=1.3 torchvision cudatoolkit=10.1 -c pytorch worked for me.
It installed:

pytorch 1.3.1
torchvision 0.4.2
cudatoolkit 10.1.243


Citizens NPCs listed in Webstats

We have some Citizens NPCs listed in Webstats. Is there a way to filter out all the players (NPCs) that don't have any statistics?

join_game would be a good stat to use as it only applies to real players.

Sure thing! It is here: https://keegcraft.neocities.org/
Click "Server Stats"
it would also be cool if I could remove players that we have previously banned.

Which of these players are Citizen NPCs? Every player has at least one score on the table, almost every one has a score for Walk. Do the NPCs have scores for Walk too?
As for removing players data, if they have scores on the scoreboard you can remove the scores with /scoreboard players reset <player>.

It looks like walk is indeed the stat that is making Citizen NPCs appear. I'll remove that stat. Thanks!


Bug:  the site doesn't load on Safari

End-user report via Facebook.  At least one person other than us uses this!

Maybe not -- not issues here.  Investigating.

Caching issue on the end-user side.  All g00d.


Date formats

i want to use a different date format i.e. DD-MM-YYYY for date, minDate, maxDate

I want too

I need too


Update installation instructions in readme

Description
Better align installation instructions to website: https://www.mudblazor.com/getting-started/installation
How Has This Been Tested?
Visually
Type of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] Documentation (fix or improvement to the website or code docs)

Checklist

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[ ] I've added relevant tests.

Thanks


Transform to JSON string

Hello there! Is there any possibility to transform yaml string to json string with saving properties order?
For example, we have an yaml file:
foo: bar
bar: baz
abc: 123

And expected output in my case should be equal to string with following content:
{
  "foo": "bar",
  "bar": "baz",
  "abc": 123
}

Thank you!

Found next solution.
const { safeLoad } = require('js-yaml')
const input = 'foo: bar\nbar: baz\nabc: 123'

JSON.stringify(safeLoad(input), null, 2)

Fields order should be saved.


Could it be possible to explain where each of the parameters can be fetched in actions yml file

Not able to figure out the different apple parameters used and what they correspond to. Is there a document or a post that explains it ?
thanks in advance

Shamis,
I don't know if you were able to figure out where you go for these values, but I think I know where you find those values.
You can goto the following URL on Apple's site to get the App Store Connect values;
https://appstoreconnect.apple.com/access/api
For the CERTIFICATES_FILE_BASE64 and the CERTIFICATES_PASSWORD, you will need to export your Distribution Certificate as a p12 file. Keychain will ask for a passcode you want to use later for importing the private key. Use that passcode for the CERTIFICATES_PASSWORD value. You will need to convert the p12 file to a base64 text to store the secret for CERTIFICATES_FILE_BASE64. There are a couple of different ways of doing this, but you can use a command line statement in macOS that looks like this;
base64 -i CertificatesExample.p12 -o CertificatesExample.base64.txt

Thanks for the response, I was not able to figure it out. But ended up successfully able to use the xcode commands directly in the workflow and make it work.
Thanks anyways.


Add data pipeline resource

We need the ability to limit who can launch a Data Pipeline but no datapipeline resource is available.  At a minimum we would want to have tag, untag, mark-for-op, notify, and delete actions, and the and, marked-for-op, or, and value filters should be available.

@whit537 thanks

PR w/ verbose logging in https://github.com/whit537/cloud-custodian/pull/3.

Abbreviate to dp (or other?) or use datapipeline?


pre-commit update markdownlint; enable rules MD009,MD019; fix license…

… header
https://github.com/DavidAnson/markdownlint/blob/main/doc/md009.md
https://github.com/DavidAnson/markdownlint/blob/main/doc/md019.md
Description
This PR...

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[X] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI
[ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

How did you try to break this feature and the system with this change?

@blueorangutan package

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✖ debian ✔ suse15. SL-JID 11931

@blueorangutan package

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✖ debian ✔ suse15. SL-JID 11937

@blueorangutan package

Packaging result [SF]: ✔ el8 ✔ el9 ✖ debian ✔ suse15. SL-JID 11956

Packaging result [SF]: ✔ el8 ✔ el9 ✖ debian ✔ suse15. SL-JID 11956

looking if I can build the debian one, I see no sensible error in the backend.

@blueorangutan package

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 11958

GHA are proofing this one, merging


Use console.log and console.error

I read the console.log NodeJS source code, and I see no good reasons to prefer process.stdout.write over a beautiful console.log.
The console.log is more standard and the change reduces the number of lines of code.

Well, in ThingML, we have print and println. While console.log is indeed a good candidate for println, we had some issues using it for the print, since it seems console.log always terminates with a new line... Can you really do a print?
However, if relying on console.log makes things easier in your project of re-unifying the different JS compilers, it is probably worth not caring too much about the print (which anyway, is only supported in NodeJS and now in the browser)
@ffleurey ??

Oh I see. I could make a version which use console.log as fallback.

That would be perfect :-)

The new implementation has a few more "if" which may have a performance impact for big data CSV transformations using ThingML.


change ContextExtensionMethods namespace

The ContextExtensions should be in Microsoft.Bot.Builder namespace; in order to use them, users need to see them. They don't see them if they have to import a completely separate namespace. In JS SDK, this hurdle doesn't exist; shouldn’t in .Net.

just to reiterate, this is actual customer feedback on what they're expecting. They still don't think that C# has SendTyping and Delay due to this issue.


Incorrect property name in "CreateCollectionOptions" for ArangoDB 3.7

Version: 7.0.0-rc.1
I'm not 100% sure if arangojs supports the upcoming release of ArangoDB 3.7, so please feel free to close this if so.
I was testing creating a collection programatically as described in the documentation:
const collection = database.collection(col.name);
const collectionExists = await collection.exists();

if (!collectionExists) {
  await collection.create({
    validation: {
      rule: {
        properties: { nums: { type: "array", items: { type: "number", maximum: 6 } } },
        additionalProperties: { type: "string" },
        required: ["nums"],
      },
    },
  });
}

The create method executes successfully, however, when inspecting the collection via the web interface or retrieving the properties of it via the REST API, the schema is not present. This is due to the fact that the options for the create method are spread into the POST request for /_api/collection (https://github.com/arangodb/arangojs/blob/main/src/collection.ts#L3163), but the Swagger documentation lists the property name as schema rather than validation.

I've updated this and tested it locally, and it resolves the issue. I'm happy to raise a PR but I wanted to ensure that the library is supporting ArangoDB 3.7.

Looks like I was working off an earlier development version and the property may have been renamed.


Drag/drop tests do not handle dialog

When you drag drop files in Solution Explorer, we pop up a dialog warning you that it may take some time (for some reason - @DinoV, do you remember why?).
The tests don't detect or close this window, so it gets stuck and breaks the rest of the run.

I'm trying to figure out which drag & drop tests you are referring to.
It's not a problem for:

DragDropCopyCutPaste
NewDragDropCopyCutPaste

There are some more drag & drop tests in PythonToolsUITests.UITests, those haven't been ported to the new runner.

I think I may have got all of these as part of porting the tests to the new runner. Let's close and reopen if we start seeing these tests time out in the runs.


add nonsponsored.com

Thank you!

Curious why my site isn't showing up in the leaderboard. Lighthouse 6 gives it 100's across the board, there were no issues with the PR, and sites that were submitted after mine are on the leaderboard.
What did I miss?


Events ending at midnight of a week can slip in the beginning of the next week

I visit https://nhn.github.io/tui.calendar/latest/tutorial-example00-basic and hide all calendars but one.  I change to the “2 weeks view”, so that the week has 7 days and starts at Sunday.  Let's say the first displayed week is 11-17 October 2020 and the second displayed week is 18-24 October.
I create an event that starts on 17th October and ends in the midnight 17/18 Oct. (end 2020-10-18 00:00:00).  This event does not belong to the second week, yet it is rendered on 18 Oct (there is a bullet, that can be clicked). The rendering gets more obvious, if the event is “focused”, which “focused state” I cannot get over that interface.
Proposed fix for src/js/controller/viewMixin/core.js:getScheduleInDateRangeFilter()
diff --git a/src/js/controller/viewMixin/core.js b/src/js/controller/viewMixin/core.js
index caadbd3d..078d5bd6 100644
--- a/src/js/controller/viewMixin/core.js
+++ b/src/js/controller/viewMixin/core.js
@@ -138,13 +138,12 @@ var Core = {
         return function(model) {
             var ownStarts = model.getStarts(),
                 ownEnds = model.getEnds();
-
             // shorthand condition of
             //
             // (ownStarts >= start && ownEnds <= end) ||
-            // (ownStarts < start && ownEnds >= start) ||
+            // (ownStarts < start && ownEnds > start) ||
             // (ownEnds > end && ownStarts <= end)
-            return !(ownEnds < start || ownStarts > end);
+            return ownEnds > start && ownStarts <= end;
         };
     },

Simply said, when ownEnds(the end of the event) == start(begin of the rendered period) == midnight, then the event does not belong to the rendered period.

start: 2020-10-17 00:00:00
end: 2020-10-18 00:00:00

It is allday schedule. It will be rendered full-filled rect.
start: 2020-10-18 00:00:00
end: 2020-10-18 00:00:00

It is time schedule. You can specify the schedule at that time, not just the period.
It will be rendered bullet.

When the start is at midnight the defect is not visible.
With start 2020-10-17 23:00 and end 2020-10-18 00:00 it triggers.   The event is displayed for 17 Oct, but on 18 October there is addition a bullet, only bullet without event description.

Okay. Thanks! I reproduced.
I'll fix it.

The proposed change ensures, that the object does not appear in matrices for the second week.  I guess that full-day events also appear in matrices for the second week, but are not rendered.  The fact, that these are not rendered might reveal another defect.

start : 2020-10-17 23:00
end : 2020-10-18 00:00

The schedule should only be rendered 17 Oct.
It's only happening where this week ends.
start : 2020-10-16 23:00
end : 2020-10-17 00:00

It renders well. It renders only 16 Oct.

I guess that full-day events also appear in matrices for the second week, but are not rendered.

I don't understand.
Will the all-day schedule be rendered in the second week?

I mean that the underlying JavaScript uses a variable called matrices that contains the data, which should be rendered.  When I investigated the case, that variable contained also the All-Day-Events for the next week, when the events ended at midnight of the previous week.  The All-Day-Events were not rendered, but were contained in matrices for the second week.


Ticket Showing halted post 11 am IST

The ticket was supposed to be open from 11 AM IST on 18-10-2022. But it's been 30 minutes and it's still in HALTED state.It would be better if you could update the website with tentative time.

Hi !
We are facing some issues and we will be back soon. Stay tuned

@Raghavi02bala the tickets will be live as soon we publish it on our social media channels (slack, twitter, instagram, linkedin)


settings sync disabled when creating a new profile

Type: Bug
I am logged in and should have settings syncing with my microsoft outlook.com acount
I created a new profile and copied from the doc writer template.  I received an error that settings sync was disabled because I was sending bad commands.
VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:48:16.874Z)
OS version: Darwin arm64 23.2.0
Modes:

System Info

Item
Value

CPUs
Apple M2 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
6, 24, 24

Memory (System)
16.00GB (0.87GB free)

Process Argv
--crash-reporter-id 7f1a2c9a-6598-4386-84df-8d0c590b7500

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

powershell
ms-
2023.8.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vshan820:30294714
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
py29gd2263:30899288
vsclangdc:30486549
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30917236
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2cf:30928864
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232
cp7184t3:30927821

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


CosmosDB Linux Docker Image - Fails to start on Azure DevOps hosted agent

Describe the bug
Using Azure DevOps and a ubuntu-latest hosted agent, when starting the container, the container returns right away the following:
This is an evaluation version.  There are [165] days left in the evaluation period.
Shutting Down
Shut Down

To Reproduce
Create an Azure DevOps pipeline with the following:
pool:
  name: Azure Pipelines
  vmImage: 'ubuntu-latest'
jobs:
- job: TestJob
  displayName: 'My Job'
  steps:
  - task: PowerShell@2
    name: showNetAdapters
    displayName: 'Show NetAdapters'
    inputs:
      pwsh: true
      targetType: inline
      script: |
        ifconfig
        $ipAddress = (hostname -I | awk '{print $1}')
        Write-Output "IpAddress = $ipAddress"
  - task: PowerShell@2
    name: startCosmosDb
    displayName: 'Start Azure Cosmos DB emulator'
    inputs:
      pwsh: true
      targetType: inline
      script: |
        $ipAddress = (hostname -I | awk '{print $1}')
        $containerId = (docker create -p 8081:8081 -p 10251:10251 -p 10252:10252 -p 10253:10253 -p 10254:10254 -m 3g --cpus=2.0 -e AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 -e AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=false -e AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=$ipAddress mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator)
        Write-Host "##vso[task.setvariable variable=cosmosDbContainerId]$containerId"
        docker start $containerId
        Start-Sleep -Seconds 5
        $isStarted = $false
        while ($isStarted -eq $false) {
            $logs = (docker logs $containerId)
            if ($logs.Contains('Started')) {
                Write-Output "Container $containerId started."
                $isStarted = $true
                break;
            }
            Write-Output "Waiting for container $containerId to start"
            Write-Output ($logs | Out-String)
            Start-Sleep -Seconds 5
        }
  - script: |
      echo 'ContainerId = $(cosmosDbContainerId)'
      docker logs $(cosmosDbContainerId)
    displayName: Diagnostics
  - script: |
      ipAddress="hostname -I | awk '{print $1}'"
      curl -k https://$ipAddress:8081/_explorer/emulator.pem > $(Agent.TempDirectory)/emulatorcert.crt
      cp $(Agent.TempDirectory)/emulatorcert.crt /usr/local/share/ca-certificates/
      update-ca-certificates
      echo "##vso[task.setvariable variable=cosmosDbEndpoint]https://$ipAddress:8081"
    displayName: 'Prepare emulator'
  - script: |
      if [ ! -z "$(cosmosDbContainerId)" ];
      then
        docker rm -f $(cosmosDbContainerId)
        rm -f /usr/local/share/ca-certificates/emulatorcert.crt
      fi
    displayName: 'Clean Azure Cosmos DB emulator'
    condition: always()

Expected behavior
The container should create the partitions and return "Started" at some point
Actual behavior
The container exits and the logs shows
This is an evaluation version.  There are [165] days left in the evaluation period.
Shutting Down
Shut Down

Additional context
Can't use older images (tags) to see if the code has changes since, as it fails the evaluation time check
Is there something I can add as environment variable to get more logs out to diagnose the problem?

This is not an issue that the Cosmos DB SDK team can actually help with, since the failure is related to the respective Azure DevOps agent and not the Cosmos SDK or the Linux emulator (especially since the same script works when run locally).
Please instead open a support ticket with the Azure DevOps, feel free to mention our Cosmos DB Emulator team if they need to reach out for additional help.


Unable to read from external storage using 'readAsBinaryString' method in Android 11

Bug Report
Unable to read from external storage(file:///storage/emulated/0/Download/) using 'readAsBinaryString' method
Problem
What is expected to happen?
Should be able to read file and success of  file.readAsBinaryString() method should have binary of selected file.
What does actually happen?
Success of  file.readAsBinaryString() is returning null
Information

Command or Code

self.file.readAsBinaryString(path, fileName)
                        .then(function (success) {
                        self._zone.run(function () {
                            self.attachmentFile = {
                                fileName: onlyName,
                                fileExtension: ext,
                                data: btoa(success)
                            };
                        });
                    }).catch(function (error) {
                        console.log("readAsBinaryString fail", error);
                    })

Environment, Platform, Device

Onplus 7
Version information

Android version - 11,
sdk - 30
cordova - 10.0.0
ionic - v3
cordova-plugin-file - "6.0.2"
Checklist

[x] I searched for existing GitHub issues
[] I updated all Cordova tooling to most recent version
[x] I included all the necessary information above

@breautek Thanks, Android-scoped-storage solves multiple problems. We are waiting for a new version like the camerahttps://github.com/apache/cordova-plugin-camera/blob/master/RELEASENOTES.md#600-aug-19-2021

@breautek Will there be any solution for this issue in the plugin in the foreseeable future?


SVG Sprite in JavaScript

Is your feature request about the Usage? Please describe.
If the website and SVG sprite are hosted in different servers (many big sites use dedicated server for static files), browser will prevent cross site reference:
<!-- http://en.opensuse.org/ -->
<svg class="remix">
  <use xlink:href="http://static.opensuse.org/svg/sprite.svg#stack-line"></use>
</svg>

Describe the solution you'd like
The solution is very easy. Provide JavaScript sprite.js:
(function(){
  var container = document.create('div');
  container.style.display = 'none';
  container.innerHTML = '<put svg sprite content here>';
  document.append('container');
})();

Thank you for your suggestion.
We'll talk about this.


fontconfig: Fix for HFS+ 1s date resolution issue

HFS+ (still common on macOS machines) only has a
date resolution of 1 second.  This change makes sure that
fcobjshash.h gets a newer timestamp than fcobjshash.gperf.
Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Oh yes! I had this problem on GPFS too.


testing results poor after model converging

Hi,
I've trained the model on a Synth 90k dataset and after ~442800 iterations reported perplexity is ~1.05, precision ~90% and loss in the 0.01-0.1 range. But when I run test command on same dataset numbers are much worse. Here is statistics after 1000 test steps: accuracy ~35%, perplexity ~170528.
This is train command:
aocr train datasets/synth90k_train.tfrecord --max-width 200 --max-height 31 --max-prediction 30
Ant this is test command:
aocr test datasets/synth90k_train.tfrecord --max-width 200 --max-height 31 --max-prediction 30
Any idea why such poor results?

Ok, just realized that there is a difference in calculating number of correct recognitions during training and testing: in training phase number of incorrect character recognitions is calculated using the levenshtein distance of prediction and ground truth label, but during test phase exact match is required for example to be correct (zero levenshtein distance).
Still, reported loss is much higher during testing: in the 10-15 range. As a consequence of that, model perplexitiy is also high: ~500000.

Hi,
There's a couple things to note here:

Loss and perplexity counts during testing are broken. I haven't looked too deep into it, but for now you might consider accuracy as your primary metric, not perplexity/loss.

You're right about Levenshtein during training vs full match during testing: it was important for my use-case where even the distance of 1 would invalidate the result. I'll introduce a CLI flag to calculate Levenshtein and not full match during testing as well.

As for low accuracy, I think you may be overfitting. Try inspecting the training/testing process through TensorBoard or play with hyperparameters. I'll also try Synth90k and see if I can reproduce the low score, but that may not happen for a week or so—this project is more of a hobby than a job.

Google ML Cloud fails on me today for some reason, so I've tested the results on a half-trained model (2100 steps with a batch size of 512). The training accuracy is roughly equal to the testing accuracy: ~79% correctness on training, ~76% on testing).
I'll publish full results once the model reaches convergence, but so far there's a few observations about training it on Synth90k:

I've had to limit the training and testing sets to the images of up to 302 pixels in width because it gets hella slow (so I'm actually using around 90% of the dataset).

The original annotations are lexicon-based (made to recognize words as a whole), and this model is attention-based (made to recognize individual characters). I imagine the word-based models would be faster and more accurate, but their application is obviously limited to the words they are trained to recognize. I've had to modify the annotations to train this model on Synth90k.

@antoniosimunovic I've released a few bug fixes in the latest version, and after moderate amount of training (~8000 iterations with a batch size of 512) I get ~93% accuracy during testing. More training and better tuning of hyperparameters could definitely increase that result.
Closing the issue, as the originally reported bug is now fixed. Thanks a lot for giving the model a try!

Trained checkpoint: https://www.dropbox.com/s/y9duuc4bzxwuh29/synth90k.zip?dl=0


Added support for release notes. This fixes #129

This fix adds support for release notes.

It displays release notes if any. Adds each newline into its own paragraph.
It makes sure that when uploading packages, we read the release notes field into the database.
It adds the migration for the database and the ReleaseNotes property to the entity.

Looks good. Pull!

Thanks! Done.


How can i scale up the Target VM's CPU core?

Hello, i'm sangjun.
I really interested in your project.
I want scale up the Target vm's Ram & cpu core.
So i fix some script in kafl/examples/windows_x86_64/Vagrantfile
https://github.com/IntelLabs/kafl.targets/blob/master/windows_x86_64/Vagrantfile
    # rsync doesn't work on WinRM
    config.vm.synced_folder ".", "/vagrant", disabled: true
    config.vm.provider :libvirt do |libvirt|
        libvirt.storage_pool_name = "newpool"
        # the qcow will be owned by the user
        # so kafl can use the VM's qcow as well
        libvirt.uri = "qemu:///session"
        # spice is better than VNC (mouse handling)
        libvirt.graphics_type = "spice"
        libvirt.cpus = 5
        libvirt.memory = 8192

But after vagrant up the vm, the max CPU proccessor limit is 4.
is there Any other way to scale up the number of the VM's CPU core??
However, I can scale up the ram size normally, but I can't scale up the CPU core...
Thanks.

Hello @5angjun,

I really interested in your project.

Thank you for your interest and opening issues on the problems that you face, this is a good learning experience for us.

But after vagrant up the vm, the max CPU proccessor limit is 4.

I tested this myself, first by configuring the libvirt.cpus value to 1, which worked.
And then by testing 5 and 6.
Looking at the virt-manager/CPU panel, the value is really propogated to libvirt XML domain.
So at this point I really believe this is a limitation of the Windows 10 Entreprise Evaluation image that we are using as a template.
You need to activate it ot unlock all of the features and remove hardware limitations.

Update: I found a solution ! :tada:
So libvirt has a very dump way of adding more CPUs, by simply adding another socket to the hardware.
And Windows 10 might be limited to 4 sockets max.
What you can do is play instead with the CPU topology, specifying how many cores are to be found per socket:

https://vagrant-libvirt.github.io/vagrant-libvirt/configuration.html#provider-options
https://libvirt.org/formatdomain.html#cpu-model-and-topology

Testing with 1 socket and 6 cores:

It works !


Serialization does not follow JSONApi Specification

According to the JSONAPIs documentation around Creating of CRUD resources, it shows that objects must be wrapped in a data tag like so
POST /photos HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": {
    "type": "photos",
    "attributes": {
      "title": "Ember Hamster",
      "src": "http://example.com/images/productivity.png"
    }
  }
}

However, this package (as shown in the README) does not wrap the object inside the data attribute.
moshi.adapter(Person.class).toJson(person);
// => { "type": "people", "attributes": { "first-name": "Yuki", "last-name": "Kiriyama", "twitter": "kamikat_bot" } }

Is this intentional? It seems like a breaking change for many existing projects however I believe the goal of this package is to built to spec.

Reference to the JSONApi documentation here:
http://jsonapi.org/format/#crud-creating

Umm... I'm sorry for the ambiguous documentation. To serialize a Resource as document, the Resource object should be added to a Document. Call either Resource.addTo(Document) or Document.addData(Resource). Here is an example:
person.addTo(Document.create());
// or
Document doc = Document.create();
doc.addData(person);
// and then
moshi.adapter(Person.class).toJson(person);
// => { "data": { "type": "people", "attributes": { "first-name": "Yuki", "last-name": "Kiriyama", "twitter": "kamikat_bot" } } }
// alternatively, for list of resources
moshi.adapter(Person[].class).toJson(new Person[] { person });
// => { "data": [{ "type": "people", "attributes": { "first-name": "Yuki", "last-name": "Kiriyama", "twitter": "kamikat_bot" } }] }


Look for options only if not null.

This PR adds logo option backward compatibility: https://github.com/CartoDB/cartodb/issues/8674
cc @xavijam

:+1:


Design Logo for my personal website with brand name Shaurya

logo that can be used as a spinner as well.

logo can have my initials SS for Shaurya Singhal but in a creative way. Don't simply put two SS.

@jugshaurya  I would like to work on it

@priyansh18, assigning it to you. let's see what you can come up with.
Feel free to improvise, No need to include SS or Shaurya if u dont want to.
Good Luck!


HTTP 500 for some pages

Hi,
I some pages are throwing http 500 errors. This doesn't seem to be a side wide issue but related to specific pages e.g.
https://vgmdb.info/album/107393
https://vgmdb.info/album/107565
https://vgmdb.info/album/107562

Thanks for the report! The album information panel seems to now have tr rows without any td cells, which the parsing logic failed at.

Thanks for the report! The album information panel seems to now have tr rows without any td cells, which the parsing logic failed at.


error: failed to select a version for the requirement bevy_dylib = "^0.14.0"

Bevy version
0.14.0
Relevant system information
System:

Apple M1 Pro
macOS Sonoma 14.5

Toolchain

cargo 1.80.0 (376290515 2024-07-16)
rustc 1.80.0 (051478957 2024-07-21)
target: aarch64-apple-darwin

What you did
Just using a new bevy repository with minimal configuration:
> mkdir bevy_empty && cd bevy_empty
> cargo new --bin .
> cargo add bevy

Replace main.rs with
use bevy::prelude::*;

fn main() {
    App::new()
    .add_plugins(DefaultPlugins)
    .run();
}

What went wrong
Running cargo run works a expected.
When I run using cargo run --features bevy/dynamic_linking I get the following error:

error: failed to select a version for the requirement `bevy_dylib = "^0.14.0"`
candidate versions found which didn't match: 0.14.0-rc.2, 0.14.0-rc.1, 0.13.2, ...
location searched: crates.io index
required by package `bevy v0.14.0`
    ... which satisfies dependency `bevy = "^0.14.0"` (locked to 0.14.0) of package `bevy_empty v0.1.0 (/Volumes/code/rust/bevy_empty)`
if you are looking for the prerelease package it needs to be specified explicitly
    bevy_dylib = { version = "0.14.0-rc.2" }

I have had this exact issue before (always on macOS, interestingly), and deleting Cargo.lock and target/ resolved it for me every time.

In that case I have no clue what is going on, sorry.

I have this occurring currently with 0.14.2

I have this occurring currently with 0.14.2

Same here, @jtmusselman, but clearing caches under ~/.cargo/registry solved it.

You can try running cargo info bevy_dylib. This refreshed the registry for bevy_dylib for me and fixed the issue.

cargo info bevy_dylib didn't work for me.  The specific file I had to delete was ~\.cargo\registry\index\index.crates.io-6f17d22bba15001f\.cache\be\vy\bevy_dylib on windows.


Makes objects function more swifty.

Changes in this pull request
Makes objects function more swifty.
Pull request checklist

[x ] All tests pass. Demo project builds and runs.
[ ] I added tests, an experiment, or detailed why my change isn't tested.
[ x] I have reviewed the contributing guide

@jessesquires had some comments on the last swifty PR we did after I merged it, gonna let him take a quick look at this before we import.


Optimization flags are ignored in builds

user defined optimization flags, i.e. bazel build -copt="xxx", regardless whether passed from command-line or are not propagated to compilation steps. This creates a problem especially in cuda builds and same for both clang and nvcc based builds. Here is an example
Bazel command-line
bazel build -s -c opt --copt="-march=sandybridge" --copt="-mtune=broadwell" --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" tensorflow/tools/pip_package:build_pip_package

one of the compilation commands
external/local_config_cuda/crosstool/extra_tools/bin/clang -MD -MF bazel-out/host/bin/tensorflow/compiler/xla/service/gpu/_objs/gpu_executable/tensorflow/compiler/xla/service/gpu/tuple_thunk.pic.d '-frandom-seed=bazel-out/host/bin/tensorflow/compiler/xla/service/gpu/_objs/gpu_executable/tensorflow/compiler/xla/service/gpu/tuple_thunk.pic.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -D__CLANG_SUPPORT_DYN_ANNOTATION__ -DTENSORFLOW_USE_JEMALLOC -DTENSORFLOW_USE_ABSL -DTF_USE_SNAPPY -DLLVM_ENABLE_STATS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DLLVM_BUILD_GLOBAL_ISEL -iquote . -iquote bazel-out/host/genfiles -iquote external/nsync -iquote bazel-out/host/genfiles/external/nsync -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/host/genfiles/external/local_config_sycl -iquote external/com_google_absl -iquote bazel-out/host/genfiles/external/com_google_absl -iquote external/jemalloc -iquote bazel-out/host/genfiles/external/jemalloc -iquote external/gif_archive -iquote bazel-out/host/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/host/genfiles/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/host/genfiles/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/host/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/host/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -iquote external/local_config_cuda -iquote bazel-out/host/genfiles/external/local_config_cuda -iquote external/llvm -iquote bazel-out/host/genfiles/external/llvm -isystem external/nsync/public -isystem bazel-out/host/genfiles/external/nsync/public -isystem bazel-out/host/bin/external/nsync/public -isystem external/eigen_archive -isystem bazel-out/host/genfiles/external/eigen_archive -isystem bazel-out/host/bin/external/eigen_archive -isystem external/jemalloc/include -isystem bazel-out/host/genfiles/external/jemalloc/include -isystem bazel-out/host/bin/external/jemalloc/include -isystem external/gif_archive/lib -isystem bazel-out/host/genfiles/external/gif_archive/lib -isystem bazel-out/host/bin/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/host/genfiles/external/protobuf_archive/src -isystem bazel-out/host/bin/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/host/genfiles/external/farmhash_archive/src -isystem bazel-out/host/bin/external/farmhash_archive/src -isystem external/zlib_archive -isystem bazel-out/host/genfiles/external/zlib_archive -isystem bazel-out/host/bin/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda -isystem bazel-out/host/bin/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/cuda/include -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda/cuda/include -isystem bazel-out/host/bin/external/local_config_cuda/cuda/cuda/include -isystem external/local_config_cuda/cuda/cuda/include/crt -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda/cuda/include/crt -isystem bazel-out/host/bin/external/local_config_cuda/cuda/cuda/include/crt -isystem external/llvm/lib/IR -isystem bazel-out/host/genfiles/external/llvm/lib/IR -isystem bazel-out/host/bin/external/llvm/lib/IR -isystem external/llvm/include/llvm/IR -isystem bazel-out/host/genfiles/external/llvm/include/llvm/IR -isystem bazel-out/host/bin/external/llvm/include/llvm/IR -isystem external/llvm/include -isystem bazel-out/host/genfiles/external/llvm/include -isystem bazel-out/host/bin/external/llvm/include '-std=c++11' -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wno-invalid-partial-specialization -fno-omit-frame-pointer -no-canonical-prefixes -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections -g0 -g0 -c tensorflow/compiler/xla/service/gpu/tuple_thunk.cc -o bazel-out/host/bin/tensorflow/compiler/xla/service/gpu/_objs/gpu_executable/tensorflow/compiler/xla/service/gpu/tuple_thunk.pic.o

Hi, I don't work on the TF build system.  Perhaps you mean to assign to someone on the TF build team?

cc @gunan @ilya-biryukov

I think you configured for GPU and to build with clang in the configure script.
--config=cuda gets added in bazelrc when you choose to build for GPU in our configure script.
@ilya-biryukov set this option up for us, so Ill let him look.

@jlebar current cuda toolchain file filters out any parameters it doesn't understand instead of passing them as compiler parameters to nvcc
it looks like similar issue is happening with clang compilation., --config=cuda is in bazelrc file

Actually one should not add --config=cuda to command-line anymore since if you select cuda with clang, it creates a conflicting rule for building the pip package and won't build.

Two more updates. I instrumented crosstool_wrapper_driver_is_not_gcc to printout compiler flags it get, used for cpu compilation and gpu compilation and did a build with -s option, generating around 140k line log file. Some early observations

For some reason only part of the files get --copt options
If these options are passed to cuda compilation, they are ignored, as was expected from the code.
Tinkering more.

Maybe these are excluded in our crosstool intentionally?
Is it possible that the following was  the cause to make such a decision?
https://devtalk.nvidia.com/default/topic/780902/nvcc-with-avx-support-cannot-find-gcc-builtin-intrinsics/
Does the above still apply?

@gunan,
I believe issue there is different. Reporter there is trying to use gcc avx intrinsics in .cu files. passing -Xcompiler "-mavx" should be perfectly fine. Besides, the wrapper actually would pass -mavx (or any -mxxx) flag to compiler but would not pass -march=sandybridge which would also enable same flags.

Nagging Assignee @tatatodd: It has been 16 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @tatatodd: It has been 31 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@meteorcloudy could you loop in someone who can help out with our gpu crosstool?

 You need to use --host_copt and --host_cxxopt if you want to pass options for those compilations.
Also /cc @mhlopko the C++ expert.

@samikama try this: https://github.com/gentoo/gentoo/blob/0d7adf51d80763d2ca8c3e5ffac4dd9b3edbe388/sci-libs/tensorflow/tensorflow-1.11.0_rc0.ebuild#L125-L141
im pretty sure that snippet gets all flags properly. (at least for one machine, I havent worked on cross-compiling yet)

@perfinion, Sorry I can't see how this helps with cuda compilation.

Nagging Assignee @gunan: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Is there anything that needs to be done on the Bazel side? What Yun said in https://github.com/tensorflow/tensorflow/issues/21528#issuecomment-421932118 should fix the issue.

Nagging Assignee @gunan: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @gunan: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @gunan: It has been 45 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Closing this out since I understand it to be resolved, but please let me know if I'm mistaken. Thanks!


css - windows+chrome - broken scroll behaviour on tables.

Horizontal scroll not happening on tables using touchpad.
Horizontal scroll bar can be dragged with mouse but then table header div won't scroll along.

Might be a tabulator issue.
Does this work with tabulator alone?


Do less work to convert constant colors.

When we access a style, we always return a function.  Colors are passed through the util.convertColor function.  This was always wrapped util.covertColor(util.ensureFunction(color)).  However, if the color was not a function, it is more efficient to use util.ensureFunction(util.covertColor(color)), as we know the conversion only needs to be performed once.

LTGM.
This is one of the reasons why I started PR #295.  It becomes too much of a burden to store the accessors like this.  My goal is to move to a convention where functional accessors are evaluated immediately and thrown away.

+1 for immediately-evaluated accessors.


release 0.3.0

What type of PR is this?

/kind documentation
What this PR does / why we need it:
This adds the changelog for v0.3.0 Consensus on this PR means approval for v0.3.0 release
Does this PR introduce a user-facing change?:

None

/cc @levikobi @mlavacca

/retest


Support tensor attr for eye

Support tensor attr for eye

https://github.com/PaddlePaddle/Paddle/pull/45427


[TRI-1151] Lower maxAttempts for specific tasks when those tasks call to development endpoints

For the following worker tasks:

performRunExecutionV2
deliverHttpSourceRequest
indexEndpoint

We currently are setting the maxAttempts statically to:

performRunExecutionV2 to 12
deliverHttpSourceRequest to 14
indexEndpoint to 7

While those values make sense when they are hitting production endpoints, as we want to retry just in case production endpoints are temporary down for whatever reason, they really don't make sense for development endpoints, since development endpoints are usually either running or not, so maxAttempts should be set to 1.
This would greatly reduce the graphile worker load for these tasks.
So we should set the maxAttempts for these at enqueue time.
performRunExecutionV2
This is enqueued from a single location:
https://github.com/triggerdotdev/trigger.dev/blob/1fd1d267800647af8139851bc22876cbf4643d5f/apps/webapp/app/models/jobRunExecution.server.ts#L32
We can add an option to
export type EnqueueRunExecutionV2Options = {
  runAt?: Date;
  resumeTaskId?: string;
  isRetry?: boolean;
  skipRetrying?: boolean;
};

export async function enqueueRunExecutionV2(
  run: JobRun,
  tx: PrismaClientOrTransaction,
  options: EnqueueRunExecutionV2Options = {}
) {
  const job = await executionWorker.enqueue(
    "performRunExecutionV2",
    {
      id: run.id,
      reason: run.status === "PREPROCESSING" ? "PREPROCESS" : "EXECUTE_JOB",
      resumeTaskId: options.resumeTaskId,
      isRetry: typeof options.isRetry === "boolean" ? options.isRetry : false,
    },
    {
      queueName: `job:${run.jobId}:env:${run.environmentId}`,
      tx,
      runAt: options.runAt,
      jobKey: `job_run:${run.id}`,
      maxAttempts: options.skipRetrying ? 1 : undefined
    }
  );
}

Then we'd just have to update the calls to enqueueRunExecutionV2 to add skipRetrying = true in certain envs:
https://github.com/triggerdotdev/trigger.dev/blob/1fd1d267800647af8139851bc22876cbf4643d5f/apps/webapp/app/services/runs/startRun.server.ts#L86
await enqueueRunExecutionV2(updatedRun, this.#prismaClient, {
   skipRetrying: run.environment.type === RuntimeEnvironmentType.DEVELOPMENT,
});

deliverHttpSourceRequest
This is enqueued in one place:
https://github.com/triggerdotdev/trigger.dev/blob/1fd1d267800647af8139851bc22876cbf4643d5f/apps/webapp/app/services/sources/handleHttpSource.server.ts#L50
The TriggerSource has an environment relation so can easily just use that to set the maxAttempts to 1 in dev.
indexEndpoint
This is enqueued from multiple places, e.g.:
https://github.com/triggerdotdev/trigger.dev/blob/main/apps/webapp/app/routes/api.v1.endpoints.$environmentId.$endpointSlug.index.$indexHookIdentifier.ts/#L115
The Endpoint itself has a relation to the environment so it should work similar to how indexEndpoint is enqueued.
From SyncLinear.com | TRI-1151

/bounty $50

/attempt #393


Fail well when not inside a package

fix #5
@JosiahParry here's the work.
I think dir is all set, but maybe not?
For file it's not clear when to stop going up to a parent dir. Maybe there's a class/fun that makes to use here? Perhaps we only go up two (three if self is the first) levels from a file and stop there since that's the typical testthat setup at least?

Taking a look at this a bit! What is the use case where we would need to navigate up the parent directory for a single file? My understanding of the rt file command is to test a single file. Perhaps I misunderstand?

thanks I think we're all set


backtest_plot() have internal problem associated with pandas version

Describe the bug
A clear and concise description of what the bug is.
from finrl.plot import backtest_stats, backtest_plot, get_daily_return, get_baseline

print("==============Compare to DJIA===========")
%matplotlib inline
# S&P 500: ^GSPC
# Dow Jones Index: ^DJI
# NASDAQ 100: ^NDX
backtest_plot(df_account_value,
              baseline_ticker = '^DJI',
              baseline_start = df_account_value.loc[0,'date'],
              baseline_end = df_account_value.loc[len(df_account_value)-1,'date'])

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

the backtest_plot got error when running on google colab

Expected behavior
No error should be happened, it should not conflict with pandas version
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

I saw it get fixed. Sorry for bothering. Nvm


Move plugins to Sol.

This PR moves the existing plugin implementation to sol2 from using the raw Lua API.
TODO:

[x] Channel
[x] all the enums
[x] commands
[x] HTTP
[x] IO wrapper

10 paź 2024 11:03:10 nerix @.***>:

@.**** commented on this pull request.
Timeouts don't work:
TEST_F(PluginTest, testTimerRec)
{
configure();
RequestWaiter waiter;
auto onDone = [&] {
    waiter.requestDone();
};

sol::protected_function fn = lua->script(R"lua(
    return function (done)
        local i = 0
        local f
        f = function()
            i = i + 1
            c2.log(c2.LogLevel.Debug, "cb", i)
            if i < 1024 then
                c2.later(f, 0)
            else
                done()
            end
        end
        c2.later(f, 0)
    end
)lua");
fn(onDone);
waiter.waitForRequest();

}
Segfaults (should use a better waiter but still).
—
Reply to this email directly, view it on GitHub[https://github.com/Chatterino/chatterino2/pull/5622#pullrequestreview-2359577572], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AF62MIQ7JTS7CZAFDGWWXV3Z2Y7EJAVCNFSM6AAAAABPKDPR56VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJZGU3TONJXGI].
You are receiving this because you authored the thread.
[Obrazek śledzący][https://github.com/notifications/beacon/AF62MISPIQYUYBFOJCT4RPTZ2Y7EJA5CNFSM6AAAAABPKDPR56WGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTUMURF6I.gif]
Message ID: @.***>

I don't think zero ms timeouts ever made sense. I'll add this when I have time

I don't think zero ms timeouts ever made sense. I'll add this when I have time

It's not about the 0ms. You can also put 1ms, 1000ms there and the bug will trigger.

It seems like it's the lua-thread stuff that's causing the issue. Why do we need that? Shouldn't QTimer::singleShot(ms, guard, [cb] { cb(); }) be enough?

It's mostly an arbitrary choice i made to separate the main coro and all events, callbacks etc.

Before I forget this, plugins are not enabled in the macOS and Windows tests.

Quick patch to compile with clang-cl:
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt
index 9d7aaef90..70a4033b5 100644
--- a/lib/lua/CMakeLists.txt
+++ b/lib/lua/CMakeLists.txt
@@ -52,5 +52,8 @@ set_target_properties(${liblua} PROPERTIES
     CXX_STANDARD 98
     CXX_EXTENSIONS TRUE
 )
-target_compile_options(lua PRIVATE -w)  # this makes clang shut up about c-as-c++
+target_compile_options(lua PRIVATE
+    -w # this makes clang shut up about c-as-c++
+    $<$<AND:$<BOOL:${MSVC}>,$<CXX_COMPILER_ID:Clang>>:/EHsc> # enable exceptions in clang-cl
+)
 set_source_files_properties(${LUA_SRC} PROPERTIES LANGUAGE CXX)

#warning is a non-standard extension until C++ 23
Not sure why windows with 6.7.1 fails there exactly (maybe too many callbacks get queued), but let's make sure we only call done once.

Diff
diff --git a/tests/src/Plugins.cpp b/tests/src/Plugins.cpp
index e7951d4d0..156b442d5 100644
--- a/tests/src/Plugins.cpp
+++ b/tests/src/Plugins.cpp
@@ -375,8 +375,10 @@ TEST_F(PluginTest, testHttp)
         {"/status/200", true, false, 200, "200"},
         {"/delay/2", false, true, 0, "TimeoutError"},
 #    ifdef CHATTERINO_TEST_USE_PUBLIC_HTTPBIN
-#        warning \
-            "Cannot test data returned from httpbin. The public one does not return data verbatim."
+#        if __cplusplus >= 202302L || defined(Q_CC_GNU) || defined(Q_CC_CLANG)
+#            warning \
+                "Cannot test data returned from httpbin. The public one does not return data verbatim."
+#        endif
 #    else
         {"/post", true, false, 200, "200", NetworkRequestType::Post,
          "Example data"},
@@ -543,13 +545,15 @@ TEST_F(PluginTest, testTimerRec)

     sol::protected_function fn = lua->script(R"lua(
         local i = 0
+        local called_done = false
         f = function()
             i = i + 1
             c2.log(c2.LogLevel.Debug, "cb", i)
             if i < 1024 then
                 c2.later(f, 1)
-            else
+            elseif not called_done then
                 done()
+                called_done = true
             end
         end
         c2.later(f, 1)


Tracking: perf profiling for Pilot Ingress

@rshriram commented on Mon Sep 11 2017
Use this issue to track all perf profiling aspects of Istio pilot.
Sample app: acme air (diagram below)

First tested with Istio 0.1.6. Big performance jump when refresh interval was increased from 10ms to 60s. CPU Usage still seems high (2 cores - not visible in the CPU figure below). This needs to be tested with Istio 0.2.x series and we need to set the defaults, logging levels, etc. correctly before making the release. Turning on pprof in pilot - nothing useful at all in the profiling data. Next step is to use linux perf tests..
cc @kyessenov @ayj

@suryadu commented on Mon Sep 11 2017
Here is the Istio Ingress Contoller CPU usage chart

@kyessenov commented on Mon Sep 11 2017
Ingress has entirely different performance requirements than the sidecar. Let's focus on the ingress here and not mix the two.

@suryadu commented on Mon Sep 11 2017
That makes sense! I will open a separate issue for each area of Istio from performance point of view as we see performance degradation from logging, Mixer, Ingress etc.,

@rshriram commented on Mon Sep 11 2017
cc @louiscryan FYI, since you were asking about this.

@rshriram commented on Wed Sep 27 2017
This is with Istio 0.2.4 (which includes mixerclient caching).
cc @douglas-reid

Armada ingress is nginx
Istio ingress is Envoy, no mixer, and no sidecar Envoys.
Istio full is ingress plus sidecar envoys (with or without mixer checks, but reports are always on)
4vCPU and 16GB RAM per node.

@suryadu commented on Wed Sep 27 2017
Here is the view from response time (Latency) perspective.

@ldemailly commented on Wed Sep 27 2017
Subscribe

@linsun commented on Wed Sep 27 2017
subscribe

@kyessenov commented on Mon Oct 02 2017
cc @ldemailly @andraxylia @smawson

@suryadu commented on Mon Oct 02 2017
Here is the improvement once we disable the sidecars

@sdake commented on Tue Oct 10 2017
subscribe

open a new issue if needed based on current data


Ttsao/maps data samples

[ ] The purpose of this PR is explained in this or a referenced issue.
[ ] The PR does not update generated files.
[ ] Tests are included and/or updated for code changes: full set of samples at [Track2] Azure Maps Samples Azure-Samples/azure-sdk-for-python-samples
[ ]  Updates to CHANGELOG.md are included.
[ ] MIT license headers are included in each file.

Initial onboarding of Azure Maps data-plane client libraries (9 clients) following Azure/azure-rest-api-specs#14871
SDK track2 autogen by https://github.com/ambientlight/azure-rest-api-specs/blob/experiment-scripts/gen_python.sh

/azp run


Finish removing com.microsoft.azure:azure-blob-storage

com.microsoft.azure:azure-blob-storage was removed from the repository as part of this PR but that PR missed the ci.data.yml and so the pipeline was just running and failing ever since.
There was also a reference in the aggregate reports pipeline and it was commented out because of an issue which is now moot.

I'm going to merge since nothing will run that'll test this change. After merging I'm going to delete the defunct pipeline.


add unit tests to ci and update cypress tests

Fixed the unit tests for region
Updated the URL on the Cypress tests to use the canonical URL
Add unit tests to the CI workflow

 Web unit tests are failing (and need to be added to CI)

 Web unit tests are failing (and need to be added to CI)


Can you share the pretrained model?

Can you share the pretrained model for visualization in Figure3 (DM paper)?
Is it also Convnet? Thank you!

Sorry. We don't plan to share the pretrained models. You can simply obtain them by training networks with random initialization by yourself.


Add support for socket activation

Since the idiomatic approach is to have an EdgeDB instance per project
it is easy to end up with dozens of EdgeDB instances running on the user
machine even when idle.  This is problematic from memory consumption
perspective (though a lot less with on_demand compiler pool mode).
Thankfully, both systemd and launchd have straightforward support for
socket-activated services.  Combined with auto-shutdown on idle, the
problem of many instances is solved nicely.  This also largely obviates
the need for --start-conf on those systems.
Fixes: #3896

I tested this manually on Linux and macOS.

solid pr


Not working with Magento MSI

We are using Magento's MSI and the stock availability and qty are Out of Stock and 0 for every product we have, which is of course not correct. Any idea?

HI @jorgb90 , Thank you for your message. Which exact Magento (CE or EE) and Channable version are you using that the moment? Did you've tried the use Salable QTY (experimental function) under the Advanced Options tab as well?

Hi @Frank-Magmodules We are using Magento 2.3.2 and yes we have Use Salable QTY enabled.

Hi @jorgb90 ,
Strange, is there a possibility that you share more setup/store details so we can take a look with you on this issue? If so, please share these details safely through our contact form.
Frank

@Frank-Magmodules
I have send you an email with backend details

Hi @jorgb90, thank you or the detailed issue report and logins. Issue has been resolved in the v1.4.12 release. Closing this issue now. Feel free to reopen the issue if this still occurs.