Alignment of spatially resolved multi-omics with non-overlaping variables

Excellent work, there's no doubt that CAST would be applied in various spatially resolved multi-omics data analysis tasks.
However, I wanted to know if conducting an alignment between MALDI-MSI and Visium data using CAST is possible, as these two modalities don't share any common variables.
Thanks a lot!

Thank you for the note. My short answer is that I do not know. You are welcome to test CAST on your data. I am happy to assist if you encounter any technical issues in this process.
Our self-supervised learning scheme and models have succeeded with integrating translatome and transcriptome, we really wanted to test proteomics and optimize based on that but we did not have such data by the date of paper acceptance.
In my recent review paper, I also mentioned that a common challenge in the field is dealing with weakly linked modalities. It is almost non-quantitative how robust the batch correction effects could be for a self supervised learning model. Alternatively, you can supply it with human input and expertise, e.g. a curated low-dimensional embedding that you see better correspondence between these modalities. We encourage users to test CAST using integrated embeddings (output from single-cell integration methods) instead of raw counts to see how it goes.

Thank you for your reply. We performed MALDI-MSI-based spatial metabolomic (not proteomic) sequencing on serial sections from the same FFPE block used for Visium-based spatial transcriptomic sequencing. Is the algorithm compatible with this type of task? Could I simply apply the steps that were conducted when doing the alignment between STARmap and MERFISH demonstrated on one section of your uploaded tutorial?

RuntimeError                              Traceback (most recent call last)
Cell In[74], line 7
3 from CAST import CAST_MARK
4 from CAST.visualize import kmeans_plot_multiple
----> 7 embed_dict = CAST_MARK(coords_sub, exp_sub, output_path, graph_strategy='delaunay')
8 kmeans_plot_multiple(embed_dict, ['MALDI-MSI', 'Visium'], coords_sub, 'MASH-1494', output_path, k= 8, dot_size = 2, minibatch=True)
File ~/miniconda3/envs/cast_demo/lib/python3.9/site-packages/CAST/main.py:46, in CAST_MARK(coords_raw_t, exp_dict_t, output_path_t, task_name_t, gpu_t, args, epoch_t, if_plot, graph_strategy)
44 ### Training
45 print(f'Training on {args.device}...')
---> 46 embed_dict, loss_log, model = train_seq(graphs=inputs, args=args, dump_epoch_list=[], out_prefix=f'{output_path_t}/{task_name_t}_seq_train', model=model)
48 ### Saving the results
49 torch.save(embed_dict, f'{output_path_t}/demo_embed_dict.pt')
File ~/miniconda3/envs/cast_demo/lib/python3.9/site-packages/CAST/CAST_Mark.py:54, in train_seq(graphs, args, dump_epoch_list, out_prefix, model)
52 with torch.no_grad():
53     N = graph_.number_of_nodes()
---> 54     graph1, feat1 = random_aug(graph_, feat_, args.dfr, args.der)
55     graph2, feat2 = random_aug(graph_, feat_, args.dfr, args.der)
57     graph1 = graph1.add_self_loop()
File ~/miniconda3/envs/cast_demo/lib/python3.9/site-packages/CAST/models/aug.py:48, in random_aug(graph, x, feat_drop_rate, edge_mask_rate)
45 feat = drop_feature(feat, feat_drop_rate)
47 ng = dgl.graph([], device=graph.device)
...
File ~/miniconda3/envs/cast_demo/lib/python3.9/site-packages/dgl/backend/pytorch/tensor.py:338, in zerocopy_from_numpy(np_array)
337 def zerocopy_from_numpy(np_array):
--> 338     return th.as_tensor(np_array)
RuntimeError: Could not infer dtype of numpy.int64


this.field vs this.siblingField?

If I understand correctly, this.field should work for any field while this.siblingField should work for... siblings. I'm asking because I just tried using both in and only this.siblingField returns a value in the place I'm using it (with a flat schema).
If this sounds like a bug let me know and I'll try to make a repro.

nevermind, my misunderstanding/was too quick to open an issue :).. for the record, I forgot to take into account nested objects inside the schema itself...
on this occasion, thank you for your work Aldeed!


[Question] There was an error sending this message to your bot: HTTP status code GatewayTimeout

AppID = 51931722-cd5e-474f-8cdc-43612b0dd4e8
BotHandle = bots_m3tech
URL = https://bots.m3tech.com.pk/api/messages
My Bot was working perfectly today till morning 10:00 AM but now i am getting this error "There was an error sending this message to your bot: HTTP status code GatewayTimeout".
Bot isn't responding on Skype and when i checked on developer bot framework Test it shows me this error. My bot is also working fine on Bot Framework Emulator. Kindly Help.

@SyedAbdullahQamar For reference, are you using .NET or Node.js SDK?

Also is this only happening with the first message you are sending? I tested you bot and this was the case for my test

Thank you guys. Now my bot is working fine. I don't why it was giving errors yesterday. But i have one more query. My bot didn't respond on the first message we send but it respond to the second message. can u tell me why it is happening?

Closing this issue because the original question was answered.
For your next question what channel is this happening on?

It is happening on Skype.
Actually i added my bot to Skype only, i don't know if it will do the same problem with other channels also.

How are you hosting your bot?

Hosting my bot on Virtual Machine.

Are you using a valid certificate?
The Bot Framework requires that the x.509v3 certificate exposed by your endpoint be current and valid. Most of the checks for "current and valid" are standard checks for server SSL certificates: the Certificate Name must match the hostname, it must not be expired, it must not be listed in a CRL, it must have the correct set of EKUs, etc.
Most importantly, your SSL certificate must chain to a root certificate authority trusted by Microsoft. The latest list of these CAs is available here: http://social.technet.microsoft.com/wiki/contents/articles/31634.microsoft-trusted-root-certificate-program-participants-v-2016-april.aspx

Yes yes. I am using a valid certificate because if i am not using a valid certificate i will never be able to integrate my bot to Skype.


Link Catalog entry to source code folder.

Would be great to not have to seach for the source code for a particular catalog entry and instead just be able to follow a link.

There is a URL section as part of a catalog that could be populated with that info, but I think we envisioned that URL to contain link to the product that is in the catalog.

Closing due to inactivity, please reopen if you think this is still relevant to current releases & important.  We are also reworking catalog service in 1.6+.


Check permissions with PermissionChecker

With this PR we are trying to address the issue described #140 where apps targeting SDKs lower than M are granted the permissions even though the user has rejected it through the OS settings.
We are now using the newer PermissionChecker class and handling the permissions denied in a more graceful way.

Hello @Serchinastico
I have tested permission-checker branch's code.
I didn't approve change the DexterActivity.java file.
Because I found another issue about the special situation what I pointed in #140.
Test Device: Nexus 5 (6.0.1)
Test Repo: sample in permission-checker branch
build.gradle config: targetSdkVersion 15
Reproduce issue step:

Please disable Contacts permission in the setting.
Open the app and clicked CONTACTS button it will show request permission dialog by system.
After clicked Allow button, the app will restart.
When I click Back key the app will crash. This is the crash log. Here is the activities hierarchy after restart.

Reproduce issue gif:

I think we shouldn't invoke the requestPermissionsToSystem(Collection<String> permissions) method hastily when the device is running Android 6.0 or higher (app's targetSdkVersion is 15 ).
BTW: I just tell the user to grant the permission manually in setting when the device is running Android 6.0 or higher (app's targetSdkVersion is 15 ).

Hi @johnwatsondev
First of all, sorry for the huge delay, my fault.
I think the crash you are experiencing was somehow unrelated to this issue and it's just a NPE that should be fixed by now in the most recent release of Dexter. Anyhow, I see your point on avoid system calls when the target SDK is < 23 or the device SDK is < 23, we are also being informed that something isn't going the way it should when we receive the PERMISSION_DENIED_APP_OP response so we are now going to put those permissions in a different impossibleToGrantPermissions list so that we don't request them to the system.
I just did some tests with:

target SDK = 15 & device SDK = 23
target SDK = 23 & device SDK = 22
target SDK = 23 & device SDK = 23

It looks like, with the flow you described, Dexter works just fine, that is, it considers the contacts permission as permanently denied (1 and 2) and the others as granted (1 and 2), or asks for them in 3.
I just updated the PR.

I'm still seeing some issues if the user decides to put the app in background and coming back from the app list but that's something that has been there for a while and therefore we are not changing with this PR

You can find a snapshot version of the library with version 4.1.2-SNAPSHOT in the snapshots maven repository just in case you want to test it out.


load more seems to doesn't work

FlatList Version
1.5.14
Describe the bug
Load more seems not to work even though I specified both loadMoreItems and hasMoreItems, see the code snipped below.
The UI lib I'm using is MUI material
<Box
      bgcolor={'white'}
      border={'solid 1px #d9d9d9'}
      overflow={'auto'}
      display={'flex'}
      flex={1}
      pr={2}
      pl={2}
      flexDirection={'column'}
      maxHeight={'46vh'}
      borderRadius={2}
      id={'scroll-container'}
    >
      ...
      {initialLoading ? (
        <Box
          display={'flex'}
          flex={1}
          justifyContent={'center'}
          alignSelf={'stretch'}
          alignItems={'center'}
        >
          <Loader />
        </Box>
      ) : (
        <FlatList
          list={tasks}
          renderItem={(t: Task) => <TaskItem key={t.id} task={t} />}
          filterBy={(t: Task) => !!t.name.match(searchValue)}
          renderWhenEmpty={() => <EmptyScreen />}
          loadMoreItems={() => console.log('QUADRO')}
          hasMoreItems={true}
          renderOnScroll
        />
      )}
    </Box>

Steps to reproduce the behavior
In the case you need an access to the repository to bebug the problem, provide me with an email
Expected behavior
Scrolling to the bottom triggers loadMoreItems function
Desktop:

OS: Windows 10
Browser: Chrome
Version: 114.0.5735.248 (Official Build) (64-bit)

It will only work inside a scrolling container. As far as I can tell the flex box will try to fit content instead of scrolling. Try to wrap the list in a scrolling container


[Do-not merge][TestBot] Configure an endpoint for each bot

Proposed Changes
[WIP]

Remove the switch-based bot assignation and its variable, and replace it with a Func<string, IBot> service.
Add a different endpoint for each bot to the controller.

Pull Request Test Coverage Report for Build 61367

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 69.221%

Totals

Change from base Build 61282:
0.0%

Covered Lines:
4210

Relevant Lines:
6082

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll


API cache headers

Does the API sets any cache header flags?

I would have expected some cache control headers :https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
The data are kinda fixed aren't they? so some cache flag could be for sure set. Atm the browser loads everything all the time, which is like 1M

closing in favor of existing cmu-delphi/delphi-epidata#159


add udp protocol support

For a long time I could not understand why my playlist is not loaded into the program, as it turned out, the reason is that all the links in the list are in this format udp://@<IP_ADDRESS>:1234 and, as I understand it, the udp protocol is not supported. could you add it?
There is also one more wish, there is a ffprobe program that allows you to get information about the stream, including the name of the channel, this would allow you to automatically rename channels in the lists, or generate a custom name.

Never had links with udp so far.
Can you give me some as an example for testing?
ffprobe: So you have a list with unnamed links and with ffprobe you get the name?

here is an example file
239.1.1.x.zip
when you import it, the error "Wrong data structure!" occurs, but if you replace udp with http in the links, the file will open. and when it opens in the table, there are only two columns of name and url, how to add the rest, such as a logo, a group?
ffprobe: yes, as you will see in my playlist, all channels are without names, the file is obtained by scanning the provider's local network.

I made a quick fix, please try it. Do the links play in vlc? I have a black screen in vlc when I try.
PlaylistEditorIPTV_v1.6.7d.zip

thanks, everything works fine and opens in vlc, your link is unlikely to open because it works within my provider

Do you have a working ffprobe parameter string to get the name?

in python i was getting data like this
ffprobe -v quiet -print_format json -show_programs udp://@<IP_ADDRESS>:1234
program output in json format, and then parsing
data.zip

Would be service_name tag as the channel name?

yes, this is the name of the channel, again it depends on the service provider, whether he has registered this tag.
I also ran into the problem that ffprobe does not extract data immediately, I had to first connect to the stream in the background for 5-10 seconds, and then extract the json data

ok, I will make a test version an give it to you for testing. Timeouts is always a pain for automatic scripts

I don't have a working stream url with a title from ffprobe to check the code. Do you have some for me?

Unfortunately, I did not find any public address where such information would be.

Please try it. Right click on name cell -> Get Name
PlaylistEditorIPTV_v1.6.7d.zip

At the first start, the item in the menu was, when it was restarted, it disappeared, I did not really have time to check it. How to return it?

like the numbering function, click on the cell where you would like the Name copy to. Column 1 and 5  "Name" and "Name2"

does not work, ffprobe in PATH

PlaylistEditorIPTV_v1.6.7d2.zip
should work on any cell now. If not, try to copy ffprobe.exe to the program dir

does not work, there is no menu item. Where does the program store the settings?

PlaylistEditorIPTV_v1.6.7d2.zip
there is no restriction in the menu anymore, the version is <IP_ADDRESS> in header, thee ffprobe path is not stored in settings

PlaylistEditorIPTV_v<IP_ADDRESS>d.zip
next try

does not work, does not receive data, even after I connect to the stream and watch it.
response ffprobe: {}

not surprised, please try
ffprobe -v quiet -print_format json -show_programs
in cmd shell. If you don't get anything, what is the working parameter set and the respond in cmd?

here is an example of a public thread
ffprobe -v quiet -print_format json -show_programs https://okkotv-live.cdnvideo.ru/channel/Sony_Turbo.m3u8
but there is no tag with the name of the channel
and this command returns data, but only within my provider
ffprobe -v quiet -print_format json -show_programs udp://@<IP_ADDRESS>:1234

look
https://user-images.githubusercontent.com/4858784/151940321-e5051bbc-6b2e-490b-af1b-48e7a4f364e1.mp4

thanks, the ffprobe process is closing too fast I think.

Great! but here is the codepage

ok.....   will look into it

PlaylistEditorIPTV_v<IP_ADDRESS>d.zip
next version. Did you see some other UI elements with encoding problems (unicode chars)?

again problems with the codepage

I use UFT8
Can you write the ffprobe output to a file and give it to me?

default codepage

after changing the codepage to utf8 (chcp 65001)

data.zip

PlaylistEditorIPTV_v<IP_ADDRESS>d.zip
I have set the encoding of the cmd shell to UTF8, lets fingers X
The ffprobe response is really slow, I could not get a crash so far.

works, but only with those channels to which the connection was made, the socket is open

PlaylistEditorIPTV_v1.6.7.zip
Please try

nothing has changed, it also hangs if it cannot receive data. and without prior connection does not receive data.
https://user-images.githubusercontent.com/4858784/152468593-b03e63de-6321-4d17-b4cd-3a2c99918c50.mp4

https://user-images.githubusercontent.com/35309607/152597371-a80fe2a4-93e2-4566-9bfa-a3f3aed31392.mp4
I  guess ffprobe crash with your link?

there is no failure. This is not the first time I've written about the fact that getting data from an HTTP link and from UDP is slightly different. for http there is no need to pre-connect to the stream. but for udp, you must first connect to the stream, and then request data using ffprobe.
here is an example
https://docs.microsoft.com/ru-ru/dotnet/api/system.net.sockets.udpclient.receive?ranMID=46131&ranEAID=a1LgFw09t88&ranSiteID=a1LgFw09t88-v8Q2uuBWdnGmaDoNff4_QA&epi=a1LgFw09t88-v8Q2uuBWdnGmaDoNff4_QA&irgwc=1&OCID=AID2200057_aff_7806_1243925&tduid=(ir__rzsxsshia0kfqxukkk0sohz3zu2xtx0wb9u920av00)(7806)(1243925)(a1LgFw09t88-v8Q2uuBWdnGmaDoNff4_QA)()&irclickid=_rzsxsshia0kfqxukkk0sohz3zu2xtx0wb9u920av00&view=net-6.0
I used about the same code in python to get data about the stream, everything is simple with http links, but there were problems with udp.

I saved the last code in the dev_ffprobe branch, the method is in classhelp GetFFrobeStreamName

at least I could reproduce your "crash" now. Its not a crash, just waits for response indefinitely. I send some data to UPD in advance, no change.
I did not much with python, but can you give me the code to look at the structure?

https://github.com/moran-x/multicast-scan

the UDP has a 5s timeout, give it a try
PlaylistEditorIPTV_v<IP_ADDRESS>d.zip

does not receive data, even if it first connects to the stream

do you have a idea how I can test this?

no, unless your ISP broadcasts IPTV in a UDP stream.

PlaylistEditorIPTV_v1.7d.zip
I made a logfile writer. Pease send me the PlaylistEditorlog.txt file - Thanks

Before connecting to a stream in the IPTV viewer
Log Entry : 12:34:33 PM Monday, February 21, 2022
  :
  :PlaylistEditor.ClassHelp.UDPSentRec
 Exception! <IP_ADDRESS>:1234
-------------------------------

Log Entry : 12:34:33 PM Monday, February 21, 2022
  :
  :PlaylistEditor.ClassHelp.GetFFrobeStreamName
 UDP Answer False
-------------------------------

After connecting to a stream in the IPTV viewer
Log Entry : 12:36:20 PM Monday, February 21, 2022
  :
  :PlaylistEditor.ClassHelp.UDPSentRec
 Exception! <IP_ADDRESS>:1234
-------------------------------

Log Entry : 12:36:20 PM Monday, February 21, 2022
  :
  :PlaylistEditor.ClassHelp.GetFFrobeStreamName
 UDP Answer False
-------------------------------

Thanks,  if I understand your program correctly, it is listening to the IP:port for up to 10 s and does not send something, right?

Спасибо, если я правильно понял вашу программу, она слушает IP:порт до 10 с и ничего не отправляет, так?

Yes
here is an example of working with multicast on c#
https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.multicastoption?ranMID=46131&ranEAID=a1LgFw09t88&ranSiteID=a1LgFw09t88-gznHSov7JkK7ScjfW7bitw&epi=a1LgFw09t88-gznHSov7JkK7ScjfW7bitw&irgwc=1&OCID=AID2200057_aff_7806_1243925&tduid=(ir__rzsxsshia0kfqxukkk0sohz3zu2xt3d9s0u920av00)(7806)(1243925)(a1LgFw09t88-gznHSov7JkK7ScjfW7bitw)()&irclickid=_rzsxsshia0kfqxukkk0sohz3zu2xt3d9s0u920av00&view=net-6.0

наверное развалится. Если udp что-то получает, он возвращает true, если он не работает, процесс ffprobe не отвечает, и тайм-аут не работает.
И у копипаст есть проблемы PlaylistEditorIPTV_v1.7.01d.zip

does not work
Log Entry : 10:43:20 AM Wednesday, February 23, 2022
  :
  :PlaylistEditor.ClassHelp.GetFFrobeStreamName
 UDP Answer 2 False
-------------------------------

PlaylistEditorIPTV_v1.7.03d.zip
next try

cannot fix without working links - closed


Update boringssl to the latest

Fixes https://github.com/grpc/grpc/issues/27604
Change the branch name of boringssl to main-with-bazel.
This needs to be back ported to v1.41.x release branch since it has a build error now.

grpc_build_artifacts_multiplatform: running


[dunfell][gatesgarth][hardknott][honister] {rolling} Upgrade to 2021-07-15 release

https://discourse.ros.org/t/new-packages-for-ros-2-rolling-ridley-2021-07-15/21401

Merged to other branches as well:
2f761ae70..e7a9ce20e  dunfell -> dunfell-next
204c8f3bb..3ed9d319b  gatesgarth -> gatesgarth
204c8f3bb..3ed9d319b  gatesgarth -> gatesgarth-next
a67f88a57..72af88f2d  hardknott -> hardknott
a67f88a57..72af88f2d  hardknott -> hardknott-next
5cdac697d..53a15fb7e  master -> master
5cdac697d..53a15fb7e  master -> master-next


Error when trying to add secret after being deleted in Azure keyvault

Azure Portal:
Feb-05-2002:
Windows 10:

Using the Azure portal UI, I deleted a secret and then tried to add it back; keep getting the error:

There was a conflict while creating/updating your secret.

I suspect your Key Vault has soft-delete enabled. When you soft-delete a secret, it's marked as deleted and no longer appears in the Portal, but its name and history of values are retained. You'll see a conflict error if you try to reuse that name.
You can manually recover, or permanently delete, a soft-deleted secret. These operations are currently not available in the Azure Portal, where you may see this warning:

They're possible with the SDK, however: see the documentation on recovering a deleted secret and purging a deleted secret.
Also, for the benefit of future readers who may be just getting started with Key Vault, if one only wants to change a secret's value, it isn't necessary to recreate that secret--secrets are versioned, and their latest value can be updated, in the Portal or with the SDK's set_secret method.

Closing this because it concerns the Azure Portal, not the SDK.

For anyone who gets here from a Google search (like me) you can now purge/restore deleted secrets by clicking on "Manage deleted secrets"

In Azure KeyVault, click "Manage Deleted Secrets" and the trick is to click the 'Load more' link at the bottom!

In Azure KeyVault, click "Manage Deleted Secrets" and the trick is to click the 'Load more' link at the bottom!

you safe my life thanks


template: adding formatTime function to TemplateExpander

This PR adds a formatTime function in the TemplateExpander. As it stands now, the way to get the current time of a PromQL execution is to do something like this: {{ query "time()" | first | value || humanizeTime }}. This works great but only allows one format of time to be expressed. I'm proposing a simple function that does virtually the exact same thing as humanizeTime except that it allows you to pass in the format you expect to get back like this: {{ query "time()" | first | value || formatTime "2006-01-02 15:04:05" }}

Thanks, I think it would be better to instead add a "toTime" function that takes a unix epoch time and can convert it to a time.Time, that way other methods are available. (Formatting would look something like {{ (query "time()" | first | value | toTime).Format("...") }})
(This is similar to what is possible in alertmanager, e.g. https://github.com/prometheus/alertmanager/issues/1188#issuecomment-904624486)

I can do that.

@dgl done.

@roidelapluie I have broken out the pieces I could into a floatToTime function. I had to leave the convertToFloat in both functions as the converted float64 is used directly in humanizeTimestamp. Although, I don't know how that error would ever be hit. I have also added some tests. I am unable to add test cases for testing a float64 against the two functions math.IsNaN or math.IsInf. For math.IsNan, the function literally is return f != f and for math.IsInf the compiler fails because the float64 overflows. Lastly, I updated the documentation to include a "Time" section since now there are two functions directly related to time. Let me know if I missed anything.

@roidelapluie I have separated out the pieces of the functions that I could. I had to leave convertToFloat out of the shared function since the converted float is used in an error case in humanizeTimestamp. Everything else has been broken out though. I also added tests and updated the documentation. I added a new "Time" section to the documentation since there are now two functions directly related to time. Let me know if I missed anything.

@roidelapluie is there anything I missed here?

@roidelapluie requests resolved.

Thanks!


Build package using pybuild

Changes

Use latest pre-commit configuration
Apply linting etc. from pre-commit config
Update Dockerfile to use Bullseye (Python 3.9)
Replace Pipfile with setup.cfg for pybuild Debian packaging support
Replace README with ReST version (moved original to docs/)
Remove hard-coded dependencies from control file
Remove .install file in favour of automatic handling by pybuild
Add lintian override for new file in /usr/bin
Update service to use new path
Remove old docs dir
Remove everything not needed in __init__.py
SDK dependency is now vendored as it was failing to build somewhat mysteriously in order for tests to run
Add start-further entrypoint to replace pt-furter in ui mods
Modify directory structure
Replace installing lib with python path modification with proper package structure
Add missing tests for shell & executable runners, temporarily disable flaky keyevent tests

Notes
This PR requires https://github.com/pi-top/pi-top-Device-Manager/pull/118 for getting serials (without depending on the SDK)
This replaces pt-further in UI mods

I think we can ignore codecov complaints for now. Coverage has dropped a bit due to addition of untested open_browser and skipping of flaky keyevent tests, which I will try to resolve soon. I added a couple of missing tests but it wasn't enough to offset.


Derive Clone, Copy for SQL types

Hello, I have found that is is currently not possible to construct certain queries (such as joining tables based on result of a function like ST_Intersect) due to Geometry/Geography not implementing Clone.
Given that Diesel implements both Clone and Copy for its SQL types and that they are ZSTs, I have decided to add derives for them here as well.

Thanks for PR, available in 2.4.1


Authentication needed for build queue url

This part needs auth:
    def wait_for_queue(self, url):
        log.debug("Queue URL: {}".format(url))
        queue_item = {}
        while "executable" not in queue_item:
            log.info("Waiting for jenkins build in queue")
            sleep(1)
            r = requests.get(url + "api/json")

@oleorhagen


"Delete Current Step" button

Move the placement of the "Delete Current Step" button so that it is an X next to the editor row.
Confirm exact functionality on this.  Functionality already exists from Neil

This will delete everything related to the current step (equation and annotations).

clos ethis bug out...  there is no needed case for the delete current step button

A trash can icon was added to the "current step" that deletes what's in the current line and brings the previous line into the editor.


dsniff

Trying to install dsniff, having this error at the end:
==> Patching
patching file arpspoof.c
patching file dnsspoof.c
patching file filesnarf.c
patching file macof.c
patching file pcaputil.c
patching file record.c
patching file sshcrypto.c
patching file sshmitm.c
patching file sshow.c
patching file tcp_raw.c
patching file tcp_raw.h
patching file tcpkill.c
patching file tcpnice.c
patching file trigger.c
patching file trigger.h
patching file urlsnarf.c
patching file webmitm.c
patching file webspy.c
==> ./configure --prefix=/usr/local/Cellar/dsniff/2.4b1 --mandir=/usr/local/Cellar/dsniff/2.4b1/share/man --with-libnet=/usr/local --with-libnids=/usr/local
==> make
                                                        ^
6 errors generated.
make: *** [decode_mountd.o] Error 1
make: *** Waiting for unfinished jobs....
rpcgen -c mount.x -o mount.c

No support is provided for formulae in this repository, it is purely an archive for things that no longer work. Sorry.


Regions: minLength, maxLength, resize options not working/buggy

Bug description
Setting minLength & maxLength options for Region seems to have no effect whatsoever. Setting resize: false will still allow the user to resize the Region by dragging it to either end or "shaking" within the waveform container.
Environment

Browser: Chrome

Minimal code snippet
ws.on('decode', () => {
wsRegions.addRegion({
start: 0,
end: 30,
minLength: 30,
maxLength: 30,
content: 'First region',
color: randomColor(),
resize: false,
drag: true,
})
Expected behaviour
The user should not be able to resize the region under or above 30 seconds. The user should not be able to alter the region duration at all.
Obtained result
The user is still able to resize the region duration without any limits regardless if resize is set to false and/or min/maxLength is set to certain values.

Does it say anywhere in the docs that Regions support minLength and maxLength?

I can see them mentioned in the options here https://wavesurfer-js.org/plugins/regions but perhaps I have misunderstood

Oh, I see. That's an old page refers to the v6 version. It's not linked anywhere on the website but it's still googlable apparently. I'll update it.
As for resizing happening when dragging over the edge, it's a bug indeed. Thanks for the report.


About the vscode can not save the problem

VSCode Version: Code 1.19.0 (816be6780ca8bd0ab80314e11478c48c70d09383, 2017-12-14T12:06:43.492Z)
OS Version: Windows_NT x64 10.0.16299
Extensions:

Extension
Author (truncated)
Version

project-manager
ale
0.23.1

path-intellisense
chr
1.4.2

bracket-pair-colorizer
Coe
0.10.14

vscode-svgviewer
css
1.4.3

vscode-markdownlint
Dav
0.12.0

vscode-eslint
dba
1.4.3

githistory
don
0.2.3

vscode-html-css
ecm
0.1.8

tslint
eg2
1.0.24

vscode-npm-script
eg2
0.3.3

git-project-manager
fel
1.4.0

auto-close-tag
for
0.5.5

auto-rename-tag
for
0.0.15

code-runner
for
0.8.5

beautify
Hoo
1.1.1

vscode-git-tags
how
1.1.2

githd
hui
1.0.0

output-colorizer
IBM
0.1.2

docthis
joe
0.6.0

vscode-commitizen
Kni
0.5.0

Angular-BeastCode
Mik
5.1.12

vscode-fileheader
mik
0.0.2

HTMLHint
mka
0.4.0

vscode-filesize
mkx
1.0.0

sublime-keybindings
ms-
3.0.3

debugger-for-chrome
msj
4.0.0

color-highlight
nau
2.3.0

vscode-extension-auto-import
Nuc
1.4.1

chai-spec-generator
rin
0.4.0

LiveServer
rit
3.0.1

vscode-icons
rob
7.19.0

git-merger
sha
0.3.6

stylelint
shi
0.31.0

open-in-browser
tec
1.1.0

gitblame
wad
2.2.0

JavaScriptSnippets
xab
1.5.0

Steps to Reproduce:

After a period of use, I can not save it.
I do not know what plug-in conflict
I try to remove the plug-in, there is still a problem
I restart it and I can work again

Reproduces without extensions: Yes/No

@jiayisheji
Are you saying that you cannot save any files after a while?
Does it matter how many files were the type you have open?
Also did you disable all the extensions?
Are you getting any errors or warnings or just no reaction to the request?

@cleidigh
Can not save the file, my home is win10, there is no problem，
I do not know which plug-in conflict, or I configure the conflict
{
    "git.path": "D:\\Program Files\\Git\\bin\\git.exe",
    "workbench.iconTheme": "vscode-icons",
    "search.exclude": { // 搜索排除文件夹
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
    },
    "eslint.autoFixOnSave": true,
    "tslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue",
        "vue-html"
    ],
    "beautify.config": {
        "indent_size": 4
    },
    "beautify.language": {
        "js": {
            "type": [
                "javascript",
                "json"
            ],
            "filename": [
                ".jshintrc",
                ".jsbeautifyrc"
            ]
            // "ext": ["js", "json"]
            // ^^ to set extensions to be beautified using the javascript beautifier
        },
        "css": [
            "css",
            "scss"
        ],
        "html": [
            "htm",
            "html"
        ]
    },
    "sublimeTextKeymap.promptV3Features": true,
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.snippetSuggestions": "top",
    "editor.formatOnPaste": true,
    "git.autofetch": true,
    "vsicons.projectDetection.autoReload": true
}

@jiayisheji
So it sounds like you have a work machine with the problem but your home machine does not exhibit the problem and both systems are Windows 10 with VSCode 1.19  , yes?
Did you disable all extensions?

@cleidigh
I first disable extension so try


Update CHANGES

I'm going to take care of the Changelog separately -- no need for this PR. Thanks for thinking about it though :)


Scroll jump during cell drag

I have a problem when dragging cells out of visible range.  If I drag a cell to the left once the cursor passes the first visible column it then jumps to Column A.
Attached is a screenshot from your wonderful demo program.  Please look at the red X painted in the lower right on the attached screenshot.
I started in cell AY7 and dragged it left.  All goes well to AT7 and then the cursor jumps jumps to A7.
It makes dragging almost impossible if you want to drop the cell outside of the visible range.

To clarify by dragging I am not talking about drag and drop when you select a cell, position the cursor at an edge, the cursor changes shape, and you drag.  I am taking about when click on a cell and without releasing the click you drag the cell.  You have not dragged and dropped the cell to another location, you have only expanded the cell to cover more cells.  Dragging and dropping works fine.  Dragging to expand does not for me.

I don't know how to reproduce the problem you mentioned. I have checked the demo project and I can't found the problems.
Do you use only the demo project? or some your own code?

IssueDemo.zip
Jingwood,
I originally sent this message on 4/14 as a reply to your message .  I do not see it in the thread so I am posting it as a comment in case you did not receive my earlier reply.
Thanks for your reply.  Yes, I did first notice it in my own code.  It would be awkward to send you my code as I have a database, data layer, rules layer, and presentation layer.  When I noticed the issue I tested to see if the same thing happened in your demo project.  I have recorded a short (1 min) video and attached it to this message.  I hope that it will show you how I get the same issue in your demo project.  There is audio in the video file but just to put it in writing the issue happens when you are dragging the cursor to expanded the number of cells selected.  When dragging the cursor to move a cell the scrolling works great.  The problem is when you select a cell, click in the center of the cell and hold the left mouse button down, and then drag the cursor out of the viewing area.  Once you leave the current viewing area the cursor jumps.  In the case of moving the cursor to the left the cursor jumps to column A if you move past the left visible edge of the grid.  In the video I first do a traditional drag/drop to move a cell.  I select a cell, position the cursor at a cell edge and observe the change in the cursor shape, click and hold the left mouse button down, and then drag the cursor to the left out of the viewing area.  You can see that when I move the cursor past the left visible grid edge the viewable area scrolls smoothly to the next group of cells.  That is what I think should also happen if you move the cursor to expand a selected cell.  However, as you will see in the video the screen jumps to Column A instead of smoothly scrolling like it did when I did a drag/drop to move the cell.
I hope this helps you reproduce the issue.  If not please let me know and we will try something else.
Regards,
Jeff

Jingwood,
Maybe an explanation of how I am using your grid will help.  The grid is used for display/adjustment purpose inside of a To Do app.  Dates/Times are column headers and personnel are the row headers.  Various tasks are assigned by the supervisor in another app.  My app reads the database, assigns a color to the task and then colors the appropriate cells on the grid.  The purpose of the app I am developing is first to graphically display the task assignments and second to allow the personnel to adjust them as needed.  Once any adjustment is made when the user clicks the Save button the changes will be written to the database.
Two types of adjustments are allowed.  The first is to move the task from one date/time to another.  To do this the user does a traditional drag/drop.  The cursor is placed at the edge of a cell, the cursor changes to SizeAll, the left mouse button is clicked and not released, and the cell is dragged and dropped on the new date/time column.  I have no problem with drag/drop moving as I illustrated in my video.  Suppose a task is in column BW, the leftmost visible column is BV, and I want to drop the task on column BT.  There is no problem with this, smooth as butter.  When the cursor being dragged moves left past column BV the screen scrolls smoothly to the next set of columns and I can easily release the mouse button on column BT for the drop.
The other type of adjustment possible is to either extend or decrease the time the task takes.  Suppose the columns are 15 minute intervals and a task takes 30 minutes or 2 columns.  Further suppose because of some temporary circumstances the user sees the task will take an additional 60 minutes longer than planned.  They can either start the task 4 columns earlier, end it 4 columns later, or split the difference and start a little earlier and end a little later.  To start the task 60 minutes earlier the user clicks in the center of the task's first cell.  The cursor is not SizeAll it remains the standard arrow pointer.  Then with the mouse button still down they drag the cursor 4 columns to the left and release.  My code will then color the 4 cells in the new columns with the task's color.  So now the task covers 6 cells in 6 columns.  This works fine as long as the target column is visible when the drag is started.  However suppose the task starts in column BX and the leftmost visible column is BV.  Since I want the task to start 60 minutes earlier that means it should start in column BT.  But there is a problem.  As soon as I drag the cursor to the left of BV the grid jumps to column A.  It does not scroll gracefully to the next set of cells like it did for drag/drop move operation described in the previous paragraph.  This is the issue I am raising.  The scrolling behavior is not consistent.
I hope this helps,
Jeff

Hi again.  I have a much more concise way to explain my issue.  Please try the 9 steps below and you will see my issue -

Open your demo program and navigate to Features -> Cells Event
Check CellMouseMove in the Events group
Click and release on a cell in the middle of the visible grid to select it, say E10.
Click mouse down and hold on the selected cell
With the mouse button still down move the cursor downward (dragging without the Size All cursor) in the same column with the goal of trying to release the mouse button on row 145.  Works great, screen scrolls smoothly making it easy to stop when you see row 145.
Now try the other direction.
Click and release on a cell in the middle of the visible grid to select it, say D173
Click mouse down and hold on the selected cell
With the mouse button still down move the cursor upward in the same column with the goal of trying to release the mouse button on row 75

When I do #9 above the screen jumps to row 1 when the cursor leaves the viewable cells.  I have attached one screen shot showing what is reported by the CellMouseMove event.  I selected cell D173 for the test.  I then dragged it upwards towards row 75.  For some reason the event log does not show the mouse moving up through D172, D171... on the way to the top of the visible cells.  It does however show the mouse moved from D173 to D1 by teleportation.  Please see the red arrow on the attached image.

So the scrolling while dragging without the Size All cursor seems to work great when moving the mouse downward but has an issue when dragging upwards.
I found the same on the horizontal.  If I am dragging right all is good.  If I am dragging left then I see the same issue, the screen jumps.

Scroll to column BW then click and release on a cell in the column to select it.
Click mouse down and hold on the selected cell
With the mouse button still down move the cursor leftward (dragging without the Size All cursor) in the same row with the goal of trying to release the mouse button on column AM

I hope this will allow you to confirm my issue.
Regards,
Jeff

Jingwood,
I have been trying to think of another way to communicate my issue such that you see it as a bug that needs to be fixed.  The issue I am having involves the screen scrolling to the first row or first column when crossing a screen boundary while selecting cells in the up or left directions respectively.  Selecting cells down or to the right works fine.  Suppose you have a monitor that shows 20 columns and 20 rows.  If you are viewing rows 21 to 40 (the view after scrolling one screen down) you will not see the bug.  That is because when you are only one screen away from showing the first row scrolling upwards to the next screen and scrolling to the first row are the same.
I have checked to see if always scrolling to the first row when crossing a screen boundary while selecting cells in the up direction is how Excel does it.  Maybe it is some kind of labor saving device so you automatically scroll to the first row when selecting cells in the up direction.  Excel does not automatically scroll to the top row when crossing a screen boundary while selecting cells in the up direction.  Excel also does not automatically scroll to the first column when crossing a screen boundary while selecting cells in the left direction.
Suppose you have the same monitor as above and you can see 20 rows and 20 columns.  You work for a company that has some number of salesman greater than 40.  It could be any number 41 or greater.  Just as long as the number of salesman requires more than 2 screens (40 rows)  of data.   You have a spreadsheet of each salesman's results sorted from low to high.  Now your boss calls and asks you to send him the 30 lowest and 30 highest sales figures.   For the lowest I scroll to the top column and select 30 cells starting from the top cell moving the mouse downwards.  I can to that fine in both Reogrid and Excel.  Now comes the problem.  For the 30 highest I scroll to the bottom row and select from the bottom cell moving the mouse upwards.  I can do that in Excel but not Reogrid.  In the up direction Reogrid automatically scrolls to the first row when you cross a screen boundary while selecting multiple cells in the up direction.
I have attached 2 videos to this message.  One is using Reogrid the other using Excel.  In both I am trying to select the top and bottom 40 cells in a column.  You can see it works in Excel but not Reogrid.  I am only showing the problem with the up direction.  There is also a problem with the left direction.  In a row have some list of numbers greater than two screens.  If you want to select the first 40 cells in the row that is easy in both Reogrid and Excel.  But if you scroll to the last cell in the row and trying selecting 40 cells by moving the mouse to the left then there is an issue in Reogrid.  When you cross a screen boundary the screen automatically scrolls to the first column.
I hope this explains the issue more clearly and shows that this issue is worth fixing.
Regards,
Jeff
Reogrid_Excel.zip

Hi @CmeFrog!
Thanks for your videos! Now I have understood the problem you describe. The selection always scrolling to topmost cell or leftmost cell is not good, I will try to fix it within some days.

Jingwood,
Wonderful.  I am sorry that my language was not sufficient to explain this.  As they say - a picture is worth a thousand words.  Videos even more so.   All my other previous issues I have found workarounds for so you can skip them as far as I am concerned.
I do have one other small(?) request.  You allow the change of some of the mouse cursors.  However to my mind it should either be all cursors, if that is possible, or none.  Suppose I want to style the control including the mouse cursor.  It works great for when the user is moving the mouse around the grid as I can set the pointer cursor.  But if the user navigates over the row or column headers the cursor "look" gets broken with the change row height or change column width cursors because the cursor can only be the default.  Same for when the Size All cursor is shown like when moving a cell.  So I have not set any of the cursors so at least the cursors look consistent.
Thanks again for all your good work. You have a great control.
Regards,
Jeff

Hello Jingwood,
I have noticed that this issue is still marked Confirming even though your reply of Aug. 17, 2021 you wrote that you would fix the issue.  If you have then please change its status so I can rest easy knowing that whenever the next release comes out this issue will be no more.
Regards,
Jeff


[KOGITO-1348] allow kogito-codegen to compile resources embedded in a…

… jar

@evacchi unfortunately this is necessary for 0.8.0 and in particular for quarkus test integration that I'm preparing in this other branch https://github.com/mariofusco/quarkus-platform/tree/k1251
I don't want to have a simply copy/paste of our integration tests there but something more automatic in the style of what have been done by the camel team and also reusing their rpkgtests-maven-plugin. What happens there is that it downloads our integration test module from the maven repo and try to build the resources that this time are not contained in a folder as usual but in a jar. That's why I needed to allow our codegenerators to retrieve drools/jbpm/dmn artifacts also inside a jar and generate code out of them.
To recap this PR should only allow our generators to also work on a jar and not only on a folder and shouldn't affect code generation in any other case.


Add cgroup v1 freezer controller

Add support for freezer in cgroup v1 #9 .

I'll review it tonight, so please wait.

@duduainankai
This is nice! Overall, it would be better if you added some more comments. In particular, I guessed this code was referring to the runc codes. It is too dificult for a first developer to see it. So please provide explanatory comments.

It is nice idea. You may also want to include a brief summary if you possible.
Don't forget to make the link a permalink.

How about just comment with the runc code link ?

It is nice idea. You may also want to include a brief summary if you possible.
Don't forget to make the link a permalink.

How about just comment with the runc code link ?

Updated. PTAL.

Sorry for delay. Will review in a few hours.


[bug] 1.21 block relay is unstable

Current draft 1.21 work relays blocks between 1.21 nodes successfully, but not from 1.14 nodes. This means that a node which has an existing copy of the blockchain from 1.14 can be reindexed and will relay blocks to other 1.21 nodes, but can never receive new blocks to send to 1.14.
Curiously, header relay does appear to work.
There is presumably some sort of network layer incompatibility there which needs to be investigated. In the debug.log it appears that pre-1.21 nodes are being disconnected, potentially the 1.14 nodes are rejecting 1.21.

Update: got the majority case working, although sync seems to randomly stop two weeks before the latest block.

randomly stop two weeks before the latest block.

Against testnet or mainnet? And random nodes or vetted nodes?

Testnet, vetted nodes. 90% certain the two weeks thing isn't incidental, given two weeks is Bitcoin retarget window. Eying assumevalid (which has a two week timer in it) in particularly suspicious.

2021-05-22T13:33:42Z UpdateTip: new best=f3f479712e47dac18d98850e5b3e56bb43d26dd8d15b2ff8c95d3bf5c9e7f87b height=3192351 version=0x00620004 log2_work=50.786728 tx=4337435 date='2021-05-21T21:51:53Z' progress=0.999349 cache=306.1MiB(1944396txo)
2021-05-22T13:33:42Z Leaving InitialBlockDownload (latching to false)

That's on testnet with 3192614 headers, so potentially it's leaving initial block download too early and then doesn't connect afterwards.

Note to self; didn't Namecoin make all blocks AuxPoW? Have we imported breaking deserialization changes, perhaps, where headers messages received no longer pass validation if they're not AuxPoW.


Launchpad warning

Resolves #860.

Merging this myself as it was reviewed by @edewit and @gastaldi and is necessary for their immediate work.

Thank you!

merged c8361d996


Simple Block Explorer

🚀 Tool Request
Motivation
The network is growing, would be good to see the current transactions, the addresses in the validator set and epoch which we are in.
Wanted to replace calendar dates with epoch numbers
MVP
Version 1 could just have the latest state info available on client - epoch number, current validator set.  https://github.com/OLSF/libra/blob/OLv4/testsuite/cli/src/info_commands.rs
Good to have Autopay pledges, which is unique to 0L project.
Over time, we need to allow search by address, search by transaction, miner state.
Should we explore some existing tools to clone?

I think it's very important to have a web-based explorer.

Agree, potentially it could be a part of this, the Info Server: https://github.com/OLSF/libra/issues/399
This would mean every fullnode could serve a simple block explorer alongside its metrics. Fullnode decides if the port is open on 80 or 443.

closed with #409


Unclean shutdowns

py-evm Version: 0e389db67b671d51d56c35837f496e03bd088e75
Python Version (python --version): 3.7.2

What is wrong?
I think everyone is already aware of this issue, just opening it to have a record somewhere and have somewhere to track progress.
Every time I ctrl-c out of trinity I'm faced with a LOT of output:
^C    INFO  03-06 17:13:36               trinity  Shutting down Trinity (CTRL+C / Keyboard Interrupt)
    INFO  03-06 17:13:36         PluginManager  Shutting down PluginManager with scope <class 'trinity.extensibility.plugin_manager.MainAndIsolatedProcessScope'>
    INFO  03-06 17:13:36         PluginManager  Stopping plugin: JSON-RPC API
    INFO  03-06 17:13:36         PluginManager  Stopping plugin: Discovery
Process SpawnProcess-3:
    INFO  03-06 17:13:36         PluginManager  Sent SIGINT to process 21158, waiting 10 seconds for it to terminate
    INFO  03-06 17:13:36         PluginManager  Sent SIGINT to process 21207, waiting 10 seconds for it to terminate
   ERROR  03-06 17:13:36               asyncio  Task exception was never retrieved
future: <Task finished coro=<<async_generator_asend without __name__>()> exception=StopAsyncIteration()>
StopAsyncIteration
StopAsyncIteration
   ERROR  03-06 17:13:36               asyncio  Task exception was never retrieved
future: <Task finished coro=<<async_generator_asend without __name__>()> exception=StopAsyncIteration()>
StopAsyncIteration
StopAsyncIteration
   ERROR  03-06 17:13:36               asyncio  Task exception was never retrieved
future: <Task finished coro=<<async_generator_asend without __name__>()> exception=StopAsyncIteration()>
StopAsyncIteration
StopAsyncIteration
    INFO  03-06 17:13:36     DiscoveryProtocol  stopping discovery
Traceback (most recent call last):
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/process.py", line 300, in _bootstrap
    util._exit_function()
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/util.py", line 299, in _exit_function
    _run_finalizers(0)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/util.py", line 265, in _run_finalizers
    finalizer()
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/util.py", line 189, in __call__
    res = self._callback(*self._args, **self._kwargs)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/managers.py", line 848, in _decref
    conn = _Client(token.address, authkey=authkey)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 498, in Client
    answer_challenge(c, authkey)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 741, in answer_challenge
    message = connection.recv_bytes(256)         # reject large message
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 216, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes
    buf = self._recv(4)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 379, in _recv
    chunk = read(handle, remaining)
KeyboardInterrupt
   ERROR  03-06 17:13:36               asyncio  Task exception was never retrieved
future: <Task finished coro=<<async_generator_asend without __name__>()> exception=StopAsyncIteration()>
StopAsyncIteration
StopAsyncIteration
   ERROR  03-06 17:13:36               asyncio  Task exception was never retrieved
future: <Task finished coro=<<async_generator_asend without __name__>()> exception=StopAsyncIteration()>
StopAsyncIteration
StopAsyncIteration
    INFO  03-06 17:13:36           ETHPeerPool  Stopping all peers ...
    INFO  03-06 17:13:36            FullServer  Closing server...
 WARNING  03-06 17:13:36  ETHHeaderChainSyncer  Tried to cancel <trinity.protocol.eth.sync.ETHHeaderChainSyncer object at 0x7fddc8511048>, but it was already cancelled
    INFO  03-06 17:13:36         PluginManager  Shutting down PluginManager with scope <class 'trinity.extensibility.plugin_manager.SharedProcessScope'>
    INFO  03-06 17:13:36         PluginManager  Stopping plugin: Syncer Plugin
    INFO  03-06 17:13:36         PluginManager  Successfully stopped plugin: Syncer Plugin
   ERROR  03-06 17:13:36               futures  exception calling callback for <Future at 0x7fddd1281208 state=finished raised ConnectionResetError>
Traceback (most recent call last):
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/managers.py", line 796, in _callmethod
    kind, result = conn.recv()
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 250, in recv
    buf = self._recv_bytes()
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes
    buf = self._recv(4)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 379, in _recv
    chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/concurrent/futures/_base.py", line 324, in _invoke_callbacks
    callback(self)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/asyncio/futures.py", line 362, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
  File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
  File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
  File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
Traceback (most recent call last):
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/managers.py", line 796, in _callmethod
    kind, result = conn.recv()
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 250, in recv
    buf = self._recv_bytes()
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes
    buf = self._recv(4)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/multiprocessing/connection.py", line 379, in _recv
    chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/concurrent/futures/_base.py", line 324, in _invoke_callbacks
    callback(self)
  File "/home/brian/.pyenv/versions/3.7.0/lib/python3.7/asyncio/futures.py", line 362, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "uvloop/loop.pyx", line 1258, in uvloop.loop.Loop.call_soon_threadsafe
  File "uvloop/loop.pyx", line 603, in uvloop.loop.Loop._call_soon
  File "uvloop/loop.pyx", line 607, in uvloop.loop.Loop._call_soon_handle
  File "uvloop/loop.pyx", line 636, in uvloop.loop.Loop._check_closed
RuntimeError: Event loop is closed
    INFO  03-06 17:13:36         PluginManager  Process 21158 has already terminated
    INFO  03-06 17:13:36         PluginManager  Process 21207 has already terminated
    INFO  03-06 17:13:36         PluginManager  Process 21158 has already terminated
    INFO  03-06 17:13:36         PluginManager  Process 21207 has already terminated
    INFO  03-06 17:13:36         PluginManager  Successfully stopped plugin: JSON-RPC API
    INFO  03-06 17:13:36         PluginManager  Successfully stopped plugin: Discovery
    INFO  03-06 17:13:36               trinity  networking process (pid=21156) terminated
    INFO  03-06 17:13:36               trinity  DB process (pid=21151) terminated
 WARNING  03-06 17:13:36               trinity  Removed dangling IPC socket file  /home/brian/.local/share/trinity/mainnet/ipcs-eth1/bjson-rpc-api.ipc
Trinity shutdown complete (CTRL+C / Keyboard Interrupt)

This is not a nice user experience!

Yep, ugly. If we ever get rid of all of them, we should add a new test to our CLI tests that sends a CTRL+C and scans for exceptions in the output.
Linking #330 here as it fixes the StopAsyncIteration errors. However, it's probably not the right approach and we haven't been able yet to come up with a test case that clearly isolates the issue so that we can compare approaches against it. I'm currently busy elsewhere and anyone who cares for nice puzzles is free to pick it up. :smile:

If we ever get rid of all of them, we should add a new test to our CLI tests that sends a CTRL+C and scans for exceptions in the output.

@cburgdorf you could add that today with a pytest.mark.xfail so it's ready to go and it will start failing as soon as we actually fix them, forcing us to switch that test on.

@pipermerriam Ha! I've never thought about using xfail like that. Clever!

DiscoveryService is now a trio component and no longer uses the multiprocessing package, plus I've never seen this myself, so closing for now


default IconTheme now using gray 900 instead of full black

This pull request is for this issue https://github.com/flutter/flutter/issues/3188
changed default material icon theme to use gray 900 instead of full black

This will need tests, to make sure we don't regress it.
cc @willlarche to check that material still wants this
cc @jonahwilliams to make sure this is high-contrast enough for accessibility
fyi @HansMuller


Add OkHttp rules

The old ones were terrible.
https://github.com/square/okhttp#proguard

Thanks for doing this.


100% CPU peak if Verisure integration enabled

If I enable the Verisure integration the HassIO starts peaking 100% CPU for one minute, then 30sec. at 0%, one minute at 100% and so it continuous. I do not know at what version i started but it was also a problem on 3.8/0.104.
It all works, but the CPU problem is there. If I removes the Verisure integration and restarts the problem is gone.
It looks like it is the hassio_dns container using the CPU.

Still a problem on 3.11/0.105.5:
Before/after enabling Verisure integration.


Build number showing up in URLs - breaking links

Hi there,
After deploying an app using AWS amplify, the app is displaying the home page, but the links are all going to https://<domain>/0000000029/<relative path> where<PHONE_NUMBER> is the build number (#29 in this case). The correct link is show in the html from the home page, and if I manually navigate to that URI the correct object is there.
I feel like this must be a configuration I'm missing, or perhaps a redirect that should be happening. I have no redirects/ rewrite rules created, and there are no other issues associated with building or deploying.
I can download the deploy artifacts and host it locally on my machine and everything looks good, so I'm at a bit of a loss as to where the weird link is coming from. I'm thinking it's something to do with cloudfront pointing to the wrong S3 key or something.
Any help is greatly appreciated.
It may be worth mentioning I'm using Hugo (0.73) and this very well may be an issue with Hugo.

Hi @ryanrf-ac can you share your appId and the region your app is in?

@Athena96 Of course. My appId is d3idu9b8upbkgj and region is us-east-1.

@ryanrf-ac Adding a trailing slash to the links fixed it. There's an existing bug report here that pointed to the solution: https://github.com/aws-amplify/amplify-console/issues/405

Awesome. Thanks @davetlewis-van!


Add LICENSE (Apache 2.0) file

Solving #7

License change to MIT.

Can you suggest a way (dedicated PR) to update .gitignore and remove non-project files (.DS_Store)?

@karol-brejna-i I think the current .gitignore is good (It ignores the DS_Store files), if you want, can you crate a new PR removing the DS_Store file, the opening_counter.py file (it was a personal project and is not related with this), also the puzzles.service file seems that is not used.


Lesson 13 deploying to Kovan

I get this error deploying the last lesson to Kovan
KeyError<EMAIL_ADDRESS>Any idea what I might be doing wrong? Details below...
Cheers!
Brownie v1.16.4 - Python development framework for Ethereum
DefiStakeYieldBrownieProject is the active project.
Running 'scripts\deploy.py::main'...
Transaction sent: 0xb296e1f3bd511d80d0b6105846a271f098f2d180ef241842056562289d6b7ebe
Gas price: 2.750000007 gwei   Gas limit: 702941   Nonce: 36
DappToken.constructor confirmed   Block: 28445494   Gas used: 639038 (90.91%)
DappToken deployed at: 0xc413801bD4AE07fF2622a3a32B012720B4ac4D31
Transaction sent: 0x662aee8345e74eb140b8976f97cbbcb28e5124593d572de7ef6ed11dfbaf9806
Gas price: 2.750000007 gwei   Gas limit: 1198897   Nonce: 37
TokenFarm.constructor confirmed   Block: 28445496   Gas used: 1089907 (90.91%)
TokenFarm deployed at: 0xeEb741322EF52530f1fDA908aDcD1E1eD7A3c575
File "C:\Users\Pedro, line line, in in
return_value, frame = run(
File "C:\Users\Pedro, line line, in in
return_value = f_locals[method_name](*args, **kwargs)
File ".\scripts\deploy.py", line 95, in main
deploy_token_farm_and_dapp_token(update_front_end_flag=True)
File ".\scripts\deploy.py", line 15, in deploy_token_farm_and_dapp_token
token_farm = TokenFarm.deploy(
File "C:\Users\Pedro, line line, in in
return tx["from"].deploy(
File "C:\Users\Pedro, line line, in in
contract.publish_source(deployed_contract, silent=silent)
File "C:\Users\Pedro, line line, in in
contract_info = self.get_verification_info()
File "C:\Users\Pedro, line line, in in
build_json = self._project._build.get(name)
File "C:\Users\Pedro, line line, in in
return self._interfaces[key]
KeyError<EMAIL_ADDRESS>

Hi @ignaciocanosa
I think I had this very same issue, I solved it by upgrading brownie to the latest version.
To do this you need to run the command "pipx upgrade eth-brownie" on your terminal

Thanx @DieKant ... Solved using Python 9 in sted of 10 and installing latest Brownie version.


ExternalSigningService reuses HttpClient

It was found that creating a new HttpClient for each request was
leaving sockets open indefinitely, resulting in file descriptors
being used up, and thus preventing further signing operations.
The ExternalSigningService now creates a single HttpClient at
creation, and reuses that connection for all signing operations

PR Description
Fixed Issue(s)

Documentation

[ ] I thought about documentation and added the documentation label to this PR if updates are required.

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


Updates of Docker Image

The docker image that is mentioned in the readme seems to be unmaintained: ikuosu/influxgraph
The last push to Docker Hub was with the release of 1.3.7 one year ago.
Are there any plans to change this situation?
In my opinion the best would be an automated build triggered on new releases and updates of the baseimage used in the dockerfile. Ideally as a repo Influxgraph/Influxgraph, the own Namespace is more trustworthy.

Hi there,
Docker builds are already automatic on tags, hence why it has not been updated since last release. Will release a new tag to get it updated.
Yes, I agree it would be better to have a named repo - and would prefer a top level repo like influxgraph which is a little more involved.
@tux1337 - would you be up for being added as a maintainer to this project?

Is the automated build for the docker image done over travis-ci?
If there is something that I can do I would support this project as maintainer...

Yes, run via travis for master branch (latest) and on pypi releases (tags).
There were a couple bugs in the travis cfg and tags had not been updated for a while, have fixed those. Have also moved the docker hub repo to influxgraph/influxgraph and added your username to that organisation as well as to the one for this repo.
Should now have access to merge and push to both.

Great, Sounds good.
I will prepare an update for the readme and example files with the new repo Information and will make a PR for review.
At the moment I test an build with the latest phusionbaseimage which is based on Ubuntu 18.04 LTS, PR will also follow.


[Community] Ruihang Lai -> PMC

Sorry for the late update, but please join me in welcoming Ruihang Lai (@MasterJH5574 ) as a new PMC member of Apache TVM.
Ruihang has been an invaluable contributor to our community since 2020 and became a committer in 2022. He has consistently demonstrated his dedication and expertise in various aspects. He has led the design of TensorIR and MetaSchedule, and has been actively contributing to areas including arithmetic analysis, and performance on Apple M1 and iOS devices. Besides, he is actively engaged with the community in the discuss forum. This year, he also contributed a talk and a tutorial session in TVMCon. He is also the co-author of SparseTIR paper, reflecting his expertise in machine learning compilation and the research interests that align with the vision of TVM.

Commit history
Code Review
Community Forum Summary

Thanks to the community! I really appreciate the acknowledgment and am excited to become a member of PMC. I will keep contributing to the community in the future as usual 😆


[bump] deps

update Cargo.lock
rand 0.7.3 -> 0.8.0
tokio 0.3.6 -> 1.0.1

Thanks. You don't have to open those kind of pull requests. We have https://dependabot.com/ for that.

Thanks. You don't have to open those kind of pull requests. We have https://dependabot.com/ for that.


add logs when pod failed to start when using WaitUntilPodAvailableE

Description
Fixes #1251.

Here's an example of this change in kumahq/kuma:
   2023-03-02T12:32:27+01:00 retry.go:91: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned.
   2023-03-02T12:32:27+01:00 client.go:42: Configuring Kubernetes client using config file<EMAIL_ADDRESS>with context
   2023-03-02T12:32:27+01:00 retry.go:104: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned. returned an error: Pod kuma-control-plane-5948bcb646-7wwn7 is not available, reason: , message: , phase: Pending, conditions: [{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:ContainersReady Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:PodScheduled Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:}]. Sleeping for 3s and will try again.
   2023-03-02T12:32:30+01:00 client.go:42: Configuring Kubernetes client using config file<EMAIL_ADDRESS>with context
   2023-03-02T12:32:30+01:00 retry.go:104: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned. returned an error: Pod kuma-control-plane-5948bcb646-7wwn7 is not available, reason: , message: , phase: Running, conditions: [{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:ContainersReady Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:PodScheduled Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:}]. Sleeping for 3s and will try again.
   2023-03-02T12:32:33+01:00 client.go:42: Configuring Kubernetes client using config file<EMAIL_ADDRESS>with context
   2023-03-02T12:32:33+01:00 retry.go:104: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned. returned an error: Pod kuma-control-plane-5948bcb646-7wwn7 is not available, reason: , message: , phase: Running, conditions: [{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:ContainersReady Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:PodScheduled Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:}]. Sleeping for 3s and will try again.
   2023-03-02T12:32:36+01:00 client.go:42: Configuring Kubernetes client using config file<EMAIL_ADDRESS>with context
   2023-03-02T12:32:36+01:00 retry.go:104: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned. returned an error: Pod kuma-control-plane-5948bcb646-7wwn7 is not available, reason: , message: , phase: Running, conditions: [{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:ContainersReady Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:PodScheduled Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:}]. Sleeping for 3s and will try again.
   2023-03-02T12:32:39+01:00 client.go:42: Configuring Kubernetes client using config file<EMAIL_ADDRESS>with context
   2023-03-02T12:32:39+01:00 retry.go:104: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned. returned an error: Pod kuma-control-plane-5948bcb646-7wwn7 is not available, reason: , message: , phase: Running, conditions: [{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:ContainersReady Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:PodScheduled Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:}]. Sleeping for 3s and will try again.
   2023-03-02T12:32:42+01:00 client.go:42: Configuring Kubernetes client using config file<EMAIL_ADDRESS>with context
   2023-03-02T12:32:42+01:00 retry.go:104: Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned. returned an error: Pod kuma-control-plane-5948bcb646-7wwn7 is not available, reason: , message: , phase: Running, conditions: [{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:ContainersReady Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason:ContainersNotReady Message:containers with unready status: [control-plane]} {Type:PodScheduled Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2023-03-02 12:32:27 +0100 CET Reason: Message:}]. Sleeping for 3s and will try again.
   2023-03-02T12:32:45+01:00 pod.go:133: Timedout waiting for Pod to be provisioned 'Wait for pod kuma-control-plane-5948bcb646-7wwn7 to be provisioned.' unsuccessful after 5 retries
   2023-03-02T12:32:45+01:00 logger.go:66: Running command kubectl with args [--kubeconfig<EMAIL_ADDRESS>--namespace kuma-system logs kuma-control-plane-5948bcb646-7wwn7]
   2023-03-02T12:32:45+01:00 logger.go:66: 2023-03-02T11:32:36.281Z	INFO	plugin.runtime.gateway	registered gateway plugin
   2023-03-02T12:32:45+01:00 logger.go:66: I0302 11:32:37.322522       1 request.go:690] Waited for 1.032916s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/admissionregistration.k8s.io/v1beta1?timeout=32s
   2023-03-02T12:32:45+01:00 logger.go:66: 2023-03-02T11:32:38.378Z	INFO	plugin.runtime.k8s	[WARNING] Experimental GatewayAPI feature is enabled, but CRDs are not registered. Disabling support
   2023-03-02T12:32:45+01:00 logger.go:66: 2023-03-02T11:32:38.383Z	INFO	controller-runtime.webhook	Registering webhook	{"path": "/validate-kuma-io-v1alpha1"}
   2023-03-02T12:32:45+01:00 logger.go:66: 2023-03-02T11:32:38.383Z	INFO	controller-runtime.webhook	Registering webhook	{"path": "/validate-v1-service"}
   2023-03-02T12:32:45+01:00 logger.go:66: 2023-03-02T11:32:38.383Z	INFO	controller-runtime.webhook	Registering webhook	{"path": "/validate-v1-secret"}

TODOs
Read the Gruntwork contribution guidelines.

[x] Update the docs. -- N/A
[ ] Run the relevant tests successfully, including pre-commit checks.
[ ] Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
[ ] Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Added more information when pod fail to start
Migration Guide

@denis256 we'd love to be able to use this change in kumahq/kuma any chance to get a review?

Noticed that some of added Kubernetes are failing
=== CONT  TestKubernetesUnknownImage
    kubernetes_failed_pod_test.go:83:
        	Error Trace:	kubernetes_failed_pod_test.go:83
        	Error:      	"Pod test-app-65f4c8b78c-jzsdj is not available, phase:Pending, failingConditions:['Ready:ContainersNotReady->containers with unready status: [app]','ContainersReady:ContainersNotReady->containers with unready status: [app]'], nonRunningContainerState:['waiting(app):ErrImagePull->rpc error: code = Unknown desc = Error response from daemon: pull access denied for not-an-place/not-an-app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied']" does not contain "failed to pull and unpack image \"docker.io/not-an-place/not-an-app:latest\""
        	Test:       	TestKubernetesUnknownImage
--- FAIL: TestKubernetesUnknownImage (7.05s)

TestKubernetesStopsAfter5s 2023-03-24T17:39:49Z logger.go:66: deployment.apps "test-app" deleted
TestKubernetesStopsAfter5s 2023-03-24T17:39:49Z client.go:42: Configuring Kubernetes client using config file /home/circleci/.kube/config with context
=== CONT  TestKubernetesStopsAfter5s
    kubernetes_failed_pod_test.go:117:
        	Error Trace:	kubernetes_failed_pod_test.go:117
        	Error:      	"Pod test-app-786fcc5c44-cptfz is not available, phase:Pending, failingConditions:['Ready:ContainersNotReady->containers with unready status: [app]','ContainersReady:ContainersNotReady->containers with unready status: [app]'], nonRunningContainerState:['waiting(app):ContainerCreating->']" does not contain "terminated(app):Completed"
        	Test:       	TestKubernetesStopsAfter5s
--- FAIL: TestKubernetesStopsAfter5s (8.74s)


Allow resetting the selected segmentation files for the overlaid labels contours layer

Description:
Allow resetting the selected segmentation files for the overlaid labels contours layer

This is actually already possible with right click on the button when the button is checked


fix actions

Release Docker dispatch: https://github.com/lapp0/outlines/actions/runs/7994419887

"Fails successfully": Got to the point where it only auth errors. Error: buildx failed with: ERROR: denied: requested access to the resource is denied

Not testing fetch PyPi. Changes are minimal between this version and the previous working main.
git diff e99d92d024dbf6f6bff10a9c3954f326cf4a0cd3 -- .github/workflows/release_pypi.yaml .github/workflows/release.yml | cat
diff --git a/.github/workflows/release.yml b/.github/workflows/release_pypi.yaml
similarity index 92%
rename from .github/workflows/release.yml
rename to .github/workflows/release_pypi.yaml
index e6bf1b1..597ebb7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release_pypi.yaml
@@ -1,16 +1,17 @@
-name: Release
+name: Release PyPi

 on:
   release:
     types:
       - created
-
 jobs:
   release-job:
     name: Build and publish on PyPi
     runs-on: ubuntu-latest
+    environment: release
     steps:
-    - uses: actions/checkout@v2
+    - name: Checkout
+      uses: actions/checkout@v2
     - name: Set up Python
       uses: actions/setup-python@v2
       with:

Now works, thank you for the quick fix!


Release 0.9.0

Includes issues: https://github.com/bf2fc6cc711aee1a0c2a/kafka-admin-api/issues?q=is%3Aclosed+milestone%3A0.9.0

The pre-release workflow isn't running (should trigger on any pull request to .github/project.yml). I'll try closing/reopening this to kick it.


Prevent \tag overlap

Prevent a \tag from overlapping a long equation. Use float: right; or float: left to locate the tag. Addresses issues #1983 & #2322.  Screenshot:

The automatic equation numbers in {align}, {alignat}, and {gather} will continue to have overlaps, as shown below.

That's because I can only offset the two equation numbers as a group, not individually. The overlap is the lesser of two evils.

Nope. That did not work. After this effort, I have belatedly come to the same conclusion that @edemaine expressed in an earlier comment. I am giving up the search for a non-overlapped \tag. This PR is closing and I am moving on.

Don t give up!!
.katex-display>.katex>.katex-html>.tag {
position: relative;
right: 0;
}

works.
its derived from https://github.com/KaTeX/KaTeX/issues/1983

@ronkok I know you gave up on this.
I proposed a solution in #1983 but got no response there.
Is my suggestion not possible in KaTeX, or something?


time: offset is getting repeated twice when date is parsed.

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.9.2 windows/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
Windows/amd64
What did you do?
Parsed date with time offset. Please see link below.
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
https://play.golang.org/p/dhwzR4Y_LL
What did you expect to see?
Expected output is as below
2016-09-11 18:35:00 +0500
but see time offset is repeating twice.
What did you see instead?
2016-09-11 18:35:00 +0500 +0500

This is working as expected.  When you print a time.Time value without formatting, it displays both the timezone offset and the timezone name.  In your case the timezone has no name, so the time package is using the offset as the name.
If you want a different format, use the Format method.
Closing because there is nothing to do.


Is Flask-Sock binary safe? (are there any escape characters?)

I'm having issues with bytes that are larger than 127. Anything using the signed or 8 bit is creating an error the server is returning:
'utf-8' codec can't decode byte 0x8c in position 4: invalid start byte
Probably not your code.. but I just want to get that checked off. :)

@tschesnok share a complete stack trace please. Without that I have no way to know what this is about.

I'm not sure how to do that. There are no server side error messages in the console. My server side code simply prints "packet received" on incoming packets. When I send packets from the client (in C++) if one of the bytes is larger than 127 then the server sends back a packet containing the message above with the hex indicating the position of the byte in the buffer that is larger than 127. I also don't get a "packet revived" print in that instance. This may very well be something in our code. I just wanted to hear that bytes above 127 should be fine..

I think it must be your server that is sending error messages as websocket packets, Flask-Sock does not do that, at least not intentionally.
The WebSocket protocol supports both text and binary messages. Which type if your C++ sending? If it sends text messages, then the text should be encoded in UTF-8. If it sends binary, it can send anything it wants.

Thank you. I think that may be the clue.. we may be sending binary data while it is expecting UTF-8.


feat(nuxt): add dynamic styles import, update README

In this PR, I made these changes:

Update Nuxt default config, as in Docs mentioned default route /scalar commit

Added theme config because I want to use the default theme, not only nuxt once; I think this will be better if the user could select from predefined ones or an exclusive nuxt theme, which is the default; also updated README.md file

https://github.com/user-attachments/assets/01c4f182-25d7-44a6-9ba8-1a010813833e

what an absolutely amazing PR @romanhrynevych !
ah we should keep the route as /docs :) so if you could change that + the docs we can get this merged :)

Thanks! First I think that /scalar as in README are right 😅. Changed in 8d84213

hey @romanhrynevych unfortunately I might have to roll back some of the theme changes, they don't seem to be working well with ssr at the moment.
nuxty.webm
I believe the solution would be to host the theme css files then link to them through useHead. That should work


Image allowlist

Summary of the changes (in less than 80 characters):

check domain for most of image source
check specific path for github badge, there are security vulnerabilities if we only check the github.com domain, we are doing same behavior what VS market doing.
allow raw.github.com/ raw.githubusercontent.com/ user-images.githubusercontent.com/ camo.githubusercontent.com
replace nofollow  with noopener noreferrer nofollow

nooperner open new tab for links, prevent malicious attacker from using window.opener to change the content of originating page
noreferrer similar to noopener, especially in older browsers, it make sense to use both

Todo:
Documentation page about allowlist that customer could refer to
Warning need to be updated with reference above

Addresses https://github.com/NuGet/Engineering/issues/3507

Will it better if we display a message at the image that we don't want to show, rather than just show a broken icon? @chgill-MSFT

Will it better if we display a message at the image that we don't want to show, rather than just show a broken icon? @chgill-MSFT

Will it better if we display a message at the image that we don't want to show, rather than just show a broken icon? @chgill-MSFT

@zhhyu my instinct is a message isn't necessary for each image and may make things look messier than necessary. I think the message at the top should make it clear why some images aren't being rendered. Let me know if you disagree, I'm happy to discuss it further 😊

Btw, can we change the "Documentation" header to "Readme"? Documentation is I think the broader category that should include Readme, Changelog, and API reference.
Readme is the common term used by NPM and Pub.

Will it better if we display a message at the image that we don't want to show, rather than just show a broken icon? @chgill-MSFT

@zhhyu my instinct is a message isn't necessary for each image and may make things look messier than necessary. I think the message at the top should make it clear why some images aren't being rendered. Let me know if you disagree, I'm happy to discuss it further 😊

Yeah, I don't feel strong here. I agree with you that showing messages will make it messier.
I am thinking that we will also show a broken image if the image is from the trusted domain but with an invalid path (404 Not Found). As customers will not be able to edit their readmes of legacy versions in the future, so I wonder we will show many broken images for legacy versions if the image host's path format is changed one day or the image is removed from the host. Maybe we can show a customized icon for this case? Not very sure. Showing a message at the very top looks fine.

As we will put more restrictions, support more features because of switching to Markdig and only support embedded readme files, I am thinking that we should provide the sandbox for customers to render their readmes before uploading packages.
We can continue using the "Documentation" (or renamed "Readme") part under the package manage page for customers to edit and preview the readme file, but we don't allow to submit from that place. By default, the input box will show the markdown file of the selected version, so it will be easier for customers to update their readmes.
In this way, we only support the package owner to edit and preview the readme file benefiting from the limit access to the package manage page. The engineering cost will also be minimal because it's almost ready now.
@chgill-MSFT @lyndaidaii

Change logic to ContentObjectServices read allowlist content file from static allowlist

using System;

The license header please.

Refers to: src/NuGetGallery/Services/IImageDomainValidator.cs:1 in e610071. [](commit_id = e61007159eec2e2a332df8282a18750ace7671f2, deletion_comment = False)

Fixed the @zhhyu comments + modified upload pages with image allowlist warning

Fixed the @zhhyu comments + modified upload pages with image allowlist warning, @zhhyu could you help verify the changes again before I merge to dev branch
@chgill-MSFT , does this warning message looks good at upload page? please help verify the message before I merge

This is warning message on display package page, only visible for package owner

This is warning message on manage package page

Can we change the header on the package details page from "Documentation" to "Readme"?
Can we align the warning message on all pages to "Some images won't be displayed as they are not from trusted sources."

@loic-sharma @JonDouglas  any thoughts on the wording here? Y'all tend to be good at these things 😊
I would think that it's clear that we're referring to the Readme given the location/context, but I'm open to opinions that it should be more verbose. Regardless, I think it should be the same in all locations.

LGTM


ZQS 1104 New pauli operator data structure

Description
Migrate our code from using openfermion's QubitOperator and IsingOperator to our own PauliTerm and PauliSum.
Please verify that you have completed the following steps

[ ] I have self-reviewed my code.
[ ] I have included test cases validating introduced feature/fix.
[ ] I have updated documentation.

Codecov Report

Merging #41 (e5f2788) into main (1bc2ad1) will decrease coverage by 0.03%.
The diff coverage is 93.54%.

@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
- Coverage   94.43%   94.40%   -0.04%
==========================================
  Files          71       71
  Lines        5893     5947      +54
==========================================
+ Hits         5565     5614      +49
- Misses        328      333       +5

Impacted Files
Coverage Δ

...rquestra/quantum/wip/operators/_pauli_operators.py
95.52% <60.00%> (-0.76%)
:arrow_down:

src/orquestra/quantum/api/backend.py
81.01% <66.66%> (-1.04%)
:arrow_down:

src/orquestra/quantum/measurements/measurements.py
98.33% <87.50%> (-0.03%)
:arrow_down:

...questra/quantum/openfermion/linalg/sparse_tools.py
96.39% <95.45%> (-0.23%)
:arrow_down:

src/orquestra/quantum/api/backend_test.py
78.57% <100.00%> (+0.09%)
:arrow_up:

src/orquestra/quantum/api/estimation.py
95.65% <100.00%> (+0.91%)
:arrow_up:

src/orquestra/quantum/api/estimator_contract.py
100.00% <100.00%> (ø)

src/orquestra/quantum/estimation/_estimation.py
100.00% <100.00%> (ø)

...uestra/quantum/openfermion/utils/operator_utils.py
100.00% <100.00%> (ø)

...questra/quantum/openfermion/zapata_utils/_utils.py
96.12% <100.00%> (+0.02%)
: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 1bc2ad1...e5f2788. Read the comment docs.


Add skip migration option to installer

When the user installs this extension as part of the initial Solidus
install, we don't want to ask them if they want to migrate - in fact,
we'd like to skip migration entirely until the final migration happens
as part of the apps setup. This option allows for that!

@seand7565 are you addressing the code linting concerns into another PR?

@seand7565 are you addressing the code linting concerns into another PR?

I'm working on this - will submit a separate PR. There's something odd going on between rubocop locally and on CircleCI, as @elia & I are getting different results locally. Trying to figure that out!

@kennyadsl FYI this was an issue with solidus_dev_support that has since been fixed with a new release. 🎉


Interactive widget not working in Jupyter Notebook

Hi!
I'm trying to get an interactive plot with pymapdl. I use an example from the documentation.
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
print(mapdl)
mapdl.run('/show,X11')
mapdl.prep7()
mapdl.mp('kxx', 1, 45)
mapdl.et(1, 90)
mapdl.block(-0.3, 0.3, -0.46, 1.34, -0.2, -0.2 + 0.02)
mapdl.vsweep(1)
mapdl.eplot()

In regular python terminal, it opens an interactive window.

For Jupyter notebook, it does not work however.

While for Jupyter lab it performs ok.

Below is a PYMAPDL report (same output for notebook and lab):
 -------------------------------------------------------------------------------
PyMAPDL Software and Environment Report
--------------------------------------------------------------------------------
  Date: Thu Sep 16 14:55:23 2021 W. Europe Daylight Time

                OS : Windows
            CPU(s) : 8
           Machine : AMD64
      Architecture : 64bit
       Environment : Jupyter
             Intel : GPU Vendor
Intel(R) Iris(R) Xe Graphics : GPU Renderer
4.5.0 - Build <IP_ADDRESS>78 : GPU Version

  Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit
  (AMD64)]

           pyvista : 0.31.3
               vtk : 9.0.3
             numpy : 1.19.5
             scipy : 1.6.3
           appdirs : 1.4.4
  ansys.mapdl.core : 0.59.4
ansys.mapdl.reader : 0.51.5
        matplotlib : 3.4.2
       ansys_corba : Version unknown
--------------------------------------------------------------------------------

My users, however, use regular notebooks. What do I miss to make it work for a notebook?
Another question is, would it be possible to store a plot in an HTML output?
Thank you in advance!

For Jupyter notebook, it does not work however.

Quite right.  The way I'm displaying the output only works on jupyterlab, but this doesn't seem like a difficult patch.  I'll work on this and have a fix by the end of the week.

Another question is, would it be possible to store a plot in an HTML output?

You can do that with pure pyvista plots, just not pymapdl plots (just yet):

Some notes
This is documented in docs.pyvista.com, but I thought to make note of it here:
pyvista.set_jupyter_backend('static')  # static images
pyvista.set_jupyter_backend('pythreejs')  # interactive plotting

from ansys.mapdl.core import launch_mapdl
# pymapdl code...

Note that you'll need the latest pyvista==0.32.1 to use pythreejs, but it works quite a bit better than the default backend (minus missing scalar bars).  Those will only work under jupyterlab until I get the aforementioned patch out.

@akaszynski Thank you very much for prompt reply and prioritizing the patch! Looking forward to giving it a try!

Hi @akaszynski,
is there any update on this matter, please? If not, maybe I could try to introduce a fix myself?
Thank you in advance, Michał.


Possibility to load Native Video behind the webview

It would be nice to be able to place the native camera's in front of or behind the webview based on the given z-index. Because if we could place the native video elements behind the webview we could also place HTML buttons on top of the video.
We have been successfull in placing the video behind the WebView with the Android and iOS , see branch:
https://github.com/Mediapioniers/cordova-plugin-opentok/tree/feat.cams_behind_webview_z-index
We got this technique from the cordova-plugin-qrscanner and cordova-plugin-iosrtc.
So if you use our branch, the camera will be placed below the WebView based on the z-index. So to be able to see the cams and buttons, you need make everything transparent in your DOM, for example:
# We can use class OT_root in our repository, but the main things is that the publisher container gets a black background color from OT, this needs to be removed in your CSS!
html, body, .OT_root {
  background: transparent !important;
}

# Each publisher and eachsubscriber video element should have display none
.OT_root video {
  display: none !important;
}

Also the inserted <video> tags for publishers and subsscribers in the DOM on Android need to get the style="display: none;.
When all is set you can have buttons on top of the video. See next screenshot:

Hmm maybe it would be even better to have the placement of video's based on the z-index of the CSS instead of an extra preferences. Something like this iOS solution and then for bot Android and iOS:
https://github.com/BasqueVoIPMafia/cordova-plugin-iosrtc/pull/98

updated comment, both Android and iOS is done.

@msach22 Also the scrolling keeps working on both iOS and Android as is. But now with the possibility to place camera's and webviews on different Z layer positions, being able to create "fancier" interfaces.

Added with #29

This doesn't work on OnePlus X (E1003), Android 6.0.1
But works on Sony D6503, Android 6.0.1

@wolfenrain I'm able to position the video behind the webview on our Sony device, so that the html buttons are on top. On the OnePlus device the buttons are not visible, so i assume it didn't manage to place the video behind the webview.