[BUG] pip install fails

Describe the bug
running pip install on python 3.7 fails
Clean miniconda 3.7 venv
To Reproduce
Steps to reproduce the behavior:
/opt/miniconda3/bin/conda create -n py3 python=3.7 -y
source /opt/miniconda3/bin/activate py3
pip install git+https://www.github.com/splunk/eventgen.git
Expected behavior
Successful install
Actual behavior
pip install git+https://www.github.com/splunk/eventgen.git
Collecting git+https://www.github.com/splunk/eventgen.git
  Cloning https://www.github.com/splunk/eventgen.git to /tmp/pip-req-build-rppyeyvk
  Running command git clone -q https://www.github.com/splunk/eventgen.git /tmp/pip-req-build-rppyeyvk
ERROR: Exception:
Traceback (most recent call last):
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 331, in run
    resolver.resolve(requirement_set)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
    req, self.req_tracker, self.finder, self.build_isolation,
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 33, in prepare_distribution_metadata
    self.req.load_pyproject_toml()
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 516, in load_pyproject_toml
    str(self)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_internal/pyproject.py", line 75, in load_pyproject_toml
    pp_toml = pytoml.load(f)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 11, in load
    return loads(fin.read(), translate=translate, object_pairs_hook=object_pairs_hook, filename=getattr(fin, 'name', repr(fin)))
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 24, in loads
    ast = _p_toml(src, object_pairs_hook=object_pairs_hook)
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 341, in _p_toml
    s.expect_eof()
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 123, in expect_eof
    return self._expect(self.consume_eof())
  File "/opt/miniconda3/envs/py3/lib/python3.7/site-packages/pip/_vendor/pytoml/parser.py", line 163, in _expect
    raise TomlError('msg', self._pos[0], self._pos[1], self._filename)
pip._vendor.pytoml.core.TomlError: /tmp/pip-req-build-rppyeyvk/pyproject.toml(4, 1): msg

Do you run eventgen with SA-eventgen?
No
If you are using eventgen with pip module mode (please complete the following information):

python version: 3.7 miniconda
Virtual Env is used: Yes
OS Centos

I'm also seeing this issue on various python versions.
@li-wu this looks like it has trouble parsing pyproject.toml, can you take a look?

@jmeixensperger sure, let me take a look.

@roryab This issue has been fixed. Thanks for your feedback.


Ability to forfait in multiplayer

Task consists of next steps:

Implement the push_game_gg method. This method declares forfeit of the player and set the win to the opponent. After it close the game.

Source file is src/generated/chess.rs.

Taken (Blue Oyster)

Taken (Blue Oyster)

Assigned


Fix: n-dimensional FFTs must preserve array contiguity when copying a view

closes #3033
closes #3079
A concrete example of the issue is given in #3033. This PR fixes that use case, adding a corresponding test case over both C and Fortran ordered views.
Please also backport this fix to the 7.x and 6.x branches. 7.x branch.

Hi Gregory,

Please also backport this fix to the 7.x and 6.x branches.

I think they stop making new v6 releases. However, if you and your collaborators install CuPy from conda-forge, we can apply the patch to the v6 feedstock for you.

I think they stop making new v6 releases. However, if you and your collaborators install CuPy from conda-forge, we can apply the patch to the v6 feedstock for you.

Oh, okay. Just 7.x is fine for my purposes.

ping.
I would like to get this fix merged, as I have a downstream project currently requiring a workaround for the issue.

cc @toslunar @emcastillo

I'll review the PR soon.

Thanks for reviewing @toslunar. Please see the latest commit and run CI if it looks good to you

Jenkins, test this please.

Jenkins CI test (for commit 482c2560ee64ee12d1e10d928cb95cfcd20b03ca, target branch master) succeeded!

Jenkins, test this please.

Jenkins CI test (for commit 22cede93580bbbc50ce77c2bbdd00fea466b8927, target branch master) succeeded!


Wrong plural form of model names in other locales then :en

Model names can be translated using standard i18n setup, but the pluralization still uses the english standard (ending "s"). For example: "User" and "Users" would be "Bruger" and "Brugere" in danish (da), but in active admin it appears as "Bruger" and "Brugers".
I have looked a bit around, and found that this can be fixed with a "hack fix" using inflections rules. This sounds like the inflection method pluralize is being used to pluralize the model names? It definitely looks like this is the method:
module ActiveAdmin
  class Resource
    module Naming
      #....
      def plural_resource_name
        @plural_resource_name ||= @options[:as].pluralize if @options[:as]
        @plural_resource_name ||= plural_human_name
        @plural_resource_name ||= resource_name.pluralize
      end
     #....

Correct me if wrong, but the method pluralize should not be used for translations, the rails inflector is mainly used for Rails internals, like guessing table names for models (see http://stackoverflow.com/questions/6178900/overide-default-pluralize-for-model-name-in-rails3 for short explanation).

I second that. I've been running into this issue lately. Using rails inflections for this matter breaks the AREL queries...

Two thing:
As I know AA can use the correctly translated model names. Pls translate your model names using one: and other: to make sure your plural expressions are translated correctly. E.g.
hu:
  activerecord:
    models:
      user:
        one: Felhasználó
        other: Felhasználók

Using this setup AA translates model names correctly.
If you ran into this issue directly after starting your development webserver, try touch-ing one of files under app/admin (not needed to change, just make a save on it, and make sure your editor/IDE is not optimizes out the mtime change to notify AA to reload itself.
With this trick, you can load the missing/incorrect translations.
However, there is a bug around translation loading, see #999 about it. I didn't start debugging it yet, but there is some problems about initial loading of AA.

I'm closing this issue. Please re-open if you're having trouble with plural forms when models are translated.


NameError: name 'k' is not defined

Hi,
I've been getting below issue trying to visualize activation heatmaps . I can't seem to understand why, since as I understand is just the channels_last format from keras backend.
I can see that in below line of keract.py the K is capital and in data_format = k.image_data_format() is not?
https://github.com/philipperemy/keract/blob/722d2588ac588d2ef6f9832758020deba7e70b3f/keract/keract.py#L5
I didn't have an issue with display_activations and first meets what display_heatmaps requires as input.
Am I missing something?
first = np.array(activations.get('bAct-1/Relu:0'))
keract.display_activations(activations, save=False)
first.shape, k.image_data_format()
((1, 20, 40, 8), 'channels_last')

keract.display_heatmaps(activations, first, save=False)

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-74-ebed9f04da1c> in <module>()
----> 1 keract.display_heatmaps(activations, first, save=False)

~/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/keract/keract.py in display_heatmaps(activations, input_image, directory, save, fix)
    194     import math
    195
--> 196     data_format = k.image_data_format()
    197     if fix:
    198         # fixes common errors made when passing the image

NameError: name 'k' is not defined

DV

I was able to overcome the above error by capitalizing the K in data_format = k.image_data_format(), but now I'm getting.
TypeError                                 Traceback (most recent call last)
<ipython-input-16-ebed9f04da1c> in <module>()
----> 1 keract.display_heatmaps(activations, first, save=False)

~/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/keract/keract.py in display_heatmaps(activations, input_image, directory, save, fix)
    248                 # scales the activation (which will form our heat map) to be in range 0-1 using
    249                 # the previously calculated statistics
--> 250                 if len(img.shape) == 1:
    251                     img = scaler.transform(img.reshape(-1, 1))
    252                 else:

TypeError: 'tuple' object is not callable

Sorry about the problem with the capitalisation. What format is first in, Keract is expecting a numpy array.

Thanks a lot for the response.
Here's first:
In[35]: first.shape, len(first.shape)
Out[35]: ((1, 40, 80, 16), 4)

I was able to resolve the issue (manually changing if len(img.shape()) ==... with if len(img.shape) ==... to avoid the tuple error.
Now I can see the heatmaps, but then the functions split the image when mapping the heatmap.
first = first.reshape(first.shape[1], first.shape[2], first.shape[3]) # Did this to remove the batch size
first.shape, len(first.shape) # ((80, 160, 1), 3)

keract.display_heatmaps(activations, first, save=False)
bAct-0/Relu:0 (1, 40, 80, 16) # Goes from (80, 160, 1) to (1, 40, 80, 16)

Thanks a lot for the response.
Here's first:
In[35]: first.shape, len(first.shape)
Out[35]: ((1, 40, 80, 16), 4)

I was able to resolve the issue (manually changing if len(img.shape()) ==... with if len(img.shape) ==... to avoid the tuple error.
Now I can see the heatmaps, but then the functions split the image when mapping the heatmap.
first = first.reshape(first.shape[1], first.shape[2], first.shape[3]) # Did this to remove the batch size
first.shape, len(first.shape) # ((80, 160, 1), 3)

keract.display_heatmaps(activations, first, save=False)
bAct-0/Relu:0 (1, 40, 80, 16) # Goes from (80, 160, 1) to (1, 40, 80, 16)

I can't see an img.shape() in your original traceback but I'm glad it's working for you now, what do you mean by "the functions split the image"?

First's name is bAct-0/Relu:0
Before applying keract.display_heatmaps:
(80, 160, 1)
After applying keract.display_heatmaps:
keract.display_heatmaps(activations, first, save=False)
bAct-0/Relu:0 (1, 40, 80, 16)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)

Should I keep the batch size of first?

First's name is bAct-0/Relu:0
Before applying keract.display_heatmaps:
(80, 160, 1)
After applying keract.display_heatmaps:
keract.display_heatmaps(activations, first, save=False)
bAct-0/Relu:0 (1, 40, 80, 16)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)
(40, 80)

Should I keep the batch size of first?

Does the image look alright? I'm fairly confident that that is just the dimensions of the activation

The image is split in two.

The image is split in two.
So half of it is shown with all the activations (8) and the other half after.

Can you upload a picture? I'm struggling to visualise what you mean

Let me take a second look, the image gets downsized before that.

Btw. My problem is a regression one, not classification. Is that an issue?

Problem of K corrected:
https://github.com/philipperemy/keract/commit/ce6df18d5f76f8dc69cbe611db881375bce552e2

@danvargg Did you solve your issues?

Thanks for the fix. Sorry for the late reply. I did manage to do the heatmaps (reducing input image size to match the conv).
But I still can't get the heatmaps right. Here's an example with images. Last image is the heatmap.
https://github.com/danvargg/data-science/blob/master/layersVis-Copy1.ipynb

@danvargg do you think it comes from the library or from your code?

@danvargg do you think it comes from the library or from your code?

@danvargg could you run https://github.com/philipperemy/keract/blob/master/examples/heat_map.py so we can begin to get an idea for where the issue lies

Will run between today and tomorrow.

It creates the cat's heatmaps with no issue.

My model is already an .h5 compiled model.

@danvargg I'm going to close the issue. Can you open a new one if it still does not work?

yes, sorry, I just got back.
I'll try a few more things with the heatmaps, if I can't make it work will open a separate issue.
BTW, this is a really neat library, has been really helpful.

@danvargg thanks we are working hard to make a good lib :)
Good luck!!

Anyone can help with the below code error?
Code:
model = load_model(os.path.join("/content/drive/MyDrive/models", "model.h5"))
model.summary()
Error:
NameError                                 Traceback (most recent call last)
 in ()
1
2
----> 3 model = load_model(os.path.join("/content/drive/MyDrive/models", "model.h5"))
4 model.summary()
5
1 frames
/usr/local/lib/python3.7/dist-packages/keras/layers/core/lambda_layer.py in get_slice(data, i, parts)
182     if self._fn_expects_mask_arg:
183       kwargs['mask'] = mask
--> 184     if self._fn_expects_training_arg:
185       kwargs['training'] = training
186
NameError: Exception encountered when calling layer "lambda_1" (type Lambda).
name 'K' is not defined
Call arguments received:
• inputs=tf.Tensor(shape=(None, 900, 2), dtype=float32)
• mask=None
• training=None

name 'K' is not defined

-> import tensorflow.keras.backend as K
But make sure you are using the latest code!

make sure you are using the latest code

I've tried it but not working, I'm using the latest code with Tensorflow 1.15.2

Can you use Tensorflow 2x instead?

I use tensor flow 2.8.0 also have this problem how to deal with it
  File "C:\Users\cxz12\Desktop\ecg-mit-bih\src\app.py", line 32, in model_predict
    return predictByPart(data, peaks)
  File "C:\Users\cxz12\Desktop\ecg-mit-bih\src\predict.py", line 62, in predictByPart
    model = load_model('../models/MLII-latest.hdf5')
  File "C:\Users\cxz12\.virtualenvs\ecg-mit-bih-K7eoGigA\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:/Users/cxz12/Desktop/ecg-mit-bih/src/graph.py", line 52, in zeropad
    """
NameError: Exception encountered when calling layer "lambda" (type Lambda).

name 'K' is not defined

@fan9704 @izainpasha @philipperemy
Hi, did anyone here manage to solve this K not defined error encountered while calling lambda layer?

@fan9704 @izainpasha @philipperemy
Hi, did anyone here manage to solve this K not defined error encountered while calling lambda layer?

I am facing the same problem

@CMDTausif can you add
import tensorflow.keras.backend as K

somewhere?
Also you should probably downgrade the versions if it does not work with the latest one.


[Feature]: Custom Categories, Subcategories.

Describe the feature
I like creating my own categories. I would love to be able to create custom subcategories. Examples: Category: Gear, Subcategory: Plate or Category: 05. MoP, Subcategory: Herbalism. Sub-Subcategories would be nice too, but that may be asking to much.
Describe the implementation
If implemented could you make a way to drag and drop one category into another to make it a subcategory of what it is dropped into? Also, being able to rename categories would be great.

This is called bisection, and is a planned feature of #189.

cool


Redirect to new unified article.

The pr for the other article is here: https://github.com/GoogleChrome/web.dev/pull/3593

Whoops!
There were 2 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/03/clipboardapi.md - Unable to read file, was it deleted?
src/content/en/updates/images/2018/03/clipboardapi/prompt.png - Unable to read file stats: ENOENT: no such file or directory, stat 'src/content/en/updates/images/2018/03/clipboardapi/prompt.png'

@petele The new article is up so the redirect to it can be merged.


Update README

Please provide detailed explanation for app and library used

Thanks for pointing that out.
I'll do that pretty soon!
Stay tuned


Double Escaping

When I try and run the example as in the documentation... it double escapes. Aka, the whole string returned by cache() is "" all over... :(

Hmmm, could you prepare an example app?

@hcatlin ?

Sorry, been a bit overwhelmed by other things... used a different plugin. Sorry!


Add API docs for the renderer and associated types

@bors-servo: r+

:pushpin: Commit 3d9b550 has been approved by pcwalton

:hourglass: Testing commit 3d9b5509ba47ee2e4edb4bdbd5f2ec2e7858767f with merge d4ec17554bcbcb596079ab1901eba9839b5f4d73...

:sunny: Test successful - checks-travis
Approved by: pcwalton
Pushing d4ec17554bcbcb596079ab1901eba9839b5f4d73 to master...


ceph-ansible: add hard-coded notario dependency

ceph-ansible has some new dependencies in requirements.txt which need to be installed to avoid the error:
[ERROR]: The python-notario library is missing. Please install it to continue.
Fixes: http://tracker.ceph.com/issues/24230

This is not going to work nicely unfortunately. We tried implementing the same for ceph-volume tests, and failed immediately on both CentOS7 and Xenial and all test scenarios with https://github.com/ceph/ceph-ansible/issues/2629
We are now just hard-coding the dependencies in https://github.com/ceph/ceph/pull/22116

thanks for review @alfredodeza. i'm not sure exactly what you mean there in # XXX Ideally we should be able to consume the requirements for ceph-ansible directly, but the master branch doesn't pin dependencies so we can't guarantee to work correctly - i see the same notario>=0.0.13 in requirements.txt there
was ceph-ansible always a python project, or are these python dependencies a recent addition? what will it take to fix ceph-ansible in a way that upstream changes there don't keep breaking these different users and their hard-coded dependencies?

I probably consider notario more stable because it doesn't move at the pace of ceph-ansible or Ansible itself, and it has never broken backwards compatibility.
ceph-ansible is not a Python project, but it relies on Python libraries, the main one being Ansible, and now it has added notario for validation (implemented as a Python plugin in ceph-ansible).
There is currently no way to avoid this problem, the only thing teuthology can do is to pin these dependencies and wait to see if https://github.com/ceph/ceph-ansible/issues/2631 gets addressed so that we can benefit directly from whatever ceph-ansible wants to pin to

@zmc, unit test failure for - > pcp.py                     322 ERROR    Downloading graphs failed!

@vasu I don't know what builds you are referring to

@alfredodeza ceph-ansible rpm and debian builds like ceph builds.

jenkins test this please

Jenkins retest this please

thanks folks!

@vasukulkarni we have ceph-ansible RPMs directly from master, at https://shaman.ceph.com/repos/ceph-ansible/master/
python-notario is available as an RPM from the CentOS Storage SIG, https://cbs.centos.org/koji/buildinfo?buildID=22798

python-notario-0.0.14 at https://cbs.centos.org/koji/buildinfo?buildID=23004


'utf-8' codec can't decode byte 0xae in position 4998: invalid start byte

[4:07:47.828 pm] Logging Started...
[4:07:55.542 pm] ZotHero[Script Filter] Queuing argument ''
[4:07:55.637 pm] ZotHero[Script Filter] Script with argv '' finished
[4:07:55.641 pm] STDERR: ZotHero[Script Filter] .
16:07:55 workflow.py:2093 DEBUG ---------- ZotHero (2.1.0) ----------
16:07:55 zh.py:684 DEBUG args={'--bibliography': False,
'--help': False,
'--paste': False,
'--style': None,
'--text': None,
'--title': None,
'': None,
'': None,
'': None,
'': '',
'

Hi,
Saw a few other posts like this that have been closed, but it didn't look there has been a solution?
Cheers,

I ran into the same issue. For me, the problem was a specific configuration parameter of Zotero. I've reseted its value and it now works. It may stop working once Zotero is setting this value again.
The parameter is extensions.zotero.recentSaveTargets and it was set to user_pref("extensions.zotero.recentSaveTargets", "[{\"id\":\"C63\",\"sessionID\":\"6CDnfGWC\"},{\"id\":\"C98\",\"sessionID\":\"3O4u4vZS\"},{\"id\":\"C101\",\"sessionID\":\"Zu8qBKaA\"},{\"id\":\"L1\",\"sessionID\":\"GkRFxMUF\"},{\"id\":\"L1\",\"sessionID\":\"abkkc5U3\"},{\"id\":\"L1\",\"sessionID\":\"BP6uoyVB\"},{\"id\":\"L1\",\"sessionID\":\"NWEc3Dyt\"}]");
The file on my machine is in ~/Library/Application Support/Zotero/Profiles/<some-profile>/prefs.js.
I tried reading this file line by line myself with only 3 lines of plain Python and it failed with the same utf-8 codec error:
path = "~/Library/Application Support/Zotero/Profiles/<some-profile>/prefs.js"
with open(path) as fp:
     for line in fp:
         line.strip() # fails for the line in question

I set the value to user_pref("extensions.zotero.recentSaveTargets", ""); (close Zotero before) and ZotHero worked. Honestly, I am not quite sure about the consequences of resetting this value but it seemed safe to me.

@timtroendle
Nice find! This worked for me too.


unsubscribe event

Codecov Report

Merging #67 into dev will decrease coverage by 0.06%.
The diff coverage is 1.21%.

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


Feat/streaming in minio

/snapshot-this

/snapshot-this

/snapshot-this

blabla

/snapshot-it

balbla

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-this

/snapshot-it


Crashing when running sklearnex in a GridSearchCV fit of a SVR model with TransformedTargetRegressor

Describe the bug
There is a crash when fitting a GridSearchCv object running an SVR model within a TransformedTargetRegresor.
No problem however, when fitting a GridSearchCv object with either a plain SVR model or a pipeline (scaler, SVR)
To Reproduce

Setup:

Several tried with the same results. An example is
python                    3.8.13               h6244533_0
scikit-learn              0.24.2           py38hf11a4ad_2
scikit-learn-intelex      2021.5.0         py38haa95532_0
Other versions tried are scikit-learn 1.0.1, scikit-learn-intelex 2021.5.0.

Call

A minimal code to reproduce the crash is
`from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import cross_val_predict, KFold, GridSearchCV
from sklearn.svm import SVR

from sklearn.compose import TransformedTargetRegressor
from sklearn.datasets import load_boston

boston = load_boston()
x, y = boston['data'], boston['target']

n_folds = 2
kf = KFold(n_folds, shuffle=True, random_state=1)

l_C, l_gamma, l_epsilon = [1.], [1. / 200.], [0.5]

print(40 * '_', 'transf targ regr + svr + gridsearch cv fit')

svr = SVR()
y_transformer = MinMaxScaler()
inner_estimator = TransformedTargetRegressor(regressor=svr,
                                            transformer=y_transformer)

param_grid ={'regressor__C': l_C,
            'regressor__gamma': l_gamma,
            'regressor__epsilon': l_epsilon}

cv_estimator = GridSearchCV(inner_estimator,
                            param_grid=param_grid,
                            cv=kf,
                            #refit=False,
                            n_jobs=1,
                            #return_train_score=True
                            )

cv_estimator.fit(x, y)`

Expected behavior
Running it as such causes no error and finishes the fit of the GridSearchCV object, but it crashes with python -m sklearnex.
First a warning is issued:
`miniconda3/lib/python3.8/site-packages/sklearn/model_selection/_search.py:969: UserWarning: One or more of the test scores are non-finite: [nan]`

followed by a ValueError
`ValueError: Input model support vectors are empty`

It appears the scores cannot be computed because model fit did not produce any support vectors.
Output/Screenshots
warnings.warn(
/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearn/model_selection/_validation.py:770: UserWarning: Scoring failed. The score on this train-test partition for these parameters will be set to nan. Details:
Traceback (most recent call last):
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearn/model_selection/_validation.py", line 761, in _score scores = scorer(estimator, X_test, y_test)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearn/metrics/_scorer.py", line 418, in _passthrough_scorer return estimator.score(*args, **kwargs)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearn/base.py", line 705, in score y_pred = self.predict(X)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearn/compose/target.py", line 274, in predict pred = self.regressor.predict(X, **predict_params)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearnex/_device_offload.py", line 176, in wrapper
result = func(self, *args, **kwargs)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearnex/svm/svr.py", line 46, in predict
return dispatch(self, 'svm.SVR.predict', {
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearnex/_device_offload.py", line 153, in dispatch
return branches[backend](obj, *hostargs, **hostkwargs, queue=q)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/sklearnex/svm/svr.py", line 79, in _onedal_predict
return self._onedal_estimator.predict(X, queue=queue)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/onedal/svm/svm.py", line 354, in predict
y = super()._predict(X, _backend.svm.regression, queue)
File "/home/jdorrons/miniconda3/lib/python3.8/site-packages/onedal/svm/svm.py", line 275, in _predict
result = module.infer(policy, params, model, to_table(X))
ValueError: Input model support vectors are empty
Environment:
Checked on Windows 11 and Ubuntu.

Hey!
I've written an issue regarding a similar problem with GridSearchCV and SVR. It is here #1046. I believe it crashes with this combination.
Thanks in advance!
Best,
David.


How can I set candidate background image when background image can not be found(404)?

When the background image can not be found, I use onerror to set the candidate background image, but it doesn't work. What's wrong?

{{schedule.courseName}}

Hello @komajunjun
Thank your for your interest in this project.
However, your issue is a usage/support question, and the issue tracker is reserved exclusively for bug reports and feature requests (as outlined in our Contributing Guide).
We encourage you to ask it on the forum  , Stack Overflow or on gitter and are happy to help you out there.

thank @LinusBorg , I have asked the question on quora, can you answer my question there, thanks in advance.

No, I'm not on quora.

Notice this code:
"url(../images/course-default.jpg)"

The image won't be loaded automatically by webpack, you should require/import it by yourself as a data property of vm, then you can use it in your template.

@JounQin do you mean that I should require/import url firstly?


refactor(react): update usePreservedCallback signature

Overview
Since ₩usePreservedCallback₩ needs to accept functions of all forms, due to contravariance, it’s appropriate to set the function parameter to the lowest possible type(never).

However, previously it was set to unknown, so when you pass in a function with specified parameter types, TypeScript throws an error.

Initially, I changed it to never, but since never has a problem in situations like the one above with implicit any. Because implicit any was inferred as never.
Therefore, in the end, I set it to the any type.
PR Checklist

[x] I did below actions if need

I read the Contributing Guide
I added documents and tests.

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

Project coverage is 76.57%. Comparing base (1453a43) to head (4eedeef).

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #1319   +/-   ##
=======================================
  Coverage   76.57%   76.57%
=======================================
  Files          67       67
  Lines         508      508
  Branches      112      112
=======================================
  Hits          389      389
  Misses        113      113
  Partials        6        6

Components
Coverage Δ

@suspensive/react
100.00% <100.00%> (ø)

@suspensive/react-dom
98.71% <ø> (ø)

@suspensive/react-native
100.00% <ø> (ø)

@suspensive/react-query
72.30% <ø> (ø)

@suspensive/react-query-4
0.00% <ø> (ø)

@suspensive/react-query-5
0.00% <ø> (ø)

@suspensive/jotai
0.00% <ø> (ø)

Resolve eslint error please 🙇


[Question] GlobalNetworkPolicy  vs NetworkPolicy

Calico version: 3.9 on gke15.9
I have 3 applications, app-go, nginx-1, and nginx-2 all in default namespace.
My goal is to add an ingress rule to allow incoming traffic from app-go to nginx-2.
If I have this global rule:
apiVersion: projectcalico.org/v3
kind: GlobalNetworkPolicy
metadata:
  name: default-deny
spec:
  order: 20
  selector: all()
  types:
  - Ingress

Combined with:
apiVersion: projectcalico.org/v3
kind: NetworkPolicy
metadata:
  name: allow-nginx
  namespace: default
spec:
  order: 40
  selector: app == 'nginx-2'
  ingress:
#   - action: Allow
#     source:
#       nets:
#         - <IP_ADDRESS>/0
  - action: Allow
    protocol: TCP
    source:
      selector: app == 'app-go'
    destination:
      ports:
        - 80

I can't access anything from anywhere.
However with this "NamespaceNetworkPolicy" I have the desired behavior.
 apiVersion: projectcalico.org/v3
 kind: NetworkPolicy
 metadata:
   name: default-deny
   namespace: default
 spec:
   selector: all()
   types:
   - Ingress

Why is the case ?

Since you have specified a lower order for your GlobalNetworkPolicy default-deny it will happen before your higher order allow-nginx policy. That means the traffic never makes it to the allow policy since it has already been denied by the GlobalNetworkPolicy default-deny.
I believe the default order when not specified is 1000, or maybe it is highest if not specified, I don't remember. Either way, the deny comes after the allow so your traffic is allowed when using the NetworkPolicy default-deny.

I don't understand why I can't access my pod from that ip:
apiVersion: projectcalico.org/v3
kind: NetworkPolicy
metadata:
  name: nolan
  namespace: app
spec:
  selector: app == 'nolan'
  ingress:
  - action: Allow
    protocol: TCP
    source:
      nets:
      - <IP_ADDRESS>/32 # my ip office

What am I missing there ?


Eprints

Add parseEprints function as my GCI2015 task.
And a coupla other random fixes.

Overall great job, just some nitpicky things. Also re:commit messages, there are mediawiki guidelines somewhere that we adhere to; but basically, just be specific; if the change is too minor to mention specifically you can just not mention it.

https://m.mediawiki.org/wiki/Gerrit/Commit_message_guidelines

Those failures don't seem to have anything to do with me.

One isn't, that's a url that keeps changing upstream... easy to fix, you can just fix the url (or I or someone else might get to it before you- we really need to use a more stable test!)
The other test only fails with the introduction of c2952ef, so it's probably how you changed the tests. If the error message doesn't make sense, sometimes that happens with promises/mocha...
Also it would be great if you could pump the version number in where you add the functionality, that way we don't have a mismatch.


Update ModelGenerator.php

error on __construct argument solved.

@miadz what and when you are getting this error?

Sorry, I do not remember this one exactly.

@miadz I'm closing this as of now as none of the other users reported a bug like this. We can re-open it if we find any particular case in future.


GCP - run checks on all projects in organization

New feature motivation
Seems like the only way to run checks on all projects inside an organization is to either create or modify the credentials file for each project.
I first thought I would be able to list projects, then for each project to use the "gcloud config set project" command (the core project).
Would appreciate if you can elaborate on this and explain what are the best practices in this scenario.
Solution Proposed
I would suggest a solution similar to the -c flag that takes an array of checks, to have --project flag with an array of project ids, if the user / service account doesn't have the right permissions error would pop up.
Another suggestion is to have another environment variable for project_id.
Describe alternatives you've considered
Currently, seems like multiple credentials file or modification each iteration is the only solution, correct me if I am wrong.
Additional context
No response

Hi @alonmuallem, thank you for reaching us out!
You're right, the only solution right now is to sequentially execute Prowler for each credential file.
We've just included in our roadmap to have this feature, I'll let you know when we finish it.


Placement Strategy enhancement

Describe the enhancement
In large scale or production ready environment applying workloads required progressive roll out. End user uses placement API to select managed clusters then OCM applier APIs such as ManifestWorkReplicaSet, ClusterManagementAddon or Policy use the placement API to identify the selected clusters then apply the workloads. Lately many use-case ask for progressive roll out which makes the applier APIs in needs to define the roll out strategy.
For example; ClusterManagementAddon has installStrategy field, Policy API consumer operator such as TALM has clusterSelector field and there is an urge in ManifestWorkReplicaSet APIs to do as well. As end user it make sense to define the roll out strategy in the placement APIs then OCM API such as ManifestWorkReplicaSet, ClusterManagementAddon and Policy use this roll out strategy to apply the workloads.
The proposed work would define a new field in the Placement API (DecisionStrategy) that will let the end user able to break down the selected managedClusters to groups of clusters.

Enhancement proposal:
https://github.com/open-cluster-management-io/enhancements/pull/88
https://github.com/open-cluster-management-io/enhancements/pull/95

API change:
https://github.com/open-cluster-management-io/api/pull/242
Implementation:
https://github.com/open-cluster-management-io/ocm/pull/200


Docs about self-signed certificated

I have Valutwarden server on passwords.local with self-signed certificate.
I add this certificate to my Fedora 40 system by:
sudo cp sitniks.crt /etc/pki/ca-trust/source/anchors/sitniks.pem
sudo update-ca-trust

curl works:
$ curl https://passwords.local
<!doctype html><html class="theme_light"><head><meta charset="utf-8"/><meta name="viewport" content="width=1010"/><meta name="theme-color" content="#175DDC"/><title page-title>Vaultwarden Web</title>…

But when I try to login in GoldWarden I got Traffic looks unusual after I enter password:

I assume that GoldWarden doesn’t see my certificate:

What is the right way to add it?
Maybe we should add note to README.md or wiki

Unusual traffic error is very weird and should only happen on the official instance, not on local vaultwarden instances. Need to figure out what's going on.

Can I collect some debug information? I run Gold Warden in terminal, but output was small without useful any detail.

This is happening to me too

How I can collect more debug data? Maybe there is some verbose mode?

I also tried to set client ID and client secret (from API key), but got the same Unusual Traffic error

Your self hosted server was never being used, due to a bug in the GUI code, that part should be fixed here: #213
Not sure yet about whether self-signed certs are accepted or not, you can either try the latest flatpak from the CI pipeline or wait for next release.

0.3.2 is out now, should be on FlatHub within a few hours. Please try again there.

Thanks! But now I get Failed to set server — The server you entered is invalid.
I use https://passwords.local.
This URL works in Firefox and with curl.


Weird output behavior when using compound expectations

Subject of the issue
Certain combinations of compound expectations print a failure description twice, but not if have_attributes is used.
Your environment

Ruby version: 2.7.2
rspec-expectations version: 3.10.1

Steps to reproduce
Let's say you have a test file with these contents and run it with --format=documentation
# spec/hello_spec.rb

Hello = Struct.new(:a, :b) do
  def valid?
    a == b
  end
end

RSpec.describe Hello do
  subject(:hello) { invalid_hello }
  let(:invalid_hello) { Hello.new(1, 2) }
  it { is_expected.to be_a(Hash).and(have_attributes(a: 1, b: 1)) }
  it { is_expected.to be_valid.and(be_valid) }
  it { is_expected.to be_valid.and(have_attributes(a: 1, b: 1)) }
  it { is_expected.to be_valid.and(be_a(Hash)).and(be_a(Hash)) }
  it { is_expected.to be_valid.and(be_a(Hash)).and(have_attributes(a: 1, b: 1)) }
end

Expected behavior
All examples should fail and output their failure messages the same number of times.
Actual behavior
Examples with have_attributes print their output once; examples without print their output twice (first in red, then in the default shell color).
Failures:

  1) Hello is expected to be a kind of Hash and have attributes (a: 1, b: 1)
     Failure/Error: it { is_expected.to be_a(Hash).and(have_attributes(a: 1, b: 1)) }

          expected #<Hello:0x00007fcf0905b358> to be a kind of Hash

       ...and:

          Expected #<Hello:0x00007fcf0905b358> to have attributes (a: 1, b: 1).
     # ./spec/hello_spec.rb:14:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:59:in `block (2 levels) in <main>'
     # -e:1:in `<main>'

  2) Hello is expected to be valid truthy and be valid truthy
     Failure/Error: it { is_expected.to be_valid.and(be_valid) }

          expected #<struct Hello a=1, b=2> to be valid

       ...and:

          expected #<struct Hello a=1, b=2> to be valid
          expected #<struct Hello a=1, b=2> to be valid

       ...and:

          expected #<struct Hello a=1, b=2> to be valid
     # ./spec/hello_spec.rb:15:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:59:in `block (2 levels) in <main>'
     # -e:1:in `<main>'

  3) Hello is expected to be valid truthy and have attributes (a: 1, b: 1)
     Failure/Error: it { is_expected.to be_valid.and(have_attributes(a: 1, b: 1)) }

          expected #<struct Hello a=1, b=2> to be valid

       ...and:

          Expected #<Hello:0x00007fcf09c6ce08> to have attributes (a: 1, b: 1).
     # ./spec/hello_spec.rb:16:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:59:in `block (2 levels) in <main>'
     # -e:1:in `<main>'

  4) Hello is expected to be valid truthy and be a kind of Hash and be a kind of Hash
     Failure/Error: it { is_expected.to be_valid.and(be_a(Hash)).and(be_a(Hash)) }

             expected #<struct Hello a=1, b=2> to be valid

          ...and:

             expected #<Hello:0x00007fcf09eb6290> to be a kind of Hash

       ...and:

          expected #<Hello:0x00007fcf09eb6290> to be a kind of Hash
             expected #<struct Hello a=1, b=2> to be valid

          ...and:

             expected #<Hello:0x00007fcf09eb6290> to be a kind of Hash

       ...and:

          expected #<Hello:0x00007fcf09eb6290> to be a kind of Hash
     # ./spec/hello_spec.rb:17:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:59:in `block (2 levels) in <main>'
     # -e:1:in `<main>'

  5) Hello is expected to be valid truthy and be a kind of Hash and have attributes (a: 1, b: 1)
     Failure/Error: it { is_expected.to be_valid.and(be_a(Hash)).and(have_attributes(a: 1, b: 1)) }

             expected #<struct Hello a=1, b=2> to be valid

          ...and:

             expected #<Hello:0x00007fcf09f1c6f8> to be a kind of Hash

       ...and:

          Expected #<Hello:0x00007fcf09f1c6f8> to have attributes (a: 1, b: 1).
     # ./spec/hello_spec.rb:18:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:59:in `block (2 levels) in <main>'
     # -e:1:in `<main>'

I was rejigging this quite a bit to understand how the output would change and copy/pasted the wrong version - the first example was actually meant to be is_expected.to be_a(Hash).and(be_valid), creating the following output:
Failures:

  1) Hello is expected to be a kind of Hash and be valid truthy
     Failure/Error: it { is_expected.to be_a(Hash).and(be_valid) }

          expected #<Hello:0x00007fcf09083290> to be a kind of Hash

       ...and:

          expected #<struct Hello a=1, b=2> to be valid
          expected #<Hello:0x00007fcf09083290> to be a kind of Hash

       ...and:

          expected #<struct Hello a=1, b=2> to be valid
     # ./spec/hello_spec.rb:14:in `block (2 levels) in <top (required)>'
     # ./spec/rails_helper.rb:59:in `block (2 levels) in <main>'
     # -e:1:in `<main>'

Apologies for the added contrivance 😅

Please don't hesitate to edit the description so we can start the discussion from the clean slate.
In a nutshell, is my understanding correct that you find the difference in output of the following two examples confusing and incorrect?
  it { is_expected.to be_present.and(be_valid) }
  it { is_expected.to be_present.and(have_attributes(a: 1, b: 1)) }

I can't reproduce duplication (using 4-0-dev branch, but there should be no difference):
  1) Hello is expected to be valid and have attributes {:a => 1, :b => 1}
     Failure/Error: it { is_expected.to be_valid.and(have_attributes(a: 1, b: 1)) }

          expected `#<struct Hello a=1, b=2>.valid?` to return true, got false

       ...and:

          expected #<struct Hello a=1, b=2> to have attributes {:a => 1, :b => 1} but had attributes {:a => 1, :b => 2}
       Diff for (have attributes {:a => 1, :b => 1}):
       @@ -1,3 +1,2 @@
       -:a => 1,
       -:b => 1,
       +"#<struct Hello a=1, b=2>"

  2) Hello is expected to be valid and be valid
     Failure/Error: it { is_expected.to be_valid.and(be_valid) }

          expected `#<struct Hello a=1, b=2>.valid?` to return true, got false

       ...and:

          expected `#<struct Hello a=1, b=2>.valid?` to return true, got false

  3) Hello is expected to be a kind of Hash and have attributes {:a => 1, :b => 1}
     Failure/Error: it { is_expected.to be_a(Hash).and(have_attributes(a: 1, b: 1)) }

          expected #<struct Hello a=1, b=2> to be a kind of Hash

       ...and:

          expected #<struct Hello a=1, b=2> to have attributes {:a => 1, :b => 1} but had attributes {:a => 1, :b => 2}
       Diff for (have attributes {:a => 1, :b => 1}):
       @@ -1,3 +1,2 @@
       -:a => 1,
       -:b => 1,
       +"#<struct Hello a=1, b=2>"

  4) Hello is expected to be valid and be a kind of Hash and have attributes {:a => 1, :b => 1}
     Failure/Error: it { is_expected.to be_valid.and(be_a(Hash)).and(have_attributes(a: 1, b: 1)) }

             expected `#<struct Hello a=1, b=2>.valid?` to return true, got false

          ...and:

             expected #<struct Hello a=1, b=2> to be a kind of Hash

       ...and:

          expected #<struct Hello a=1, b=2> to have attributes {:a => 1, :b => 1} but had attributes {:a => 1, :b => 2}
       Diff for (have attributes {:a => 1, :b => 1}):
       @@ -1,3 +1,2 @@
       -:a => 1,
       -:b => 1,
       +"#<struct Hello a=1, b=2>"

  5) Hello is expected to be valid and be a kind of Hash and be a kind of Hash
     Failure/Error: it { is_expected.to be_valid.and(be_a(Hash)).and(be_a(Hash)) }

             expected `#<struct Hello a=1, b=2>.valid?` to return true, got false

          ...and:

             expected #<struct Hello a=1, b=2> to be a kind of Hash

       ...and:

          expected #<struct Hello a=1, b=2> to be a kind of Hash

Can you reproduce this on a freshly initialized project?

I'll update the issue, and give the example a go in 4.0-dev.
Re: your question, I think you got it  - in that have_attributes seems to change the output - but that snippet wouldn't manifest the issue, since in each example only one term of the compound fails.
What I'm finding confusing is that it seems that when more than one term of the compound expectation fails, then the output is doubled, except if the test uses have_attributes:
it { is_expected.to satisfy { |_| false }.and(be_valid) }
it { is_expected.to satisfy { |_| false }.and(have_attributes(a: 1, b: 1)) }

yields
  1) Hello is expected to satisfy expression `false` and be valid truthy
     Failure/Error: it { is_expected.to satisfy { |_| false }.and(be_valid) }

          expected #<Hello:0x00007fcf099bd400> to satisfy expression `false`

       ...and:

          expected #<struct Hello a=1, b=2> to be valid
          expected #<Hello:0x00007fcf099bd400> to satisfy expression `false`

       ...and:

          expected #<struct Hello a=1, b=2> to be valid

  2) Hello is expected to satisfy expression `false` and have attributes (a: 1, b: 1)
     Failure/Error: it { is_expected.to satisfy { |_| false }.and(have_attributes(a: 1, b: 1)) }

          expected #<Hello:0x00007fcf09bdcce0> to satisfy expression `false`

       ...and:

          Expected #<Hello:0x00007fcf09bdcce0> to have attributes (a: 1, b: 1).

Yup, can't reproduce in 4-0-dev.

Couldn't reproduce in a clean 3.10.1 environment either, so this is probably an issue with my RSpec environment. Feel free to close.

(Thanks for taking a look!)


Please don't show the tab "Elasticsearch Manager", if elastic search is not enabled

Please describe the feature you would like to see implemented.
It would be great if the tab "Elasticsearch Manager" is not displayed at all, if elastic search is not enabled. Is it possible?

Hey Soner, many thanks for the quick implementation. When will the next version with these changes be released?

done


Loss of Funds in 1Wallet After Update

Hello, after updating my 1wallet I lost a significant amount of $ONE. My NFT's did transfer over and only a partial amount of my balance.

What's your address?

one1ptygn6ehdyuzr7ljanu9swp262y7px9r2da2m2

I believe this is where the leftover balance is here https://explorer.harmony.one/address/0x58f599ec48a15cfbcacf8cb57f26d379ceb8797f
I attempted to restore this address but it says it already exists locally

Do this: go to About page of the (post-upgrade) wallet, click the old address in "Upgraded From", and click Inspect. After that, go to "Recover" tab and start a recovery. It will transfer all assets to the (post-upgrade) address

During upgrade, since you did not have a recovery address, your recovery address is automatically set to the new address, and the wallet should have transferred all assets to your new address. Currently, the code does not transfer all assets to the new address, instead it only transfer what the daily limit allows. That's an omission, I will fix it in the next version.

Got it! Thank you!

As a temporary solution, I made it mandatory for users to set a recovery address before upgrade, if they have a high value wallet.


Verify that the deployed ubeswap's router's factory variable matches to the deployed ubeswap factory's address.

This has been verified.


JSONB not working? Or did I set it up incorrectly?

Version
1.13.0
What happened?
This is my schema (simplified for brevity):
CREATE TABLE IF NOT EXISTS cleric_druid_queries (
    id text PRIMARY KEY,
    context jsonb,
    updated_time timestamp without time zone default (now() at time zone 'utc')
);

This is the generated struct (simplified for brevity):
type UpsertClericDruidQueryParams struct {
	ID                  string                `db:"id" json:"id"`
	Context        pqtype.NullRawMessage `db:"context" json:"context"`
}

Looks fine to me.
But when I tried to run my method:
// objmap["context"] has the correct json.RawMessage type
dbParams := cleric_druid_queries.UpsertClericDruidQueryParams{
	ID:                  queryData.Context.QueryID,
	Context:         pqtype.NullRawMessage{RawMessage: objmap["context"], Valid: true},
}

_, err = s.ClericDruidQueryModel.UpsertClericDruidQuery(context.Background(), dbParams)

The error said pq: invalid input syntax for type json. What am I missing?
I don't actually care about types because I just want to UPSERT as fast as I can, interface{} type is fine too.
What can I do to unblock myself?
Relevant log output
No response
Database schema
CREATE TABLE IF NOT EXISTS cleric_druid_queries (
    id text PRIMARY KEY,
    datasource text,
    dimensions text[],
    sql_query_id text,
    sql_query text,
    query text,
    time_taken int,
    query_identity text,
    success BOOLEAN,
    historical_error text,
    superset_username text,
    superset_dashboard_id int,
    superset_widget_id int,
    context jsonb,
    updated_time timestamp without time zone default (now() at time zone 'utc')
);

SQL queries
-- name: UpsertClericDruidQuery :one
INSERT INTO cleric_druid_queries as t(
    id, datasource, dimensions, query, time_taken, query_identity, success, sql_query_id, sql_query, historical_error, superset_username, superset_dashboard_id, superset_widget_id, context
) VALUES (
    $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14
)
ON CONFLICT (id)
DO UPDATE SET
    id = EXCLUDED.id,
    datasource = COALESCE(NULLIF(EXCLUDED.datasource, ''), NULLIF(t.datasource, ''), ''),
    dimensions = COALESCE(NULLIF(EXCLUDED.dimensions, '{}'), NULLIF(t.dimensions, '{}'), '{}'),
    query = COALESCE(NULLIF(EXCLUDED.query, ''), NULLIF(t.query, ''), ''),
    time_taken = COALESCE(NULLIF(EXCLUDED.time_taken, 0), NULLIF(t.time_taken, 0), 0),
    query_identity = COALESCE(NULLIF(EXCLUDED.query_identity, ''), NULLIF(t.query_identity, ''), ''),
    success = COALESCE(NULLIF(EXCLUDED.success, FALSE), NULLIF(t.success, FALSE), FALSE),
    sql_query_id = COALESCE(NULLIF(EXCLUDED.sql_query_id, ''), NULLIF(t.sql_query_id, ''), ''),
    sql_query = COALESCE(NULLIF(EXCLUDED.sql_query, ''), NULLIF(t.sql_query, ''), ''),
    historical_error = COALESCE(NULLIF(EXCLUDED.historical_error, ''), NULLIF(t.historical_error, ''), ''),
    superset_username = COALESCE(NULLIF(EXCLUDED.superset_username, ''), NULLIF(t.superset_username, ''), ''),
    superset_dashboard_id = COALESCE(NULLIF(EXCLUDED.superset_dashboard_id, 0), NULLIF(t.superset_dashboard_id, 0), 0),
    superset_widget_id = COALESCE(NULLIF(EXCLUDED.superset_widget_id, 0), NULLIF(t.superset_widget_id, 0), 0),
    context = COALESCE(NULLIF(EXCLUDED.context, ''), NULLIF(t.context, ''), '')
RETURNING *;

Configuration
version: 2
sql:
  - schema: _sqlc/cleric_druid_queries_schema.sql
    queries: _sqlc/cleric_druid_queries_queries.sql
    engine: postgresql
    gen:
        go:
          package: cleric_druid_queries
          out: cleric_druid_queries
          emit_db_tags: true
          emit_json_tags: true

Playground URL
No response
What operating system are you using?
Linux, macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

Check what objmap["context"] is returning. It likely isn't valid JSON


Project: Microsoft Graph API Dashboard

Project name
Microsoft Graph API Dashboard
Description
Microsoft Graph Dashboard
.Net SDK and Microsoft Graph API drives the app. The app displays the unread emails, upcoming meetings for the day, upload or download files from the OneDrive.
App also in the home page, it displays wishes on Hired Date and on birthday of the user.

Once you're logged in you should see your user name displayed with the profile photo
Dashboard: If the user’s birthday is the current day, Birthday wish message will be displayed.
Dashboard: If the user’s hired date is the current day, Congratulations message will be displayed.
Email section:  Unread mails will be displayed.
Files section: Displays available files from OneDrive, with an option to upload files from local to Onedrive as       well to download from OneDrive to local drive.
Under the Calendar section, upcoming meetings for the day will be displayed.
Sign Out option is provided in the top right corner in the dropdown.
Click on the menu items at the top to view the user's email, calendar, and files (you may need to add mail
messages, calendar events, and files for the user if you don't see any data

Repo URL
https://github.com/sumathyg/GraphAPIDashboard
Team members
Sumathy Gunaseelan

Thank you for your submission @sumathyg! Would you be willing to record a short video to demonstrate the app? It's not required for the hackathon but it would help us showcase your work internally at Microsoft and publicly in the community 😊


Add user roles for organizations/gangs/sections

This PR introduces a new custom Auth backend. It adds a new Role model, which basically works as a grouping of permissions. It also adds a user's connection to these Roles. This must be done on one of the following hierarchical levels: Organization, Gang, Gang Section. This is also the order the new auth backend checks for permissions.
The auth backend relies on the has_perm method from Django, and for our backend, the obj argument is required. This means the new backend only checks permissions against specific provided objects.
For each hierarchy level, it resolves the organization, gang or section, and returns True if the user has the required permissions on that level.
Organization/Gang/Section resolvers
The way the backend knows what organization an object belongs to is through the new resolve_org/resolve_gang/resolve_section methods. The purpose of these methods for an object is to return the org/gang/section which the object belongs to. For instance, a Recruitment is owned by an organization, therefore resolve_org returns that organization.
Not all objects have a single owner, if any at all. In that case, they simply don't implement the resolvers.
The resolvers currently have a single argument: return_id. The purpose of this argument is to avoid having to unnecessarily fetch a whole instance from the database, when we only need the ID. All models which implement the resolvers must respect this argument if possible.
The great thing about the introduction of these resolvers is that they may be used everywhere, not just in the new auth backend! It greatly simplifies code, and makes it a breeze to get the org/gang/section owner of a specific object.
Example
For example's sake, say we have a "Recruitment Admin" role. It contains all relevant recruitment permissions. This role may be given to users on either the org/gang/section level (or multiple levels). If the user has the role on the Organization level, they receive the permissions for the selected organization, as well as for all the organization's gangs and roles. This means they can manage every recruitment object which belongs to the organization.
Similarly, if the user has the role on the Gang level, they receive the permissions for the selected gang, as well as for all the gang's sections. They can then manage all recruitment objects which belongs to the gang.

@Mathias-a Føler det faller litt utenfor scopet til denne PRen, siden det kreves ikke for å få dette rollesystemet til å funke. Så har laget en ny issue på det #1342


FATAL ERROR: Committing semi space failed. Allocation failed - JavaScript heap out of memory

I pulled the node:20.0.0-slim image in docker hub and ran the project in a container that used that image.
When I run npm run ingest, the following error message appears

same issue with a text file too

i had the same issue with total 7000+ vectors. I deleted some data to 2000+ vectors and it worked fine. It will be useful to find solution to load more data.


Which alogorithm can be used for search result ranking ?

Hello.
I want to use RubixML to make classification or ranking for urls list based on their web page summary text context.
So how to do this using RubixML ???
What is the best way to make eb pages (urls) ranking using RubixML ???
Awainting your anwser (help).
Thanks.

Rubix ML doesn't have any learning to rank capabilities at the moment.

Ok thanks


Make a copy of a column Wrangle

When working with data, I have found that some columns have the same data with minor differences, e.g.

Item Number in System
Supplier Number

AAA-131313
131313

if these columns come from a single column source.
then we need two wrangle operations on the same column:

add AAA prefix
do nothing but include the column in write wrangle

Make a wrangle that copies a column
wrangles:
   - create.column_copy:
       input: Item Number
       output: Item Number in System     # make sure names are different

used df[output] = df[input]

This can be done using pandas copy function
pandas.copy:
  input: col
  output: col_copy


number_format values

This will make reading the larger values a little easier.

ha…I just submitted #6 to do the same thing using Laravel’s Number helper

@maantje

Thanks @macbookandrew for the ping, and sorry @emedchill for keeping you waiting.
Thank you both for your contributions. I'm going to close this PR and merge #6.


Yaml file

Hello,
I am finding something odd and I cannot figure out why it is erroring out. It's likely something I am entering incorrectly.
On Ubuntu 20, did the following install for ciftify:
$ pip install https://github.com/edickie/ciftify/archive/2.0.3-beta.tar.gz
And installed FSL <IP_ADDRESS>
And entered the test "ciftify_vol_result --help" and the output indicates ciftify was installed correctly.
When we enter:
$ ciftify_recon_all --ciftify-work-dir /home/cashlab/Documents/Recons/ciftifyTest --fs-subjects-dir /home/cashlab/Documents/tools/freesurfer/subjects sub-0t3i_SurferOutput
We get the following output:
Cannot read yaml config file /home/cashlab/.pyenv/versions/3.7.7/lib/python3.7/site-packages/ciftify/data/ciftify_workflow_settings.yaml, check formatting.
I went a yaml parser check (https://yaml-online-parser.appspot.com/ ) and the file is fine. Has anyone else run into this issue?
Thank you,
Angelique Paulk

Hi Angelique!
You may have already solved this issue yourself, but this is because you're using an older version of ciftify that contains a bug in how it reads yaml files.
The simplest solution is to install a newer version (just pip install ciftify). But if you need your current version of ciftify for some reason open /home/cashlab/.pyenv/versions/3.7.7/lib/python3.7/site-packages/ciftify/utils.py and in the __read_settings function find the line that looks like this: config = yaml.load(yaml_stream) and change it to config = yaml.load(yaml_stream, Loader=yaml.SafeLoader)

Hi,
Thank you for getting back to me! This helps.
I had actually installed the most recent ciftify with that command you list but the fix you suggested is great. Unless you mean an updated python version?
Thank you,
Angelique

The version you're installing with that command is 2.0.3. If you use plain old pip install ciftify it will install 2.3.3 which has a fix for that bug (and other bugs you may run into)


New package: MyExample v0.1.0

Registering package: MyExample
Repository: https://github.com/HandyKurniawan/MyExample.jl
Created by: @HandyKurniawan
Version: v0.1.0
Commit: b9df329f9254e5eadaa3ad283823b332ba0fdd6c
Reviewed by: @HandyKurniawan
Reference: https://github.com/HandyKurniawan/MyExample.jl/issues/1
Description: This is an example Julia package!

I think this is an personal example package and therefore shouldn't be part of the General Registry (see FAQs)

Hi @mmiller-max ,
yes, it is. I am sorry I was following the video made by @ChrisRackauckas. It was an amazing video, but I don't know how to close the request as he did in the video. For some reason, there is no option for me to close it.


fix: toggle the child region will acidentally change other child regions

PTAL

Why do we no longer have the preview link?


Attachments missing in .eml file

When I'm creating a Mailable and attach files to it in the build() method, the created .eml file by mail-preview during the send mechanism is missing those attachments.
When I use mailtrap I have the attachments. Am I missing something, or are attachments not supported?

+1

As this issue got closed, was this addressed in an update?


Driver support - support multiple version of evitaDB

Within #94, base ground for this support was set in form of internal evitaLab data layout and the Value wrapper. Currently, we will have a single driver built on top of gRPC-web of the latest evitaDB and we need to think about how will support future versions.
Two possible version come to mind:

create separate implementation of driver with converter for each evitaDB version that breaks an API

this will create lot of duplicate code, where possible driver bugs will be duplicated
over time, the browser will probably need to download lot of data from server (idk if tree shaking will help here if we will need the driver dynamically at runtime)

create single driver implementation where the logic of supporting multiple APIs will be directly in the driver and converters (possibly using ifs and switches)

will not bloat in size as much as the first option
there will be much less duplicated code
it will be harder to maintain multiple versions using ifs and switches without breaking support of older drivers

There is also problem with the actual generated gRPC code, which would be kind of duplicated as well and would bloat the code base as well.
I personally don't like any of these solutions.
Second part will be to display useful information to users of evitaLab about supported features for a current evitaDB server #152.

Maybe we should get rid of the Value wrapper around properties and define default for unsupported properties directly in the converter in driver. The UI layer would be still handled as mentioned in #152 .

Early draft of proposed evitaDB client structure
flowchart TD
    Component --> EvitaClient
    Component --> EvitaManagementClient
    Component --> EvitaSessionClient
    EvitaClient --> VersionedEvitaDriver
    VersionedEvitaDriver --> VersionedGrpcEvitaAPI
    EvitaManagementClient --> VersionedEvitaManagementDriver
    VersionedEvitaManagementDriver --> VersionedGrpcEvitaManagementApi
    EvitaSessionClient --> VersionedEvitaSessionDriver
    VersionedEvitaSessionDriver --> VersionedGrpcEvitaSessionAPI
    VersionedGrpcEvitaAPI --> Server
    VersionedGrpcEvitaManagementApi --> Server
    VersionedGrpcEvitaSessionAPI --> Server
    VersionedEvitaDriver --> EvitaDriverConverters
    VersionedEvitaManagementDriver --> EvitaManagementDriverConverters
    VersionedEvitaSessionDriver --> EvitaSessionDriverConverters

Each evitaDB API would have its own versioned driver and client encapsulating the driver and versioning. This way we could upgrade each part separately and save some hassle of duplicating code.
I still need to think more about relations to the #152


Add support for yarn

Add logic:
package.json + package.lock => yarn
package.json + package-lock.json => npm
package.json + nothing => npm
...

It's not package.lock, but yarn.lock for yarn, my bad.


Dnd conflicts

@jquense awesome! Are you going to publish the latest to npm?

as soon as I can write some documentation. If you wanna see that happen faster i'd happily take a PR :)


[Feature Request]: Adding a Favorites Section in the Navbar.

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
A heart or bookmark icon prominently displayed in the navbar, making it easily accessible from any page.
Use Case
Users can explore various destinations and experiences but often aren’t ready to book immediately.
Without a feature to save or mark their favorites, they may lose track of their interests.
Benefits
Users can quickly find and revisit items they liked without having to search through the entire site again.
Add ScreenShots

Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@darshinihoney here you go

@darshinihoney progress?

@Soujanya2004 Max today night I'll keep pr

@darshinihoney sure

@harshbhar0629

@Soujanya2004 Please assign to me


Fixed base64 encoding by opening tar.gz as a binary

Fixed base64 encoding by opening tar.gz as a binary

/cc @clcollins


Aiken error on using tuple index when a tuple is returned by a (generic) function

What Git revision are you using?
latest main
What operating system are you using, and which version?

[ ] Linux / Ubuntu
[ ] Linux / Other
[x] macOS
[ ] Windows

Describe what the problem is?
Using tuple index access on a tuple returned by a function returns a type mismatch error
What should be the expected behavior?

The current workaround is

But list.at doesn't return a Tuple, or return an Option 🤨


/api/restart-app returns incorrect string

@carlsondc-ceva discovered that /api/restart-app returns a string about factory reset instead of about restarting the app, which was described as "alarming;" I agree. We should fix this typo.
Discussed in https://github.com/iRobotEducation/create3_docs/discussions/324

This should be fixed in G.4.3. Thanks for the heads up.


Bug when switching accounts

When switching from an existing account with self-defined user profile images to a new account, the new registered account will still show the avatars of the last user.

The bug has been fixed in the latest commit.


Can I run the elinux flutter app without weston

flutter-elinux build elinux --target-backend-type=eglstream --target-arch=arm64  --target-compiler-triple=aarch64-linux-gnu --target-sysroot=<Absolute_path_to>/ubuntu18-arm64-sysroot
I find that I can't run it without weston. How can I do that?

I'm not sure what you want to do. eglstream doesn't work on Weston.

I'm not sure what you want to do. eglstream doesn't work on Weston.

eglstream works well on Weston. But I can not run weston on rk3328.


fix(libp2p): sort addresses to dial as public, then relay

Adds a new default address sorter that sorts by:

public addresses
public relay addresess
private addresses
private relay addresses

Where they are equal, certified addresses take priority, otherwise the sort order is stable.
Refs: #2010

I would just like to understand the rationale for prioritizing a certified private address over a public address, wouldn't it be less likely that the private address is routable?

It doesn't - take a look at the relevant test - public addresses are prioritised over private addresses, and certified addresses are prioritised over non-certified addresses but certified private addresses are not prioritised over public addresses.

It doesn't - take a look at the relevant test - public addresses are prioritised over private addresses, and certified addresses are prioritised over non-certified addresses but certified private addresses are not prioritised over public addresses.

What about this test? It seems to contradict that.

What about this test? It seems to contradict that.

That test only tests the certifiedAddressesFirst  comparator, the defaultAddressSort comparator combines the publicAddressesFirst, certifiedAddressesFirst and circuitRelayAddressesLast comparators.

That's true, but I suppose if a consumer is using the certifiedAddressesFirst utility they wouldn't expect that order. Alternatively they could pass in their own custom address sorter.


Add screen caps for task1 and task2.

I have done both Tasks 1 and 2.  I will leave it to you to update the links in the notebook to show the screenshots which are already committed as part of this PR.

Sounds good, I will take over the links


questions: how to write timestamp schema information using avro

I failed to write using the long type. It seems that the timestamp was converted to a long type in avro serialization.

java.util.concurrent.ExecutionException: com.google.cloud.bigquery.storage.v1.Exceptions$AppendSerializationError: INVALID_ARGUMENT: Errors found while processing rows. Please refer to the row_errors field for details. The list may not be complete because of the size limitations. Entity: projects/aftership-dev/datasets/temporary/tables/ods_stripe_events_di/streams/_default

@prashastia If you have time, could you help me answer this? Thank you.


DynamoDb migration to add more than 24 TransactionWriteItems

I would like to be able to complete more than 24 TransactionWriteItems in one migration.
In the example for DynamoDb it only does the 24 then stops: https://github.com/mongock/mongock-examples/blob/master/dynamodb/springboot-quickstart-dynamodb/src/main/java/io/mongock/examples/dynamodb/springboot/migration/ClientInitializerChangeUnit.java#L29
How could I paginate (complete the 24 items, then do 24 more) to complete a larger migration?

This limitation comes from DynamoDB itself. If you wan to paginate it, which means having a set of transaction units, you lose the benefit of having your changes and the mongock's track in the same transaction, so Mongock managing the transactions won't report any benefit.
With that, you can ignore the DynamoDBTransactionItems transactionItems(remove it from the parameters list) and manage the transactions inside the ChangeUnit.


Update plugin.json

asd

The file plugin.json is in the blocklist for external contributors. Hence, these changes are not tested by the CI pipeline active until the build is re-triggered by a core committer or the PR is merged. Please be careful when reviewing it.
/cc @mattermost/core-security @mattermost/core-build-engineers


MacOS state_dict tests in CI are failing during shutdown

🐛 Describe the bug
MacOS tests of StatefulDataLoader CI action fail intermittently during shutdown. on Mac it also takes a lot longer than both windows and ubuntu to shut down (10 minutes vs 1s). I'm not sure what causes Github Actions to mark the test as failed, but
Created an issue here on actions/setup-python but still no response: https://github.com/actions/setup-python/issues/857
Although we still get positive signals from the test, it shows up as an X in Github
Versions
Nightly / main branch in CI,

I've been trying to isolate the problem here on this branch https://github.com/pytorch/data/pull/1255. I'm unable to repro on my mac laptop, so i'm just trying to bisect it by kicking off so far it's definitely due to test_state_dict.py.
The best sign I get is sometimes the complete jobs or cleanup python logs will show a bunch of Terminate orphan process: pid (xxxxx) (torch_shm_manager).
Digging in to the docs and code, it looks like on MacOS, the default sharing strategy is file_system (instead of file_descriptor) which will launch torch_shm_manager process in the background. It gets launched here, but the PID is never held on to, and there is no obvious clean up code that gets called here.
https://github.com/pytorch/pytorch/blob/main/torch/lib/libshm/core.cpp?fbclid=IwAR0DG3o68svdVDUkMCbb-0KM95IzxpsAeWS27m57fWAx84su9stZbsa3H_4#L25
https://github.com/pytorch/pytorch/blob/main/torch/lib/libshm/core.cpp?fbclid=IwAR0DG3o68svdVDUkMCbb-0KM95IzxpsAeWS27m57fWAx84su9stZbsa3H_4#L25

It seems like on MacOS, multiprocessing fork is more like a spawn and requires importing all the modules again. Something about increasing the total number of worker subprocesses in the test causes massive slowdowns in clean up. The simplest thing to do at this point is to shard the tests. I'll probably give this a shot tomorrow


Fix aws golden metrics

Relevant information
Another attempt to fix AWS golden metrics. The backend services should now be able to handle the load. Let's merge this one and validate that it works in production - I'll then add the other ones (onhost, azure, gcp).
Checklist

[ ] I've read the guidelines and understand the acceptance criteria.
[ ] The value of the attribute marked as identifier will be unique and valid.
[ ] I've confirmed that my entity type wasn't already defined. If it is I'm providing an
explanation above.

@naxhh I think you meant to ping @jlegoff 🙂


Custom Typescript version for Yarn PNP Support - Visual Studio 2019

Suggestion
Hi,
So what I'm currently using at the moment is Visual Studio 2019.
I basically have an old webforms project and inside that a subdirectory of clientjs
this directory contains everything javascript related which inclues webpack, package.json, tsconfig.json
etc which all gets built via webpack (not the VStudio typescript compiler) to a javascript bundle in a subdir of wwwroot in the project.
So the javascript build is independent of MSBuild.
The problem I'm running into is getting the typescript intelisense to work.
This is due to the use of yarn's pnp system.
With yarn's pnp system it generates a .pnp.js file which acts sort of like a virtual node_modules directory
and maps back to zip files that can be located on a different or the same drive (a global cache on C: for example)
Normally the fix for this with "visual studio code" is to override the typescript bin setting "typescript.tsdk"
so that instead of the usual one it uses

.yarn\sdks\typescript\lib\
for the files tsc.js, tsserver.js, typescript.js

These act like a wrapper around the installed typescript installed via yarn's pnp system / package.json
to handle the virtual node_module directory via .pnp.js
What I've been trying to figure out is if there's an equivilent way of doing this with Visual Studio 2019
The closet I came was this thread

https://github.com/microsoft/TypeScript/issues/41355

which suggests a global setting via CustomTSServerLocation in the registry
But what I'd like to see is if there's a way to specify this in the csproj file instead (unless there's already a hidden setting for it)
i.e. could this be included into a future version of Studio 2019?
This includes both pre .Net Core (.Net WebForms) and .Net core (.Net 5) project types
🔍 Search Terms
yarn, 2019
✅ Viability Checklist

My suggestion meets these guidelines:

[y] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[y] This wouldn't change the runtime behavior of existing JavaScript code
[y] This could be implemented without emitting different JS based on the types of the expressions
[y] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[y] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
The ability to specify a custom typescript library at the .csproj level within Visual studio 2019
💻 Use Cases
The main motivation for this is that yarn's pnp package management system saves a lot of disk space vs the traditional npm node_modules approach due to it's way it handles the virtual node_modules directory via .pnp.js

Looks like a duplicate of #28289.

In the case of 28289 that's looking into adding yarn2 support into the typescript compiler
For this I'm asking about something different in terms of specifying a wrapper for typescript within the Visual Studio 2019 IDE as a workaround instead. By specifying a different path for tsc.js, tsserver.js other than the normal one used.


Update issue transfer documentation

Why:
This reflects the new default behaviour of issues transfer. Labels are now only transferred if they have a match by name in the target repository, and milestones also will be transferred if they match by both name and due-date, so the documentation should reflect this.
This is also reflected today in the dialogue used for transferring:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

[x] I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

👋 @anleac Thanks so much for opening a PR! I'll get this triaged for review :zap:

Hi @anleac 👋 thanks for opening this PR! Looks good to me, only left one small suggestion for your consideration, but feel free to ignore it if it doesn't make sense to you.
Please feel free to @mention me here and I'll get this merged for you!

thanks for that suggestion @sophietheking, it absolutely makes things cleaner. Committed!


make PR template

wow look at this unstructured PR body text. What if we had guidance from above on what content and structure it had?

Going to self-merge to see if it works and then have genuine open discussion in the more trafficed garden repo.


Incorrect backup status highlighting

Hi,
on several instances (from SQL Server versions 10.x to 15.x) I have found incorrect highlighting for differential backup. Last Diff cell is marked as critical although there are no differential backups for that database. In most cases it is related to msdb database, but I also have example with msdb and model and another example with several users databases. Differential backup thresholds are set to DBADash defaults (1440 mins warning, 2880 critical) and databases are marked crtitical if values are inherited from root or configured directly for specific instance,

For the example above this is the record from DBADashDB repositiory (from BackupStatusview):

Instances with incorrectly marked databases are counted on test summary view:

In addition to the reported issue, I have a proposal related to the display of the backup status in Test Summary view - rename Diff Backup, Full Backup and Log Backup tests to Backup Full, Backup Diff and Backup Log so that all backup checks are displayed on the same place.
DBA Dash app and db version is <IP_ADDRESS>.
Best regards.

Hi, this is working as intended.  If there is a threshold set for diff backups it will alert you if there is no diff backup within the specified threshold.  This includes if there is no history of a previous diff backup.
If you don't want to use diff backups for a particular database you can click the "Configure" option for that database and disable the check.  Or configure diff backups for that database to get the check to turn green.
If you want to exclude msdb & model from the backup checks that can be done at root level to simplify the configuration.  That will also disable the full checks for those DBs though.
Renaming the backup checks is a good suggestion.
Hope this answers your query,
David

The label change will be in the next release. 🎉


KAFKA-8651: Add predicate map to #branch

Using #branch with an array is error prone and not readable, due to referencing the results by magic index offsets. So, we suggest to add an API that allows naming different branches, which is more natural.
See KIP (on it's way)
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Retest this please

Retest this pleasel

Retest this please

Closed and reopened to get Jenkins up and running.

please retest

@astubbs -- Any progress on the KIP?

Btw: there is a similar KIP already: https://cwiki.apache.org/confluence/display/KAFKA/KIP-418%3A+A+method-chaining+way+to+branch+KStream

I just double checked. KIP-418 was abandoned. Feel free to pick it up to push it over the finish line.

Closing this PR in favor of https://github.com/apache/kafka/pull/9107 (that is backed by KIP-418).


deep linking support

Is there any way to do deep linking with this library?
i.e. deep-linking

Yes you can do it ...

I found nothing in the docs. could you explain how I can do this?

Yes, it is possible. As the docs (https://core.telegram.org/bots#deep-linking) say,

... your bot will receive a message from that user in this format:
/start PAYLOAD`

PAYLOAD stands for the value of the start or startgroup parameter that was passed in the link.

Therefore, all you've to do is capture the message with the format described above. For example,
bot.onText(/\/start (\w+)/, function(msg, match) {
    const payload = match[1];
    // ....
    // use payload
   // ...
  return bot.sendMessage(msg.chat.id, "bot at your service");
});


Finish intro

@nandsra21 Can you check out the revised intro and let me know if you have any comments? Thanks!
https://github.com/blab/cartography/blob/f955fb92f357b3017b3a477fe1c868c14c116893/docs/cartography.tex#L238-L271

@huddlej will do! Planning to look at this first thing in the morning


Add Vietnam University of Commerce

@minhkhuong2404 I am sorry, this request has signs of fraud. I have to close it without merging. If you are a student of this school, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


target encoding

should be nice this one too:
https://www.kaggle.com/ogrellier/python-target-encoding-for-categorical-features

This does look interesting, would you like to help work on a PR for it?

There is a link to the actual paper here: https://kaggle2.blob.core.windows.net/forum-message-attachments/225952/7441/high cardinality categoricals.pdf

@chappers the link does not work :disappointed:

The article is still available from:
https://dl.acm.org/citation.cfm?id=507538

On Nov 29, 2018, at 11:43, Intern1<EMAIL_ADDRESS>wrote:
@chappers the link does not work 😞
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Create a login and sign up form

@irshadmd May I add a Login & Sign Up form ?

already have a PR, think something else


Caching doesn't seem to work with proxies

It straight up doesn't even call handle_async_request even with force_cache
Unfortunately I can't provide proxy I'm using, but that's understandable I hope.
To reproduce:

Initialize default cache client
Add socks5 proxy to it (haven't tested with others)
See how requests completely ignore cache layer

Hi!
Could you please supply the code you used to add proxy to your client?

Yeah, sure!
Client creation code is:
transport = httpx.AsyncHTTPTransport()
storage = hishel.AsyncFileStorage()
controller = hishel.Controller(force_cache=True)
cache_transport = hishel.AsyncCacheTransport(transport=transport, storage=storage, controller=controller)

proxies = {
	"all://": httpx.Proxy("socks5://localhost:25344")
}

async with httpx.AsyncClient(transport=cache_transport, proxies=proxies) as client:
	...

Setting proxy like this
transport = httpx.AsyncHTTPTransport(proxy="socks5://localhost:25344")
...
cache_transport = hishel.AsyncCacheTransport(transport=transport, storage=storage, controller=controller)

Doesn't work either if you're curious

The first example will not work, and it's expected.
You are trying to mout all:// with the proxy transport, and not with the cache + proxy transport so it maps all:// with the regular httpx.AsyncHTTPTransport
Second example will work, but I think you also passing the proxies from the first example, so it will overwrite the default mounting and will send requests through the regular AsyncHTTPTransport instead of hishels transports.
transport = httpx.AsyncHTTPTransport(proxy="https://localhost:25344")
controller = hishel.Controller(force_cache=True)
cache_transport = hishel.AsyncCacheTransport(transport=transport, controller=controller)

proxies = {
    "all://": httpx.Proxy("https://localhost:25344")
}
async with httpx.AsyncClient(
    transport=cache_transport,
    proxies=proxies
    ) as client:
    print(client._mounts)  # {all://: <httpx.AsyncHTTPTransport object>}

So you should either remove proxies to not overwrite the default transport, which is cache transport in the second example, or use the mounts api like so
transport = httpx.AsyncHTTPTransport(proxy="https://localhost:25344")
controller = hishel.Controller(force_cache=True)
cache_transport = hishel.AsyncCacheTransport(transport=transport, controller=controller)

mounts = {
    "all://": cache_transport
}

async with httpx.AsyncClient(mounts=mounts) as client:
    print(client._mounts)  # {all://: hishel._async._transports.AsyncCacheTransport object}

Maybe I should've slept more than 4 hours today... Sorry to spend your time, thanks for help!


Will there be an example for connecting multiple sensors?

The example usage code is quite great for newbies, however, after I connected more than one sensor to the Arduino board, my program crashed. And the provided error log is "Wrong CRC Found", which makes me lose my head. I wonder if there will be some example code to show how to interact with multiple sensors?

Hi, have you checked the pins? they should not be in conflict.

Is your question with multiple scd4x on the same bus or other sensors?
I²c only allows one same address per bus. Scd41 is 0x62. If you have two devices replying to a query, CRC issues are expected unless they both reply the exact same answer.
I didn't see how to reconfigure the address but you can use another bus if available or otherwise use a multiplexer device.

Yes, exactly. I have more than one sensor on the same bus, and scd41 is 0x62 by default. They get into conflicts when I try to run the example code. I know we could change the I2C address using a multiplexer, but can we also change the address in our program?

Hello @lemorage ,
You are not the first person to request an example using several sensors.
We unfortunately did not find the tie yet to do it. I will try to push it out of the backlog.
The general rule for using several of the same sensor:

Check if sensor supports several i2C addresses.
If not, your board might have more than one i2C bus.
If not, you need to use a multiplexer which will distribute the messages across the sensors.

I hope it helps
Quentin

@qfisch Cool, I'll try to see if these options solve the problem, anyway it seems this must be something related to the hardware stuff, not something we can do through programming.
Look forward to any updates on the progress.


migration set float after migration double

Is this bug in migration , I set float like this
$table->float('mycol');

after I issued command migrate, when I looked at in the table the datatype is double not float.
Thank you in advance

You can change the length if you want. Feel free to ask questions on the fourms.