ssgsea error TypeError: Setting a MultiIndex dtype to anything other than object is not supported

Getting an error when running ssgsea could be related to this issue https://github.com/zqfang/GSEApy/issues/76
Cell In[18], line 1
----> 1 result = gseapy.ssgsea(data=programs, gene_sets=['MSigDB_Hallmark_2020'], min_size=5, max_size=500, threads=1)

File [~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/__init__.py:291](https://ondemand.carc.usc.edu/node/a01-16.hpc.usc.edu/50926/lab/tree/cobrinik_1090/rb_seus/~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/__init__.py#line=290), in ssgsea(data, gene_sets, outdir, sample_norm_method, correl_norm_type, min_size, max_size, permutation_num, weight, ascending, threads, figsize, format, graph_num, no_plot, seed, verbose, *args, **kwargs)
    270     weight = kwargs["weighted_score_type"]
    272 ss = SingleSampleGSEA(
    273     data=data,
    274     gene_sets=gene_sets,
   (...)
    289     verbose=verbose,
    290 )
--> 291 ss.run()
    292 return ss

File [~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/ssgsea.py:125](https://ondemand.carc.usc.edu/node/a01-16.hpc.usc.edu/50926/lab/tree/cobrinik_1090/rb_seus/~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/ssgsea.py#line=124), in SingleSampleGSEA.run(self)
    123 self._logger.info("Parsing data files for ssGSEA...........................")
    124 # load data
--> 125 data = self.load_data()
    126 # normalized samples, and rank
    127 normdat = self.norm_samples(data)

File [~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/ssgsea.py:73](https://ondemand.carc.usc.edu/node/a01-16.hpc.usc.edu/50926/lab/tree/cobrinik_1090/rb_seus/~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/ssgsea.py#line=72), in SingleSampleGSEA.load_data(self)
     71 def load_data(self) -> pd.DataFrame:
     72     # load data
---> 73     exprs = self._load_data(self.data)
     74     return self._check_data(exprs)

File [~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/base.py:181](https://ondemand.carc.usc.edu/node/a01-16.hpc.usc.edu/50926/lab/tree/cobrinik_1090/rb_seus/~/.conda/envs/ARMOR/lib/python3.11/site-packages/gseapy/base.py#line=180), in GSEAbase._load_data(self, exprs)
    178         rank_metric = rank_metric.reset_index()
    179         # rank_metric.set_index(keys=rank_metric.columns[0], inplace=True)
    180     # if rank_metric.columns.dtype != "O":
--> 181     rank_metric.columns = rank_metric.columns.astype(str)
    183 elif isinstance(exprs, pd.Series):
    184     # change to DataFrame
    185     self._logger.debug("Input data is a Series with gene names")

File [~/.conda/envs/ARMOR/lib/python3.11/site-packages/pandas/core/indexes/multi.py:3873](https://ondemand.carc.usc.edu/node/a01-16.hpc.usc.edu/50926/lab/tree/cobrinik_1090/rb_seus/~/.conda/envs/ARMOR/lib/python3.11/site-packages/pandas/core/indexes/multi.py#line=3872), in MultiIndex.astype(self, dtype, copy)
   3871     raise NotImplementedError(msg)
   3872 if not is_object_dtype(dtype):
-> 3873     raise TypeError(
   3874         "Setting a MultiIndex dtype to anything other than object "
   3875         "is not supported"
   3876     )
   3877 if copy is True:
   3878     return self._view()

TypeError: Setting a MultiIndex dtype to anything other than object is not supported

Yes, gseapy doesn't support MultiIndexes, and changing that is something the gseapy developers must address. mosaicMPI doesn't have it's own ssgsea functions accessible in python or a notebook, but it does from the command line. If you run mosaicmpi ssgsea, you can get the ssgsea outputs for all programs from an individual dataset, or you can input an entire integration and get ssgsea outputs for the representative programs for each community.

However, it looks like for your situation you could also convert the MultiIndex to a regular index before running gseapy.ssgsea. For example, if the columns are a MultiIndex, then you could run:
programs.columns = programs.columns.map('_'.join)

or, if it is the index:
programs.index = programs.index.map('_'.join)


Add custom $SECRET_DIR support for docker image

Just a minor change to make that environment variable to be customizable like the others are :)

Thanks @rcmorano. If you rebase on master we can include this in the release being prepared now. Thanks


Your Plugin is breaking with lates mermaid v10

Try your https://corentinleberre.github.io/docsify-mermaid-zoom/ website and see the mermaid loading fails as you are using @latest

I am also facing the same issue.
Here is a example I created o replicate this issue.
mermaid_diagram_not_loading.zip

Hey, there was a problem in the documentation about which version of docsify-mermaid and mermaid to use. I fixed it, so please let me know if it fixes your problem.

@corentinleberre
Still not working for me.
This webpage https://corentinleberre.github.io/docsify-mermaid-zoom/ works fine now

https://github.com/docsifyjs/docsify/issues/2015#issuecomment-1497822802
Adding this script fixed my issue.


Google search string missing https referrer

I wondered why some Google search phrases were missing.
Added
!(strstr (ref, "https://www.google.")) &&
after line 571 in src/parser.c to get the missing keyphrases shown in the report.

Interesting, can you please post the output of both, missing and not missing? Also, if you can post the actual lines from your access log will be great.

Single line logfile (ip and search phrase anonymized):
fd00:52b3:dd11:be36:e9d3:86f9:33ed:f4d4 - - [08/Apr/2017:22:51:02 +0200] "GET /some-redacted-url/ HTTP/1.1" 200 14849 "https://www.google.de/search?q=Some+Name+Searchme&rls=org.mozilla%3Ade%3Aofficial&tbm=isch&oq=Some+Name+Searchme&gs_l=mobile-heirloom-serp.3...7246.10304.0.108<IP_ADDRESS>.<IP_ADDRESS>2.1527.0j6j3.9.0....0...1c.1.34.mobile-heirloom-serp..4.6.857.zYY6olwAWeo" "Mozilla/5.0 (Android; Mobile; rv:32.0) Gecko/32.0 Firefox/32.0"
Without change: 0 keyphrases found
With the additional line in parser.c: 1 keyphrase found
I've got a few Google search referrers with  http://www.google.de/search?q=  in the logs, but more with https://... - so in real logfile, many keyphrases were missing.

Thanks for pointing this out. I didn't think Google would be sending keyphrases over https.
I have pushed a commit that should address this. Feel free to build from development, otherwise it will be pushed out in the upcoming release.

i was wondering if this has been merged yet and/or when a release might include it.
thanks

@ITwrx It has been merged. The upcoming release it's delayed, I still need to address a few bugs. Though, feel free to build from development if needed.

cool, thanks!


Using custom Django hashers, and being able to edit the hashers constant on the Django settings file (User migration from other E-com platforms)

Using custom Django hashers, and being able to edit the hashers constant on the Django settings file (User migration from other E-com platforms). This is a common problem when users want to migrate from another E-com platform with hashing algorithms not supported by default on the Django framework. Django support extending this feature with custom objects.
We are facing some limitations if we want to use the Saleor cloud or we want to avoid editing the saleor-core to avoid maintaining a fork.

Being able to edit the hasher list constant on the Django settings file (Using env variables to set the list, could be a solution).
Being able to add custom packages with the custom Django Hashers objects not supported by default on Django to the default project dependencies.

Hi @Dieg0x17,
What kind of hashes are you trying to import into Saleor? Software name and version would be useful to determine how the support could be implemented

My particular case is this hashing algorithm, other people could face the same problem with different algorithms and just covering my case is not the best solution, a general solution that can cover those could be better.
import base64
import hashlib
from collections import OrderedDict

from django.utils.crypto import (
    constant_time_compare, )
from django.utils.encoding import force_bytes
from django.utils.translation import gettext_noop as _
from django.contrib.auth.hashers import BasePasswordHasher, mask_hash

class UnsaltedBase64SHA512PasswordHasher(BasePasswordHasher):
    """
    Synfony sha512 encoder
    """
    algorithm = "unsalted_b64_sha512"

    def salt(self):
        return ''

    def encode(self, password, salt='', iters=5000):
        assert salt == ''
        digest = hashlib.sha512(force_bytes(password, encoding="ISO-8859-1")).digest()  # ISO-8859-1
        for i in range(iters - 1):
            digest = hashlib.sha512(digest + force_bytes(password, encoding="ISO-8859-1")).digest()
        return 'b64sha512$$%s' % base64.b64encode(digest).decode("ISO-8859-1")

    def verify(self, password, encoded):
        encoded_2 = self.encode(password, '')
        return constant_time_compare(encoded, encoded_2)

    def safe_summary(self, encoded):
        assert encoded.startswith('b64sha512$$')
        hash = encoded[11:]
        return OrderedDict([
            (_('algorithm'), self.algorithm),
            (_('hash'), mask_hash(hash)),
        ])

    def harden_runtime(self, password, encoded):
        pass

Hi @Dieg0x17, it looks like the base64 encoding is custom. We could add a general support for SHA512 encoded password directly to Saleor and you could adapt the users hashes from your database dump so they are compatible.
The following sample Python code would allow to convert from Base64 SHA512 hashes to plain-text SHA512 hashes:
import base64

# Base64 encoded SHA512 hash bytes from 'admin'
my_hash = "x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=="

# Decode hash to bytes
sha512_bytes: bytes = base64.b64decode(my_hash)

# c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec
sha512_bytes.hex()

I need to transform the password strings anyways, that could be a valid solution for my particular case.
I thought sha512 was not implemented by default in Django hashers only sha1 and sha256.
Could you please give me an example of the hash token prefix that the hasher will use to detect the algo?
thanks

Do you think we can have problems with the python utf-8 encoding?
The hashes were encoded using 1 byte Latin-1 (PHP default encoding).

Hi @Dieg0x17,

I thought sha512 was not implemented by default in Django hashers only sha1 and sha256.

SHA512 support is not implemented by Django, we would add it to the Saleor code based on the sha1 implementation of Django. The prefix would be unsalted_sha512, for example:
unsalted_sha512$$c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec

Do you think we can have problems with the python utf-8 encoding?
The hashes were encoded using 1 byte Latin-1 (PHP default encoding).

It shouldn't cause issues.

There is no round count support for standard SHA512 hashes (i.e. when not using bcrypt)
This would be implemented the same way as Django does for plain SHA1 hashes: https://github.com/django/django/blob/3b79dab19a2300a4884a3d81baa6c7c1f2dee059/django/contrib/auth/hashers.py#L721
Once SHA512 support is implemented into Saleor the users will automatically be upgraded to the Django default hashing algorithm (PBKDF2) upon login

Our migrated hashes have 5000 rounds. It could be useful having a general solution and be able to add new hasher objects with custom implementations, to achieve a general solution instead of fixing a particular algorithm case.
It will be fine if we can just load from an environment variable extra elements for the settings PASSWORD_HASHERS constant list and add the custom hasher module to the project dependencies if we can do that without maintaining a fork.

Thanks

@CossackDex

Closing as fixed by #13239


assignment 5

Programmer 1: We have a problem
Programmer 2: Let’s use RegEx!
Programmer 1: Now we have two problems

Nice work, 133


Username/Password Authentification [Question]

Simple question.
A bit confused :)
For what purpose does the client provide the username and password?
Does the client sign up at first login?
Who provides the username and password?
Or should I randomly generate 2 strings as the username and password for each client?

The username and the password will be used to connect to the MQTT Broker as the broker might not allow anonymous connections.
If you want to connect without providing credentials just pass null for both values


Add rez-build '--local-only' arg

Add an option to only see local packages, if a given package family has any local packages available.
Currently if you have local 'foo-1.0.0' available, but released 'foo-1.0.1' is also visible, then foo-1.0.1 is still taken as priority, even if you're currently developing foo and didn't expect there to be a higher-versioned released package.
The option should take nargs, in case you only want to enable it for specific packages.

Nice suggestion!
Isn't the wording of --local-only miss-leading?
Shouldn't it be more something like: --prefer-local

I also like the idea, but I'd prefer the naming suggested by @bfloch .

The naming is tricky. Eg, prefer-local suggests that local versions would
be tried first, and non-local second, but that doesn't describe the
functionality (doing that may be pretty complicated - I can't say for sure
without looking into this more closely). With this feature, only local
versions of a package would be used, if any local versions exist. Consider
what the help will look like:
--local-only [PKG, ..., PKG]: Use only the local versions of the given
packages, if local packages are present. If PKG is not specified, apply to
all packages.

Typically someone would use this because they want to be confident that
their local package is being used, for testing purposes, so with that in
mind I would think that the local-only behaviour would be more desired than
the local-preferred behaviour as described above.
Thoughts?
A
On Tue, Jun 25, 2019 at 11:13 PM JeanChristopheMorinRodeoFX <
<EMAIL_ADDRESS>wrote:

I also like the idea, but I'd prefer the naming suggested by @bfloch
https://github.com/bfloch .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nerdvegas/rez/issues/652?email_source=notifications&email_token=AAMOUSTNPVWHBZBZE2IYPQDP4IKWNA5CNFSM4H244MO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQGCTI#issuecomment-505438541,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMOUSS2JLCCYLFCV7AHBSDP4IKWNANCNFSM4H244MOQ
.

Fair. Especially since it can be used without arguments.
Rethinking it, you are right. Failing is probably the right thing to do if it can't resolve it to the locals, else we will just have default behaviour.
Is there a story where --no-local might want to also take arguments? As in: I am working on a bunch of packages locally and want to test against one of them being resolved from the release repo?

Yes, I think it would be fair to update --no-local to be able to specify
packages - that would feel more consistent with --local-only added (one is
actually the opposite of the other). That should probably be done in the
same PR that adds --local-only imo.
On Wed, Jun 26, 2019 at 11:25 AM Blazej Floch<EMAIL_ADDRESS>wrote:

Fair. Especially since it can be used without arguments.
Rethinking it, you are right. Failing is probably the right thing to do if
it can't resolve it to the locals, else we will just have default behaviour.
Is there a story where --no-local might want to also take arguments? As
in: I am working on a bunch of packages locally and want to test against
one of them being resolved from the release repo?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nerdvegas/rez/issues/652?email_source=notifications&email_token=AAMOUSRFJGXHQJNRWAVEE5DP4LARHA5CNFSM4H244MO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSBEAA#issuecomment-505680384,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMOUSWV34SOPQ3TEX4TO43P4LARHANCNFSM4H244MOQ
.

update --no-local to be able to specify packages

Throwing some suggestions into the mix.
$ rez build --exclude-path /home/marcus/packages # i.e. --no-local
$ rez build --include-path /packages             # i.e. --local-only

To work akin to..
$ rez env --exclude
$ rez env --include

In that they either explicitly include only a set of paths with --include, effectively meaning --local-only with that path is $REZ_LOCAL_PACKAGES_PATH, or for granularity..
$ rez env --exclude-path $REZ_LOCAL_PACKAGES_PATH/int

That way compatibility can be preserved, consistency maintained amongst arguments and an argument to the flag be expected (as opposed to --no-local and --local-only which is a little unclear about whether or not it takes an argument, grammatically speaking)

Hey @nerdvegas I've thought more on this and your proposal make sense with your extra information you gave after my response.
I think we could also add the same flag inside rez-test. If you rez-build --local-only, you might also be interested to run the package tests with the exact same dependencies artifacts that your package was built with.
What do you think?

Agreed, particularly as rez-test also supports --no-local already.
Related - no-local should also be updated to take an optional list of
packages, so it matches local-only. Should be straightforward for this to
be backwards compatible, just have to support no-local being either a bool,
or list of str (and fortunately the cli form is backwards compatible also).
Cheers
A
On Mon, Jul 15, 2019 at 6:27 AM Jean-Christophe Morin <
<EMAIL_ADDRESS>wrote:

Hey @nerdvegas https://github.com/nerdvegas I've thought more on this
and your proposal make sense with your extra information you gave after my
response.
I think we could also add the same flag inside rez-test. If you rez-build
--local-only, you might also be interested to run the package tests with
the exact same dependencies artifacts that your package was built with.
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nerdvegas/rez/issues/652?email_source=notifications&email_token=AAMOUSXVZSQ4DDBQSH3OHHTP7ODZ7A5CNFSM4H244MO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4MWMQ#issuecomment-511232818,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMOUST4O5TTFRDAQ3ANX2LP7ODZ7ANCNFSM4H244MOQ
.


App: primer for artists

Share the shoryboard/scripts/scenes with artists.

Film treatment: "A film treatment (or simply treatment) is a piece of prose, typically the step between scene cards (index cards) and the first draft of a screenplay for a motion picture, television program, or radio play."

https://www.masterclass.com/articles/how-to-write-a-film-treatment-in-6-steps#the-4-elements-of-a-film-treatment
https://nofilmschool.com/film-treatment


Infinite yield possible on 'ReplicatedStorage.Packages.Knit:WaitForChild("Services")'

Client:
local Knit = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Knit"))
Knit.Start():catch(warn):await()
local ReplicationService = Knit.GetService("ReplicationService") -- line 7

Server:
local Knit = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Knit"))
local ReplicationService = Knit.CreateService(
{
	Name = "ReplicationService",
		Client = {
		Data = Knit.CreateProperty(nil)
	}
})

You need to call Knit.Start() on the server too. If you still get this warning, I would suspect that a service is taking a long time to initialize. The GetService call on the client will yield indefinitely (hence the warning) until the services are available.


Add events section and publishing

We could build a combined list of the tech events happening in Frederick. We could source from the meetup group calendars and the techfrederick site itself (assuming that it has some kind of calendar view).
A daily GitHub Actions job could pull from these sources, produce new feeds and website updates, and commit any changes automatically.
The site could host:

An RSS/Atom feed of all the events
HTML pages of the events
An iCal feed for anyone that wants to add to their calendar.

I'm going to start with HTML pages to limit the scope. We can do RSS/Atom and iCal after (which should, hopefully, be pretty easy to add).


feat: React Query Migration

Feature Request
Migrate the current Axios library for React Query library
Describe the Feature Request
Replace the Axios lib with React Query lib due to the following reasons:

Built-in caching and automatic refetching help optimize API calls and reduce unnecessary requests.
Provides a more declarative approach to data fetching and management.
Integrates well with TypeScript and has good type definitions.
The complexity level is increasing with the addition of the pagination feature, which the React Query will better fit with this feature.

Describe Preferred Solution
The query should be fetched correctly, with no errors,
Less unnecessary  requests,
Cursor Pagination working,

Closing this issue due to opening at the wrong repository!


ci: no install needed for new version computation

Proposed change
Only node and checkout are needed for computing the new version. No need to install.

Cf. https://github.com/AmadeusITGroup/otter/pull/2207#discussion_r1783031205


Deprecated expressions

After running: terraform apply -var-file=terraform.tfvars -auto-approve
I have recevied few error messages:
Warning: Interpolation-only expressions are deprecated
  on ../modules/adversary1-vm/1-terraform_azure-create.tf line 6, in resource "azurerm_public_ip" "myterraformpublicip":   6:     location                     = "${var.location}"
Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.
Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.
(and 122 more similar warnings elsewhere)
Warning: Quoted references are deprecated
  on ../modules/dc1-vm/4-wait-for-domain-to-provision.tf line 7, in resource "null_resource" "wait-for-domain-to-provision":
   7:   depends_on = ["azurerm_virtual_machine.domain-controller"]

In this context, references are expected literally rather than in quotes.
Terraform 0.11 and earlier required quotes, but quoted references are now
deprecated and will be removed in a future version of Terraform. Remove the
quotes surrounding this reference to silence this warning.
(and 19 more similar warnings elsewhere)
Warning: "address_prefix": [DEPRECATED] Use the address_prefixes property instead.
  on ../modules/network/main.tf line 17, in resource "azurerm_subnet" "dc-subnet":
  17: resource "azurerm_subnet" "dc-subnet" {

(and 5 more similar warnings elsewhere)
Deployment was succesful and I could connect to the machines, so this is just an informational issue.

Confirming this issue and thank you.  Will have it fixed as soon as possible.

Committed update for resolving three fixed issues with deprecated Terraform v0.11 in this repository.


create table with Enum8 field failed

I try to import this clickhouse sample data: https://clickhouse.tech/docs/en/getting-started/example-datasets/cell-towers/
But tensorbase failed to create table
[w@ww tensorbase]$ clickhouse-client --port=9528
ClickHouse client version <IP_ADDRESS> (official build).
Connecting to localhost:9528 as user default.
Connected to TensorBase server version 2021.5.0 revision 54405.

ClickHouse client version is older than ClickHouse server. It may lack support for new features.

TensorBase :) use cell_towers

USE cell_towers

Query id: df8e7133-75ee-4df3-823d-1f39f4c0a5b3

Ok.

0 rows in set. Elapsed: 0.001 sec.

TensorBase :) CREATE TABLE cell_towers
:-] (
:-]     radio Enum8('' = 0, 'CDMA' = 1, 'GSM' = 2, 'LTE' = 3, 'NR' = 4, 'UMTS' = 5),
:-]     mcc UInt16,
:-]     net UInt16,
:-]     area UInt16,
:-]     cell UInt64,
:-]     unit Int16,
:-]     lon Float64,
:-]     lat Float64,
:-]     range UInt32,
:-]     samples UInt32,
:-]     changeable UInt8,
:-]     created DateTime,
:-]     updated DateTime,
:-]     averageSignal UInt8
:-] )
:-] ENGINE = BaseStorage ORDER BY (radio, mcc, net, created);

CREATE TABLE cell_towers
(
    `radio` Enum8('' = 0, 'CDMA' = 1, 'GSM' = 2, 'LTE' = 3, 'NR' = 4, 'UMTS' = 5),
    `mcc` UInt16,
    `net` UInt16,
    `area` UInt16,
    `cell` UInt64,
    `unit` Int16,
    `lon` Float64,
    `lat` Float64,
    `range` UInt32,
    `samples` UInt32,
    `changeable` UInt8,
    `created` DateTime,
    `updated` DateTime,
    `averageSignal` UInt8
)
ENGINE = BaseStorage
ORDER BY (radio, mcc, net, created)

Query id: a3e5385a-fa47-49b2-9feb-5318eda630aa

0 rows in set. Elapsed: 0.001 sec.

Received exception from server (version 2021.5.0):
Code: 4. DB::Exception: Received from localhost:9528. WrappingLangError(ASTError(" --> 3:11\n  |\n3 |     radio Enum8('' = 0, 'CDMA' = 1, 'GSM' = 2, 'LTE' = 3, 'NR' = 4, 'UMTS' = 5),␊\n  |           ^---\n  |\n  = expected type_name")). Error when AST processing:  --> 3:11
  |
3 |     radio Enum8('' = 0, 'CDMA' = 1, 'GSM' = 2, 'LTE' = 3, 'NR' = 4, 'UMTS' = 5),␊
  |           ^---
  |
  = expected type_name.

TensorBase :)

Extra information

tensorbase_version: 2151c5d41e52633912515bb3393d36f2321c939f
uname -a: Linux ww 5.12.2-1-MANJARO #1 SMP PREEMPT Fri May 7 17:53:15 UTC 2021 x86_64 GNU/Linux

@pymongo very thanks for your reporting! Enum8 is one CH type that TB have not implemented. We may prefer the low cardinality string like. But before this implemented, it is good to make this Enum like type to work!


Add Chinese language README

Moved this from the wiki to a MD in the repo, similar to PaddlePaddle git repos. There is now a link at the top of README.md that will load README_ch.md and same in the README_ch.md which will go back to English readme.
Please let me know if you would like to change this in any way.

If we have to be 100% correct then we may want name it README_cn.txt
CN = China,  and zh = simplified chinese =)
zh_CN
https://docs.oracle.com/cd/E19683-01/806-6642/new-tbl-72/index.html

Thanks Ryan! I made Raymond's suggestion (thanks!) and will merge now.


Reference error in handleErrors

Encountering a transport error results in...
data is not defined

Looks like data isn't defined here:
https://github.com/kadirahq/lokka-transport-http/blob/v1.6.0/lib/index.js#L28

That's a huge error. I'll fix it now.

Did a fix for this and released as v1.6.1


Replace

Coverage increased (+0.2%) to 96.154% when pulling 90421476be0c835ea3c48c6f6c07a1625bda2134 on replace into 6401aa96605147c8af37a0dbac2002370de27dbc on master.


Print embedded git info

Need the binary to output embedded git info, so I can see (more easily) whether the binary I'm working with is the latest version or not.

Useful docs: https://icinga.com/blog/2022/05/25/embedding-git-commit-information-in-go-binaries/


fix: typo

Hi @BillyBouman-2B-IT
thanks a lot for spotting this! Could you please sign our Contributor License Agreement so we can accept your proposal.
Thanks, Anna

@annawenger20 I've signed. No problem.

@annawenger20  I've signed. No problem.

Fixed the typo. The new documentation will be available with the next Help Portal update.


Help Needed: Create Example UI for react-popupify Documentation

Task Description
We need a comprehensive example UI that showcases the key features of react-popupify. The example should be easy to follow.
Goals

Clarity: The example should be clear and easy to understand.
Comprehensive: Cover the main features and use cases of react-popupify.
Interactive: Include interactive elements to demonstrate dynamic behavior.

Steps to Contribute

Fork the Repository: Fork the react-popupify repository to your GitHub account.

Clone the Repository: Clone the forked repository to your local machine.
git clone https://github.com/your-username/react-popupify.git
cd react-popupify
git checkout -b feat/examples

Add the Example: Create an example UI and add it to the documentation. You can place it in a new section or as a separate file within the /docs directory.

Commit and ush the new branch to your GitHub repository.

Create a Pull Request

Hey, Can you assign this issue to me? Thanks!

I've assigned this issue to you. Let me know if there's anything I can do to help you get started!


feat: make library work on Android

This PR:

exposes an underlying method hid_libusb_wrap_sys_device through HidApi::wrap_sys_device(); this method is necessary for working with already-opened file descriptors on device nodes, which is in turn needed for unrooted Android devices; and
sets the LIBUSB_OPTION_WEAK_AUTHORITY option on Android for unrooted devices to work.

Some background here. I'm working on adding Android Termux support to a downstream lib bitcoins-rs here:
https://github.com/summa-tx/bitcoins-rs/issues/94
These changes in the PR are necessary for libusb to work properly on Android, at least on Termux. Tested with a Ledger wallet device.

@joshieDo pinging explicitly since I noticed this repo is not being "wathced". Just in case this PR goes unnoticed.
Sorry for the spamming otherwise. Not exactly sure if GitHub notifies repo onwers for PRs if it's not watched.

lgtm, awesome. ill push the new version tomorrow


Rebuild django image with specific CPython version

AsIs
As noted in https://github.com/hwakabh/bennu-official/pull/30#issuecomment-1860739029, CPython CNB by paketo-buildpacks would use 3.10.13 by default, and this does not match app's expected version 3.11.5, which is specified in .python-version.
Meaning, paketo-buildpacks would not detect .python-version automatically.
Paketo Buildpack for CPython 1.9.0
  Resolving CPython version
    Candidate version sources (in priority order):
                -> ""
      <unknown> -> ""

    Selected CPython version (using ): 3.10.13

  Executing build process
    Installing CPython 3.10.13
      Completed in 7.861s

ToDo
Rebuild image with the flag BP_CPYTHON_VERSION to use specific Python version to build, the image in GHCR need to be updated.
Ref: https://github.com/paketo-buildpacks/cpython#bp_cpython_version
(Optional) Acceptance criteria

Evidences of rebuilding with the version of .python-version file, and this issue would not be related to any PR, so closed the issue after confirm actual version in build artifacts.
# Build with flags
% pack build ghcr.io/hwakabh/bennu-official/django:latest --builder paketobuildpacks/builder-jammy-full --env BP_CPYTHON_VERSION=$(cat .python-version) --publish
# (...)
===> ANALYZING
Restoring data for SBOM from previous image
===> DETECTING
6 of 9 buildpacks participating
paketo-buildpacks/ca-certificates 3.6.3
paketo-buildpacks/cpython         1.9.0
paketo-buildpacks/pip             0.18.0
paketo-buildpacks/pip-install     0.6.0
paketo-buildpacks/python-start    0.14.14
paketo-buildpacks/procfile        5.6.4
===> RESTORING
Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
Restoring metadata for "paketo-buildpacks/cpython:cpython" from app image
Restoring metadata for "paketo-buildpacks/pip:pip" from cache
Restoring metadata for "paketo-buildpacks/pip:pip-source" from cache
Restoring metadata for "paketo-buildpacks/pip-install:packages" from app image
Restoring metadata for "paketo-buildpacks/pip-install:cache" from cache
Restoring data for "paketo-buildpacks/cpython:cpython" from cache
Restoring data for "paketo-buildpacks/pip:pip" from cache
Restoring data for "paketo-buildpacks/pip:pip-source" from cache
Restoring data for "paketo-buildpacks/pip-install:cache" from cache
Restoring data for "paketo-buildpacks/pip-install:packages" from cache
Restoring data for SBOM from cache
===> BUILDING

Paketo Buildpack for CA Certificates 3.6.3
  https://github.com/paketo-buildpacks/ca-certificates
  Launch Helper: Reusing cached layer
Paketo Buildpack for CPython 1.9.0
  Resolving CPython version
    Candidate version sources (in priority order):
      BP_CPYTHON_VERSION -> "3.11.5"
                         -> ""
      <unknown>          -> ""

    Selected CPython version (using BP_CPYTHON_VERSION): 3.11.5

  Executing build process
    Installing CPython 3.11.5
      Completed in 7.323s

  Generating SBOM for /layers/paketo-buildpacks_cpython/cpython
      Completed in 1ms

  Configuring build environment
    PYTHONPATH          -> "/layers/paketo-buildpacks_cpython/cpython"
    PYTHONPYCACHEPREFIX -> "/tmp"

  Configuring launch environment
    PYTHONPATH -> "/layers/paketo-buildpacks_cpython/cpython"

Paketo Buildpack for Pip 0.18.0
  Resolving Pip version
    Candidate version sources (in priority order):
      <unknown> -> ""

    Selected Pip version (using <unknown>): 23.2.1

  Reusing cached layer /layers/paketo-buildpacks_pip/pip
  Reusing cached layer /layers/paketo-buildpacks_pip/pip-source
Paketo Buildpack for Pip Install 0.6.0
  Executing build process
    Running 'pip install --exists-action=w --cache-dir=/layers/paketo-buildpacks_pip-install/cache --compile --user --disable-pip-version-check --requirement=requirements.txt'
      Looking in links: /layers/paketo-buildpacks_pip/pip-source
      Collecting asgiref==3.7.2 (from -r requirements.txt (line 1))
        Obtaining dependency information for asgiref==3.7.2 from https://files.pythonhosted.org/packages/9b/80/b9051a4a07ad231558fcd8ffc89232711b4e618c15cb7a392a17384bbeef/asgiref-3.7.2-py3-none-any.whl.metadata
        Using cached asgiref-3.7.2-py3-none-any.whl.metadata (9.2 kB)
      Collecting Django==5.0 (from -r requirements.txt (line 2))
        Obtaining dependency information for Django==5.0 from https://files.pythonhosted.org/packages/ba/c7/61b02c0ef9e129080a8c2bffefb3cb2b9ddddece4c44dc473c1c4f0647c1/Django-5.0-py3-none-any.whl.metadata
        Using cached Django-5.0-py3-none-any.whl.metadata (4.1 kB)
      Collecting gunicorn==21.2.0 (from -r requirements.txt (line 3))
        Obtaining dependency information for gunicorn==21.2.0 from https://files.pythonhosted.org/packages/0e/2a/c3a878eccb100ccddf45c50b6b8db8cf3301a6adede6e31d48e8531cab13/gunicorn-21.2.0-py3-none-any.whl.metadata
        Using cached gunicorn-21.2.0-py3-none-any.whl.metadata (4.1 kB)
      Collecting packaging==23.2 (from -r requirements.txt (line 4))
        Obtaining dependency information for packaging==23.2 from https://files.pythonhosted.org/packages/ec/1a/610693ac4ee14fcdf2d9bf3c493370e4f2ef7ae2e19217d7a237ff42367d/packaging-23.2-py3-none-any.whl.metadata
        Using cached packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
      Collecting PyMySQL==1.1.0 (from -r requirements.txt (line 5))
        Obtaining dependency information for PyMySQL==1.1.0 from https://files.pythonhosted.org/packages/e5/30/20467e39523d0cfc2b6227902d3687a16364307260c75e6a1cb4422b0c62/PyMySQL-1.1.0-py3-none-any.whl.metadata
        Downloading PyMySQL-1.1.0-py3-none-any.whl.metadata (4.4 kB)
      Collecting pytz==2023.3.post1 (from -r requirements.txt (line 6))
        Obtaining dependency information for pytz==2023.3.post1 from https://files.pythonhosted.org/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl.metadata
        Using cached pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
      Collecting sqlparse==0.4.4 (from -r requirements.txt (line 7))
        Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
      Collecting typing_extensions==4.9.0 (from -r requirements.txt (line 8))
        Obtaining dependency information for typing_extensions==4.9.0 from https://files.pythonhosted.org/packages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl.metadata
        Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
      Collecting whitenoise==6.6.0 (from -r requirements.txt (line 9))
        Obtaining dependency information for whitenoise==6.6.0 from https://files.pythonhosted.org/packages/67/16/bb488ac8230f1bce94943b6654f2aad566d18aae575c8b6d8a99c78c489e/whitenoise-6.6.0-py3-none-any.whl.metadata
        Using cached whitenoise-6.6.0-py3-none-any.whl.metadata (3.7 kB)
      Using cached asgiref-3.7.2-py3-none-any.whl (24 kB)
      Using cached Django-5.0-py3-none-any.whl (8.1 MB)
      Using cached gunicorn-21.2.0-py3-none-any.whl (80 kB)
      Using cached packaging-23.2-py3-none-any.whl (53 kB)
      Downloading PyMySQL-1.1.0-py3-none-any.whl (44 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.8/44.8 kB 97.3 kB/s eta 0:00:00
      Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
      Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB)
      Using cached whitenoise-6.6.0-py3-none-any.whl (19 kB)
      Installing collected packages: pytz, whitenoise, typing_extensions, sqlparse, PyMySQL, packaging, asgiref, gunicorn, Django
        WARNING: The script sqlformat is installed in '/layers/paketo-buildpacks_pip-install/packages/bin' which is not on PATH.
        Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
        WARNING: The script gunicorn is installed in '/layers/paketo-buildpacks_pip-install/packages/bin' which is not on PATH.
        Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
        WARNING: The script django-admin is installed in '/layers/paketo-buildpacks_pip-install/packages/bin' which is not on PATH.
        Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
      Successfully installed Django-5.0 PyMySQL-1.1.0 asgiref-3.7.2 gunicorn-21.2.0 packaging-23.2 pytz-2023.3.post1 sqlparse-0.4.4 typing_extensions-4.9.0 whitenoise-6.6.0
      Completed in 7.479s

  Generating SBOM for /layers/paketo-buildpacks_pip-install/packages
      Completed in 426ms

  Configuring build environment
    PYTHONPATH -> "/layers/paketo-buildpacks_pip-install/packages/lib/python3.11/site-packages:$PYTHONPATH"

  Configuring launch environment
    PYTHONPATH -> "/layers/paketo-buildpacks_pip-install/packages/lib/python3.11/site-packages:$PYTHONPATH"

Paketo Buildpack for Python Start 0.14.14
  Assigning launch processes:
    web (default): python

Paketo Buildpack for Procfile 5.6.4
  https://github.com/paketo-buildpacks/procfile
  Process types:
    web: gunicorn --bind <IP_ADDRESS>:8000 bennu_official.wsgi
===> EXPORTING
Reusing layers from image 'ghcr.io/hwakabh/bennu-official/django@sha256:9614bc3e441f2e7ac81d4bf4aa8cc7fa17276223462df3240bd93890b292be89'
Reusing layer 'paketo-buildpacks/ca-certificates:helper'
Adding layer 'paketo-buildpacks/cpython:cpython'
Adding layer 'paketo-buildpacks/pip-install:packages'
Adding layer 'buildpacksio/lifecycle:launch.sbom'
Adding 1/1 app layer(s)
Adding layer 'buildpacksio/lifecycle:launcher'
Adding layer 'buildpacksio/lifecycle:config'
Reusing layer 'buildpacksio/lifecycle:process-types'
Adding label 'io.buildpacks.lifecycle.metadata'
Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'web'
Saving ghcr.io/hwakabh/bennu-official/django:latest...
*** Images (sha256:eafc7c3cf340513e6275bf702e44e12675f8c424121208008c6868186f432ca5):
      ghcr.io/hwakabh/bennu-official/django:latest
Adding cache layer 'paketo-buildpacks/cpython:cpython'
Reusing cache layer 'paketo-buildpacks/pip:pip'
Reusing cache layer 'paketo-buildpacks/pip:pip-source'
Adding cache layer 'paketo-buildpacks/pip-install:cache'
Adding cache layer 'paketo-buildpacks/pip-install:packages'
Adding cache layer 'buildpacksio/lifecycle:cache.sbom'
Successfully built image ghcr.io/hwakabh/bennu-official/django:latest

Though BP_CPYTHON_VERSION was provided, the actual Python version in the artifacts would be still 3.10.12, which is even not match with default-version of CPython CNB v1.9.0, so need to check further.
Available latest of 3.10.x is 3.10.13 in buildpack.toml of CPython CNB v1.9.0.
Ref: https://github.com/paketo-buildpacks/cpython/blob/v1.9.0/buildpack.toml#L291-L328
cnb@6d6e72e205b2:/workspace$ ls -al /layers/paketo-buildpacks_cpython/cpython/bin
total 48
drwxr-xr-x  2 1001 cnb  4096 Jan  1  1980 .
drwxr-xr-x 10 1001 cnb  4096 Jan  1  1980 ..
lrwxrwxrwx  1 1001 cnb     9 Jan  1  1980 2to3 -> 2to3-3.11
-rwxr-xr-x  1 1001 cnb   111 Jan  1  1980 2to3-3.11
lrwxrwxrwx  1 1001 cnb     8 Jan  1  1980 idle3 -> idle3.11
-rwxr-xr-x  1 1001 cnb   109 Jan  1  1980 idle3.11
-rwxr-xr-x  1 1001 cnb   239 Jan  1  1980 pip3
-rwxr-xr-x  1 1001 cnb   239 Jan  1  1980 pip3.11
lrwxrwxrwx  1 1001 cnb     9 Jan  1  1980 pydoc3 -> pydoc3.11
-rwxr-xr-x  1 1001 cnb    94 Jan  1  1980 pydoc3.11
lrwxrwxrwx  1 1001 cnb    53 Jan  1  1980 python -> /layers/paketo-buildpacks_cpython/cpython/bin/python3
lrwxrwxrwx  1 1001 cnb    10 Jan  1  1980 python3 -> python3.11
lrwxrwxrwx  1 1001 cnb    17 Jan  1  1980 python3-config -> python3.11-config
-rwxr-xr-x  1 1001 cnb 14472 Jan  1  1980 python3.11
-rwxr-xr-x  1 1001 cnb  3014 Jan  1  1980 python3.11-config

cnb@6d6e72e205b2:/workspace$ /layers/paketo-buildpacks_cpython/cpython/bin/python3.11
/layers/paketo-buildpacks_cpython/cpython/bin/python3.11: error while loading shared libraries: libpython3.11.so.1.0: cannot open shared object file: No such file or directory

cnb@6d6e72e205b2:/workspace$ python3 -V
Python 3.10.12

Since we have been changed builder from paketo to google-cloud in #77 (commits), this issue might be staled.
We have also confirmed with /cnb/process/shell, which is provided by multiple entries in Procfile, that the CPython version of build artifacts would be same as the one of .python-version in code basis.
(Python:3.12.1 .venv) 24-01-11 13:31:15 git/bennu-official [main] % kubectl -n bennuhp get pods
NAME                      READY   STATUS    RESTARTS   AGE
django-6d486d6857-9985r   1/1     Running   0          10h
mysql-5b59dd6949-2bxkb    1/1     Running   0          45h
(Python:3.12.1 .venv) 24-01-11 13:31:21 git/bennu-official [main] % kubectl -n bennuhp exec -it django-6d486d6857-9985r -- /cnb/process/shell
Defaulted container "django" out of: django, collectstatic (init), migrate (init), loaddata (init)
Python 3.12.1 (main, Dec 13 2023, 05:39:35) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>
>>> exit()


Fix flaky unit tests

Description of the change:
This fixes two flaky unit tests TestResolver and TestUpdates.
First, TestResolver, specifically the FailForwardEnabled/3EntryReplacementChain/ReplacementChainBroken/NotSatisfiable test case.
This test was changed in #2788 and currently references one of the three failed CSVs in the test namespace.
However, when you run this test multiple times, the resolver cache is sometimes handing back a different CSV (the following was a purposefully broken match in order to always print the test result):
$ go test -count=10 -run TestResolver ./pkg/controller/registry/resolver | grep 'failed to populate resolver cache from source'
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v2 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v2 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v2 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"
                Error:          "failed to populate resolver cache from source @existing/catsrc-namespace: csv catsrc-namespace/a.v1 in phase Failed instead of Replacing" does not contain "failed to populate resolver cache from source @existing/catsrc-namespace: csv TEST"

Note how sometimes the resolver is returning catsrc-namespace/a.v1 and sometimes it's catsrc-namespace/a.v2.
As I understand this test, the specific CSV doesn't matter for the error as all three are in the CSVPhaseFailed state. Therefore, my proposed fix removes the CSV name from the error match, so that it will match on any of the three CSVs. I believe this was the original intent of the test, looking at what it was prior to #2788 (noting that the error matching was split in two, based on the same omission of the CSV name).
Second, TestUpdates. In this piece of code:
https://github.com/operator-framework/operator-lifecycle-manager/blob/6ffec4d5a1c3245a5302a5ca02deebd1af543e7f/pkg/controller/operators/olm/operator_test.go#L3925-L3929
The for loop will keep hammering the fake operator with op.syncClusterServiceVersion(csv) and Get calls as fast as it possibly can. However, this is creating a race condition in the *RaceFreeFakeWatcher that is watching the fake OperatorGroup. Basically the watch channel is filling up (default watch channel length is 100 events, and if it fills up and closes, the go routine panics) more quickly than the operator can drain it.
The proposed fix here creates a sleep of 1ms between instances of this for loop. It only slows the test down negligibly, but it's enough to help the watch channel drain faster than it fills. In a real world Kubernetes API server, responses aren't going to be that fast anyways.
Motivation for the change:
Fix flaky unit tests, because they are the worst.
Architectural changes:

Testing remarks:
With fix, ran test 100 times to verify flake is gone:
$ go test -count=100 -run TestResolver ./pkg/controller/registry/resolver
ok      github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/resolver       391.615s
$ go test -count=100 -run TestUpdates ./pkg/controller/operators/olm
ok      github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/olm   13.768s

This compared to the current HEAD, which this test fails somewhere between 10-20% of the time.
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Bug fixes are accompanied by regression test(s)
[ ] e2e tests and flake fixes are accompanied evidence of flake testing, e.g. executing the test 100(0) times
[ ] tech debt/todo is accompanied by issue link(s) in comments in the surrounding code
[ ] Tests are comprehensible, e.g. Ginkgo DSL is being used appropriately
[ ] Docs updated or added to /doc
[ ] Commit messages sensible and descriptive
[ ] Tests marked as [FLAKE] are truly flaky and have an issue
[ ] Code is properly formatted

/cc @exdx @grokspawn
This is the flake that I ran into on #2903 :)

/ok-to-test


irust: 1.71.29 -> 1.71.28

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for irust is: Cross Platform Rust Repl
meta.homepage for irust is: https://github.com/sigmaSd/IRust
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.71.28 with grep in /nix/store/3rzfh6s8dw33g7y598nrz4k9nrf9dcja-irust-1.71.28
found 1.71.28 in filename of file in /nix/store/3rzfh6s8dw33g7y598nrz4k9nrf9dcja-irust-1.71.28

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

irust

Instructions to test this update (click to expand)

Either download from the cache:
nix-store -r /nix/store/3rzfh6s8dw33g7y598nrz4k9nrf9dcja-irust-1.71.28 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The nixpkgs-update cache is only trusted for this store-path realization.)
For the cached download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A irust https://github.com/r-ryantm/nixpkgs/archive/667ff173da2951ac228c500690b17c9e6fe46df5.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/667ff173da2951ac228c500690b17c9e6fe46df5#irust

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3rzfh6s8dw33g7y598nrz4k9nrf9dcja-irust-1.71.28
ls -la /nix/store/3rzfh6s8dw33g7y598nrz4k9nrf9dcja-irust-1.71.28/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

irust

Maintainer pings
cc @lelgenio for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

The correct next version is 1.71.30, that was recently released


Show time or date+time of message in message list

Showing the relative timestamp (e.g. 2 hours ago, 10 minutes ago, etc) under the message bubble in small text on the message list, or, the date and time if the message is more than 24 hours old.

Done in #63


MC-9891 Updates to SubscribedCatalogueResource and types

Inherit from MdmCommonDomainResource
Add types endpoint to get possible connection types
Make PublishedDataModel.modelType optional
Remove AvailableDataModel - obsolete
Update PublishedDataModel with content links and dates
Adjust subscribed catalogue creation - use correct structure for payload, add additional optional properties

Looks good to me, will wait on the UI PR>


Fix for #308 (proposed)

#308 Enhancements to detect useful tools used in the build pipeline for help in determining what scans are included as part of the release.

@scovetta any more inputs on this PR?

Sorry, yes @guyacosta I'll get my other comments in later tonight.

Each description is tool specific now or general as a placeholder.  Final selection of tools is updated.  Any other tools can be added as a custom rule where needed outside of Application Inspector.  Empty style tags were removed where needed.  PR is ready for a final review.


Remove Internal HttpHeaders Methods

Description
Replace internal HttpHeaders method usage with publicly available HttpHeaderName-based methods with the same performance.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

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


"global failure" for last test when acceptance test is present

global failure:
beforeEach failed on global failure: Cannot read property 'setContext' of null:

Source: | TypeError: Cannot read property 'setContext' of null     at Object.beforeEach (http://localhost:7357/assets/test-support.js:9324:16)     at callHook (http://localhost:7357/assets/test-support.js:4072:25)     at runHook (http://localhost:7357/assets/test-support.js:4095:7)     at Object.advance (http://localhost:7357/assets/test-support.js:3691:26)     at Test.queue (http://localhost:7357/assets/test-support.js:4264:22)     at test (http://localhost:7357/assets/test-support.js:4498:12)     at Object.onError (http://localhost:7357/assets/test-support.js:5212:5)     at window.onerror (http://localhost:7357/assets/test-support.js:6558:18)

This global failure occurs when I have an acceptance test present in my tests directory. NOTE: The tests run fine (including acceptance) in chrome headless browser, but not in the interactive qunit interface. I'm not sure how to approach this...
Here is my package.json:
{
  "name": "labs-nyc-factfinder",
  "version": "0.0.0",
  "description": "Small description for labs-nyc-factfinder goes here",
  "license": "MIT",
  "author": "",
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "repository": "",
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "ember test"
  },
  "devDependencies": {
    "babel-eslint": "^7.2.3",
    "broccoli-asset-rev": "^2.4.5",
    "broccoli-clean-css": "^1.1.0",
    "d3": "^4.11.0",
    "ember-ajax": "^3.0.0",
    "ember-browserify": "^1.2.0",
    "ember-cli": "~2.14.0",
    "ember-cli-app-version": "^3.0.0",
    "ember-cli-babel": "^6.3.0",
    "ember-cli-dependency-checker": "^1.3.0",
    "ember-cli-eslint": "^3.0.0",
    "ember-cli-foundation-6-sass": "0.0.24",
    "ember-cli-htmlbars": "^2.0.1",
    "ember-cli-htmlbars-inline-precompile": "^0.4.3",
    "ember-cli-inject-live-reload": "^1.4.1",
    "ember-cli-numeral": "^1.0.0",
    "ember-cli-qunit": "^4.0.0",
    "ember-cli-sass": "^6.2.0",
    "ember-cli-shims": "^1.1.0",
    "ember-cli-sri": "^2.1.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-d3": "^0.3.4",
    "ember-data": "~2.14.3",
    "ember-decorators": "^1.3.1",
    "ember-export-application-global": "^2.0.0",
    "ember-fetch": "^3.4.3",
    "ember-font-awesome": "^4.0.0-alpha.13",
    "ember-load-initializers": "^1.0.0",
    "ember-lodash": "^4.17.5",
    "ember-math-helpers": "^2.3.0",
    "ember-native-dom-helpers": "^0.5.4",
    "ember-resize": "0.0.17",
    "ember-resolver": "^4.0.0",
    "ember-source": "~2.14.0",
    "ember-test-helpers": "^0.7.0-beta.4",
    "eslint": "^4.3.0",
    "eslint-config-airbnb": "^15.1.0",
    "eslint-plugin-import": "^2.7.0",
    "eslint-plugin-jsx-a11y": "^5.1.1",
    "eslint-plugin-react": "^7.1.0",
    "foundation-sites": "^6.4.3",
    "loader.js": "^4.2.3"
  },
  "engines": {
    "node": "^4.5 || 6.* || >= 7.*"
  },
  "private": true,
  "dependencies": {
    "@turf/bbox": "^5.0.0",
    "babel-eslint": "^8.0.1",
    "ember-jane-maps": "0.0.5",
    "numeral": "^2.0.6"
  }
}

It seems to be caused by the visit('/report/demographic'); helper.
Here's the full test:
import { test } from 'qunit';
import moduleForAcceptance from 'labs-nyc-factfinder/tests/helpers/module-for-acceptance';

moduleForAcceptance('Acceptance | report shows correct statistics');

test('visiting /report', function(assert) {
  visit('/report/demographic');

  andThen(function() {
    assert.equal(currentURL(), '/report/demographic');
  });
});

Hmm, this is an odd one.  setContext is a method provided by ember-test-helpers (the version you are using is here), and must be present if the tests are actually running and passing like you mentioned.
Are there any customizations to tests/helpers/module-for-acceptance.js?
Also, this statement confuses me a bit:

but not in the interactive qunit interface

Can you describe how you are running the tests (what commands) when the do work vs when they do not work?

Hi @rwjblue - thank you for the response. I don't have customizations in my module-for-acceptance which can be seen below (I think it is just the standard).
"qunit interface" is just the web-based interface you see at http://localhost:7357/ as opposed to the console-based interface (which is also interactive so I can understand the confusion):

The first tab is headless Chrome, the second is web-based.
Tests work when:

I run them in headless Chrome
They're run through CI
Reload based on file changes

Tests do not work when:

I have an acceptance test present, and I use the web-based tester (the entire test suite runs fine, then a split second later, "global failure"). I used ember g acceptance-test test-name to generate.

After doing a git bisect, I pinned the 'presence-of-acceptance-test-breaking-web-based-tester' behavior to one commit that adds ember-browserify to package.json... that seems strange to me, possibly unrelated. However, after more digging, I found the use of a single addon component (which we built) seems to trigger the global failure. When it's commented out, no global failure, acceptance test passes. I can even re-add ember-browserify.
There are some weird behaviors deep inside that addon we use that I believe are causing this, specifically an error about setting properties on destroyed objects. I'm going to try to solve that issue, but it is confusing how the behavior differs between headless and web-based, and how an addon issue seems to be getting swallowed up.
I'll keep digging, but I think this is something project-specific rather than an issue with ember-cli-qunit. The branch I'm using is here.
module-for-acceptance.js
import { module } from 'qunit';
import Ember from 'ember';
import startApp from '../helpers/start-app';
import destroyApp from '../helpers/destroy-app';

const { RSVP: { resolve } } = Ember;

export default function(name, options = {}) {
  module(name, {
    beforeEach() {
      this.application = startApp();

      if (options.beforeEach) {
        return options.beforeEach.apply(this, arguments);
      }
    },

    afterEach() {
      let afterEach = options.afterEach && options.afterEach.apply(this, arguments);
      return resolve(afterEach).then(() => destroyApp(this.application));
    }
  });
}


error: A hash of at least 15 characters is required

Setup
Running quasar build and then quasar serve -h dist/spa or quasar dev
Error
This error comes in the browser, on on first use
error: A hash of at least 15 characters is required

I've tested it in a couple of places and on localhost, also @bumi got the same problem
I'm sure quasar dev has worked for me earlier in the week but not now
Will continue to debug ...

https://t.me/nostr_protocol/8642
That happens when Identicon receives an undefined input -- because the key generation process failed. It was a bug present at some point in the codebase, but fixed now.

https://t.me/nostr_protocol/8642
That happens when Identicon receives an undefined input -- because the key generation process failed. It was a bug present at some point in the codebase, but fixed now.

Still getting this error on quasar dev but not with quasar build
vue-router.esm-bundler.js?f6c4:3295
A hash of at least 15 characters is required.

Uncaught (in promise) A hash of at least 15 characters is required.

Cleanup your local keys and start anew. Does it fix it?

Still not working

For debugging purposes, the code that triggers it is here:
https://github.com/fiatjaf/branle/blob/176554cddd17aa4fc37ac9bc7d61fe07f31c97a9/src/store/getters.js#L18
It's trying to create an avatar from a pubkey, but the pubkey is not set for some reason.  Normally to do with localStorage I guess

just tried latest master still get the error:

'A hash of at least 15 characters is required.'

even after
localStorage.clear()

I refuse to believe.

This is happening.


change: Use new parametrization scheme for gates

Issue #, if available: N/A
Description of changes: Change the supertype of angled gates to be a parametrized abstract type containing the total angle count. This allows us to simply the gate application code.
Testing done: Unit and integ tests passed locally.
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
General

[x] I have read the CONTRIBUTING doc
[x] I used the commit message format described in CONTRIBUTING
[x] I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

[x] I have installed and run git secrets to make sure I did not commit any sensitive information (passwords or credentials)
[x] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[x] I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
Patch coverage: 27.23% and project coverage change: -9.90% :warning:

Comparison is base (c43bc16) 95.71% compared to head (3032c5a) 85.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
- Coverage   95.71%   85.82%   -9.90%
==========================================
  Files          35       35
  Lines        4040     3951      -89
==========================================
- Hits         3867     3391     -476
- Misses        173      560     +387

Files Changed
Coverage Δ

PyBraket/src/pygates.jl
10.25% <12.36%> (-86.81%)
:arrow_down:

src/gate_applicators.jl
76.19% <76.19%> (+3.21%)
:arrow_up:

src/gates.jl
93.75% <82.35%> (+0.41%)
:arrow_up:

src/schemas.jl
100.00% <100.00%> (ø)

... and 24 files with indirect coverage changes

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


KMeans Init Sparsity Support

Add sparsity support to KMeans Init and fix a few bugs in daal sparse kmeans++ init, onedal kmeans++ init, and kmeans infer. Specific changes planned or made in this PR.

[x] Fix distance calculation for sparse data in daal KMeans++
[x] Allow oneDAL Kmeans++ init to take n_trials same as daal and scikit-learn
[x] Fix difference between daal Kmeans++ dense and sparse results
[x] Implement KMeans init sparse support for CPU (just calling daal implementation - cpu)
[x] Fix oneDAL KMeans sparse infer on GPU
[x] Update Kmeans infer for sparse data to allow result options same as dense

I have verified that

[x] Daal kmeans init results are same for sparse and dense data
[x] oneDAL kmeans init results are same for sparse and dense data
[ ] oneDAL kmeans init results are same on cpu and gpu

Not same for dense data unless we compute initial centroids for dense GPU using cpu implementation

/azp run CI

/intelci: run

/intelci: run

Job with relavant changes in sklearnex http://intel-ci.intel.com/ef2ed706-d31d-f1b8-adb9-a4bf010d0e2e

/intelci: run

/azp run CI

/azp run CI

/intelci: run

/intelci: run

/intelci: run

/intelci: run

/azp run CI

The failures are not related.


fix: use global "crypto.randomUUID()"

Fixes #470

crypto global
crypto has become global since Node v21. In v18, it's still behind the experimental flag (although REPL loads it as global, which is somewhat confusing).
We will use a shim on the bundler level to inject crypto from node:crypto and to have the source code referencing the crypto global everywhere. Once we migrate to v20+ as the minimal supported, we can drop the shim without touching the source.

Released: v0.26.12 🎉
This has been released in v0.26.12!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Update to JMeter 5.4

Can you please to JMeter 5.4?

Hello, thank you for the request.
We are evaluating doing the migration (there are pros & cons).
Do you have any particular reason/request/requirement that would be satisfied by moving the project to Jmeter 5.4?
Please, if anyone else have reasons or just think this would be interesting, give feedback and we will prioritize this item higher.
Regards

Thanks for responding.
I want to test Graphql which is supported by this version.

Hello,
Thank you for sharing your needs, that clarifies a lot and helps us prioritize work to be done.
As far as I understand JMeter 5.4 only provides easier means (over previous versions) to edit and define GraphQL requests in JMeter GUI, but has no change in the underneath/core logic required to send GraphQL requests (it just uses the existing http sampler without any alteration). You should be able to generate GraphQL requests with existing httpSampler method in jmeter-java-dsl. Here is an example:
import static org.assertj.core.api.Assertions.assertThat;
import static us.abstracta.jmeter.javadsl.JmeterDsl.*;

import java.io.IOException;
import java.time.Duration;
import org.eclipse.jetty.http.MimeTypes.Type;
import org.junit.jupiter.api.Test;
import us.abstracta.jmeter.javadsl.core.TestPlanStats;

public class PerformanceTest {

  @Test
  public void testPerformance() throws IOException {
    TestPlanStats stats = testPlan(
      threadGroup(1, 1,
        httpSampler("https://api.github.com/graphql")
          .post("{\"query\":\"query { "
                + "repository(owner:\\\"octocat\\\", name:\\\"Hello-World\\\") { "
                  + "issues(last:20, states:CLOSED) { "
                    + "edges { "
                      + "node { "
                        + "title "
                        + "url "
                        + "labels(first:5) { "
                          + "edges { "
                            + "node { "
                              + "name "
                            + "} "
                          + "} "
                        + "} "
                      + "} "
                    + "} "
                  + "} "
                + "} "
              + "}\" }", Type.TEXT_PLAIN)
            .header("Authorization", "Bearer XXX")
      )
    ).run();
    assertThat(stats.overall().elapsedTimePercentile99()).isLessThan(Duration.ofSeconds(5));
  }

}

Do you have any particular need or idea regarding GraphQL that requires migrating to JMeter 5.4? How were you planning to use jmeter-java-dsl for GraphQL requests (maybe give some pseudo code on how you planned to use it)?
Regards

Above code resolves my query.
Thanks for sharing detailed example, it's really helpful.

I am glad that the example is helpful.
You might consider using something like this to build the query instead of using a plain string, or maybe use some more advanced way with graphql java library.
Regards


C# project generation crash

Operating system or device, Godot version, GPU Model and driver (if graphics related):
64bit Ubuntu 17.04, Godot alpha 2 snapshot
Issue description:
When trying to create the first C# script for any node in a Godot 3.0, alpha 2 snapshot, project, it crashes at 100% as tries to create the C# project files as well. However, the project and source files are never created. It's also impossible - as far I'm aware - to reopen the project after it crashes without having to restart Godot itself. So far I have only tested this is in newly created projects and not existing ones based on 3.0.
I hope what I said makes sense. Forgive me if this has already been reported. And sorry for the lack of crash logs - I'll get that in ASAP - just thought I'd report it also ASAP.
Steps to reproduce:

Create the first C# script in an empty Godot project.

Debug log

From the log:
Your mono runtime and class libraries are out of sync.
The out of sync library is: /usr/lib/mono/4.5/mscorlib.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.

Your mono runtime and class libraries are out of sync.
The out of sync library is: /usr/lib/mono/4.5/mscorlib.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
ERROR: gdmono_MonoLogCallback: Mono: FALTAL ERROR, ABORTING! Logfile: /home/tomascw/.godot/mono/mono_logs/1509507719.txt

   At: modules/mono/mono_gd/gd_mono_log.cpp:73.

What version of Mono do you have installed?

4.6.2 - I assumed Ubuntu would be up to speed on Mono by now.

That's too old, you need 5.2 or later. But you're lucky, Mono provides Ubuntu repositories for the latest version: http://www.mono-project.com/download/#download-lin

Thanks. I thought because they only releases up to 16.04 that the 17.x versions were up to date.


Improve Auth/Admission documentation

@kubernetes/sig-auth

Removed RBAC docs in favor of #643
Fixed image.

Giving myself LGTM

@johndmulhausen needs docs review

All comments addressed.

No other changes.  Taking liberty of adding docs LGTM.


Cuda 11.1 cudart SO name fix

In CUDA 11.1 the soname of libcudart remains versioned as 11.0 for better backward comparability. This PR updates the configure scripts accordingly.
This should also address issue #43689
Attn @sanjoy

This is currently preventing TF and Jax builds on 11.1 (at least with Ampere cards). Making these changes to the bazel config fixes the issue.


I wanna add the wavy shits to psych 0.5.2h but I can't find the lua stuffs in source

Describe your problem here.
So I can't find it, cuz I've tried searching "addGlitchEffect" alot of times AND NOTHING POPS UP.
And I wanna add it to my engine in 0.5.2h cuz some people might use it, so please, I want the code.
(no seriously, i cant find it fr)
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build?


[Other] Closes Issue #63

Fixes Issue
Fixes and Closes Issue #63

Changes Proposed
Fixed spelling errors on line number 2 and 39

Screenshots

Note to reviewers
Have a great weekend :D

@shubhsharma19 thank you for contributing :)


Checkbox checkmark accent is hard to see against dark flyout

My WPF application using MahApps.Metro uses a Flyout for the app's Settings UI. Most of the users use the default "Light" theme with the "Blue" accent color. The Flyout is Modal="True" and configured with the defaults). Under these conditions checkboxes in the flyout have checkmarks that don't stand-out very well:

A quickfix is to change the checkmark brush to use a lighter shade of accent, if not white, when a checkbox is displayed in a flyout.
Environment

MahApps.Metro v1.5.0
Windows 10
Visual Studio 2015
.NET Framework 4.6.1

@Jehoel The CheckBox and RadioBox uses the HighlightBrush brush for the check mark and pressed status. You can override these in your Flyout resources like this
<Style TargetType="{x:Type CheckBox}"
        BasedOn="{StaticResource MetroCheckBox}">
    <Style.Resources>
        <SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource AccentColor}" />
    </Style.Resources>
</Style>

(or whatever color you need)
Hope this helps.

@Jehoel Do you need more help?

Sorry, I had my Github notifications turned off. I'll try this later tonight and let you know.

Using AccentColor is still too dark - and I noticed the other shades (e.g. AccentColorBrush4) are just differing opacity levels, so they're even harder to see on a black background.
I would like to reference the color used by the current FlyoutForegroundBrush, however that color is defined by StaticResource BlackColor (which is actually white) which I cannot directly access ({StaticResource BlackColor}` gives me black).
How should I get white color if the flyout is dark, but a dark color if the flyout is white?

@Jehoel If you have a dark Flyout you need the WhiteColor or IdealForegroundColor and vice versa, for light Flyout the BlackColor.
<SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource WhiteColor}" />

<SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource IdealForegroundColor}" />

Perfect, thanks!

Has this changed for the Mahapps 2.0? I added your code to the window resources that contains the checkbox (and adjusted to be based on the Mahapps.Styles.Checkbox style), but it still doesn't let me change the color.

I see a lot of extensions in CheckboxHelper, but not sure if these do anything, as there is no documentation on them. https://mahapps.com/api/MahApps.Metro.Controls/CheckBoxHelper/

Has this changed for the Mahapps 2.0? I added your code to the window resources that contains the checkbox (and adjusted to be based on the Mahapps.Styles.Checkbox style), but it still doesn't let me change the color.

I see a lot of extensions in CheckboxHelper, but not sure if these do anything, as there is no documentation on them. https://mahapps.com/api/MahApps.Metro.Controls/CheckBoxHelper/

@Mgamerz Yes, it changed to MahApps.Brushes.Highlight in MahApps 2.0.
Here's the updated XAML (I've also included my style changes for Radio buttons and Hyperlinks as well):
<Style x:Key="inputCheckbox" TargetType="CheckBox" BasedOn="{StaticResource MahApps.Styles.CheckBox}">
		<Setter Property="Margin" Value="0 0 0 6" />
		<!-- Make checkbox checkmarks more visible: https://github.com/MahApps/MahApps.Metro/issues/2927#issuecomment-294739088 -->
		<Style.Resources>
			<SolidColorBrush x:Key="MahApps.Brushes.Highlight" Color="{DynamicResource MahApps.Colors.IdealForeground}"  />
		</Style.Resources>
	</Style>
	<Style x:Key="inputRadio" TargetType="RadioButton" BasedOn="{StaticResource MahApps.Styles.RadioButton}">
		<Setter Property="Margin" Value="0 0 0 6" />
		<Style.Resources>
			<SolidColorBrush x:Key="MahApps.Brushes.Highlight" Color="{DynamicResource MahApps.Colors.IdealForeground}"  />
		</Style.Resources>
	</Style>
	<Style x:Key="settingsHyperlink" TargetType="{x:Type Hyperlink}" BasedOn="{StaticResource {x:Type Hyperlink}}">
		<!-- https://stackoverflow.com/questions/1252889/changing-hyperlink-foreground-without-losing-hover-color -->
		<!--<Setter Property="Foreground" Value="{DynamicResource LabelTextBrush}" /> 2020-07-01: `LabelTextBrush` is removed. -->
		<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.IdealForeground}" />
	</Style>

@Mgamerz Yes, it changed to MahApps.Brushes.Highlight in MahApps 2.0.
Here's the updated XAML (I've also included my style changes for Radio buttons and Hyperlinks as well):
<Style x:Key="inputCheckbox" TargetType="CheckBox" BasedOn="{StaticResource MahApps.Styles.CheckBox}">
		<Setter Property="Margin" Value="0 0 0 6" />
		<!-- Make checkbox checkmarks more visible: https://github.com/MahApps/MahApps.Metro/issues/2927#issuecomment-294739088 -->
		<Style.Resources>
			<SolidColorBrush x:Key="MahApps.Brushes.Highlight" Color="{DynamicResource MahApps.Colors.IdealForeground}"  />
		</Style.Resources>
	</Style>
	<Style x:Key="inputRadio" TargetType="RadioButton" BasedOn="{StaticResource MahApps.Styles.RadioButton}">
		<Setter Property="Margin" Value="0 0 0 6" />
		<Style.Resources>
			<SolidColorBrush x:Key="MahApps.Brushes.Highlight" Color="{DynamicResource MahApps.Colors.IdealForeground}"  />
		</Style.Resources>
	</Style>
	<Style x:Key="settingsHyperlink" TargetType="{x:Type Hyperlink}" BasedOn="{StaticResource {x:Type Hyperlink}}">
		<!-- https://stackoverflow.com/questions/1252889/changing-hyperlink-foreground-without-losing-hover-color -->
		<!--<Setter Property="Foreground" Value="{DynamicResource LabelTextBrush}" /> 2020-07-01: `LabelTextBrush` is removed. -->
		<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.IdealForeground}" />
	</Style>

Hi @Jehoel
I am not sure if your code will work in the latest version of MahApps. The CheckBox-Glyph does not use MahApps.Brushes.Highlight anymore but has its own Brushes.
I transferred the question and my answer to #4026
Happy coding
Tim

Hi @Jehoel
I am not sure if your code will work in the latest version of MahApps. The CheckBox-Glyph does not use MahApps.Brushes.Highlight anymore but has its own Brushes.
I transferred the question and my answer to #4026
Happy coding
Tim

@timunie Ah, I'm using MahApps.Metro 2.1.1. I see the latest is 2.4.3 - so yeah, I'm a bit out of date.

@timunie Ah, I'm using MahApps.Metro 2.1.1. I see the latest is 2.4.3 - so yeah, I'm a bit out of date.


WIP: Allow swaggerui to be served from custom path

These are @nhardman's changes split out from #5 which build on #9.
Uses stencil templating to allow the swaggerui serving path to be configured.
TODO: address review comments from #5

The Travis failure on Linux with Swift 4.0.3 is genuine, I need to investigate.


Pip install issue

System information

OS Platform and Distribution: Manjaro Linux
TensorFlow installed from: Pip
TensorFlow version: 2.4.1
Python version: 3.9.2
Installed using virtualenv? pip? conda?: pip 20.3.1
GPU model and memory: Asus GTX 1070 8GB OC Snow Edition

Describe the problem
An issue with Pip is preventing being able to install Tensorflow just by doing pip install tensorflow and can't search for it either with Pip because they've shut down the PyPI XMLRPC Search, which has remained shut down since Jan 12 2021 according to their site status page → https://status.python.org
Attempting to install tensorflow produces the following error;
$ pip install tensorflow

Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow

and attempting to search for the package produces the following error as mentioned with the search being shut down;
$ pip search tensorflow
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 224, in _main
    status = self.run(options, args)
  File "/usr/lib/python3.9/site-packages/pip/_internal/commands/search.py", line 62, in run
    pypi_hits = self.search(query, options)
  File "/usr/lib/python3.9/site-packages/pip/_internal/commands/search.py", line 82, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python3.9/xmlrpc/client.py", line 1116, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.9/xmlrpc/client.py", line 1456, in __request
    response = self.__transport.request(
  File "/usr/lib/python3.9/site-packages/pip/_internal/network/xmlrpc.py", line 46, in request
    return self.parse_response(response.raw)
  File "/usr/lib/python3.9/xmlrpc/client.py", line 1348, in parse_response
    return u.close()
  File "/usr/lib/python3.9/xmlrpc/client.py", line 662, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: "RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.">

Any other info / logs

Python 3.9 is not supported currently.
See https://www.tensorflow.org/install/pip#system-requirements

This is marked as feature request. duplicate #44481
Thanks!


Text input header not changing when focus changes

On an iPhone 6:

open gallery
go landscape or portrait, doesn't matter
tap into Text fields
tap into Name
(notice how a Name header in blue appears above the field)
tap into Phone Number

Expected:

a blue "phone number" header appears above the field

Actual:

focus shifts to Phone Number, but the Name header in blue remains visible.

Note: sometimes I can make "Phone Number" blue header appear, but sometimes not. It also happens in reverse order: if I start with Phone Number and then tap into Name, sometimes the blue "Phone Number" header remains, and the "Name" header does not appear.

This looks fixed. Yay!


refactor: Starting loader for showing tasks earlier

Load data from db and only after that, update the list with data from server

I signed it!

Please, check again, I signed


top-nav-widget ms

Describe the feature that you'd like
Hello & thanks for Bootscore:)
Most buttons in header are ms-1 ms-md-2 (togglers, cart, user etc.). But top-nav-widget is registered with ms-2, so you have to edit parent theme for "ms-1 ms-md-2" or copy entire widget function or add css  @media (max-width: 768px) {.top-nav-widget {margin-left: 0.25rem!important;}} . Maybe change it initially to "ms-1 ms-md-2" :)?
function bootscore_widgets_init() {
 // Top Nav
...
 'before_widget' => '<div class="top-nav-widget ms-2 ">',
Why is this feature needed? What problem does it solve?
No response
Checklist

[X] I have searched the issues and this feature has not been requested.

Thank you for your request, but may I ask what's your case for this? top- nav widget position is next to the logo on mobile and ms-2 class is used to get space to the expanded menu. Changing to ms-1 ms-md-2 will have no effect?

top-nav widget as i've just checked is next to mobile toggle on mobile and the same on desktop. So when for example other buttons added top top-nav, they look ok on desktop but not on moobile.

On mobile there is nothing on the left side before this widget position, only the logo https://dev.bootscore.me/.
If you think this is a usefull improvement, please fork the theme and create a pull request. We will merge it.

Yes, nothing on the left, only logo, and serch on the right. But if you're going to add some additional buttons to the widget. Let's say we are adding 2 more buttons via wordpress admin panel, one after another in 2 different HTML-code containers. And the result on mobile would be like on img https://omfm.ru/123.png But with ms-1 ms-md-2 everything's gonna be ok:)

Understand. Please create a pull request, we will merge it.


Couldn't install Python packages.

Hello.
I have a issue with upgrading and installing python packages on SQL Server Machine Learning Services in in-database instance. I have tried both in-database installation using pip (from the proper instance) and remote client installation using sqlmlutils library. To be more precise I had a problem when I tried to fit a model using statsmodels.tsa.statespace.SARIMAX library and I got following error:
Invalid BXL stream error while running BxlServer: caught exception: Error communicating between BxlServer and client: 0x000000e9
So I thought an update of the library will help. First I struggled to update it with sqlmlutils through the remote client where I got this error:
('08S01', '[08S01] [Microsoft][ODBC SQL Server Driver]Communication link failure (0) (SQLEndTran)')
I succeeded with pip install but when I tried to import it in SSMS once more (because statsmodels updates the pandas library also) I had a new error:
Unable to communicate with the runtime for 'Python' script for request id: C3DCF376-3B87-4C3C-9BE5-125ACD788EB4. Please check the requirements of 'Python' runtime.” “ImportError: cannot import name 'DataFrame' from 'pandas' (unknown location)
Further more I tried to install fbprophet library using pip install and I got this error:
  Failed building wheel for fbprophet
  Running setup.py clean for fbprophet
Failed to build fbprophet
tables 3.5.1 requires mock>=2.0, which is not installed.
nltk 3.4 requires singledispatch, which is not installed.
Installing collected packages: Cython, numpy, six, python-dateutil, pytz, pandas, cmdstanpy, pystan, pyparsing, kiwisolver, cycler, matplotlib, ephem, LunarCalendar, pymeeus, convertdate, korean-lunar-calendar, holidays, setuptools-git, fbprophet
  Running setup.py install for fbprophet ... error
    Complete output from command "C:\Program Files\Microsoft SQL Server\MSSQL15.MLSERVER\PYTHON_SERVICES\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Marko\\AppData\\Local\\Temp\\pip-install-wyjwmusv\\fbprophet\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Marko\AppData\Local\Temp\pip-record-g_krzlzj\install-record.txt --single-version-externally-managed --compile --home=C:\Users\Marko\AppData\Local\Temp\pip-target-zavyou39:
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\fbprophet
    creating build\lib\fbprophet\stan_model
    Importing matplotlib failed. Plotting will not work.
    Importing plotly failed. Interactive plots will not work.

Finally I tried the to upgrade whole Python package using “binding” with Machine Learning Server app. That also failed with an error:
The instance must have a compatible version of SQL R Services (in-DB) installed.
I follow all the install instruction from the following link:
<https://docs.microsoft.com/en-us/sql/machine-learning/install/sql-machine-learning-services-windows-install?view=sql-server-ver15>
Can anyone tell me what is the problem?
Thanks in advance.

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

ID: bb790fba-2d19-b1a7-3935-6ec5f9207fcc
Version Independent ID: f350cf6b-0fa8-6d76-8433-f3f752e62ecf
Content: Install Python packages with sqlmlutils - SQL Server Machine Learning Services
Content Source: docs/machine-learning/package-management/install-additional-python-packages-on-sql-server.md
Product: sql
Technology: machine-learning
GitHub Login: @garyericson
Microsoft Alias: garye

@franc-93 -- thank you for your detailed question.  You may find answers here:

DBA Stack Exchange
Stack Overflow

cc @garyericson for awareness


install error on TrueNAS Scale bulid

Hi there,
total noob here, hitting a wall.
keep getting this Error when installing from the TrueCharts Catalog
Googled the error message and looked on the TrueCharts Discord.
couldnt really see anything relavent to satisfactory.
i7-4770 CPU
RAM 16GB
TrueNAS-SCALE-22.12-RC.1
""
Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 426, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 461, in __run_body
rv = await self.method(*([self] + args))
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1152, in nf
res = await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1284, in nf
return await func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 479, in do_create
await self.middleware.call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1306, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1266, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1169, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action
raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: parse error at (satisfactory/charts/common/templates/lib/pod/_volumes.tpl:103): function "break" not defined
""

Hey @SavageSalem!
I don't maintain that chart unfortunately, but it seems to be either an environment issue, or an issue with the chart. It's hard to say based off of that error alone, but Python isn't used whatsoever in this repo so unfortunately I doubt I'd be able to help much!


Add jira issue type config in settings

I guess I could have done it before. Anyways.
Adding a flexible way to add new JIRA issue type through settings.py.
When submitting a pull request, please make sure you have completed the following checklist:

[x] Your code is flake8 compliant
[x] Your code is python 3.5 compliant
[ ] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
[ ] Model changes must include the necessary migrations in the dojo/dd_migrations folder.
[ ] Add applicable tests to the unit tests.

Addresses https://github.com/DefectDojo/django-DefectDojo/issues/1579


How your ncaa football elo rating system works(this is a question, not an issue)

Hello, I'm making my own elo rating system for ncaa football. How does yours work?

Hello, here are a few articles where you can read about our football Elo ratings work:
https://fivethirtyeight.com/methodology/how-our-college-football-playoff-predictions-work/
https://fivethirtyeight.com/features/introducing-nfl-elo-ratings/
https://fivethirtyeight.com/methodology/how-our-nfl-predictions-work/


docs: add tx filterer docs, fix minor mistakes

What :computer:

add tx filterer docs
fix minor style mistakes/typos

Why :hand:

cover new feature with lacking docs

@dimazhornyk if this is still valid, can we move these changes into a PR for the new repo at https://github.com/matter-labs/zksync-docs?
We are closing PRs in this repo as it will be archived shortly.

@dimazhornyk if this is still valid, can we move these changes into a PR for the new repo at https://github.com/matter-labs/zksync-docs? We are closing PRs in this repo as it will be archived shortly.

It's fine I moved it to the new one, just forgot to close this PR


Liquibase changelog: Non-DDL report isn't refreshed according to the changes

System information:

Operating system (distribution) and version win 10 x64
DBeaver version 6.2.5

Describe the problem you're observing:
Non-DDL report isn't refreshed according to the changes
Steps to reproduce, if exist:

Generate Changelog
Uncheck some items - refresh report
Check DDL report - unchecked item isn't shown
Check non-DDL report - unchecked item still shown. Report isn't refreshed

Fixed

verified


Add a ctrl + click eventListener to open notifications in new tab

Description
Adds a new ctrl + click event listener to the entire notification div to allow users to decide whether theywant to go directly to the notification or for it to be opened in a new tab

Additional Context
There was some discussion about playing with a tags but only a select few notification types have a tags in the main body at the moment so to implement this would require redesigning all the notification objects. Also, to allow link-nesting we would have to really play with the css as html does not allow an a tag inside of an a tag. As a result this current change will not allow users to go the right click -> open in new tab route
*** Because this is adding a popup with window.open() this does create a pop-up permission since we are working within a div and it does not have traditional a tag functionality. I'm not totally sure if there is a way around this as it is not technically "clicking" a link (I tried with creating an anchor tag in 3d87012 but this has the same problem)

Checklist

[x] Are your changes backwards compatible?

[x] Did you QA this? Could we deploy this straight to production?

I did test with several notification types but not all of them!
is there any situation where we would want a different query type than ?commentId= and is there a situation where this ternary n.item.parentId ? as + '?commentId=' + n.id : as breaks down?

[x] For frontend changes: Tested on mobile?

I don't think this is a behavior we really want on mobile, while some users might* want this on a longpress or something I think we should avoid having stacker news be open in 100+ mobile tabs, also mobile browsers are pretty strict security wise so this would result in users having to check pop-up boxes regularly

Closing in favor of trying to use anchor tags to achieve this Mvp


New package: BrkgaMpIpr v1.0.1

Registering package: BrkgaMpIpr
Repository: https://github.com/ceandrade/BrkgaMpIpr.jl
Created by: @ceandrade
Version: v1.0.1
Commit: fda53350c63da98682a8ca3c0010241031e90363
Reviewed by: @ceandrade
Reference: https://github.com/ceandrade/BrkgaMpIpr.jl/issues/4#issuecomment-558707407

stop

This was a mistake. How can I cancel that? I would like to keep only pull request #5867


[Dubbo-7177] Fix 'java.io.FileNotFoundException' when 'dump.directory' not exists

What is the purpose of the change
Fix 'java.io.FileNotFoundException' when 'dump.directory' not exists
Brief changelog
Try to create if not exists, if can't be created, use 'user.home' as dump directory.
Verifying this change
Link to issue: #7177

Codecov Report

Merging #7178 (8377798) into master (d70b151) will decrease coverage by 0.33%.
The diff coverage is 63.63%.

@@             Coverage Diff              @@
##             master    #7178      +/-   ##
============================================
- Coverage     60.04%   59.70%   -0.34%
+ Complexity      290      288       -2
============================================
  Files          1004     1004
  Lines         40014    39985      -29
  Branches       5941     5913      -28
============================================
- Hits          24027    23874     -153
- Misses        13286    13388     +102
- Partials       2701     2723      +22

Impacted Files
Coverage Δ
Complexity Δ

...mmon/threadpool/support/AbortPolicyWithReport.java
80.00% <63.63%> (-17.50%)
0.00 <0.00> (ø)

...ava/org/apache/dubbo/rpc/cluster/Configurator.java
4.00% <0.00%> (-32.00%)
0.00% <0.00%> (ø%)

...ng/transport/dispatcher/all/AllChannelHandler.java
62.06% <0.00%> (-27.59%)
0.00% <0.00%> (ø%)

...bo/config/event/listener/LoggingEventListener.java
37.50% <0.00%> (-25.00%)
0.00% <0.00%> (ø%)

...bbo/common/bytecode/CustomizedLoaderClassPath.java
28.00% <0.00%> (-16.00%)
0.00% <0.00%> (ø%)

...ng/transport/dispatcher/WrappedChannelHandler.java
47.82% <0.00%> (-15.22%)
0.00% <0.00%> (ø%)

...dubbo/remoting/exchange/support/DefaultFuture.java
74.33% <0.00%> (-13.70%)
0.00% <0.00%> (ø%)

.../remoting/transport/netty4/NettyServerHandler.java
56.81% <0.00%> (-13.64%)
0.00% <0.00%> (ø%)

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
0.00% <0.00%> (ø%)

... and 45 more

Continue to review full report at Codecov.

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


Pool.getAddress function return a wrong address

const { Token, ChainId } = require('@uniswap/sdk-core');
const { FeeAmount, Pool } = require('@uniswap/v3-sdk');

// explorer url: https://sepolia.etherscan.io/
const tokenA = new Token(ChainId.SEPOLIA, '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14', 18, 'WETH', 'WETH');
const tokenB = new Token(ChainId.SEPOLIA, '0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984', 6, 'USDT', 'USDT');

const main = () => {
  const address = Pool.getAddress(tokenA, tokenB, FeeAmount.MEDIUM);
  console.log(address); // output 0xef3304094A3dd8AB2E748a9f6a87238F1eDD720b, this address is not a contract address
}
main()

Get wrong address:  0xef3304094A3dd8AB2E748a9f6a87238F1eDD720b
https://sepolia.etherscan.io/address/0xef3304094A3dd8AB2E748a9f6a87238F1eDD720b

Thanks this guy. Copy his reply to here.
I think Pool.getAddress is not quite what you need. Try doing the folowing
import { computePoolAddress } from "@uniswap/v3-sdk";

  const POOL_FACTORY_CONTRACT_ADDRESS_SEPOLIA = "0x0227628f3F023bb0B980b67D528571c95c6DaC1c";

  const address = computePoolAddress({
    factoryAddress: POOL_FACTORY_CONTRACT_ADDRESS_SEPOLIA,
    tokenA,
    tokenB,
    fee: FeeApount.MEDIUM,
  });

I didn't include boilerplate code like main() and so on, hope you'll get where to put this.
And I'm also not claiming that this is 100% correct way to do stuff, it just worked for me so give it a try
upd: now I can tell this is the recommended way
check the docs here: https://docs.uniswap.org/sdk/v3/guides/swaps/quoting#computing-the-pools-deployment-address