error in utils_mnist.py

I am trying to run your mnist_blackbox_keras.py
but I am getting:
Traceback (most recent call last):
File "examples/mnist_blackbox_keras.py", line 305, in
tf.app.run()
File "/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "examples/mnist_blackbox_keras.py", line 285, in main
lmbda=FLAGS.lmbda, aug_batch_size=FLAGS.data_aug_batch_size)
File "examples/mnist_blackbox_keras.py", line 220, in mnist_blackbox
test_end=test_end)
File "cleverhans/cleverhans/utils_mnist.py", line 95, in data_mnist
'train-images-idx3-ubyte.gz', datadir=datadir) / 255.
File "cleverhans/cleverhans/utils_mnist.py", line 68, in download_and_parse_mnist_file
data = array.array(data_type, file_descriptor.read())
TypeError: must be char, not unicode
could you help me with it.
Thanks.

Are you using python 2 or 3?

Hi,
could you let me know if you find the reason?

What happens when you replace L48 of utils_mnist.py with the following?
with open_fn(file_name, 'r') as file_descriptor:

I have a similar problem with the mnist + keras tutorial (mnist_tutorial_keras_tf.py
), I have tried changing L48 but I obtain the same error:
Using TensorFlow backend.
2018-09-18 15:33:49.761729: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:898] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-09-18 15:33:49.762655: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1344] Found device 0 with properties:
name: GeForce GTX 960M major: 5 minor: 0 memoryClockRate(GHz): 1.176
pciBusID: 0000:01:00.0
totalMemory: 1.96GiB freeMemory: 1.92GiB
2018-09-18 15:33:49.762684: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1423] Adding visible gpu devices: 0
2018-09-18 15:33:50.757986: I tensorflow/core/common_runtime/gpu/gpu_device.cc:911] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-09-18 15:33:50.758023: I tensorflow/core/common_runtime/gpu/gpu_device.cc:917]      0
2018-09-18 15:33:50.758034: I tensorflow/core/common_runtime/gpu/gpu_device.cc:930] 0:   N
2018-09-18 15:33:50.773126: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1689 MB memory) -> physical GPU (device: 0, name: GeForce GTX 960M, pci bus id: 0000:01:00.0, compute capability: 5.0)
Traceback (most recent call last):
  File "/home/fab/python-workspace/ArticleFishingCNN/postcrisis/cleverhans-tutorial.py", line 237, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 126, in run
    _sys.exit(main(argv))
  File "/home/fab/python-workspace/ArticleFishingCNN/postcrisis/cleverhans-tutorial.py", line 223, in main
    load_model=FLAGS.load_model)
  File "/home/fab/python-workspace/ArticleFishingCNN/postcrisis/cleverhans-tutorial.py", line 86, in mnist_tutorial
    test_end=test_end)
  File "/usr/local/lib/python2.7/dist-packages/cleverhans/utils_mnist.py", line 94, in data_mnist
    'train-images-idx3-ubyte.gz', datadir=datadir) / 255.
  File "/usr/local/lib/python2.7/dist-packages/cleverhans/utils_mnist.py", line 68, in download_and_parse_mnist_file
    data = array.array(data_type, file_descriptor.read())
TypeError: must be char, not unicode

I sent a Pull request with a working Python2 fix:
https://github.com/tensorflow/cleverhans/pull/569

it did not solve the problem for me I am yet getting the error as
utils_mnist.py", line 68, in download_and_parse_mnist_file
data = array.array(data_type, file_descriptor.read())
TypeError: must be char, not unicode

My pull request is made of 4 commits, you need the merge of all 4 commits. I have checked it with Python 2.7 and 3.4, and the TRAVIS integration of the repository confirms the fix for Python 2.7/3.5.

I applied all the commits
utils_mnist.py", line 94, in data_mnist
'train-images-idx3-ubyte.gz', datadir=datadir) / 255.
src/cleverhans/cleverhans/utils_mnist.py", line 68, in download_and_parse_mnist_file
data = array.array(data_type, file_descriptor.read())
TypeError: must be char, not unicode

It is only to be sure&safe that you updated the file correctly, please copy/paste (I think) L65-L70, the lines just after the  hex_to_data_type = {..} part.

I build the lib again. I think only copy paste wont help, one need to re install cleverhans with pip install ...

copy paste was not enough. one need to do pip install cleve.... again I think.
though now I am getting new errors /~_~\

you are welcome :-)


Replace std::ofstream with llvm::raw_fd_ostream in -verify-apply-fixes

This isn't a user-facing feature, but why bother using std::ofstream?

@swift-ci Please smoke test


return value on ie11 not iso format

All modern browsers return date as iso format. Only ie11 returns the date in display format.
BTW, there is the german translation of "today" (= "Heute") missing.

This PR seems a little bit big for the description.  Was this intentional?


[Bug] CaptionClass doesn't work together with "ShowAsTree = true"

Hello colleagues,
When CaptionClass property is specified together with ShowAsTree = true, the very first column does not change the caption.
In the attached example you will find a simple application to reproduce the problem.
The page contains a repeater with "ShowAsTree = true" and 2 fields with CaptionClass peroperty defined.
The 2nd field works correctly, changing the caption of the field dynamically.
The 1st field has original caption. CaptionClass property had no effect on it

CaptionClassBug.zip
P.S. Tested on BC20 CU3

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 22.0.47787.0.


Linux/Ubuntu-Support

Hey there! First of all I'd like to say, how much I appreciate your project! While searching for an alternative for todo.txt (w/ multi line capability) I stumbled upon org-mode, and instantly loved the concept! Learning the key bindings of emacs on the other hand.. it's not that I don't want to, but I'm really used to writing my notes, code etc. in sublime and it's just part of my daily workflow..
Anyway, coming to my problem. I have to apologize for this rather broad issue description, but I want to sort things out, before I'm trying to test several different settings.
I have an up-to-date install of sublime 3 on my work machine running Ubuntu 20.04 (Wayland). I have your package installed and set up, but it just works kind of odd: e.g.  cycles through folding, but  +  does nothing. I can open agenda but every task shows multiple times. I can't insert timestamps. The list goes on.
So I just wanted to reach out first, to ask, if that's kind of known, maybe some issue with Wayland, and of course if supporting other OS is something you're up to?
Kind regards, Daniel.

Great!
I am glad the project is of interest to you.
Short answer.... I dont know. I havent been running it on linux in a bit. I will check and get back to you.
It is certainly supposed to be working and did at one time.

You can help me with concrete examples of your problems. Start with the most pressing and I will endeavour to help where I can.

Hmmm, I just fired it up on ST4 running on 20.04 focal and I am not seeing anything obvious.
NOTE: Folding is done using the tab and shift tab key in a context sensitive way since that is the way orgmode does it. IF it folds in an odd way that means I have a bug (probably) The folding system works off the parsed org files and it CAN get out of sync. If you unfold first then save the file things should get back to normal. More importantly, please let me know what you were doing so I can try to fix that.
I will continue to play around and try ST3 etc but I could use some more guidance of what you are seeing. I really haven't tested the full gamut of options on linux and should take some time to do that in the next little while.
NOTE: My keybindings leave something to be desired. If you would like to suggest keybindings or even fire up a PR for some improvements I am happy to try to accomodate. I am mostly working on a mac and a windows box these days, but even the mac is lagging and doesn't have a good default scheme, especially with all the newer options I have been adding.
I am happy to have help as well so if there are things that annoy you and you want / can contribute (even the docs) please feel free to help.

There is a discord community I have tossed up (OrgExtended) feel free to join if you would like.

I just ran against ST3. I am not seeing anything super odd. I could use some more guidance into what you are struggling with.
OrgExtended is a big complex monster and it certainly has it's challenges.
Have you opened up your Ctrl-~ console and looked for any exceptions that might be being generated during startup?
I can give you an option for turning on verbose logging so we can see if there is anything the package is encountering and hiding from us.

Oh, wow! I wasn't expecting your response THAT fast! Thanks!
I was able to have a second look on my private pc (also Ubuntu 20.04) where most things work as expected..
Then i realized I didn't enter my sublime license key on my work laptop.. so, i did this, restarted sublime and voila: it works! :)
So, now I'm just some minor issues (e.g. a scheduled task appears in the agenda on the scheduled date and time but also on every other day after that..).
I assume it's easier to open up single issues for that?
So i'd close this one, after one question: Do you have some kind of reference org-file to test "all/most" features?
Best, Daniel

There is the concept or recurring timestamps as well.

I do have some test org files. Some of them are hidden in the package, others are in the documentation. For instance unittest.org the table unit test is in the docs.
I dont really have a suite yet and there are quite a few features.

We dont support all of org mode and we deviate in some places but generally we are trying to sync with org. So the org mode docs kind of supplement ours where i have been unable to doc things.

Please feel free to open issues. I will respond where i can and fix what I can

All of the documentation is written as org files so you can grab any of it and work with that.
I am also adding one of my test files to the 1.2.3. Release.
Note org mode is huge and the applications are pretty diverse, so no matter how big i make that test file it wont cover the half of it.

Did the above help?
Org Show Testfile is in 1.2.4. (I just pushed 1.2.5)
Where possible I am trying to do things the "org mode way"
https://orgmode.org
It really is a complex piece of tech.
It's a PIM
It's a task manager
it's a note taking system with refiling and capture tools.
it's a GTD management toolset.
it's a writers aid
it's a project planning tool
it's a document interchange format
it's a document authoring toolset
it's a presentation tool (Org Presentation mode or Export to Reveal.js come to mind here)
It's a personal wiki
it's a website authoring toolset
It's an in editor spreadsheet
It's a literate programming and reproducible research toolset (babel mode)
It's a self documenting IT aid
....
It really is hard to describe the gamut of tools and systems that surround org mode.


Profiling breaks with error "spawn austin ENOENTaustin process exited with code -4058"

I have installed the VS Code extension as described here but it throws an error when I try to profile my code: spawn austin ENOENTaustin process exited with code -4058
How can I get it running?

Yes. If I run austin in the same venv on a sample test.py file, I get:
venv) PS C:\Users\foo\test> austin -m python test.py
              _   _
 __ _ _  _ __| |_(_)_ _
/ _` | || (_-<  _| | ' \
\__,_|\_,_/__/\__|_|_||_| 3.6.0 [gcc 12.2.0]
# austin: 3.6.0
# interval: 100
# mode: memory
# memory: 33554432

ƒÉì Python version: 3.9.13

P21228;T0:2d94 8826880
P21228;T0:2d94 -28672
P21228;T0:2d94 -28672
P21228;T0:2d94 -24576
P21228;T0:2d94 -86016
P21228;T0:2d94 4096

# duration: 5019634

Statistics
Ôîø Sampling duration : 5.02 s
ÔÅ▒´©Å  Frame sampling (min/avg/max) : 95/219/172 ╬╝s
ƒÉó Long sampling rate : 4/6 (66.67 %) samples took longer than the sampling interval to collect
ƒÆÇ Error rate : 0/6 (0.00 %) invalid samples

So this seems to work. Any hints?

I had similar issue, using the default launching (Running 'austin' with args '-i 100 --pipe .../python .../profiling.py'.) failed with error code -2.
But when I do "austin -m .../python .../profiling.py ", it worked


Add IO shortname for istio operator

so that users can do
$ k get io -n istio-system
NAME                            REVISION   STATUS    AGE
example-custom-ingressgateway   custom     HEALTHY   9m15s
example-istiocontrolplane                  HEALTHY   15m

And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[ ] Configuration Infrastructure
[ ] Docs
[ x ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

@linsun: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
d3f4810ead367cc158704b7f7cc62b6d15e7e69e
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Because IstioOperator translates more intuitively to io, similar as all other shortnames we have like VirtualService to vs, DestinationRule to dr.

@linsun: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
d3f4810ead367cc158704b7f7cc62b6d15e7e69e
link
/test release-notes_istio

integ-pilot-multicluster-tests_istio
d3f4810ead367cc158704b7f7cc62b6d15e7e69e
link
/test integ-pilot-multicluster-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@linsun seems reasonable to me. As this is a user-facing change, can you add a release note?
Cheers,
-steve

@linsun: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-multicluster-tests_istio
d3f4810ead367cc158704b7f7cc62b6d15e7e69e
link
/test integ-pilot-multicluster-tests_istio

release-notes_istio
e9f69941f9e23a0e798561c98afeb26d13f18669
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@linsun: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-multicluster-tests_istio
d3f4810ead367cc158704b7f7cc62b6d15e7e69e
link
/test integ-pilot-multicluster-tests_istio

release-notes_istio
e9f69941f9e23a0e798561c98afeb26d13f18669
link
/test release-notes_istio

integ-multicluster-k8s-tests_istio
e9f69941f9e23a0e798561c98afeb26d13f18669
link
/test integ-multicluster-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Use templating engine

Instead of just having HTML files, make use of templating engine like Jade or similar.

Maybe use EJS instead of Jade, http://robdodson.me/how-to-use-ejs-in-express/.

Switched over to EJS, closing issue. Templates work great.


Agents sending trace data to collector in different namespace

I have identical applications running in two different namespaces where the Jaeger resources share the same name "Jaeger" and the Agents are auto injected into Deployment pods. In this scenario the agents in namespace 1 send trace data to collectors in namespace 1 and agents in namespace 2 send trace data to collectors in namespace 1.  When the Jaeger resources don't share the same name and the Agents, correctly configured with the appropriate name of the Jaeger instance in the same namespace, the agents in namespace 1 send trace data to collectors in namespace 1 and agents in namespace 2 send trace data to collectors in namespace 2. Am I wrong to expect the setup in scenario 1 to yield the results of scenario 2?

I think this is a bug that we've seen before but that had a small impact on people. The recommended workaround is to use unique names for your Jaeger instances, even if they are in different namespaces.
cc @jkandasa, @rubenvp8510

I think this is a bug that we've seen before but that had a small impact on people. The recommended workaround is to use unique names for your Jaeger instances, even if they are in different namespaces.
cc @jkandasa, @rubenvp8510


Angularjs ng-hide not working with ng-include template

Hi. Can anybody help me.
In index.html, I run ng-view, which code corresponds to Routing.js file. The menu calls two pages main.html and product.htm.
main.htm, has included another page called filterApp.html.
I need to hide a page element that is embedded main.html the filterApp.html. I have not succeeded.
If I take the include and put the code directly into main.html works. I read that ng-ng-hide and include not working properly. Is there anything I can do. I need to have it in separate files.
Here is the code of the pages.
Thank you so much
Index.html

Main.html

main  Page

{{ message }}

Product.html

Product Page

{{ message }}

p ng-hide="hide1">este parrafo se debe borrar

filterApp.html

            <select id="select-1" multiple="multiple" onchange="RecargaSelectBU()" >
            </select>

Routing.js
// create the module and name it dbApp
    var dbApp = angular.module('appDataBoard', ['ngRoute']);

    // configure our routes
    dbApp.config(function($routeProvider) {
        $routeProvider

            // route for the home page
            .when('/main', {
                templateUrl : 'template/main.html',
                controller  : 'mainController'
            })

            // route for the about page
            .when('/product', {
                templateUrl : 'template/product.html',
                controller  : 'productController'
            })

    });

    // create the controller and inject Angular's $scope
    dbApp.controller('mainController', function($scope) {
        // create a message to display in our view
        $scope.message = 'Pagina principal';
        $scope.hselect1 = true;
    });

    dbApp.controller('productController', function($scope) {
        $scope.message = 'Pagina de producto.';
        $scope.hide1 = true;

    });

@cbugari, this sounds like a general support question. Please, use one of the appropriate support channels for these types of questions.
GitHub issues are reserved for bug reports and feature requests.
Thx !


BM Hyperdeck not receiving record, play, stop, ff, rwd commands

We have 5 Black Magic Mini hyperdecks. We are controlling with companion and streamdeck. Three of BM mini's work together in tandem while two are unresponsive to the companion commands. They are all on the same switch, IP addresses are solid.
In fact, we can select the destination for the devices thru the companion software using a stream deck. But 3 of the 5 only will record, play, stop, ff and rwd.
Are there any none cases of this or direction you can point us in to resolve our issue?

ah!~ thanks for your help - resolved!


Error: [introspection-engine/connectors/sql-introspection-connector/src/re_introspection.rs:486:14] Could not find relation field employees on model Record.

https://prisma-errors.netlify.app/report/14113

Another example: https://prisma-errors.netlify.app/report/14261

New occurrence in error reporting on 4.3.1: https://prisma-errors.netlify.app/report/14338
Maybe something to do with relation mode prisma, based on this.

This breaks on 4.0.0 (and 4.3.1) for all the given error reports. Does not break anymore with 4.7.0.
All these were fixed in the big introspection refactor.

Fixed in commit bffd935029e462592819b33a080e8f8953b58acb and version 4.6.0.


Dots produced by build are not circular

The dots produced by the build are more square than those produced by the Glyphs plugin, identical parameters:

I've done some digging on this, and the problem turns out to be.... fontmake! cu2qu has a default tolerance of 0.001 when converting cubics to quadratics:

Bumping this up an order of magnitude with fontmake -e 0.00001, we get:

(Trying another order of magnitude produces the wonderful

)

To be fair, a 60 unit dot in a 2048 upem font is really pretty tiny, so I'm not sure we can really blame fontmake here.

We could do either, but changing the design of the dots seems more obviously correct.


[dask, scikit-learn] DaskXGBClassifier.classes_ inherits index of label data occasionally causing downstream issues with sklearn scorers

Description
I've noticed that unlike the vanilla XGBClassifier, xgb.Dask.DaskXGBClassifier.classes_ returns a pandas Series using the index of the first instances of each label. This causes problems with scikit-learn scoring.
Specifically, the classes_ attribute is used here, which feeds into this, causing a failure if classes_ doesn't have a 1 in it's index.
Reproducer code
To generate fake binary classification data and fit a DaskXGBClassifier:
import dask.dataframe as dd
from sklearn.datasets import make_classification
from sklearn.metrics import log_loss, make_scorer
import xgboost as xgb
import pandas as pd
from distributed import Client, LocalCluster

c = Client(LocalCluster())

def make_fake_data(n_samples, n_features=10, random_state=123):
    X, y = make_classification(
        n_samples=n_samples, n_features=n_features, random_state=random_state
    )
    feats = [f"var_{i}" for i in range(n_features)]
    df = pd.DataFrame(X, columns=feats)
    df["target"] = y
    return dd.from_pandas(df, npartitions=1), feats

train_df, feats = make_fake_data(n_samples=1000, random_state=123)
test_df, _ = make_fake_data(n_samples=100, random_state=42)

est = xgb.dask.DaskXGBClassifier().fit(
    train_df[feats],
    train_df["target"],
)

In this case, est.classes_ returns:
0    0
2    1
Name: target, dtype: int64

So if you try to score this with commonly used sklearn scorers like log_loss:
test_df, _ = make_fake_data(n_samples=100, random_state=42)
scoring = make_scorer(log_loss, greater_is_better=False, needs_proba=True)
scoring(est, test_df[feats], test_df["target"])

you get an exception like:
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
File ~/.venv/lib/python3.10/site-packages/pandas/core/indexes/base.py:3803, in Index.get_loc(self, key, method, tolerance)
   3802 try:
-> 3803     return self._engine.get_loc(casted_key)
   3804 except KeyError as err:

File ~/.venv/lib/python3.10/site-packages/pandas/_libs/index.pyx:138, in pandas._libs.index.IndexEngine.get_loc()

File ~/.venv/lib/python3.10/site-packages/pandas/_libs/index.pyx:165, in pandas._libs.index.IndexEngine.get_loc()

File pandas/_libs/hashtable_class_helper.pxi:2263, in pandas._libs.hashtable.Int64HashTable.get_item()

File pandas/_libs/hashtable_class_helper.pxi:2273, in pandas._libs.hashtable.Int64HashTable.get_item()

KeyError: 1

The above exception was the direct cause of the following exception:

KeyError                                  Traceback (most recent call last)
Cell In [3], line 3
      1 scoring = make_scorer(log_loss, greater_is_better=False, needs_proba=True)
----> 3 scoring(est, test_df[feats], test_df["target"])

File ~/.venv/lib/python3.10/site-packages/sklearn/metrics/_scorer.py:219, in _BaseScorer.__call__(self, estimator, X, y_true, sample_weight)
    196 def __call__(self, estimator, X, y_true, sample_weight=None):
    197     """Evaluate predicted target values for X relative to y_true.
    198
    199     Parameters
   (...)
    217         Score function applied to prediction of estimator on X.
    218     """
--> 219     return self._score(
    220         partial(_cached_call, None),
    221         estimator,
    222         X,
    223         y_true,
    224         sample_weight=sample_weight,
    225     )

File ~/.venv/lib/python3.10/site-packages/sklearn/metrics/_scorer.py:306, in _ProbaScorer._score(self, method_caller, clf, X, y, sample_weight)
    301 y_pred = method_caller(clf, "predict_proba", X)
    302 if y_type == "binary" and y_pred.shape[1] <= 2:
    303     # `y_type` could be equal to "binary" even in a multi-class
    304     # problem: (when only 2 class are given to `y_true` during scoring)
    305     # Thus, we need to check for the shape of `y_pred`.
--> 306     y_pred = self._select_proba_binary(y_pred, clf.classes_)
    307 if sample_weight is not None:
    308     return self._sign * self._score_func(
    309         y, y_pred, sample_weight=sample_weight, **self._kwargs
    310     )

File ~/.venv/lib/python3.10/site-packages/sklearn/metrics/_scorer.py:173, in _BaseScorer._select_proba_binary(self, y_pred, classes)
    156 """Select the column of the positive label in `y_pred` when
    157 probabilities are provided.
    158
   (...)
    170     Probability predictions of the positive class.
    171 """
    172 if y_pred.shape[1] == 2:
--> 173     pos_label = self._kwargs.get("pos_label", classes[1])
    174     self._check_pos_label(pos_label, classes)
    175     col_idx = np.flatnonzero(classes == pos_label)[0]

File ~/.venv/lib/python3.10/site-packages/pandas/core/series.py:981, in Series.__getitem__(self, key)
    978     return self._values[key]
    980 elif key_is_scalar:
--> 981     return self._get_value(key)
    983 if is_hashable(key):
    984     # Otherwise index.get_value will raise InvalidIndexError
    985     try:
    986         # For labels that don't resolve as scalars like tuples and frozensets

File ~/.venv/lib/python3.10/site-packages/pandas/core/series.py:1089, in Series._get_value(self, label, takeable)
   1086     return self._values[label]
   1088 # Similar to Index.get_value, but we do not fall back to positional
-> 1089 loc = self.index.get_loc(label)
   1090 return self.index._get_values_for_loc(self, loc, label)

File ~/.venv/lib/python3.10/site-packages/pandas/core/indexes/base.py:3805, in Index.get_loc(self, key, method, tolerance)
   3803     return self._engine.get_loc(casted_key)
   3804 except KeyError as err:
-> 3805     raise KeyError(key) from err
   3806 except TypeError:
   3807     # If we have a listlike key, _check_indexing_error will raise
   3808     #  InvalidIndexError. Otherwise we fall through and re-raise
   3809     #  the TypeError.
   3810     self._check_indexing_error(key)

This error doesn't arise if you train on a dask array since when training on an array, classes_ is a numpy array.
Workaround and proposed solution
Right after training, convert classes_ to an array.

Would you like to submit a pull request?

Sure, I'd love to.


some unexpected panic

hello world example is modified as follow:
# Cargo.toml
[package]
name = "async_runtime"
version = "0.1.0"
authors = ["huangjj27<EMAIL_ADDRESS>edition = "2018"

[dependencies]
runtime = "0.3.0-alpha.3"
futures-preview = "0.3.0-alpha.15"

// main.rs
#![feature(async_await, await_macro)]

async fn say_hi(num: usize) {
    println!("Hello, async - {}!", num);
}

#[runtime::main]
async fn main() {
    for i in 1..=100 {
        runtime::spawn(async move {
            let i = i;
            say_hi(i).await;

            Ok::<(), std::io::Error>(())
        });
    }
}

then, run:
PS E:\learning-rust\async_runtime> cargo +nightly run
   Compiling async_runtime v0.1.0 (E:\learning-rust\async_runtime)
    Finished dev [unoptimized + debuginfo] target(s) in 3.16s
     Running `target\debug\async_runtime.exe`
Hello, async - 2!
Hello, async - 3!
Hello, async - 4!
Hello, async - 5!
Hello, async - 6!
Hello, async - 7!
Hello, async - 8!
Hello, async - 9!
Hello, async - 10!
Hello, async - 11!
Hello, async - 16!
Hello, async - 13!
Hello, async - 14!
Hello, async - 15!

and run again:
PS E:\learning-rust\async_runtime> cargo +nightly run
    Finished dev [unoptimized + debuginfo] target(s) in 0.27s
     Running `target\debug\async_runtime.exe`
Hello, async - 1!
Hello, async - 3!
thread 'thread 'thread 'Hello, async - 2!
thread '<unnamed>thread 'thread '<unnamed>thread '<unnamed><unnamed>' panicked at '<unnamed><unnamed>' panicked at '

Expected Behaviour
It should print 100 times with no specific order

Thanks for opening this issue! Yeah, what's happening is that the .spawn call is not being awaited:
#![feature(async_await, await_macro)]

async fn say_hi(num: usize) {
    println!("Hello, async - {}!", num);
}

#[runtime::main]
async fn main() {
    for i in 1..=100 {
        runtime::spawn(async move {
            let i = i;
            say_hi(i).await;

            Ok::<(), std::io::Error>(())
        }).await;
    }
}

We should probably fix this by adding #[must_use] attributes throughout the code so it will become clearer that Futures aren't being awaited where appropriate.
However, this processes the list of futures in order. The way to create an unordered list of futures is by using futures::stream::FuturesUnordered:
#![feature(async_await, await_macro)]

use futures::stream::FuturesUnordered;
use futures::prelude::*;

async fn say_hi(num: usize) {
    println!("Hello, async - {}!", num);
}

#[runtime::main]
async fn main() {
    let mut collection = FuturesUnordered::new();
    for i in 1..=100 {
        let fut = runtime::spawn(async move {
            let i = i;
            say_hi(i).await;

            Ok::<(), std::io::Error>(())
        });
        collection.push(fut);
    }

    while let Some(_) = collection.next().await { }
}

This should hopefully solve your issue!

Actually feeling pretty confident this issue should be solved. Going to go ahead and close it. I've filed #30 to address the structural problem.
If there's anything missing, I'd be happy to reopen this!

This should hopefully solve your issue!

@yoshuawuyts thanks! your reply help and teach me alot!


Inconsistent Embedding Field Behavior Between .get() and .peek() Methods in Vector Database within Langchain

System Info
I use Python 3.10.12 and langchain 0.0.262.
Using a chroma vector database within langchain, I encounter different behaviors between the .get() and .peek() methods. Specifically, when I use .get(), the embeddings field appears as None. However, when I use .peek(), the embeddings field is complete.
Here are the codes I have and their results:
Using db._collection.peek(1):
{'ids': ['/path/to/document.pdf_0'],
 'embeddings': [[-0.013034389354288578,
   0.004974348470568657, ...]],
 'metadatas': [{'index': 0,
   'page': 0,
   'source': '/path/to/document.pdf'}],
 'documents': ['Document content here...']}

Using db._collection.get(ids='/path/to/document.pdf_0'):
{'ids': ['/path/to/document.pdf_0'],
 'embeddings': None,
 'metadatas': [{'index': 0,
   'page': 0,
   'source': '/path/to/document.pdf'}],
 'documents': ['Document content here...']}

The issue seems to be that the embeddings are missing when using the .get() method, but they are present when using the .peek() method. Could you please help me understand why this inconsistency occurs?
Who can help?
No response
Information

[ ] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[X] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction

Create a Chroma database with custom metadata and OpenAI embeddings.
Filter on just the first source with .get() so you can see the first k documents
Peek the same k documents with .peek()

Expected behavior
The .get() method should return the embeddings too.

I had to read some more documentation from Chroma. The issue is that by default, .get() only returns "metadatas" and "documents" .You have to specify it to include also "embeddings" like this:
db._collection.get(ids='/path/to/document.pdf_0', include=["metadatas", "documents", "embeddings"])


Postgres specs

Postgres specs
Fractal-server requires Postgres in production phase as DBMS.
Installation phase is slight different for each OS.
Few example:
On Ubuntu (20.04-22.04):
sudo apt update
sudo apt install postgresql postgresql-contrib

It is possible checking the status of the database with service or systemctl and see that it is active.
On CentOS (8):
dnf module list postgresql # to see available version

sudo dnf module enable postgresql:<latest>

sudo dnf install postgresql-server

It is necessary also create a database cluster before connecting:
sudo postgresql-setup --initdb
sudo systemctl start postgresql
sudo systemctl enable postgresql

Also in this case check the status, to be sure that the daemon is running correctly.
Requirements for fractal-server

Postgres must be reachable from fractal-server service via http (default port 5432)
An User with permissions grated for registering new users and making CRUD operations on the database.

Minor clarification from discussions with Enrico (& discussed with @mfranzon):

An User with permissions for registering new users and making CRUD operations on the database.

This means there is an admin user which can register new Fractal users (=> new entries to the user database table), not that we will have different postgres users. The admin user can make CRUD operations on the database.

Also, at the FMI, we'd be running the whole Fractal server in a separate VM from the cluster. Thus, the database doesn't need its own separate VM anymore.

No further action required, closing


Add twitter as a provider

I can create a PR for this, if it is of interest

I started work on this but found that twitter doesn't use oauth 2.0 for accessing the user's email address:

from here
the flow is therefore different to what we use for the other providers: https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens
so I'm not sure how relevant methods like
p.Exchange(oauth2.NoContext, code)

are in this approach

Cool, I'll look into it!

@awalias it seems like the OAuth 2 protocol is fundamentally different from the OAuth 1.0 and as so I don't think we'll be able to reuse much from the OAuth providers code. If I can create an external dependency on a OAuth 1.0 library it would be easier, but I also understand if that's not preferred.
Also, I'm afraid some of the interfaces named OAuth could be confusing, as they wouldn't be satisfied for the OAuth 1.0 providers. That can be solved either by refactoring them to more generic ones (but I'm not sure that's either possible or good idea) or by renaming them to be OAuth 2 specific.

If I can create an external dependency on a OAuth 1.0 library it would be easier
I'm happy to proceed on the basis of ease of implementation, we can optimize later if needed

I'm afraid some of the interfaces named OAuth could be confusing
perhaps we can use TwitterOAuth or OAuth1_0a for anything twitter specific. And can always refactor if we require other OAuth 1.0 providers ?

Would love to have Twitter as an option for auth. Looks like the NextAuth folks had to go with OAuth 1.0A https://github.com/nextauthjs/next-auth/blob/main/src/providers/twitter.js

some initial work here: https://github.com/supabase/gotrue/pull/96

previous PR superseded by https://github.com/supabase/gotrue/pull/95

fixed by #98
will be available in supabase dashboard for new projects this evening
for existing projects it will be shipped tomorrow


BUG: Fix the google auth

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The google authentication is not working,
this error keeps showing up.

Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSOC'24 contributor
[ ] I want to work on this issue

@Sayak-Bhunia  I checked this issue, I believe this is happening due to empty secret in the .env file.

which leads to no connection between the database or the auth that we are taking from google and github.
do you know who was responsible for the auth part for this codebase?

@Sayak-Bhunia  I checked this issue, I believe this is happening due to empty secret in the .env file.

which leads to no connection between the database or the auth that we are taking from google and github.
do you know who was responsible for the auth part for this codebase?

Aj should the secret be exposed?

@Sayak-Bhunia  I checked this issue, I believe this is happening due to empty secret in the .env file.

which leads to no connection between the database or the auth that we are taking from google and github.
do you know who was responsible for the auth part for this codebase?

Ah, should the secret be exposed?

@Sayak-Bhunia  I checked this issue, I believe this is happening due to empty secret in the .env file.

which leads to no connection between the database or the auth that we are taking from google and github.
do you know who was responsible for the auth part for this codebase?

Ah, should the secret be exposed?

i believe there is a  .env.example  file where we can put for developer to work on.(temporary secret) and after it is in final stage, we can changed that.

can you do that ?

Will try but don't assign me yet. Also can you check the pending pr

Hey, Is the issue solved?

@Tomkndn  about to finish.

@Sayak-Bhunia , the issue is not related to Nextauth secret, it is related to the env variables google_id, google_secret is not set in vercel environment variables on vercel dashboard.

@Sayak-Bhunia , the issue is not related to Nextauth secret, it is related to the env variables google_id, google_secret is not set in vercel environment variables on vercel dashboard.

Cam u tell me where can I get the secrets or what will be the secrets?

@Sayak-Bhunia it best to do this from your end and close this issue. The secret can be generated from your side. Only owner have the permission to have the access not the developer.
You can go to the google console and generate the credentials. Same for GitHub.

If the next auth is set correctly, it should work after we generate the secret. If not we can raise issue depending on that

@TenzDelek, GitHub and credentials login is working fine. Even after setting Google client Id and secret Google have restrictions from Google console it allow only some verified email to login right?

@TenzDelek, GitHub and credentials login is working fine. Even after setting Google client Id and secret Google have restrictions from Google console it allow only some verified email to login right?

I believe if others providers are working fine, then the issue lies in the console setup, try checking the uri path are matching, the code base is deployed so give the url of that also. Maybe related to file structuring of the callback might also be related..

@Sayak-Bhunia  Add the below provided url and the production url to the Authorised redirect URIs in the google Oauth console of your generated Google Id and Google Secret window.
Also add the required Urls to the Authorised JavaScript origins too present in the top of this window.
Screenshot for the reference-

It will solve the error.


My first pull request (PLEASE DO NOT MERGE)

Trying out my first pull request.

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind new feature
/kind bug fix
/kind cleanup
/kind revert change
/kind design
/kind documentation
/kind enhancement

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Test Report Added?:

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind TESTED
/kind NOT-TESTED

Test Report:

Special notes for your reviewer:

Tushaaaaar its Wrong!!!!!


Set,Modify and Remove ACL recursively - nofork

@kasobol-msft - Would you be so kind as to advise if this is still an active work stream or we should close out this PR?


Add support for minMatchingChars=0

Allow displaying the list on initial select if minMatchingChars==0
Resolves #39

Pull Request Test Coverage Report for Build 53

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.9%) to 70.297%

Totals

Change from base Build 38:
0.9%

Covered Lines:
48

Relevant Lines:
69

💛  - Coveralls

Any word on when this might be merged in? I could use this for a project I'm working on. Thanks!

+1

I do not intend to take over maintenance of the project, but if anyone needs a version that has this fix, as well as #32 and #39 merged it is available on my fork.

Closing PR, creating new one off correct branch

If anyone stumbles across this PR. I am attempting to maintain this project, but had to fork it to here: https://github.com/mattzollinhofer/vue-typeahead-bootstrap.
I merged in functionality that I think meets this need here: https://github.com/mattzollinhofer/vue-typeahead-bootstrap/commit/09a6cf75494f487058bad90701d547bf05d7837a. This implementation refers to it as showOnFocus rather than re-using minMatchingChars but I believe the outcome is essentially the same unless I'm not understanding.
You can use the functionality under the forked project: https://www.npmjs.com/package/vue-typeahead-bootstrap or https://github.com/mattzollinhofer/vue-typeahead-bootstrap.
Hope this helps anyone who needs this functionality going forward!


Update getting_started readme oneDNN sample

Existing Sample Changes
Description
Verified that DPCPP compiler works on windows (CMake v3.21+), and updated the getting_started sample readme to include instructions for dpcpp build.
External Dependencies
N/A
Type of change

[ X] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Used oneDNN instructions to build and compile using DPC++ on windows, works for CMake versions 3.21 and above.

[X] Command Line
[ ] oneapi-cli
[X] Visual Studio
[ ] Eclipse IDE
[ ] VSCode
[ ] When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

@yehudaorel
you should target on master branch instead.
By the way, you have 272 files changed in the PR. could you remove the unnecessary changes from the PR?


Consider Using Contextual Auto-Escaping

Contextual auto-escaping often produces more intuitive escaping than simply turning auto-escaping on/off. This could be configured on a per-template basis via a compile-time directive.
see Google Closure Templates for more info:
http://code.google.com/closure/templates/docs/security.html

I don't quite understand what you mean by "contextual". In the sense that Twig automatically recognizes whether the output is done in JS or HTML?

@schmittjoh: I've just read the article you mentioned. It looks very clever but I doubt that it fits Twig. First, Twig is not limited to HTML templates. Then, I don't see how we can always be aware of the context as anytime you can include another template (with a dynamic name); so, depending on where the include is called, the context can be different and so the escaping rules can also be different.

I don't really have looked at the implementation of Google Closure Templates, but I know that they also support includes and non HTML templates (here Twig's behavior would simply be the same as it is now).
I can see that this escaping strategy can be very useful and solve some of the problems we had in the past when we discussed whether a certain filter/function should be marked as safe or not. It would also move some work from the developer to Twig and make templates more secure. Maybe, it makes sense to first try to implement this strategy in certain places where it is simple to implement, but the decision is yours.

After thinking about it a bit more, that's something that we can do on top of the existing escaping mechanism (as an option). I've looked for more input and found the following interesting reads and references:

http://js-quasis-libraries-and-repl.googlecode.com/svn/trunk/safetemplate.html
http://code.google.com/p/py-html-contextual-escaping/source/browse/#git%2Fsrc
http://code.google.com/p/owasp-esapi-java/source/browse/trunk/src/main/java/org/owasp/esapi/Encoder.java
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#XSS_Prevention_Rules

Implementation-wise this might give some good pointers:
http://code.google.com/p/closure-templates/source/browse/#svn%2Ftrunk%2Fjava%2Fsrc%2Fcom%2Fgoogle%2Ftemplate%2Fsoy%2Fparsepasses%2Fcontextautoesc

Context aware escaping has Nette framework - the most popular and most used framework in the Czech Republic.
Documentation: http://doc.nette.org/en/templating#toc-context-aware-escaping
Article: http://php-security.org/2010/05/05/mops-submission-02-context-aware-html-escaping/
Parser: https://github.com/nette/nette/blob/master/Nette/Latte/Parser.php
Writer: https://github.com/nette/nette/blob/master/Nette/Latte/PhpWriter.php#L281

Closing this old issue as nobody stepped up to work on it.


Change from __builtin_expect to [[unlikely]]

Prefer standard attributes over non-standard attributes.

This isn't necessary anymore, since the optimiser will blast the branches to oblivion.


Errors generated reporting changing property osDisk.name is not allowed

When executing the script the following error is encountered. Is this a known issue or is there a workaround ?
Update-AzureRmVM : Changing property 'osDisk.name' is not allowed.
ErrorCode: PropertyChangeNotAllowed
ErrorMessage: Changing property 'osDisk.name' is not allowed.
StatusCode: 409
ReasonPhrase: Conflict
OperationID : e06f180c-7a71-4252-a894-25ace75e062d

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

ID: 12ea7e90-b545-258a-3bc8-dd840e1c0835
Version Independent ID: 26e1a7b0-5762-5a37-6263-d8563ad66640
Content: Swap OS disk for an Azure VM with PowerShell
Content Source: articles/virtual-machines/windows/os-disk-swap.md
Service: virtual-machines-windows
GitHub Login: @cynthn
Microsoft Alias: cynthn

Updating AzureRM module to the latest version has resolved this issue.

Updating AzureRM module to the latest version has resolved this issue.

Thanks for the update! Glad to hear you got it sorted out :)

Even this issue is closed I want to let people know that I had the same issue and updating of the powershell module didn´t help (somehow my command were a bit different like Update-AzVM instead of Update-AzureRmVM).
Anyway, I got it working eventually by using Azure CLI.


"Declare missing function" codefix offered on arguments

Bug Report

🔎 Search Terms
declare missing function
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about the moon

⏯ Playground Link

Playground link with relevant code
💻 Code

declare function f(x: number): any;
f(asdfasdfa);

🙁 Actual behavior
We offer to declare asdfasdfa as a function

🙂 Expected behavior
No codefix—the fix is intended to be given only when the unresolved identifier is the expression of the CallExpression, not an argument passed to it.
Noticed by @danay1999 while working on ts-fix

Thanks @a-tarasyuk!


[Question] - ConnectionResetException thrown while kestrel process http request.

Under some load i have errors like this: ConnectionResetException. Could you help me determine the problem? My current project not fully asynchronous. Currently deployed under azure fron door balancer.
netcoreapp: 2.0
system image: ubuntu 18.04
docker images:
FROM microsoft/dotnet:2.2-runtime AS base
FROM microsoft/dotnet:2.2-sdk AS build

Any related links on described behaviour in docs will be helpful.
ConnectionResetException { Message: "Connection reset by peer", Data: [], InnerException: SocketException { Message: "Connection reset by peer", SocketErrorCode: ConnectionReset, ErrorCode: 104, NativeErrorCode: 104, Data: [], InnerException: null, TargetSite: Int32 GetResult(), StackTrace: "   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketAwaitable.GetResult()
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection.ProcessReceives()
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection.DoReceive()", HelpLink: null, Source: "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets", HResult: -2147467259 }, TargetSite: Void Throw(), StackTrace: "   at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1MessageBody.PumpAsync()
   at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.MessageBody.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.ReadAsyncInternal(Memory`1 buffer, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool`1 bytePool, Nullable`1 limit, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding)
   at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
   at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at ....Middleware.Invoke(HttpContext context) in /....Middleware.cs:line 60", HelpLink: null, Source: "System.Private.CoreLib", HResult: -2146232800 } occured in "/actionroute"

Kestre options
                .UseKestrel(opt =>
                {
                    opt.Limits.MinRequestBodyDataRate =
                        new MinDataRate(bytesPerSecond: 10, gracePeriod: TimeSpan.FromSeconds(45));
                    opt.Limits.MinResponseDataRate =
                        new MinDataRate(bytesPerSecond: 10, gracePeriod: TimeSpan.FromSeconds(45));

                })

Before seeing this exception i see logs like this:
level Warning
Heartbeat took longer than "00:00:01" at "03/13/2019 16:30:16 +00:00".
MessageTemplate Heartbeat took longer than "{interval}" at "{now}".

If i correctly understood its thread pool starvation?
Problem specific only for linux host machine (ubuntu server 16.04, 18.04), under win server all work fine.  Same behavior with netcoreapp 2.1.

Yes, that heartbeat warning usually means you're starving the threadpool. Is it possible to you to capture a dump of the process in this state and look at the stacks?

@Tratcher I think i can reproduce this behavior on proof-of-concept project but it take few days.

Closing this as we haven't heard from you. Please feel free to comment if you're able to get the information we're looking for and we can reopen the issue if we're able to identify the problem.


Fix for Linux remote script debugging hang

This is a fix for issue #1531 (Linux -> Windows remote debugging does not work).
Trying to remote debug a script from a Linux client would result in a hang.  The hang was in the PSReadLine GetPrompt() method because it tried to run the "prompt" function in a remote session that was stopped in the debugger, with the result that the "prompt" command was queued on the remote session for when the debugger stop is released.
Commands should always be run through the Debugger API when a runspace is in debug stop mode.  The fix is to provide a new public helper method that invokes a command correctly on a runspace depending on its current state, and update PSReadLine to use the new helper method.  The new method is intended to help other console host implementations that need to run commands on a its runspace for user display.

Hi @PaulHigin, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Paul Higinbotham). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Execute submodule init command in srcdir

Having this submodule git command in the cmake script is questionable. If you are having it, at least ensure it works correctly for out-of-tree builds (which are the norm when using cmake).

I prefer to remove the command entirely and let the user perform these steps. The command is removed in https://github.com/caffe2/caffe2/pull/382

I am a fan of that idea.


Outgoing transaction display issue

Behavior:

Send a transaction to 0xd441134720bd127f1e535585c0621cac9d52657a
Look at the TX log. It shows the receiver address as 0xc0621cac9d52657a which is wrong.
Expected: display the correct sort-form for the address.

This is still happening each and every time and is very confusing for users.


[BigQueryIO] Pick provided schema if existing table has null schema

During temp table writes, we always pick the existing table's schema if the table exists. This is a problem when the existing table has a null schema. If it's null, we should pick the provided schema.

Run Java_GCP_IO_Direct PreCommit

lgtm thanks!


Improve styling for color-blindness issues

See https://www.color-blindness.com/coblis-color-blindness-simulator/
I'm particularly concerned with the decoded probability animation, but we should look at other visualizations as well to make sure they degrade gracefully for people with different levels of color vision.

There's a related issue on sortingview https://github.com/magland/sortingview/issues/186
Waiting to here back from Loren and Eric on that. Marking this one as low priority for now.

This should be largely resolved by the updates to color templates/color scale choices coming out of figurl-franklab-views PR #12 (https://github.com/magland/figurl-franklab-views/pull/12)


Updated placeholder with the corresponding information

https://github.com/circlefin/circle-ecosystem/pull/73
I saw this pull request of this project. They update the placeholder with the corresponding information.

@edeNFed Kindly review.


Fix Hugging Face server EncoderModel not returning probabilities by correctly passing --return_probabilities flag  (#3958)

What this PR does / why we need it:
Fixes an issue with missing probability distributions in predictions when using the Hugging Face server EncoderModel with --return_probabilities.
Ensures --return_probabilities is correctly passed, enabling the model to return full probability scores instead of just the predicted class label.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #3958
Type of changes

[x] Bug fix (non-breaking change which fixes an issue)

Feature/Issue validation/testing:

[x]  Added test_huggingface_v2_sequence_classification_with_probabilities in test_huggingface.py
[x]  Verified that existing functionality is unaffected by the change

Checklist:

[x] Have you added unit/e2e tests that prove your fix is effective or that this feature works?

Release note:

Fixed missing probability distributions in Huggingface server EncoderModel when --return_probabilities is specified.

@oplushappy Can you help fix the lint errors ?

@oplushappy Can you help fix the lint errors ?

Yes, I can

@oplushappy Can you help sign the commit ? The DCO check is failing.

@oplushappy Can you help sign the commit ? The DCO check is failing.

Yes, I finished it.

@oplushappy can you help fix the linting errors?

CO

@oplushappy can you help fix the linting errors?

Yes, I finished it.

/lgtm
/approve


Doesn't work for continuous_mountain_car

Hello, the algo doesn't work for continuous_mountain_car, because it's reward is -pow(action[0],2)*0.1. What means, the car's initial state is a local max reward, all the exploration will decrease the reward and cannot get evoluated.
Of course, if the car can explore the final solution by one try, it will work. But the probability is negligible.
How do you handle such local max initial state issue???

What do you mean by Of course, if the car can explore the final solution by one try, it will work. .
I think that if it finds good solution (Reaching the final state) by accident then update in weights will be too small anyway as most of the population will want to keep the policy "Do nothing" . Correct me if I'm wrong but I think that for this experiment you would have to change the way in which policy weights are updated to give more value to much better results and ignore the rest, and you would have to increase the noise so it's possible to find good policy by adding noise to policy that does nothing.
This example is quite hard. I managed to get good results for discrete version (MountainCar-v0) but no success for this one.

@PatrykChrabaszcz Hello, after the solution is found quickly, the new weight will all be based on that solution.

I don't see how one proper solution would drag the weights for the current policy such that it makes it more probable to draw more policies that reach final state in the next generation (for this enviroment). Influence from policies doing nothing will be much bigger when you use current default updating rule.
Maybe you mean initializing current policy (by accident) such that big part of the first population reaches the goal state.

@PatrykChrabaszcz No, whenever it reachs the goal state, the influence will be big and immediate to the following biased and random weights. Because it's reward is huge compared with other opponents of doing nothing.

Reward might be huge but by default if I understand correctly it uses weighted average to update parameters. But the weights in this average are from <-0.5, 0.5> centered_rank . So if there is only one good solution in this population it will be counted as 0.5 but the next one assuming for example population of size 100 will be counted as 0.49. That's why I said you could change the way those weights are updated so it gives this good solution higher importance.
Am I right?

It's not average. It's only based on
(R_positive_rank-R_negative_rank)/number_of_rewards, so the huge reward =
1, the tiny reward is 0.0000001. They are independent.
On 11 May 2017 at 19:22, Patryk Chrabaszcz<EMAIL_ADDRESS>wrote:

Reward might be huge but by default if I understand correctly it uses
weighted average to update parameters. But the weights in this average are
from <-0.5, 0.5> centered_rank . So if there is only one good solution
in this population it will be counted as 0.5 but the next one assuming for
example population of size 100 will be counted as 0.49. That's why I said
you could change the way those weights are updated so it gives this good
solution higher importance.
Am I right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/openai/evolution-strategies-starter/issues/9#issuecomment-300858409,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARFboFbmvTzAs32_hOB-s3yY0in5QaVvks5r40PegaJpZM4NW9SV
.


Mention support for RFC 3339

Add a similar note/link to RFC 3339 here:
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to#specify-date-format
And here:
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-converters-how-to

Add a similar small/non-obtrusive note/link to RFC 3339 here:
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to#specify-date-format
And here:
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-converters-how-to

Can we add the links to these other docs too? Or maybe, cross-link to our DateTime concept doc to increase its visibility/discoverability. We want folks to be able to understand if and how well our DateTime serialization support fits with ISO 8601 and RFC 3339.


Update dependencies to kubernetes-1.9.0

Resolves #1610
As usual, review individual commits and skip the commit with vendoring deps.
Manual changes:

make conflicting dependencies in-sync with k8s.io/apiserver and k8s.io/kubernetes
switch to runtime.Object.DeepCopy()
follow-up on admission plugins refactoring
etcd/apiserver config changes

//TODO: we have copied some k8s.io/kubernetes code to our codebase (to avoid depending on entire k8s.io/kubernetes repo), in a follow-up PR it would be nice to check if there were any changes upstream.

@arschles the CI log is full of messages like
E1219 22:27:11.688959      68 controller_instance.go:1611] ServiceInstance "test-namespace/test-instance": Failed to update status: Operation cannot be fulfilled on serviceinstances.servicecatalog.k8s.io "test-instance": the object has been modified; please apply your changes to the latest version and try again

Not entirely clear which change caused this, but I suspect there's something wrong with resourceVersion/generation properly set after DeepCopy().

The final error
==4456==ERROR: ThreadSanitizer failed to allocate 0x80000 (524288) bytes of DenseSlabAllocator (error code: 12)

FATAL: ThreadSanitizer CHECK failed: ./gotsan.cc:6532 "((0 && "unable to mmap")) != (0)" (0x0, 0x0)

is "interesting" tho :)

Kicked travis to see if this memory thing is consistent. What could be doing that requires so much memory?

There's definitely some kind of massive memory leak locally for me. I had 4gig+ of memory used at one point.

Current guess involves the embedded etcd. The integration test has about a 1000 open connections before it just hangs.
output of lsof is filled with
integrati 16208 16264             root   12u     IPv4           31705855      0t0        TCP localhost:43420->localhost:2379 (ESTABLISHED)
...
integrati 16208 16264             root  904u     IPv4           31722577      0t0        TCP localhost:46726->localhost:2379 (ESTABLISHED)

etcd should be shut down at the end of each test.
On Wed, Dec 20, 2017 at 3:45 PM Morgan Bauer<EMAIL_ADDRESS>wrote:

Current guess involves the embedded etcd. The integration test has about a
1000 open connections before it just hangs.
output of lsof is filled with
integrati 16208 16264             root   12u     IPv4           31705855      0t0        TCP localhost:43420->localhost:2379 (ESTABLISHED)
...
integrati 16208 16264             root  904u     IPv4           31722577      0t0        TCP localhost:46726->localhost:2379 (ESTABLISHED)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-incubator/service-catalog/pull/1633#issuecomment-353215689,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aezx8OBSimmhbbLwEIMLh3A5vjmQkOGQks5tCZwfgaJpZM4RGyuz
.

etcd should be shut down at the end of each test.
@n3wscott As in it is not already, or as in it is failing to do so?

That button should really be bright red.

The log messages about failing updates I wrote about in https://github.com/kubernetes-incubator/service-catalog/pull/1633#issuecomment-352906819 seems to be caused https://github.com/kubernetes-incubator/service-catalog/issues/1639 and they shouldn't fail the build.
So the main issue with the Travis build seems to be caused by crashing etcd.

Tried bumping etcd and grpc versions (to see if it will perform better), but found the same issue with watch as reported in https://github.com/kubernetes/kubernetes/pull/57480#issuecomment-353389046. After this Kubernetes PR is fixed, we can bump our dependencies as well.

@MHBauer Apparently bumping an etcd version helped to fix the Travis CI build, but as I mentioned above there is some issue with watch introduced in this version of etcd or grpc, so I would wait for the fix.
Alos, the fact that our CI still passes suggests that we don't properly test watch functionality?


gotestsum: 1.6.2 -> 1.6.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/gotestyourself/gotestsum/releases.
meta.description for gotestsum is: "A human friendly go test runner"
meta.homepage for gotestsum is: "https://github.com/gotestyourself/gotestsum"
meta.changelog for gotestsum is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/hb2qi4hy1m99ha81bchk7fc3ibp69v9k-gotestsum-1.6.3/bin/gotestsum passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 1.6.3 with grep in /nix/store/hb2qi4hy1m99ha81bchk7fc3ibp69v9k-gotestsum-1.6.3

found 1.6.3 in filename of file in /nix/store/hb2qi4hy1m99ha81bchk7fc3ibp69v9k-gotestsum-1.6.3

directory tree listing: https://gist.github.com/cde35e67c30d07cfba5db9d21f41d371

du listing: https://gist.github.com/ef3ee964e03575f9e68a1d19c87367e8

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

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
gotestsum

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/hb2qi4hy1m99ha81bchk7fc3ibp69v9k-gotestsum-1.6.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix 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 gotestsum https://github.com/r-ryantm/nixpkgs/archive/8eb2dad84562eae38592cd4e00d9c6a953b608ba.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hb2qi4hy1m99ha81bchk7fc3ibp69v9k-gotestsum-1.6.3
ls -la /nix/store/hb2qi4hy1m99ha81bchk7fc3ibp69v9k-gotestsum-1.6.3/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.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gotestsum

Maintainer pings
cc @endocrimes @kalbasit for testing.

Result of nixpkgs-review pr 118059 run on x86_64-linux 1

1 package built:

gotestsum


Add more specs

@olimorris thanks for your contributions. I tried to make it work on my project but I failed 😞  I spent a day trying to find the issue but didn't managed. So I'm going to provide you examples, hope this helps 🙂
There is an issue running :lua require('neotest').run.run() from line spec/nested/basic_spec.rb:17
test result doesn't match expected result

running :lua require('neotest').run.run(vim.fn.expand('%')) from spec/class_method_spec.rb won't get expected result

Hey @alxekb. Firstly, thanks so much for the pull request. Appreciate you taking the time to do it. Really, really helpful to have that alongside an issue.
I think we've actually just addressed all of these issues in this commit. I've run your tests and they all work as expected. Can you give it a try and feedback?

@olimorris Yaay it works! 😃
Thanks a lot! It's a pleasure to use it!
🔥 🔥 🔥

Woooop 🎉 . Great to hear. I think the latest changes have made the adapter more robust as we're using file paths and line numbers. Should be pretty difficult to break it now 😄 .


set-injection-properties RuntimeError

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
When using
session.tui.define.injections(
    "set-injection-properties", ....)

in pyfluent the following error is given, whilst the command runs without error in pyconsole

The below command causes the error
session.tui.define.injections(
    "set-injection-properties",
    "injection-0",
    "injection-0",
    "no",
    "no",
    "no",
    "inlet",
    "()",
    "no",
    "yes",
    "yes",
    "yes",
    10,
    0.15,
    "no",
    "no",
    "no",
    "no",
    5e-6,
    1.13,
    0.05)

📝 Steps to reproduce

run interactive pyconsole and pyfluent sessions
run following commands in each session, using the attached mesh
injections_bug.zip;

solver.tui.file.read_case("oil_separator.msh.h5")

solver.tui.define.operating_conditions.gravity("Yes", 0, -9.81, 0)
solver.tui.define.models.viscous.ke_realizable("yes")
solver.tui.solve.set.p_v_coupling(20)

solver.tui.define.injections(
    "create-injection",
    "injection-0",
    "no",
    "yes",
    "surface",
    "no",
    "inlet",
    "()",
    "no",
    "yes",
    "yes",
    "yes",
    10,
    0.15,
    "no",
    "no",
    "no",
    "no",
    0.0001,
    1,
    0.2,
)

solver.tui.define.injections(
    "set-injection-properties",
    "injection-0",
    "injection-0",
    "no",
    "no",
    "no",
    "inlet",
    "()",
    "no",
    "yes",
    "yes",
    "yes",
    10,
    0.15,
    "no",
    "no",
    "no",
    "no",
    5e-6,
    1.13,
    0.05)

💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
241
🐍 Which Python version are you using?
3.10
📦 Installed packages
absl-py==1.4.0
ansi2html==1.8.0
ansys-api-fluent==0.3.15
ansys-api-platform-instancemanagement==1.0.0
-e git+https://github.com/pyansys/pyfluent.git@1aef1fff898e7accca708ad9a9348b00bd834f24#egg=ansys_fluent_core
-e git+https://github.com/ansys/pyfluent-visualization.git@2543ceae90aa42ed6625845946190f027fd472f5#egg=ansys_fluent_visualization
ansys-platform-instancemanagement==1.1.2
asttokens==2.2.1
astunparse==1.6.3
backcall==0.2.0
bcrypt==4.0.1
cachetools==5.3.1
certifi==2023.7.22
cffi==1.15.1
charset-normalizer==3.2.0
click==8.1.6
colorama==0.4.6
contourpy==1.1.0
cryptography==41.0.3
cycler==0.11.0
dash==2.12.0
dash-bootstrap-components==1.4.2
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
decorator==5.1.1
docker==6.1.3
et-xmlfile==1.1.0
executing==1.2.0
Flask==2.2.5
flatbuffers==23.5.26
fonttools==4.42.0
gast==0.4.0
google-auth==2.22.0
google-auth-oauthlib==1.0.0
google-pasta==0.2.0
grpcio==1.57.0
h5py==3.9.0
idna==3.4
imageio==2.31.1
importlib-metadata==6.8.0
ipython==8.14.0
itsdangerous==2.1.2
jedi==0.19.0
Jinja2==3.1.2
joblib==1.3.2
kaleido==0.2.1
keras==2.13.1
kiwisolver==1.4.4
libclang==16.0.6
lxml==4.9.3
Markdown==3.4.4
MarkupSafe==2.1.3
matplotlib==3.7.2
matplotlib-inline==0.1.6
nest-asyncio==1.5.7
numpy==1.24.3
oauthlib==3.2.2
openpyxl==3.1.2
opt-einsum==3.3.0
packaging==23.1
pandas==2.0.3
paramiko==3.3.1
paramiko-expect==0.3.5
parso==0.8.3
pickleshare==0.7.5
Pillow==10.0.0
platformdirs==3.10.0
plotly==5.16.0
pooch==1.7.0
prompt-toolkit==3.0.39
protobuf==3.20.3
psutil==5.9.5
pure-eval==0.2.2
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.21
Pygments==2.16.1
PyNaCl==1.5.0
pyparsing==3.0.9
PySide6==6.5.2
PySide6-Addons==6.5.2
PySide6-Essentials==6.5.2
python-dateutil==2.8.2
python-pptx==0.6.21
pytz==2023.3
pyvista==0.41.1
pyvistaqt==0.11.0
pywin32==306
PyYAML==6.0.1
QtPy==2.3.1
requests==2.31.0
requests-oauthlib==1.3.1
retrying==1.3.4
rsa==4.9
scikit-learn==1.3.0
scipy==1.11.1
scooby==0.7.2
seaborn==0.12.2
shiboken6==6.5.2
six==1.16.0
stack-data==0.6.2
tenacity==8.2.3
tensorboard==2.13.0
tensorboard-data-server==0.7.1
tensorflow==2.13.0
tensorflow-estimator==2.13.0
tensorflow-intel==2.13.0
tensorflow-io-gcs-filesystem==0.31.0
termcolor==2.3.0
threadpoolctl==3.2.0
traitlets==5.9.0
typing_extensions==4.5.0
tzdata==2023.3
urllib3==1.26.16
vtk==9.2.6
wcwidth==0.2.6
websocket-client==1.6.1
Werkzeug==2.2.3
wrapt==1.15.0
xgboost==1.7.6
XlsxWriter==3.1.2
zipp==3.16.2

@millerj97 Presumably this is possible through the solver settings API? To verify, we can try running it in PyConsole with journaling on. This will help us to prioritise the issue.
@mkundu1 it there some kind of generic issue here?

@seanpearsonuk  bug has been reported for tui injection commands not being converted to py commands. Will update this issue once the defect has been resolved.

@millerj97 any update on this?

@seanpearsonuk the defect reported for this issue is still active with some updated comments, I will forward to you separately

Fluent issue remains open as of now


Update the AJAX validation docs wih code that works for recent Django

Closes #516

Current coverage is 95.88%

Merging #523 into dev will not affect coverage as of cdc20e9

@@              dev    #523   diff @@
=====================================
  Files          23      23
  Stmts        2282    2282
  Branches      207     207
  Methods         0       0
=====================================
  Hit          2188    2188
  Partial        45      45
  Missed         49      49

Review entire Coverage Diff as of cdc20e9

Powered by Codecov. Updated on successful CI builds.


Reversing Linked List Recursively

Description 📜
Create Detailed Documentation of reversing a Linked List Recursively
Fixes #5989

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] DSA

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@nimisha-yadav please review this Pull Request.

@nimisha-yadav please re review


support groups property

Fixes #22082
Ref proposal-regexp-named-groups

We also need to convert  esnext.promise to es2018.promise, since it made the ES2018 release. @YuichiNukiyama do you want to pick that change up as well?

@mhegazy
I see. I'll try it!


MGMT-15869: Added a MachineConfig to set core password

Instead of a service that uses usermod to set the core pass (which doesn't work after 4.14 cluster installation completion), added a MachineConfig to set the core password using an ignition config.

PR looks good. will this also work with OCP version prior to 4.14?

Yes, this solution should work on older versions: https://access.redhat.com/solutions/7010657
But anyway, the appliance is supported only for ocp >= 4.14: https://github.com/openshift/appliance/blob/34b3bab8b331c4dc091a8cf112df2e163a934be7/pkg/consts/consts.go#L5


Kyuubi can't cancel the app that the running queue has no resource until user kill manually

1. Describe the bug
If the queue that you submmit the app through kyuubi that has no resource, the app will always stay in a state of ACCEPTED until you kill manually.
The yarnApplicationState: ACCEPTED: waiting for AM container to be allocated, launched and register with RM.
2. Environments
yarn: 2.9.2
kyuubi: 1.1.0
2.1 Versions

Kyuubi

[x] 1.1.0
[ ] 1.0.3
[ ] 0.8.x and earlier

Spark

[ ] 3.1.x
[ ] 3.0.x
[ ] 2.4.x and earlier

2.2 Kyuubi Configurations
2.3 Spark Configurations
3. Steps to reproduce
3.1 Operations
3.2 Expected behavior

3.3 Actual behavior
4. Additional context
4.1 Log of the server
4.2 Log of the corresponding engine

So if ACCEPTED stages take longer than kyuubi.session.engine.initialize.timeout and kyuubi doesn't kill those apps. They will take resources when the queue is free and live for a long time on YARN cluster. I think this is a bug.

@zhang1002 Are you still working on this?

If no one else following can assign it to me.

@simon824 are you willing to work on this？

@simon824 are you willing to work on this？

yep


fix: wagmi siwe reconnect on refresh

Description
Fix wagmi siwe not reconnecting on page refresh and re-enable test.
Type of change

[ ] Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist

[ ] Code in this PR is covered by automated tests (Unit tests, E2E tests)
[ ] My changes generate no new warnings
[ ] I have reviewed my own code
[ ] I have filled out all required sections
[ ] I have tested my changes on the preview link
[ ] Approver of this PR confirms that the changes are tested on the preview link

GOD BLESS, FINALLY! 🥇 this SIWE/SIWX thing did cost me like 4+ days of headache and lost time, but as long as it is fixed, ( i will give an update on how it went ) - everyone is happy.


Upgrading Version for Computer

https://github.com/tchasinga/Setup-first-mobile/assets/121050688/4467f907-1429-4350-918d-3858f3efae39
NB : I've made a video presentation of my project , so that's mean before for you to make any modification or Code review
I need you to watch that for 4 minutes  , it will really be Useful for you,
And I've already made the Important Updating that will notice
Project requirements
IMPORTANT NOTE: For each Microverse project, you need to create a separate pull request. Read how to work with multiple pull requests in your one repository in the most efficient way.
You need to make sure that your desktop version looks like the one in the Figma design template that you chose. We include a screenshot of Template 1 below for reference, but you should use the template that you chose.
IMPORTANT NOTE some Figma design templates include two input fields (for first name and last name) in the desktop version and one input field (for full name) in the mobile version (look for those cases in Contact me or Get in touch sections). Please ignore this part of the design template and use only one input for the full name for all versions.
Desktop
Use media queries in your CSS file to make your desktop version look like the template you selected (Desktop: >=768px).
In order to lay out the elements on the page you should use Grid and Flexbox.
You don't need to implement any functionality that requires JavaScript.
You must replicate the design as much as possible (e.g., font, colors, images, text, margins) using the info from the Figma templates.

Dear code viewer I've upload all of the Important requirements, and this is my last opportunity to move ahead because I don't have even 'EXTRA-REQUEST' , so please APROVE MY PROJECT


Add sshkey with root user

Right now https://bugzilla.redhat.com/show_bug.cgi?id=1956739 blocker
for us to enable MCO. This patch we will revert it as soon as it is
fixed on openshift side?

/close


session_state is lost on silent refresh token renewal

I am trying to use the silent refresh feature with session state management, but run into the following issue:
I have very short access token lifetime (5min). When oidc-client-ts (successfully, I might add) refreshes the access token using the refresh token, it seems to clear the session_state field of User. This leads to session management not working when I reload the page, as now session_state is null.
Steps to reproduce:

Set up a client with monitorSession: true, short access token lifetimes and refresh tokens
Log in without any previous state
Observe that the session mgmt iframe is loaded (via the debug log for example)
Wait for silent refresh token renewal
Reload the page
Observe that no login attempt is made (since there is still a valid access token in sessionStorage)
Observe that the session mgmt iframe is not loaded (since session_state is now null)
This can also be verified by checking the content of sessionStorage

The user profile gets updated in the refresh flow as well as during the initial signin. See https://github.com/authts/oidc-client-ts/blob/74a03ccb8ef998b1bdb5bc721c6b1352debe073a/src/ResponseValidator.ts#L85
Maybe you need something like we do for the scope? See https://github.com/authts/oidc-client-ts/blob/main/src/ResponseValidator.ts#L78-L79

Does the MR #570 fix this for you?


fix: [PIPE-18919]: correct project details for import yaml test

Describe your changes
correct project details for import yaml test
Comment Triggers

PR Check triggers

Build: trigger build
Sub Category Field Check: trigger subcategoryfieldcheck
gitleaks: trigger gitleaks

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

trigger build


Normalize KMS key ID validation

Following up from #2397, this:

Normalizes how key IDs are validated for KMS calls.
Adds key ID validation to all KMS calls that were missing key ID validation.

I also made sure that each method accepts the same types of key IDs (ex: aliases or no aliases) as the actual KMS APIs.

Looks great; thank you!


add glitch start to config

Adds glitch_start to pyproject.toml base, and uses it for start of glitch generation. Renames start and stop parameters to train_start and train_stop for clarity.

You mean when loading in the triggers?  I don't think a days worth will cause issues, especially with the clustering we do, but good to keep in mind.


Can run rebar ct only once.

I have a project with a standard OTP structure. Main app is in apps/myapp.
My CT are in apps/myapp/test.
When I run a simple CT file:
$ rebar ct skip_deps=true
==> myapp (ct)
DONE.
Testing apps.myapp: TEST COMPLETE, 1 ok, 0 failed of 1 test cases

Then a log directory gets created in apps/myapp/logs which contain all CT results.
However, when I run the tests again I get:
$ rebar ct skip_deps=true
==> myapp (ct)
ERROR: ct_run -noshell -pa "/Users/roberto/workspace/myapp/apps/myapp/ebin" "/Users/roberto/workspace/myapp/deps/edown/ebin" "/Users/roberto/workspace/myapp/deps/rabbit_common/ebin" "/Users/roberto/workspace/myapp/deps/meck/ebin" "/Users/roberto/workspace/myapp/deps/bear/ebin" "/Users/roberto/workspace/myapp/deps/lager/ebin" "/Users/roberto/workspace/myapp/deps/setup/ebin" "/Users/roberto/workspace/myapp/deps/jiffy/ebin" "/Users/roberto/workspace/myapp/deps/amqp_client/ebin" "/Users/roberto/workspace/myapp/deps/folsom/ebin" "/Users/roberto/workspace/myapp/deps/netlink/ebin" "/Users/roberto/workspace/myapp/deps/afunix/ebin" "/Users/roberto/workspace/myapp/deps/parse_trans/ebin" "/Users/roberto/workspace/myapp/deps/ranch/ebin" "/Users/roberto/workspace/myapp/deps/cowlib/ebin" "/Users/roberto/workspace/myapp/deps/goldrush/ebin" "/Users/roberto/workspace/myapp/deps/exometer/ebin" "/Users/roberto/workspace/myapp/deps/recon/ebin" "/Users/roberto/workspace/myapp/deps/cowboy/ebin" "/usr/local/bin/rebar/rebar/ebin" "/usr/local/bin/rebar" "/Users/roberto/workspace/myapp/."   -name<EMAIL_ADDRESS>-logdir "/Users/roberto/workspace/myapp/apps/myapp/logs" -env TEST_DIR "/Users/roberto/workspace/myapp/apps/myapp/test"    -dir test >> /Users/roberto/workspace/myapp/apps/myapp/logs/raw.log 2>&1 failed with error: 2 and output:

ERROR: ct failed while processing /Users/roberto/workspace/myapp/apps/myapp: rebar_abort

If I delete the apps/myapp/logs directory, I can re-run my tests with no problem.
logs/raw.log contains:
--- Test run on 2015/04/22 15:03:18 ---
Converting "/Users/roberto/workspace/myapp/." to "/Users/roberto/workspace/myapp" and re-inserting with add_patha/1

Common Test v1.10 starting (cwd is /Users/roberto/workspace/myapp/apps/myapp)

Common Test: Running make in test directories...

CWD set to<EMAIL_ADDRESS>
TEST INFO: 1 test(s), 1 case(s) in 1 suite(s)

Testing apps.myapp: Starting test, 1 test cases
Testing apps.myapp: TEST COMPLETE, 1 ok, 0 failed of 1 test cases

=ERROR REPORT==== 22-Apr-2015::15:03:19 ===
Error in process <0.37.0> on node<EMAIL_ADDRESS>with exit value: {{badmatch,["ct_run","test@robertos","local","2015-04-22_14","59","52"]},[{ct_logs,'-sort_ct_runs/1-fun-0-',2,[{file,"ct_logs.erl"},{line,1912}]},{lists,sort,2,[{file,"lists.erl"},{line,967}]},{ct_logs,make_all_suites_index,1,[{file...

Test run crashed! This could be an internal error - please report!

{{badmatch,["ct_run","test@robertos","local","2015-04-22_14","59","52"]},
 [{ct_logs,'-sort_ct_runs/1-fun-0-',2,[{file,"ct_logs.erl"},{line,1912}]},
  {lists,sort,2,[{file,"lists.erl"},{line,967}]},
  {ct_logs,make_all_suites_index,1,[{file,"ct_logs.erl"},{line,2232}]},
  {ct_logs,close,2,[{file,"ct_logs.erl"},{line,178}]},
  {ct_util,loop,3,[{file,"ct_util.erl"},{line,471}]}]}

When i run the command with ct_run, no issues there:
$ ct_run -suite myapp_SUITE
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Common Test v1.10 starting (cwd is /Users/roberto/workspace/myapp/apps/myapp)

Eshell V6.4  (abort with ^G)
(ct@robertos)1>
Common Test: Running make in test directories...
Recompile: myapp_SUITE

CWD set to<EMAIL_ADDRESS>
TEST INFO: 1 test(s), 1 case(s) in 1 suite(s)

Testing apps.myapp.myapp_SUITE: Starting test, 1 test cases
Testing apps.myapp.myapp_SUITE: TEST COMPLETE, 1 ok, 0 failed of 1 test cases

Updating /Users/roberto/workspace/myapp/apps/myapp/index.html... done
Updating /Users/roberto/workspace/myapp/apps/myapp/all_runs.html... done

Best,
r.

This sounds like an issue with ct_run more than rebar itself. The error message Test run crashed! This could be an internal error - please report! comes from CT. This might need to go to erlang-bugs instead of here?

Yea, I experience this with rebar as well but not with rebar3, where we don't use ct_run.

Ok, I've reported this behavior here.


run_Testing.py issues

First of all, I have to say running the script isn't very intuitive. The comments and docs help a bit, but it still took me some re-reads to figure it out.
Before continue reading, do I need to change all "# Setup ROSCO testing parameters"? If so, it should be made clearer.
If they have to be changed by the user, it's unclear what each parameter is and where should the user point them. Both 'FAST_exe' and 'wind_dir' are defined as "OpenFAST executable path"
On to the issues I'm having
I'm trying to run the "run_Testing.py" to test whether the dlls I'm compiling with Visual Studio and ifort are ok (see rosco issue 66)
I have setup ROSCO_toolbox using the guide. I set up the "run_Testing.py" script like so:
    # ---- Define test type ----
    turbine2test = 'NREL-5MW'   # IEA-15MW or NREL-5MW
    testtype     = 'lite'       # lite, heavy, binary-comp, discon-comp

I of course put my dlls to run testing on in the script-specified directory ('../ROSCO/build/libdiscon.')
The following is shown x4 (each time a different wind input file):
ofTools in ROSCO_toolbox...
EXECUTING TurbSim
Executable:      turbsim
Run directory:   /scratch/dzalkind/ROSCO_testing\wind\IEA-15_heavy
Input file:      C:\scratch\dzalkind\ROSCO_testing\wind\IEA-15_heavy\heavy_test_NTM_U5.000000_Seed971231.0.in
Exec string:     ['turbsim', 'C:\\scratch\\dzalkind\\ROSCO_testing\\wind\\IEA-15_heavy\\heavy_test_NTM_U5.000000_Seed971231.0.in']
ofTools in ROSCO_toolbox...

Then the process exits with "No such file or directory: 'turbsim'"

Hi @ghylander,
Please keep in mind that this script is written to provide an example of how to run some of the testing capabilities in the ROSCO toolbox, and to provide a template by which to write your own scripts. It was not written as a "click and run" script in the same way that the examples are done. It is good to know that this script might be useful as a "click and run" script - we will keep that in mind going forward and try to make this more generic.
Some tips to get things running on your end:

You should update the rt_kwargs found here for your setup. The current paths are setup for a specific user, so you will need to change them to be your own paths.
FAST_exe and turbsim_exe point to your executables. If you are in a conda environment and conda install openfast=3.0, you should simply be able to set these to openfast and turbsim. Otherwise, you should point specifically to the executables in <your_root>/OpenFAST/install/bin`
runDir and wind_dir point to the directories in which you would like to save your OpenFAST input/output files and turbsim files. comp_dir is the output directory for the comparison files.

I think this may be everything you need to specifically define, but perhaps there are some things I am missing.
Cheers,
Nikhar

Thank you very much for you replies Nikhar.
I'm ok with the script being a template, and i dont think that should be a
problem for other users. It just seemed like it was a click and run script,
or that thr user did not need to modify it much to run it.
I think if the script had comments similar to the ones in a DISCON.IN. file
it would be perfectly fine
I will try your indications and see if i'm able to run it that eay
El martes, 5 de octubre de 2021, nikhar-abbas @.***>
escribió:

Hi @ghylander https://github.com/ghylander,
Please keep in mind that this script is written to provide an example of
how to run some of the testing capabilities in the ROSCO toolbox, and to
provide a template by which to write your own scripts. It was not
written as a "click and run" script in the same way that the examples are
done. It is good to know that this script might be useful as a "click and
run" script - we will keep that in mind going forward and try to make this
more generic.
Some tips to get things running on your end:

You should update the rt_kwargs found here
https://github.com/NREL/ROSCO_toolbox/blob/95218beac3ddae18ed44925c2b31e158ce6a14b6/ROSCO_testing/run_Testing.py#L88
for your setup. The current paths are setup for a specific user, so you
will need to change them to be your own paths.
FAST_exe and turbsim_exe point to your executables. If you are in a
conda environment and conda install openfast=3.0, you should simply be
able to set these to openfast and turbsim. Otherwise, you should point
specifically to the executables in <your_root>/OpenFAST/install/bin`
runDir and wind_dir point to the directories in which you would like
to save your OpenFAST input/output files and turbsim files. comp_dir
is the output directory for the comparison files.

I think this may be everything you need to specifically define, but
perhaps there are some things I am missing.
Cheers,
Nikhar
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NREL/ROSCO_toolbox/issues/61#issuecomment-934644558,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARZDGCVJPAWE4KFLPR4L7GDUFM5IHANCNFSM5FLERMSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Gustavo Hylander Ruiz
g<EMAIL_ADDRESS>EnerOcean S.L.
Este mensaje y sus archivos adjuntos pueden contener información
confidencial y están dirigidos exclusivamente a su destinatario. Le
informamos que la legislación vigente prohíbe el uso, divulgación o copia
del contenido del presente mensaje por persona distinta del destinatario
sin autorización previa. Si Ud. no es el destinatario de este mensaje o lo
ha recibido por error, le agradeceríamos que nos lo comunicara y que
procediera a destruirlo. Además le recordamos que no está autorizado a
usar, imprimir, copiar o difundir este mensaje. Según la LOPD le informamos
que sus datos personales se incorporan a un fichero cuyo titular es  ,
ENEROCEAN S.L para la correcta relación comercial.  Ud. dispone de 30 días
para manifestar su negativa al tratamiento; de no pronunciarse a tal efecto
se entenderá por otorgado su consentimiento. Ud. puede ejercitar los
derechos accesos, rectificación, cancelación y oposición en los términos
establecidos en la normativa vigente dirigiéndose a Bulevard Louis Pasteur,
nº5, P2, Oficina 321, Málaga o email: @.***

comp_dir is the directory that any comparison outputs and plots will be saved to. The directories for the binaries and DISCON.IN files are the inputs themselves.
I'm not sure exactly why you are receiving these Cannot plot... errors. Something is not working in this try statement here. Can you check your OpenFAST input deck to make sure those channels are specified as output channels?

After having a comprehensive look at the source code, I checked where the pdf files should be generated and I found them. This leads me to believe the problem is related to matplotlib opening plot windows and the OS where the script is run, rather than a problem with the toolbox.
I will continue modifying the file to make it a bit easier to setup for use


UNPIVOT listed as not supported

I've been studying this document to figure out what functionality is and isn't supported in the TDS endpoint, UNPIVOT is listed as unsupported, but in reality it works. Would be good to get this document updated with the actual supported functionality so we know what we can use in our migration from DES.

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

ID: 5c8687f6-52bf-533a-0b77-cdd99433375b
Version Independent ID: f9c5f9ca-372a-1b87-6faf-aa354aeda81b
Content: How Dataverse SQL Differs from Transact-SQL - Power Apps
Content Source: powerapps-docs/developer/data-platform/how-dataverse-sql-differs-from-transact-sql.md
Service: powerapps
Sub-service: dataverse-developer
GitHub Login: @mayadumesh
Microsoft Alias: pehecke

Thanks for your comment, @cameron-interactive. This issue has been assigned to the doc author for review.

@cameron-interactive Checking with the feature PM about new command support.

@cameron-interactive Still waiting on PM. He is looking into it.

@cameron-interactive PIVOT and UNPIVOT are supported. Will update the doc soon. Thanks for pointing this out :)


Update stars demo files and kubedns

These files are used across all of the demos.
I've tested against vagrant, and will at least need to do one of AWS or GCE to make sure it doesn't break the other cloud providers.

OK I've tested this works.  @tomdee could you give a look?

Looks very nice