Mobile browser support with responsive columns

I'm investigating this along with django-flat-responsive, as an alternative to django-grappelli in order to find a solution for using django admin on both mobile devices and desktop. However, with a narrow browser window (e.g. phone), if I've specified 4 columns it just tries to fit all 4 in the screen width. How about making columns a maximum rather than a requirement? And show only the number of columns that can fit, based on a minimum width?
As an alternative to responsive CSS, is there a way to set columns dynamically when we detect the browser?

The mobile experience is quite bad even with 2 columns. The columns are narrow, and they resize during page loading so if I click to something before the page is fully loaded I end up on different page.

I added to base_site.html the followring
{% block extrahead %}
    {{block.super}}
    <style>
        @media (max-width: 800px) {
          .dashboard-column { width: 100% !important; }
        }
    </style>
{% endblock extrahead %}```

I also tried to set the columns dynamically,

class CustomIndexDashboard(Dashboard):
"""
Custom index dashboard for survey.
"""
def init_with_context(self, context):
# ... your code
self.columns = self.set_columns(context)

@izimobil Why do you think, that this would be lot of work and not worth fixing? I think, that @luismejiadev's solution works very well. And I think that showing only one column for screen widths less than 800px is reasonable setup for 99 % of cases.

Making DAT fully responsive is not only about dashboard columns, you need to adapt tables in change lists, adapt the menu (hamburger menu), etc. That's why I added the "lot of work" tag.
I never said it was not worth fixing, it's simply that I don't have the time nor the need to do it. Pull requests are welcome ;)
Regarding columns, what needs to be fixed exactly ?
As @luismejiadev posted, you can already do this by setting the columns property according to mobile detection (with a third party app like https://pypi.org/project/django-mobile-detect/):
class CustomIndexDashboard(Dashboard):
    """
    Custom index dashboard for survey.
    """
    def init_with_context(self, context):
        # ... your code
        self.columns = self.set_columns(context)

    def set_columns(self, context):
        if context['request'].device.is_mobile or context['request'].is_tablet:
            return 1
        return 2

Adding css is not necessary and less flexible I think.

I think, that the two (more) column setup on mobile portrait is the biggest problem and solution that fixes only that should be part of the code.
I find the CSS solution for the columns more suitable - it doesn't depend on the device being tablet/mobile phone.
It depends on screen width, which is better in my opinion. For example two columns on tablet landscape is probably not a problem.


add type annotations to binder in SimpleVarF

This hopefully breaks nothing else and fixes the compilation error.

Current coverage is 100% (diff: 100%)

Merging #83 into master will not change coverage

@@           master   #83   diff @@
===================================
  Files          14    14
  Lines         840   840
  Methods       743   743
  Messages        0     0
  Branches       97    97
===================================
  Hits          840   840
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 8cbe15c...0112065


[QUESTION] - How to redirect to different url in middleware?

I'm trying to redirect to different internal url in middleware, but I'm not redirected. This is the code I tried.
package main

import (
	"context"
	"github.com/cloudwego/hertz/pkg/app"
	"github.com/cloudwego/hertz/pkg/app/server"
	"github.com/cloudwego/hertz/pkg/protocol/consts"
)

func WebAuth(redirectTo string) app.HandlerFunc {
	if redirectTo == "" {
		redirectTo = "/"
	}
	return func(c context.Context, ctx *app.RequestContext) {
		if _, ok := ctx.Get("user"); !ok {
			ctx.Redirect(consts.StatusFound, []byte(redirectTo))
			// ctx.JSON(200, "Test") Don't work either
			return
		}
		ctx.Next(c)
	}
}

func main() {
	h := server.Default(server.WithHostPorts("<IP_ADDRESS>:8080"))
	g1 := h.Group("/")
	g1.Use(WebAuth("/foo"))
	g1.GET("/", func(ctx context.Context, c *app.RequestContext) {
		c.Set("user", 1)
		c.String(consts.StatusOK, "Home")
	})
	h.GET("/foo", func(ctx context.Context, c *app.RequestContext) {
		c.String(consts.StatusOK, "hello, world")
	})

	h.Spin()
}

The code enters the middleware and inside the if for redirection when tried to visit "/", but it's not redirecting to "/foo" and ends up with "Home" response
Expected Result:
The page should have redirected to "/foo" instead of going inside "/"
Please suggest what am I doing wrong

cc @zstone12

@li-jin-gou In middleware whatever I put, ctx.JSON(), ctx.HTML(), ctx.Redirect(), the code is going inside "/" which is not expected

Should use ctx.Abort().
Abort() prevents pending handlers from being called.

refer to https://www.cloudwego.io/zh/docs/hertz/tutorials/basic-feature/middleware/
use ctx.Abort()

Ah! got it. So wouldn't it be good if Abort() is called inside Redirect(). I mean what would be the use of Redirect() if Abort() is not called?

It about

Thanks for explanation. I was just wondering any use case where I would only call Redirect() and not Abort()

here last handler.


Teradata Conversion Failing with unsupported features

When executing the dw-migration-client with metadata generated by dwh-migration-dumper the following errors are produced in the batch_translation_report.csv:
BigQuery does not support INDEX-backed constraints such as PRIMARY KEY and UNIQUE.
BigQuery does not support set tables.
BigQuery cluster-expression 'dataparcel' is of unsupported type VARBINARY
BigQuery cluster-expression 'pnch_in_tim' is of unsupported type TIME
BigQuery cluster-expression 'txn_tim' is of unsupported type TIME
BigQuery does not support more than 4 CLUSTER BY expressions, got X
Unsupported RANGE partition: RANGE partition supported only for Integers. Using auto partitioning for DATE
Ideally these conflicts would be automatically resolved for example:
Removal of Primary and Unique keys definitions
Remove qualifiers for set and multiset in ddl
Reducing clustered fields to the limit
Removing unsupported partition definitions

Thanks for your feedback. Many of these should be considered warnings rather than errors. We may want to adjust how we categorize the report log entries to help customers understand what is actionable and what is not.

BigQuery does not support INDEX-backed constraints such as PRIMARY KEY and UNIQUE.

The translator should already be removing/commenting these lines, what you are seeing is a warning to the user.

BigQuery does not support set tables.

Another warning for the user. The translated output will not contain any Teradata-specific syntax like SET or MULTISET but when metadata coverage is available will translate INSERT statements into MERGE using WHEN MATCHED / WHEN NOT MATCHED logic to emulate the source dialect behavior. (The benefit of using a true compiler to translate rather than pattern matching!)

BigQuery does not support more than 4 CLUSTER BY expressions, got X

This is a warning to the user, we should be limiting to four in the translated SQL already.
But if any of the above doesn't match what you are experiencing please first check for RelationNotFound and AttributeNotFound issues with the objects used by the SQL in question to validate metadata coverage. If no issues there, then provide input examples and some guidance on what you would expect in the translated results. We are always improving the translation engine and this type of feedback is very helpful.
And that still leaves us with the unsupported types in cluster-expression, and the Unsupported RANGE partition. I've filed these with engineering and if you can provide any sample input (even if just generic) and guidance on output that would work for your use-case, it would be appreciated.


Update WasmPackPlugin to watch all crates

This still requires making a change to a .ts(x) file in demo/ before the changes will appear in the browser, but at least the .wasm bundle is being rebuilt in response to changes in the crates' source code now.

Codecov Report

Merging #229 (c1477ae) into main (7bd22b9) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #229      +/-   ##
==========================================
+ Coverage   93.81%   93.86%   +0.04%
==========================================
  Files          32       32
  Lines        4121     4121
==========================================
+ Hits         3866     3868       +2
+ Misses        255      253       -2

Impacted Files
Coverage Δ

crates/crochet_infer/src/types/type.rs
81.90% <0.00%> (+1.90%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Cache objects in Utils.__cache instead of using $.data (#4014)

This pull request includes a

[x] Bug fix
[ ] New feature
[ ] Translation

The following changes were made

Cache objects in Utils.__cache instead of using $.data
Updated several files to use the new functions to cache data in Utils.__cache
Removed all $.data code

This is a bug fix for #4014

There are indentation changes in here that are going to prevent this from being merged in.

I will fix the indentation.

There are still some indentation issues
This is going to need integration tests to make sure that we don't have this issue in the future

Sorry for the indentation issues. I fixed the EOL to be UNIX format. My editor had switched this to Windows format.
Do you want me to add integration tests ?

There's an integration test now...can this be merged in?

Merged into develop for 4.0.6 release.

Please also consider the following discussion regarding $myOriginalSelectElement.data('select2'): https://github.com/select2/select2/issues/5071#issuecomment-340218988

Sorry for posting here, but it feels relevant and I've tried to get support from the official channels with no answers yet.
Although there’s a fallback in Utils.GetData to get from the data attribute if the cache is empty, there’s nothing that actually sets the data attribute in the first place.
What I’m trying to do is access what was equivalent to:
var instance = $element.data('select2');

But this no longer seems to be possible.
Is there a public way of accessing the GetData or SetData functions?
Is this not a sort of dangerous change to make in essentially a bug fix release in terms of breaking backwards compatibility?

I'm here, just been busy with php[world] and traveling.

To be fair, I've not exactly been waiting long for a reply (and it's a weekend!), but I didn't necessarily want to see this one slip into a stable release if there's something wrong.

Yes, thanks @oh-ren and @chrisdeeming.  I didn't realize that these changes affected the public API.
But, it seems like this is meant to fix a bug (#4014).  Honestly, I don't really understand the problem that this is solving as I have never encountered this myself.  It seemed like a safe change, but apparently not.
Is there a way we can fix this bug (whatever it may be) without causing a breaking change?  Join me on my own chat server (https://chat.userfrosting.com/channel/select2) and we can discuss.

@NadeemAfana any thoughts on this?  Seems like this is breaking a lot of other aspects of Select2.

$element.data('select2') is clearly not public API; it is an internal implementation which people should avoid. Nonetheless, I will push a fix for this.

Thanks!  Yes, unfortunately Select2 is so big and widely used, and had been poorly documented for so long, and tends to attract the greenest types of developers, that it's part of the public API whether we want it to be or not 😦
Are there any use cases where people really need to be able to access data('select2')?  Otherwise we can add something to the documentation and then deprecate it over time.
Also, is there any chance that this modification is what is causing #5133?

I would definitely deprecate .data('select2'). It makes things confusing when people start using the internal components as they change over time. For example, updating .data('select2').options.options.maximumSelectionLength directly has no effect. According to this comment,  it worked in the past, but this change has nothing to do with this PR.

Also, is there any chance that this modification is what is causing #5133?

No, because I was able to reproduce the issue with 4.0.5.

We use the data stored there specifically to access the elements which are dynamically created by Select2, mostly as a shortcut.
They are, specifically .select2-container and .select2-selection.
We could just find them in the DOM relative to element we've instantiated Select2 on but if they're already cached in the Select2 object then, why not?
Point taken about invalid use cases but that's not something we'd do.

I suggest to create a new method then, perhaps $mySelect.select2('getInstance')?
To reiterate my use case (there might be others of course) here: add a class to $container when the select is deemed invalid (for styling purposes).
Not sure how other (popular) jQuery plugins implement getting a reference / access to the internal instance. It's not something uncommon, or is it?
Anyway it provides a means to get things done that otherwise are impossible / the plugin doesn't cater for. Manually selecting based on classes (or manual DOM traversal) is like 10000 times worse than being able to access the relevant elements already constructed by Select2 itself.
(Off topic, but somewhat related: $('#mySelect2').hasClass("select2-hidden-accessible") is not that great, why not something like: $('#mySelect2').select2('isInitialized')?
@alexweissman Thanks for the invite, might check the channel out, but simply discussing here works best?

@oh-ren I would indeed say that something similar to $mySelect.select2('getInstance') is generally the norm in other libraries.
That said, the data attribute approach is not uncommon either. As a compromise, if there was a built in method which could get certain things (but not set them) then that would work too. $mySelect.select2('getInstance') could just get the bits that are considered "safe" to expose.

Keep in mind also, that modifications to the internals of Select2 should be possible with custom adapters/decorators.
Can you provide examples of other jQuery plugins that have a getInstance method?
Incidentally, this seems like a perfect example of how Javascript's lack of visibility scoping can be frustrating.  Perhaps we need a rewrite of Select2 into Typescript more badly than we realize 😁
At any rate, I've merged in @NadeemAfana's BC fix for release on 4.0.6-rc.1, so this should solve the problem for the time being.

The tests now run for both jQuery 1.x and 2.x. This allows us to see if there is any discrepancy in the future.

Re-opening.

Hello,
I have read through issue #5071 which lead me here. What I am trying to achieve is change a config option after initialisation and stumbled into the issue stated here https://stackoverflow.com/questions/37016655/select2-cannot-read-property-query-of-null regarding the error thrown within the dataAdapter.
$('.country_select').on('select2:opening', (e) => {
   if($(e.target).data('select2').options.options.minimumResultsForSearch == 5) return
   $(e.target).data('select2').options.options.minimumResultsForSearch = 5;
   let options = $(e.target).data('select2').options.options;
   $(target).select2('destroy');
   $(target).select2(options);
})

Any suggestions would be appreciated


Make pages for poetry and stand up

Rules for stand up comedy
.It is a solo event
.Time limit is 5-7 minutes
. Negative marking for exceeding the time limit
. Any kind of cuss words are strictly prohibited
.content should be  original
. Use of any kind of chits or  mobile phones are not allowed
. Decision of judges will be final and binding
Rules for poetry
. It is a solo event
. Time limit is 3-5 min
. Negative marking for exceeding the time limit
. Languages that can be used are Hindi English Punjabi and hindustani.
. Content should be original

On It

@CO18353 Ok Bro thanks :D


Modern JS already guarantees Array#sort() is a stable sort and stable is deprecated

Describe the bug
warning react-scripts > css-minimizer-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo ><EMAIL_ADDRESS>Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

SVGO Version [e.g. 2.0.3]
NodeJs Version [e.g 14.0.4]
OS: [e.g. iOS]

Additional context
Add any other context about the problem here.

Someone already did the work! 🎉 #1681
We just need the PR to be merged

Hey, man. sre you alive?
You make us suffer.

Would really love to get this merged!  I've been getting this error in dozens of projects for months because I use cssnano a lot.

Any news?

I might be misunderstanding something here, but should this package not have received a version bump once https://github.com/svg/svgo/commit/2ea65860f01d4ad6f1f56bee484015c615cb5f9e was merged?
Currently I have installed svgo v2.8.0 but it still has the old stable "^0.1.8" dependency - how should yarn (in my case) know that that dependency is not needed anymore when stable svgo did not have a version bump?

@GamerBene19 The main branch is 44 commits ahead of the v2.8.0 release: https://github.com/svg/svgo/compare/v2.8.0...main. This fix will be included in the next release when it’s released, not retroactively in the existing release. This is how software development normally works.

@GamerBene19 The main branch is 44 commits ahead of the v2.8.0 release: v2.8.0...main. This fix will be included in the next release when it’s released, not retroactively in the existing release. This is how software development normally works.

Makes sense, thanks for the explanation!

So we are looking forward for the next release...

w00t w00t! Thanks for the merge peeps!

Fixed in https://github.com/svg/svgo/releases/tag/v3.0.0


nxdetector.pixel_mask: return h5py.Dataset rather than np.array

The pixel_mask can either be a single mask for the entire dataset or an array of masks for each image in the dataset. In the case of the latter we want to avoid reading the entire array of masks at once which the previous implementation resulted in.
Closes #17

@dwpaley is this a reasonable alternative implementation for your purposes?

@ndevenish Thanks for the bump, this got lost in Github spam. This looks great and I confirm it works fine on a file containing 50k masks. Agree it closes #17. Thank you @rjgildea!


Impersonation issues

Hi all !
Describe what did you try to do with TM1py
Trying to use Impersonation. In this case, an IBM cloud (dev) environment.
Describe what's not working the way you expect
I have seen it working once in my code, afterwards it did not work anymore.
The number of model cubes and control cubes added up for an admin user ==> 92
The number of model cubes and control cubes added up for the non-admin user ==> 59
I have seen the result of 59 once in Visual Studio Code, after that, only the error message that the user in the Impersonation does not exist. But I did not change the user.
I tried a lot of things but certainly the full CAMID including CAMID, then the CAMID without CAMID( ) and this appears to work, I used the }TM1_DefaultDisplayValue alias of Planning Analytics/firstname lastname (which did not work).
Without Impersonation, I consistently get 92 as the result, so that is all good.

TM1py: 1.9.1
TM1 Server Version: 11.6.00004.2

I see similar behaviour (the same error message) in Postman and (Excel) VBA, all with similar coding.
My goal is to have it working in Excel VBA but also in the other tools.

Hi @wimgielis,
normally you can impersonate with the "user name".
here is a sample that works for me. Can you try this on your end?
from TM1py import TM1Service

with TM1Service(
        base_url='https://come-company.planning-analytics.ibmcloud.com/tm1/api/tm1',
        user="some_company_tm1_automation",
        namespace="LDAP",
        password="apple",
        ssl=True,
        verify=True,
        async_requests_mode=True) as tm1:
    print(f"I am '{tm1.whoami.name}' I see {tm1.cubes.get_number_of_cubes()} cubes")

    admin_users = [user.name for user in tm1.security.get_users_from_group("ADMIN")]
    users = tm1.security.get_all_user_names()

    for user in users:
        if user in admin_users:
            continue

        with TM1Service(
                base_url='https://come-company.planning-analytics.ibmcloud.com/tm1/api/tm1',
                user="some_company_tm1_automation",
                namespace="LDAP",
                password="apple",
                ssl=True,
                verify=True,
                impersonate=user,
                async_requests_mode=True) as impersonated_tm1:
            print(f"I am '{impersonated_tm1.whoami.name}' I can see {tm1.cubes.get_number_of_cubes()} cubes")

Many thanks Marius ! Nice testing script.
I see that all users would see 92 cubes, as if the Impersonation is not honoured (?)

Would you have any idea what is going on ? When looking in TM1 for 1 such user, I have:
This user is only part of 1 group:

Cube security is limited:

Excuse me. There was an issue in my script. please replace this line:
print(f"I am '{impersonated_tm1.whoami.name}' I can see {tm1.cubes.get_number_of_cubes()} cubes")

with this one:
print(f"I am '{impersonated_tm1.whoami.name}' I can see {impersonated_tm1.cubes.get_number_of_cubes()} cubes")

Ah, I didn't catch that either.
Now I see 69 and 59 and 0 cubes. 0 cubes for 2 persons I know that left the company. This means that at least, this is working :-)
I will try to reverse engineer and see what might be different in Postman and Excel VBA.
Thanks for your cooperation, I will update the thread soon.

Here is the update.
I have it "working":

In VBA, add: .setRequestHeader "TM1-Impersonate"<EMAIL_ADDRESS>. ...."")"
Also, any time I do such an explicit Impersonation, I need to do first a POST command of "ActiveSession/tm1.Close"

Not sure if others would do the same, but for now that will do ;-)

Ah, I didn't catch that either.
Now I see 69 and 59 and 0 cubes. 0 cubes for 2 persons I know that left
the company. This means that at least, this is working :-)
I will try to reverse engineer and see what might be different in Postman
and Excel VBA.
Thanks for your cooperation, I will update the thread soon.

Best regards / Beste groeten,
Wim Gielis
MS Excel MVP 2011-2014
https://www.wimgielis.com http://www.wimgielis.be
Op wo 21 sep. 2022 om 16:30 schreef Marius Wirtz @.***>:

Excuse me. There was an issue in my script. please replace this line:
print(f"I am '{impersonated_tm1.whoami.name}' I can see {tm1.cubes.get_number_of_cubes()} cubes")
with this one:
print(f"I am '{impersonated_tm1.whoami.name}' I can see {impersonated_tm1.cubes.get_number_of_cubes()} cubes")
—
Reply to this email directly, view it on GitHub
https://github.com/cubewise-code/tm1py/issues/803#issuecomment-1253796121,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEDHULLZEFVJHQXJUDDJLSTV7MLXVANCNFSM6AAAAAAQRQHTDA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Bear benchmark triggers panic

Somehow the bear test gets a nil request passed. When I dump the requests the last several tests are the following:
&{POST /1/events/:eventName HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/events/:eventName <nil> <nil>}
&{POST /1/push HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/push <nil> <nil>}
&{POST /1/installations HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/installations <nil> <nil>}
&{GET /1/installations/:objectId HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/installations/:objectId <nil> <nil>}
&{PUT /1/installations/:objectId HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/installations/:objectId <nil> <nil>}
&{GET /1/installations HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/installations <nil> <nil>}
&{DELETE /1/installations/:objectId HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/installations/:objectId <nil> <nil>}
&{POST /1/functions HTTP/1.1 1 1 map[] <nil> 0 [] false  map[] map[] <nil> map[]  /1/functions <nil> <nil>}
<nil>

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
    panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x489482]

goroutine 8 [running]:
testing.tRunner.func1(0xc82008a000)
    /usr/local/go/src/testing/testing.go:450 +0x171
github.com/julienschmidt/go-http-routing-benchmark.bearHandlerTest(0x0, 0x0, 0x0, 0xc8202cb4c0)
    /data01/dev/src/github.com/julienschmidt/go-http-routing-benchmark/routers.go:144 +0x1a2
github.com/ursiform/bear.(*Context).Next(0xc8202cb4c0)
    /data01/dev/src/github.com/ursiform/bear/context.go:48 +0x11e
github.com/ursiform/bear.(*Mux).ServeHTTP(0xc8202b64e0, 0x7fb2acef7e08, 0xc8202cc420, 0xc82010a380)
    /data01/dev/src/github.com/ursiform/bear/mux.go:138 +0x19d
github.com/julienschmidt/go-http-routing-benchmark.TestRouters(0xc82008a000)
    /data01/dev/src/github.com/julienschmidt/go-http-routing-benchmark/routers_test.go:73 +0x52a
testing.tRunner(0xc82008a000, 0x10f3620)
    /usr/local/go/src/testing/testing.go:456 +0x98
created by testing.RunTests
    /usr/local/go/src/testing/testing.go:561 +0x86d

goroutine 1 [chan receive]:
testing.RunTests(0xe47108, 0x10f3620, 0x1, 0x1, 0x42ca01)
    /usr/local/go/src/testing/testing.go:562 +0x8ad
testing.(*M).Run(0xc820167ee8, 0x0)
    /usr/local/go/src/testing/testing.go:494 +0x70
main.main()
    github.com/julienschmidt/go-http-routing-benchmark/_test/_testmain.go:888 +0x116

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 5 [syscall]:
os/signal.loop()
    /usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
    /usr/local/go/src/os/signal/signal_unix.go:28 +0x37
exit status 2
FAIL    github.com/julienschmidt/go-http-routing-benchmark  0.044s

+1

+1

+1

+1

I got the same error, but commenting out bear didn't work. I did comment out all the routers in router_test.go and for some reason all the benchmarks started running.
I don't know enough go nor enough about these tests to understand why they're still running when they've been commented out.
I'm gonna try to figure out which one is causing the panic for me.

Yea it does seem to be Bear for me too after I disable the rivet tests so I can at least compile

+1

This seems to have been resolved upstream in the meantime


✔Improved the "FAQ Section" of the Website.

Hey @VaibhavArora314
issue closes #492
I have improved the FAQ Section of the Website -
What I Did -

Improved the Styling of Both Questions and Answers Triggers.
Added more "Comprehensive Questions" to the FAQ Page
Added Text-Highlighting Shadow to the Main-Heading.
Added Hovering Effects to the Questions-trigger.
Added Hovering Effects to the Answer-trigger.
Added Hovering Effects and Text shadow to the "Back to Home" Button.
Also, Increased the Width of the Questions.

Here's the Before -

Here's the Implementation -
https://github.com/user-attachments/assets/76ee09eb-d5ec-4e03-ad80-ecee774fabaa
Please take a look.
thankyou!

@VaibhavArora314 Done! Please check

@akbatra567 @VaibhavArora314 Please take a look

@VaibhavArora314 @akbatra567 If Approved. Please merge the PR
thankyou!


Huge rewrite of the downloader

Improved logging
Cleanup a lot of code

@DominicBM Just FYI -- I've been testing this locally and I think this is getting at some more useful information. Should retest with the updated NWDH data (which I'll do today or tomorrow)


Add podspec linting to CI script

What?
We should add the pod lib lint command to our Circle CI script. I thought we were already doing this (maybe we removed it in the upgrade?)
Why?
I made a master commit with an invalid podspec. (fixing now)

Looks like I could've broken the labeler in https://github.com/Moya/moya-peril/pull/32 😅 What a night


Internal Server Error on map upload

Full report: http://forums.faforever.com/viewtopic.php?f=53&t=13467
TL;DR: map itself works fine. Uploading the old version (that everyone is still playing) results in the same error.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

This is a server-side error, moved to FAForever/api#160


Any plan for code release?

We will gradually release the dataset preparation, codes, weights, and evaluation results.

The codes are online now!


Don't panic if docker version cannot be parsed

I'm using podman instead of Docker (podman has a docker cli interface).
But podman, because it works daemonless, correctly reports no "Server API Version":
Version:            1.5.1
RemoteAPI Version:  1
Go Version:         go1.12.7
OS/Arch:            linux/amd64

A less intrusive version check that just warns would work as well, wouldn't it?
See
https://github.com/rust-embedded/cross/blob/e1470782db43fc737cf9b7f14748331228b8229d/src/docker.rs#L26
Thanks

Can you submit a PR?

Sure

Would be nice to have official/direct support for podman, it's the simplest solution for running containers rootless and safely (without being part of high privileged user groups). I suppose that to use it now one has to provide a docker command that redirects to podman.

It's not that easy unfortunately. That's why I haven't submitted a patch yet.
Try it out on your machine with this wrapper script:
On my fedora system SELinux restricts the container to a degree that nothing works. Disabling SELinux fails with a user-id mapping.

It works on ArchLinux, but needs some fixes. First, your wrapper worked for the image to be pulled, but then what cross executes afterwards cause errors:
❯ cross build --release --locked --target armv7-unknown-linux-gnueabihf
Executing run --userns host --rm --user 1000:1000 -e XARGO_HOME=/xargo -e CARGO_HOME=/cargo -e CARGO_TARGET_DIR=/target -e USER=francisco -e CROSS_RUNNER= -v /home/francisco/.xargo:/xargo:Z -v /home/francisco/.cargo:/cargo:Z -v /cargo/bin -v /home/francisco/Projects/samples/rust:/project:Z,ro -v /home/francisco/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:Z,ro -v /home/francisco/Projects/samples/rust/target:/target:Z -w /project -i -t rustembedded/cross:armv7-unknown-linux-gnueabihf-0.1.16 sh -c PATH=$PATH:/rust/bin "cargo" "build" "--release" "--locked" "--target" "armv7-unknown-linux-gnueabihf"
Trying to pull docker.io/rustembedded/cross:armv7-unknown-linux-gnueabihf-0.1.16...
Getting image source signatures
Copying blob 515c9bb51536 done
Copying blob e1eabe0537eb done
Copying blob a7344f52cb74 done
Copying blob 98505a711ed1 done
Copying blob 8b6c268f7510 done
Copying blob 4701f1215c13 done
Copying blob 275d3fe1c097 done
Copying blob 21ff9fc78e04 done
Copying blob 1eec613d2471 done
Copying blob 175c081af4db done
Copying blob dc06501142e1 done
Copying blob 5a611f0c211d done
Copying blob 8b6856ffd086 done
Copying blob 84b6f835981a done
Copying blob 95eb8b4a29a6 done
Copying blob 5260dade96c9 done
Copying blob 22b1b0355cbc done
Copying blob 5d7f653b916d done
Copying blob c6d39e7d7bff done
Copying config 3b6c20b612 done
Writing manifest to image destination
Storing signatures
Error: error checking path "/cargo/bin": stat /cargo/bin: no such file or directory

So I executed the command manually with a few edits and the project built:
❯ podman run --userns host --rm -e XARGO_HOME=/xargo -e CARGO_HOME=/cargo -e CARGO_TARGET_DIR=/target -e USER=francisco -e CROSS_RUNNER= -v /home/francisco/.xargo:/xargo:Z -v /home/francisco/.cargo:/cargo:Z -v /home/francisco/Projects/samples/rust:/project:Z -v /home/francisco/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:Z,ro -v /home/francisco/Projects/samples/rust/target:/target:Z -w /project -i -t rustembedded/cross:armv7-unknown-linux-gnueabihf-0.1.16 sh -c 'PATH=$PATH:/rust/bin cargo build --release --target armv7-unknown-linux-gnueabihf'
   Compiling sample v0.1.0 (/project)
    Finished release [optimized] target(s) in 0.37s

This is my subgid/subuid setup for rootless podman:
❯ cat /etc/subgid /etc/subuid /proc/self/uid_map
francisco:100000:65536
francisco:100000:65536
         0          0<PHONE_NUMBER>

❯ podman unshare cat /proc/self/uid_map
         0       1000          1
         1     100000      65536

I think we could just bump the requirement and assume that Docker supports the --userns since the next release will be a breaking change anyways.

Fixes by https://github.com/rust-embedded/cross/pull/344.


raftstore: fix typo and remove useless msg enum

Signed-off-by: Rustin-liu<EMAIL_ADDRESS>
What problem does this PR solve?
None
What is changed and how it works?
None
Related changes
None
Check List
Tests

No code

Side effects
None
Release note

Fix typo and remove useless msg enum

@BusyJay  @zhangjinpeng1987 @5kbpers  PTAL~   Thanks!


⚠ Bofrost.es has degraded performance

In 77a647a, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2387 ms

Resolved: Bofrost.es performance has improved in 784f600 after 6 minutes.


Legacy Autograd function with non-static forward method

I'm getting RunTime Error: Legacy Autograd function with non-static forward method is depracted.
Please use new-style autograd function with static forward method.

Hi,
have you solved the problem? I guess this error is caused by pytorch version. But I have no idea about the proper version. I have tried pytorch 1.2, 1.6 and 1.7. Unfortunately, the error still exists.


Fix errors in tutorial_one_liners.md and tutorial_one_liners_chinese.md

When running the example code like
bpftrace -e 'tracepoint:syscalls:sys_exit_read  { @bytes = hist(args.ret); }'

we will get error message as below:
tracepoint:syscalls:sys_exit_read  { @bytes = hist(args.ret); }
We should use arrow operators instead of dot operators. See also tutorial_one_liners_japanese.md.

Checklist

[x] Language changes are updated in man/adoc/bpftrace.adoc
[x] User-visible and non-trivial changes updated in CHANGELOG.md
[x] The new behaviour is covered by tests

For completeness, it was changed in #2578 and released in bpftrace 0.19. I assume that you're using an older version of bpftrace.
We've had a number of such PRs so we should probably address this issue somehow.


Earth size stretched

The look of the earth is different when using windows pc and using the google chrome browser, this what it look like:

but when we use mac or iphone with same google chrome browser it looks right:

it look stretched out in the first picture...

Your response regarding this issue will be greatly appreciated..

Please provide more details - so that we are able to reproduce the problem...
What exact version of the operating system - what version of the web browser?

The first picture was a test performed on windows 8 pro operating system using latest google chrome browser.You can clearly see that it stretch globe. We even teste webglearth.com homepage and the earth size also stretched the same way.
The second picture was a screenshot from a iPhone 6 device, but
It also look right when we use the latest mac pro with same latest google chrome browser and it don't  stretch the globe.

I tried to reproduce this issue.
Tested the http://www.webglearth.com/ on a lot of browser & OS combinations:
Windows 7 (Chrome, Firefox)
Windows 8.1 (Chrome)
Ubuntu 15.04 (Chrome, Firefox, Opera)
iPad Air 2 with iOS 8.4 (Safari, Chrome, Opera Mini)
Android 5.1 (Chrome)
and possibly a few other.
Everything (including the aspect ratio) is working as expected.
There is no action to take here unless you are able to provide more detail steps how to reproduce this issue.

On what system did you test??
because all browsers on mac works right. But we tested on windows 8 pro on a normal desktop.
Thee problem don't happen with tablets running windows 8 pro.


App Central integration - AWS Network Firewall

PLEASE READ
Following a recent back-end update, all contributors with a local clone or fork of our repository are required to run yarn install. This does not apply to direct page edits.

[x] Yes, I've run yarn install
[ ] No, does not apply to me

Purpose of this pull request
This pull request...

Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions, .clabot
[x] Update Content - Revisions, updating sections
[x] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - Updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

@salvatoremosca, the new AWS image is very large. In the future, you might want to upload a smaller version.
Another way to make images smaller is to use the width attribute in the img tag. See Add an image in our style guide.


[Feature Request]: Fine Adjustment of HUD Span on Ultra / Super Ultrawide resolutions?

Wondering if there is a means to set a distance smaller than the total width when spanning the game HUD?
On a 32:9 resolution (5120 x 1440 for example) some super ultrawide fixes in other applications I have seen will have the option to span the hud out partially instead of completely to the resolution border.
For example, gameplay rendering uses the full resolution of 5120 x 1440 but the hud is constrained to an equivalent 21:9 width (3440 x 1440 in this case). A hard set value, or a % adjustment would be a welcome feature if possible.
So far this project has been everything one should hope for in achieving compatibility with these resolutions, thank you for your excellent work.

That would be doable for sure.  How would you like it implemented? Something like this?

That seems like the most logical way to implement it to me, I think that would be great.
Based on how the current span (and all the ultrawide settings actually) feature works, when enabled but still playing in 16:9 there is no effect, which is good! This means in Big Picture mode on Steam no config changes are needed when switching from Ultrawide a 16:9 display. Will (or could) this functionality remain the same if this feature is added?

Side note: Can spanned HUD be the default (21:9 fit)?  Is there a reason why it isn't?
I didn't change it for a number of days as I thought it meant "stretch", but just tried and it, it moved the UI to the edges like I've wanted this whole time. Maybe that's my fault for not understanding the word, but I'm sure 99% of 21:9 users would want the HUD spanned by default.

Apologies for the delay on this. I settled on this as a configuration method.

I think that should work for most people and makes a bit more sense than a percentage. Should be out to test on v1.0.4

Side note: Can spanned HUD be the default (21:9 fit)? Is there a reason why it isn't?
I didn't change it for a number of days as I thought it meant "stretch", but just tried and it, it moved the UI to the edges like I've wanted this whole time. Maybe that's my fault for not understanding the word, but I'm sure 99% of 21:9 users would want the HUD spanned by default.

There's no reason really, it was mainly disabled at first because it didn't work very well and I didn't think people would want to use it. Now that it's fixed up and properly spans all the HUD I don't see why it shouldn't be enabled by default.


integration is not being installed

I'm installing integration for the first time. From scratch. I successfully completed two-factor authentication via SMS on my phone and connect to the air conditioner without any problems through the app on my phone. But when trying to install the integration, the notorious "Unexpected error creating device" is displayed in the server log:
Could not get groups, trying to re-authenticate
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 51, in start_session
await self._get_groups()
File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 62, in _get_groups
self._groups = await self.execute_get(
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/panasonic_cc/pcomfortcloud/panasonicsession.py", line 127, in execute_get
response = await self._client.get(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 682, in _request
resp = await req.send(conn)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 733, in send
await writer.write_headers(status_line, self.headers)
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 129, in write_headers
buf = _serialize_headers(status_line, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_writer.pyx", line 132, in aiohttp._http_writer._serialize_headers
File "aiohttp/_http_writer.pyx", line 109, in aiohttp._http_writer.to_str
TypeError: Cannot serialize non-str key None
At the same time, I enter the correct username and password. Since I'm installing integration from scratch, I can't turn on the debugging log. I tried to register it in the configuration.yaml
logger:
logs:
custom_components.panasonic_cc: debug
but did not understand what it gives. But after that, the following appeared in the server log:
"Bad logger message: Unexpected error creating device ((TypeError('Cannot serialize non-str key None'),))"
and
"Getting app version: Cannot connect to host play.google.com:443 ssl:default [Connection reset by peer]"

@egric Hi, the error says that it can not connect to play.google.com can you ping that from HA?
Does your HA installation have IPv6 active?

The ping is passing. Ipv6 is not in use and is not active

Ok, does https://play.google.com/store/apps/details?id=com.panasonic.ACCsmart work?

https://play.google.com/store/apps/details?id=com.panasonic.ACCsmart  this link does not open the page in the browser

and now, when trying to install the integration, an "unknown error occurred" appears

So your internet connection is restricted? The integration used that link to get the current app version, which is required.

in log only that:
Could not get groups, trying to re-authenticate
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 51, in start_session
await self._get_groups()
File "/config/custom_components/panasonic_cc/pcomfortcloud/apiclient.py", line 62, in _get_groups
self._groups = await self.execute_get(
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/panasonic_cc/pcomfortcloud/panasonicsession.py", line 127, in execute_get
response = await self._client.get(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 682, in _request
resp = await req.send(conn)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 733, in send
await writer.write_headers(status_line, self.headers)
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 129, in write_headers
buf = _serialize_headers(status_line, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_writer.pyx", line 132, in aiohttp._http_writer._serialize_headers
File "aiohttp/_http_writer.pyx", line 109, in aiohttp._http_writer.to_str
TypeError: Cannot serialize non-str key None

Yes, you get that error because the version number isn't supplied / is an invalid value.

and how do I make sure that the version number is specified?

The integration needs access to https://play.google.com/store/apps/details?id=com.panasonic.ACCsmart how come you can't access the play store?

I can to access. But but through vpn only.

Can enable so HA can go through the VPN as well?

Only by running openvpn on the router

Well, if your connection is restricted, you might get more issues with cloud integrations down the line.
In order to work this integration needs to access things on:

authglb.digital.panasonic.com
accsmart.panasonic.com
play.google.com


Flight SQL Server sends incorrect response for DoPutUpdateResult

Describe the bug
The Flight SQL Server incorrectly does a as_any() and sends a protobuf enum instead of the message itself. This is incompatible with the JDBC implementation. (As usual, the spec itself is unclear). It results in the record_count being 0 instead of -1 which means a proper client implementation will poll forever.
To Reproduce
This one is a doozy to reproduce:

Run this fork of ballista
Build this fork of the JDBC driver
Install the fat jar driver into your favorite SQL tool
Run an update query, observe the tool hang as it follows the spec attempting to wait for the condition to be met:

There are no more results when the following is true:

     // stmt is a Statement object
     ((stmt.getMoreResults(current) == false) && (stmt.getUpdateCount() == -1))

Expected behavior
The query succeeds.

Tagging @tustvold and @andygrove , thank you both for your help!


Add tooltips for console buttons

For clarity, add tooltips to btnCopy, btnWordWrap, btnScrollDown, and btnTrash

merged into 0.9.2-dev
see PR #35


Feature Request: Support Configuring Other Plugins Within DevChat in Private Deployments

Hello,
In our private deployment scenario, there's a growing need for enhanced plugin interaction and configuration capabilities directly within the DevChat plugin. Specifically, users would greatly benefit from being able to configure settings for other co-deployed plugins, such as 'tabby', directly from the DevChat interface. This feature would eliminate the need for users to individually access each plugin's configuration page, streamlining the user experience.
Feature Request Detailed Description
Users should be able to adjust settings and configure endpoints for other plugins, like 'tabby', without leaving the DevChat plugin. Ideally, this would involve a new settings section within DevChat where users can see a list of compatible plugins installed alongside DevChat and modify their settings as needed.
Proposed Benefits

User Efficiency: This enhancement would centralize plugin configuration, reducing the time and steps users need to take to adjust settings across multiple plugins.
Improved Usability: By enabling this feature, we anticipate a more intuitive and simplified user experience, as users can manage much of their plugin-related tasks from a single interface.
Enhanced Integration: Facilitates smoother integration and interoperability between plugins, enhancing overall system cohesion.

Implementation Considerations

Determine which plugin settings can be exposed safely to DevChat for configuration.
Ensure that security and permissions for configuring other plugins through DevChat are thoroughly addressed.
Consider development of an API or extension framework that allows plugins to expose configurable parameters in a standardized manner.

We believe that adding this feature would significantly benefit users and enhance the overall utility of the private deployment setup. We're keen to hear your thoughts on this proposal and any suggestions you may have.
Thank you for considering this feature request.

The DevChat plugin originally has no dependencies on other plugins. If other plugins are configured within DevChat, it would transform the loose coupling of the plugins into tight coupling, which is not conducive to the maintainability of the code.


Add footnotes to tiles in main DC

This PR:

Displays the block footnote inline in tile footers on the explore pages.
Removes unused footnote props from disaster event tiles (footnotes are displayed as part of the block container instead for those pages)

Wow, awesome! Thanks @juliawu !!


preset-latest is deprecated use preset-env instead

{ "presets": ["latest"] } === { "presets": ["env"] }

As I was using latest babel i was getting the issue preset-latest works with the babel version which is present in your branch. Sorry for confusion.


[Question] How to strip component to normal wasm

Can't believe I hadn't seen this before! This + compose is awesome stuff!
I currently have been embedding the wit in a custom section so that a binary can be use in a 1.0 runtime. Your work on wit-bindgen to generate wit from the component is great and was wondering how hard it would be to strip the rest so that I could use the composition of components for building, but still use the final binary in an older runtime while also being able to go back to a component again.

Hi @willemneal!
So a WebAssembly component built with cargo component cannot be easily stripped to only the original core module without losing all of the information regarding how its imports and exports are expected to be lowered and lifted.
That said, it is possible to, in a way, decompose a WebAssembly component created with cargo component into just the inner core modules and have some sort of polyfill that performs the lifting and lowering for runtimes that don't support the component model.
That's the approach taken in Guy Bedford's prototype to use WebAssembly components in browsers that don't support the component model.
In theory it could be adapted to spit out code other than JavaScript that interops with a specific WebAssembly runtime to load the extracted core modules and facilitate the lowering and lifting of types passed in and out of the component.

Thanks! Looking at @guybedford 's project it splits up the components into separate binaries.  Is this because the runtime is responsible for the dynamic linking at runtime?
Is it possible to combine different components into one core wasm binary?  I assume that the data sections and such would need to be relocatable.  Is there any work on this front? I would like to work toward publishing components and then allow them to be statically linked for Wasm 1.0 compatibility.

It's the component itself that is responsible for the linking as it describes how imports are lowered to core wasm and exports are lifted from core wasm, in addition to how any inner core modules or inner components are instantiated (core wasm has no concept of inner modules or instantiation); the runtime just follows its "instructions".
Thus a component model poly-fill implementation, like Guy's tool, requires something (in this case, generated JavaScript code) to emulate, for that specific component, what a component model supporting runtime would do to follow those "instructions".
It's not possible to combine wasm components into a core wasm module, only into other wasm components.
I don't know of any work beyond Guy's to do anything in this space.

Hi @willemneal. I'm going to close this issue for now, but feel free to reopen if you have additional questions (or create a topic on Zulip, as I'm happy to answer questions there as well).  Thanks!


UWP: Implement proper configuration object and dependency injection.

The UWP client requires some minor settings as the web server. These settings are currently hard-coded. To be replaced with the underlying configuration mechanism

[ ] Configuration object is available
[ ] Configuration object is loaded (from file)
[ ] Some sort of service injection is available.

Unity dependency injection is not available for UWP projects. Using Autofac instead.

Resolve services by:
CoreModule.Container.Resolve...


delivery-script

This branch holds scripts which run on FontLab, and shouldn't be merged with master. It's possible though that it should be deleted outright, since it's not longer maintained or used (to my knowledge). But I'd rather wait a while longer to be completely sure of that.


TimeoutError when when using AIChat

I'm using AIChat with the following buffer:
>>> user

I have this error

C:\Users\LyloDevW10\scoop\apps\pyenv\current\pyenv-win\libexec\pyenv.vbs(0, 1) Microsoft VBScript runtime error: File not found

<<< assistant

It leads to the following error:
Error detected while processing function vim_ai#AIChatRun[30]..provider#python3#Call:
line   18:
Error invoking 'python_execute_file' on channel 8 (python3-script-host):
Traceback (most recent call last):
  File "/Users/martin/.local/share/nvim/plugged/vim-ai/py/chat.py", line 83, in <module>
    handle_completion_error(error)
  File "/Users/martin/.local/share/nvim/plugged/vim-ai/py/utils.py", line 172, in handle_completion_err
or
    raise error
  File "/Users/martin/.local/share/nvim/plugged/vim-ai/py/chat.py", line 77, in <module>
    render_text_chunks(text_chunks)
  File "/Users/martin/.local/share/nvim/plugged/vim-ai/py/utils.py", line 53, in render_text_chunks
    for text in chunks:
  File "/Users/martin/.local/share/nvim/plugged/vim-ai/py/utils.py", line 136, in openai_request
    with urllib.request.urlopen(req, timeout=request_timeout) as response:
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/urllib/request.py", line 496, in _call_chai
n
    result = func(*args)
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/urllib/request.py", line 1391, in https_ope
n
    return self.do_open(http.client.HTTPSConnection, req,
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/urllib/request.py", line 1352, in do_open
    r = h.getresponse()
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/http/client.py", line 1374, in getresponse
    response.begin()
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/ssl.py", line 1274, in recv_into
    return self.read(nbytes, buffer)
  File "/Users/martin/.pyenv/versions/3.10.6/lib/python3.10/ssl.py", line 1130, in read
    return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
Press ENTER or type command to continue

Despite the buffer content, I must precise that I'm working on neovim on MacOS.

Is this error happening also in the latest plugin version?

Closing due to inactivity


[Not Finished] Submit eyes at the same time.

As the title says, this is an Unfinished PR to submit the eyes at the same time. The particular thing I couldn't figure out how to do is replacing self.right_cb in the right eye setup.

With this modification you no longer render the left-eye. Both callbacks must be kept, however both eye textures must be send in the right eye cb. The problem is that the left eye texture is no longer bound and so contains garbage if I remember correctly.
We must find a way to keep the left eye texture bound while the right eye is rendered.
If that's not possible, a common texture must be used for both eyes and rendered in Side-by-Side mode. The display region must be configured to use only halft of the texture. And when the eyes are submitted the correct boundaries must also be sent.
As I said I don't have time to work on this right know but probably next week I should find some free time to test it.

@el-dee Well, I went ahead and grabbed an example from pyopenvr and took a look at it (because I remember it having single-pass rendering) and it looks like it just does this:
        self.compositor.submit(vr.Eye_Left, self.texture)
        self.compositor.submit(vr.Eye_Right, self.texture)

Note that this problem is absent in this sample code, meaning that we should be able to fix this easily.
In case you're wondering what self.texture is, it's simply defined by the following:
        self.texture = vr.Texture_t()
        self.texture.handle = self.texture_id
        self.texture.eType = vr.TextureType_OpenGL
        self.texture.eColorSpace = vr.ColorSpace_Gamma

I know this code quite well :) The problem is this is only an example that use raw OpenGL to perform the rendering, so it has full control over the framebuffer creation, texture binding, ...  The field handle of the vr_texture_t object is the handle given by OpenGL when you bind a texture in the graphic card. This handle must be valid until the texture is submitted to OpenVR. As this is only a simple example, the code has no problem keeping the texture bound
When rendering the scene using Panda3D (or any other high level 3D engine), you don't have control over the texture binding, the frame buffer lifetime, and so on. So you must adapt the code to this fact. Hence my previous remark about find ing a way to keep the left eye texture bound until the right eye is fully rendered or instead use SBS rendering into a common texture.

Fixed in https://github.com/el-dee/panda3d-openvr/commit/7d2d9d392aad0bc7885edc3e1733c541493cbd71 Thank you for your help.


[Relay][Quantization] Fix Bug Which Cause Negative Left Shift Op

This is a very easy to understand bug, maybe the original commiter forgot to add the negative sign in the "else" branch, it will cause the "nbit" of "left_shift" operator be a negative number, e.g., "left_shift(%50, -1)".

Please @ZihengJiang, @vinx13 help to review, thanks.

How about adding one unit testing?

Merging this in as the fix is quite obvious. @Johnson9009 It would be great if you can send a followup test case that covers the regression.

@tqchen @FrozenGene Sorry for late reply because of lots of work, yes it is great to add a test case in regression, I will try to add one as soon as possible.


Get new access token with client id and client secret only

Hi guys,
on the spotify api guide there is the "Client Credentials Flow" for authorizing with the client id and client secret only. Is there a way to do this with the web api node?
Why: I'm using the spotify api server side so I don't have a redirect URL.
Best regards,
Fabian

@feedm3 Sure! Have a look at https://github.com/thelinmichael/spotify-web-api-node/blob/master/examples/access-token-using-client-credentials.js

@JMPerez something really has to be up or there is some gap somewhere in some documentation... I tried this on an Ubuntu EC2 instance as well as locally. I even regenerated my Spotify ID & Secret. The above example you give yields the following:
Something went wrong when retrieving an access token Bad Request
I dont get WTF the problem is (not that its your fault at all, I'm just running out of ideas...)

Is there a max version of node this is compatible with? I'm running:
Node: v7.7.1
NPM: v4.1.2

I should clarify @JMPerez I can use the Node API perfectly when I pull a random artist's album. When I try to Auth so I can pull a public playlist for a given user though, this is where the trouble is.

@JMPerez thank you, it works! :)

@tetreault closing this ticket since @feedm3 got it solved. Let's continue looking at the other 400 Bad Request.

@JMPerez Is it easier if its moved over to here - #321 on Spotify Web API. There was an resolved thread about the same type of issue I'm facing. Thanks again for your willingness to help!!


Some examples don't work

[I]lawn-100-70-34-65: Downloads/MFC $ ./mfc.sh run ./examples/2D_mixing_nobubble/case.py
      ___            ___          ___
     /__/\          /  /\        /  /\<EMAIL_ADDRESS>[Darwin]
    |  |::\        /  /:/_      /  /:/       --------------------------------------------------
    |  |:|:\      /  /:/ /\    /  /:/
  __|__|:|\:\    /  /:/ /:/   /  /:/  ___
 /__/::::| \:\  /__/:/ /:/   /__/:/  /  /\   --jobs:    1
 \  \:\~~\__\/  \  \:\/:/    \  \:\ /  /:/   --mode:    release-cpu
  \  \:\         \  \::/      \  \:\  /:/    --targets: pre_process, simulation, and post_process
   \  \:\         \  \:\       \  \:\/:/
    \  \:\         \  \:\       \  \::/
     \__\/          \__\/        \__\/       $ ./mfc.sh [build, run, test, clean] --help

Run
  Acquiring ./examples/2D_mixing_nobubble/case.py...
  Configuration:
    Input               ./examples/2D_mixing_nobubble/case.py
    Job Name      (-#)  unnamed
    Engine        (-e)  interactive
    Nodes         (-N)  1
    CPUs (/node)  (-n)  1
    GPUs (/node)  (-g)  0
    MPI Binary    (-b)  mpirun

  Running pre_process:
    Building pre_process:

      $ cd "/Users/spencer/Downloads/MFC/build/pre_process" && cmake --build . -j 1 --target pre_process --config Release

ninja: no work to do.

      $ cd "/Users/spencer/Downloads/MFC/build/pre_process" && cmake --install .

-- Install configuration: "Release"
-- Up-to-date: /Users/spencer/Downloads/MFC/build/install/bin/pre_process

    Running pre_process:

      $ mpirun -np 1  "/Users/spencer/Downloads/MFC/build/install/bin/pre_process"

 Final Time  0.10148899999999997

      Done (in 0:00:05.448766)

  Running simulation:
    Building simulation:

      $ cd "/Users/spencer/Downloads/MFC/build/simulation" && cmake --build . -j 1 --target simulation --config Release

ninja: no work to do.

      $ cd "/Users/spencer/Downloads/MFC/build/simulation" && cmake --install .

-- Install configuration: "Release"
-- Up-to-date: /Users/spencer/Downloads/MFC/build/install/bin/simulation

    Running simulation:

      $ mpirun -np 1  "/Users/spencer/Downloads/MFC/build/install/bin/simulation"

At line 114 of file /Users/spencer/Downloads/MFC/src/simulation_code/autogen/m_start_up.f90 (unit = 1, file = './simulation.inp')
Fortran runtime error: Cannot match namelist object name .0t_step_save

Error termination. Backtrace:

Could not print backtrace: executable file is not an executable
#0  0x103753187
#1  0x103753d37
#2  0x103754613
#3  0x103838f9b
#4  0x1038413d3
#5  0x103841687
#6  0x102ebe227
#7  0x102ecd7e3
#8  0x102f5a0cf
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[42162,1],0]
  Exit code:    2
--------------------------------------------------------------------------

Error: Failed to execute command "cd "/Users/spencer/Downloads/MFC/examples/2D_mixing_nobubble" && mpirun -np 1
"/Users/spencer/Downloads/MFC/build/install/bin/simulation"".

Latest pull request has fixed this issue (t_step_stop not an integer in case file)


Could not pass ServerChatEvent //at me.ryanhamshire.griefprevention.DataStore.getPlayerData

We are using a custom chat plugin.
Sometimes when chatting, we are getting these errors:
http://pastebin.com/EnXEuW5A
and this seems to be random: (Not sure if it's related)
http://pastebin.com/G9zrpEcK
Might be something with delivering claimblocks, but it fails?.
Btw: Thanks for your hard work on Sponge and of course Griefprevention!

@i9hdkill Please send me your skype info when you get a chance.

jonnni239


gitflow-helper-maven-plugin is not compatible with maven plugins that rewrite the POM file

When you have a project that uses a maven plugin that rewrites the POM file (such as the flatten-maven-plugin) in combination with the gitflow-helper-maven-plugin, you'll notice that the rewritten POM file(s) are correctly uploaded to the stage repository, but not to the releases repository.
The issue is that when the build on master executes, it does download all artefacts that were build and deployed to stage, except the POM file itself. As a result, the POM file finally published into the releases repository is not the same as the one deployed to stage, but the POM file from git itself in case a plugin is activated that tries to rewrite the POM file (ie. flatten-maven-plugin).

Submitted PR #129 that adds a feature that provides means for the described use-case to work.


chore(package): Fix codespell binary file warnings

This avoids codespell printing warnings for binary files
which have been added recently (.iso, .dmg), as well as dotfiles (i.e. .DS_Store).
Change-Type: patch

Good catch - if was feeling adventurous we could maybe get this info from .gitattributes ;-)
I'm :-1: on ignoring all dotfiles, as there's a number of those in the repo. Could you add specific exclusions for .DS_Store?

Updated with specific .DS_Store selector


Implement array shapes for Preg::match $matches by-ref parameter

as requested in https://github.com/phpstan/phpstan-src/pull/2589#issuecomment-2118794734
and further planned with https://github.com/phpstan/phpstan-src/pull/2589#issuecomment-2182124014

I won't have time to look in depth at this for a while but just wanted to say thanks already for even looking at doing it 🙏🏻


feat[next]: itir.embedded support for Lists in output

Lists returned from an as_fieldoped stencil will be turned into a local dimension of the the resulting field.
In case of a make_const_list, a magic local dimension _CONST_DIM is used. This is a hack, but localized to itir.embedded. A clean implementation will probably involve to tag the make_const_list with the neighborhood it is meant to be used with.

ready for a first round of review


Vec ArgminMinMax for Vec<Vec> and added tests

Codecov Report
Base: 91.80% // Head: 92.11% // Increases project coverage by +0.30% :tada:

Coverage data is based on head (743807d) compared to base (bc478a6).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
+ Coverage   91.80%   92.11%   +0.30%
==========================================
  Files         119      119
  Lines       17824    17953     +129
==========================================
+ Hits        16363    16537     +174
+ Misses       1461     1416      -45

Impacted Files
Coverage Δ

argmin-math/src/vec/minmax.rs
100.00% <100.00%> (ø)

argmin-math/src/nalgebra_m/minmax.rs
100.00% <0.00%> (ø)

argmin-math/src/ndarray_m/minmax.rs
100.00% <0.00%> (+100.00%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


📝 Update includes for docs/tutorial/relationship-attributes/read-relationships.md

Part of https://github.com/fastapi/sqlmodel/issues/1150

Thanks for the effort! This was covered in another PR, so I'll close this one now. :coffee: :cake:


Question: Is it allowed to pass data of the same stream after (un)successful matching?

Also, for example, for regex _qwe_qwe_ and string _qwe_qwe_qwe_qwe_, how many matches I should see ?

@socketpair You have total control over what to do next.

Still not understand what will (should) happen ?

@socketpair You decide what to do next.  You can check out the ngx_replace_filter module for various different options.

Consider it resolved.


⚠ Spryr has degraded performance

In 6e3100a, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 3257 ms

Resolved: Spryr performance has improved in db077b1 after 9 minutes.


refactor(rust): create secure_channel_listener with `node create <n…

Closes #3101 Create Secure channel address listener when creating a new node.
Checks

[x] All commits in this Pull Request are signed and Verified by Github.
[x] All commits in this Pull Request follow the Ockam commit message convention.
[x] I accept the Ockam Community Code of Conduct.
[x] I have accepted the Ockam Contributor License Agreement by adding my Git/Github details in a row at the end of the CONTRIBUTORS.csv file in a separate pull request to the build-trust/ockam-contributors repository.

@anuvratsingh Thank you for another awesome contribution.
This worked with a minor change. I'll merge shortly.


Error creating repository in Azure DevOps: Value cannot be null. Parameter name: projectName

Steps to reproduce
Try to create a simple Git repository as defined at https://www.pulumi.com/docs/reference/pkg/azuredevops/git/
const project = new azureDevops.Project('test-pulumi-project', {
})

const repository = new azureDevops.Git('test-pulumi-repo', {
  projectId: project.id,
  initialization: {
    initType: 'Uninitialized',
  },
})

pulumi up
Expected: New repository successfully created
Actual:
error: Error creating repository in Azure DevOps: Value cannot be null.
    Parameter name: projectName

This was working fine until last friday, today is the first day I got this. Maybe there was a change (or new bug) at Microsoft API?

I think this was a  bug at Microsoft API. I have just tried again today and it worked fine.

ah so we can close this out now @francardoso93 ?

Closing as not reproducible since the original supplied Pulumi program is no longer valid (i.e. it fails validation before a preview can be produced). The program now outputs the same issue as #66.


Startify theme: attempt to index a nil value

Hi,
when I configure alpha to use startify theme:
    use {
        'goolord/alpha-nvim',
        config = function()
            require'alpha'.setup(require'alpha.themes.startify'.opts)
        end
    }

I get error on startup:
packer.nvim: Error running config for alpha-nvim: ...ck/packer/start/alpha-nvim/lua/alpha/themes/startify.lua:64: attempt to index a nil value

Any idea how to solve?
Thanks

I printed oldfiles using print(vim.inspect(oldfiles)) and what I can say is that in the history there is one non-text(binary) file that I accidentally opened yesterday. Maybe it is needed to handle binary files in the history separately. I suppose that there is missing icon for binary files.

So it looks like problem aren't binary files but files without extension. Since you are matching filename fn:match("^.+(%..+)$"):sub(2) and supposing that there is always match.

Something like this:
            local match = fn:match("^.+(%..+)$")
            local ext = ''
            if match ~= nil then
                ext = match:sub(2)
            end

solves issue and uses default web-dev icon for files without extension.

hmm i fixed this already but it got clobbered somehow. i will push a fix for this

should be fixed in https://github.com/goolord/alpha-nvim/commit/2e6ef7cf5ed79e63e04bb625ef5dedb8c90de919


position_after_control_structures

Feature request

How to not write braces when the if statement has only one line
if($a) $b = 1;

Hi,
Currently we do have a rule to do this.
We do not know of bigger community that uses this style or widely applied standard that defines it. As such we advice to either not use this style or create a 3rd party/custom rule for this.
Thanks for your question!


Set up a -1 release convenience tag

Since the OCI feature from Fedora we need to go stable has been punted to F40 we should set up a convenience tag for the latest release -1 so we can get 2 major upgrades under our belt. Here's the spec from a while back.

https://github.com/orgs/ublue-os/discussions/116

For the main repo images this is done in this PR https://github.com/ublue-os/main/pull/301
From @EyeCantCU

39 won't get pushed to that until it is marked as stable. When that happens, we set the flag for latest and stable releases to false for 38 but keep gts true and that will be the release that stays behind.

So when f39 hits stable, we should see gts pop up in our tags for f38.

For the main repo images this is done in this PR https://github.com/ublue-os/main/pull/301
From @EyeCantCU

39 won't get pushed to that until it is marked as stable. When that happens, we set the flag for latest and stable releases to false for 38 but keep gts true and that will be the release that stays behind.

So when f39 hits stable, we should see gts pop up in our tags for f38.
After looking at the changes, I think we need to implement it for all the other repo's where we want to use this strategy the same way. It will not flow down automaticly.

I can get that setup sometime today :)

Tried to make a list with all the PR's implemented this for easier tracking. I hope i've got them all.
Thanks @EyeCantCU

https://github.com/ublue-os/main/pull/301
https://github.com/ublue-os/bluefin/pull/594
https://github.com/ublue-os/surface/pull/20
https://github.com/ublue-os/asus/pull/15
https://github.com/ublue-os/framework/pull/42

With f39 being marked as stable, all the gts versions are live and usable as :gts


add FAQ page to website

I recommend adding a FAQ page, similar to what we had last year: https://www.force11.org/meetings/force2016/general-information/faqs
I would add this on the general contact page

duplicate of #86


Add check if sub-button-container exist and then set opacity

Solves
#994
Cause
The opacity was set on the sub-button-container without checking if this existed.
Solution
Check if sub-button exist before setting the opacity.

Wow thank you! I didn't had time to check that one yet, I will add this PR in the v2.3.1, I will have a bit of time to work on it tonight.

Merged! Thank you again! 😃


Made a new consumable item

Introducing...

Toy Gun [gun] The next rob you commit is guaranteed to succeed, but gets blacklisted for 5 more restocks.
When use:

When use when already using a rob affecting item:

When robbing card/consumable:

When robbing multiple cards/consumables:

When robbing equipable item:

Could you add an outline to the sprite, and make it impossible to rob more than one of an item with this equipped? It seems overpowered

Had quite problem for merging the consumable and items, but yeah finished merging them!


kaniko logo

Please create a logo like https://landscape.cncf.io/logos/skaffold.svg but say kaniko instead of Skaffold.

Done with https://github.com/cncf/landscape/commit/59832df82e81f5708b1f16b837b1db5d6497d719?short_path=b3079f1#diff-b3079f1159799972ef6141d8ebf556a6


docs: add more frequently asked questions in README.md

:tada: This PR is included in version 5.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


EntityDecoder[argonaut.Json] is broken in latest release (0.13.1a)

e̼ seems to be one of possibly a set of offending characters which trigger a silent error whereas the string literal is no longer the same after having been parsed into json.
I have not investigated yet what changed or might be causing the problem, but I have had to roll my own EntityDecoder[Json] in Quasar which simply calls argonaut.Parse.parse. That seems to work fine.
The answer might be as simple as a bug in the streaming jawn parser.

Do you have an explicit jawn dependency, or are you on 0.8.4?  This isn't another flavor of https://github.com/non/jawn/issues/45, is it?

We do not not have an explicit dependency on jawn, however dependencyGraph is telling me that we are on 0.8.3 and somehow 0.8.4 is being evicted.

Okay. I'd be interested to know if we're causing that, and if an upgrade to 0.8.4 fixes it.  We have a pending bugfix for 0.13.2, but I'll hold off for a bit until we confirm that this isn't also an issue.

Confused by the output of sbt's evicted command:
[info] 	* org.spire-math:jawn-parser_2.11:0.8.4 -> 0.8.3 (caller: org.http4s:http4s-argonaut_2.11:0.13.1a, org.http4s:jawn-streamz_2.11:0.8.1)

I wonder if the same thing will be output if I run the command in http4s itself. Could explain why the bug might still not be fixed. Perhaps the reporter of #514 never got around to making sure it actually works now.

Aha! https://github.com/http4s/http4s/blob/master/project/Http4sBuild.scala#L70
That looks like the culprit and perhaps an easy fix!

I'll publishLocal and update on whether it fixes the parsing issue and open a PR (probably either way as we should probably try and keep the evicted list to a minimum).

So that was indeed the fix! PR coming shortly.

Fix will be in 0.13.2.


shim: install shim.efi instead of boot.efi if MOK_SB=0

There is a do_rootfs error in secure-core-image when UEFI_SB = 1 and MOK_SB = 0:
Error: Transaction test error:
file /boot/efi/EFI/BOOT/bootx64.efi conflicts between attempted installs of seloader-0.4.6+git0+8b90f76a8d-r0.core2_64 and shim-15.8-r0.core2_64
When MOK_SB=0, SELoader will become the first stage loader and SELoader.efi will be renamed to bootx64.efi. This will conflict with bootx64.efi in shim.
To avoid this conflict, install shimx64.efi instead of bootx64.efi in shim if MOK_SB=0
Fixes: #64

I have cleaned and rebuilt my setup with this patch several times now, always with this result:
ERROR: mc:pa5:shim-12+gitAUTOINC+5202f80c32-r0 do_deploy: ExecutionError('/opt/yocto/build/tmp/work/corei7-64-poky-linux/shim/12+gitAUTOINC+5202f80c32-r0/temp/run.do_deploy.30025', 1, None, None)
ERROR: Logfile of failure stored in: /opt/yocto/build/tmp/work/corei7-64-poky-linux/shim/12+gitAUTOINC+5202f80c32-r0/temp/log.do_deploy.30025
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_deploy
| install: cannot stat '/opt/yocto/build/tmp/work/corei7-64-poky-linux/shim/12+gitAUTOINC+5202f80c32-r0/image/boot/efi/EFI/BOOT/shimx64.efi': No such file or directory
| WARNING: exit code 1 from a shell command.
NOTE: recipe shim-12+gitAUTOINC+5202f80c32-r0: task do_deploy: Failed
ERROR: Task (mc:pa5:/opt/yocto/meta-secure-core/meta-efi-secure-boot/recipes-bsp/shim/shim_git.bb:do_deploy) failed with exit code '1'

The install task runs perfectly fine, but the deploy task fails.
Later, the transaction test error still occurrs:
Running transaction test
Error: Transaction test error:
  file /boot/efi/EFI/BOOT/bootx64.efi conflicts between attempted installs of seloader-0.4.6+git0+8b90f76a8d-r0.corei7_64 and shim-12+git0+5202f80c32-r0.corei7_64
ERROR: Logfile of failure stored in: /opt/yocto/build/tmp/work/congatec_tca5_64-poky-linux/secure-core-minimal-image/1.0-r0/temp/log.do_rootfs.23046
NOTE: recipe secure-core-minimal-image-1.0-r0: task do_rootfs: Failed
ERROR: Task (mc:pa5:/opt/yocto/meta-secure-core/meta/recipes-core/images/secure-core-minimal-image.bb:do_rootfs) failed with exit code '1'

Looking at the code, i don't see a reason for this, but i suspect shimx64.efi is still being deployed as bootx64.efi, explaining both errors

Thanks for your testing. I have updated the patch and tested it in my side. There is no errors. Would you please try it again ?

Thanks for the fast response, build is underway

Alright, build went through, and the secure-core-minimal-image I built booted without complaints.
Patch looks good to me

That was fast :D


Make docker build not use the cache

Some tests (like the incremental build in the nodejs image) depend on the fact
that a docker image is built from scratch and examines the build log.
With cache, the build log could contain different values than the build run
without the cache.
In case of the nodejs image, the result was that the incremental build
succeeded only every second time when run on the same machine.
Using no cache for docker build should make the tests more stable.

Thanks for the PR! Makes sense to me to not have cache available specifically for inclemental build testing as we want to have assemble logs available (at lest in the case of nodejs).
[test]

lgtm, merging


Question: update theme.json file with out setting to 777

I was wondering if "Theme::setProperty" can be sued without having to set the theme.json file to 777?

I think you could set the owner of theme.json to www-data and group www-data (The same group:user  the web server runs as)

I haven't thought of that. I'll see if that works. Thanks for the idea.


feat: add support for managing label permissions based on a predefined list of authorized users

📜 Description
The github actions Devtron-auto-labeller fails due to permission issue.
👟 Reproduction steps
NA
👍 Expected behavior
NA
👎 Actual Behavior
NA
☸ Kubernetes version
NA
Cloud provider

NA

🌍 Browser
Chrome
🧱 Your Environment
NA
✅ Proposed Solution
NA
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Closed with #6164


Fail early if required tools can't be found.

text version of the above screenshot
~/test/sometest main+ dist build

  × The following tools are required to run this task, but are missing:
  │ - cargo-auditable
  │ - cargo-cyclonedx
  │ - omnibor-cli
  help: Please install the tools mentioned above and try again.

~/test/sometest main+ dist build --target x86_64-pc-windows-msvc

  × The following tools are required to run this task, but are missing:
  │ - cargo-auditable
  │ - cargo-cyclonedx
  │ - omnibor-cli
  │ - cargo-xwin
  help: Please install the tools mentioned above and try again.

the output formatting needs to be improved, but i'm pretty happy with this:

~/test/sometest main+ dist build

  × The following tools are required to run this task, but are missing:
  │ [
  │     "cargo-auditable",
  │     "cargo-cyclonedx",
  │     "omnibor-cli",
  │ ]
  help: Please install the tools mentioned above and try again.

~/test/sometest main+ dist build --target x86_64-pc-windows-msvc

  × The following tools are required to run this task, but are missing:
  │ [
  │     "cargo-auditable",
  │     "cargo-cyclonedx",
  │     "omnibor-cli",
  │     "cargo-xwin",
  │ ]
  help: Please install the tools mentioned above and try again.

~/test/sometest main+

As an aside, this change improves the error messages if you run cargo test on dist, without cargo-auditable + cargo-cyclonedx + omnibor-cli installed.
Before:
Error:
  × "cargo-dist dist build -aglobal" failed (exit status: 255)
  ╰─▶
      stdout:

      stderr:
      building artifacts:
        source.tar.gz
        source.tar.gz.sha256
        source.tar.gz.omnibor
        axolotlsay-installer.sh
        axolotlsay-installer.ps1
        axolotlsay.rb
        axolotlsay-npm-package.tar.gz
        axolotlsay.cdx.xml
        sha256.sum

        × omnibor-cli, required to run this task, is missing
        help: Ensure omnibor-cli is installed

After:
Error:
  × "cargo-dist dist build -aglobal" failed (exit status: 255)
  ╰─▶
      stdout:

      stderr:

        × The following tools are required to run this task, but are missing:
        │ [
        │     "cargo-auditable",
        │     "cargo-cyclonedx",
        │     "omnibor-cli",
        │ ]
        help: Please install the tools mentioned above and try again.

Turns out Cargo is handled separately, and tasks::gather_work() can't succeed unless we either don't need or need and have Cargo, so checking for it in do_env_test doesn't make much sense.
As a note for the future, in case that changes, the approach I found that would theoretically work (if the code ever got run) is adding Tools::cargo_tool() -> DistResult<&Tool> alongside Tools::cargo() -> DistResult<&CargoInfo>, then in do_env_test() you can treat it as a normal tool but use .cargo_tool() instead of .cargo().

diff
diff --git a/cargo-dist/src/lib.rs b/cargo-dist/src/lib.rs
index b02525e7..7c1906ed 100644
--- a/cargo-dist/src/lib.rs
+++ b/cargo-dist/src/lib.rs
@@ -70,6 +70,7 @@ pub fn do_env_test(cfg: &Config) -> DistResult<()> {
     let need_omnibor = builds.omnibor;
     let mut need_xwin = false;
     let mut need_zigbuild = false;
+    let mut need_cargo = false;

     let tools = dist.tools;
     let host = tools.host_target.parse()?;
@@ -82,6 +83,8 @@ pub fn do_env_test(cfg: &Config) -> DistResult<()> {

         match step {
             BuildStep::Cargo(step) => {
+                need_cargo = true;
+
                 let target = step.target_triple.parse()?;
                 let wrapper = tasks::build_wrapper_for_cross(&host, &target)?;

@@ -104,6 +107,7 @@ pub fn do_env_test(cfg: &Config) -> DistResult<()> {
     // bool::then(f) returns an Option, so we start with a
     // Vec<Option<Result<&Tool, DistResult>>>.
     let all_tools: Vec<Option<DistResult<&Tool>>> = vec![
+        need_cargo.then(|| tools.cargo_tool()),
         need_cargo_auditable.then(|| tools.cargo_auditable()),
         need_cargo_cyclonedx.then(|| tools.cargo_cyclonedx()),
         need_omnibor.then(|| tools.omnibor()),
diff --git a/cargo-dist/src/tasks.rs b/cargo-dist/src/tasks.rs
index 4c83ec88..2dfad37e 100644
--- a/cargo-dist/src/tasks.rs
+++ b/cargo-dist/src/tasks.rs
@@ -289,9 +289,20 @@ pub struct Tools {
     pub cargo_xwin: Option<Tool>,
     /// cargo-zigbuild, for some cross builds
     pub cargo_zigbuild: Option<Tool>,
+
+    // This is a kludge to avoid type issues. See cargo_tool() docs.
+    cargo_tool: Option<Tool>,
 }

 impl Tools {
+    /// Return the cargo info, as a Tool instead of a CargoInfo, or an error.
+    /// This is a kludge to avoid needing to handle type issues.
+    pub fn cargo_tool(&self) -> DistResult<&Tool> {
+        self.cargo_tool.as_ref().ok_or(DistError::ToolMissing {
+            tool: "cargo".to_owned(),
+        })
+    }
+
     /// Returns the cargo info or an error
     pub fn cargo(&self) -> DistResult<&CargoInfo> {
         self.cargo.as_ref().ok_or(DistError::ToolMissing {
@@ -3224,6 +3235,8 @@ fn tool_info() -> DistResult<Tools> {
         cargo_cyclonedx: find_cargo_subcommand("cargo", "cyclonedx", "--version"),
         cargo_xwin: find_cargo_subcommand("cargo", "xwin", "--version"),
         cargo_zigbuild: find_tool("cargo-zigbuild", "--version"),
+
+        cargo_tool: find_tool("cargo", "-V"),
     })
 }


The signing is performed in the participating reactor's constructor, which is necessary until the architecture is updated to use a single reactor.
A 10 second delay precedes broadcasting the new signatures, in order to allow peer connections to form.
This has been tested to work at genesis and at an upgrade using nctl.  As well as the immediate switch blocks being able to be retrieved via the JSON-RPC server with all validator signatures applied, all the signatures are also emitted in the event stream.
Closes #2567.

bors merge

bors merge


[RESOLVED] High ICMP ping response time

Problem started at 08:50:33 on 2023.06.05
Problem name: High ICMP ping response time
Host: S100-Santiago
Severity: Warning
Operational data: Value: 955ms
Original problem ID: 23381
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23518&eventid=23381

Problem has been resolved in 5m 0s at 08:55:33 on 2023.06.05
Problem name: High ICMP ping response time
Host: S100-Santiago
Severity: Warning
Original problem ID: 23381


Updating Extension support

Updating extension support to remove contradiction around CoreOS support. Simplified Ubuntu support messaging.

@mattreatMSFT : Thanks for your contribution! The author, @gurudennis, has been notified to review your proposed change.

#sign-off

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


Bump up Spin 2.0.0

Spin 2 came out(https://www.fermyon.com/blog/introducing-spin-v2).
Bumping its version to 2.
Passed all cargo test.

Thanks! Looks like spin 2.0 crate doesn't build though... I also tried locally with the same error. Let's wait until it's fixed upstream and then we can merge the upgrade

Ok, I see the problem, we just need to opt-in for the http feature, I'll add it

aha! Thanks!! @psarna


IQ-tree SNP error

Hello, I'm getting an error when running variant calling: IQ-tree_SNP step.
ERROR ~ Error executing process > 'PATHOGENSURVEILLANCE:VARIANT_ANALYSIS:IQTREE2_SNP (Bradyrhizobium_ottawaense_GCF_002278135_3)'

Caused by:
  Process `PATHOGENSURVEILLANCE:VARIANT_ANALYSIS:IQTREE2_SNP (Bradyrhizobium_ottawaense_GCF_002278135_3)` terminated with an error exit status (2)

Command executed:

  # Get number of samples to decide whether or not to bootstrap
  FIRSTSAMPLE=$(ls -d1 input_data/* | head -n 1 || if [[ $? -eq 141 ]]; then true; else exit $?; fi)
  NSAMPLE=$(grep '>' $FIRSTSAMPLE | wc -l)
  if [ $NSAMPLE -gt 3 ]; then
      BOOT="-B 1000"
  else
      BOOT=""
  fi

  # Create phylogenetic tree
  iqtree2 \
       \
      $BOOT \
      --seqtype DNA -m GTR+ASC \
      -s input_data \
      -nt 12 \
      -ntmax 12 \
      -mem 72G \

  # Rename output by prefix
  mv input_data.treefile Bradyrhizobium_ottawaense_GCF_002278135_3.treefile

  # Save version information
  cat <<-END_VERSIONS > versions.yml
  "PATHOGENSURVEILLANCE:VARIANT_ANALYSIS:IQTREE2_SNP":
      iqtree: $(echo $(iqtree -version 2>&1) | sed 's/^IQ-TREE multicore version //;s/ .*//')
  END_VERSIONS

Command exit status:
  2

Command output:
  IQ-TREE multicore version 2.1.4-beta COVID-edition for Linux 64-bit built Jun 24 2021
  Developed by Bui Quang Minh, James Barbetti, Nguyen Lam Tung,
  Olga Chernomor, Heiko Schmidt, Dominik Schrempf, Michael Woodhams.

  Host:    cerebro (AVX2, FMA3, 1006 GB RAM)
  Command: iqtree2 -B 1000 --seqtype DNA -m GTR+ASC -s input_data -nt 12 -ntmax 12 -mem 72G
  Seed:    763571 (Using SPRNG - Scalable Parallel Random Number Generator)
  Time:    Tue Dec  3 09:05:31 2024
  Kernel:  AVX+FMA - 12 threads (12 CPU cores detected)

  Reading 1 alignment files in directory input_data
  Reading alignment file input_data/Bradyrhizobium_ottawaense_GCF_002278135_3.fasta ... Fasta format detected

Command error:
  ERROR: Sequence GCF_002278135_3_5K3_2_S125 contains not enough characters (87753)
  ERROR: Sequence GCF_002278135_3_VJ5_1_S479 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ5_2_S480 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ5_3_S481 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ5_4_S482 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ6_1_S483 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ6_2_S484 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ6_3_S485 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ6_4_S486 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ7_1_S487 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ7_2_S488 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ7_3_S489 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ7_4_S490 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ8_1_S491 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ8_2_S492 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ8_3_S493 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ8_4_S494 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ9_1_S495 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ9_2_S496 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ9_3_S497 contains not enough characters (84853)
  ERROR: Sequence GCF_002278135_3_VJ9_4_S498 contains not enough characters (84853)
  ERROR:

Work dir:
  /nfs7/BPP/Chang_Lab/paradarc/paper2_bra/scripts/dev_branch/pathogensurveillance/work/d8/76d48103ec3570a70e257a183d0bba

I also had a similar error yesterday
ERROR ~ Error executing process > 'PATHOGENSURVEILLANCE:VARIANT_ANALYSIS:IQTREE2_SNP (_no_group_defined__GCF_021462285_1)'

Caused by:
  Process `PATHOGENSURVEILLANCE:VARIANT_ANALYSIS:IQTREE2_SNP (_no_group_defined__GCF_021462285_1)` terminated with an error exit status (2)

Command executed:

  # Get number of samples to decide whether or not to bootstrap
  FIRSTSAMPLE=$(ls -d1 input_data/* | head -n 1 || if [[ $? -eq 141 ]]; then true; else exit $?; fi)
  NSAMPLE=$(grep '>' $FIRSTSAMPLE | wc -l)
  if [ $NSAMPLE -gt 3 ]; then
      BOOT="-B 1000"
  else
      BOOT=""
  fi

  # Create phylogenetic tree
  iqtree2 \
       \
      $BOOT \
      --seqtype DNA -m GTR+ASC \
      -s input_data \
      -nt 12 \
      -ntmax 12 \
      -mem 72G \

  # Rename output by prefix
  mv input_data.treefile _no_group_defined__GCF_021462285_1.treefile

  # Save version information
  cat <<-END_VERSIONS > versions.yml
  "PATHOGENSURVEILLANCE:VARIANT_ANALYSIS:IQTREE2_SNP":
      iqtree: $(echo $(iqtree -version 2>&1) | sed 's/^IQ-TREE multicore version //;s/ .*//')
  END_VERSIONS

Command exit status:
  2

Command output:
  IQ-TREE multicore version 2.1.4-beta COVID-edition for Linux 64-bit built Jun 24 2021
  Developed by Bui Quang Minh, James Barbetti, Nguyen Lam Tung,
  Olga Chernomor, Heiko Schmidt, Dominik Schrempf, Michael Woodhams.

  Host:    61a9c91d0ac8 (AVX512, FMA3, 124 GB RAM)
  Command: iqtree2 -B 1000 --seqtype DNA -m GTR+ASC -s input_data -nt 12 -ntmax 12 -mem 72G
  Seed:    542201 (Using SPRNG - Scalable Parallel Random Number Generator)
  Time:    Mon Dec  2 08:22:08 2024
  Kernel:  AVX+FMA - 12 threads (32 CPU cores detected)

  Reading 1 alignment files in directory input_data
  Reading alignment file input_data/_no_group_defined__GCF_021462285_1.fasta ... Fasta format detected

Command error:
  IQ-TREE multicore version 2.1.4-beta COVID-edition for Linux 64-bit built Jun 24 2021
  Developed by Bui Quang Minh, James Barbetti, Nguyen Lam Tung,
  Olga Chernomor, Heiko Schmidt, Dominik Schrempf, Michael Woodhams.

  Host:    61a9c91d0ac8 (AVX512, FMA3, 124 GB RAM)
  Command: iqtree2 -B 1000 --seqtype DNA -m GTR+ASC -s input_data -nt 12 -ntmax 12 -mem 72G
  Seed:    542201 (Using SPRNG - Scalable Parallel Random Number Generator)
  Time:    Mon Dec  2 08:22:08 2024
  Kernel:  AVX+FMA - 12 threads (32 CPU cores detected)

  Reading 1 alignment files in directory input_data
  Reading alignment file input_data/_no_group_defined__GCF_021462285_1.fasta ... Fasta format detected
  ERROR: Sequence GCF_021462285_1_sample25 contains not enough characters (45000)
  ERROR: Sequence GCF_021462285_1_sample3 contains not enough characters (45153)
  ERROR: Sequence GCF_021462285_1_sample4 contains not enough characters (45153)
  ERROR:

Work dir:
  /home/marthasudermann/pathogensurveillance/work/78/15c36762516ef714ac421d0b3a3134

Container:
  quay.io/biocontainers/iqtree:2.1.4_beta--hdcc8f71_0

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

 -- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details


Code cleanup

GardenActivity and README cleanup

The README license should stay unchanged as to match the licenses from other samples.

Cool, reverting it

The revert also removed files from the .idea directory - we only want the changes for GardenActivity in this PR.

Yeah sorry, may bad. Fixing...

Done

Thanks!


fix(install): set SUPERSET_VERSION_RC at the right time

fixes #21082
SUMMARY
Fixes problem as described in the issue #21082
TESTING INSTRUCTIONS

execute command below in a environment which doesn't contain any of the superset env variables.

[YOUR_SUPERSET_PATH]/RELEASING/make_tarball.sh [VERSION] [RC] [PGP_KEY_NAME]

this should run without failures.

ADDITIONAL INFORMATION
fixes #21082

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@Joel-Haeberli  — Sorry this slipped though the cracks for so long! Thanks for reporting both the issue and opening the PR. Please feel free to tag committers here or ping us on Superset Slack if things get stuck like this.
@eschutho this seems like a straightforward fix to a problem I haven't encountered... curious your take :)


Need help

I checked the documentation but there isn't any mention of how to apply referral code in referred widget.
Can you please share the required userInput keys for referredWidget and how to pass referral code in it.
Thank you

Sorry I just saw this. I'm actually not sure if I understand your question. I assume you have reached out to support? I'll close this ticket for now.


Handle PRs that introduce values.yaml file

Right now they fail with the following error:
Error: while finding values.yaml files

Caused by:
    0: cannot revparse ""
    1: failed to parse revision specifier - Invalid pattern ''; class=Invalid (3); code=InvalidSpec (-12)

Turns out this was caused by --head/--base being empty which occurs when actions run from a branch trigger instead of a pull-request one. Fixed by https://github.com/sapcc/pear-reviewer/commit/2ddca81bcdbb42e7e7a8672469ac3e6b841db07f and changing the trigger in the final repo.