[IOAPPX-318] Add contrast variant and optional backgroundColor prop to HeaderSecondLevel

Short description
This PR adds a contrast variant (light icons on dark background) and an optional backgroundColor prop to set a custom background color when there's a transition between the transparent → solid state.
List of changes proposed in this pull request

Add variant and backgroundColor props

Preview
https://github.com/pagopa/io-app-design-system/assets/1255491/76b016f3-af08-43b4-9480-0eaf3d890c69
How to test

Launch the example app
Check every example with HeaderSecondLevel, including the new custom background

I don't know if this is expected or not (maybe is just the example), but on Android I see a white header.
https://github.com/pagopa/io-app-design-system/assets/6160324/b6d31311-b548-47f0-a8b9-e6bfb313b414

@mastro993 Considering that the blue block is just an ugly block with position: absolute' and a negative top' value to quickly test a dark background, it's probably limited to the example. But let me check 👍🏻

@mastro993 Just fixed the example screen on both iOS and Android ✌🏻


syscall: TestAmbientCapsUserns test failing with operation not permitted

What version of Go are you using (go version)?

$ go version
1.13-rc2

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
Ubuntu devel, 19.10

What did you do?
trying to build the source code, I get
ok  	sync/atomic	0.047s
--- FAIL: TestAmbientCapsUserns (0.00s)
    exec_linux_test.go:667: fork/exec /tmp/gotest465803457: operation not permitted
FAIL
FAIL	syscall	0.033s

I suspect Ubuntu builders should ignore that test?

Thanks for reporting this.
I doubt this is related to #12815. This look yet another variant of #30698. We already try to detect Kernel configurations that would make the test fail (CL 166460, CL 180877)  but the current checks are possibly not exhaustive.

Also, please not that this is not a build failure (i.e.: the code does not compile). The package compiles just fine, this is just a test failing. You can run make.bash instead of all.bash and the toolchain should be built without errors.

this is what we run...
        set -ex; \
                cd src; \
                export PATH="$(GOROOT)/bin:$$PATH"; \
                eval "$$(go tool dist env)"; \
                bash run.bash -k -no-rebuild;

interesting this fails also in pbuilder chroot configuration...

I can provide information if needed! Such as kernel configuration (Ubuntu 18.04 amd64 default one),
and steps to reproduce on a clean debian/ubuntu environment

I can provide information if needed! Such as kernel configuration (Ubuntu 18.04 amd64 default one),
and steps to reproduce on a clean debian/ubuntu environment
@LocutusOfBorg Yes please. I'll help the investigation. Thanks.

on a Debian/Ubuntu system (I'm using ubuntu 18.04 LTS amd64)
pbuilder-dist sid create
pbuilder-dist sid login (remember the directory where the chroot is extracted)
pull-debian-source golang-1.13

copy the downloaded files into the chroot

go inside the chroot (the login command above does it)
cd golang-*
apt build-dep ../golang*dsc
dpkg-buildpackage

enjoy your failure!

Of course, inside the chroot you can install/play with whatever you want, install git, download stuff and so on...

inside an Ubuntu/Debian machine you probably just need to install "ubuntu-dev-tools" and "pbuilder-dist"

This is my default kernel configuration
config-5.0.0-25-generic.txt

This also fails on launchpad (see https://launchpadlibrarian.net/440240117/buildlog_ubuntu-xenial-amd64.golang-1.13_1.13-1longsleep1+xenial_BUILDING.txt.gz for example)

@LocutusOfBorg @longsleep Could you please check whether https://golang.org/cl/195738 fixes the test failure for you?

Hello, looks like still failing...
 ok strings 0.272s
ok sync 0.513s
ok sync/atomic 0.077s
--- FAIL: TestAmbientCapsUserns (0.02s)
    exec_linux_test.go:672: fork/exec /tmp/gotest797948891: operation not permitted
FAIL
FAIL syscall 0.142s
ok testing 0.098s

In my case, the kernel is 5.3, so the patch is not skipping the test...
FWIW we have new systemd 241, so maybe /tmp is not able anymore to fork processes?

Thanks for the feedback @LocutusOfBorg. Reopening the issue for further investigation.

Trying the instructions in https://github.com/golang/go/issues/34015#issuecomment-527325055 I was able to reproduce this in a chroot. I think we need to check in TestAmbientCapsUserns whether we're chrooted like it is already done for all other tests involving user namespaces, see the comment here: https://github.com/golang/go/blob/62fb079e2b374d0e64f5432191f53cecd5282f6b/src/syscall/exec_linux_test.go#L80-L85
@LocutusOfBorg do you only see the issue inside a chroot or also outside?

@tklauser only inside chroots, Ubuntu builders can't build outside.
In my machine, and local builds are good

@LocutusOfBorg thanks for confirming. Thus considering this fixed by https://golang.org/cl/196500 which skips TestAmbientCapsUserns in case of the test running in a chroot.

thanks!
I'll happily drop my patch on the next upstream release...
unfortunately that commit doesn't apply on top of the official 1.13 version, so I'll wait for the next tarball :)

Hello, we had a few golang 1.13 releases since 20 September, but none including this patch...

@LocutusOfBorg we don't backport fixes to tests to minor releases.
See: https://github.com/golang/go/wiki/MinorReleases


Added seam to configure user creation in createsuperuser command

The docs already suggest subclassing the createsuperuser command to customize data input and validation. This patch adds a seam to allow for further customization of the user creation when subclassing this command.
This is useful in cases where one wants to create associated objects like an Account or a Profile after the user is created. An alternative would to handle it with the post_save signal but implementing this as a signal is problematic if one also uses factories for tests, as it becomes harder to configure the objects created by the signal receiver through the factory.

This is useful in cases where one wants to create associated objects like an Account or a Profile after the user is created. An alternative would to handle it with the post_save signal but implementing this as a signal is problematic if one also uses factories for tests, as it becomes harder to configure the objects created by the signal receiver through the factory.

I'd rather do this by defining create_superuser() in a custom manager for your user model, or in save() method of your user model. As far as I'm aware, a separate hook is not necessary.


Example data is out of date

The example-data.tar file in the documentation at http://www.well.ox.ac.uk/~jk/ga4gh-example-data-v3.0.tar is out of date. It is missing the ontologies folder. Also the datasets/brca1/phenotypes folder.

The phenotypes folder will need to be folded in with G2P so shouldn't be part of example data, yet. Ontologies, however, does need to be present since it's used by variant annotation.

Do we have some example data to ship for VA @david4096? We should integrate this into the download_data script so it's easy to generate the example data.

Yeah there are two annotated VCFs in the compliance test data: https://github.com/ga4gh/compliance/tree/master/test-data

OK, so what we need to do is update download_data script to pull these from some public location, and create the correct directory hierarchy. Any one like to do this?

Assigning to Gabriel as this is right on his path anyway

@kozbo I've invited @gabrielsaldana to join the Global Alliance github group, and added him to the "Global Alliance Contributors" team. He should be on the list of potential assignees once he accepts the invitation.

The example data for sequence annotations can already found in the tests/data/datasets/dataset1/sequenceAnnotations corner of the server repo, so please queue that for chucking in to the example data package once sequence annotations code is accepted.

How about adding the test data to a release @jeromekelleher ? (thanks @diekhans)
https://help.github.com/articles/creating-releases/

What have you in mind @david4096? I don't think we should distribute example data with the pypi package.

I'm guessing @david4096 is referring to generating downloadable zip files of "releases" from an example-data repository @jeromekelleher instead of the current fixed location mentioned at the top of this thread.

You can include large files in a release. You would tag a data release, or make a data branch https://help.github.com/articles/distributing-large-binaries/

I'm perfectly happy with making the data  available somewhere other than the current server. I'm not in favour of rolling the example data in with the distribution tarball on pypi (which is not the same thing as the release tarball created on github). Entirely open to ideas otherwise though.

What do you think about tagging a data release on this repo @jeromekelleher ?

This will make this repo start inflating pretty quickly though, won't it? If we store the tarball within the repo then we're going to add > 1M to the size of the repo each time we update it. I think this would start adding up pretty quickly, and clones would become slow (this would be bad for CI checks as well as being annoying for devs and for GitHub).
We could try using github pages or something, and using that as our web server? Or make a different repo?

Sorry if I wasn't being clear, you can add data to a release that isn't a part of your repo.
For example: https://github.com/david4096/server-1/releases/tag/data

Ah, OK, gotcha. So, how do you provide the data, just upload the file on a web form?

@jeromekelleher Yeah, it's a drag and drop at the bottom of the description box.
This is for the current release:
https://github.com/david4096/server-1/releases/download/0.2.1-data/ga4gh-example-data.zip
This is for a release after the ontology maps PR https://github.com/ga4gh/server/pull/980.
https://github.com/david4096/server-1/releases/download/moredata/ga4gh-example-data.zip

[ ] Make data release for current version
[ ] Update docs/installation.rst

You can include the extra data with each release, or use a single "data release" that is refreshed (by deleting the zip and readding it) so the documentation doesn't have to be updated for each release.

OK, looks good @david4096, let's go with this approach. Can you create the data release please?
-1 on changing to zip files though. Nearly all the data in there is already compressed, so there's no point in compressing it again (just takes longer to extract). Also, tarballs are much more ... Unix anyway.

@david4096, I'm looking at the download_data script and it doesn't seem to have any code for downloading the data in question. We should keep this script in sync with (and use it to generate) the actual data tarball. If I'm not missing something, can we create an issue to update the script as a prerequisite to make the data release?


proposal for separate namespace for each algorithm/utility category

@ankitpas  as Spark mllib provides wide range of  learning algorithms and utilities, including classification, regression, clustering, collaborative filtering, dimensionality reduction
we probably should consider to have a separate namespace for each algorithms and utility category to improve the toolkit user and developer experience.

This makes sense so I have updated the operators to reside in separate namespaces mirroring their package location in Spark.


[nginx-static]: Fix nginx-config mount issue

Thought: why not extending this helm chart? https://artifacthub.io/packages/helm/bitnami/nginx
Even there are configs to handle what it trying to be handled in this chart (here)
I feel we are just rewriting this one but.... with git and disk support, which:

git could be replaced by Flux
disk usage in a static site, I don't really see the point (or use-case) why we might need it...
security contexts shouldn't be needed for a static nginx server...

I don't want to suggest recreating the chart from scratch, but, I feel we are maintaining this (of course with low cost), when we could use the community :sweat_smile:
Anyways, approving as for the time being this is useful.

Valid concern...
This chart was written based on legacy workflows where we would create unique Helm Charts to achieve the same result.
Unsustainable. Crazy idea: let's make a single generic one, and so this Chart was born.
We can check in the future what to do, but this is yet another open source alternative to use. 🙂


Eigenvalue Decay regularization

I included a new regularizer named Eigenvalue Decay to the deep learning practitioner that aims at maximum-margin learning. This version approximates the dominant eigenvalue by a soft function given by the power method. For details, see:
Oswaldo Ludwig. "Deep learning with Eigenvalue Decay regularizer." ArXiv eprint arXiv:1604.06985 [cs.LG], (2016). https://www.researchgate.net/publication/301648136_Deep_Learning_with_Eigenvalue_Decay_Regularizer
The syntax for Eigenvalue Decay is similar to the other Keras weight regularizers, e.g.:
model.add(Dense(100, W_regularizer=EigenvalueRegularizer(0.0005)))

Also, can you add a quick test for this new regularizer, in tests/keras/test_regularizers.py?

It seems that everything is OK with this regularizer running on Theano backend, but some error rises when applying dot() on TF backend. Someone has any tip on this? I didn't figure this out yet:
keras/regularizers.py:53: in call
domin_eigenvect = K.dot(WW, o)
keras/backend/tensorflow_backend.py:214: in dot
out = tf.matmul(x, y)
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/ops/math_ops.py:951: in matmul
name=name)
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/ops/gen_math_ops.py:686: in _mat_mul
transpose_b=transpose_b, name=name)
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/ops/op_def_library.py:655: in apply_op
op_def=op_def)
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/framework/ops.py:2042: in create_op
set_shapes_for_outputs(ret)
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/framework/ops.py:1528: in set_shapes_for_outputs
shapes = shape_func(op)
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/ops/common_shapes.py:83: in matmul_shape
b_shape = op.inputs[1].get_shape().with_rank(2)

self = TensorShape([Dimension(10)]), rank = 2
def with_rank(self, rank):
"""Returns a shape based on self with the given rank.
This method promotes a completely unknown shape to one with a
known rank.
Args:
rank: An integer.
Returns:
A shape that is at least as specific as self with the given rank.
Raises:
ValueError: If self does not represent a shape with the given rank.
"""
try:
return self.merge_with(unknown_shape(ndims=rank))
except ValueError:

  raise ValueError("Shape %s must have rank %d" % (self, rank))

E       ValueError: Shape (10,) must have rank 2
../../../miniconda/envs/test-environment/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py:616: ValueError

The new regularizer can be used now on both Theano and TensorFlow backends.

LGTM, thanks!

Thank you too!


No compatibility with new react 18

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>|| ^17" from<EMAIL_ADDRESS>npm ERR! node_modules/react-alert
npm ERR!   react-alert@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Fixed it at https://github.com/schiehll/react-alert/pull/191

@bsjaramillo also until it's merged you can try out it's fork - https://www.npmjs.com/package/@blaumaus/react-alert

All of a sudden on my latest deployment, I am getting a nasty error from this library.  Any ideas what would be causing this?
Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    React 2
    useTheme useTheme.js:4
    useStyles makeStyles.js:222
    WithStyles withStyles.js:55
    React 14

I couldn't figure out that error and was under a time crunch.  I have switched over to https://github.com/fkhadra/react-toastify .  That package seems to be much better maintained.

hook.js:608 Warning: Provider2: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. Error Component Stack


Add request_type to template_fields

For the Automate Tool: tools/rebuild_provision_request.rb
This adds the ability for request_type to be added as a key to the template_fields hash
We only add a request type when one exists.

@miq-bot add_label automate

@gmcculloug - Please review

Tested out changes.  Looks good, thanks.

@syncrou @gmcculloug is there a BZ for this?


Is there a way to specify that I don't want any extra content from a package, just the dlls?

Whenever I update or restore the Coding4Fun.Toolkit.Controls package, I get a bunch of static files added to the project that then I always go and delete right after

Have you tried specifying content: none?
nuget Coding4Fun.Toolkit.Controls content: none

Tried both nuget Coding4Fun.Toolkit.Controls 2.0.7 content: none and nuget Coding4Fun.Toolkit.Controls content: none 2.0.7 but it didn't work

Content: none + paket update should work.
Is there a way for me to reproduce?
On Oct 11, 2015 11:37 PM, "Gustavo Guerra"<EMAIL_ADDRESS>wrote:

Tried both nuget Coding4Fun.Toolkit.Controls 2.0.7 content: none and nuget
Coding4Fun.Toolkit.Controls content: none 2.0.7 but it didn't work
—
Reply to this email directly or view it on GitHub
https://github.com/fsprojects/Paket/issues/1128#issuecomment-147248416.

Repo that repros this issue is here: https://github.com/ovatsus/Apps

source https://www.nuget.org/api/v2

nuget Coding4Fun.Toolkit.Controls 2.0.7 content:none
nuget FSharp.Data prerelease
nuget HereLaunchers
nuget WPtoolkit content:none

paket install works for me. Notice that WPtoolkit was also bringing in content files.

Ah, sorry about that, it is working :/

Thanks!  Just saved me from this EventSource package spraying junk all over the place.


Added support for Taxonomies and Terms

Thanks for all the work @makkinga!
One small issue, I just had a look at the diff and it looks like all spaces have been changed to tabs... Now, I don't want to start a tabs vs. spaces battle, but I'd prefer to stick with the existing spaces, mostly to be able to read a more accurate diff since now it shows all files are completely rewritten.
After that, I'm happy to merge this in!

@aryehraber I wouldn't mind a tabs vs spaces battle 😜 I'm in team spaces though. Not realy sure why that happened. Probably because I recently reinstalled PHPStorm. I'll have it updated asap

Yeah PSR-2 would be great! Most of the code should already follow it I think... If PHPStorm finds a lot of mistakes, feel free to autocorrect them. Though it's honestly not a big deal, as long as the spacing thing is fixed, I'm happy to leave it as is for now.

Tabs should be gone

Awesome, thanks!

Getting reports that fetching Collections no longer works after merging this, seeing the same on my local copy. Gonna have to revert to the prev version for now.


Update cloudwatch, sdk-core, ses, sns, sqs, ssm to 2.21.36

About this PR
📦 Updates

software.amazon.awssdk:cloudwatch
software.amazon.awssdk:sdk-core
software.amazon.awssdk:ses
software.amazon.awssdk:sns
software.amazon.awssdk:sqs
software.amazon.awssdk:ssm

from 2.21.30 to 2.21.36
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "software.amazon.awssdk" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #3022.


[SFT] fix neftune_noise_alpha in SFTTrainer

fixes #1837

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@kashif what is the status of this PR?

@jjc10  can you kindly test with this fix?


Paste in command not working... SSL_ERROR_SYSCALL

chronos@localhost ~ $ cd; curl -LO https://mrchromebox.tech/firmware-util.sh && sudo bash firmware-util.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mrchromebox.tech:443

I am not quite sure what the exact issue is. http;// leaves me with blank responses, while the https:// URL leads to the above SSL error.

what device? what version of ChromeOS? seems like an error one would get with expired certificates due to an outdated OS.

C720P. Yeah, it just hit it's EOL back in June. Does that mean this is impossible? Was interested in doing this b/c of it's status.

as long as it's up to date it should work. maybe try with -k in the curl parameters as well?

Same issue...

Seems like it could possibly be network related, but navigation to your domain isn't blocked, so I'd assume that wouldn't be the issue. However, my Direct PDANet+ hotspot from my phone creates a different error message than my regular home LAN, which is probably because of PDANet's proxy. Is it possible that I could download the .sh script from this repository and run it from the downloads folder in the crosh shell?

the firmware-util.sh script is just a bootstrapper, it downloads everything it needs dynamically. So downloading it won't help

So what do you suggest?

Dang it. Accidentally closed it.

well, do a ChromeOS recovery to rule out anything on that end. If issue persists, then I can try to reproduce here on mine

Ok, I'll try that when I'm back at the house.

Hello There, I am Backend Engineer who started hacking Chromebox.
I have not been experienced this issue, anyway It looks like SSL Handshake related issue. It usually caused by Bad CA Certificate (e.g. MITM Proxy, Outdated CA certificates in the system) or Cipher negotiation failure (e.g. Outdated Client).
If you are having this problem again, Please attach logs from openssl s_client -connect mrchromebox.tech:443. I will help!

Thank you for your response, but I already have Windows running on my machine from months ago. I think you're totally right, HugesNet is doing some sort of MITM to block UDP VPNs (I tried) and possibly some other specific traffic.

@mooyoul Hey! Sorry in advanced for my english. But i have same issue when trying to connect to my docker container's 443th port. I run it with -p 443:443 on debian:buster OS.
Inside container I can get access to https page and logs are:
root@9c665b301804:/var/www# openssl s_client -connect <IP_ADDRESS>:443
CONNECTED(00000003)
Can't use SSL_get_servername
depth=0 C = RU, ST = RF, O = "21SCHOOL, Inc.", CN = <IP_ADDRESS>
verify error:num=18:self signed certificate
verify return:1
depth=0 C = RU, ST = RF, O = "21SCHOOL, Inc.", CN = <IP_ADDRESS>
verify return:1
---
Certificate chain
 0 s:C = RU, ST = RF, O = "21SCHOOL, Inc.", CN = <IP_ADDRESS>
   i:C = RU, ST = RF, O = "21SCHOOL, Inc.", CN = <IP_ADDRESS>
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDbzCCAlegAwIBAgIUBQqrfGbHiis9JxYOFGLQ/CTRI3YwDQYJKoZIhvcNAQEL
BQAwRzELMAkGA1UEBhMCUlUxCzAJBgNVBAgMAlJGMRcwFQYDVQQKDA4yMVNDSE9P
TCwgSW5jLjESMBAGA1UEAwwJMTI3LjAuMC4xMB4XDTIxMDIyNjE1MzYwOFoXDTIy
MDIyNjE1MzYwOFowRzELMAkGA1UEBhMCUlUxCzAJBgNVBAgMAlJGMRcwFQYDVQQK
DA4yMVNDSE9PTCwgSW5jLjESMBAGA1UEAwwJMTI3LjAuMC4xMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwWGq2nLR+qxLDPacW68jgclChIBbZ6k4iNC3
wF48GMl2EuHI8VPIqoOGnECXwj1OKJD+aWaGqZ8/I5tz76dJr8gIopcm/alAKEVS
YDZtbzKLjDIqqh6I6YHDI67HNRAR0JLxjB0uLwdJ3hXEUug6r9kFvIZENU7dJaAh
5sCOaXRPoGS1+q/xSsJuSPexh6SDJpaB6e/GQl1OXYZz3P9n2/1EKNhD6klkGFN+
Lm3REJ8R0zoI2nIu+SF+QZ4YlwPYLZRQf+y9gz2+thzFFDNaHRteObOqz6zp2Ntm
t6yI9wZ9EZ/LcSRlfdrDfwjLYYBTjnu35j87uRw3TZ5aMYFxNwIDAQABo1MwUTAd
BgNVHQ4EFgQUn3sYr3/dOygCGF9/NY3UQHGatKUwHwYDVR0jBBgwFoAUn3sYr3/d
OygCGF9/NY3UQHGatKUwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOC
AQEAql4vt/5TGNHx32pVbjKgKGWprAWoBl2bF8hNmenNS7wg/Xe4UOT7zBg+aP5R
mVpRnvlCHZrDQFlqqnQL+VsKciZ/c1MNF+29TeglBWJ6y5+A0oIjqJd4nfsuOb0N
nsUzBCqG3xnZirUUto8gQ93YVHkBJXIuN+adOVL5CKZ5UU1BTlvYz11wy4QC1nxX
SqNNXYS+I0u9QMhBGUo1uZ5/yWFPRZFVL1HqCxfvzYbSiHM5HuayZph7o8gMfW97
vNWCiB4Fcr5JEGiG1ytK/AIS59NvufQ1a5Q+1HawWiRWTt5XNGsVnG1+5xHZBrrp
Emh/FpsIMs8cHITWvuhr8Kwdfg==
-----END CERTIFICATE-----
subject=C = RU, ST = RF, O = "21SCHOOL, Inc.", CN = <IP_ADDRESS>

issuer=C = RU, ST = RF, O = "21SCHOOL, Inc.", CN = <IP_ADDRESS>

---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1524 bytes and written 376 bytes
Verification error: self signed certificate
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID: 9BC1CB920FFAF3351920AEBB00A7762FF9549B6BBC5B6C426FED59309BFCB62A
    Session-ID-ctx:
    Master-Key: A4E00CFD636BF32ED29502C127959A3A5D6F04C41B70943ABD34C3441C45FA591C9D2D11E6C0FA912C902CF08D59FA8A
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - 16 77 b4 cb a9 65 11 4a-81 55 19 55 15 e3 d6 b9   .w...e.J.U.U....
    0010 - d7 70 08 88 af af b2 a4-05 b0 db 69 7f 66 fe 03   .p.........i.f..
    0020 - 41 14 4e dc e0 5b 7c 24-a7 24 cf f4 95 8a 46 42   A.N..[|$.$....FB
    0030 - 42 ef 09 9b 49 db 77 3d-fe 1c 28 ca 03 e2 f0 58   B...I.w=..(....X
    0040 - 4a 71 d1 6c 14 4b 7d e3-cd 94 ad 8a 12 b1 58 81   Jq.l.K}.......X.
    0050 - 08 03 c0 3f 29 0e 7b 6a-84 62 47 37 ab e4 12 9b   ...?).{j.bG7....
    0060 - 3c 2d 4e 9b 1c 30 74 c6-6f 1a 2a 06 ba 54 af 74   <-N..0t.o.*..T.t
    0070 - b1 9f 3d be 05 fd 91 41-93 01 c1 1a 86 21 9a 2b   ..=....A.....!.+
    0080 - c0 c4 4e 6d de f9 77 40-a0 26 7d 09 a3 d6 28 01   ..Nm..w@.&}...(.
    0090 - f2 e8 43 75 06 ab c5 5a-4a c4 5e c3 b5 2c 16 43   ..Cu...ZJ.^..,.C
    00a0 - b9 0f 57 7f 81 b5 dc d3-b2 02 98 e4 e0 92 16 8b   ..W.............

    Start Time:<PHONE_NUMBER>
    Timeout   : 7200 (sec)
    Verify return code: 18 (self signed certificate)
    Extended master secret: yes
---
DONE

But via my original host curl gets SSL_ERROR_SYSCALL in connection to localhost:443
AND ```
openssl s_client -connect <IP_ADDRESS>:443
CONNECTED(00000003)
write:errno=104
no peer certificate available
No client certificate CA names sent
SSL handshake has read 0 bytes and written 283 bytes
Verification: OK
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)

I will be really happy if you could help me!

not sure what you are trying to do, but you can't easily run my script from a docker container. it needs direct access to the hardware to read/write the firmware

sorry, I just missunderstood this issue. :cactus:


Grammar error fix

Small fix for a grammar error
Should be self-explanatory

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@mairaw no problem. Thank you for being encouraging and positive.


Feature/use asterisk for except paths

exceptPaths can now be defined with aterisks in configuration meta.json
Updated Readme

Current coverage is 0.00% (diff: 0.00%)

No coverage report found for master at 7ed669c.

Powered by Codecov. Last update 7ed669c...b34094b


esp disconnect after a minute if azure iot key not set

start wifi server with connection + no key on the azure side
wait a minute
device resets

Fails instantly now


ModuleNotFoundError: No module named 'tiktok_uploader'

Hello,
When I execute the program.it is error. Can you help me,please?
tiktok-uploader -v my_video.mp4 -d "this is my escaped "description"" -c www.tiktok.com_cookies.txt
Traceback (most recent call last):
File "c:\users\cheersgo\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\cheersgo\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\cheersgo\AppData\Local\Programs\Python\Python37\Scripts\tiktok-uploader.exe_main.py", line 4, in
ModuleNotFoundError: No module named 'tiktok_uploader'

for first you should install  tiktok_uploader  module   pip install tiktok-uploader

I honestly have zero idea how you got the command line version installed without having tiktok-uploader installed. Really weird.
You probably have multiple versions of Python on your system which could potentially be causing errors.


Notifications activate user account manually front

added new route to handle "profile" page
modified users/id route to nicely display the modal - used when admin clicks on the link of the email received to validate user account

You forgot to add checkboxes in the UI for the notifications (eg: sendAdminAccountVerificationNotification)
Could you check?
I will merge the PR in //

I added the admin notification checkbox


Volume mounts will not work on Windows

I, unfortunately, am trying to develop on a Windows Box.
But the volume mounts will not work as described below.
https://github.com/docker-library/docs/blob/b78d49c9dffe5dd8b3ffd1db338c62b9e1fc3db8/mongo/content.md#where-to-store-data

The docker-compose file should be seen as an example / or not seen at all by the average end-user of the image.
Seeing how it currently lacks a part in the README (as that is being synced with docker-hub) maybe it should be moved to a CI subfolder, because the travis-build is currently using it.
The alternative would be to switch to volumes instead of filepaths, but then people have to be careful with the commands they run, so they do not accidentally delete their data or keep it forever after a test (so this would need some documentation as well).

Hi @thebetterjort, have you tried to run the container on Windows ?

That helped  me to figure out what's the issue with Docker for Windows: https://github.com/docker-library/mongo/issues/243#issuecomment-395025628
It seems NTFS mounts aren't going to work, you have to use something else for MongoDB, named volume being one of the options:

volumes:
  mongo-data: {}

services:
  api:
    image: strapi/strapi
    environment:
      - APP_NAME=strapi-app
      - DATABASE_CLIENT=mongo
      - DATABASE_HOST=db
      - DATABASE_PORT=27017
      - DATABASE_NAME=strapi
      - DATABASE_USERNAME=
      - DATABASE_PASSWORD=
      - HOST=localhost
    ports:
      - 1337:1337
    volumes:
      - "C:\\Users\\antti\\Code\\strapi-testing\\strapi-app:/usr/src/api/strapi-app"
    depends_on:
      - db
    restart: always

  db:
    image: mongo
    environment:
      - MONGO_INITDB_DATABASE=strapi
    ports:
      - 27017:27017
    volumes:
      - "mongo-data:/data/db"
    restart: always

Can you give us an update please.

Since there is this problem, how can we migrate the named volume into our production server?
I was reading here for possible solutions: https://docs.docker.com/v17.03/engine/tutorials/dockervolumes/#backup-restore-or-migrate-data-volumes
Any suggestion? Would you consider to implement it in this repo? I could help if needed

HI,
We just released a full rebuild of our docker image 🎉
We are closing the issues and open PRs to start fresh.
If you feel like something is missing or want to add things feel free to open new PRs ! 💯


Put Clearfix on popover navigation

In the case you customize the template (like I did) with just 1 button at right (I did with just a next button), you need an clearfix on popover-navigation to keep the height of the float button

Thanks!


Allow maps to assign instances to data center, region, and environment

This adds three new settings DataCenterMap, RegionMap, and PhysicalEnvironmentMap that allow specifying an instance's DC, region, or environment using a map whose keys match an instance as follows:
1. <hostname>:<port>
2. <hostname>
3. <ip>:<port> (loop over host IPs)
4. <ip> (loop over host IPs)
5. CIDR network specification (loop over host IPs)

Example:
```
"DataCenterMap": {
  "db-foo-bar.myservice.com": "dc1",
  "<IP_ADDRESS>:3307": "dc2",
  "<IP_ADDRESS>/24": "dc1",
  "<IP_ADDRESS>/24": "dc2",
  "<IP_ADDRESS>/24": "dc3"
},
```

Fixes #1091.

(Note that I am no Go developer; I am just learning as I go along, so feel free to correct/adjust/suggest if anything doesn't match standards or norms!) :-)


Support per folder config

With Laravel I get a lot of false positives on scopes and properties
I would like to be able to skip folders or have rules per folder

Can you share failing test case, so I can see what you mean?

Can you share failing test case, so I can see what you mean?

Sure, I ended up making a horrible script with regexes to find functions etc..
I will share some examples
but for example Laravel has functions on Models that are scopes, for example: public function scopeConfirmed(Builder $builder): Builder
It is used like this: Users::confirmed()->all()
So obviously this tool will report it as unused not seeing the connection between the two.
There is more of this stuff, let me know what you already feel about the scope function part.

I see :) I think magic calls are outside this this tool scope. If any framework calls some method magically, it will be reported as false positive.
Add these cases to phpstan.neon and mark as known false positives. That way the rest of project will be detected correctly 👍

Not even needed to add them to the baseline when you have Larastan that understands them 🎉
Thanks for clarifying the scope of this project, that's what I was thinking as it becomes way to tricky

Indeed, Larastan is required, but it doesn't always get all the magic :)


[SYCL] Add SYCL Backend Support for Intel GPUs

What Does This PR Do
https://github.com/leejet/stable-diffusion.cpp/issues/308
Hi, it's a pr for initial SYCL backend support for Intel GPUs (Arch-770, etc.). We are happy to hear the feedback from stable-diffusion.cpp community. If you have any comments or questions, please feel free to leave them in this pr.
cc @airMeng, @luoyu-intel, @hshen14
TODO or Issues

[x] update ggml commit when tsembd sycl op is merged (https://github.com/ggerganov/llama.cpp/pull/8707).
[ ] can not generate imgs with large -H and -W (for example, 1024, seems sycl issue): Provided range is out of integer limits. Pass '-fno-sycl-id-queries-fit-in-int' to disable range check. It's caused by the im2col sycl op sum_of_products of global_range exceeds INT_MAX. We need to modify im2col kernel or implement another more efficient conv op in the future.
[x] more tests

Test Results of SYCL
build command
cmake .. -DSD_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
doc link is here
test machine

ID
Device Type
Name
Version
Max compute units
Max work group
Max sub group
Global  mem size
Driver version

0
[level_zero:gpu:0]
Intel Data Center GPU Max 1100
1.3
448
1024
32
51539M
1.3.27191

text2img

sd v1-4
./build/bin/sd -m ../sd_models/sd-v1-4.ckpt -p "a lovely cat" -o "output_sycl_sd1-4.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 8.35s

sd v1-5
./build/bin/sd -m ../sd_models/v1-5-pruned-emaonly.safetensors -p "a lovely cat" -o "output_sycl_sd1-5.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 8.44s

sd v2
./build/bin/sd -m ../sd_models/v2-1_768-nonema-pruned.safetensors -p "a lovely cat" -o "output_sycl_sd2.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 6.04s

sd xl
./build/bin/sd -m ../sd_models/sdxl/sd_xl_base_1.0.safetensors --vae ../sd_models/sdxl/sdxl_vae.safetensors -H 512 -W 512 -p "a lovely cat" -o "output_sycl_sdxl.png" --seed 16
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 12.46s

sd v3
./build/bin/sd -m ../sd_models/sd3_medium_incl_clips_t5xxlfp16.safetensors  -H 512 -W 512 -p "a lovely cat holding a sign says \"Stable Diffusion CPP\"" --cfg-scale 4.5 --sampling-method euler -v -o "output_sycl_sd3.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 13.25s

quantization type
command: ./build/bin/sd -m ../sd_models/sd3_medium_incl_clips_t5xxlfp16.safetensors  -H 512 -W 512 -p "a lovely cat holding a sign says \"Stable Diffusion CPP\"" --cfg-scale 4.5 --sampling-method euler -v -o "output_sycl_sd3_q8_0.png" --type q8_0

f16
q8_0
q5_0
q5_1
q4_0
q4_1

13.25s
12.84s
12.88s
12.91s
12.86s
12.99s

14829.53MB
8030.57MB
5310.99MB
5764.25MB
4404.46MB
4857.73MB

img2img
command:  ./build/bin/sd --mode img2img -m ../sd_models/sd3_medium_incl_clips_t5xxlfp16.safetensors -p "cat with blue eyes" -i ./assets/f32.png --strength 0.4 -o "output_sycl_img2img.png"
output:
[INFO ] stable-diffusion.cpp:1172 - generating image: 1/1 - seed 42
  |==================================================| 9/9 - 2.37it/s
[INFO ] stable-diffusion.cpp:1203 - sampling completed, taking 4.21s
[INFO ] stable-diffusion.cpp:1211 - generating 1 latent images completed, taking 4.58s
[INFO ] stable-diffusion.cpp:1214 - decoding 1 latents
[INFO ] stable-diffusion.cpp:1224 - latent 1 decoded, taking 0.75s
[INFO ] stable-diffusion.cpp:1228 - decode_first_stage completed, taking 0.75s
[INFO ] stable-diffusion.cpp:1424 - img2img completed in 1.87s

LCM-Lora
command: ./build/bin/sd -m ../sd_models/v1-5-pruned-emaonly.safetensors -p "a lovely cat<lora:lcm-lora-sdv1-5:1>" --steps 4 --lora-model-dir ../sd_models/lora/ -v --cfg-scale 1 -o "output_sycl_lcm_lora.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 4.08s

PhotoMaker
command: ./build/bin/sd -m ../sd_models/sdxl/sdxlUnstableDiffusers_v11.safetensors  --vae ../sd_models/sdxl/sdxl_vae.safetensors --stacked-id-embd-dir ../sd_models/photo_maker/photomaker-v1.safetensors --input-id-images-dir ./assets/photomaker_examples/scarletthead_woman/ -p "a girl img, retro futurism, retro game art style but extremely beautiful, intricate details, masterpiece, best quality, space-themed, cosmic, celestial, stars, galaxies, nebulas, planets, science fiction, highly detailed" -n "realistic, photo-realistic, worst quality, greyscale, bad anatomy, bad hands, error, text" --cfg-scale 5.0  --sampling-method euler -H 640 -W 640 --style-ratio 15 -o "output_sycl_photomaker.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 17.38s

Upscale
command: ./build/bin/sd -m ../sd_models/sd3_medium_incl_clips_t5xxlfp16.safetensors  -H 640 -W 640 -p "a lovely cat holding a sign says \"Stable Diffusion CPP\"" --cfg-scale 4.5 --sampling-method euler --upscale-model ../sd_models/upscale/RealESRGAN_x4plus_anime_6B.pth -v -o "output_sycl_sd3_upscale.png" --seed 100
output:
[INFO ] stable-diffusion.cpp:1328 - txt2img completed in 17.99s
[DEBUG] upscaler.cpp:28   - Using SYCL backend
[INFO ] upscaler.cpp:36   - Upscaler weight type: f16
[INFO ] esrgan.hpp:156  - loading esrgan from '../sd_models/upscale/RealESRGAN_x4plus_anime_6B.pth'
[DEBUG] ggml_extend.hpp:988  - esrgan params backend buffer size =   8.53 MB(VRAM) (192 tensors)
[INFO ] model.cpp:740  - load ../sd_models/upscale/RealESRGAN_x4plus_anime_6B.pth using checkpoint format
[DEBUG] model.cpp:1258 - init from '../sd_models/upscale/RealESRGAN_x4plus_anime_6B.pth'
[DEBUG] model.cpp:1389 - loading tensors from ../sd_models/upscale/RealESRGAN_x4plus_anime_6B.pth
[INFO ] esrgan.hpp:175  - esrgan model loaded
[INFO ] upscaler.cpp:50   - upscaling from (640 x 640) to (2560 x 2560)
[DEBUG] upscaler.cpp:64   - upscale work buffer size: 150.00 MB
[DEBUG] ggml_extend.hpp:496  - tile work buffer size: 3.19 MB
[DEBUG] ggml_extend.hpp:939  - esrgan compute buffer size: 416.00 MB(VRAM)
[INFO ] ggml_extend.hpp:510  - processing 49 tiles
  |==================================================| 49/49 - 6.99it/s
[INFO ] upscaler.cpp:79   - input_image_tensor upscaled, taking 7.37s

TAESD
command: ./build/bin/sd -m ../sd_models/v1-5-pruned-emaonly.safetensors -p "a lovely cat" --taesd ../sd_models/taesd/diffusion_pytorch_model.safetensors -o "output_sycl_taesd.png"
output: [INFO ] stable-diffusion.cpp:1328 - txt2img completed in 7.80s

Do we have any reference performance data? like, what is the latency of A100 for each model.

Do we have any reference performance data? like, what is the latency of A100 for each model.

I only have A30 for now. Will update a table soon.

Do we have any reference performance data? like, what is the latency of A100 for each model.

I only have A30 for now. Will update a table soon.

Test commands are from the text2img section of PR description.

model
A30
PVC
ratio

sd1-4
4.47
8.35
0.535329

sd1-5
4.49
8.44
0.531991

sd2
3.84
6.04
0.635762

sd_xl
6.04
12.46
0.484751

sd3
7.45
13.25
0.562264

GPU Max 1100 can achieve about 50%~60% of A30 latency.

Can you please add units to the performance data? until states, it can be both it/s and s/it, as well as total sec ...

Can you please add units to the performance data? until stated, it can be both it/s and s/it, as well as total sec ...

sorry, added.

@leejet anything else needed to be merged?

This PR is ready for review now. There still has an issue that sycl backend can not generate images with large H and W. Will try to fix it in a later PR (the main efforts are from ggml side).

@leejet, cloud you please take a look at this PR if you have free time? Thanks a lot.

Excellent work! Thank you for your contribution.

I tried to use my intel gpu with this, able to build successfully but when try to run I got the following error:
[SYCL] call ggml_check_sycl
ggml_check_sycl: GGML_SYCL_DEBUG: 0
ggml_check_sycl: GGML_SYCL_F16: yes
can not find preferred GPU platform
Exception caught at file:/home/cheeseng/stable-diffusion.cpp/ggml/src/ggml-sycl.cpp, line:1859, func:operator()
terminate called after throwing an instance of 'std::runtime_error'
  what():  can not find preferred GPU platform
Aborted (core dumped)

Is there anything I am missed?  Here's my gpu info:
~$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: Tongfang Hongkong Limited CoffeeLake-H GT2 [UHD Graphics 630]
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
	Subsystem: Tongfang Hongkong Limited GP107M [GeForce GTX 1050 Mobile]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

I tried to use my intel gpu with this, able to build successfully but when try to run I got the following error:
[SYCL] call ggml_check_sycl
ggml_check_sycl: GGML_SYCL_DEBUG: 0
ggml_check_sycl: GGML_SYCL_F16: yes
can not find preferred GPU platform
Exception caught at file:/home/cheeseng/stable-diffusion.cpp/ggml/src/ggml-sycl.cpp, line:1859, func:operator()
terminate called after throwing an instance of 'std::runtime_error'
  what():  can not find preferred GPU platform
Aborted (core dumped)

Is there anything I am missed? Here's my gpu info:
~$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: Tongfang Hongkong Limited CoffeeLake-H GT2 [UHD Graphics 630]
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
	Subsystem: Tongfang Hongkong Limited GP107M [GeForce GTX 1050 Mobile]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Hi, @cheeseng, does sycl-ls print anything?

I tried to use my intel gpu with this, able to build successfully but when try to run I got the following error:
[SYCL] call ggml_check_sycl
ggml_check_sycl: GGML_SYCL_DEBUG: 0
ggml_check_sycl: GGML_SYCL_F16: yes
can not find preferred GPU platform
Exception caught at file:/home/cheeseng/stable-diffusion.cpp/ggml/src/ggml-sycl.cpp, line:1859, func:operator()
terminate called after throwing an instance of 'std::runtime_error'
  what():  can not find preferred GPU platform
Aborted (core dumped)

Is there anything I am missed? Here's my gpu info:
~$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: Tongfang Hongkong Limited CoffeeLake-H GT2 [UHD Graphics 630]
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
	Subsystem: Tongfang Hongkong Limited GP107M [GeForce GTX 1050 Mobile]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Hi, @cheeseng, does sycl-ls print anything?

@zhentaoyu Sorry I just noticed this, here's my sycl-ls output:
~$ sycl-ls
[opencl:cpu][opencl:0] Intel(R) OpenCL, Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz OpenCL 3.0 (Build 0) [2<IP_ADDRESS>.11_160000]

I tried to use my intel gpu with this, able to build successfully but when try to run I got the following error:
[SYCL] call ggml_check_sycl
ggml_check_sycl: GGML_SYCL_DEBUG: 0
ggml_check_sycl: GGML_SYCL_F16: yes
can not find preferred GPU platform
Exception caught at file:/home/cheeseng/stable-diffusion.cpp/ggml/src/ggml-sycl.cpp, line:1859, func:operator()
terminate called after throwing an instance of 'std::runtime_error'
  what():  can not find preferred GPU platform
Aborted (core dumped)

Is there anything I am missed? Here's my gpu info:
~$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: Tongfang Hongkong Limited CoffeeLake-H GT2 [UHD Graphics 630]
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
	Subsystem: Tongfang Hongkong Limited GP107M [GeForce GTX 1050 Mobile]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Hi, @cheeseng, does sycl-ls print anything?

@zhentaoyu Sorry I just noticed this, here's my sycl-ls output:
~$ sycl-ls
[opencl:cpu][opencl:0] Intel(R) OpenCL, Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz OpenCL 3.0 (Build 0) [2<IP_ADDRESS>.11_160000]

Hi, @cheeseng, sycl-ls does not show any level_zero:gpu device. You can refer to this doc for more information.


TexturePacker.isModified() always returns true when called by TexturePacker.processIfModified()

At https://github.com/libgdx/libgdx/blob/90ce4b6f19c4e1960786544b81f779541eb5d4da/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/TexturePacker.java#L628 the method checks whether the file exists, and then tries to establish if it's actually outdated. It never accomplishes its task since it tries to look in the filesystem for:
packFullFileName += packFileName;
Problem is, the packFileName passed to the method processIfModified is not meant to contain either the .atlas or .png extension but the name with which the various files will be generated (for example, a string "tiles" will produce two files: tiles.atlas and tiles.png with default settings).
Since a packaged resource will always generate a .atlas file (settings might dictate a different image format maybe?) I would suggest to append such extension to the packFileName string before concatenating it with the full path, unless this is used somewhere else, in which case I'd say we need a specialized method to satisfy TexturePacker.processIfModified()

Hmm. I didn't add the processIfModified methods and don't personally use them. Want to submit a PR to fix this? Maybe just add a parameter that is the atlas suffix.

Hi Nate, no need to add a parameter, there's a handy "settings.atlasExtension" that I see used all across that class that could be simply added to that filename, putting in a parameter would split the variable in two places if someone does use a custom extension.
I don't have the sources at hand, but I will look into it later tonight.


Upgrade with curator

Issues:

https://github.com/open-cluster-management/backlog/issues/11856
https://github.com/open-cluster-management/backlog/issues/11728

Updates:

added a channel selection modal  (trigger from detials page/clusters page)
added channel in details page
deleted backend upgrade endpoint & used curator instead
if curator is running, will block upgrade/channel selection
added percentage status in upgrade message

Note:

curator failure are not handled as it is ephemeral (another curator job will delete the status, as it's reused by multiple tasks)

Tests:

[x] show channel in detailed page
[x] can select channel in detailed page
[x] can select channel from action dropdown
[x] can select channel from batch action
[x] can upgrade
[x] kind cluster (non-ocp) will not show channel in detailed page
[x] kind cluster (non-ocp) will not show upgrade
[x] when selecting channel, user cannot do upgrade
[x] when upgrading, user cannot select channel
[x] if failed curator, nothing happened
[x] unit tests - test cases for get-cluster.ts upgradeinfo
[x] unit tests - test cases for BatchSelectChannelModal

Screenshot:

/test all

/hold

/unhold


Replace the visitor counter on the home page

Still a relic from my old website. Counter itself can stay but at least remove the text of who interacted, since we are not tracking this at this moment

Retry styles counter added


Add the latest blog posts on the main page

Renames News to Blog in the menu
Adds the latest two blog posts on the main page.

Let's rename to:
Latest Blog Posts
...internal blogs...
Featured eBPF Community Blogs
....rss feed...

@tgraf
[x] Latest Blog Posts
[x] Featured eBPF Community Blogs
[x] /news -> /blog


chore: Delete release workflow

Description of changes
The Release workflow is deleted, as AWS internal systems are now used for releases.
New/existing dependencies impact assessment, if applicable
No new dependencies were added to this change.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/test

/test

/test

/test


catch/3-all may mask real errors

    catch(enforce_constraints_(Var, Functor, Arity, Args), _, false).

The intention is probably to catch type- and domain-errors. But not other errors. What, if there is a resource error? Currently, Scryer just aborts, but more mature systems like SICStus and SWI do produce this error. (And for robust server code this will be needed in Scryer too.)
The cleanest (but currently very inefficient) way is to say:
   catch(catch(Yourgoal_0, error(type_error(_,_),_), false), error(domain_error(_,_),_), false).

The cleanest (but currently very inefficient) way

Why exactly is it inefficient? I can't see any other way of doing that except something like this:
catch(
    Goal,
    error(Error,_),
    (   Error /= type_error(_,_),
        Error /= domain_error(_,_)
    )
).

Your suggestion is masking other errors too, it makes now the goal succeed in such cases. Instead the exception should be propagated.
(Inefficient is the current implementation of catch/3. There is much too much overhead involved. For simple Recovery like false, much less is needed. But this is a performance issue only)


animate not working at Windows Phone

Hello,
I made a website which use animate.css to create some animations.
On all platforms working well, but only on windows phone with Windows 8.1 installed not working at all.
Divs with animate.css classes not showing up.
I tried with various animations but nothing helps.
I am using 3.5.1 version.

Same problem

Does this problem happens on the demo website?

No, actually the demo works fine.
My problem was (I guess, since I cant' access a debug mode in WP) the opacity set to 0 for the fade not property set to 1. I just fix the problem with modernizer and this fix
.cssanimations.requestanimationframe.webanimations .hidden-for-effect {
     opacity:0;
 }

(the only cssanimations class didn't work)

Closing this as it seems to be solved.


Add statistic that will always ignore head hits

In rogueticket-956 harkonnen asks:
hmmm... @FrostRaptor maybe you can incorporate this into paintolerance.
we have this
          "statisticData": {
                "statName": "NoHeadDamage",
                "operation": "Set",
                "modValue": "true",
                "modType": "System.Boolean"
            },
but it doesnt work, so can you check for it and set 100% resistance in this case?

This will allow torso-mounted cockpits.

Added in 0.8.0


[AutoPR applicationinsights/resource-manager] Modify Workbook Resource Type to include RG and remove unused endpoint

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2897

(message created by the CI based on PR content)


MINOR: syntax brush for java / bash / json / text

ping @derrickdoo @ijuma @ewencp for reviews.

retest this please

@derrickdoo addressed your comments.

👍  lgtm

@ijuma Addressed your comments.

This patch applies bash highlighting to examples of commans being entered at the prompt. As such it doesn't seem to cope well with distinguishing the command being run from the example output of the command (the old way of using bold to indicate the command being run worked better).
Also, the highlighter doesn't seem to understand the difference between test being used as a command parameter and the test command/built-in, leading to rather strange highlighting:

That is a good point. Maybe we should not use brush for shell text, or consider using a slight different brush? @tombentley would you like to improve this and  submit a PR ?

Sure, I'd be happy to @ guozhangwang


feat(angular2): Upgrade to Angular 2 RC6 (uses latest TypeScript)

This PR adds the following:

Changing syntax and imports to work with Angular 2 recent RCs
Adding NPM depdencies on Angular 2 RC6
Setting a working TypeScript build from npm run tsc on any PC

If this PR is accepted, I'd really appreciate a newer version published to NPM as well.
Thanks a lot.

Hey. I will check it today or tomorrow and update npm afterwards.


Add a NFS Persistent Volumes example

As nfs is a common storage system for gene sequencing, we should add some example using nfs pv in kubegene.

This is closed by #39


Added details on io_events.xml processor execution time.

Added details about the custom field data execution time.
Purpose of this pull request
This pull request (PR) ...
Affected pages

...

Links to Magento Open Source code

...

@keharper Adobe CLA signed


issues on zorion os

I tried running it and got the terminal up, but it connects and immediatly wants to close, any helps?

Maybe try running it directly from the terminal? if you're already doing that, then i don't know.

you need you extract the folder and then open it in the folder and dont use shortcuts or wont open

Stale


Is there some way to find out the match time that is shown on Sbobet itself?

I mean, you can just subtract the time date_start and actual_at, but this does not guarantee the required accuracy. Also, I tried to make a request to Sbobet directly, but it always redirects to the main page

@1byari Added support.
You can test already.
{
    half_index?: number
    minute?: number
}

@1byari Added support.
You can test already.
{
    half_index?: number
    minute?: number
}

Wow dude thanks a lot. Your API is very cool. I really appreciate it🙏

Thank you 😊


[Automation] Generate Fluent Lite from support#package-2020-04

[Automation] Generate Fluent Lite from support#package-2020-04

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-resourcemanager-support


Improve headless backends.

Targets for 0.21:

[x] Linux | Wayland | EGL | PBuffer
[x] Linux | Wayland | EGL | Surfaceless
[x] Linux | X11 | EGL | PBuffer
[x] Linux | X11 | EGL | Surfaceless
[x] Linux | X11 | GLX | PBuffer

Others:

[ ] Linux | X11 | GLX | Surfaceless
[x] Linux | OSMesa
[ ] Windows | WGL | PBuffer
[x] Windows | EGL | PBuffer

Targets for 0.21 have been met!


fix: revert node version change to older version

Feel free to try pointing an action to this branch

https://github.com/turo/python-ml-common/pull/75
Yes I am trying to point out to this branch to see how this goes tried a few things. The root cause is probably that we call action-setup-tools twice, once in pre-commit and once in the lint job before calling pre-commit.


release code.

Since the implementation of your work is complex, when do you plan to release the code?

When will the source code be released?


v1.8.13 restart count is 1 in gce-master-scale-performance

v0.8.13 may has another problem(I may open another issue if it is not related)
Another case is the https://testgrid.k8s.io/sig-release-master-informing#gce-master-scale-performance flakes with error like
[measurement call TestMetrics - TestMetrics error: [action gather failed for SystemPodMetrics measurement: restart counts violation: RestartCount(node-problem-detector-gsg92, node-problem-detector)=1, want <= 0]]

It is tracked in https://github.com/kubernetes/kubernetes/issues/123328.

I0225 17:35:11.161300 20814 ooms_tracker.go:284] OOM detected: &Event{ObjectMeta:{gce-scale-cluster-minion-heapster.17b72a4a62c4a7d8 default d60b06ff-11d1-4cb8-be1f-7264e084769b 85768 0 2024-02-25 17:11:22 +0000 UTC map[] map[] [] [] [{node-problem-detector Update v1 2024-02-25 17:11:22 +0000 UTC FieldsV1 {"f:count":{},"f:firstTimestamp":{},"f:involvedObject":{},"f:lastTimestamp":{},"f:message":{},"f:reason":{},"f:source":{"f:component":{},"f:host":{}},"f:type":{}} }]},InvolvedObject:ObjectReference{Kind:Node,Namespace:,Name:gce-scale-cluster-minion-heapster,UID:gce-scale-cluster-minion-heapster,APIVersion:,ResourceVersion:,FieldPath:,},Reason:OOMKilling,Message:Memory cgroup out of memory: Killed process 4550 (metrics-server) total-vm:834776kB, anon-rss:100100kB, file-rss:33900kB, shmem-rss:0kB, UID:65534 pgtables:400kB oom_score_adj:999,Source:EventSource{Component:kernel-monitor,Host:gce-scale-cluster-minion-heapster,},FirstTimestamp:2024-02-25 17:11:22 +0000 UTC,LastTimestamp:2024-02-25 17:11:22 +0000 UTC,Count:1,Type:Warning,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}

        resources:
          limits:
            cpu: "200m"
-            memory: "100Mi"
+            memory: "150Mi"
          requests:
            cpu: "20m"
            memory: "20Mi"

The original memory limit for NPD pod is 100Mi. It hit the OOM.
It may indict larger memory usage with v0.8.13.

we update it in k/k from 0.8.9 to v0.8.13 in https://github.com/kubernetes/kubernetes/pull/121382/ v1.29.

Do we have a benchmark about NPD memory usage?

/close
The log indicated that metric-server is restarted and NPD just detected it.
It is not a NPD issue.

/reopen
The CI still showed the NPD is restarted.
https://kubernetes.slack.com/archives/C0BP8PW9G/p1708936782848279?thread_ts=1708933477.475099&cid=C0BP8PW9G

https://perf-dash.k8s.io/#/?jobname=gce-5000Nodes&metriccategoryname=SystemPodMetrics&metricname=Load_SystemPodMetrics&RestartCount=RestartCount

/close
Looks like https://github.com/kubernetes/kubernetes/issues/123328 has resolved already. Feel free to reopen if the issue stays.


Artemis runs as root when installed in openshift-operators (installed by OLM)

Describe the bug
If EnMasse 0.28.1 is installed in openshift-operators (as is the case when installing from OLM on OpenShift 4.1), the Broker runs as root.  Whilst this doesn't give a functional problem, running as root is against security best practice.  Also, the journal files etc become root owned.
When installed in another namespace in OpenShift 4.1 (for instance, enmasse-infra), the Broker process runs as a UID drawn from a range, assigned by SCC, I think).
To Reproduce
Steps to reproduce the behavior:

On OpenShift 4.1, install EnMasse 0.29.1 from either the Operator Hub, or direct from the bundle/ansible.
Create an address space and queue address so that a Broker is run.
oc rsh  into the Broker pod
Run ps -ef.  Observe that the Broker is running as root.

Expected behavior
Non root user should be executing the Broker.
Additional context
I notice that root is chosen because this is Dockerfile default.

I think this issue relates to https://docs.openshift.com/container-platform/4.1/authentication/managing-security-context-constraints.html.   Testing shows me that when EnMasse installed into openshift-operators the behaviour with respect to UID and the FS Group that owns the persistent volume is different.  I expect that this will somehow relate the SCC annotations on the openshift-operators namespace, but I don't understand these properly yet.

If https://github.com/operator-framework/operator-lifecycle-manager/issues/927 were to be resolved, this issue would be fixed.


[FEAT]: OCR (Optical Character Recognition) for scanned PDF

What would you like to see?
It would be great if scanned PDFs could also be processed. This way, an OCR could read the text to be able to further process it.

#510


fix: dev: #305: Remove redundant IOException catch blocks

Codecov Report

Merging #309 into master will increase coverage by 0.06%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #309      +/-   ##
==========================================
+ Coverage   50.36%   50.43%   +0.06%
==========================================
  Files          60       60
  Lines        3036     3022      -14
  Branches      334      334
==========================================
- Hits         1529     1524       -5
+ Misses       1418     1408      -10
- Partials       89       90       +1

Impacted Files
Coverage Δ

.../com/qubole/rubix/core/CachedReadRequestChain.java
81% <ø> (ø)
:arrow_up:

.../com/qubole/rubix/core/RemoteReadRequestChain.java
71.13% <ø> (ø)
:arrow_up:

...java/com/qubole/rubix/core/CachingInputStream.java
0% <0%> (ø)
:arrow_up:

.../qubole/rubix/hadoop2/Hadoop2ClusterManagerV2.java
47.36% <0%> (-5.27%)
:arrow_down:

...qubole/rubix/bookkeeper/CoordinatorBookKeeper.java
87.17% <0%> (-2.57%)
:arrow_down:

...n/java/com/qubole/rubix/bookkeeper/BookKeeper.java
70.3% <0%> (-0.31%)
:arrow_down:


Convert src/core/ps_parser.js to use ES6 classes

Besides being a fairly small and self-contained file, this code also shows a possible way of defining static constants on classes.

/botio test

Thank you for converting this file!


Chef 12 Attribute Regression

Summary
Chef 12 has introduced behaviour which alters the handling of attributes which contain arrays of hashes such that they no longer work as they did in Chef 11
To Replicate
To replicate the observed regressing behaviour, the following spec should be added to spec/unit/node_spec.rb on master:
      it "correctly fetches string and symbol attribute values from an array of hashes" do
        node.default['apache']['vhosts']     = [{'host' => 'test', 'port' => '666'}]
        expect(node.default['apache']['vhosts'].first['port']).to eql('666')
        expect(node.default['apache']['vhosts'].first[:port]).to eql('666')
        expect(node.default[:apache]['vhosts'].first['port']).to eql('666')
        expect(node.default[:apache]['vhosts'].first[:port]).to eql('666')
      end

The equivalent (working) behaviour in Chef 11 can be reproduced by adding the following spec to spec/unit/node_spec.rb on 11-stable
    it "correctly fetches string and symbol attribute values from an array of hashes" do
      node.default["apache"]["vhosts"] = [{'host' => 'test', 'port' => '666'}]
      node['apache']['vhosts'].first['port'].should == '666'
      node['apache']['vhosts'].first[:port].should == '666'
      node['apache'][:vhosts].first['port'].should == '666'
      node['apache'][:vhosts].first[:port].should == '666'
    end

What I expected to Happen
I expected Chef 12 to behave as Chef 11 did, whereby the keys of the Hash inside the array node['apache']['vhosts’] should be accessible using either symbol or string values.
What Actually Happened
Under Chef 12, accessing the ‘port’ key of the Hash inside the array node['apache']['vhosts’] using a symbol results in the value returned being nil, instead of the expected ‘666'
The Cause
What I have identified so far is that the attribute value in question is a different object type in Chef 12 than it was in Chef 11.
In Chef 11, node.default["apache"]["vhosts”] was an ImmutableArray containing an ImmutableMash. This mash meant that of course symbols and strings could be used interchangeably to access Mash keys.
In Chef 12 however, node.default["apache"]["vhosts”] is now an AttrArray containing a plain old Hash. This now means that when a string key is requested using a symbol, it does not exist and returns nil.
I’m still digging into precisely what changed to cause this new behaviour (I suspect it’s something to do with the new attribute cache), but I wanted to file the issue here anyway in case anybody else is able to locate the cause or recognises the symptoms.
I can also confirm that this issue is not fixed by #2753.

@lamont-granquist  / @danielsdeleo this is the attribute issue I mentioned last night we're seeing in Chef-client 12. Investigations continue as to what changed to cause this, but wanted to get the issue logged asap as per your request.

are you missing the 'node.default' accessor bit on your chef-11 rspec example?  that'd certainly cause a difference since node[:foo] will return an ImmutableMash/ImmutableArray while node.default[:foo] should be a VividMash/AttrArray (in both chef-11 and chef-12 i believe).

Yeah, when I backport your chef-12 spec directly to chef-11 without changing it, I get the same result:
     Failure/Error: expect(node.default['apache']['vhosts'].first[:port]).to eql('666')

       expected: "666"
            got: nil

Its also an AttrArray around a plain-old Hash.

@lamont-granquist hmm I get the same. The odd thing is though in that case, it does work for us using chef-client 11.16.x, we only spotted the attribute going missing in 12.x.

Can you write more of the larger context?

@lamont-granquist here's a test cookbook I've been using: https://gist.github.com/jonlives/dbdab7b17ab99e51fdff
Apologies for stupid github file naming rules. Running this under chef-client 11.16, the vhost created in /etc/httpd/conf.d/attr_test.conf should be "*:666".
In chef-client 12 however, the vhost ends up being "*:"

Your chef-11 rspec example also works fine in chef-12.  I get an ImmutableArray/Hash all the way through and the symbols work fine.

Hmm that may have been a red herring if I wasn't writing my specs good. I can consistently reproduce the issue with the cookbook above though.

works on Chef 12.1.0.dev.0:
% chef-client -z -j dna.json
[2015-02-06T10:04:11-08:00] WARN: No config file found or specified on command line, using command line options.
Starting Chef Client, version 12.1.0.dev.0
resolving cookbooks for run list: ["test::default"]
Synchronizing Cookbooks:
  - test
Compiling Cookbooks...
Converging 1 resources
Recipe: test::default
  * template[/tmp/attr_test.conf] action create
    - create new file /tmp/attr_test.conf
    - update content in file /tmp/attr_test.conf from none to d69e55
    --- /tmp/attr_test.conf	2015-02-06 10:04:18.000000000 -0800
    +++ /var/folders/rs/wqwmj_1n59135dhhbvfdrlqh0001yj/T/chef-rendered-template20150206-68582-ah6y5v	2015-02-06 10:04:18.000000000 -0800
    @@ -1 +1,5 @@
    +<VirtualHost *:666>
    +  ServerName   atlas.trimix.foo.bar.com
    +</VirtualHost>
    +
    - change mode from '' to '0644'

Running handlers:
Running handlers complete
Chef Client finished, 1/1 resources updated in 6.186161 seconds

that is on my mac, not centos or ubuntu.

Any chance you're trying to upgrade chef-12 via /opt/chef/embedded/bin/gem install ./chef-12.1.0.dev.0.gem and getting trolled by appbundler and still running 12.0.x without the patch?

I'm getting that behaviour on 12.0.3, with the patches from #2753 manually applied. Is there an RPM build of 12.1.0.dev.0 I could try out?

no
best bet is to wipe /opt/chef/embedded/apps/chef and git clone master into that.

Lemme try that just now - there's a chance I might have borked applying the patches then.

and if you're manually applying patches into /opt/chef/embedded/lib/ruby/yadda/yadda thats the wrong place as well...

Well now, this is kind of embarrassing. Not only did I write bad specs, it turns out I also evidently applied the patch incorrectly (tho I did put it in /opt/chef/embedded/apps/chef) because 12.1.0.dev.0 is indeed working correctly. I'm going to close this off now and go and do something entirely unrelated to computers. Thanks for your kind patience :p

lololololol =)


Openseadragon for maptiler (newbie question)

Can someone explain to me how to use openseadragon for viewing maptiler mbtiles output?
I have tried using this code basically
OpenSeadragon({
id: "openseadragon1",
prefixUrl: "/openseadragon/images/",
tileSources:   [{
type:       "tiledmapservice",
tilesUrl:   "/maps/t1/t1.mbtiles",
}]
}]
But nothing is displayed except the buttons.
I can make it work with a jpeg so I guess the installation must be ok. And i can the buttons.
Any help much appreciated. If there are other ways to view maptiler output for example.
I am new to openseadragon and not very experienced at html either!
Thanks

Unfortunately I don't know anything about Maptiler... I presume it produces TMS files? Our TMS example (http://openseadragon.github.io/examples/tilesource-tms/) includes a width and height... maybe that's important? BTW, that example isn't working at the moment because the dataset it points to is no longer online... We're on the lookout for another dataset to use!
Looks like we have some other issue filed awhile ago about Maptiler and/or TMS, but they are not the same thing (https://github.com/openseadragon/openseadragon/issues/355, https://github.com/openseadragon/openseadragon/issues/1365)... still, perhaps @hampusb  or @francescocretti who filed them might have some ideas here.

Many thanks for your help. I will look into this further. JD

Ehy @tpl42 .
I've never used maptiler, but a TMS (Tile Map Service) output should be a set of folders and subolders numbered by rows and columns.
Looking at your example seems like you have a .mbtiles file that is probabily not readble as a tiledmadservice input (@iangilman correct me if I'm wrong).
Your could try to convert your mbtiles output to a proper TMS scheme.
I found this on Google: https://github.com/tomchavakis/MBTilesToTMSApi
Otherwise you could use another tool to generate yout tiles from the original image. I used this script: https://www.gdal.org/gdal2tiles.html.
I documented the tiles generation process in the README of my project repo: https://bitbucket.org/splsteam/splswebapp/src
Once you have TMS scheme files you can set OSD options like this:
"id": "OSDviewer",
"tileSources": {
  "type": "tiledmapservice",
   "tilesUrl": "../media/images/tilesTMS/",
   "crossOriginPolicy": "Anonymous",
   "width": 16776704,
   "height": 8388352
   }

(make sure the path in tilesUrl is correct).
Hope it could be useful. Let me know.
Francesco

UPDATE
Seems you can perform the conversion from mbtiles to TMS with mbutil https://github.com/mapbox/mbutil

@francescocretti Awesome! Thank you for adding this info!
BTW, have I already asked you if you know of a TMS tile source out there we can use for our example page?

@iangilman mhm in don't know about an open TMS tile source one the web.
I could generate one if you know where to host it

Thanks for your help. I have now tried zoomify and found that works OK with openseadragon.
It seems openseadragon wants the width and height of the image and I don't see how to get this information from MapTiler .

@francescocretti That would be great! We can host it on https://github.com/openseadragon/example-images. Let me know how you'd like to get it to me... you can make a pull request against that repository, or send me a Dropbox/Drive link or something.

@tpl42 I don't know enough about MapTiler to know where to find that information either. Glad you found something that works!


UI - strata/platforms - reset stores and other tweaks

Issue:

bcgov/entity/issues/24327

Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Temporary Url for review: https://strr-platform-dev--pr-312-bm3pm6fc.web.app

Temporary Url for review: https://strr-strata-hotel-dev--pr-312-3py66uve.web.app


allow user to set ParticleSwarm's random number generator

Initially I had restricted the trait requirements for G (Generator) to be Rng+SeedableRng, however with just Rng a user is perfectly able to use a SeedableRng, so I don't think it is necessary to set the extra requirement (the default provided by the constructor is itself seeded so a user can just pass a differently seeded generator, as in the provided doctests).
With this change we can pin the behaviour of ParticleSwarm in tests and bechmarks.

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

Comparison is base (64352e4) 93.29% compared to head (50ec33f) 93.31%.
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #383      +/-   ##
==========================================
+ Coverage   93.29%   93.31%   +0.02%
==========================================
  Files         117      117
  Lines       18810    18872      +62
==========================================
+ Hits        17548    17611      +63
+ Misses       1262     1261       -1

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


Deprecated dependencies<EMAIL_ADDRESS><EMAIL_ADDRESS>

$ npm i tape
npm warn deprecated<EMAIL_ADDRESS>This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated<EMAIL_ADDRESS>Glob versions prior to v9 are no longer supported

Transitive deprecation warnings aren't actionable, npm shouldn't show them, and you should ignore them :-)
As for glob, we can't ever upgrade because glob 8 drops node versions tape supports. inflight comes with glob, and there's nothing I can do about that.

You can use https://github.com/socketsupply/tapzero with a similar interface, no dependencies and no npm warnings.


JRTB-2: add telegram bot to the project

Create stub telegram-bot for the project.
Acceptance criteria:
stub answer via telegram-bot added to the project

added in #15 pull-request


bump json to 1.8.5

Ruby 2.4 has an issue with json 1.8.3 used in the gem. This just bumps the json version to 1.8.5
Details of the error are here:
https://github.com/flori/json/issues/303
the Bitfinex-rb gem seems to work fine after the version bump.

Implemented on master


Fix: Mai Tai recipe

For a single serving it's meant to have 2/3 oz light rum in the shaken mix instead of 1 oz, and 1/3 oz dark rum splashed in the glass after straining.

#231


How can I get the number of undeleted items?

To avoid a error when i use 'knn_query' method with k < N
N is the number of undeleted items

Hm. There is no way to get it in python.
We can fix that, but probably it also makes sense to fix the search for that particular situation, it should add a negligible overhead.


Compile-error when static and instance members declared

If to declare static method with the same name as in superclass error occurs
class A {
 int m() => 1;
 int s() => 2;
}
class C extends A {
 int m();
 static int s() => 0;
}
main() {
 C c = new C();
}

dartanalyzer gives [error] The name 's' is already defined in 'A'
dart produces
static method 's' of class 'C' conflicts with instance member 's' of super class 'A'
static int s() => 0;
^
(Dart VM version: 1.13.0-dev.2.0 (Tue Sep  8 05:28:05 2015) on "linux_x64")
But where in the specification it is said about compile error here? The only that I was able to find (in chapters "10.9.1 Inheritance and Overriding" and "10.1 Instance Methods")
"It is a static warning if a class C declares an instance method named n and an accessible
static member named n is declared in a superclass of C." and "It is a warning if you have an static member named m in your class or any superclass (even though it is not inherited) and an instance member of the same name"
But both of this about having static method in superclass and instance method in the class. In the example above we have instance method in the superclass and static method in the class. Please point to the place in the specification where it is said that there should be an error in this case

Gilad can correct me if I'm wrong, but section 10 states:
It is a compile-time error if a class has an instance member and a static member with the same name.
I believe that the meaning of "has" is "declares or inherits".


Including FAQs in the documentation page?

Hello @kimrutherford @ValWood
I was looking at the Documentation page and I think people would expect to find there some of the things we addres in the FAQs (e.g. Data submission and formats).
Even if those pages are written in Q&A format, I think it may make sense to list the FAQ submenu below the current documentation menu. There is some overlap (gene pages mentioned in both), but I think it would be better.
The idea would be to have this FAQ menu:

As the Gene Pages menu item here:

Yes please!


Redefining Library

Recently, I've implemented the external libraries on the frontend, and in doing so understood a bit more about how the interpreter uses the external libraries. As such, a slight change in the structure of the Library (under Question) is required.
Right now the structure is as such.

chapter
externals is a list of strings that expose global functions to the interpreter (such as show, that renders a rune onto a webGL object).
files is a list of strings used to load up libraries. This is not needed anymore as the website is static, meaning that all the libraries must be served initially and used when it is needed.
globals is a list of strings. It has been unused so far, but I misinterpreted its usage before. Updated the usage below.

This is a structure that would better suit the needs of the website:
Library:

chapter: number (no change)
externalLibraryName: "NONE" | "TWO_DIM_RUNES" | "THREE_DIM_RUNES" | "CURVES" | "SOUND". This will be used to specify what external library (rendering webGL or playing sound) the assessment would be using. I considered inferring this from externals, but a field is more explicit and leaves no room for error on our part.
externals: string[] (no change)
globals: <string, value>[]. This is a list of pairs (string, value) that can be used to specify constants. This will be useful for the staff to introduce default values for the students or external libraries.

Do let me know if there are issues regarding data representation, @ningyuansg @indocomsoft @tuesmiddt

@remo5000 Can you look at the assessment files at cs1101s repository and see what node and attributes map to what library properties here so the backend team can have an easier time parsing the XML (#142)?

@ningyuansg sure

@tuesmiddt I've mocked the API calls here.

I'm assuming given this:
[
    ExternalLibraryNames.CURVES,
    [
      'make_point',
      'draw_points_on',
      'draw_connected',
      'draw_points_squeezed_to_window',
      'draw_connected_squeezed_to_window',
      'draw_connected_full_view',
      'draw_connected_full_view_proportional',
      'x_of',
      'y_of',
      'unit_line',
      'unit_line_at',
      'unit_circle',
      'connect_rigidly',
      'connect_ends',
      'put_in_standard_position',
      'full_view_proportional',
      'squeeze_full_view',
      'squeeze_rectangular_portion'
    ]
  ]

externalLibraryName = ExternalLibraryNames.CURVES and externals can be any subset of the inner array?

@tuesmiddt yes, except the array of strings and the externalLibraryName are different properties in the Library object. Nesting like that looks good though, we can change the structure to:
Library:

chapter
external:

externalLibraryName (string, one of the constants)
exposedSymbols (array of strings)

globals

What do you think?

@remo5000 Sounds good. Let's go with this.

Sure, I'll update the frontend PR with this revised structure to confirm

@remo5000 I'll be returning name instead of externalLibraryName

Renaming exposedSymbols -> naming also fits well with the proposed assessments XML API


OLCCD

Description
Rounding out CEPA-fest for today is OLCCD. Obligatory @loriab ping.
I'll get to the DF-versions tomorrow.
What are your new additions? Please provide a brief list.

New Features

[x] OLCCD

Status

[x] Click when ready for review-and-merge

Codecov Report

Merging #96 into master will increase coverage by 0.07%.
The diff coverage is 98.71%.


Schema.org

Thanks for creating this great query builder!
I notice that geospatial data is specifically extracted for the Schema.org vocabulary (placed in the code where this happens).
This currently uses the old http://schema.org/ prefix.  In more recent versions, Schema.org switched to the https://schema.org/ prefix (notice the s).  Could variants for this new prefix be added to the Sparklis configuration?  I can imagine that the old prefix will still be used by some people for some amount of time.
I am specifically looking at the two geospatial properties with Schema.org prefix (sdo:latitude and sdo:longitude), but the same may apply for other places in Sparklis where Schema.org may be used for other purposes.
For testing purposes you can make used of the following query over our endpoint: https://rebrand.ly/yvuputi

Thank you for notifying me the change. As suggested, I added the new pair of geospatial properties.
It works fine on my side with your endpoint. Please double-check.
I also added sdo: (the https one) and schema: (the http one) as a default prefixes for more conventional SPARQL queries (visible in the YASGUI view).
Important note: if properties schema:position and/or schema:logo properties were used to control the display of suggestions, they need to be replaced by the sdo: versions.

@sebferre Thanks for looking into this!
I do not see the map functionality yet.  This is how it looks on my side:

^ I'm expecting the "Map" tab to become active.
(This is with the online version that is tagged "Last modified May 26th, 2021" at the bottom of the web page.)

Here is the query that shows a map: rebrand.ly/f5rhp1a
To get the map, the special suggestion 'that has a geolocation' must be selected rather than individual properties for latitude and longitude. Benefits: a single selection, a trigger for the map, latitude and longitude columns are not shown in the table of results.

Thanks @sebferre !  The "has a geolocation" option works well.  Closing...


Replace CenteredPolyhedron by Polyhedra

We don't have a specialized Base.in method for Polyhedra.MixedMatHRep that uses the matrix representation for A * x, it falls back to getting each row of A separately. We can add a specialized method if that becomes a bottleneck for the performance.

It still requires https://github.com/JuliaPolyhedra/Polyhedra.jl/issues/75 for the compact representation of symmetric polyhedra.


Skeld room names in wrong place

Describe the bug
When I look at the Skeld map, the text for the rooms is misplaced; basically none of them are near the actual room. This only happens on Skeld and it even happens in incognitio mode.
To Reproduce
Steps to reproduce the behavior:

Open the app
Select Skeld

Expected behavior
The names of the rooms are located in the room.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Ubuntu 18.04
Browser Chrome
Version 90.0.4430.212 (Official Build) (64-bit)
Also happens in Version 91.0.4472.77 (Official Build) beta (64-bit)

Application version
v1.0.0-beta.2

First of all, thank you for taking the time in reporting this issue. This has already been addressed, upcoming changes can be viewed: https://kedyn.github.io/fusliez-notes/next/

Verified fixed in the "next" update.


Errors on rendering

I tried to render from the template (no changes) using the instructions.
Quarto version 0.9.653
quarto use template quarto-journals/elsevier
quarto render article.qmd --to elsevier-pdf

returned this error
Error running filter _extensions/elsevier/elsevier.lua:
_extensions/elsevier/elsevier.lua:60: attempt to call a nil value (field 'citeMethod')
stack traceback:

I can render the other journal themes. Just not this one.
Note, I quickly figured this out, but quarto use template quarto-journals/elsevier did not create article.qmd. I named my dir test and it created test.qmd. So I needed to run quarto render test.qmd --to elsevier-pdf

I am observing the same behaviour with Quarto version 1.0.3

Can you please upgrade to the latest version of quarto and see whether this issue persists? (V1.0.37)

Seems fixed with v1.0.37!