(doc) Server example

In the doc and on github there is a clear example of how to connect as a client. Adding a server example could be useful.
Reasoning: The first time I tried beast I got scared off and went with a more works out of the box solution.

You mean like synchronous and asynchronous HTTP and WebSocket servers? These?
https://github.com/vinniefalco/Beast/blob/master/examples/http_sync_server.hpp
https://github.com/vinniefalco/Beast/blob/master/examples/http_async_server.hpp
https://github.com/vinniefalco/Beast/blob/master/examples/websocket_async_echo_server.hpp
https://github.com/vinniefalco/Beast/blob/master/examples/websocket_sync_echo_server.hpp
These examples have been in the project for over a year! Were you not able to find them?

These are really good examples. The difference with the example in the readme(frontpage of the repository @ usage) is that connecting as a client is a very minimal example and these don't feel like that. I do not want to nag, but the first thing I expected to see when reading the readme is such an example. It might seem like I'm stupid, but I just want to give feedback using my experience with the library.

Beast doesn't really aim to offer an "out of the box" server solution, it only aims to provide the low level building blocks of HTTP and WebSocket. There are so many ways to implement a server each with its own tradeoffs, that I couldn't possibly write it a single particular way that would satisfy everyone in a general purpose library. The examples intentionally show a synchronous client, since that results in the shortest code!

By out of the box I meant 'clear where to start'. I do not expect beast to provide a complete framework. However, I feel like the examples you provided look a bit like such a framework, while in the basics accepting a client is very simple with beast.

accept client with boost::asio
do handshake with beast
send/receive with beast
This gives users a clear view of what to expect. And if they want to do more they can find it in the documentation. I think the examples try to explain too much at once.

Oh! So maybe, you're saying - I could add a simple HTTP server and WebSocket server example which is synchronous and handles only one connection? That would fit into a slightly larger main than the current client examples.

Yes that is what I mean. I think that would help a lot of new users.

I would create an example myself, but to be honest I currently am myself one of those users who would benefit :)

@surgura Please consider participating in the Boost formal review for Beast, which starts on July 1st. All you need to do is sign up to the Boost developers mailing list (https://lists.boost.org/mailman/listinfo.cgi/boost) ahead of time and listen for the announcement from the review manager. Your review is vital to the health and success of the library - whether you have positive things to say, or negative things to say, feedback is the only way for Beast to get better!

example/server-framework is a comprehensive, working example of a server.

I do not expect beast to provide a complete framework.

Beast provides a complete framework now :)


low accuracy

With the same bounndry,i find different location results useing the panzoom api,there are obvious changes.

Please give us something to work with. I have no idea what you are talking about

My english is poor,i speak chinese.核心代码:zoomTo(level,boundry),第一次我调用zoomTo(12,{x:12,y:12}),第二次我调用zoomTo(12,{x:12,y:12}),传入相同的位置,但是视图有明显的变化.为什么两次传入的位置一样,但是定位不一样?
zoomTo = (boundary) => {         let draw = this.state.viewportType == 's' ? this.sViewport : this.hViewport;         let max = this.state.maxY;         draw.zoom(1).animate().zoom(12, { x: boundary.x, y: max - boundary.y })     }

zoomTo is not a function in the library. We only have zoom(). If you pass 12 both times, the second time nothing should happen.

Maybe you should draw grid lines firstly,zoom(12,{x:100,y:100}) and repeat,the second time you can find differences.

Maybe you should draw grid lines firstly,zoom(1).animate().zoom(12,{x:100,y:100}) and repeat,the second time you can find differences.

If  i am free,i will provide a demo link.


Extended benchmarks

Hi,
Just wanted to let you know that I've been benchmarking various Python LAP solving implementations.
https://github.com/cheind/py-lapsolver/tree/develop#benchmarks
Until recently, the solver from lapsolver (my project), was actually the fastest among the tested ones. However, after I've discovered your project, it seems like that lapjv beats lapsolver except for small matrix cases. Well done!

Hi Christoph,
I'm happy to hear that. Thanks for letting me know.
I've benchmarked earlier against some other implementations, which you might want to add: pymatgen, centrosome.
Best,
Tomas

https://github.com/raphaelreme/pylapy has a nice benchmark as well!

@gatagat thanks for noting!


Run the release Github Action only in the main repo, not in forks

Why
I have a fork of this repo which I keep on updating. Every time I do that I get an email from Github:

[mccartney/scapegoat] Release workflow run
Release: All jobs have failed

The run fails with this error message:

gpg: no valid OpenPGP data found.

No surprise my fork shouldn't be able to publish a snapshot release of the library.
What
Attempt at having the action run only in the main repo.

@mwz can you have a look please?
(I cannot assign you as a reviewer)


PUT: Method not allowed on decisions

https://api-dev.col.plus/decision
code: 405
message: "HTTP 405 Method Not Allowed"

it needs the key in the resource path: https://api-dev.col.plus/decision/1234

Sorry, my bad


Add GoogleAnalyticsReportingToPostgresOperator & dimensionFilterClauses option

Uses the same code but outputs to a postgres db instead of s3 by leveraging the pandas.to_sql function

I like it +1
I guess when I change the Hook to MySQL it will work out


Define dimensions parameter when the objective function receives argument in NamedTuple format

Hi there,
My objective function receives arguments in NamedTuple format. I can't change this because this is the requirement in the project I'm working on. I also want to pass a fixed hyperparameters set that I don't want to change. For example:
def objective(var_args, fixed_args):
    return var_args.foo * var_args.bar * fixed_args.foo1 * fixed_args.bar2

How can I define and pass the dimensions for Optimize and gp_minimize?
Thank you

Opening a new issue is better than hijacking old, irrelevant issues, but please note, an issue tracker is not a discussion forum.

You can wrap your objective() with another function that wraps it and takes as input the structure scikit-optimize provides.
Such as:
from collections import namedtuple

import skopt

ParamsTuple = namedtuple('ParamsTuple', ['foo', 'bar', 'foo1', 'bar2'])

dimensions = skopt.Space([skopt.space.Integer(...), ...])

@skopt.util.use_named_args(dimensions)
def my_objective(foo, bar, foo1, bar2):
    nt_params = ParamsTuple(foo, bar, foo1, bar2)
    assert hasattr(nt_params, 'foo')
    return objective(nt_params)

Look into skopt.utils.use_named_args.
If you want to pass some parameters as fixed values, just exclude them from, or set them when instantiating nt_params.
Hth,

Opening a new issue is better than hijacking old, irrelevant issues, but please note, an issue tracker is not a discussion forum.

You can wrap your objective() with another function that wraps it and takes as input the structure scikit-optimize provides.
Such as:
from collections import namedtuple

import skopt

ParamsTuple = namedtuple('ParamsTuple', ['foo', 'bar', 'foo1', 'bar2'])

dimensions = skopt.Space([skopt.space.Integer(...), ...])

@skopt.util.use_named_args(dimensions)
def my_objective(foo, bar, foo1, bar2):
    nt_params = ParamsTuple(foo, bar, foo1, bar2)
    assert hasattr(nt_params, 'foo')
    return objective(nt_params)

Look into skopt.utils.use_named_args.
If you want to pass some parameters as fixed values, just exclude them from, or set them when instantiating nt_params.
Hth,


Content repository tests for tree method

Coverage increased (+2.31%) when pulling 44cf0c3d9e71ac2d96f1bb1fad58e781734c29cf on CMS-22_ContentRepository_tests_for_tree_method into 255e5ce2f8c7145c65c1fa2d69876d016c5c0d89 on master.


Watch a YouTube video til the end

Am I missing something, or will this just work for gleam?
yt.player.exports.navigate("100%")

Yeah, there's ways to get around those sorts of forced video watches.
However, I don't plan on adding anything like this to the script.  Manipulating tasks like this comes with it the possibility of being banned.

Fair enough :)


update profile icons, add arbitration profile image

font icon equivalent: "fa fa-list-ul"
related to: https://github.com/ManageIQ/manageiq/pull/10152

@miq-bot add_label ui, enhancement

@h-kataria

@miq-bot assign @dclarizio


Home Page Redesigned

Related Issue
Closes #1163
Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

The PR title format you are using is causing an error in the workflow. Please follow the instructions in the README.md and change it accordingly.

@ShreyaDhiman24, there are still more things to be designed. For example, let the first two parts of the homepage be the same as the "Free-hits About" page. Then, there should be a section explaining all the features of the website. We need to discuss what we can add to that section.
Afterward, the "Most Used Tools" section should come, displaying only 8-12 tools with an "Explore More" button below it. We need to discuss and determine the specific tools to include, ensuring that the total does not exceed 8-12.
As of now, the design is not satisfactory, which is why we need to have a discussion and design accordingly.


Add community content videos

This pull request adds a new section called "Video cards" to the Contribute/index.yml file, containing three cards with video resources related to contributing and career development.
Main change:

Contribute/index.yml: Added a new section called "Video cards" with three cards containing video resources related to contributing and career development.

#sign-off


The last vector index must be an expression

is_vector_index wan't working correctly, it allowed using anything except vector variables as the last index, so you could do something like this (the error would be found on the C++ compiling phase):
DATA:
v is number vector

PROCEDURE:
display v:coso

In the process of fixing it I made a lot of changes. I deleted is_vector_index, split_vector now returns two parts (the vector and the index) and get_c_variable is simpler.

Awesome! Great that you could make it simpler. Merging it right now.
Thank you very much! :confetti_ball:


Generate jacoco aggregated test coverage report

Aggregated test coverage report will be generated in /target/coverage-report directory.

Found an issue. Hence closing this PR. Will send a separate PR with a fix.

Added with PR: #2326


fix nordbayern newsblock order

Newsblocks for police reports and normal reports have swapped places.
Also it fixes images.

gj @theScrabi !


consider breaking out query components into fragments

Could then have appropriate fragment parsers.
Case - issue fragment that would have core relevant information for an issue
Given multiple queries where having an issue nested, could then just include that single fragment + write a function to handle that part of the tree unpacking.

I always imagined the library would look something like this:
repo <- function(org, repo){
	query <- paste0("query customQuery{
   repository(owner: ", glue::glue('"{org}"'), ", name: ", glue::glue('"{repo}"'), ") {")

	return(query)
}

issues <- function(.data, ...){
	query <- 'issues(last: 100){
      nodes{
        title
        body
        author {
          login
        }
        number
        milestone {
          title
          number
        }
        state
        closed
        closedAt
        resourcePath
        url
        lastEditedAt
        editor {
          login
        }
        publishedAt
      }
      pageInfo {
        hasPreviousPage
        startCursor
      }
    }'

	new_query <- paste0(.data, query)

	class(new_query) <- append(class(new_query), "issues")

	return(new_query)
}

run <- function(.data, ...){
	query <- paste0(.data, ' } }')

	.api_url <- ghpm::api_url()
	#return(query)
	return(gh("POST ", query = query, .api_url = .api_url, .token = ghpm::get_token(.api_url)))
	# run graphql query and return results
}

And you could call it via:
repo(org = "metrumresearchgroup", repo = "rbabylon") %>% issues() %>% run()

So you could "build" out the query based on the info you need while still being syntactically simple instead of having distinct specific functions. Although doing this would require a big overhaul.


User GeoLocation in InlineKeyboardButton

Hi!
How i can get user location, using
markup = ReplyKeyboardMarkup(keyboard=[[KeyboardButton(text='Моё местоположение', request_location=True)]])
BUT in InlineKeyboardMarkup
in on_chat_message function ?

Haven't tried this myself, but this is what Bot API says about it. Basically, you /setinlinegeo in BotFather.


Added missing commas and fixed inconsistent indention

The first image shown under Relational Databases > JSON had syntax errors.

Hi @rothja - Would you be able to review or reassign this pull request? Thanks.

#assign:rothja I'll take a look at this. Thanks!

The following users don't have valid GitHub IDs, or are not collaborators on this repo: rothja i'll take a look at this. thanks!

@jasonreiche Sorry for taking so long to review. Your change fixes obvious bugs with the missing commas and the indentation looks great! Thank you! #sign-off

@rothja: I'm sorry - only the author of this article, @, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Get deadlocked occasionally...

Description
A worker thread is calling PythonContext.CreateBuiltinModule which locks PythonContext. Then it will call FunctionCode.LazyCompileFirstTarget where it tries to acquire _CodeCreateAndUpdateDelegateLock
PythonContext.cs
internal PythonModule GetBuiltinModule(string name) {
    lock (this) {
        PythonModule mod = CreateBuiltinModule(name);
        if (mod != null) {
            PublishModule(name, mod);
            return mod;
        }

        return null;
    }
}

FunctionCode.cs
internal void LazyCompileFirstTarget(PythonFunction function) {
    lock (_CodeCreateAndUpdateDelegateLock) {
        UpdateDelegate(function.Context.LanguageContext, true);
    }
}

A GC thread is executing the WeakRef's finalizer which calls FunctionCode.LazyCompileFirstTarget and locks _CodeCreateAndUpdateDelegateLock, then it will call PythonContext.DeleteIndex where it tries to acquire PythonContext.
PythonContext.cs
internal PythonDeleteIndexBinder/*!*/ DeleteIndex(int argCount) {
    if (_deleteIndexBinders == null) {
        Interlocked.CompareExchange(ref _deleteIndexBinders, new PythonDeleteIndexBinder[argCount + 1], null);
    }

    lock (this) {
        if (_deleteIndexBinders.Length <= argCount) {
            Array.Resize(ref _deleteIndexBinders, argCount + 1);
        }

        if (_deleteIndexBinders[argCount] == null) {
            _deleteIndexBinders[argCount] = new PythonDeleteIndexBinder(this, argCount);
        }

        return _deleteIndexBinders[argCount];
    }
}

Worker Thread

.
.
.

GC Thread

Thanks for the report. I don't see a reason why we couldn't use a different lock in PythonContext.DeleteIndex (as well as in GetIndex and SetIndex). Do you have a code sample code that could be used to reproduce the issue so I can set up a unit test?

Here's the sample code.
import xml.etree.ElementTree as ET
s = '<Data>' + ('1'*8192) + '</Data>'
elem = ET.fromstring(s)
result_len = len(ET.tostring(elem))
string_len = len(s)
result = str(result_len == string_len)

Thanks, was able to reproduce the deadlock with code like this:
var code = @"
import xml.etree.ElementTree as ET
s = '<Data>' + ('1'*8192) + '</Data>'
elem = ET.fromstring(s)
ET.tostring(elem)";

// retry to increase chance of deadlock
for (var i = 0; i < 100; i++) {
    Console.WriteLine(i);
    ScriptEngine eng = Python.CreateEngine();
    eng.SetSearchPaths(new List<string> { pathToLib });
    await Task.Run(() => eng.Execute(code));
}

Thanks for the quick fix!
Will the fix be included in 3.4 final release? It has been half a year since 3.4 beta1. When do you think 3.4 final would be ready?

Perfect! Thanks for the great work!


Client should show error/hint when trying to pull non-existent locale

Users get no output at all when they have a locale ID in their configuration file that doesn't exist in their project and try to use the pull command. We should print an error or a warning for each locale when this happens.

#85 should fix this


Connection error

Do you know why i get "Transport endpoint is not connected (107)" ?

Ok, works. Raspberry too far from sensor.


(iOS): Support for video mirror

Added flag mirrorVideo for iOS only to output mirrored video if set to true best for front camera
issue: #867 But for iOS only

@rad182 why did you close this?


RoeyBOT

URL
No response
How to reproduce the issue?
No response
Screenshot(s) or anything else?
No response
Which deployed environments do you see the issue in?
No response
What version numbers does this issue effect?
No response
Which browsers are you seeing this problem on?
No response

Gg
🙃


NBitcoin > 7.0.24 - BitcoinStream.ReadWrite(ref byte[]) does not work anymore

Hello beautiful devs,
Since NBitcoin > 7.0.24, it's not possible anymore to perform BitcoinStream.ReadWrite(ref byte[])
error CS0311: The type 'byte[]' cannot be used as type parameter 'T' in the generic type or method 'BitcoinStream.ReadWrite<T>(ref T)'. There is no implicit reference conversion from 'byte[]' to 'NBitcoin.IBitcoinSerializable'

Is it normal?

Nevermind, i found that PR pretty explicit about the reason: https://github.com/MetacoSA/NBitcoin/pull/1173


[WIP] Setting the entry assembly in the eexecution environment (used in the…

… console runner and VsTest runner

This doesn't yet work in the TDD.net runner, since that runner doesn't use the ExecutionEnvironment

Closing this since Fixie 2.0 no longer has AppDomain concerns and the test assembly is the entry assembly now.


[Genetics]: fix README logos

Description
Fix paths and alts for logos in the README file of the Genetics app.
Before:

After:

Issue: https://github.com/opentargets/ot-ui-apps/issues/261
Type of change

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

How Has This Been Tested?
You can visualize here the new version of the README file, correctly displaying the logos.

Hello @carcruz and @chinmehta!
I just learned about the Open Targets projects and decided to drop in a small contribution to get started. I moved the logos to the root of the repository to avoid duplication, since they are being used in both apps. If you believe a different kind of organization would be better suited to the project, please let me know and I'll make the necessary changes 🙂

Hello @raskolnikov-rodion, thanks for your PR.
Since most of this documentation is outdated, we need to delete most of this and re-write it again.
I recommend you help us with the typescript refactor that is ongoing. Here you can find more details. We aim to replace all JS code with TS. We look for small PRs (1 per file) and we usually review them in ~1 week.

@carcruz sounds good, I'll check it out. Thanks for the review!

@carcruz sounds good, I'll check it out. Thanks for the review!

Thanks a lot, please let me know if you need any help or guidance<EMAIL_ADDRESS>


Added option to ignore atmosphere check when respawning on a planet

The configuration option forcePlanetRespawn has been added and is intended to work alongside the allowPlanetRespawn to give more flexibility to respawning.
This references, and fixes issue #1192.

Seems like a neat option to have!  Thanks!


Any chance to get support/help to adapt for BR-6 counter?

There is a teardown on YT showing the same PCB just with a graphics display. https://www.youtube.com/watch?v=fNMOmk37HbM. Looks to me like another display, but the rest might be standard. Any chance?

I have never worked with the STC8A8K64D4 MCU so I can't support it.
Let me refer you to this answer: https://github.com/Gissio/radpro/issues/5#issuecomment-1666939961

I have never worked with the STC8A8K64D4 MCU so I can't support it.
But I can give you some hints as to what would need to be done (general hints, not support):

Follow the traces from the microprocessor to the board's devices (keyboard, display, battery, etc) and see what port connects to what device. A multimeter might help.
The 4-pin header is an SWD connector. Get a STLINK dongle, and attempt to download the firmware through it. Then use some disassembly tool to disassemble the firmware, and see how the code accesses the MCU internal devices (input/output ports, timers, ADCs, etc).
Then, follow the steps in https://github.com/Gissio/radpro/blob/main/docs/developers.md and customize the code for the BR-6.

This should make a nice project...

Thanks for the hints and the fast answer . I don't know this MCU neither and I a do only occasionally Arduino programs. Too bad. Nice device though. I have better chances to find the tube tick signal and add an Esp32 and write from scratch.Am 02.04.24, 02:20 schrieb Gissio @.***>:
I have never worked with the STC8A8K64D4 MCU so I can't support it.
But I can give you some hints as to what would need to be done (general hints, not support):
Follow the traces from the microprocessor to the board's devices (keyboard, display, battery, etc) and see what port connects to what device. A multimeter might help.
The 4-pin header is an SWD connector. Get a STLINK dongle, and attempt to download the firmware through it. Then use some disassembly tool to disassemble the firmware, and see how the code accesses the MCU internal devices (input/output ports, timers, ADCs, etc).
Then, follow the steps in https://github.com/Gissio/radpro/blob/main/docs/developers.md and customize the code for the BR-6.
This should make a nice project...
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


handeling push.on('notification') when app is in background in android

push.on('notification', function(data) {
// data.message,
// data.title,
// data.count,
// data.sound,
// data.image,
// data.additionalData
});
works when app is running
i receive notification and it works
but when i close app i receive notification but cant handle it . it just open the app when i click it .
how can i handle notification when app in in background in andorid ?

@GHR-Arash please read the docs:
https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#push-message-arrives-with-app-in-background
https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#background-notifications

  below is json i am sending to fcm using postman , i recive push notification both in foreground and background mode ,  but can handle it only app is foreground

    {
"notification": {
   "title": "Welcome To Push Notification App",
   "body": "This is body of push Notification Message",

   "sound":"default"
 },
 "sound":"default",
 "data": {
 	"content-available":"1",
   "score": "5x1",
   "time": "15:10",
   "sound":"default",
   "IsRecivedFromManager":"true"
 },
 "content-available":"1",
 "to" : "fCtqyTsgXaM:APA91bFyx5yLRPDzjkpKHk85V-8HQ28C6_RTHdv3RSyqxQ0p9bA02mc_GphoB2SZ8v5cW_PMzEyNzw1_ulL0YrxN74LwpHQD2xXxiyKW6xHjVr6RMIZuVigMjV9qiwHLd3DfFV0v6q5F",
  "priority":"high"
}

my js file
$ionicPlatform.ready(function () {

        // initialize
        $cordovaPushV5.initialize(options).then(function () {
            // start listening for new notifications
            $cordovaPushV5.onNotification();
            // start listening for errors
            $cordovaPushV5.onError();

            // register to get registrationId
            $cordovaPushV5.register().then(function (registrationId) {
                // save `registrationId` somewhere;
                window.localStorage.setItem("appToken", registrationId)
            })
        });

        // triggered every time notification received
        $rootScope.$on('$cordovaPushV5:notificationReceived', function (event, data) {

           console.log(data)

        });

        // triggered every time error occurs
        $rootScope.$on('$cordovaPushV5:errorOcurred', function (event, e) {
            // e.message
        });

@GHR-Arash so the plugin does not yet support FCM. Also, when you send the payload it should all be in data.
{
  "data": {
    "title": "Welcome To Push Notification App",
    "body": "This is body of push Notification Message",
    "sound":"default",
    "content-available":"1",
    "score": "5x1",
    "time": "15:10",
    "sound":"default",
    "IsRecivedFromManager":"true"
  },
  "to" : "fCtqyTsgXaM:APA91bFyx5yLRPDzjkpKHk85V-8HQ28C6_RTHdv3RSyqxQ0p9bA02mc_GphoB2SZ8v5cW_PMzEyNzw1_ulL0YrxN74LwpHQD2xXxiyKW6xHjVr6RMIZuVigMjV9qiwHLd3DfFV0v6q5F",
   "priority":"high"
}

thanks , now it is working . but how about when i close app ? i can handle push when in background , but when i close app i Receive  push notification but cant handle it . is there any solution for this ?
thank you .

@GHR-Arash please read the documentation, you are asking questions that have already been answered, repeatedly.


torch.FatalError: invalid argument 5: 4D weight tensor (nOutputPlane,nInputPlane,kH,kW) expected, but got: (null) at /home/aaronsung/pyTorch/DepthAwareCNN-master/models/ops/depthconv/src/depthconv_cuda.c:15

File "train.py", line 54, in
model.forward(data)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/Deeplab.py", line 94, in forward
self.segpred = self.model(self.image,self.depth)
File "/home/aaronsung/.conda/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/Deeplab.py", line 23, in forward
output = self.Scale(x,depth) # for original scale
File "/home/aaronsung/.conda/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/VGG_Deeplab.py", line 430, in forward
x,depth = self.features(x,depth)
File "/home/aaronsung/.conda/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/VGG_Deeplab.py", line 228, in forward
x = self.conv1_1(x,self.conv1_1_depthconvweight * depth)
File "/home/aaronsung/.conda/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/VGG_Deeplab.py", line 77, in forward
x = module(x,depth)
File "/home/aaronsung/.conda/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/ops/depthconv/modules/depthconv.py", line 48, in forward
self.padding, self.dilation)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/ops/depthconv/functions/depthconv.py", line 25, in depth_conv
return f(input, depth, weight, bias)
File "/home/aaronsung/pyTorch/DepthAwareCNN-master/models/ops/depthconv/functions/depthconv.py", line 65, in forward
self.padding[1], self.padding[0], self.dilation[1], self.dilation[0])
File "/home/aaronsung/.conda/envs/pytorch/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 202, in safe_call
result = torch._C._safe_call(*args, **kwargs)
torch.FatalError: invalid argument 5: 4D weight tensor (nOutputPlane,nInputPlane,kH,kW) expected, but got: (null) at /home/aaronsung/pyTorch/DepthAwareCNN-master/models/ops/depthconv/src/depthconv_cuda.c:15
pytorch=0.4.1,CUDA=10.0,ubuntu=18.04
How could I slove it?

Hello! there is the same problem in my computer, Did you solve it? If you solve it, Can you tell me how to do it, please? Thank you very much！

Hello, I don't know  whether you solve it. But, I solve it. It isn't support pytorch-0.4.1, so you should change some code , you can see   the pull requests :https://github.com/laughtervv/DepthAwareCNN/pull/17


NEW Update rulesets

Issue https://github.com/silverstripe/.github/issues/198

Just a couple of things above to consider. Up to you if you think changes are warranted or not.

Have updated readme


Modernizing ProcessExitCode plugin

Fixes https://github.com/blackbaud/skyux2/issues/755

Codecov Report

Merging #173 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
- Coverage   96.09%   96.08%   -0.01%
==========================================
  Files          38       38
  Lines         845      843       -2
  Branches      113      113
==========================================
- Hits          812      810       -2
  Misses         33       33

Flag
Coverage Δ

#builder
100% <100%> (ø)
:arrow_up:

#runtime
100% <ø> (ø)
:arrow_up:

#srcapp
58.75% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

config/webpack/common.webpack.config.js
100% <100%> (ø)
:arrow_up:

plugin/process-exit-code/index.js
100% <100%> (ø)
:arrow_up:

config/webpack/test.webpack.config.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

I don't believe my changes have introduced a reduction in code coverage.  Since I removed code that was previously covered, there is now a smaller total amount of code, but the amount uncovered stayed the same, meaning a smaller percentage of code is now covered.


Add GitHub authentication

Add GitHub authentication.

Ability to log in with GitHub
Connect TakeNote with a single gist
Display all individual notes as .md files within TakeNote Gist.

I believe this requires server side code, to be able to send a POST to github, in order to exchange a code for an access token:
Step 2 here: https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/

That’s true, you need a server side endpoint to access the token. I could either serve the entire app from Express and have an api endpoint, or make a microservice to handle the API call...

I love Netlify's lambda functions!

That might be an interesting way to go. Regarding API calls, it should need one for auth, and one for sync.

It's really convenient to serve both the front end and backend on Netlify.

Do you know any good resources for serverless authentication with Netlify? I wonder where I would store the access token if I don't serve the app from Express or something...the only option is saving in localStorage, which I don't want to do...

Hmm, what's wrong with localStorage?
The only options you have is cookie or localStorage, I believe...

localStorage has the possibility of XSS. But Auth0 takes care of this without having to store anything on the client, so I figured it out.

GitHub auth is added. GitHub Gist integration to be added.

Closed in #151


Fixed config.tpl.* comments

Comments in template files did not reflect all options as described in docs, so changed them to reflect actual state.

@googlebot Signed it.

Thank you :octocat:


Create update-gradle-wrapper.yml to automate the process of updating Gradle wrapper

This PR doesn't do anything, it use all the code from Update Gradle Wrapper Action from the GitHub marketplace, we often have too many versions for different tools and dependencies, this would make the process of keep tracking of all of them and ensuring them they are up to date to benefit from latest bug fixes, improvements, features and security fixes is a more time consuming and sometimes we forgot about them
If you read this link:

Gradle is under heavy development, with new releases available every few weeks. Projects that stick to old Wrapper versions can't > benefit from the tons of features and bug fixes being rolled out.
Updating the build system only once or twice per year might become a tedious task. You will need to walk through longer changelogs > and handle any breaking change. Updating frequently helps do less work, take advantage of new features earlier and safely drop > deprecated functionality.
This action runs automatically at the declared schedule and creates Pull Requests with detailed information about the version update.

It won't automatically update the Gradle wrapper version, it will send a PR and have to manually accept or reject the change, and it will be scheduled

I appreciate the intention behind this suggestion, but it strikes me as something that will generate noise. Both in pinging us with PRs when we're otherwise busy, but also generating a bunch of extra jobs in our CI pipeline history.
Updating the gradle wrapper version is so trivial to do, and we've been doing it on our own terms, with no issues so far. I'm really hesitant to take a change that doesn't solve a problem that we've actually had.

I appreciate the intention behind this suggestion, but it strikes me as something that will generate noise. Both in pinging us with PRs when we're otherwise busy, but also generating a bunch of extra jobs in our CI pipeline history.
Updating the gradle wrapper version is so trivial to do, and we've been doing it on our own terms, with no issues so far. I'm really hesitant to take a change that doesn't solve a problem that we've actually had.

It doesn't necessarily fix an issue, but for me, it's useful to have, especially when I have too many projects
But what would be more useful is to use a lint tool just like eslint in JS ecosystem, I heard of KtLint but only start using it recently, it use all the rules and guidelines from official Kotlin but even more strict and can catch some quality and issues that the compiler can't
It also has a plugin for Intellij and can be used in CI (just by using the build task)
It has a Gradle plugin, and you only have to fix the issues and the warrings it gives you the first time, and then it should give you the warrning in the IDE


Don't include the camera part in a 2D scene

What
Resolves: https://github.com/rerun-io/rerun/issues/3806
Repro:
import numpy as np
import rerun as rr

rr.init("rerun_example_pinhole", spawn=True)
rng = np.random.default_rng(12345)

image = rng.uniform(0, 255, size=[3, 3, 3])
rr.log("world/image", rr.Image(image))
import time
time.sleep(3)
rr.log("world/image", rr.Pinhole(focal_length=3, width=3, height=3))

Before:

After:

Checklist

[ ] I have read and agree to Contributor Guide and the Code of Conduct
[ ] I've included a screenshot or gif (if applicable)
[ ] I have tested demo.rerun.io (if applicable)
[ ] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

Bbut did you validate that 3D in 2D still works correctly?

Confirmed on both SFM and Arkit scens by adding content back to the image view.


Authentication for plugin

Is your feature request related to a problem?
Not every client can use cookies. Therefore an option to authenticate without cookies should be possible
Describe the solution you'd like
An endpoint similar to the standard authentication endpoint, but that the token is returned in the body.
In addition, rekeying is needed for the plugin use in Theia so that the user does not have to authenticate more than once.

We intentionally decided to use cookies after long discussions about usability and security concerns. Before we implement and merge changes, I would like to discuss such issues, because this can have many implications.
I also would need more information about clients that cannot use cookies for the discussion.


Migrate to GitHub Actions

The failures in analysis are also failing on travis:
https://travis-ci.org/github/dart-lang/gcloud/jobs/755726411

The failures in analysis are also failing on travis:
https://travis-ci.org/github/dart-lang/gcloud/jobs/755726411


feat: Add SVG Icon Props

Summary
Banner, Button, ButtonDropdown, ButtonIcon, Callout, MenuItem, Notification, SegmentedControl, Tag
Github issue: #616
Description:
Any component that features an icon is currently limited to swapping that icon out only with another icon from the SDS icon bank. This should be changed to add an option allowing any SVG to be used, while maintaining the current functionality of entering a string with the name of an icon from the SDS icon bank, ensuring it is still easy to use our SDS icons.
Checklist

[x] Default Story in Storybook
[x] LivePreview Story in Storybook
[x] Test Story in Storybook
[ ] Tests written
[ ] Variables from defaultTheme.ts used wherever possible
[x] If updating an existing component, depreciate flag has been used where necessary
[ ] Chromatic build verified by @chanzuckerberg/sds-design

Big thanks for the PR, @TheMooseman! 😍
Your contributions are greatly appreciated. 🎉🥳
I'll make sure to add a comment summarizing all the breaking changes introduced by this PR.

Custom SVG Icon example
An example of a custom SVG icon to use within SDS components.
import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';

function CustomSvgIcon(props: SvgIconProps) {
  return (
    <SvgIcon {...props}>
      <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
    </SvgIcon>
  );
}

export default CustomSvgIcon;

Breaking Changes
Autocomplete, DropdownMenu, Dropdown, ComplexFilter
The Autocomplete options now can take SDS Icons, custom SDS icons, and Custom SVG icons:
const AuocompleteOptions = [
  {
    icon: <CustomSvgIcon />,
    name: "Custom SVG Icon",
    section: "With Icon",
  },
  {
    icon: <Icon sdsIcon="bacteria" sdsSize="s" color="gray" />,
    name: "Custom SDS Icon",
    section: "With Icon",
  },
  {
    icon: "virus",
    name: "SDS Icon",
    section: "With Icon",
  },
];

Banner
The Banner component has been enhanced to support SDS Icons, Custom SDS icons, and Custom SVG icons:
// SDS Icon
<Banner sdsType="primary" icon="infoCircle" />

// Custom SDS Icon
<Banner sdsType="primary" icon={<Icon sdsIcon="bacteria" sdsSize="s" color="gray" />} />

// Custom SVG Icon
<Banner sdsType="primary" icon={<CustomSvgIcon />} />

ButtonIcon
The ButtonIcon component now features icon and sdsIconProps props instead of sdsIcon, which can be an SDS Icon, a custom SDS Icon, or a custom SVG icon.
// SDS Icon
<ButtonIcon icon="infoCircle" />

// Custom SDS Icon
<ButtonIcon icon={<Icon sdsIcon="bacteria" sdsSize="s" color="gray" />} />

// Custom SVG Icon
<ButtonIcon icon={<CustomSvgIcon />} />

Callout
The Callout component now supports all three mentioned icon types.
// SDS Icon
<Callout icon="infoCircle">
    This is a Call out!
</Callout>

// Custom SDS Icon
<Callout icon={<Icon sdsIcon="bacteria" sdsSize="s" color="gray" />}>
    This is a Call out!
</Callout>

// Custom SVG Icon
<Callout icon={<CustomSvgIcon />}>
    This is a Call out!
</Callout>

MenuItem
The MenuItem component now accepts an icon prop which supports all three mentioned icon types.
// SDS Icon
<MenuItem icon="infoCircle">SDS Icon</MenuItem>

// Custom SDS Icon
<MenuItem icon={<Icon sdsIcon="bacteria" sdsSize="s" color="gray" />}>
    Custom SDS Icon
</MenuItem>

// Custom SVG Icon
<MenuItem icon={<CustomSvgIcon />}>
    Custom SVG Icon
</MenuItem>

Notification
The Notification component now includes the icon and sdsIconProps props, allowing users to customize the Notification icon.
// SDS Icon
<Notification icon="infoCircle">
    This is a Notification!
</Notification>

// Custom SDS Icon
<Notification icon={<Icon sdsIcon="bacteria" sdsSize="s" color="gray" />}>
    This is a Notification!
</Notification>

// Custom SVG Icon
<Notification icon={<CustomSvgIcon />}>
    This is a Notification!
</Notification>

SegmentedControl
The SegmentedControl component now supports all three mentioned icon types.
<SegmentedControl
  buttonDefinition={[
    {
      icon: "list",
      tooltipText: "SDS Icon"
    },
    {
      icon: <Icon sdsIcon="bacteria" sdsSize="s" color="gray" />,
      tooltipText: "Custom SDS Icon"
    },
    {
      icon: <CustomSvgIcon />,
      tooltipText: "Custom SVG Icon"
    }
  ]}
/>

Wow fantastic! Thanks so much for the exciting enhancement, @masoudmanson !
Do you think it's possible to keep sdsIcon prop and mark it as deprecated in the meantime, so the users have time to migrate to the new icon prop before we remove sdsIcon prop completely?
I suppose it's a pretty straightforward text replacement to do, but if it's not too much work on our end to keep sdsIcon around for a bit longer, I feel it might ease the users to do SDS version upgrades better
What do you think 👌 ?
Also should we add a ticket to update Zeroheight with this new prop behavior and code example 🎉 ?
Thanks for the amazing work both!!

Thanks a lot for the positive feedback, @tihuan ! 😊 Regarding the sdsIcon prop, I'm a bit hesitant about changing it to icon. Currently, the Icon component exclusively accepts SDS Icon names, making the prop name sdsIcon more explicit about the requirement.
For other components that can handle various icon forms, the prop is named icon. This naming difference is intentional for clarity in usage.
If we change sdsIcon to icon, users might expect the Icon component to accept all forms of icons, but unfortunately, that's not the case.

Hey @masoudmanson ! Ooh sorry I probably misunderstood the breaking changes part you meant! I thought there were breaking changes caused by us updating the prop name from sdsIcon to icon, but it sounds like icon prop is a pure addition instead of renaming an existing prop sdsIcon?
If so, then since it's a pure addition, I suppose it's not a breaking change, just a new feature prop 👌 ?

Hey @masoudmanson ! Ooh sorry I probably misunderstood the breaking changes part you meant! I thought there were breaking changes caused by us updating the prop name from sdsIcon to icon, but it sounds like icon prop is a pure addition instead of renaming an existing prop sdsIcon?
If so, then since it's a pure addition, I suppose it's not a breaking change, just a new feature prop 👌 ?

Aah apologies for the confusion in my previous explanation. Here's a better overview of the changes:
Unchanged

Icon: No changes have been made to the Icon component, as the existing sdsIcon prop effectively communicates the required prop compared to icon.

New Features

Autocomplete, DropdownMenu, Dropdown, ComplexFilter, and SegmentedControl: These components can now seamlessly accommodate all three forms of icons without any modifications to the API.

Banner, Callout, and Notification: These components now accept a new icon prop.

Breaking Changes

ButtonIcon and MenuItem: In these components, the former sdsIcon prop has been replaced with the new icon prop, designed to accept all three forms of icons.

Wow fantastic! Love the new format 🙏 Super clear now. Really appreciate it!
So I think my original comment of keeping but deprecating "sdsIcon" prop would only apply for ButtonIcon and MenuItem, IF you think it's worth the cost!

Wow fantastic! Love the new format 🙏 Super clear now. Really appreciate it!
So I think my original comment of keeping but deprecating "sdsIcon" prop would only apply for ButtonIcon and MenuItem, IF you think it's worth the cost!

Yeah, absolutely! That sounds like a good plan. I'll include the old sdsIcon in those components and mark it as deprecated to ensure a smoother transition without imposing any breaking changes on the product teams.  😍

Amazing 🙏 Thanks so much for being flexible on the deprecation plan, @masoudmanson ! Have an amazing weekend and hope you feel better soon 🦷 👼 !!

Amazing 🙏 Thanks so much for being flexible on the deprecation plan, @masoudmanson ! Have an amazing weekend and hope you feel better soon 🦷 👼 !!

Sure thing, @tihuan! Your suggestion was spot-on. I added deprecation notes for both the ButtonIcon and MenuItem components. 🥳
Have an awesome weekend! 🎉😬


Bug or support request?

I post here but i don't know if is a bug or a support request. If it is not a bug I close this issue.
The problem is this: https://stackoverflow.com/questions/52058611/app-crash-with-kivy-and-bs4
I read on internet there are a lot of people there are this problem so, i don't know.
Sorry if I have not respected the rules

This belongs in the py4a or buildozer repo and not in Kivy. Also, please try to post the full issue when opening it, rather than just posting a url.


feat: generate url with dynamically domain name for quicksight embeded dashboards

feat: generate url with dynamically domain name for quicksight embeded dashboards
Feature or Bugfix

Feature

Detail
Previously one had to configure statically data.all domain name inside QuickSight to allow dashboards to be embeddable inside data.all. With new api it is possible to dynamically set in inside request. User no longer has to configure QuickSight before using it.
Relates
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Nice one @wolanlu! This removes the need to go to Quicksight to configure the allowed domains! Quicksight team has been adding a lot of APIs lately, thank you for keeping an eye :) The only thing left is to update the documentation in the userguide.

true - thanks for pointing that out. I will handle the change


Exception while execution example_spec.js

Hi I am trying to run the default example:
C:\Users\rmallela\AppData\Roaming\npm\node_modules\protractor\example>protractor conf.js
I see the exception : [11852:6504:0925/194546:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
Given details below:

Node Version: v4.5.0
Protractor Version: Version 4.0.9
Browser(s): chrome and firefox
Operating System and Version windows 7 Enterprise
Your protractor configuration file :

//C:\Users\rmallela\AppData\Roaming\npm\node_modules\protractor\example\conf.js
// An example configuration file.
exports.config = {
  directConnect: true,

  // Capabilities to be passed to the webdriver instance.
  capabilities: {
    'browserName': 'chrome'
  },

  // Framework to use. Jasmine is recommended.
  framework: 'jasmine',

  // Spec patterns are relative to the current working directory when
  // protractor is called.
  specs: ['example_spec.js'],

  // Options to be passed to Jasmine.
  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  }
};

Output from running the test :

C:\Users\rmallela\AppData\Roaming\npm\node_modules\protractor\example>protractor conf.js
[19:45:38] I/direct - Using ChromeDriver directly...
[19:45:38] I/launcher - Running 1 instances of WebDriver
Started
[11852:6504:0925/194546:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
[11852:6504:0925/194548:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
.[11852:6504:0925/194551:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
[11852:6504:0925/194551:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
[11852:6504:0925/194551:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
[11852:6504:0925/194551:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
.[11852:6504:0925/194552:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
[11852:6504:0925/194552:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101
[11852:6504:0925/194553:ERROR:ssl_client_socket_impl.cc(1141)] handshake failed; returned -1, SSL error code 1, net_error -101

3 specs, 0 failures
Finished in 14.269 seconds

[19:45:54] I/launcher - 0 instance(s) of WebDriver still running
[19:45:54] I/launcher - chrome #01 passed

Steps to reproduce the bug :
run #C:\Users\rmallela\AppData\Roaming\npm\node_modules\protractor\example>protractor conf.js
The URL you are running your tests against (if relevant): http://www.angularjs.org

I am not seeing this on windows 7 using the latest protractor. My guess is that this is due to something environmental.
Because it will require troubleshooting and fixes that are probably particular to your environment, your question is better suited to  StackOverflow or Gitter. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help.
From the the getting help section of the README:

Please ask usage and debugging questions on StackOverflow (use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)

Thanks!

Hey @rmallela I'm having the same issue, did you ever find the source of the problem?

I had the same issue, after searching around, I read somewhere says, ng e2e is using serve options in angular.json, so here's how I fixed it in my environment:

make sure ng serve --ssl work, app can be served with https;
set ssl as true in angular.json serve options:

"serve": {
          "options": {
            "browserTarget": "frontend:build",
            "proxyConfig": "proxy-conf.json",
            "ssl": true
          },
    .....
        },


Error: Can't set headers after they are sent when using file handlebar in docker container

Describe the bug
When using file handlebar with docker camouflage a "Error: Can't set headers after they are sent" occurs instead of the file being served.
To Reproduce
Steps to reproduce the behavior:

Mock File Content

HTTP/1.1 200 OK
Content-Type: image/png

{{file path="./files/mr_man.png"}}

Folder Structure camouflage/mocks/aws/s3/student-plans/GET.mock
Error Stack Trace

camouflage                  | Error: Can't set headers after they are sent.
camouflage                  |     at SendStream.headersAlreadySent (/usr/local/lib/node_modules/camouflage-server/node_modules/send/index.js:386:13)
camouflage                  |     at SendStream.send (/usr/local/lib/node_modules/camouflage-server/node_modules/send/index.js:613:10)
camouflage                  |     at onstat (/usr/local/lib/node_modules/camouflage-server/node_modules/send/index.js:725:10)
camouflage                  |     at FSReqCallback.oncomplete (node:fs:199:5)

Expected behavior
The file is served.
Screenshots
N/A
Desktop (please complete the following information):

OS: [macOS Ventura 13.3]
Browser [Using postman not a browser]
Version [Not sure what version I am meant to put here]

Additional context
Attach camouflage.log file

Yep - version in docker container is
/app # camouflage --version
0.12.0

Could we get a docker image update please?


Problem disconnecting on final

Reported by @ainonovo, initially here https://github.com/defold/extension-websocket/issues/48
local function websocket_disconnect(self)
	if self.ws_con ~= nil then
		pprint(self.ws_con)
		websocket.disconnect(self.ws_con)
	end
end

function final(self)
	websocket_disconnect(self)
end

in console
userdata: 0x0a109ad0
ERROR:WEBSOCKET: Failed to setup callback

this code in a script file. Maybe I'm disconnecting at the wrong time - but I need to 100% disconnect correctly - otherwise I can't reconnect

I do not close, I unload the proxy with the game object - which is basically the same thing
What could be the solution?

I do not close, I unload the proxy with the game object - which is basically the same thing
What could be the solution?
p/s but if you just send a message - then there is no error and socket disconected corectly

ERROR:WEBSOCKET: Failed to setup callback
Hmm, ok, it seems like the callback you pass to websocket.connect is part of the unloaded collection. Is this the case? If that is correct then disconnect first, wait for the callback and then unload. OR do the call to websocket.connect from outside the collection that you load and unload.

websocket.connect is part of the unloaded collection
absolutely right, I'll try


Cell fails to complete execution when using IPython 8.0 and pygments < 2.4.0

Issue Type: Bug
Jupyter Extension Version: 2022.1.1001614873.
Python Extension Verison: 2021.12.1559732655.
Create a Jupyter notebook using the 'local default' engine built into vscode
write some python code in cells
make a mistake in the python code that will raise an exception when executed
execute the code
the cell code runs, but then the editor 'hangs' while running the code. clicking 'restart' is required.
see this in the jupyter log window
Info 12:06:22: Execute Cell 8 ~/notebooks/mwd/pierbridge-carrierlist-to-csv.ipynb
Warn 12:06:22: StdErr from Kernel Process [IPKernelApp] ERROR | Exception in message handler:

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3251, in run_code

Warn 12:06:22: StdErr from Kernel Process     exec(code_obj, self.user_global_ns, self.user_ns)

Warn 12:06:22: StdErr from Kernel Process   File "/tmp/ipykernel_11358/939499826.py", line 1, in <module>

Warn 12:06:22: StdErr from Kernel Process     process_carriers()

Warn 12:06:22: StdErr from Kernel Process NameError: name 'process_carriers' is not defined

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process During handling of the above exception, another exception occurred:

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback

Warn 12:06:22: StdErr from Kernel Process     stb = value._render_traceback_()

Warn 12:06:22: StdErr from Kernel Process AttributeError: 'NameError' object has no attribute '_render_traceback_'

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process During handling of the above exception, another exception occurred:

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3191, in run_ast_nodes

Warn 12:06:22: StdErr from Kernel Process     if await self.run_code(code, result, async_=asy):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3268, in run_code

Warn 12:06:22: StdErr from Kernel Process     self.showtraceback(running_compiled_code=True)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 1936, in showtraceback

Warn 12:06:22: StdErr from Kernel Process     stb = self.InteractiveTB.structured_traceback(etype,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 1105, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     return FormattedTB.structured_traceback(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 999, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     return VerboseTB.structured_traceback(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 852, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 786, in format_exception_as_a_whole

Warn 12:06:22: StdErr from Kernel Process     records = self.get_records(etb, number_of_lines_of_context, tb_offset)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 830, in get_records

Warn 12:06:22: StdErr from Kernel Process     style = stack_data.style_with_executing_node(style, "bg:ansiyellow")

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/stack_data/core.py", line 412, in style_with_executing_node

Warn 12:06:22: StdErr from Kernel Process     class NewStyle(style):

Warn 12:06:22: StdErr from Kernel Process   File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in __new__

Warn 12:06:22: StdErr from Kernel Process     ndef[4] = colorformat(styledef[3:])

Warn 12:06:22: StdErr from Kernel Process   File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat

Warn 12:06:22: StdErr from Kernel Process     assert False, "wrong color format %r" % text

Warn 12:06:22: StdErr from Kernel Process AssertionError: wrong color format 'ansiyellow'

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process During handling of the above exception, another exception occurred:

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback

Warn 12:06:22: StdErr from Kernel Process     stb = value._render_traceback_()

Warn 12:06:22: StdErr from Kernel Process AttributeError: 'AssertionError' object has no attribute '_render_traceback_'

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process During handling of the above exception, another exception occurred:

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 2814, in _run_cell

Warn 12:06:22: StdErr from Kernel Process     return runner(coro)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner

Warn 12:06:22: StdErr from Kernel Process     coro.send(None)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3012, in run_cell_async

Warn 12:06:22: StdErr from Kernel Process     has_raised = await self.run_ast_nodes(code_ast.body, cell_name,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3210, in run_ast_nodes

Warn 12:06:22: StdErr from Kernel Process     self.showtraceback()

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 1936, in showtraceback

Warn 12:06:22: StdErr from Kernel Process     stb = self.InteractiveTB.structured_traceback(etype,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 1105, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     return FormattedTB.structured_traceback(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 999, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     return VerboseTB.structured_traceback(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 852, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 786, in format_exception_as_a_whole

Warn 12:06:22: StdErr from Kernel Process     records = self.get_records(etb, number_of_lines_of_context, tb_offset)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 830, in get_records

Warn 12:06:22: StdErr from Kernel Process     style = stack_data.style_with_executing_node(style, "bg:ansiyellow")

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/stack_data/core.py", line 412, in style_with_executing_node

Warn 12:06:22: StdErr from Kernel Process     class NewStyle(style):

Warn 12:06:22: StdErr from Kernel Process   File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in __new__

Warn 12:06:22: StdErr from Kernel Process     ndef[4] = colorformat(styledef[3:])

Warn 12:06:22: StdErr from Kernel Process   File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat

Warn 12:06:22: StdErr from Kernel Process     assert False, "wrong color format %r" % text

Warn 12:06:22: StdErr from Kernel Process AssertionError: wrong color format 'ansiyellow'

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process During handling of the above exception, another exception occurred:

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback

Warn 12:06:22: StdErr from Kernel Process     stb = value._render_traceback_()

Warn 12:06:22: StdErr from Kernel Process AttributeError: 'AssertionError' object has no attribute '_render_traceback_'

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process During handling of the above exception, another exception occurred:

Warn 12:06:22: StdErr from Kernel Process

Warn 12:06:22: StdErr from Kernel Process Traceback (most recent call last):

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/ipykernel/kernelbase.py", line 357, in dispatch_shell

Warn 12:06:22: StdErr from Kernel Process     await result

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/ipykernel/kernelbase.py", line 652, in execute_request

Warn 12:06:22: StdErr from Kernel Process     reply_content = await reply_content

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/ipykernel/ipkernel.py", line 353, in do_execute

Warn 12:06:22: StdErr from Kernel Process     res = shell.run_cell(code, store_history=store_history, silent=silent)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/ipykernel/zmqshell.py", line 532, in run_cell

Warn 12:06:22: StdErr from Kernel Process     return super().run_cell(*args, **kwargs)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 2768, in run_cell

Warn 12:06:22: StdErr from Kernel Process     result = self._run_cell(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 2819, in _run_cell

Warn 12:06:22: StdErr from Kernel Process     self.showtraceback(running_compiled_code=True)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 1936, in showtraceback

Warn 12:06:22: StdErr from Kernel Process     stb = self.InteractiveTB.structured_traceback(etype,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 1105, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     return FormattedTB.structured_traceback(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 999, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     return VerboseTB.structured_traceback(

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 852, in structured_traceback

Warn 12:06:22: StdErr from Kernel Process     formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 786, in format_exception_as_a_whole

Warn 12:06:22: StdErr from Kernel Process     records = self.get_records(etb, number_of_lines_of_context, tb_offset)

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/IPython/core/ultratb.py", line 830, in get_records

Warn 12:06:22: StdErr from Kernel Process     style = stack_data.style_with_executing_node(style, "bg:ansiyellow")

Warn 12:06:22: StdErr from Kernel Process   File "/home/redacted-name/.local/lib/python3.9/site-packages/stack_data/core.py", line 412, in style_with_executing_node

Warn 12:06:22: StdErr from Kernel Process     class NewStyle(style):

Warn 12:06:22: StdErr from Kernel Process   File "/usr/lib/python3/dist-packages/pygments/style.py", line 91, in __new__

Warn 12:06:22: StdErr from Kernel Process     ndef[4] = colorformat(styledef[3:])

Warn 12:06:22: StdErr from Kernel Process   File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat

Warn 12:06:22: StdErr from Kernel Process     assert False, "wrong color format %r" % text

Warn 12:06:22: StdErr from Kernel Process AssertionError: wrong color format 'ansiyellow'

Extension version: 1.0.4
VS Code version: Code - Insiders 1.64.0-insider (0c6d1e9f7ef648cfa50733abb62388bc0791856a, 2022-01-20T06:29:50.054Z)
OS version: Linux x64 5.4.0-94-generic
Restricted Mode: No
Remote OS version: Linux x64 5.0.0-37-generic
Remote OS version: Linux x64 5.0.0-37-generic
Remote OS version: Linux x64 5.0.0-37-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (8 x 2775)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
31.31GB (0.51GB free)

Process Argv
--crash-reporter-id 474eb73e-a65a-4368-951f-e20a8cf1c5f1

Screen Reader
no

VM
0%

DESKTOP_SESSION
awesome

XDG_CURRENT_DESKTOP
undefined

XDG_SESSION_DESKTOP
awesome

XDG_SESSION_TYPE
x11

Item
Value

Remote
SSH: bob4

OS
Linux x64 5.0.0-37-generic

CPUs
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 3401)

Memory (System)
47.01GB (7.49GB free)

VM
0%

Item
Value

Remote
SSH: bob4

OS
Linux x64 5.0.0-37-generic

CPUs
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 3401)

Memory (System)
47.01GB (7.49GB free)

VM
0%

Item
Value

Remote
SSH: bob4

OS
Linux x64 5.0.0-37-generic

CPUs
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 3401)

Memory (System)
47.01GB (7.49GB free)

VM
0%

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes516:30244333
pythonvspyl392:30422396
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
wslgetstarted:30421357
vscop804cf:30404767
vscop940:30404999
vsclayoutctrt:30405800
azactmsalcf:30409288
pythonvsnew555:30424890
vsbas813:30426126

Thanks for filing this issue.
This doesn't look like an error in the Jupyter extension.
Looks like you are experiencing problems with the underlying Python code used to run the kernel.
Seems to be caused by https://github.com/ipython/ipython/issues/13441
Please update pygments as per the comments (https://github.com/ipython/ipython/issues/13441#issuecomment-1012303026)

Thanks,
this resolved my issue
$ pip3 install -U pygments

its somewhat confusing using an 'automatic local jupyter' server with the extension.   Based on the logs it appears to run ipython from a virtualenv (the same virtualenv used by other folders in the current workspace).
It also runs a ~/.local/bin/ipython as well, and that's the one that required upgrading.

It also runs a ~/.local/bin/ipython as well

I believe this should be resolved when using the latest Insider (preview) version of the Jupyter extension.

ts somewhat confusing using an 'automatic local jupyter' server with the extension.

Automatic jupyter extension is only used when we're unable to launch the kernel manually ourselves,

Going to re-open this to ensure we have a solution that will help users identify the problem and resolve this easily.
Notes

Kernel messages provide absolutely no indication of the fact that the kernel has hung (no indication of error or the like)
Kernel process sends error messages to stdout stream

Suggestion:

We could proactively analyse the python environment and warn users about the out dated (incompatible) packages (this isn't the first of its kind).
We could integrate this check into the kernel doctor

I prefer the first option, as this will let them know early on, instead of having to wait for a few minutes to figure out why the cell isn't completing.

I don't think we need to do anything here, the kernel starts up successfully, cell executilon fails due to an old/invalid package.


Install in VS2022 ? Help please :)

Hello
Playwright noob so be kind. 🙂
I installed Microsoft.Playwright 1.30.0 + Microsoft.Playwright.MSTest 1.30.0 + Microsoft.Playwright.TestAdapter 1.30.0 in my Visual Studio 2022.
Trying to run samples found (https://playwright.dev/) I have a compiling error on this sentence :
using var playwright = await Playwright.CreateAsync();
Any idea on what I may have missed ?
Thanks.

I tried in Visual Studio Code and it works ... What's the matter ?

Super weird! Maybe the dependencies were not restored in VS. Have you tried following the official intro? https://playwright.dev/dotnet/docs/intro

Well in VS2022 I used the NuGet package manager to install Microsoft.Playwright.MSTest.
I also desinstall and reinstall this package to test, without improvment.

This is most likely an issue on your machine, with the way VS is installed etc. since you are the first person reporting it. Since we are unfortunately not able to reproduce it, we have to close it for now as part of the triaging process. Feel free to put research / investigation notes down below to help further users.
I'd recommend to re-install VS 2022.

I see the same issue ,  Playwright does not even show up in the list of extensions that Visual Studio 2022 offers for the IDE

I see the same issue , Playwright does not even show up in the list of extensions that Visual Studio 2022 offers for the IDE

This is expected, there is no Visual Studio Playwright extension, only for Visual Studio Code and Node.js: https://playwright.dev/docs/getting-started-vscode

I know this post is an old and closed but I just had this issue.  Found out it was because Playwright was referencing PlaywrightTest and not Microsoft.Playwright.Playwright


Segfault (infinite recursion?) when loading YAML schema into Box with box_dots=True

I have a YAML schema (see here) which I want to be able to get the flattened dict keys for - something that Box is well placed to provide with its dot notation.
However, I get a segfault when loading the YAML file with:
from box import Box
schema = Box.from_yaml("path/to/schema.yaml", default_box=True, box_dots=True)

It loads successfully with:
from box import Box
schema = Box.from_yaml("path/to/schema.yaml")

But then I lose the ability to inspect the flattened keys (schema.keys(dotted=True)).

Confirmed with that file the behavior, with both ruamel.yaml and pyyaml as backends, so is from something in my code side looping. Thanks for raising the issue will look into!

Anything new on this one? I have a similar problem but with some JSON:
Box.from_yaml(resp.text, box_dots=True)
Traceback (most recent call last):
  File ".../pydevd_asyncio_utils.py", line 117, in _exec_async_code
    result = func()
  File "<input>", line 1, in <module>
  File "box/box.py", line 1050, in box.box.Box.from_yaml
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 671, in box.box.Box.__setitem__
  File "box/box.py", line 574, in box.box.Box.__convert_and_store
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 671, in box.box.Box.__setitem__
  File "box/box.py", line 583, in box.box.Box.__convert_and_store
  File "box/box_list.py", line 52, in box.box_list.BoxList.__init__
  File "box/box_list.py", line 110, in box.box_list.BoxList.append
  File "box/box_list.py", line 100, in box.box_list.BoxList._convert
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 671, in box.box.Box.__setitem__
  File "box/box.py", line 574, in box.box.Box.__convert_and_store
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 671, in box.box.Box.__setitem__
  File "box/box.py", line 574, in box.box.Box.__convert_and_store
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 664, in box.box.Box.__setitem__
box.exceptions.BoxKeyError: "'<class 'box.box.Box'>' object has no attribute tenant"

I am pretty sure Box chokes on / or . in the... keys maybe?
...
metadata:
  labels:
    kubed.appscode.com/origin.cluster: unicorn
...

Traceback (most recent call last):
  File "/home/schroederp/.local/share/JetBrains/IntelliJIdea2024.1/python/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
  File "<input>", line 1, in <module>
  File "box/box.py", line 303, in box.box.Box.__init__
  File "box/box.py", line 671, in box.box.Box.__setitem__
  File "box/box.py", line 574, in box.box.Box.__convert_and_store
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 671, in box.box.Box.__setitem__
  File "box/box.py", line 574, in box.box.Box.__convert_and_store
  File "box/box.py", line 291, in box.box.Box.__init__
  File "box/box.py", line 664, in box.box.Box.__setitem__
box.exceptions.BoxKeyError: "'<class 'box.box.Box'>' object has no attribute kubed"

@paulschroeder-tomtom good find, yes.
If there are keys with . or [] in them, box dots will treat them as if they should break them apart.
For example in @brynpickering YAML has keys like '^[^_^\d][\w]*$': {} that it will fail on.
I don't see any what Box could really support those cases, but should at least have a check on box creation if something is going to break it like that and give a clear error.

Ok, I sad but then it is like that. WIll you create an improve on the error message?


Update definitions of WHATWG streams

Fixes #25277
also cc @saschanaz @ksm2 @MattiasBuelens who wrote these types for DefinitelyTyped.

 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.:x: surma sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Any PRs related to lib.d.ts should be on https://github.com/Microsoft/TSJS-lib-generator instead of this repo.


Don't offload empty ledgers

It shouldn't be possible for a ledger in a managed ledger to be
empty (it should be cleaned up on recovery), but this patch adds
defensive code so that if they do exist for some reason, they won't be
offloaded.
Master Issue: #1511

retest this please // timeout on unit tests


Hikari CP connection issues causing nodes to become non-responsive and be terminated

Environment

Stroom master branch (29 Jul 2021)
Stroom cluster consisting of 16 x data/processing nodes and 2 x dedicated UI nodes
Tested on both MySQL v8.0.26 and v8.0.21
Deployed to bare-metal Kubernetes hosts
10Gb network

MySQL configuration

max_connections: 1000
InnoDB cluster, consisting of 1 x R/W master server, 2 x R/O slaves
MySQL Router deployed to Kubernetes, providing connection routing to the Stroom nodes

Stroom configuration

Data Processor task limit of 20 per node
Each node: 24 CPUs, 20GB JVM heap min/max, 40GB container memory

Background
This environment ran Stroom v6 well and at scale, for over four months with no issues. The only significant change has been MySQL, which for v6 ran as a single container. It is now running as an InnoDB cluster.
Problem
Stroom cluster starts up fine, data starts ingesting and pipelines process correctly. Everything behaves as it should. After a few hundred GB of data is ingested, some of the nodes start reporting the following errors:
HikariPool-1 Failed to validate connection (no operations allowed after connection closed)
HikariPool-1 - Connection is not available, request timed out after 30000ms
Three different stack traces were observed (though there may be others):
Dw-admin-133
...
stroom.db.util.DataSourceProxy.getConnection
stroom.db.util.JooqUtil.contextResult
...
stroom.security.identity.db.TokenDaoImpl.list
stroom.security.identity.token.TokenServiceImpl.getHealth
stroom.util.HasHealthCheck$1.check
...

Stroom Job - ScheduledExecutor
...
stroom.db.util.DataSourceProxy.getConnection
stroom.db.util.JooqUtil.contextResult
...
stroom.job.impl.db.JobNodeDaoImpl.find
stroom.job.impl.JobNodeTrackerCache$Trackers.<init>
...

PUT /api/node/v1/setJobsEnabled/stroom-prod-node-data-13
...
stroom.db.util.DataSourceProxy.getConnection
stroom.db.util.JooqUtil.contextResult
...
stroom.node.impl.db.NodeDaoImpl.setJobsEnabled
...

MySQL is reporting ~10% CPU utilisation and memory consumption is well within limits. Ad-hoc queries performed via the CLI complete quickly and parts of the Stroom UI involving DB queries (like refreshing the server task list) appear to be responsive.
The nodes are failing healthchecks (:8090/stroomAdmin/healthcheck) and as a result, are being killed often.
Stroom nodes don't exceed 50% CPU usage and are well inside memory limits.

Workaround is to increase the connection pool property maxPoolSize in Stroom config.
Recommend adding documentation to provide guidance on this setting for nodes with a large number of active tasks.
Also recommend further testing to identify sensible default maxPoolSize settings by section, as there are multiple sections in the config where this can be set.


view_maps: bugfix for missing array transposition

Somehow the array-transpose bit is missing from the frequency view method.

this is resolved in i395-, see #395.


RDK-30291 Fixed occasional temp mounts

Description
There was an issue where container was created and not run, it was resulting in temp mount being left because cleaning up was done in post start hook, which wasn't run as container wasn't start.
Fixed by checking if cleaning was done on post stop hook which should be run all the times.
This ticket is fix for problem found while doing RDK-30291.
Test Procedure
Create container with storage plugin on, but without "post start" hook. It shouldn't left mount to directory.temp.
Type of Change

[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)
[ ] Other (doesn't fit into the above categories - e.g. documentation updates)

Requires Bitbake Recipe changes?

[x] No

This fixes most occurrences of this problem, but unfortunately I've found a scenario (albeit fairly niche) where this does not fix the issue.
The temp mounts are set up in the preCreation hook, which is run before we call crun create. If crun create fails to parse the config.json file or cannot set up the container (e.g. due to an invalid mount option), the container will not be created and no other OCI hooks will run (see https://github.com/opencontainers/runtime-spec/blob/master/runtime.md#lifecycle).
This means the temp mounts are set up, but since no other OCI hook runs they are not cleaned up.
To reproduce:

Build Dobby with LEGACY_COMPONENTS=OFF (important, with legacy_components=on Dobby does some cleanup in the rootfs when the container stops (in the unmountAllAt() function).
Create a container config with an invalid mount option (e.g. mount a non-existent dir into the container)
Start container - will fail
Check mount output - temp mount will still exist:

/tmp/data/data.img on /home/vagrant/sleepybundle/rootfs/home/private/test/123.temp type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)

Possible solutions:

Use postHalt hook instead to clean up the temp mount
As mentioned earlier, when building with legacy_components, in DobbyRootfs there is a unmountAllAt() method which removes leftover mount points in the rootfs dir. Perhaps this should be enabled for all build types, which would then ensure this can never happen

This fixes most occurrences of this problem, but unfortunately I've found a scenario (albeit fairly niche) where this does not fix the issue.
The temp mounts are set up in the preCreation hook, which is run before we call crun create. If crun create fails to parse the config.json file or cannot set up the container (e.g. due to an invalid mount option), the container will not be created and no other OCI hooks will run (see https://github.com/opencontainers/runtime-spec/blob/master/runtime.md#lifecycle).
This means the temp mounts are set up, but since no other OCI hook runs they are not cleaned up.
To reproduce:

Build Dobby with LEGACY_COMPONENTS=OFF (important, with legacy_components=on Dobby does some cleanup in the rootfs when the container stops (in the unmountAllAt() function).
Create a container config with an invalid mount option (e.g. mount a non-existent dir into the container)
Start container - will fail
Check mount output - temp mount will still exist:

/tmp/data/data.img on /home/vagrant/sleepybundle/rootfs/home/private/test/123.temp type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)

Possible solutions:

Use postHalt hook instead to clean up the temp mount
As mentioned earlier, when building with legacy_components, in DobbyRootfs there is a unmountAllAt() method which removes leftover mount points in the rootfs dir. Perhaps this should be enabled for all build types, which would then ensure this can never happen

Remarks from longer conversations:

We shouldn't run postHalt when container was started (we should create a ticket for this)
Current solution of removing temp works in most cases so it should stay but we need to add additional case
We should fix this issue by making unmountAllAt non-legacy component and call it in destructor of DobbyRootfs when LEGACY_COMPONENTS is not defined

Remarks from longer conversations:

We shouldn't run postHalt when container was started (we should create a ticket for this)
Current solution of removing temp works in most cases so it should stay but we need to add additional case
We should fix this issue by making unmountAllAt non-legacy component and call it in destructor of DobbyRootfs when LEGACY_COMPONENTS is not defined

LGTM

LGTM


Fix inadvertent NULL assignments in ternary ops

As identified by both clang with a warning and $> git grep -P '(?<![!=])= NULL \?'
Signed-off-by: Clemens Lang<EMAIL_ADDRESS>
Checklist

not applicable

BTW, @neverpanic should be covered by Red Hat CCLA, I suppose
I'd also consider these changes trivial.

I already have an ICLA on file, but without my Red Hat email address, so the check fails. How do I get this updated? Mail to legal@, or submit a new ICLA?

I already have an ICLA on file, but without my Red Hat email address, so the check fails. How do I get this updated? Mail to legal@, or submit a new ICLA?

Just an email to legal telling us that both email addresses are you should be enough

This pull request is ready to merge

Merged. Thanks for the contribution!


Document serialization

Document serialization to save & load document already parsed.
First, this save only layout tokens and their tagging labels.

Coverage remained the same at 36.593% when pulling 267b9df0ddd7e3c6bef8bf6bf0e5bfb40dca8633 on document-serialization into ecbb91ac6c5a7d71547a5679c7a17db65cc26f19 on master.

Coverage remained the same at 38.407% when pulling a7d9a06e9d96d000f91a3bc25278bbac61a51a65 on document-serialization into 543f6960342b44e9121b494e4abc03ada290e4c8 on master.

Coverage increased (+0.01%) to 38.396% when pulling 1328b17193471268355c8c4296c5a15cac08b7a3 on document-serialization into 561300a3322498c4e1abb17c2a74bf4c603a896e on master.

Coverage remained the same at 38.561% when pulling aa42f0cb7e5460a04895a3322ba795916998f076 on document-serialization into 2d3e11eafcf7e5768ff48681b6af757dc4b4e84a on master.


Dataspace-Protocol: add dataAddress in TransferStartMessage

Feature Request
Add the DataAddress field in TransferStartMessage which should be optionally returned by the DataFlowController#initiateFlow API.
Which Areas Would Be Affected?
DPF, dsp-specification
Why Is the Feature Desired?
Preliminary work for supporting for EDR in the new dataspace protocol

please don't duplicate issues @wolf4ood see #2727

Thanks @juliapampus  i didn't spot it


:child prefix

First, Tailwind is awesome. Thank you very much!!
One case where I think TW's output is error prone (and ugly), is with repeating elements, such as this example:

    #photography
    #travel
    #winter

This could be solved by extracting a CSS components, but that is not ideal when the rules will only be used in on instance.
Feature Proposal
I propose adding another prefix child:, as in child:rounded-full.
This applies the rule to all of the immediate children of the element, with a lower precedence than classes applied to items themselves, so it can be overruled as needed. Done by adding to TW inheritance rules:
child\:rounded-full > * { border-radius: 9999px; }.
This will play to the strengths of Tailwind, and be a good argument for Tailwind over inline CSS. Many times I have wanted to apply a rule to the children, and if it could be through a prefix, that would be amazing.
In addition, you could add a all:rounded-full which applies to all descendants, and in this way solve cases such as here :

    Active

    Tab

The only downside I see is that it will add to the size of uncompressed Tailwind, perhaps even more than other prefixes. But for regular builds that should not be an issue, and the benefit would be enormous.
Please consider it a few minutes before dismissing - I think it could make for a HUGE difference to Tailwind.
Thanks again!

Might explore adding this to core in the future but in the mean time check this plugin out, it does just what you're looking for:
https://github.com/benface/tailwindcss-children

One case where I think TW's output is error prone (and ugly), is with repeating elements, such as this example:

    #photography
    #travel
    #winter

In this example you could also add the classes mr-2 last-child: mr-0  to achieve the same effect, but this just as ugly. This is how I would write it when using frameworks like Angular or Vue, using their looping (ngFor/v-for) utilities.

Closing right now since no concrete plans to add this to core.


[WIP] Add support for OpenShift Devfile components

Co-authored-by: Anand Kumar Singh<EMAIL_ADDRESS>Co-authored-by: Philippe Martin<EMAIL_ADDRESS>
What type of PR is this:

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

Fixes #
PR acceptance criteria:

[ ] Unit test

[ ] Integration test

[ ] Documentation

How to test changes / Special notes to the reviewer:

IBM K8s failure is related to because there was an abrupt logout from the cluster.
While the following tests failed on OC:
Summarizing 3 Failures:
  [FAIL] odo dev command tests 1. devfile contains composite apply command when odo dev is running [It] should execute the composite apply commands successfully
  /go/odo_1/tests/integration/cmd_dev_test.go:1684
  [FAIL] odo dev debug command tests when a composite apply command is used as debug command [It] should execute the composite apply commands successfully
  /go/odo_1/tests/helper/helper_oc.go:34
  [FAIL] odo dev command tests checking if odo dev matches local Devfile K8s resources and remote resources when odo dev is executed to run a devfile containing a k8s resource with apply command [BeforeEach] should have deleted the old resource and created the new resource
  /go/odo_1/tests/integration/cmd_dev_test.go:562

  Expected
      <[]uint8 | len:124, cap:124>: [78, 65, 77, 69, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 82, 69, 65, 68, 89, 32, 32, 32, 85, 80, 45, 84, 79, 45, 68, 65, 84, 69, 32, 32, 32, 65, 86, 65, 73, 76, 65, 66, 76, 69, 32, 32, 32, 65, 71, 69, 10, 109, 121, 45, 111, 112, 101, 110, 115, 104, 105, 102, 116, 45, 99, 111, 109, 112, 111, 110, 101, 110, 116, 32, 32, 32, 48, 47, 49, 32, 32, 32, 32, 32, 49, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 48, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 55, 49, 115, 10]
  not to contain substring
      <string>: my-openshift-component


Multiple compile failures on 32-bit Windows

On 32-bit windows, attempting to compile Anvil results in errors that look like this:
12>C:\dev\Anvil\src\wrappers\buffer.cpp(394): error C2664: 'void Anvil::DebugMarkerSupportProvider<Anvil::Buffer>::set_vk_handle(void *)': cannot convert argument 1 from 'VkBuffer' to 'void *'
12>C:\dev\Anvil\src\wrappers\buffer.cpp(394): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
12>fence.cpp
12>framebuffer.cpp
12>graphics_pipeline_manager.cpp
12>C:\dev\Anvil\src\wrappers\buffer_view.cpp(66): error C2664: 'void Anvil::DebugMarkerSupportProvider<Anvil::BufferView>::set_vk_handle(void *)': cannot convert argument 1 from 'VkBufferView' to 'void *'
12>C:\dev\Anvil\src\wrappers\buffer_view.cpp(66): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
12>image.cpp
12>C:\dev\Anvil\src\wrappers\command_pool.cpp(71): error C2664: 'void Anvil::DebugMarkerSupportProvider<Anvil::CommandPool>::set_vk_handle(void *)': cannot convert argument 1 from 'VkCommandPool' to 'void *'
12>C:\dev\Anvil\src\wrappers\command_pool.cpp(71): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
12>C:\dev\Anvil\src\wrappers\descriptor_pool.cpp(210): error C2664: 'void Anvil::DebugMarkerSupportProvider<Anvil::DescriptorPool>::set_vk_handle(void *)': cannot convert argument 1 from 'VkDescriptorPool' to 'void *'
12>C:\dev\Anvil\src\wrappers\descriptor_pool.cpp(210): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

Upon further investigation, it appears that the issue is that all of these failures try to cast the type defined by the VK_DEFINE_NON_DISPATCHABLE_HANDLE macro to a void *. Here is the definition for that macro:
#if !defined(VK_DEFINE_NON_DISPATCHABLE_HANDLE)
#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
        #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object;
#else
        #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object;
#endif
#endif

This works fine on 64-bit systems because any pointer can be cast to a void *, but on 32-bit systems obviously a 64-bit uint can't generally be casted to a void *.

Good catch. I'm going to submit a fix for this tomorrow, but if you can propose a PR which fixes this earlier, I'll be happy to merge it in.

@DominikWitczakAMD I don't unfortunately, sorry :(
I'm actually compiling it for 64-bit for my usecase anyway ... I just-so-happened to accidentally compile it in 32-bit mode and thought I should report the fact that it isn't working.

Should no longer reproduce with the latest version. Please reopen if you're still seeing the issue.


unsubscribe do not work,please check!

unsubscribe do not work,please check!
my unsubscribe topic is 'topic/#'
apollo broker can work with my php client
0.6.2

please paste your sub/unsub process.  I check it use emqttc client and could work well, test code below:
{ok, C} = emqttc:start_link([{client_id, <<"testClient">>}]).
emqttc:subscribe(C, <<"topic/#">>).
emqttc:publish(C, <<"topic/a">>, <<"haha">>).
emqttc:unsubscribe(C, <<"topic/#">>).
emqttc:publish(C, <<"topic/a">>, <<"haha">>).

my php client is process as the above, but still work well, if i unsubscribe a topic ,I still receive it later.
I tried mosquitto and apollo work well.

past your php code here

php mqtt client issue. emqttd broker did not receive any UNSUBSCRIBE packet.


Apply alertmanager-secret.yaml doesn't take effect

What did you do?
customize alertmanager configure on kube-prometheus using #alertmanager-configuration chapter on doc: the jonnet file is like
```, then using `jsonnet` create manifest, then apply the alertmanager-secret.yaml using
```shell
kubectl apply -f manifests/alertmanager-secret.yaml

the output shows that the secret is configured.
And I have checked the secret of alertmanager-main in monitoring namespace, and the content is changed to what I want, but the configuration of alertmanager in UI of alertmanager is not changed.
What did you expect to see?
new configuration of alertmanager has been taken effect.
What did you see instead? Under which circumstances?

Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-13T22:27:55Z", GoVersion:"go1.9.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.5", GitCommit:"32ac1c9073b132b8ba18aa830f46b77dcceb0723", GitTreeState:"clean", BuildDate:"2018-06-21T11:34:22Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:

kubeadm

Manifests of alerting.jsonnet :

local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') + {
   _config+:: {
     namespace: 'monitoring',

     alertmanager+: {
       config: |||
         global:
           resolve_timeout: 10m
         route:
           routes:
           - match:
               alertname: DeadMansSwitch
             receiver: 'null'
         receivers:
         - name: slack_devops
          ...
       |||,
     },
   },
 };

# just generate alertmanager related manifests
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) }

Could you check the Alertmanager logs? This sounds like the config may be malformed and was thus rejected to be reloaded.


Is it possible to specify the page format?

Hello,
I just came across PDFKit which sounds very interesting, but I noticed that the outputted pdf's dimensions are 215,9x279,4mm. As I'd like to produce printable pdfs, I'd like to know if it is possible to specify custom dimensions, like A4 format for example?
Thanks for your answer,
François

Hey there, the page is missing!
Thanks
A

Please fix the 404 for the predefined page sizes!

The 404 should be fixed in #704 if it is merged. In the master branch, that page already exists.

I believe the correct link is this one

Is there the potential to specify a custom shape rather than an A4? From an svg outline for example?


Support MX4 E3M0 format and add stochastic rounding

To make all the tests work, largest_p2_lt_max_abs = torch.floor(torch.log2(max_abs + eps)) in mx_tensor.py should use torch.ceil instead. (for E3M0)

looks good! it looks like CI is failing because the SQNR thresholds are set too high for e3m0.  If you think this is expected, you can lower the thresholds for this dtype.  If you don't think this is expected, you can try to find/debug numerics issues.

looks good! it looks like CI is failing because the SQNR thresholds are set too high for e3m0. If you think this is expected, you can lower the thresholds for this dtype. If you don't think this is expected, you can try to find/debug numerics issues.

The previous SQNR thresholds were based on using the "Even" mode to calculate the scaling factor. But the default "Floor" mode has less accuracy so it failed the tests. I have updated the thresholds to fit all modes in the latest commit.


Fix postMessage({}, '*') causes slackin to throw

Non-slackin code may postMessage() to the same window (in my case, a
Twitter button), and unlike slackin, may choose to send an object as a
message rather than a string. Unlike strings, not all objects have a
.substr() method, so slackin doing e.data.substr() throws an exception:

@laughinghan you're on 🔥


Curse/Twitch

Now that curse and twitch have merged, I think the addon urls are not working. when i run, I get a screen full of red, on the addon list, with failures to find the url in my terminal

Can't reproduce. Just updated big-wigs from curse with the normal curse url.

What do you need to see? screenshot, or something, to help you track this down.  Shows 53 installed addons, but i only actually have 20, so wondering what is up.