Add TODO for Updating API Spec

Description
Added a TODO in the checklist for contributors to add API Specs when introducing new user APIs
Related Issues
Resolves #13619
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)
[x] Public documentation issue/PR created

DCO check is failing :(

I've approved and squashed it with correct sign-off statements

Thanks @reta  and @peternied !
I didn't realize that non-code changes to the checklist also required the entire checklist. #ironic 😇
Will take care and follow protocol


Windows tests

Adds cross-platform support to consul-release tests
We made some implementation changes in order to make things more Windows-friendly, including:

the runner now waits using cmd.Wait() rather than signal 0-ing the process in a loop
the runner has an Exited method to make it possible to assert on whether the runner's process has exited from tests
we use filepath.Join everywhere instead of path.Join, since filepath uses OS-specific directory separators

For the "checks sync state up to the timeout" test in confab_test.go we weren't sure of the importance of the timeout tolerances, and on Windows, they weren't big enough to consistently pass. We skipped this test rather than changing the tolerances, but we'd like to have this one run.

@zankich The lager and crypto vendor bumps were accidental--we've reverted them.
We've also bumped the gomegamatchers to use the latest version, which uses  BeAnOsIsNotExistError.

While running the CONSATS locally, I got the following error:
STEP: setting a persistent value
STEP: scaling from 5 nodes to 3
STEP: reading the value from consul
• Failure [325.927 seconds]
Scaling down instances scaling from 5 nodes to 3 [It] persists data throughout the scale down
/Users/pivotal/go/src/github.com/cloudfoundry-incubator/consul-release/src/acceptance-tests/deploy/scale_down_instances_test.go:130

  Expected error:
      <helpers.ErrorSet | len:1>: {
          "unexpected status: 500 Internal Server Error  rpc error: No cluster leader": 8,
      }
      The following errors occurred:
        unexpected status: 500 Internal Server Error  rpc error: No cluster leader : 8

  not to have occurred

  /Users/pivotal/go/src/github.com/cloudfoundry-incubator/consul-release/src/acceptance-tests/deploy/scale_down_instances_test.go:128
------------------------------
SS

Summarizing 1 Failure:

[Fail] Scaling down instances scaling from 5 nodes to 3 [It] persists data throughout the scale down
/Users/pivotal/go/src/github.com/cloudfoundry-incubator/consul-release/src/acceptance-tests/deploy/scale_down_instances_test.go:128

I ran the test a second time in isolation and I didn't get the error, but I have never seen this particular error with this test. I didn't dig too deeply into it, so I don't know if the changes in this PR are causing the flaky test.
This is going to need more investigation before we can merge the PR.

@zankich Thanks for the feedback, and we'll take a look at the acceptance tests to see what could've caused the error.

Hey @charlievieth closing due to inactivity.  If you get a chance to run the CONSATS, let us know if you want to discuss any of the failures.


Supports cover grammar related destructuring

Closes #1045.
Closes #1060.

Woah. Looks good so far from what I can tell. Some of the test files have a misspelling of patter instead of pattern and this doesn't actually close #1060 until we bring this back to the harmony branch.

I think it does close #1060 because the destructuring in for in loop will be supported in this PR as well.

@mikesherov I believe the attached test cases are actually more thorough than espree. @nzakas can you help review the tests?

LGTM :+1:

@ikarienator LGTM but this can't close #1060 until all of the work is back ported to the harmony branch as well.
Also, please address the test files that have a misspelling of patter instead of pattern.
Great work here!

Yeah, tests are definitely covering more edge cases. :+1:

Amended it! Thanks guys for the review!

Before:

Case
Size
Benchmark

Underscore 1.5.2
42.5 KiB
4.16 ms ± 1.10%

Backbone 1.1.0
58.7 KiB
4.20 ms ± 0.87%

MooTools 1.4.5
156.7 KiB
21.88 ms ± 0.81%

jQuery 1.9.1
262.1 KiB
21.80 ms ± 0.90%

YUI 3.12.0
330.4 KiB
23.16 ms ± 2.62%

jQuery.Mobile 1.4.2
442.2 KiB
67.39 ms ± 2.57%

Angular 1.2.5
701.7 KiB
46.06 ms ± 2.63%

Summary
1994.3 KiB
188.66 ms ± 2.26%

After:

Case
Size
Benchmark

Underscore 1.5.2
42.5 KiB
4.94 ms ± 4.02%

Backbone 1.1.0
58.7 KiB
4.24 ms ± 0.76%

MooTools 1.4.5
156.7 KiB
22.24 ms ± 0.87%

jQuery 1.9.1
262.1 KiB
22.65 ms ± 0.77%

YUI 3.12.0
330.4 KiB
23.36 ms ± 2.98%

jQuery.Mobile 1.4.2
442.2 KiB
62.07 ms ± 4.46%

Angular 1.2.5
701.7 KiB
48.55 ms ± 2.15%

Summary
1994.3 KiB
188.04 ms ± 3.08%

It looks like that the performance impact is insignificant.

@ikarienator Nice benchmark numbers :smile:


How to customize reporter for scala_test?

Rules_scala uses hardcoded reporter : io.bazel.rules.scala.JUnitXmlReporter .
We need to customize report type as colors/full_stacktraces attributes (https://github.com/bazelbuild/rules_scala/blob/eabb1d28fb288fb5b15857260f87818dda5a97c8/scala/private/rules/scala_test.bzl#L58).
Could you add such customization?
Or is there any alternative way to customize report?

@viclovsky any chances you can send a PR for such configuration?


NativeZoom not Applied to Exported Image

NativeZoom option doesn't seem to be applied to exported image (you have missing tiles).
For example:
L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}  /{y}/{x}.png', {   maxNativeZoom: 16 }).addTo(map);
function doImage(err, canvas) {   var img = document.createElement('img');   var dimensions = map.getSize();   img.width = dimensions.x;   img.height = dimensions.y;   img.src = canvas.toDataURL();   snapshot.innerHTML = '';   snapshot.appendChild(img); }
 setTimeout(function() {   leafletImage(map, doImage); }, 2000);

@hjrobinson I have the same issue, have you fixed this?

Ha, it's been a while since I commented on this. No, I didn't fix it. I basically ended up using Mapbox-GL-JS instead and this repo:
https://github.com/mpetroff/print-maps
Of course it would have been cool to export images directly with Leaflet and use the maxNativeZoom option.

@hjrobinson Thank you for your reply. I will have a try with


Item relations edit delete

This PR adds the possibility to remove relationships from an item.
UI
A new tab labeled “Item Relationships” has been added to the item edit page (under sub-route /relationships)
The content of this tab functions much like the “Item Metadata” tab, except it is limited to deleting relationships (no adding or editing yet).
Relationships are also displayed as lists of items instead of a table, separated by relationship type.
Selecting items by clicking the trash bin icon will mark them with a red background.
Clicking “save” will remove the item relationships, display a notification stating the removal was successful (or an error notification for each failed delete request) and eventually reload the lists of relationships.
The other options (such as undo or discard) function the exact same way as it does on the edit item metadata page.
Code changes
A notable code change that was made in this PR is a new abstract item-update component, which contains all the shared code between item-metadata and item-relationships. This is to avoid code duplication between the two components (and open for expansion).

I'm sorry but I still see the related items in the list just after delete the relationship between them.
Also, and perhaps this is another issue (not specifically related with this PR), my CPU reach top levels of 90% when I'm loading the page with relations.

my CPU reach top levels of 90% when I'm loading the page with relations

I think this: https://github.com/DSpace/dspace-angular/issues/458 might be related with what I'm experiencing.

@paulo-graca Thanks for the analysis on the performance, we'll also verify these tickets


Humanize statistics

Even if we have clear statistics some numbers are not easily readable by humans (iterm2 helps but not everyone has it). Let's use go-humanize or something like that for marshaling such items.

Done in https://github.com/9seconds/mtg/pull/10


V2.0.0 kowhai migrate from glide to dep

[ ] remove glide
[ ] add dep
[ ] successful build
[ ] passing tests

will wait until refactor PR is closed.


The latest version of netopeer2-server is unavailable

Hey, I updated sysrepo-master libyang libnetconf2 netopeer2-server to the latest version yesterday according to your suggestion, but it is not working. Every time I run any command, I get a segment error

Looks like there is a problem with sysrepo, I get segment errors when I run sysrepoctl and sysrepocfg


Set default save_path_10X to "data/"

gene_dataset = BrainSmallDataset() throws the following exception because save_path_10X is not set by default:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-7fe29d288c3b> in <module>
      1 get_ipython().run_line_magic('pdb', '')
      2
----> 3 dset = BrainSmallDataset()

~/.anaconda3/lib/python3.7/site-packages/scvi/dataset/dataset10X.py in __init__(self, save_path, save_path_10X, delayed_populating, remove_extracted_data)
    306             save_path=save_path_10X,
    307             remove_extracted_data=remove_extracted_data,
--> 308             delayed_populating=delayed_populating,
    309         )
    310         _download(

~/.anaconda3/lib/python3.7/site-packages/scvi/dataset/dataset10X.py in __init__(self, dataset_name, filename, save_path, url, type, dense, measurement_names_column, remove_extracted_data, delayed_populating)
    135             filename_skeleton = group_to_filename_skeleton[group]
    136             filename = filename_skeleton.format(type)
--> 137             save_path = os.path.join(save_path, dataset_name)
    138         elif filename is not None and url is not None:
    139             logger.debug("Loading 10X dataset with custom url and filename")

~/.anaconda3/lib/python3.7/posixpath.py in join(a, *p)
     78     will be discarded.  An empty last part will result in a path that
     79     ends with a separator."""
---> 80     a = os.fspath(a)
     81     sep = _get_sep(a)
     82     path = a

TypeError: expected str, bytes or os.PathLike object, not NoneType

setting it to data/ by default would make gene_dataset = BrainSmallDataset() code work.

Btw @adamgayoso, any reason why __getitem__ is not implemented simply as return self._X[idx]in the scVI dataset classes?
E.g.
https://github.com/YosefLab/scVI/blob/master/scvi/dataset/dataset.py#L565-L567
How does torch.utils.data.DataLoader know how to access self._X in the scVI dataset objects?


Rename Selector to Priority, rename LatchedSelector to Selector

update documentation

@jbcpollak Does this still need to happen?


Fix for custom nonce not being used

Closes #1727
Nonce was not being passed to transaction push.

Looks good & let's avoid using "trans" for transactions. Many our users might think trans-gender

'Speedup Transaction' looks terrible on the UI. There's no enough space in the button for the text. Originally I put 'Speedup TX' but that is not ideal either.

Looks good & let's avoid using "trans" for transactions. Many our users might think trans-gender

'Speedup Transaction' looks terrible on the UI. There's no enough space in the button for the text. Originally I put 'Speedup TX' but that's not ideal.


HTML output issues

When producing HTML (with :html => true or in Rails views), awesome_print encloses each name or value with ... tags, and it produces \n instead of  for new lines.
As a result, the HTML is not "awesome" :) :

default  rendering is displayed as block, so you have one new line per name, value, etc.
if you css pre {display:inline}, then you don't have any new line anymore

Am I wrong, or we should enclose the whole output by , instead of each element ?

Fixed in https://github.com/michaeldv/awesome_print/commit/3849b4a7bd7073998eced90da82469c26c03c7cb - is going to be part of upcoming 1.0 release.

Please check out the latest v1.0.1 ;-)

I think it's still not quite right... I'm printing an array that contains hashes and the whole array is enclosed in
[pre]

but so are all of the sub-hashes.  The net effect is to add too many blocks and nullify the indenting that was done in the context of the top-level
 node, so everything is forced to left aligned except for the array indices.  I'm using ai to get my awesomeprinted recordset from a sqlite3 database as html:
def rows
  recordset=@db.execute("select * from to_document limit 7")
  recordset.ai(:html => true)
end

and printing it from a sinatra template of the mustache variety without HTML escaping...
{{{rows}}}

Any help you can offer is appreciated!  I'm about to have a look at ai and see if I can figure out why it's putting in all of those extra
 tags that don't belong.

From the spec file, it looks like this was never considered.  HTML of nested arrays is just going to nest  tags indefinitely...

I am compelled to find a way to XSLT

__  text

 into
    __  text

Since I see the solution depends on :html=true to place the
 tags around each call in to format, but also to do the HTML escaping.  If I could find the place where this code is called into from, I would be able to say if we can split those up into two options for recursive purposes.
If I'm talking in circles...
Recursed calls to format should not be printing more
 tags around their output like the top-level call (there is no sense in nesting
 nodes), but they should continue html escaping, so it's no good to just set :html=false when you're done with that.
Maybe I can find an elegant way to fix it...

Could you write a quick spec(s) with the expected results? I kind of understand where you're coming from but it sounds like we have the requirements that need some clarification.

Sure!  (same guy)
I'll post the spec in a second, but here's the incorrect output just so we're looking at the same thing:
require 'awesome_print'
markup = [ { "hello" => "world" }, { "goodbye" => "indents" } ]
puts markup.ai(:html => true)

(output)

[
    [0]
{

"hello"
 =>
"world"

    }
,
    [1]
{

"goodbye"
 =>
"indents"

    }

]

now, the spec:
it "does not try to nest
 tag deeper than one level" do
  markup = [ { "hello" => "world" }, { "goodbye" => "indents" } ]
  markup.ai(:html => true).should == <<-EOS.strip

[
    [0] {
        "hello" => "world"
    },
    [1] {
        "goodbye" => "indents"
    }
]

EOS
end

When the
 tags are distributed this way, everything looks as it should.

Oh good :) I'll take a look if nobody gets around to it faster

Made actual pull request: https://github.com/michaeldv/awesome_print/pull/78

Hi Denis,
Thanks for the pull request! I'm going to get back to you after I review the proposed changes.
Michael


[Feature Request]: Add hover effect to social media icons in footer

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Adding effects on social media icon oh hover according to their logo color
Use Case
Can add transition to the icons oh hovering
Benefits
No response
Add ScreenShots

https://github.com/singodiyashubham87/Draw-it-out/assets/168854094/8220859d-27b7-4bbb-a718-1b5d964d0b8f
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[ ] I'm a SSOC'24 contributor
[X] I want to work on this issue

@singodiyashubham87 Sir, Please assign this issue to me under GSSoC'24.
Thank You!

@TBorundia Try to make the hover effect look appealing & soothing.

please assign to me


KATA-918: Create NFD as a soft dependency for Sandboxed Containers Operator

- Description of the problem which is fixed/What is the use case
Fixes: KATA-918
We have seen cases where users successfully deploy sandboxed-containers operator on cluster nodes but encounter errors when creating Kata containers due to missing capabilities. For example kata containers don’t work on AWS EC2 instances.
- What I did
Created a new role kata-oc (node-role.kubernetes.io/kata-oc) to handle nodes with Kata runtime. Also a new config variable checkNodeReadiness is added to KataConfig. If checkNodeReadiness is selected, then the operator will look for the node label feature.node.kubernetes.io/runtime.kata on the nodes which have the requisite support to run kata containers.
When NodeFeatureDiscovery operator is available in the cluster, then the same can be used to label the nodes. Otherwise it's left to the cluster admin to label the nodes which are capable to run Kata containers.
- How to verify it
If NFD is installed, then create a NodeFeatureDiscovery object using the following yaml
kind: NodeFeatureDiscovery
metadata:
  name: nfd-master-server
  namespace: openshift-operators
spec:
  operand:
    image: 'registry.redhat.io/openshift4/ose-node-feature-discovery:v4.7.0'
    imagePullPolicy: Always
    namespace: node-feature-discovery-operator
  workerConfig:
    configData: |
      sources:
        custom:
          - name: "runtime.kata"
            matchOn:
              - cpuId: ["SSE4.1", "VMX"]
                loadedKMod: ["kvm", "kvm_intel"]
              - cpuId: ["SSE4.1", "SVM"]
                loadedKMod: ["kvm", "kvm_amd"]

If NFD is not available, then label the nodes
oc label node <node-name> feature.node.kubernetes.io/runtime.kata=true

Deploy the operator and when creating KataConfig, select "checkNodeReadiness"
- Description for the changelog

Provide support for checking node suitability to run Kata containers using NFD operator

@bpradipt Sorry if I'm just being dumb :-) but I'm missing the part so far where NFD is made a dependency of sandboxed-containers-operator.  Or is the idea that we don't touch this and delegate ensuring that NFD runs in a cluster to the cluster operator?

@bpradipt Sorry if I'm just being dumb :-) but I'm missing the part so far where NFD is made a dependency of sandboxed-containers-operator. Or is the idea that we don't touch this and delegate ensuring that NFD runs in a cluster to the cluster operator?

@pmores yeah, we don't explicitly add NFD as a requirement because of challenges with disconnected environment. Instead we delegate the responsibility of installing NFD to the cluster operator

@bpradipt I believe that the way you approached this is the correct one, but this requires a big warning in the release note, since IIUC you would now need to label nodes explicitly to be able to deploy, which you did not need to do before.

Overall, looks good to me, with a few "cleanup" observations that might make it a bit better (but are not blocking):

Moving the test changes to the test-related commit
Explain the timeout monkeying a little bit better (e.g. in the commit description) if there is anything complicated you learned from experience.
Possibly adding a By line to one of the tests.

Incorporated the feedbacks in the latest version. Thanks

@bpradipt  how can i check if NFD is installed?


Feat/auth and signing

Changes proposed in this pull request:
Adds firebase features and signing

Can one of the admins verify this patch?

ok to test

@ChristiaanScheermeijer Fixes :)

@RWOverdijk to master?

@ChristiaanScheermeijer Old PR. I'll change it.


Beta 5.0 doesn't recognise my account

Expected Behavior
Open Franz 5.0, login with the same credentials I was using with previous version of Franz.
Current Behavior
Error message in login screen "Email or password not valid".
Screenshots (if appropriate):
Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Franz Version used: Beta 5.0
Operating System and version: macOS Sierra 10.12.6

Franz 4 had no accounts. This has been brought up a few times now and I realize that the old version had a poor wording for this. You just need to create an account with Franz 5.


How may I access the web application from remote?

The docker IIS documentation says:

With the current release, you can't use http://localhost to browse your site from the container host. This is because of a known behavior in WinNAT, and will be resolved in future. Until that is addressed, you need to use the IP address of the container.

So, what is the way out to be able to publish a web application to the internet using Docker? I just tried publishing my web application. I could create docker image, publish and run it on a VM on Azure. However, I am not finding a way to share this with anyone as the web application is not available on the IP of the VM.
Can someone help me?

I just tried publishing my web application. I could create docker image, publish and run it on a VM on Azure. However, I am not finding a way to share this with anyone as the web application is not available on the IP of the VM.

I'm sorry the description of the WinNAT limitation was a little brief. I'd recommend reading this WinNAT blog post and especially have a look at the Accessing internal endpoints directly from the Host section.
If I had to guess what's wrong in your setup, I suspect the network security group for your VM doesn't allow access to the mapped port on the container host.

Thanks.
However, what is elaborated in the section

Accessing internal endpoints directly from the Host

in the blog, still does not answer how an end user can access the application from internet.
Let us refer to the section:

The one caveat to this limitation is that the internal endpoint can be accessed using the external IP/port from a separate, VM/container endpoint running on the same NAT host: this is called hair-pinning. E.g. A user operating on container A can access a web server running in Container B using the internal IP and port of http://<IP_ADDRESS>:8080.

So, does it mean I can access the application using the hosts IP/port from another VM that shares the same NAT host? What happens to someone who wish to access it from a different location (for me outside Azure) and need to access?

Let's say you create a container on your host and set up a port mapping, docker run -d -p 8080:80 microsoft/iis
Your service running on port 80 inside the container will be accessible externally at http://public-ip-of-container-host:8080

If I had to guess what's wrong in your setup, I suspect the network security group for your VM doesn't allow access to the mapped port on the container host.

Adding to my previous suggestion. Make sure the network security group of you Azure VM allows access to port 8080 (in this example) on the container host.

Thanks. NSG was holding me back!


validate nginx configuration during build

Currently there is no validation done during Lagoon builds to verify the nginx configuration. This can result in code being pushed which immediately sends the nginx into a crashloop. A simple nginx -t -f /etc/nginx/nginx.conf could be run during the build to validate the configuration, as well as show the error in the build log to make it more immediately visible.

This can be tested locally before pushing to Lagoon


SimPut annotation view does not always appear

No error just doesn't appear every time.

I guess this could be related to the change I made #65


select component in page error

when selet componnet in page meet a error like

then select other app and select back app , this work

Can you provide a mini repo? Thanks.


Rename json files and header title in mainwindow

Codecov Report

Merging #348 (3a44d14) into master (5658619) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #348   +/-   ##
=========================================
  Coverage     56.60%   56.60%
  Complexity      720      720
=========================================
  Files           139      139
  Lines          3196     3196
  Branches        420      420
=========================================
  Hits           1809     1809
  Misses         1286     1286
  Partials        101      101

Impacted Files
Coverage Δ

src/main/java/seedu/awe/model/UserPrefs.java
80.00% <100.00%> (ø)

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 5658619...3a44d14. Read the comment docs.


Colab: Refactor pyCapsid report section

Several code blocks in the pyCapsid section (like the one generating the markdown text) are becoming to long to work efficiently:

Refactor into multiple code blocks to reveal the logic, improve readability, and facilitate code editing.
Organize the needed installations and packages in the first part of the section.

I started refactoring the section. Now it has some initial cells that focus on generating the figures and storing them in a separate folder.
This should help add more figures to the report.
There is still work to do splitting the main cell generating the markdown file in more intuitive block codes.

The section has been refactored in a better shape, addressing the problem that motivated this Issue #38.
If there are any further refinements needed there will be requested in separate issues.


mdsilo > Sponsor menu item links to 404 page

Choosing "Sponsor" menu item from "mdSilo" top menu opens the following link in the browser: "https://mdsilo.com/sponsors"
The page is "404: This page could not be found".
Perhaps this should link to your "https://mdsilo.com/helpus" page instead?
Using mdSilo Desktop 0.5.2 on Linux

Thanks and fixed it


Update cx.config.json

Scan submitted to Checkmarx

Checkmarx SAST - Scan Summary & Details
Cx-SAST Summary
Total of 2 vulnerabilities 0 High 1 Medium 1 Low 0 Info
Checkmarx Scan Summary

Severity
Count

High
0

Medium
1

Low
1

Informational
0

Violation Summary
 1 Low 1 Medium
View more details on Checkmarx UI
Cx-SAST Details

Lines
Severity
Category
File
Link

1
Medium
Missing_HSTS_Header
app/bootstrap1.php
Checkmarx

22
Low
Use_Of_Hardcoded_Password
src/superblog/controller/articlecontroller.php
Checkmarx


Variable max header size

RequestHeaderParser has hard-wired 4096 bytes for header buffer. However single cookie can easily eat up whole buffer.

LGTM

Thanks @jakubkulhan, makes perfect sense to get this in! :+1:

Looks mostly good to me but I agree with @clue's comments :+1:

@jakubkulhan Hi, are you going to finish this PR?

@HonzaMac Sorry, I don't have time for this at the moment. If you want to, you can take up the code I've written so far and complete it with suggested refactorings.


Cocoapods

This branch yet to be published on cocoapods.org

This branch yet to be published on cocoapods.org


Multi-architecture images

Is your feature request related to a problem? Please describe.
Currently, bank-vaults image published on Docker Hub is only built for the linux/amd64 architecture.
Describe the solution you'd like
Cross-build and distribute the image for other architectures, specially ARM (linux/arm64, linux/arm/v7, linux/arm/v6).
Describe alternatives you've considered
There are no alternatives since the underlying architecture is a hard constraint.
Additional context
This would make it possible to run it on Raspberry Pi clusters.

FYI: working on this right now, one step towards this is: https://github.com/banzaicloud/bank-vaults/pull/1089

I see you're already pushing images to the GitHub registry! I'm looking forward to seeing ARM images there soon. Thanks!

I think I will drop linux/arm/v6 support, it is Raspberry PI 1, which is quite old, but increases the build time heavily. Most of the 32 bit ARMs are linux/arm/v7 and v8.

Yeah, linux/arm/v7 should be good for Raspberry Pi 4. Thanks!


MediaReference init method does not record availableRange

The initializer is missing an assignment of availableRange, see below.

public class ExternalReference : MediaReference {
    override public init() {
        super.init(otio_new_external_reference())
    }

    public convenience init<ST : Sequence>(targetURL: URL? = nil,
                                           availableRange: TimeRange? = nil,
                                           metadata: ST? = nil) where ST.Element == Metadata.Dictionary.Element {
        self.init()
        metadataInit(name, metadata)
        if let targetURL = targetURL {
            self.targetURL = targetURL
        }
    }

Was fixed by https://github.com/OpenTimelineIO/OpenTimelineIO-Swift-Bindings/commit/5076182d8170f85aef07b37de0f19160690d589a#diff-4538989320568f1de1083f553ecda4b0342af551bbc2aac91d061e7f6a2d0130


bytearray, encode & decode

coverage

[ ] extra primitives: NaN, -Infinity, +Infinity
[ ] buffers as uint8array
[ ] other typedarrays
[ ] arraybuffers
[ ] typescript checks

slow and fast versions?
no bigint version
need buffer js


[Question]

When creating a new box, like so: var box = await Hive.box('SettingsBox'); is box null until a value has been put into the box?

No it should be an instance of Box. There should also be a file settingsbox.hive created.

Odd. I'm messing around with using Hive on Windows, and I'm using Provider to send a box down the widget tree. I create it in the root widget like so:
  var box;

  @override
  void initState() {
    makeBox();
    super.initState();
  }

  void makeBox() async {
    box = await Hive.box('SettingsBox');
    await box.put('defaultValue', 'default');
  }

  @override
  Widget build(BuildContext context) {
    return Provider<Box>(
      builder: (context) => box,
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: MyHomePage(),
      ),
    );
  }

When I access it in a different widget, like so: var box = Provider.of<Box>(context);, Flutter tells me that it is null.

If I'm correct, the problem here is that makeBox() is not finished yet when build() tries to access the box. You don't await makeBox(). The problem is that in order to await makeBox(), initState() would need to be async which is not allowed.
I'm working on helpers for Flutter but until then you could use something like that:
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: FutureBuilder<Box>(
        future: Hive.box('SettingsBox'),
        builder: (BuildContext context, AsyncSnapshot<Box> snapshot) {
          if (snapshot.connectionState == ConnectionState.done) {
            return SomePage();
          } else {
            return Center(
              child: Text('Please wait'),
            );
          }
        },
      ),
    );
  }
}

class SomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    var box = Hive['SettingsBox'];
    // Do whatever you like with the box
    return Center(
      child: Text('Your App content'),
    );
  }
}

Btw: you don't have to pass boxes. If you already opened it, you can get the box instance using Hive['yourBoxName']

Okay, thank you very much!

I created a basic example if you are interested...

Thanks!


[Feature] 使用自己接口定义的错误code码来判断接口调用是否成功

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
我希望在core.oal文件中增加一个根据接口的自定义状态码来来判断接口调用是否成功
Use case
我希望在core.oal文件中增加一个根据接口的自定义状态码来来判断接口调用是否成功
Related issues
我希望在core.oal文件中增加一个根据接口的自定义状态码来来判断接口调用是否成功
Are you willing to submit a pull request to implement this on your own?

[X] Yes I am willing to submit a pull request on my own!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

We don't accept Chinese on Github. Are you keeping doing


STM32 can driver don't set prescaler

In function "can_stm32_set_timing" on file can_stm32.c the set of BRP value is missing.
To solve this is necessary to change BTR register load from:
can->BTR |= (((timing->phase_seg1 - 1) & 0x0F) << CAN_BTR_TS1_Pos) |
(((timing->phase_seg2 - 1) & 0x07) << CAN_BTR_TS2_Pos) |
(((timing->sjw        - 1) & 0x07) << CAN_BTR_SJW_Pos);
to
can->BTR |= (((timing->phase_seg1 - 1) & 0x0F) << CAN_BTR_TS1_Pos) |
	    (((timing->phase_seg2 - 1) & 0x07) << CAN_BTR_TS2_Pos) |
	    (((timing->sjw        - 1) & 0x07) << CAN_BTR_SJW_Pos) |
	    (((timing->prescaler  - 1) & 0x1F) << CAN_BTR_BRP_Pos);

Hi, this problem is already solved. Pleas pull the latest master and check if your problem still exist.

Hi, this problem is already solved. Pleas pull the latest master and check if your problem still exist.

Closing because it got fixed.
@AlPon1969 if you still see this issue, please reopen.

Closing because it got fixed.
@AlPon1969 if you still see this issue, please reopen.


Format using precommit

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Closes #(issue)
Type of change
Please delete options that are not relevant.

[ ]  Bug fix (non-breaking change which fixes an issue)
[ ]  New feature (non-breaking change which adds functionality)
[ ]  Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ]  Performance (if you touched existing code run asv to detect performance changes)
[ ]  refactoring

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. This could point to a cell in the updated notebooks. Or a snippet of code with accompanying figures here.
Checklist (while developing)

[ ]  I have added docstrings to all new functions.
[ ]  I have commented my code, particularly in hard-to-understand areas
[ ]  Tests added for pytest, if necessary.

Pre-Merge Checklist (final steps)

[ ]  I have rebased onto master or develop (wherever I am merging) and dealt with any conflicts.
[ ]  I have squashed commits to a reasonable amount, and force-pushed the squashed commits.

References
Please add any references to manuscripts, textbooks, etc.

I'll look at why isort is failing.
FYI on my laptop I ran $ pre-commit run --all-files

now failing at README.rst:37: D000 Cannot analyze code. Pygments package not found.

the coveralls is negligible.
@aaronspring happy for me to merge?


add hullcss blog feed to feeds.json

This PR adds HullCSS' blog to the feed list

Looks good! I assume though that the author name will change every year?

amended
I will un-draft this PR when all exec members have written their introduction :smile:

resolved merge conflicts, PR is ready to merge


Updated requirements to allow for Home-Assistant 0.107.6+

once https://github.com/ljmerza/py-our-groceries/pull/5 is merged, this can also be merged.
will resolve https://github.com/ljmerza/ha-our-groceries/issues/12

was this tested on ha docker? I don't think the base image ha uses has the requirements to build the latest lxml library

i only use ha-docker :)
could it have been hacs or something else? I can look into it, if it really concerns you though...

no, it's fine. thanks for the help.


Cassandra 17220

In JIRA and in private conversation between myself, Paulo and Josh we agreed that for time being, for checks which are currently resolving system properties to configure themselves, that mechanism will be still in place but the configuration via cassandra.yaml will be possible too, system properties would take precedence over what is in yaml. I marked system properties as deprecated. In 5.0, we will get rid of system properies completely as there will be different mechanism to set system properties for cassandra.yaml configuration @dcapwell is working on.


feat: support multi chain inside one actor

I think there will still be bug. If we have one actor like:
Union
  Chain
  Chain

The fragmenter won't split two chains into different fragments due to the recursive algorithm. Currently we don't have stateless executors with multiple inputs (like lookup), but I think we will need to support multiple chain inside one actor in the future.
Originally posted by @skyzh in https://github.com/singularity-data/risingwave/issues/2775#issuecomment-1135780386

more info: https://github.com/singularity-data/risingwave/pull/2775#issuecomment-1135799043

duplicated with #6236 .


Call Get() after service discovery watch timed-out for initial value

So that the config for service discovery watch timeout will always try a Get() and is independent
from the config for watch creation timeout and/or get request timeouts
@xichen2020 @robskillington

Coverage decreased (-0.1%) to 90.072% when pulling e1471a5f2d2dd2ef643e84473c550ad9661765c7 on chao-kv into 9ad5235dfe1d93ac23806492028cae7710f7d0b8 on master.

Coverage increased (+0.1%) to 90.305% when pulling c4fa4494031a3a72bca3632649297c19c62e930a on chao-kv into 9ad5235dfe1d93ac23806492028cae7710f7d0b8 on master.


Infinite loop when using setParams with nested stacked routers after reset action

I've been banging my head against this for a bit and can't figure out the exact issue, but I think I'm pretty close.  Basically if you have two nested stacked routers and call navigate.reset to go to a screen which immediately calls navigate.setParams (such as in componentWillMount), the app will get stuck in an infinite loop.
Here is a reproducible example where I was using a redux version of NavigationPlayground: https://github.com/react-community/react-navigation/compare/master...sportsaction:error?expand=1
I can't find a specific issue in the router, but if you watch the logs you can see it tries to process the reset action over and over again.  I think this is related to #160 , but I'm not totally sure how.
If someone can help point me in the right direction I'd be happy to submit a PR!

I'm not sure what is going wrong here, but needing to call setParams from componentDidMount is a major code smell. Hopefully you can find a way to refactor to avoid that situation.

@ericvicenti if that's the case is there a better answer to https://github.com/react-community/react-navigation/issues/145 ?  How would we set left/right buttons dynamically when we navigate to a new scene?

How would we set left/right buttons dynamically when we navigate to a new scene

Set them based on params

That's not really practical when I'm trying to change the left/right nav buttons based on some sort of dynamic state/object.  For example, if I have a "User" screen and only want a "Message" button to show up if the user already has a verified email, should I have to add that logic to everything that links to the User screen?  I feel like that should definitely be something the User screen manages itself.

That's not really practical when I'm trying to change the left/right nav buttons based on some sort of dynamic state/object.

How do you get that state in the component? Technically the only props the component receives are the params, if you can derive the state from params, you can do the same for header elements too.

should I have to add that logic to everything that links to the User screen

Connect your left/right elements to redux, or use an HOC.

Yep, I agree with @satya164's answer. If you don't want to use params, then use some other mechanism to allow data to flow into the component. Personally I would use redux connect

I still think there are several issues with this approach, and a few issues are popping up because of it:  https://github.com/react-community/react-navigation/issues/210, https://github.com/react-community/react-navigation/issues/240, https://github.com/react-community/react-navigation/issues/145.
It seems inefficient to have to figure out the initial state twice (once statically for a button, then again for the actual component class instance), especially if it is an expensive operation.  Additionally things like context or the DOM in a web-app might have an impact on the header, and params/redux state won't cover it.

It seems inefficient to have to figure out the initial state twice (once statically for a button, then again for the actual component class instance)

Maybe there is a way to share the initial state between the two places?

Additionally things like react context or the DOM in a web-app might have an impact on the header, and params/redux state won't cover it.

I'm having troubles visualizing this use case. It might be more clear with a bit of code.

the initial post on https://github.com/react-community/react-navigation/issues/210 shows an example needing context.

It seems inefficient to have to figure out the initial state twice (once statically for a button, then again for the actual component class instance), especially if it is an expensive operation.

You can use a memoization technique to avoid figuring out things twice.

Additionally things like react context or the DOM in a web-app might have an impact on the header, and params/redux state won't cover it.

Yeah, a big problem is params is pretty limited.
To be honest, things like header are pretty coupled to the screen most of the times. But there are few problems when we don't have static properties. This design is the same as in ExNavigation. Things like drawer navigation won't be able to get the screen details unless you have a static property, since the screen isn't actually rendered.
A non-static getNavigationOptions method won't be very useful either since you'd want it go get called again when you do setState.
Though ExNavigation had a much better story, because you could bi-directionally communicate with your elements in the static configuration screen via events. You could pass full data in events, or anything really, unlike params, which are part of the navigation state and we expect params to be a flat object containing only strings, which makes them way less useful.
Here's the example https://github.com/exponent/ex-navigation/blob/master/example/components/EventEmitterExample.js
I think such a two-way communication in React Navigation will be a little difficult to achieve since you only have params, unless you use something like redux.
I proposed to use events in #51 since I think having an event system will be pretty useful for a lot of things, and I would prefer not to have both events and lifecycle methods. But there was a lot of pushback.
But let's talk about alternative solutions with what we have today.
Long back I talked to @skevy about something like this for ExNavigation,
class MyScreen extends Component {
  static navigationOptions = {
    // define the options here
    // you can later override stuff from here in your render
  };

  render() {
    <View>
       <NavigationHelper.Header
          title='Hello there'
          right={<DoneButton />}
      />
      ... your content goes here
    </View>
  }
}

export default NavigationHelper.createScreen(MyScreen);

Under the hood, NavigationHelper.createScreen will setup an event system and copy your static properties onto the wrapper HOC. Then NavigationHelper.Header will communicate with the static options via a event system and update stuff inside header
Now, a big limitation of this approach is we can only support props which are React Elements (and fake it for things like title which support both strings and react elements), since we'd actually need lifecycle methods there to setup listeners. Then we can pass the full component via the event callbacks every-time they update. Not pretty, but the outer API is pretty nice since we get a nice declarative API and our components are located where they should live, inside render.
Now to support non-element configuration options, we'd need params to actually support any type of data and not just strings, so we could communicate via params instead of an event system. Plus it shouldn't cause stack overflow error.
This API can totally be outside core, but I think it's not possible to build this with what we have today. We can only build a pretty limited version of it.
What if navigationOptions was an observable instead? Then we could build this easily with the event system and support all kind of options. We could subscribe when screen mounts and unsubscribe when it unmounts, without having to setup listeners in left, right components etc. This sounds like taking it too far, but one can hope :D

I agree that the even system sounds more flexible/easier to use.  Hopefully we can have something like that in the future!
FWIW I've gone back and implemented all the header logic I needed without using setParams in componentDidMount, but I still think it's likely this issue continues to pop up.
As an aside, why does the lib expect state params to be only strings?  I've used all sorts of types all over the place and it seems fine.

@dmhood I've run into exactly the same issue as you - dispatching a navigation reset in a nested context when you use the setParams/componentDidMount hack causes the app to tailspin.
So it's back to the drawing board - it is funny that it is so difficult to connect the current state of a component to a header button - it doesn't feel like a strange use case.
Because of this, and the fact that it works well with ExNavigation, it's a shame that the event emitter paradigm suggested by @satya164 has not been adopted here.

The discussion around https://github.com/react-community/react-navigation/issues/1639#issuecomment-305572963 seems to be relevant to the infinite loop in setParams and the need for props access for dynamic navigationOptions.

@migueloller https://github.com/react-community/react-navigation/issues/1639#issuecomment-305572963 appears to describe the effect that I am experiencing, so it's back to the drawing board.
It feels a bit heavyweight to dispatch form contents via the redux store - ideally I would like a header button to trigger the dispatch of the form data into the store when editing has been completed. Maybe I'm too set in my ways?
Because of this, I've been playing around with the pattern of setting headerMode: 'none' and rendering a custom header as suggesting by @richardfickling https://github.com/react-community/react-navigation/issues/707#issuecomment-300507321

I has added timeout before setParams, and it works.
setTimeout(() => {
  this.props.navigation.setParams({
     save: this.save.bind(this),
     ....
  });
}, 1000);

Although I'm new to hooks, I came up with a solution that feels like less of a hack to me (a la setTimeout).  I created a hook called useDidMount to ensure the code inside only runs on mount and not after re-renders.
import { useEffect, useState } from 'react';

export default function useDidMount(callback) {
  const [mounted, setMounted] = useState(true);

  useEffect(() => {
    if (!mounted) {
      setMounted(true);
      callback();
    }
  });
}


Add reference assign callback to GDExtensions

Add reference assign function to improve the solution in https://github.com/godotengine/godot-cpp/pull/660
The problem here is that Ref<T> on the Godot side and Ref<T> on the godot-cpp side are not interchangeable so when assignments cross the API border we are exchanging pointers to the object referenced within. This is causing issues with updating the proper refcount of the reference object. The current "solution" simply ignores this all together and just sets the reference without worrying about refcount. Any current object isn't de-referenced, any new object isn't referenced resulting in leaking or prematurely destructing objects,
This ensures the proper logic is run when changing the object a reference points to with code run on the extensions side.

I wonder if there is any way for us to document the C API, so we could explain exactly what is this function really for. Basically, given a pointer to Ref<T>, it calls operator= on it with the provided Reference*.

Still fixing some issues to make this actually work so changed to draft until I'm sure we're on the right track.

I think its safe to close this, I fixed this bug a couple months ago and have not reports of it breaking again.

We reviewed the PR in the GDextension meeting. It's still not clear whether the bug if fixed or not, it hsould probably need a bit more investigation, and an MRP if this issue is still valid. We'll keep the PR open until we figure it out.


Rewrite Quantum Phase Estimator with primitives.

Just using Sampler for 1 circuit.
Applications do not depend on it.
Lower priority.


Update units.json -  Added New units

Addition of new units:
SPM
hectoSPM
Hertz
hectoHertz
API
kiloAPI

Please revise all units  of quantity  "quantity": "Pumping Unit” to be of quantity  "quantity”: “Frequency”. Strokes per unit can be considered equivalent to a Count per Time, see QUDT NUM-PER-SEC as a reference and the units in QUDT  frequency.

on oil-density:api  please employ the respective  QUDT unit with the reference  QUDT quantity  as basis for the suggested unit and quantity.

aliases shall contain different notation and spellings, but not conversion rules at this point, so please remove numeric conversions such as Hz*100 from all aliases.


Ports-The-Supermatter

About the PR

Added supermatter.
Whenever something damages it it shoots lightning bolts.
Also radiates stuff based on whatever gas it's inhaling.
Also new traitor task - steal a supermatter sliver. Will greatly damage the SM, make an announcement that someone tampered with the crystal and something something.
There's no cascade resonance for now because no hypernob & antinob / destabilizing creestal.
Also when singuloth eats the SM it instantly becomes level 6 because uhhh idk why not. 🤷
Why / Balance

Technical details

I copied most of the stuff from /tg codebase. A lot of shitshow in a single component. Please don't look at it thank you :3
Media

none for now because it's a draft

[ ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

TODO

[ ] Demalination types
[ ] Sum more announcements tweaks

Changelog

🆑

add: Added supermatter crystal.
add: Traitors now have a new objective regarding the supermatter crystal.
tweak: Singularity when eating the supermatter crystal now instantly becomes level 6.

If you ported this from tg that means the code is GPL and as such cannot be used here.

shit

youd have to redo it regardless even in its current state theres like 20 reviews of stuff to change :trollface:

Just re-open it whenever it's ready for review and not in violation of license.


Missing data records for October 2020

Hello
I downloaded the file today and for October , all records are missing  for "granularité = pays' AND  'source_nom= Ministère des Solidarités et de la Santé'
There were present still  on the 9th November !
Can those figures be restored ?
Thanks
Gsagsa99

I found an alternative for those datas :
https://www.data.gouv.fr/fr/datasets/donnees-relatives-a-lepidemie-de-covid-19-en-france-vue-densemble/#_

Many thanks
Le jeu. 12 nov. 2020 à 12:36, anne gardes<EMAIL_ADDRESS>a
écrit :

I found an alternative for those datas :
https://www.data.gouv.fr/fr/datasets/donnees-relatives-a-lepidemie-de-covid-19-en-france-vue-densemble/#
_
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/opencovid19-fr/data/issues/551#issuecomment-726024197,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARXIC2VURIBOPTWZEIEZFWTSPPCFBANCNFSM4TTBLM2A
.

It would still be very much appreciated if it were possible to replace the missing data!

Hi,
the records are in today file .
Issue closed
gsa

Closed


Ores not spawning in Modded server [Fabric 1.21]

I might not manage to actually explain that well or do the report correctly since its my first time, sorry about that.
I'm playing with a few friends on a Modded server (hosted by Aternos) since three weeks by now and we added the mod recently (a few days ago). but the ores wont spawn anywhere, even in new chunks that we generate
we use a lot of mods (around 73 counting the APIs and QOL mods) but the two mains ones that modifies terrains are Better End and Regions Unexplored.
Don't know if its a bug, but I felt like it would be a good idea to report it incase

Looking at the tags both Regions Unexplored and Better End should work just fine. Considering you are using Aternos - make sure the mod was installed correctly


Patch: ActiveRecord::findAll()

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
no

Tests pass?
didn't do that

Fixed issues
https://github.com/yiisoft/yii2/issues/6780#issuecomment-384734581

Related PR: #10130 (automatically closed after deleting 2.1 branch).

see #16543 for update


Backups fail after upgrading my db from 5.7 to 8.* version

Logs from the sidecar container:
Create Google Drive service-account.json file.
Create rclone.conf file.
I0507 16:49:15.733740       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="MY_SERVER_ID_OFFSET"
I0507 16:49:15.734008       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="INIT_BUCKET_URI"
I0507 16:49:15.734037       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="BACKUP_COMPRESS_COMMAND"
I0507 16:49:15.734057       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="BACKUP_DECOMPRESS_COMMAND"
I0507 16:49:15.734079       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XBSTREAM_EXTRA_ARGS"
I0507 16:49:15.734172       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XTRABACKUP_EXTRA_ARGS"
I0507 16:49:15.734192       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XTRABACKUP_PREPARE_EXTRA_ARGS"
I0507 16:49:15.734212       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="INITFILE_EXTRA_SQL"
I0507 16:49:15.734312       1 deleg.go:130] sidecar "msg"="start http server for backups"
xtrabackup: recognized server arguments: --innodb_file_per_table=1 --innodb_flush_log_at_trx_commit=0 --innodb_flush_method=O_DSYNC --innodb_log_files_in_group=2 --log_bin=/var/lib/mysql/mysql-bin --open_files_limit=65535 --innodb_buffer_pool_size=12G --innodb_log_file_size=256M --server-id=100
xtrabackup: recognized client arguments: --backup=1 --slave-info=1 --stream=xbstream --tables-exclude=sys_operator\.status --host=<IP_ADDRESS> --user=sys_replication --password=* --target-dir=/tmp/xtrabackup_backupfiles/
xtrabackup version 8.0.26-18 based on MySQL server 8.0.26 Linux (x86_64) (revision id: 4aecf82)
220508 00:00:02  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;host=<IP_ADDRESS>' as 'sys_replication'  (using password: YES).
220508 00:00:02  version_check Connected to MySQL server
220508 00:00:02  version_check Executing a version check against the server...
220508 00:00:02  version_check Done.
220508 00:00:02 Connecting to MySQL server host: <IP_ADDRESS>, user: sys_replication, password: set, port: not set, socket: not set
Error: Unsupported server version 8.0.27-18.
Please upgrade PXB, if a new version is available. To continue with risk, use the option --no-server-version-check.
E0508 00:00:02.568805       1 deleg.go:144] sidecar "msg"="failed waiting for xtrabackup to finish" "error"="exit status 1"

Logs from the backup container:
Create Google Drive service-account.json file.
Create rclone.conf file.
I0513 00:00:53.995893       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="MY_SERVER_ID_OFFSET"
I0513 00:00:53.996029       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="MY_MYSQL_VERSION"
I0513 00:00:53.996037       1 deleg.go:130] sidecar "msg"="MY_MYSQL_VERSION is not a semver version"
I0513 00:00:53.996046       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="MY_CLUSTER_NAME"
I0513 00:00:53.996064       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="MY_NAMESPACE"
I0513 00:00:53.996076       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="MY_SERVICE_NAME"
I0513 00:00:53.996083       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="INIT_BUCKET_URI"
I0513 00:00:53.996090       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="OPERATOR_USER"
I0513 00:00:53.996097       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="OPERATOR_PASSWORD"
I0513 00:00:53.996106       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="REPLICATION_USER"
I0513 00:00:53.996118       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="REPLICATION_PASSWORD"
I0513 00:00:53.996132       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="METRICS_EXPORTER_USER"
I0513 00:00:53.996140       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="METRICS_EXPORTER_PASSWORD"
I0513 00:00:53.996151       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="ORC_TOPOLOGY_USER"
I0513 00:00:53.996158       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="ORC_TOPOLOGY_PASSWORD"
I0513 00:00:53.996168       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="BACKUP_COMPRESS_COMMAND"
I0513 00:00:53.996182       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="BACKUP_DECOMPRESS_COMMAND"
I0513 00:00:53.996194       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XBSTREAM_EXTRA_ARGS"
I0513 00:00:53.996212       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XTRABACKUP_EXTRA_ARGS"
I0513 00:00:53.996224       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XTRABACKUP_PREPARE_EXTRA_ARGS"
I0513 00:00:53.996250       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="XTRABACKUP_TARGET_DIR"
I0513 00:00:53.996264       1 deleg.go:130] sidecar "msg"="environment is not set"  "key"="INITFILE_EXTRA_SQL"
I0513 00:00:53.996411       1 deleg.go:130] sidecar "msg"="take a backup"  "bucket"="s3://*********/mysql-database-cluster-production/mysql-database-cluster-auto-2022-05-13t00-00-00.xbackup.gz" "host"="mysql-database-cluster-mysql-0.mysql.*********--production"
I0513 00:00:53.996432       1 deleg.go:130] sidecar "msg"="initialize a backup"  "endpoint"="/xbackup" "host"="mysql-database-cluster-mysql-0.mysql.*********--production"
E0513 00:00:54.239626       1 deleg.go:144] sidecar "msg"="take backup command failed" "error"="getting backup: fail to get backup: %!s(<nil>), code: 500 Internal Server Error"

PLEASE HAAAALP!!!11 My production database is not being backed up automatically because of this issue :rofl:

Ok so... The issue is caused by old version of xtrabackup. I've managed to get it fixed by building my custom side container image:
FROM bitpoke/mysql-operator-sidecar-8.0:v0.6.2

USER root

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
    percona-toolkit percona-xtrabackup-80 \
    && rm -rf /var/lib/apt/lists/*

USER mysql

For anyone who wants to get it working before official fix from bitpoke:
helm upgrade mysql-operator bitpoke/mysql-operator \
    --set-string sidecar80.image.repository=elderapo/mysql-operator-sidecar-8.0 \
    --set-string sidecar80.image.tag=fix-1

I've encountered the exact same problem.
Is there a fix coming for this?


Use Installed Safari plug-ins

I have a plug-in named 'Noir' that I use with Safari. This converts webpages that have no dark theme to a dark representation.  It would be good if the web viewer in NNN could load the said plug-in so my eyes don't burn.

We are using WKWebView, not Safari itself. I don't believe there is a way for us to load Safari plugins.

Do you know if SFSafariViewController loads plug-ins? If it does, then maybe there could be a preference setting to choose between faster WKWebView and the slower plug-in friendly SafariVC?Just a suggestion. I love NNW nonetheless.On Dec 20, 2023, at 8:26 AM, Stuart Breckenridge @.***> wrote:
We are using WKWebView, not Safari itself. I don't believe there is a way for us to load Safari plugins.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


App creation fails

When I run rekit create sample I got some vulnerability issues. Can I pass them?
rekit -v # 2.3.3
 janjezek   ~/Desktop  rekit create sample                                                                  ✔
Welcome to Rekit!
Downloading boilerplate from https://github.com/supnate/rekit-boilerplate-cra#dist...
Post creating...
Project creation success!
To run the project, please go to the project folder "sample" and:
  1. Run "npm install" to install dependencies.
  2. Run "npm start" to start the dev server.
Enjoy!

 janjezek   ~/Desktop  cd sample                                                                            ✔

 janjezek   …/Desktop/sample  npm install                                                                   ✔
npm WARN deprecated<EMAIL_ADDRESS>This project is no longer maintained.
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm WARN deprecated<EMAIL_ADDRESS>CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated<EMAIL_ADDRESS>cross-spawn no longer requires a build toolchain, use it instead

><EMAIL_ADDRESS>install /Users/janjezek/Desktop/sample/node_modules/fsevents
> node install

node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v67 ABI, unknown) (falling back to source compile with node-gyp)
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field 'lockStarted' [-Wreorder]
   : async_resource("fsevents:FSEvents"), lockStarted(false) {
     ^
1 warning generated.
  SOLINK_MODULE(target) Release/fse.node
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.
  COPY /Users/janjezek/Desktop/sample/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp

><EMAIL_ADDRESS>postinstall /Users/janjezek/Desktop/sample/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

added 1557 packages from 915 contributors and audited 16422 packages in 24.436s
found 2 vulnerabilities (1 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

 janjezek   …/Desktop/sample  npm audit fix                                                                 ✔
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

up to date in 7.484s
fixed 0 of 2 vulnerabilities in 16422 scanned packages
  1 vulnerability required manual review and could not be updated
  1 package update for 1 vuln involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

 janjezek   …/Desktop/sample 

Try "npm audit fix --force" command. It will surely resolve all the vulnerabilities.


Geojsontiler implementation for easier testing without workers (renders sample GeoJSON using GeoJsonDataProvider)

retest this please

retest this please


Not working anymore with python-coverage version 7 or newer

E           ImportError: cannot import name 'Reporter' from 'coverage.report' (/usr/lib/python3.11/site-packages/coverage/report.py)

coveralls/reporter.py:122: ImportError

E       ImportError: cannot import name 'FnmatchMatcher' from 'coverage.files' (/usr/lib/python3.11/site-packages/coverage/files.py)

coveralls/reporter.py:64: ImportError

with version 6.5.0 it still working

thanks! can confirm it works with 7.4.1 👍


Build strategy based on containers with cache

Fix #213

@benoitf added you here as per our discussions about a way to move the cache into a building strategy based on Containerfiles

This depends on #222


Convert deprecations from pre-0.1.0 to unavailable

This change converts the old @Flag initializers for CaseIterable/String enums from deprecated to unavailable, in preparation for the 0.1.0 release.
Checklist

[x] I've added at least one test that validates that my change is working, if appropriate
[x] I've followed the code style of the rest of the project
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary

@swift-ci Please test


chore(deps): upgrade compiler dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-compiler-dependencies-k8s-27-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3312

Questions ?
Please refer to the Backport tool documentation


How to resolve initial image via Webpack

I am using vue-croppa in Nuxt.js project which runs webpack to resolve images.
I am trying to setup initial image but it doesn't work for me. I tried:
<croppa initial-image="~/assets/img/profiles/1.png"></croppa>
<croppa<EMAIL_ADDRESS><croppa initial-image="./assets/img/profiles/1.png"></croppa>
<croppa :initial-image="'./assets/img/profiles/1.png'"></croppa>

Any help is appreciated. Thanks.

Never mind, found in the docs that I can supply image into slot="initial"
<croppa>
   <img src="~/assets/img/profiles/1.png" slot="initial">
</croppa>

You need to remove the current image on croppa to drag and drop a new one.

@zhanziyang yes I figure that our. Is there any special reason that drag and drop would not work even over image? I think it's more logical UIX case...

@PrimozRome Um.. There is not a special reason for it. Good suggestion. I will consider implementing it in the next version. We only need to change line 848 of the src code.
https://github.com/zhanziyang/vue-croppa/blob/e7d7f9eb27b7f9927450018355e57277fffa91c6/src/cropper.vue#L847-L850


KPI Tracker - Selecting less than 24 hours for the range causes performance issues

Bug Description
Selecting 12 hours for the range causes some performance issues such as transactions graphs are loaded slow and their responsiveness is also slow.
Steps to Reproduce
Open KPI Tracker Grafana page and select the range to be 12 hours.
Observe transactions graphs.
Expected Result
Performance should not be affected.
Actual Result
Currently it seems to take unusually longer time to load the graph.
Versions

Software Version
OS
Browser
Mobile device, if applicable

This should be fixed now., based on my tests at least.


Escalated visibility of org.springframework.cloud.aws.messaging.liste…

…ner.SimpleMessageListenerContainer.AsynchronousMessageListener#isQueueRunning method
Fixes gh-350

@L00kian Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@L00kian Thank you for signing the Contributor License Agreement!

Superseded by #707


Fix underbrace

Fix the vertical alignment of \underbrace so that it correctly takes into account the descender of the lower element.
Fixes issue #1303.

Visual confirmation:

I'll need some help to generate new screenshots for HorizontalBraces. The bug is visible right there in the old screenshot.

That was fast! Screenshots pushed.


ValueError: Can't clean for JSON for intake.catalog.local.LocalCatalogEntry

Running into an error outputting an intake.catalog.local.LocalCatalogEntry in a jupyter notebook. print(entry) works, but display(entry) a ValueError: Can't clean for JSON
pinging @jhamman and @martindurant for help sorting this one out. I think it's likely a simple fix.
import intake
import intake_stac
print(intake.__version__) #0.5.3
print(intake_stac.__version__) #0.2.1

cat = open_stac_catalog('https://storage.googleapis.com/pdd-stac/disasters/catalog.json')
list(cat)
entry = cat['Houston-East-20170831-103f-100d-0f4f-RGB']
type(entry) #intake.catalog.local.LocalCatalogEntry
print(entry)
"""
name: Houston-East-20170831-103f-100d-0f4f-RGB
container: catalog
plugin: ['stac_item']
description:
direct_access: True
user_parameters: []
metadata:
args:
  stac_obj: Houston-East-20170831-103f-100d-0f4f-RGB
"""
display(entry)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/srv/conda/envs/notebook/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
    916             method = get_real_method(obj, self.print_method)
    917             if method is not None:
--> 918                 method()
    919                 return True
    920

/srv/conda/envs/notebook/lib/python3.7/site-packages/intake/catalog/entry.py in _ipython_display_(self)
    113         }, metadata={
    114             'application/json': {'root': contents["name"]}
--> 115         }, raw=True)
    116
    117     def __getattr__(self, attr):

/srv/conda/envs/notebook/lib/python3.7/site-packages/IPython/core/display.py in display(include, exclude, metadata, transient, display_id, *objs, **kwargs)
    309     for obj in objs:
    310         if raw:
--> 311             publish_display_data(data=obj, metadata=metadata, **kwargs)
    312         else:
    313             format_dict, md_dict = format(obj, include=include, exclude=exclude)

/srv/conda/envs/notebook/lib/python3.7/site-packages/IPython/core/display.py in publish_display_data(data, metadata, source, transient, **kwargs)
    120         data=data,
    121         metadata=metadata,
--> 122         **kwargs
    123     )
    124

/srv/conda/envs/notebook/lib/python3.7/site-packages/ipykernel/zmqshell.py in publish(self, data, metadata, source, transient, update)
    127         # hooks before potentially sending.
    128         msg = self.session.msg(
--> 129             msg_type, json_clean(content),
    130             parent=self.parent_header
    131         )

/srv/conda/envs/notebook/lib/python3.7/site-packages/ipykernel/jsonutil.py in json_clean(obj)
    189         out = {}
    190         for k,v in iteritems(obj):
--> 191             out[unicode_type(k)] = json_clean(v)
    192         return out
    193     if isinstance(obj, datetime):

/srv/conda/envs/notebook/lib/python3.7/site-packages/ipykernel/jsonutil.py in json_clean(obj)
    189         out = {}
    190         for k,v in iteritems(obj):
--> 191             out[unicode_type(k)] = json_clean(v)
    192         return out
    193     if isinstance(obj, datetime):

/srv/conda/envs/notebook/lib/python3.7/site-packages/ipykernel/jsonutil.py in json_clean(obj)
    189         out = {}
    190         for k,v in iteritems(obj):
--> 191             out[unicode_type(k)] = json_clean(v)
    192         return out
    193     if isinstance(obj, datetime):

/srv/conda/envs/notebook/lib/python3.7/site-packages/ipykernel/jsonutil.py in json_clean(obj)
    189         out = {}
    190         for k,v in iteritems(obj):
--> 191             out[unicode_type(k)] = json_clean(v)
    192         return out
    193     if isinstance(obj, datetime):

/srv/conda/envs/notebook/lib/python3.7/site-packages/ipykernel/jsonutil.py in json_clean(obj)
    195
    196     # we don't understand it, it's probably an unserializable object
--> 197     raise ValueError("Can't clean for JSON: %r" % obj)

ValueError: Can't clean for JSON: Houston-East-20170831-103f-100d-0f4f-RGB

We inherit the _ipython_display_ method from intake's CatalogEntry. My guess is that there is some bits of metadata on the stac object that are not parsable by ipython's json parser. We should be able to overwrite this behavior (or fix this upstream with sat-stac).
https://github.com/intake/intake/blob/a4d216d1378fc8eaedc6796c1516317316ec6a8e/intake/catalog/entry.py#L106-L115

So, the error is due to datetime objects in the metadata:
Adding this to the above code results in a more informative error
import json
json.dumps(entry.metadata)

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-d97249792b93> in <module>
     13 import json
     14 #json.dumps(entry)
---> 15 json.dumps(entry.metadata)

/srv/conda/envs/notebook/lib/python3.7/json/__init__.py in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, default, sort_keys, **kw)
    229         cls is None and indent is None and separators is None and
    230         default is None and not sort_keys and not kw):
--> 231         return _default_encoder.encode(obj)
    232     if cls is None:
    233         cls = JSONEncoder

/srv/conda/envs/notebook/lib/python3.7/json/encoder.py in encode(self, o)
    197         # exceptions aren't as detailed.  The list call should be roughly
    198         # equivalent to the PySequence_Fast that ''.join() would do.
--> 199         chunks = self.iterencode(o, _one_shot=True)
    200         if not isinstance(chunks, (list, tuple)):
    201             chunks = list(chunks)

/srv/conda/envs/notebook/lib/python3.7/json/encoder.py in iterencode(self, o, _one_shot)
    255                 self.key_separator, self.item_separator, self.sort_keys,
    256                 self.skipkeys, _one_shot)
--> 257         return _iterencode(o, 0)
    258
    259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

/srv/conda/envs/notebook/lib/python3.7/json/encoder.py in default(self, o)
    177
    178         """
--> 179         raise TypeError(f'Object of type {o.__class__.__name__} '
    180                         f'is not JSON serializable')
    181

TypeError: Object of type datetime is not JSON serializable

The metadata looks like this:
{'datetime': datetime.datetime(2017, 8, 31, 17, 24, 57, 555491, tzinfo=tzlocal()),
 'provider': 'Planet',
 'license': 'CC-BY-SA',
 'eo:cloud_cover': 2,
 'eo:gsd': 3.7,
 'eo:sun_azimuth': 145.5,
 'eo:sun_elevation': 64.9,
 'eo:view_angle': 0.2,
 'pl:epsg_code': 32615,
 'pl:ground_control': True,
 'pl:instrument': 'PS2',
 'pl:provider': 'planetscope',
 'bbox': [-95.73737276800716,
  29.561332400220497,
  -95.05332428370095,
  30.157560439570304],
 'geometry': {'type': 'Polygon',
  'coordinates': [[[-95.73737276800716, 30.14525788823348],
    [-95.06532619920118, 30.157560439570304],
    [-95.05332428370095, 29.57334931237589],
    [-95.7214758280382, 29.561332400220497],
    [-95.73737276800716, 30.14525788823348]]]},
 'date': datetime.date(2017, 8, 31),
 'catalog_dir': ''}

The following can fix the issue, but I'm confused as to where this should go in the codebase:
import datetime
def convert_datetime(o):
    if isinstance(o, datetime.datetime) or isinstance(o, datetime.date):
        return o.__str__()
    else:
        return o

md = entry.metadata
clean = {k: convert_datetime(v) for k, v in md.items()}

Maybe @ian-r-rose has a suggestion based on this intake pull request https://github.com/intake/intake/pull/327

At what point is JSON encoding required? I'm pretty sure that YAML has no problem with this.

Interesting, I hadn't considered that there would be datetime objects in the metadata.
@martindurant when I added the custom __repr__ I used JSON for the mimetype, with the knowledge that it was a widely-supported one by a variety of frontends (JupyterLab, nteract, etc).
Is there some fuller accounting of the non-JSON-able types that might pop up in the metadata? If not, the basic workaround that @scottyhq points to seems reasonable to me, if a bit fragile. We could provide a default serializer function str() to the JSON-serialization to try to cover all possible objects that might be in the metadata.

msgpack and yaml are the serialisers of reference in intake; but no, there is no list of expected metadata contents, and some drivers might choose to store more complex things if they are not to be serialised at all.

Thanks for the input. As far as I can tell we are using satstac to read JSON metadata that starts as strings ("datetime": "2019-10-31T19:02:13.439292+00:00"), but gets converted to datetime objects - @matthewhanson can confirm: https://github.com/pangeo-data/intake-stac/blob/d2c3f01b2e9931da7b1d87aaa67c7e0c107c5fc7/intake_stac/catalog.py#L207
So another short-term solution is just to not convert the strings for intake metadata.


updated accessibility method for el capitan compatibility

Should fix #14136 and all other apps that need accessibility access on el capitan

Thank you @adityadalal924.
@jawshooah If it looks good to you, we should merge and cut a new release.

Why the close?

whoops, was cleaning up my branches and accidentally forgot this PR was still open

Sorry for the delay, this LGTM. @vitorgalvao, mind merging and cutting the release? I'm a bit tied up today.

Sure thing.


Remove the horizontal scroll in mobile view

Issue Type:

[x] Bug Report
[ ] Feature Request
[ ] Documentaion

Describe the bug

A clear and concise description of what the bug is.

Possible solution

Describe the solution you thought of.

Screenshots

Assign it to me please


"colormgr get-devices" shows no output devices for wayland

Hyprland Version
0.30
Bug or Regression?
Bug
Description
I would love using hyprland for work but this requires the installation of color correction profiles. For wayland this should be possible with "colormgr set-device-profile deviceID profileID". But not in hyprland. The command "colormgr get-devices" shows no connected devices or displays.
How to reproduce
call colormgr get-devices
Crash reports, logs, images, videos
No response

what source indicates it should work on wayland? There is no color management protocol in wayland yet.

Archlinux Wiki
and testing "colormgr get-devices" using gnome and wayland shows a list off all devices...

Arch Wiki also reports the same under Wayland in ICC Profiles. I too get no output with colormgr get-devices on Hyprland 0.30.

unless it talks to the kernel directly there is no way.


Multiple lines from same command

It would be really cool if there was a way to get multiple lines drawn from the same command. I have a command that outputs something like a table with 2 rows and 2 columns: a name and a number in each row.
The problem with the command that makes the table is that its slow and can take like 10 seconds to run, so I'd rather not need to run it once per line.
So my ask is can we have a mode where we give a command (once) and then we give N number of commands to manipulate the output of the command to get the title and number from the output?

I don't quite follow. Could you give more detailed information about the data your command returns (like what format is that table in) and maybe write a command for smag in the way that you'd want it to work?
Another note: Maybe this isn't necessarily something that should be solved with a new feature but rather with a separate script running simultaneously which produces the values by running your slow command, splits the result into the single values, and saves them in some temp files - and then just running smag on the contents of these files. Seems easier to me than integrating possibly complex and, more importantly, very specific parsing logic into smag.

Let me clarify. I have a script I can run that takes a couple minutes to complete. The script prints something like:
{code}
Merged PRs: 10
Closed PRs: 0
Open PRs: 67
Unknown PRs: 0
{code}
So I use a combination of greps to get the numbers out and graph them with smag
The ask is for a way to do something like:
smag "command that will generate the output i gave" -G "grep Open PRs | cut -d ':' -f 2" -G "grep Merged PRs | cut -d ':' -f 2"

The idea is the command runs once, then I use the new `-G` (for example) option to manipulate the command output to get multiple numbers for multiple graphs.


go1.20: no docs for golang.org/x/crypto/x509roots/fallback

What version of Go are you using (go version)?

$ go version
go version go1.20 darwin/arm64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/andig/Library/Caches/go-build"
GOENV="/Users/andig/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/andig/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/andig/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/andig/htdocs/evcc/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sv/rs_453y57xj86xsbz3kw1mbc0000gn/T/go-build1228287512=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.20 darwin/arm64
GOROOT/bin/go tool compile -V: compile version go1.20
uname -v: Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
ProductName:		macOS
ProductVersion:		13.1
BuildVersion:		22C65
lldb --version: lldb-14<IP_ADDRESS>
Apple Swift version 5.7.2 (swiftlang-<IP_ADDRESS>.5 clang-14<IP_ADDRESS>)

What did you do?
https://go.dev/doc/go1.20 mentions https://pkg.go.dev/crypto/x509#SetFallbackRoots and links https://go.dev/pkg/golang.org/x/crypto/x509roots/fallback. The link is dead afaikt and looking at https://pkg.go.dev/crypto I cannot find any reference to x509roots.
What did you expect to see?
Documentation for the https://go.dev/pkg/golang.org/x/crypto/x509roots/fallback package
What did you see instead?
No docs.

Duplicate of #57792

The duplicate is a proposal. This issue is referring to the current release notes. Seems these need be corrected if the new package is still in proposal phase?


[YOSYS][Issue 3594] Print backtrace on abort/assert #3594

Output looks like the following upon encountering an error in the script, for a command $ Yosys -s demo.ys
> ERROR: No such command: prox (type help for a command overview) Error while executing script:
	Running script on file demo.ys
---------------------------------
   1 read_verilog ./tests/lut/map_not.v
   2 opt
   3 proc_clean
-->4 prox
---------------------------------

Please split these two features in separate PRs  ( create new one for logging script line , keep backtrace in this)

OK got it.

Update done.

The test is failing perhaps because of the message,
"Backtrace not available on this platform,"
1948


fix: Use new prototypes for objc_msgSend

The use of objc_msgSend with OBJC_OLD_DISPATCH_PROTOTYPES is dangerous. The new prototypes were introduced specifically to prevent odd behavior that may occur as a result of how variadic parameters are handled (see this article). This PR updates each call to objc_msgSend so that it is casted appropriately for the corresponding Objective-C call.

Great catch @rajivshah3 - but we need to verify that its really working equivalently. Anyone care to test this on MacOS?

I can take some time test this tonight. Might also test if we can increase the readability a bit.

LGTM. I tested some macro on it but they become worse. Guess it's better to leave as is.

It seems this PR hasn't been merged yet.
New macbook seems to enable "Strict Checking of objc_msgSend Calls" by default.
And this PR can resolve it. webview_rust#51 is also waiting on this.
@rajivshah3 could you rebase the PR when you have some time. And maybe someone has permission could merge it.

It seems this PR hasn't been merged yet.
New macbook seems to enable "Strict Checking of objc_msgSend Calls" by default.
And this PR can resolve it. webview_rust#51 is also waiting on this.
@rajivshah3 could you rebase the PR when you have some time. And maybe someone has permission could merge it.


Update wifi.plist

Remove extra  at end of template as this is generating validation error 'Extra content at the end of document' error when validating XML.

My bad 😄 Thanks


Output window shows up when RLS crashes

Version of VSCode: 1.13.1
Version of the extension: 0.4.2
OS: Win10
Description: When RLS crashes window with its output appears. This is very annoying, is there a way to disable this behavior?

Apparently there is an option to disable this but it doesn't work. I have this in my settings.json:
    // Rust Language Server configuration
    "rust.rls": {
        "revealOutputChannelOn": "never",
        "useRustfmt": false
    },

but it doesn't help.

I don't think it should be disabled.
It may cause some misunderstanding when developers expect something to work when it doesn't.
Developers, what do you think about it?

There should be a way to hide it  (semi-)permanently, probably for the rest of the session. It's good to know when something goes wrong, but if you have code that keeps causing crashes or a configuration issue you don't want to fix right now you end up just not closing it, eating up screen real-estate and causing distracting "movement" as text scrolls by.

I'm going to add a new parameter,
"rust.rls.revealOutputChannelOnCrash" which will either true or false. true by default.

Yeah this is very confusing and annoying as "rust.showOutput": false, explicitly says "don't show output" which is expected to work including on RLS failures (which are very often right now).


supabase init: replace invalid chars in generated project_id with _

Bug report
Error on 'supabase start'
trying to follow the instuctions on local devlopment as writtenin the docs
https://supabase.com/docs/guides/functions#developing-locally
when running supabase start its pulls several images then i get a error:
Error: Error response from daemon: Invalid container name (supabase_db_functions demo), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed
and when i try running supabase functions serve hello-world i get get (obviously..) another error :
Error: supabase start is not running.
running in windows 10 with docker installed

Sorry about that - can set project_id in supabase/config.toml to e.g. functions_demo?

Sorry about that - can set project_id in supabase/config.toml to e.g. functions_demo?

indeed , i updated the project_id in supabase/config.toml to the project id ( it was initialy set to the directory name)
now everything is working properly
Thank you.

Sorry, I'm repurposing this issue to fix the generated project_id if you don't mind! Feel free to unsubscribe.

Currently, the Local Development documentation guides the user to run init and start consecutively. However, this causes the following error.

Error: Error response from daemon: Invalid container name (supabase_db_@), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed

This is because supabase init generates a config.toml file with project_id = "@".
Adding steps to edit the config.toml file would help.


Response stream buffering

How can I control ResponseStream buffering ? I would like to disable buffering in some cases.
Where are the 'Microsoft.AspNet.Server.Weblistener' sources ? I was not able to find it.
Thanks

httpContext.Features.Get<IHttpBufferingFeature>().DisableResponseBuffering()
https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNet.Http.Features/IHttpBufferingFeature.cs
Weblistener is not yet open source. /cc: @Eilon


Goroutine started on init() function

Describe the bug
In this init() function a gorouting is fired.
This looks like an strange behaviour for a lib, because any program importing this lib will have your goroutine running.
Found looking for a problem in Telegraf: https://github.com/influxdata/telegraf/pull/5612

Found this goroutine running during my tests today. This strikes me as extremely bad practice to start unwanted goroutines no matter how "cheap" they are. If the package requires a Goroutine to run, starting it should be part of the public API that users have to start themselves.

Likewise importing these google APIs will also start the mystery go routine

google.golang.org/api/drive/v2
google.golang.org/api/drive/v3
google.golang.org/api/storage/v1

I can't explain how, but I believe this goroutine has a serious bug causing the CPU to spin, reported in: #1200

agreed this should not be happening. i had to investigate wtf the library was and whether it posed a security risk to my application.

agreed this should not be happening. i had to investigate wtf the library was and whether it posed a security risk to my application.


SQL

Hi, I’m working with a SQL query that has a nested select statement. I’m trying to modify it so that the most significant non-zero values in a "history code" are replaced with a sequence of consecutive numbers based on specific conditions.
For example, if the history code is 0302230, I want to transform it into<PHONE_NUMBER>, where the new part 3210 replaces the corresponding non-zero segment, like this: 03022(3210)0.
The logic behind this transformation depends on whether certain dates (paidAt and deadlineDate) meet specific conditions. Here's the SQL code I'm currently using:
SELECT
    GROUP_CONCAT(
        CASE
            WHEN i.paidAt IS NULL
                 AND DATE_ADD(i.deadlineDate, INTERVAL 10 DAY) < CURDATE()
                 AND i.dueDate = (
                    SELECT MIN(i2.dueDate)
                    FROM installment i2
                    WHERE i2.contractId = i.contractId
                    AND i2.paidAt IS NULL
                    AND DATE_ADD(i2.deadlineDate, INTERVAL 10 DAY) < CURDATE()
                    LIMIT 1
                )
            THEN
                CASE
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) <= 0 THEN '0'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 1 AND 29 THEN '1'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 30 AND 59 THEN '2'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 60 AND 89 THEN '3'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 90 AND 119 THEN '4'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 120 AND 149 THEN '5'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 150 AND 179 THEN '6'
                    WHEN DATEDIFF(CURDATE(), DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) >= 180 THEN 'W'
                END
            ELSE
                CASE
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) <= 0 THEN '0'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 1 AND 29 THEN '1'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 30 AND 59 THEN '2'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 60 AND 89 THEN '3'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 90 AND 119 THEN '4'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 120 AND 149 THEN '5'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) BETWEEN 150 AND 179 THEN '6'
                    WHEN DATEDIFF(i.paidAt, DATE_ADD(i.deadlineDate, INTERVAL 10 DAY)) >= 180 THEN 'W'
                END
        END ORDER BY i.dueDate DESC SEPARATOR ''
    )
FROM installment i
WHERE i.contractId = c.id
) AS 'Payment History Status Code',

Could someone help me implement the logic to correctly replace only the first non-zero value from the right in the history code?

Not related to SQL Chat feature. Please ask in stackoverflow.com