text:
Improved notifications

Notifications in the app are a little messy at the moment. If for instance you place a huge order that is filled in multiple parts, you will get one notification for each part in quick succession.
Instead, the app should attempt to replace existing notifications an be clever. For example, if you place a huge order you should get one to say something like "Order filling", then it would update to say "Order filling: 1000/3000", then eventually update to success saying it's filled.

Also, when we trim, the status of the trade switches to 'canceled'. Should this field refer to the stop loss or something else?

hm yeah that might be the stop loss cancellation interfering. Clearly a log bug. I'll open a new bug for that

authors: Dolivent pareeohnos

repo: pareeohnos/ktrade


text:
added generation of command documentation

Generates in the GitHub summary a list of all the available commands with some information on their usage and (soon to be added) parameters.
Resolves #12

Find a working example here

source: gharchive/pull-request

repo: paritytech/cmd-action

license: MIT

license_type: permissive

license_source: github-api


text:
Clean up repo

Bump all packages to 3.0.0
All packages now require local packages. Which means when we modify one, all the other immediately know of the changes.
added back the old api folder, because all tests pass there. That's most of the file changes in the file diff.

to run those tests: yarn test:api in root folder, or yarn test in api folder

in api, only converted utils/ and format/ folder to TS (related #21)

TODO:

[ ] lerna version

Pull Request Test Coverage Report for Build 250

229 of 305 (75.08%)  changed or added relevant lines in 14 files are covered.
5 unchanged lines in 3 files lost coverage.
Overall coverage increased (+22.5%) to 74.99%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/api/src/util/encode.ts
4
5
80.0%

packages/light.js/src/rpc/utils/createRpc.ts
2
3
66.67%

packages/api/src/format/input.ts
45
53
84.91%

packages/api/src/format/output.ts
149
215
69.3%

Files with Coverage Reduction
New Missed Lines
%

packages/electron/src/getParityPath.ts
1
0.0%

packages/electron/src/fetchParity.ts
1
0.0%

packages/contracts/src/badgereg.ts
3
0.0%

Totals

Change from base Build 247:
22.5%

Covered Lines:
1338

Relevant Lines:
1794

💛  - Coveralls

authors: amaurymartiny coveralls

repo: paritytech/js-libs


text:
Update to separate worker binaries

Once https://github.com/paritytech/polkadot/pull/7337 is merged. This will probably require a workspace setup.

Please let me know if you run into any issues. Any help with testing before https://github.com/paritytech/polkadot/pull/7337 is merged would be awesome.

source: gharchive/issue

authors: mrcnski ordian

repo: paritytech/pvf-checker


text:
Refactor and rename sandboxing implementation

The sandboxing code inside the client which is responsible for running the contracts of pallet-contracts needs a refactor. Currently, the different execution engines for contracts are crammed into sc-executor-common. Neither should different execution engines be in the same crate nor should runtime execution and sandbox execution be intertwined in this way. For that reason we want to refactor that code in order to have proper abstractions that allows us to move the sandboxing code to its own set of crates.
Rename
After a discussion with @pepyakin (see comments below) we agreed that we should also move away from the term "sandboxing" for this whole thing. One proposal what I also back is to use the terminology "Wasm Virtualization".
TODO

[x] #10563
[ ] Create a trait to abstract over sandboxing execution engines ("backends").
[ ] Use dynamic dispatch with that trait to make engine selection possible at runtime (command line argument).
[ ] Move sandboxing code into its own crate client/wasm-virt with one additional crate per execution engine (sc-wasm-virt-wasmi, sc-wasm-virt-wasmer). This should also move all wasm virtualization related traits that needs to be implement by the runtime executor to the new location.

Another open question is whether we need to expand the API to allow for chunked execution so that code merkelization can be implemented. However, current thinking is that we can and should get away without execution engine support. I think it is reasonable to go forward with a non chunked version risking that we might need to maintain two APIs. Otherwise this is blocked by #9431.

I think, by carefully designing the API we can future-proof it to support potential chunked execution similar to what we have done for wasmi during our experiment.

Maybe. It adds complexity, though. For example, we would need some kind of feature discovery then because not all execution engines will support this right off the bat. As a matter of fact none will support it as we only put it in for future proofing. Just creating a new version of the API when the need arises is better in my opinion. Future proofing APIs is worth nothing when users will depend on the implementation.

Excerpt from our discussion about changing the terminology from sandoxing to a term based on virtualization, e.g. wasm virtualization API, hypervisor API, or whatever.

Specifically, I think it is just too general and does not represent what it actually does. What is usually understood by sandbox? Well, it's when some code is put into an environment where it cannot reach to anything except things that was explicitly designated to be used by that sandboxed code.
If we agree on that definition, then the "runtime" is exactly that. The thing that executes "runtime" (which would be called runtime by normal people) can be also called a sandbox.
However, virtualization is really more appropriate term here I feel. This is because it fits really an analogy. Virtualization is where you have some medium that provides virtualization facilities, some hypervisor/supervisor that virtualizes or multiplexes the underlying hardware, emulating other and providing services, and the guest which consumes those services, who uses the hardware through the hypervisor, and ultimately is controlled by the hypervisor

Updated the top post with new information after a discussion I had with @0x7CFE, today.

Refined the top posting again after the picture got a bit clearer on how the final refactoring should look like.

I narrowed down the scope if this issue and created a a proper task list.

What exactly do you *need it for?

run a piece of wasm in runtime

You can still do that: Use sp_sandbox::embedded_executor. It doesn't rely on this interface but includes a wasmi into the runtime.

No one is working on this anymore.

Since we decided to go with wasmi for now and we don't really have the resources to work on that we will close it.

authors: 0x7CFE atenjin athei pepyakin

repo: paritytech/substrate


text:
MaxUnlockingChunks should be configurable via Runtime

StakingLedger in the pallet-staking is using a hardcoded value of MaxUnlockingChunks. Pallet-staking also has a MaxUnlockingChunks in the configuration which is not used anywhere.
I discussed this with @kianenigma, we should remove the hard coded value and use the value we get from Config.

Taking it

Taking it

@MrishoLukamba Feel free to pick it up.


text:
Fix pallet_assets no_std compilation

Could you port this to polkadot-v0.9.19 as well? thanks

Hmm, it is included in the bin/node/runtime. So, it should already be compiled as part of the CI in wasm. Not sure why it didn't failed there :thinking:
What compiler version are you using?

@bkchr we are using: nightly-2021-11-07, somehow I cannot compile into wasm yet due to missing vec import, wierd

I found the problem. I bet with you that you have the std feature of sp-std somewhere in your project enabled. Please check this.

Not sure if it's caused by compiler though, it's also reporting some others:

let me check thanks

@bkchr you are awesome! fixed now

I am running into the same issue in v0.9.26
I have tried wit the sp-std/std flag enabled and disabled.
Suggestions?

@anantasty it can also be any other crate that propagates std feature to sp-std. You can use cargo tree to find out which crate enables the std feature.

Thanks @bkchr

authors: GopherJ anantasty bkchr


text:
contracts: Get rid of #[pallet::without_storage_info]

All the pallet storage now implements MaxEncodedLen and hence we can remove #[pallet::without_storage_info]. Most of the changes were replacing Vec with BoundedVec and adding a derive for MaxEncodedLen.
cumulus companion: https://github.com/paritytech/cumulus/pull/1261

bot merge

bot merge


text:
[DNM] Test CI

Various CI testing.

Works es expected @rcny :+1:

bot help

bot help

wrong repo

bot bench $ pallet dev pallet_balances


text:
track total value locked in pools onchain

could resolve #12838 as well.

[ ] fix tests
[ ] migration

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2357659

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable-int
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2357655

Not at the top of my TODO list, but plan to getting around to it in the next couple of weeks.

Closing in favor of https://github.com/paritytech/substrate/pull/14775


text:
[wip] Batching experiments

Opening for bot & performance testing

/bench import

/bench import

/bench import

/bench import

/bench ed25519

/bench import

/bench import

/bench ed25519


text:
Add new g-diffuser command "enhance"

Rescale the input image to a higher resolution and use inpainting with a constant mask of some opacity, effectively using SD for super-resolution. The same function could be aliased as a style transfer function, since it would do the same thing depending on opacity value and the prompt supplied.

optional parameter to increment or decrement certain parameters like scale or strength during said operation so that the longer it goes on the more insane the images get as the str gets higher or the scale gets lower

authors: lootsorrow parlance-zz

repo: parlance-zz/g-diffuser-lib


text:
I guess AddCookie/AddCookies doesnt work?

Hi!
I just tried to use it vs sites which use cookies to confirm language/currency, and it's just do not work, I am not sure why...
I can only confirm that same sites with standard approach (cookiejar and http.Client(jar: cookieJar))  work just fine.

Hi @MikhailKlemin
I just have the same issue, but it works well if i put the AddCookies back the post/get.

i just have the same issue,  i have try many method, but i have not find the way, so i need you help@han2015, this is mine code ,
func GetGoRequest()  {
request := gorequest.New()
//loginCookie := GetLoginCookie()
//
//fmt.Println("go request logincookie",loginCookie)
cookie := &http.Cookie{Name: "PHPSESSID", Value: "t2cdimadecpoel6i8rcdomk1m6"}
fmt.Println("go request cookie--->", cookie)
_, _, err := request.
Get("https://test-xxxxxx.cn/api/index.php?r=detail/brokerage-flows&token=cdkqqf1407307954&recommend_id=39ee6603-e648-49b1-12f5-e803efbf383a&devopenid=88374").
Send("r":"detail/recommend-flows","token":"cdkqqf1407307954","recommend_id":"39ee6603-e648-49b1-12f5-e803efbf383a").
AddCookie(cookie).
End()
if err != nil{
fmt.Printf("%v \n", err)
}
fmt.Println(request.Header) // this is always map[]
}
please, give me same help, thank you

@kervinson
correct your Send sentence refer doc(https://github.com/parnurzeal/gorequest/blame/develop/README.md#L120).
go request cookie---> PHPSESSID=t2cdimadecpoel6i8rcdomk1m6
++++++++++++++1
++++++++++++++TypeJSON
++++++++++++++5
[Get https://test-xxxxxx.cn/api/index.php?devopenid=88374&r=detail%2Fbrokerage-flows&recommend_id=39ee6603-e648-49b1-12f5-e803efbf383a&token=cdkqqf1407307954: dial tcp: lookup test-xxxxxx.cn: no such host]
[PHPSESSID=t2cdimadecpoel6i8rcdomk1m6]

I met the same problem, my code is bvelow
env : window 10, go 1.15, gorequest 1.6.0
package main

import (
	"github.com/parnurzeal/gorequest"
	"net/http"
	"strings"
	"log"
)

func buildCookie(cookie string) []*http.Cookie {
	cookieSlice := make([]*http.Cookie, 0)
	params := strings.Split(cookie, ";")
	for _, line := range params {
		res := strings.Split(line, "=")
		cookieSlice = append(cookieSlice, &http.Cookie{Name: res[0], Value: res[1]})
	}
	return cookieSlice
}

func main() {
	cookies := []string {"cookie1", "cookie2", "cookie3", "cookie4"..}

	r := gorequest.New()
	r = r.Set("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8").
			Set("Accept-Encoding","gzip, deflate, br").
			Set("Accept-Language","zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2").
			Set("Host","www.tianyancha.com").
			// Set("Referer","https://www.tianyancha.com/search/ocD?base=taiyuan").
			Set("User-Agent","Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0")
	index := 0

	req, _ := http.NewRequest("GET", "https://www.tianyancha.com/company/3192219802", nil)
	req.Header.Set("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
	req.Header.Set("Accept-Encoding","gzip, deflate, br")
	req.Header.Set("Accept-Language","zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2")
	req.Header.Set("Host","www.tianyancha.com")
	// Set("Referer","https://www.tianyancha.com/search/ocD?base=taiyuan").
	req.Header.Set("User-Agent","Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0")
	for i := 0; i<3; i ++ {
		// cookies[index%len(cookies)])
		r.AddCookies(buildCookie(cookies[index%len(cookies)]))
		// log.Println(r.Header)
		// r = r.Set("Cookie", cookies[index%len(cookies)])
		response, _, _ := r.Get("https://www.tianyancha.com/company/3192219802").End()
		log.Println("url, ", response.Request.URL.String())

		req.Header.Set("Cookie", cookies[index%len(cookies)])

		client := &http.Client{}
		resp, _ := client.Do(req)
		log.Println(resp.Request.URL.String())
		index ++
	}
}

output
2020/11/11 16:20:42 url,  https://www.tianyancha.com/login?from=https%3A%2F%2Fwww.tianyancha.com%2Fcompany%2F3192219802
2020/11/11 16:20:43 https://www.tianyancha.com/company/3192219802
2020/11/11 16:20:43 url,  https://www.tianyancha.com/login?from=https%3A%2F%2Fwww.tianyancha.com%2Fcompany%2F3192219802
2020/11/11 16:20:43 https://www.tianyancha.com/company/3192219802
2020/11/11 16:20:44 url,  https://www.tianyancha.com/login?from=https%3A%2F%2Fwww.tianyancha.com%2Fcompany%2F3192219802
2020/11/11 16:20:44 https://www.tianyancha.com/company/3192219802

anyway, i cannot get it through via gorequest~~~

Now I've solved this problem.
Its really a misuse of cookie.
When I read source code of gorequest, I found it would clear the agent stat every time before a new request if DoNotClearSuperAgent is default to false.
So the solution is add this code between you set cookie and start a new request.
agent := gorequest.New()
agent.SetDoNotClearSuperAgent(true)

authors: MikhailKlemin han2015 kervinson luckcry

repo: parnurzeal/gorequest

license: mit

license_source: bigquery


text:
Add 'Syntax' data type.

Something along these lines? References #9 .

Coverage decreased (-0.8%) to 84.566% when pulling a5e1e0c7d6a8230e750122414a46a05bbd072f6c on hit023:cleaner-imports into 0468c68f1df8cb7d07d746085e020bc219daae33 on parsonsmatt:master.

Coverage decreased (-0.8%) to 84.566% when pulling a5e1e0c7d6a8230e750122414a46a05bbd072f6c on hit023:cleaner-imports into 0468c68f1df8cb7d07d746085e020bc219daae33 on parsonsmatt:master.

Coverage decreased (-0.8%) to 84.566% when pulling a5e1e0c7d6a8230e750122414a46a05bbd072f6c on hit023:cleaner-imports into 0468c68f1df8cb7d07d746085e020bc219daae33 on parsonsmatt:master.

Coverage decreased (-0.8%) to 84.566% when pulling 6126353fbeb6a126cd3f3b412508f83d4bd1bcbf on hit023:cleaner-imports into 0468c68f1df8cb7d07d746085e020bc219daae33 on parsonsmatt:master.

repo: parsonsmatt/kale


text:
How to use with webpack?

I am attempting to use this feature in webpack, but I cannot figure out how to inject custom properties. This is fairly easy to do for var
        let variables = {
            'primary-toolbar': '#415464',
            'secondary-toolbar': "#488fb4"
        }
            require("postcss-cssnext")({
                features: {
                    customProperties: {
                        variables: variables,
                        'conversation-progress': `
                            {
                                margin: 0 auto;
                                position: fixed;
                                top: 50%;
                                left: 50%;
                            };
                        `
                    },
                    applyRule: {
                    }
                }
            })

However when attempting to do something similar for apply I get the no custom properties set declared error.

Hi,
this has nothing to do with webpack, it's just that there's no mechanism implemented to create custom property sets from js/config.

That's what I assumed, thanks for the clarification.  Since I'm using angular2, my use case isn't as simple as just plugging everything into one file.  As a workaround, I'm using postcss-inject to inject :root into my components' css.

@chimon2000: See https://github.com/postcss/postcss-custom-properties/issues/32#issuecomment-237363712

Refs #15

authors: chimon2000 kevinSuttle pascalduez

repo: pascalduez/postcss-apply

license: unlicense


text:
Dont render camera in Build

I see https://github.com/pastasfuture/com.hauntedpsx.render-pipelines.psx/issues/28, but i have a lastet realise in project

I change Graphics API for Linux to Vulkan and errors lose, but i also have a gray screen
My OS: Ubuntu 20.04 LTS

Ohh, well, i changed unity version to 2021 LTS and this works! For me it's not problem what version i use, but someone it's can interfere


text:
Update to ProtocolDataUnits with Nested PDU Support and Improved API

This pull request introduces significant enhancements to the ProtocolDataUnits Python module (as discussed in pull request #1 ). The following features have been added or improved:

Nested PDU Support:

PDUs can now contain other PDUs, allowing for more complex and hierarchical data structures.

Enhanced API:

Simplified and user-friendly API for creating PDU formats.
New helper function create_pdu_format to streamline PDU creation.

Updated Encoding/Decoding Functions:

Improved handling of various data types.
Support for nested PDUs in both encoding and decoding processes.

Comprehensive Documentation:

Detailed docstrings for the encode and decode functions to explain their functionality and usage.

Updated README:

Revised to reflect the new features and provide clear instructions for installation, usage, and contribution.

Changes Made:

Added nested_pdu method to the PDU class.
Updated encode and decode methods to handle nested PDUs.
Refactored the API for defining PDUs with create_pdu_format.
Enhanced documentation and examples in the README.

Testing:

TODO: Extensive testing has to perform to ensure the new features work as expected.
All existing tests have been updated to accommodate the new functionality.
New tests have been added for nested PDU support.

Impact:

These changes improve the flexibility and usability of the ProtocolDataUnits module, making it easier to define and work with complex PDUs.

Please review the changes and provide feedback. If everything looks good, kindly approve the pull request so we can merge it into the main branch.

A bit busy these couple of weeks with field tests. Will review by early Aug.

No rush. Good luck with the trials.

@mchitre Thank you so much for reviewing, much appreciated. Sorry i have missed the notification for this for some reason. I do agree with the comments, will made the suggested changes and send for another review.


text:
Accelerate ODE solver [What did I miss?]

Hi,
I am playing around with diffrax's ODE solving functionality. In a nutshell, I define a simple feedforward MLP with random initialization and benchmark the runtime of using it as the temporal derivatives of an ODE. I wrote the following code to record the run-time of ODE solving and got run-time around 3.7 sec, which seems much slower compared to other ODE solver frameworks.
I am new to jax and diffrax. What did I miss in my code implemenation?
import equinox as eqx
import jax
import diffrax
import jax.numpy as jnp
import time

class MLPeqx(eqx.Module):
    layers: list
    activation: callable = eqx.static_field()

    def __init__(self, hidden_dims):
        super().__init__()
        tmp_key = jax.random.split(jax.random.PRNGKey(0), len(hidden_dims) - 1)
        self.layers = [eqx.nn.Linear(hidden_dims[i], hidden_dims[i + 1], key=tmp_key[i]) for i in
                       range(len(hidden_dims) - 1)]
        self.activation = jax.nn.relu

    def __call__(self, x):
        for i in range(len(self.layers) - 1):
            x = self.activation(self.layers[i](x))
        x = self.layers[-1](x)
        return x

class ODEjax(eqx.Module):
    func: MLPeqx

    def __init__(self, hidden_dims):
        super().__init__()
        self.func = MLPeqx(hidden_dims)

    def __call__(self, t, y, args=None):
        return self.func(y)

def solve_ode(input_x, t, func, cfg):
    sol = diffrax.diffeqsolve(
        diffrax.ODETerm(func),
        cfg['method'],
        t0=t[0],
        t1=t[-1],
        y0=input_x,
        dt0=None,
        saveat=diffrax.SaveAt(ts=t),
        stepsize_controller=diffrax.PIDController(atol=cfg['atol'], rtol=cfg['rtol']),
    )
    return sol.ys

def run_diffrax(hidden_dims, input_x, t, num_t, cfg):
    t = jnp.linspace(t[0], t[1], num_t)
    func = ODEjax(hidden_dims)
    y = jax.vmap(solve_ode, in_axes=(0, None, None, None))(input_x, t, func, cfg)
    return y

if __name__ == '__main__':
    batch_size = 128
    hidden_dims = [100, 100, 100]
    input_x = jax.random.normal(jax.random.PRNGKey(0), (128, 100))

    start_time = time.time()
    run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
        'method': diffrax.Dopri5(),
        'atol': 1e-5,
        'rtol': 1e-5})
    end_time = time.time()

    print(f"run time = {end_time - start_time:.3f} (sec)")

jax compile times will be longer for first iteration (and are generally excluded in benchmarks)
with async dispatch you need a block until ready

With the following code I got:
import equinox as eqx
import jax
import diffrax
import jax.numpy as jnp
import time

class MLPeqx(eqx.Module):
    layers: list
    activation: callable = eqx.static_field()

    def __init__(self, hidden_dims):
        super().__init__()
        tmp_key = jax.random.split(jax.random.PRNGKey(0), len(hidden_dims) - 1)
        self.layers = [eqx.nn.Linear(hidden_dims[i], hidden_dims[i + 1], key=tmp_key[i]) for i in
                       range(len(hidden_dims) - 1)]
        self.activation = jax.nn.relu

    def __call__(self, x):
        for i in range(len(self.layers) - 1):
            x = self.activation(self.layers[i](x))
        x = self.layers[-1](x)
        return x

class ODEjax(eqx.Module):
    func: MLPeqx

    def __init__(self, hidden_dims):
        super().__init__()
        self.func = MLPeqx(hidden_dims)

    def __call__(self, t, y, args=None):
        return self.func(y)

def solve_ode(input_x, t, func, cfg):
    sol = diffrax.diffeqsolve(
        diffrax.ODETerm(func),
        cfg['method'],
        t0=t[0],
        t1=t[-1],
        y0=input_x,
        dt0=None,
        saveat=diffrax.SaveAt(ts=t),
        stepsize_controller=diffrax.PIDController(atol=cfg['atol'], rtol=cfg['rtol']),
    )
    return sol.ys

@eqx.filter_jit
def run_diffrax(hidden_dims, input_x, t, num_t, cfg):
    t = jnp.linspace(t[0], t[1], num_t)
    func = ODEjax(hidden_dims)
    y = jax.vmap(solve_ode, in_axes=(0, None, None, None))(input_x, t, func, cfg)
    return y

batch_size = 128
hidden_dims = [100, 100, 100]
input_x = jax.random.normal(jax.random.PRNGKey(0), (128, 100))

_ = run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': 1e-5,
    'rtol': 1e-5}).block_until_ready()

%%timeit
_ = run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': 1e-5,
    'rtol': 1e-5}).block_until_ready()

19.4 ms ± 4.31 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)

Thanks so much! I have tried on my end and observed similar run-time metrics. I have another follow-up question.  Say I first want to run with atol=rtol=1e-5, and later in my code I want it to run with atol=rtol=1e-4. I observe again the method run_diffrax runs slower again when changing from 1e-5 to 1e-4 because of compilation( I guess). Namely,
# first time of atol=rtol=1e-5, takes ~2secs
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': 1e-5,
    'rtol': 1e-5}).block_until_ready()

# second time of atol=rtol=1e-5, takes ~0.008secs
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': 1e-5,
    'rtol': 1e-5}).block_until_ready()

# first time of atol=rtol=1e-4, takes ~2secs
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': 1e-5,
    'rtol': 1e-5}).block_until_ready()

# second time of atol=rtol=1e-4, takes ~0.008secs
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': 1e-5,
    'rtol': 1e-5}).block_until_ready(

Is this behavior expected? I wonder if there is a way to compile only once for arbitrary atol=rtol values, and can always run around millisecond level regardless of atol and rtol.

Yes, this behavior is expected. The python floats are getting marked as static by the filtering that happens before jit. You can make them not static by making them jax types (e.g. arrays).
start_time = time.time()
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': jnp.array(1e-5),
    'rtol': jnp.array(1e-5)}).block_until_ready()
end_time = time.time()
print(f"run time = {end_time - start_time:.3f} (sec)")

start_time = time.time()
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': jnp.array(1e-5),
    'rtol': jnp.array(1e-5)}).block_until_ready()
end_time = time.time()
print(f"run time = {end_time - start_time:.3f} (sec)")

start_time = time.time()
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': jnp.array(1e-4),
    'rtol': jnp.array(1e-5)}).block_until_ready()
end_time = time.time()
print(f"run time = {end_time - start_time:.3f} (sec)")

start_time = time.time()
run_diffrax(hidden_dims, input_x, [0.0, 1.0], 100, {
    'method': diffrax.Dopri5(),
    'atol': jnp.array(1e-4),
    'rtol': jnp.array(1e-5)}).block_until_ready()
end_time = time.time()
print(f"run time = {end_time - start_time:.3f} (sec)")

run time = 4.057 (sec)
run time = 0.016 (sec)
run time = 0.013 (sec)
run time = 0.013 (sec)

authors: lockwo zhengqigao

repo: patrick-kidger/diffrax


text:
State does not change the icon

I noticed that the entity that is from integration does not update the icon when changing the status. It seems to me that this is due to the fact that the device does not have the right device_class or the supported_features are different.
I am using beta version 2023.11.0b5

Probably just because the icon is set statically. Will change it in the next update, but it should be fine in tile or mushroom cards anyways.

shouldn't happen on the non-beta versions, the beta branch will not be taken further, as that part will move to HA core.

authors: darkkatarsis zweckj


text:
GMScreen compatibily is broken on Chronium based browser

Describe the bug
Hello, thanks for the last issue resolved!
When editing a whiteboard and saving it, GM Screen preview is not updated until I hit the GM Screen refresh button.
To Reproduce
Steps to reproduce the behavior:

Go to GM Screen (with a Whiteboard page attached)
Click on Edit the journal note and edit the whiteboard then save
GM Screen doesn't show changes
Hit the refresh button of GM Screen, changes are shown within GM Screen

Expected behavior
GM Screen should show changes once they are saved (might be an event relative to note updated not fired?)
Environment (please complete the following information):

Foundry VTT: 11.309
Browser tested on chrome & brave
Module Version latest

Thx! Working perfectly 😃

repo: patrickporto/journal-whiteboard


text:
Icarus Server Not Listening on Port 17777

Followed your instructions.  Server is finally running after suffering through figuring out how to get rid of the Visual C++ error message.  I am on a fresh Windows 11 install.  The Icarus server is not visible in the "Dedicated Servers" list, and is not available by direct connect either.

netstat -an | Select-String 27015 shows the server machine is listening on the port.
netstat -an | Select-String 17777 doesn't return anything, showing the server is not listening on this port.
icarus.psm1 is set to both ports above.
I have opened ports 27015 and 17777 TCP and UDP on both routers (I have two separate networks).
Windows firewall has all ports opened for Icarus for UDP and TCP for private, public, and domain networks.
The server's console window is open and showing the server is running, but no confirmation the server is listening on what ports.
The server does not show in the "Dedicated Servers" list.
The server is not available through direct connect in Icarus.

Don't know what to do from here.

Can you post your configuration and logs ?

I managed to get it running a few minutes ago. Shortly after my original post I switched to my own startup cmd which got everything running.  This time around I tried the automated script by @BananaAcid.  Now the server is running just fine.  Now I need to configure daily or hourly automated backups, if that's possible.  So far I have to manually  restart the launcher script, not quite helpful if someone wipes out the prospect world and I haven't restarted recently.  Happened once already.

Automated Backups and restart are built-in powershell GSM, they are also enabled by default in the configuration file.
They are launched by the task-scheduler in windows.


text:
form control should have ellipsis when text overflows

According to the image below when the text overflows, ellipsis should be shown:

I believe it's easier to implement that using css's text-overflow than writing it in JavaScript.

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: patternfly/patternfly-next


text:
fix(file-upload): removed message container, added form to error example

fixes https://github.com/patternfly/patternfly-next/issues/2797

Preview: https://patternfly-next-pr-2807.surge.sh

@mcarrano it just removes the file message/helper text at the bottom (instructions/error text) from the file upload component and relies on the file upload component being in a form for that helper text, so the helper text comes from the form component instead.
That also means:

Any updates we make to the form component's helper text (descriptive, error, success, etc) will be available when used with file upload since the file upload is no longer creating its own helper text.
The text doesn't get a blue overlay when you drag/hover the file upload component, since that text is no longer part of the file upload component.

old:

new:

Sounds good to me. Thanks for the explanation @mcoker !

Ah, I'm glad you guys made that change, I forgot to mention I needed to make .pf-c-file-upload a div instead of a form in the React component so I could get my FormGroup example to work (React will refuse to let you nest a  in another ).

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: mcarrano mcoker mturley patternfly-build redallen


text:
Extract components from page layout

fixes https://github.com/patternfly/patternfly-next/issues/637
@andresgalante I left the JS that toggles the navigation in the demo. It's easy to remove if we want to. For the sake of consistency and for future demos, I don't think we should write javascript in our workspace, and just present the different states instead. To see the interaction/animations, maybe link to a demo of the react components in a sample application since that's officially supported. What do you think?

Deploy preview for pf-next ready!
Built with commit 994767c170f99c03907627550aec2d9db70ec898
https://deploy-preview-658--pf-next.netlify.com

@michael-coker @andresgalante I agree that best practice is to present different states. With more complex components, it's just a lot more work to do so when including very basic JS makes it much easier to understand. It doesn't seem to be a big issue while we're still in Alpha, but will be in Beta+. Insights will be using all interactive components, so that would be a good opportunity to link to a live demo when they become available.


text:
[Feature]: Import original MusicDJ MIDI files

Describe the problem you're having
I've got a bunch of MusicDJ MIDI files made on SE K750i back in 2006, however nothing can open or convert them. Edit: VLC with fluidsynth can in fact open them (thanks to some people for the tips). MusicDJ data appears to be stored in the SEM1 chunk as noted in losnoco/foo_midi#1 and confuses most MIDI decoders.
MusicDJ_files.zip
Describe the solution you'd like
I was wondering if it would eventually be possible to import the files as projects in this new MusicDJ recreation. However, since I imagine this use case is super rare I'm just leaving it as a "nice to have" in the hopes someone would be compelled enough to work on this.
Thank you!

@StepS- Good news! v1.5-beta just added this.

authors: StepS- pattlebass

repo: pattlebass/Music-DJ


text:
Add support for 8k tokens with Claude 3.5 Sonnet

Issue
Claude 3.5 Sonnet now supports a maximum output/response token length of 8,192 tokens (from 4,096 currently).
To support 8k tokens, we need to add the header "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15" to our API calls:

Issue
Claude 3.5 Sonnet now supports a maximum output/response token length of 8,192 tokens (from 4,096 currently).
To support 8k tokens, we need to add the header "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15" to our API calls:

How did you get past this:

official docs about the feat: https://docs.anthropic.com/en/docs/about-claude/models#model-comparison

did anybody submit a PR yet?

Thanks for trying aider and filing this issue.
Aider is already able to receive unlimited output from Sonnet. See the article below. This capability was introduced back in v0.41.0.
https://aider.chat/2024/07/01/sonnet-not-lazy.html
That said, it would be beneficial to support the new 8k output limit, mainly to somewhat reduce the cost and latency of longer LLM responses.

I added support for 8k output tokens.
The change is available in the main branch. You can get it by installing the latest version from github:
python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

I am trying to do this on the AWS Bedrock hosted version of 3.5 Sonnet. However, to my surprise I found that it isn't really updated all that much meaning if I pass this parameter I get an error of extra headers not allowed.
Then doing some searching I found that Sonnet on bedrock hasn't been updated since it was launched i.e., June 2024 which is really surprising. Any idea if Amazon or Anthropic will update the models?

Is this on by default, or do I need to point Cursor to use a specific model/API?

Aider is using 8k output tokens for sonnet:
aider --sonnet --verbose

...

Model metadata:
{
    "key": "claude-3-5-sonnet-20241022",
    "max_tokens": 8192,

...

authors: WilliamAGH berwinsingh bitnom flamerged jackyliang pascalandy paul-gauthier

repo: paul-gauthier/aider


text:
"Null expectation context - missing withExpectations?" w/ ScalaTest FunSpec

Hi, I'm currently trying to create a basic test suite using ScalaTest and wanted to try my hand at mocking too (I'm quite new to Scala so am just wanting to get used to a few things and pin down which libraries I can use to perform common tasks like testing, and mocking etc).
I'm encountering a strange exception when I run my tests, one test succeeds, then all of the following tests fail. I've tried to change how this works a few times to restructured when things are created, and if they're only created once, but I still just get exceptions.
Here's my tests:

Here's the output:

I've just encountered this as well with FunSuite.
It seems to happen when you mock stuff in before/beforeEach.
A temporary workaround is to define whatever in before in a method and calling it at the beginning of each test (in other words, behave like there's no "before" feature).

+1

+1

+1

minimal failing example:
class CatTest extends FunSuite with BeforeAndAfter with MockFactory {
  var cat: Cat = _

  trait Cat {
    def meow(): String
  }

  before {
    cat = stub[Cat]
    (cat.meow _).when().returns("meow")
  }

  test("meows") {
    cat.meow() === "meow"
  }

  test("meows again") {
    cat.meow() === "meow"
  }
}

working example:
class CatTest extends FunSuite with BeforeAndAfter with MockFactory {
  var cat: Cat = _

  trait Cat {
    def meow(): String
  }

  before {
    withExpectations {
      cat = stub[Cat]
      (cat.meow _).when().returns("meow")
    }
  }

  test("meows") {
    cat.meow() === "meow"
  }

  test("meows again") {
    cat.meow() === "meow"
  }
}

The example above only works because there is no assertion on the ===. This code with added asserts looks like this:
class CatTest extends FunSuite with BeforeAndAfter with MockFactory {
  var cat: Cat = _

  trait Cat {
    def meow(): String
  }

  before {
    withExpectations {
      cat = stub[Cat]
      (cat.meow _).when().returns("meow")
    }
  }

  test("meows") {
    assert(cat.meow() === "meow")
  }

  test("meows again") {
    assert(cat.meow() === "meow")
  }
}

Which fails the assertions with cat.meow() being equal to null. The problem seems to occur whenever the mock is done within before{}. The only way I have been able to get around this is using OneInstancePerTest instead of BeforeAndAfter and implementing similarly.

@barkhorn can you confirm why this bug was closed? It seems to be confirmed but not fixed?

Hi, I can't see where the bug is here, so this should remain closed.
To share mocks within a suite, i'd recommend reading up on this page: http://scalamock.org/user-guide/sharing-scalatest/
Using the OneInstancePerTest is the correct way of sharing mocks (or a Fixture, whatever style you like better).
You could kind of use withExpectations too, but not in a before call. A higher order function wrapping around it might work for you.
See here for the implementation, maybe that helps. I would suggest using a Fixture though. https://github.com/paulbutcher/ScalaMock/blob/5fd4e563143d752b9638d32e05defcd8ddb8bb82/shared/src/main/scala/org/scalamock/MockFactoryBase.scala#L47

authors: SeerUK TEWatson Tolsi Woodz agile-jordi barkhorn eyalroth mdirkse

repo: paulbutcher/ScalaMock


text:
SOLVED - Error importing androidx.core in FlutterBluePlugin.java

:\Users\boris\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_blue-0.6.3+1\android\src\main\java\com\pauldemarco\flutter_blue\FlutterBluePlugin.java:43: error: package androidx.core.app does not exist
import androidx.core.app.ActivityCompat;
^
C:\Users\boris\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_blue-0.6.3+1\android\src\main\java\com\pauldemarco\flutter_blue\FlutterBluePlugin.java:44: error: package androidx.core.content does not exist
import androidx.core.content.ContextCompat;
I have this error and I've already imported android x and refractored. What should I do? I've tested with diferent versions of flutter ble too.

@borisllona,  check out my comment here:  https://github.com/pauldemarco/flutter_blue/issues/402#issuecomment-546425715
Or my pull request here: #416

Also, staying at 0.6.2 is not a bad idea (in pubspeck.yaml).
I had to delete the .flutter0plugins and pubspec.lock before flutter pub get.
It works for me but I am looking forward the next version if it comes with the solution of @rjcasson

@borisllona, check out my comment here: #402 (comment)
Or my pull request here: #416

It worked ! I was starting going crazy and updating my own app gradle but I haven't realized that it has to be changed the library one.
Thanks so much!

@borisllona Chances are the problem is with outdated project files. Stop into the discord if you'd like some help getting things up and running.

Please follow the instructions here and let me know the results:
https://github.com/pauldemarco/flutter_blue/issues/415#issuecomment-548186492

authors: borisllona bus710 pauldemarco rjcasson


text:
Port to 1.20

What's Working

The mod builds, and Minecraft loads with it and BCLib 3.0.2

I can create a world without crashing

I can construct an Eden Portal

I can travel to the Eden Ring

I saw a discwing (didn't grab a screenshot :disappointed:)

Eden ring items show up in the creative inventory

What's Not

There's no Eden Ring tab

The Eden Ring guidebook is barely legible

What I haven't tested

Crafting
Mining / block breaking (see below)
Multiplayer
Anything having to do with gravity manipulation

What to Pay Extra Attention to
The most non-obvious changes (read: the ones I probably got wrong) were:

rewriting the guide book rendering (and I clearly messed that up pretty badly, haha!)
migrating to the tag-based system of determining which tools break which blocks, explicitly the portion of the program that determines what items are mineable by what. I followed BetterEnd's example, but I was stumbling around in the dark and have no idea if I did it right, or whether I was even matching intent when it came to hammer-compatibility.

Thank you so much for creating this gorgeous mod--there's nothing like spending a day and a half poring over someone's codebase to make you appreciate the impressiveness of their body of work. If there's anything I can do to assist in the future development of this mod (including sponsoring its development via KoFi, Patreon, etc.), please let me know.
Also thank you to @Treetrain1 (whose review, testing and feedback I would greatly appreciate!) for all the work on getting the mod to 1.19.3 (especially the datagen gradle task!)

Ha! Okay, update: placing a gravity compressor crashed the game:
java.lang.IllegalArgumentException: Cannot get property class_2746{name=extended, clazz=class java.lang.Boolean, values=[true, false]} as it does not exist in Block{edenring:gravity_compressor}

I'm guessing there's a problem with the piston mixin...
Anyway, this is why this PR is likely to need a bit more attention than, say, #61

I'm closing this PR, as any port to 1.19.4+ really should be using the new tags system. I may try again, starting from @Treetrain1's 1.19.3 port, but I don't think I'll be reusing much of my own work from this PR.

repo: paulevsGitch/EdenRing


text:
Why is fsevents mentioned twice in package.json?

This as a dependency and as an optional dependency both?
Furthermore I am unable to use npm shrinkwrap on my Ubuntu machine anymore because fsevents is targeted for OS machines only. It is breaking our build in our organization :(
Looking at your issues, I think fsevents has caused lots of trouble. Maybe time to drop it?
If not, how else can I solve the shrinkwrap issue then?

fsevents is an optional dependency: https://github.com/paulmillr/chokidar/blob/master/package.json#L41
If you can't do shrinkwrap, that seems like a npm issue, not brunches. NPM should always respect optionalDependencies. Please report it here: https://github.com/npm/npm/issues

https://github.com/npm/npm/issues/9865

authors: binarykitchen es128 paulmillr

repo: paulmillr/chokidar


text:
allow watch for recursive not existing folder

Solves #872
This pull request allows user to watch specific not existing folders.
Was achieved via introducing a new function _mostSpecifiedExistingAncestor
We should consider making  the function public, as users might be interested in this functionality.

We need tests for that feature. Also, ensure you conform to chokidar code style e.g. { locations.

I added tests.

I've made the changes that you asked.

Ping?

If i’m reading this correctly, we’ll have a huge performance degradation because of the new IO call for every file. Need to investigate this thoroughly and so some benchmarks.

If i’m reading this correctly, we’ll have a huge performance degradation because of the new IO call for every file. Need to investigate this thoroughly and so some benchmarks.

maybe we should use a flag to enable or disable this functionality?

This needs a rebase. Also the curly brackets shouldn't be placed on new lines, there's an extra space in a test message and extra newlines.

authors: XhmikosR exx8 paulmillr


text:
Question: When is Set/Map not?

I am writing some type checking routines isSet and isMap among others. I have them using Object#toString when toStringTag is not available, .and when it is available then I'm using the size getter to perform a check. This is working nicely across realm and on all environments that I have tested on. I then threw es6-shim into the mix, which has now caused me some dilemma. On ES5 environments the shim is used, it walks, talks, eats, sleeps, and even farts like a Duck :) but it's DNA is not of a Duck, Object#toString is [object Object]. Ok, so the alternative method of using size says that it is a Duck, and I thought "that's ok then". But using this method without es6-shim then fails due to bugs in old FireFox where size is a function rather than a getter. So I'm wondering what thoughts are regarding type checkers and shims which implement a Duck in all but DNA. Should these checkers support es shims or should they count a shim as not a real Duck and say false. I'm not asking for code, just a perspective from shim makers as to whether isSet should return true for the Set shim in an ES5 environment or even a Set patch in an ES6 environment where the constructor has been replaced?

You can go one of two ways - either isSet only returns true for a set that has native behavior (which is impractical to determine in JS), or, assume that if Set exists, cache the Set.prototype.size getter and use that (an old Firefox Set is not actually a Set if "size" is a non-getter).

Thanks for that perspective, my head is still in dilemma about what to do about it, how much to check (is a buggy Set not a Set?). Seems likely that there is a need to drop Object#toString checking for Map and Set and be more duck-typed. Maybe sleeping on it will clear my view.

Yes, Object#toString is not reliable whatsoever in an environment with Symbol.toStringTag, so it's best to avoid it except as an optimization in older engines.

Yeah, I was only using it where toStringTag didn't exist, but it didn't exist in the buggy Firefox. So this begs the question of how much of an implementation to test before you say "this is a Set/Map", sure I could require that es6-shim is loaded, but unlike es5-shim (which I fully recommend/require) these shims still feel like they are in their infancy, and some even require true ES5 environments. It feels a bit of a "between a rock and a hard place" situation.

es6-shim should still be used on every engine since there are tons of bugs in all of them with their implementations.

Based on what you've said, I am going back over all my work to add it in. It's going to throw up some issues I'm sure. :)

The only really reliable mechanism is to compile a list of bugs on each platform, and test for them individually.  That happens to be exactly what es6-shim is doing -- it then loads a shim to fix those bugs when it detects them.
But there are certainly ES6 features which are unshimmable. Our goal is that correctly written ES6 code which uses only the shimmable subset of ES6 will run correctly on every platform.  If you use unshimmable features we can't make any guarantees.  (ToStringTag is an unshimmable feature.)

I'm currently moving away from toStringTag checks in all of my code, and adding es6-shim to all projects. Often it means implementing more costly code, but nothing that I'm working on needs to be so performant. :)

Closing this, I'm very happy that the shim implements Map and Set as per spec, and that my isMap and isSet are happy. I look forward to a new release that includes the MapIterator and SetIterator changes that are sitting in the master. Thanks.

authors: Xotic750 cscott ljharb


text:
Added docker image creation

I added dockerfiles and instructions necessary to build a docker image containing:

JuptyerLab
Tomorec Kernel

In the build of the docker image, I use as input the current user's uid.  I did this in order to simplify the permissions issues that occur when writing to the host file system from within a docker container.
Not sure if this is the best solution, as it make the image specific to that user, but we can change this later and use a different method if needed.
Please test it out and see if it works for you!   I tested it myself and it works, but it really pushes my laptop to the limit in terms of resource usage.  It might be necessary to modify the analysis script further to avoid this.
#! Jason

I have updated the code, will make a new pull request

repo: paulscherrerinstitute/tomorec


text:
🛑 FIT-nl is down

In b044e30, FIT-nl (https://www.fit.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FIT-nl is back up in 931108b after 1 hour, 52 minutes.

repo: paulwolters/up


text:
essense --> essence

Typo in intro.md, "essense" should be "essence".

Thanks for the fix!

authors: abrhim chrishtr

repo: pavpanchekha/emberfox


text:
Laravel 9 - empty array on getPaymentMethods

Hello,
I'm integrating Paynow with Laravel 9 project / PHP 7.4.
public function availablePaymentMethods()
    {
        $client = new Client(config('paynow.api_key'), config('paynow.signature_key'), Environment::SANDBOX);
        try {
            $payment = new Payment($client);
            $paymentMethods = $payment->getPaymentMethods();
            $availablePaymentMethods = $paymentMethods->getAll();
            return response()->json($availablePaymentMethods);
        } catch (PaynowException $exception) {
            return response()->json('Error occurred', 400);
        }
    }

API returns 200, but it's content is only empty elements:
[
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{},
	{}
]

Http Client:
httpClient: Paynow\HttpClient\HttpClient {#499 ▼
    #client: Symfony\Component\HttpClient\Psr18Client {#503 ▼
      -client: Symfony\Component\HttpClient\CurlHttpClient {#506 ▶}
      -responseFactory: Nyholm\Psr7\Factory\Psr17Factory {#504}
      -streamFactory: Nyholm\Psr7\Factory\Psr17Factory {#505}
    }

Have you tried to call the REST API from the postman or curl for your credentials?

@emilleszczak2, calling API directly from postman returns data correctly.

I've made it this way:
public function availablePaymentMethods(): \Illuminate\Http\JsonResponse
    {
        $client = new Client(config('paynow.api_key'), config('paynow.signature_key'), Environment::SANDBOX);
        try {
            $payment = new Payment($client);
            $paymentMethods = $payment->getPaymentMethods();
            $availablePaymentMethods = $paymentMethods->getOnlyCards();

            $responseTable = array();
            foreach ($availablePaymentMethods as $availablePaymentMethod) {
                $responseTable[] = [
                    'id'                    => $availablePaymentMethod->getId(),
                    'type'                  => $availablePaymentMethod->getType(),
                    'name'                  => $availablePaymentMethod->getName(),
                    'description'           => $availablePaymentMethod->getDescription(),
                    'image'                 => $availablePaymentMethod->getImage(),
                    'status'                => $availablePaymentMethod->getStatus(),
                    'authorizationType'     => $availablePaymentMethod->getAuthorizationType()
                ];
            }
            return response()->json($responseTable);
        } catch (PaynowException $exception) {
            return response()->json('Error occurred: '. $exception->getMessage(), 400);
        }
    }

We can close the issue.

repo: pay-now/paynow-php-sdk


text:
Some entries disappear from collection page view table

Hello!
Bug Report
After I've added draft system to this collection, I've got a problem with view table of the collection:

12 entries from 14 don't appear in table:

But the view becomes ok if I sort with "-" by some field:

So this /pages?sort=-_status&page=1 will be ok and this pages?sort=_status&page=1 will lose 12 entries.
Other Details
Payload version: 1.5.9

For what it's worth, I was experiencing this issue and had to go all the way back to version 1.5.4 before it worked as expected.  There were several version in between 1.5.4 and 1.5.9 that did slightly different things.

Hey @Kikky and @joornby — this is now resolved and released in 1.6.1.
Note that there are some migration steps that you need to follow in order to get to the new version. See here:
https://github.com/payloadcms/payload/releases/tag/v1.6.1

@jmikrut , I've updated to 1.6.3.
After created new collection with such versions options, because I just need draft system:

And when I create new entry to this collection, edit it and click Publish - I get 1 version is found. If I edit it and click Publish again I will get - no versions found.  One more time - 1 version is found. One more -  no versions found ... etc.
I don't need versions, I just need draft system, but when a doc has no versions in DB when versions are enabled on collection I can't view them in collection's view table.

authors: Kikky jmikrut joornby

repo: payloadcms/payload


text:
Switching locale doesn't update field UI based on certain access

Link to reproduction
https://github.com/chrisvanmook/payload/commit/c0be6a12eb7bc17b906f88832253e9d28c0a1fe6
Payload Version
3.0.0-beta.60
Node Version
v20.11.1
Next.js Version
15.0.0-canary.58
Describe the Bug
When switching locale, and you have an access method (update) that should disable the field based on a language, it doesn't update the UI. Only after a full refresh the expected result is visible (see video).
https://github.com/user-attachments/assets/ed029167-fc44-4016-933e-e93af0486475
Reproduction Steps

Add code in reproduction url
Switch from english to NL
Note that the field is not disabled
Refresh
Note that the field is now disabled as it should

Adapters and Plugins
db-postgres

This will be fixed in the next beta release!

authors: chrisvanmook paulpopus


text:
How to clear previous user paypal data?

Example:
Step 0: Initial state
App User: nil
Paypal User: nil
Step 1: User A logs into the app
App User: A
Paypal User: nil
Step 2: User A logs into their Paypal Checkout
App User: A
Paypal User: A
Step 3: User A logs out of the app
App User: nil
Paypal User: A
Step 4: User B logs into the app
App User: B
Paypal User: A
Step 5: User B goes to Paypal checkout and is able to use User A's Paypal.
App User: B
Paypal User: A
And in iOS SDK, I can call Checkout.logoutUser()
how to logout user in android sdk???

@Oooooori apologies for the delayed reply.
The logout functionality is slated to be available in our next release.

Closing this issue as it's a duplicate of https://github.com/paypal/android-checkout-sdk/issues/99
The changes are already merged for programmatic logout. It will be in the next release.

authors: Oooooori saperi22 tdchow

repo: paypal/android-checkout-sdk


text:
can not detect paypal dialog closed event.

I can not find a close event callback when I manually close paypal dialog.

This is possibly related to #250  and #211

Are you using onCancel with the iframe modal? In that case, your issue is probably due to be released with #211

I've used, but no effect. I don't know if i'm wrong.

My situation is like this:
When I click the checkout button, our website will generate an order by showing a loading page and the loading page is also in paypal dialog. And now when I close the popup window I want to have a close callback to do some operations just like refreshing my checkout page.
This is our loading page:

After our loading page, there will show paypal's payment page

When I close the window of paypal's payment page, there will have a default event to jump to another page, But when I close the window in our loading page, there will nothing happened.

Looks like you're using the legacy v3.5 integration. If you want to use onCancel you will need to upgrade to the v4 button -- please see the docs at https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/advanced-integration/

thanks so much! I'll try it now.

authors: bluepnume danigomez yuuk

repo: paypal/paypal-checkout


text:
replace map with foreach

Thanks for your pull request.  Please review the following guidelines.

[ ] Title includes issue id.
[x] Description of the change added.
[x] Commits are squashed.
[ ] Tests added.
[ ] Documentation added/updated.
[x] Also please review CONTRIBUTING.md.

The change looks good. Just need help with some of the formalities:

Please file an issue for any change
Please edit your commit to include link or reference to the issue
The PR title should reference the issue (in form of #123)

Sorry for the inconvenience. We do this for traceability (as described in CONTRIBUTING.md). Thanks!

@akara Done! PTAL.

Thanks! Build is failing. Let me go take a look what's happening there. This should not be due to this change unless there is anything unexpected. I'll get back. No action on your side.

authors: akara thefourtheye

repo: paypal/squbs


text:
🛑 SIGAA is down

In 62562c6, SIGAA (https://sig.unb.br/sigaa/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SIGAA is back up in a7d2141.


text:
🛑 Departamento is down

In b92a3bb, Departamento (http://cca.unb.br/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Departamento is back up in dddba7f after 34 minutes.


text:
🛑 Departamento is down

In 175400f, Departamento (http://cca.unb.br/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Departamento is back up in 4644903 after 21 minutes.


text:
🛑 Departamento is down

In 1288f32, Departamento (http://cca.unb.br/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Departamento is back up in 609f089 after 12 minutes.


text:
iOS 10, xCode 8: Error in Success callbackId

Expected behaviour
Tell us what should happen.
Actual behaviour
Tell us what happens instead. Provide a log message if relevant
Error in Success callbackId: Sim1675580494 : TypeError: undefined is not an object (evaluating 'navigator.connection.type')
I'm seeing this behaviour on
Remove this hint: these checkboxes can be checked like this: [x]

[x ] iOS device
[ x] iOS simulator
[ ] Android device
[ ] Android emulator

I am using

[x ] cordova
[ ] ionic
[ ] PhoneGap
[ ] PhoneGap Developer App
[ ] Intel XDK
[ ] Intel App Preview
[ ] Telerik
[ ] Other:

Hardware models
Example: Samsung Galaxy S6, iPhone 6s
OS versions
Example: Android 4.4.2, iOS 9.2
I've checked these

[ ] It happens on a fresh Cordova CLI project as well.
[ ] I'm waiting for deviceready to fire.
[ ] My JavaScript has no errors (window.onerror catches nothing).
[ ] I'm using the latest cordova library, Android SDK, Xcode, etc.

So how can we reproduce this?
Provide the used components versions (cordova, ionic, etc).
Provide the steps to reproduce the issue.
Provide files, sources if available.

Thanks. Somehow my "cordova-plugin-network-information" got removed. I just added it again and there would not be an issue. Sorry!

repo: pbakondy/cordova-plugin-sim


text:
Tests for everything

This tests all the features we have right now that I could think of.
It also makes a fix for when the promise returns null, as I re-broke that in a previous commit.
So if this gets merged, can you republish a patch version.

This is great. :+1:

I released the patch as 2.3.1.

Doesn't seem to be on npm yet

Whoops. Sorry abut that. It should be now.
Just FYI, I ignored the tests and example directory on npm. I’m also in the process of setting up code coverage + https://coveralls.io https://coveralls.io/. I’ll probably finish that up in a couple of weeks when I have more time.

On Dec 6, 2015, at 3:01 PM, Thomas <notifications@github.com mailto:notifications@github.com> wrote:
Doesn't seem to be on npm yet
—
Reply to this email directly or view it on GitHub https://github.com/pburtchaell/redux-promise-middleware/pull/41#issuecomment-162347079.

authors: pburtchaell tomatau

repo: pburtchaell/redux-promise-middleware


text:
Add simple implementation of infinite list

Fixes #29 for all list views in the application

Codecov Report

Merging #41 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #41   +/-   ##
======================================
  Coverage    94.2%   94.2%
======================================
  Files          33      33
  Lines         569     569
======================================
  Hits          536     536
  Misses         33      33

Continue to review full report at Codecov.

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

authors: codecov-io pbylicki

repo: pbylicki/rfhub-new


text:
add a japanese translate on lockedMaster

Thanks for the so great app !! I love this app.
I added a japanese translate on lockedMaster.
Sorry about the messy commits history, becouse I screwed up on the line feed code.
TEST
I passed the test on local.
Executed 183 of 183 specs SUCCESS in 1 sec.

Thank.

🎉 Thanks a bunch for adding a level translation!!

🎉 Thanks a bunch for adding a level translation!!

authors: HosokawaR pcottle

repo: pcottle/learnGitBranching


text:
cant join rooms

Noooo!  I'm home and connect through my sprint phone hotspot. I can't get into rooms.
Turned off firewall. Your websocket link gives all "yes", looks fine.
The log:
2014-12-19 19:58:30,613 DEBUG[SoundBounce.WindowsClient.Program]: Initial startup: Main()
2014-12-19 19:58:30,694 INFO [SoundBounce.WindowsClient.SpotifyEnabledBrowser]: Cef version  initialized OK.
2014-12-19 19:58:30,701 DEBUG[SoundBounce.SpotifyAPI.Spotify]: Message thread running...
2014-12-19 19:58:36,814 DEBUG[SoundBounce.SpotifyAPI.Spotify]: api_version=12
2014-12-19 19:58:36,814 DEBUG[SoundBounce.SpotifyAPI.Spotify]: api_version=12
2014-12-19 19:58:36,814 DEBUG[SoundBounce.SpotifyAPI.Spotify]: application_key_size=321
2014-12-19 19:58:36,814 DEBUG[SoundBounce.SpotifyAPI.Spotify]: cache_location=C:\Users\Tony\AppData\Local\Temp\SoundBounce_temp
2014-12-19 19:58:36,814 DEBUG[SoundBounce.SpotifyAPI.Spotify]: settings_location=C:\Users\Tony\AppData\Local\Temp\SoundBounce_temp
2014-12-19 19:58:37,223 DEBUG[SoundBounce.SpotifyAPI.Spotify]: sp_session_preferred_bitrate() to 320k succeeded!
2014-12-19 19:58:37,284 DEBUG[SoundBounce.SpotifyAPI.Spotify]: libspotify > 00:58:37.284 I [ap:1752] Connecting to AP ap.gslb.spotify.com:4070
2014-12-19 19:58:37,285 DEBUG[SoundBounce.SpotifyAPI.Spotify]: libspotify > 00:58:37.285 E [c:/Users/spotify-buildagent/BuildAgent/work/1e0ce8a77adfb2dc/client/core/network/proxy_resolver_win32.cpp:215] WinHttpGetProxyForUrl failed
2014-12-19 19:58:37,374 DEBUG[SoundBounce.SpotifyAPI.Spotify]: libspotify > 00:58:37.374 I [ap:1226] Connected to AP: 193.235.203.114:4070
2014-12-19 19:58:41,900 DEBUG[SoundBounce.SpotifyAPI.Spotify]: libspotify > 00:58:41.900 I [offline-mgr:2084] Storage has been cleaned
2014-12-19 19:58:41,900 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:41,905 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:42,753 DEBUG[SoundBounce.WindowsClient.SpotifyEnabledBrowser]: From http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/JSXTransformer.js Line 318:  You are using the in-browser JSX transformer. Be sure to precompile your JSX for production - http://facebook.github.io/react/docs/tooling-integration.html#jsx
2014-12-19 19:58:42,951 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:45,587 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:45,592 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:46,943 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:47,040 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:48,542 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:49,084 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:50,110 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:50,223 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:50,887 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:51,570 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:52,235 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:52,917 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:53,638 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:54,359 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:54,938 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:55,688 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:56,397 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:57,030 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:57,386 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:57,846 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:58,147 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:58,458 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:58,924 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:58:59,129 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:59:00,917 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:59:01,024 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:59:02,186 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:59:02,353 DEBUG[SoundBounce.SpotifyAPI.Spotify]: spotify > metadata_updated
2014-12-19 19:59:03,156 DEBUG[SoundBounce.SpotifyAPI.Spotify]: libspotify > 00:59:03.156 I [offline-mgr:2032] 0 files are locked. 0 images are locked
2014-12-19 19:59:03,156 DEBUG[SoundBounce.SpotifyAPI.Spotify]: libspotify > 00:59:03.156 I [offline-mgr:2058] 0 files unlocked. 0 images unlocked
2014-12-19 19:59:03,887 DEBUG[SoundBounce.SpotifyAPI.Spotify]: Successfully closed libspotify session.

In the meantime, if someone finds themself locked out because they left a session running somewhere else -- as I seem to do every other day :angry: -- they can use the "Log out everywhere" button in their Spotify account overview https://www.spotify.com/us/accounts/overview/.

authors: Tonybyte bgod

repo: pdaddyo/soundbounce


text:
Use python setuptools & pip to distribute pdicfg_validate script

In GitLab by @jbigot on Jul 15, 2019, 08:02

Replaced by #153

closed

This is done for zpp, just need to copy now

reopened

repo: pdidev/pdi


text:
Which features are a available and which are not?

Maybe I'm blind or my browser renders it badly. From the main page:

In such a list I'd expect some checked check boxes and some uncheck check boxes. Which raises the quesiton what available?
Like (in Markdown):

[ ] unchecked
[x] checked

Hi @frankgerhardt, Thank you for pointing this out!
There's nothing wrong with your browser. We're just way behind with updating our documentation. :disappointed:
Current @poef, @ylebre, and I are hard at work trying to complete the implementation of milestones 4. (Social web apps).
Most of the other features are fully functional, we just never got around to actually checking those boxes. (Although the code still needs cleaning up and there might be some bugs caused by hard-coded values).
You can get a slightly more detailed idea of where we are by following our process in the Solid test-suite repo.
As our current focus is on the code, my estimate is that our documentation will remain out-of-date for another month or two.

Hi @frankgerhardt, Thank you for pointing this out!
There's nothing wrong with your browser. We're just way behind with updating our documentation. :disappointed:
Current @poef, @ylebre, and I are hard at work trying to complete the implementation of milestones 4. (Social web apps).
Most of the other features are fully functional, we just never got around to actually checking those boxes. (Although the code still needs cleaning up and there might be some bugs caused by hard-coded values).
You can get a slightly more detailed idea of where we are by following our process in the Solid test-suite repo.
As our current focus is on the code, my estimate is that our documentation will remain out-of-date for another month or two.

Fixed in 03c8e961772c324b4718e0e778a2a38054b3ef6d

authors: Potherca frankgerhardt

repo: pdsinterop/php-solid-server


text:
Add new Category AlertDialog deactivates wrong button when no text is entered

The cancel button is greyed out instead of the accept button when adding a new category.

@peanut-brother I can take this on

@peanut-brother Just finished a pull request addressing this issue. Let me know what you think

authors: garrettcollier peanut-brother

repo: peanut-brother/categorical-to-do


text:
⚠ Hartman Foundation has degraded performance

In 3e8752f, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 2528 ms

Resolved: Hartman Foundation performance has improved in 245fe9c.

repo: pearanalytics/uptime


text:
Examples for accountsChanged and chainChanged events

Hi @pedrouid ,
These examples might help newcomers like me to understand WalletConnect a little bit more.
I used the https://github.com/WalletConnect/walletconnect-test-wallet repo to test my changes.
Cheers,
Tamas

I pushed an extra commit to get the Checksummed address, isValid returned false for me in case of MetaMask.


text:
Add git tags and/or a changelog

Hello there :smile:
I tried to update erroz in one of our applications from 0.1.4 to 1.0.0 and it's really hard to find out which breaking change caused the major version bump. To me it's unclear which git commits were used to publish 0.1.4 and 1.0.0 to npm. Maybe you can make this a bit more clear :+1:
Ben

Sorry @benurb. That's something i wanted to start with the next release.
I think the breaking change was that i removed the toJSON function.
Additionally i added erroz.AbstractError for comparison and customizing.
The documentation on master is for the upcoming release, which i will release before christmas. Just ping me if you need help upgrading :)

Hey meaku :smile:
Ok, I'll just give it a try. I'll come back to you if I need help.
Thanks!
Ben

authors: benurb meaku

repo: peerigon/erroz


text:
🛑 API MERCADO PUBLICO is down

In 5a14b9f, API MERCADO PUBLICO (https://api.mercadopublico.cl/servicios/v1/publico/ordenesdecompra.json?fecha=30122022&CodigoOrganismo=7312&ticket=E1951384-BF88-4EE5-8C33-934680281626) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API MERCADO PUBLICO is back up in 2187fb0.


text:
🛑 Beyond.pl is down

In 41f576c, Beyond.pl (http://www.beyond.pl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beyond.pl is back up in f465fbb.

repo: pejotes/upptime


text:
Updates to Get started topic

Made the bullet list into paragraphs
Add links to other topics
Add examples of what you can do with search
Take a look at the next-to-last paragraph, in particular. I wasn't as clear on the meaning of some of the bullet points as I was reworking them.

In addition:

update the URLs in the reverse topic with correct formatting (changing YOUR_KEY to search=XXXXX and removing extra / in api/_key in URLs.
remove or fix TODO notes.

Also, why do the URLs have underscores in them?
For example: [/v1/reverse?api_key=search-XXXXXXX&point.lat=48.858268&point.lon=2.294471]

These changes are all good and the paragraphs are much better quality than the bullet points. I have a question though. For a very high level overview doc like this one (I think this will often be one of the very first things people who are new to Pelias read), is it useful to have some bullet points that can quickly be skimmed over to get an idea of what you can do with this thing you're reading about?

Good points. Thanks, @orangejulius, for giving it a read.
Let me come up with about a couple of concise bullet points of what Search does and how to get started. If we're calling it a "get started", it should tell me that info up front. That can they link to other topics.

Those bullet points don't have to go in this document, now that I think about it. I'd love to hear your ideas for the best place. Maybe we keep the new text here as is, and add the bullet points to the index page?

Going to merge this. I have some work to do on the index page to make the docs site consistent. Will see if the bullet points belong here or in the index file.

authors: orangejulius rmglennon

repo: pelias/pelias-doc


text:
Formatted stats.py, added some documentation.

Git is saying that I removed a line from config_default.txt. Not sure why, but it looks fine. Anyways, please let me know if you want to change anything with the documentation. It's pretty basic at the moment.

Thank you for your contribution! The documentation updates look great and are much appreciated. However, I have some concerns about the formatting changes. Currently, the project does not have a standard formatter set up, which might explain the discrepancies between the formatting in your PR and the formatting on other systems. It’s important to ensure consistency across different environments, so I suggest we establish a standard formatter as part of our CI process in a future update.
Regarding the changes to the configuration files, it would be best to remove them from this PR. Please rebase your branch to clean up those changes. In the future, be mindful to only stage (git add) the specific files or changes you intend to include in a PR.
Once these adjustments are made, I believe we can proceed with merging the documentation updates. We can address setting up a formatter and integrating it into our CI in a separate PR

Sorry about the unexpected close, I renamed the master branch to main which is why this closed automatically. Ive also made dev the default branch so please make new PRs on the dev branch instead of main (the replacement for master).
Since this closed automatically I don't see a way to reopen it, so if you'd like to just make a new PR on dev with the documentation changes we can continue from there.

That sounds fine! I'll open one soon.

authors: kurealnum morr0ne pennybelle

repo: pennybelle/pbfetch


text:
Add UIP-6: Noble Forwarding

Opening as draft pending discussion on forum: https://forum.penumbra.zone/t/uip-noble-address-forwarding/125

#10 is already claiming UIP-6; mind bumping to UIP-7?

authors: conorsch zbuc

repo: penumbra-zone/UIPs


text:
specification: file organization in protocol spec

Describe your changes
Several parts of the protocol are not specified, while being referred to in other parts of the documentation. We should remove these empty patches in our protocol spec, and use this PR as a guiding reference of what sections were removed as we periodically fill them in over time. @conorsch can you help better format the docs?
This references components X and Y in the ECC audit log. Auxiliary to this is component Z, which should probably be (but currently is not) captured here since they're also spec-related changes.
This also captures supplemental spec changes based on specific spec-related comments made in the audit.
Issue ticket number and link
Checklist before requesting a review

[x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

@redshiftzero this doesn't have an associated issue attached to it

this is a staging area for spec-related changes, and we'll focus on addressing the rest of the spec changes later this week once phase 2 is unblocked.

repo: penumbra-zone/penumbra


text:
chore: update cometbft version v0.37.5 -> v0.37.9

Describe your changes
Updates the recommended CometBFT version to the latest in the 0.37.x series, and also relaxes the language in the guide, to make clear that anything in 0.37.x is acceptable.
Issue ticket number and link
N/A
Checklist before requesting a review

[x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

docs changes and tweaks to deploy scripts, no application code changes.

I also tacked on a version bump to the recommended penumbra versions, to match 0.79.1, which went out today https://github.com/penumbra-zone/penumbra/releases/tag/v0.79.1


text:
Adding support for contextvars

Currently this package uses thread locals to maintain the logging context. However, that doesn't work for async code, especially ASGI servers (which may concurrently handle multiple requests with a single thread).
The way things like this are typically handled in the async world is through the use of contextvars. (They were added in 3.7, but there is a backport package for 3.6.)
Would there be any possibility of accepting a PR adding optional support for the use of contextvars to manage the logging context rather than thread locals?
I'm imagining something along the lines of adding a top level use_contextvars() call that would attempt to import contextvars (or the 3.6 backport), and if successful would replace the pylogctx.core.context threading.Local instance with a contextvars.ContextVar or similar.

Great suggestion. I need this functionality in my project

I'd definitely accept a PR that switches to contextvars :)
I'm also totally fine dropping support for old Pythons. Python 3.6 is still supported but only for a few months (23 Dec 2021). I think it's not unreasonable to imagine that 3.6 users will be stuck with the current version if we make a new one.
This should make the work easier to you :)

I just realized the original issue was old :D Sorry for the late answer !

authors: 124bit dmontagu ewjoachim

repo: peopledoc/pylogctx


text:
pipestat summarize: columns view should only show stats NOT objects

The columns should just show stats:

Currently, it is also showing objects (which doesn't make sense):

I spent some time on this but reverted my changes. It is a bit tricky because the summary table is tied to the column plotting (due to jinja template). I would need to take out all non-stats objects from the summary table. But these results are used here in the summary table AND for the individual record pages.
Basically, this might require more refactoring that I originally thought. Can probably tackle this issue during the same refactor as well: https://github.com/pepkit/pipestat/issues/150

This should now be solved with the above PR #182

repo: pepkit/pipestat


text:
K8SPG-430: Add labels to backup objects

CHANGE DESCRIPTION
Problem:
Labels not aligned for backup objects (repo sts, jobs, and repo PVC).
Solution:
Add missing labels
CHECKLIST
Jira

[x] Is the Jira ticket created and referenced properly?
[x] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[x] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[x] Is an E2E test/test case added for the new feature/change?
[x] Are unit tests added where appropriate?

Config/Logging/Testability

[x] Are all needed new/changed options added to default YAML files?
[x] Are the manifests (crd/bundle) regenerated if needed?
[x] Did we add proper logging messages for operator actions?
[x] Did we ensure compatibility with the previous version or cluster upgrade process?
[x] Does the change support oldest and newest supported PG version?
[x] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

demand-backup
passed

init-deploy
passed

monitoring
passed

operator-self-healing
passed

scaling
passed

scheduled-backup
passed

self-healing
passed

start-from-backup
passed

telemetry-transfer
passed

users
passed

custom-extensions
passed

We run 11 out of 11

commit: https://github.com/percona/percona-postgresql-operator/pull/578/commits/98519d6a16bbec9bb8cf75efe08c70e6c7b4f187
image: perconalab/percona-postgresql-operator:PR-578-98519d6a1

authors: JNKPercona inelpandzic

repo: percona/percona-postgresql-operator


text:
CLOUD-783 - Cleanup test cluster before deletion

CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Are the manifests (crd/bundle) regenerated if needed?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PS version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
failure

demand-backup
passed

gr-bootstrap
failure

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/359/commits/6ef395e25c546e3ff92044065331570abc69e237
image: perconalab/percona-server-mysql-operator:PR-359-6ef395e

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
failure

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/359/commits/6ef395e25c546e3ff92044065331570abc69e237
image: perconalab/percona-server-mysql-operator:PR-359-6ef395e

authors: JNKPercona tplavcic

repo: percona/percona-server-mysql-operator


text:
西楼

https://linux-learning.cn/self-talking/
锋言疯语  锋言疯语加载中，请稍等...       $.getScript("/js/gitalk_self.min.js", function () {         var gitalk = new Gitalk({             clientID: 'dd578d2d286850459126',             clientSecret: '3551db08e789d5

江湖几多雨，骤风晚驰疾。
束之高危阁，不得半日闲。
何妨典高楼，把酒尽余欢。
浮生三千日，有何不可堪

江湖几多雨，骤风晚驰疾。
束之高危阁，不得半日闲。
何妨典高楼，把酒尽余欢。
浮生三千日，有何不可堪。

《尽余欢》
江湖几多雨，骤风晚驰疾。
束之高危阁，不得半日闲。
何妨典高楼，把酒尽余欢。
浮生三千日，有何不可堪。

郭大路嘴里有一搭没一搭的哼着小调，曲调也许已流传很久，歌词却一定是他自己编的。
除了他之外，没有人能编得出这种歌词来。
“来的时候威风，去的时候稀松。来的时候坐车，去的时候乘风。来的时候铛铛响，去的时候已成空。来的时候……”
燕七忽然道：“你在唱什么？”
郭大路道：“这叫‘来去歌’，来来去去，一来一去，去的不来，来的不去。”
燕七忽然跟着他的调子唱到：“放的不通，通的不放，放放通通，一通一放。”
郭大路道：“放什么？”
燕七道：“狗屁。这叫放狗屁。”


text:
Use of a debug environment variable.

Instead of defining a couple of methods with the same name 'Debug' to enable
or disable the debugging output, borrow the same P6DOC_DEBUG environment
variable.
Example of usage:
% export P6DOC_DEBUG=true
% perl6 --doc=HTML ~/your_pod_file.pod
Tested on:
% perl6 --version
This is Rakudo version 2017.11 built on MoarVM version 2017.11
implementing Perl 6.c.

This would precompile the debug at whatever value P6DOC_DEBUG was at during module installation time and it won't change later on, even if P6DOC_DEBUG env var is changed. Change constant to my
https://docs.perl6.org/language/traps#Constants_are_Compile_Time

Sorry I pushed a wrong commit in a rush, applying my to constant.
I believe it is possible to cherry pick only 3689fa3.
I can provide a new pr if that is cleaner.

👍 Thanks!


text:
ETCD - Filter out locks from query results

According to the ETCD concurrency code directly https://github.com/etcd-io/etcd/blob/8ac44ffa5fcccc7928876be4682c07f50b5e3b7e/client/v3/concurrency/mutex.go#L114
The value of the lock seems to be "" empty string.
Thus I would like to filter empty values, hoping that it will prevent us from having this kind of issue in query all :
error decoding the value associated with the key '<queried-key>/<one-real-element>/3477f3fdab5002b': unexpected end of JSON input

It is probably not a good idea to check for the value to determinate if we encounter a lock or not. Despite the fact that I'm pretty sure that a lock value is empty string, one can simply set a real object with the empty string and would like to query it.
Probably a better approach would be to use leasing instead. Like if the object contains a lease, then it shouldn't be part of the result, but is there a case where we'd like to retrieve a real object (not a lock) with a lease inside ? I think not.
Another solution would be to not fail on Unmarshal issues, and continue. This is actually the better for me as currently we have a critical failure. You can currently make everything fail with that command etcdctl put <query key>/0 "". Because 0 will appears lexically at first result, and the first result being not parsable, it will fail and not make the rest

repo: perses/common


text:
put the variable in a sticky header when you scroll down

This PR fixed #576.
I slightly modified the variable component to made it. I hope you won't mind if it's modified like that.
Perhaps if you don't want to have this behaviour by default we could add a boolean to activate it.
So if someone want to use this component outside of perses it won't be bothered by this behaviour.
https://user-images.githubusercontent.com/4548045/198618810-053ad10c-26c7-42cf-bb30-8150433a9368.mov
/cc @saminzadeh
Signed-off-by: Augustin Husson husson.augustin@gmail.com

As a side note, when you change a variable value it re-draw everything and close every row opened. Perhaps there is something to fix around that. WDYT @saminzadeh ?

I think this looks great! My only question is how does this look when the Dashboard is embedded in another app where it's not full screen. I assume it should still work ok. We could always add a prop like sticky={true} if its an issue.

As a side note, when you change a variable value it re-draw everything and close every row opened. Perhaps there is something to fix around that. WDYT @saminzadeh ?

Yeah this is a known issue. I think we need to write some optimizations around when to render.

I think this looks great! My only question is how does this look when the Dashboard is embedded in another app where it's not full screen. I assume it should still work ok. We could always add a prop like sticky={true} if its an issue.

ah that's a good question. I have no idea, but yeah definitely adding a properties like you suggest should fix the issue if there is one.

For that matters, I have been told there is an even simpler way to have a sticky header. We just need to use the css directive position: 'sticky' (based on https://www.w3schools.com/howto/howto_css_sticky_element.asp) but somehow it didn't work. I don't know why, maybe there is a conflict with React MUI somehow.
Here what I tried :
      <Box display={'flex'} justifyContent="space-between" position={'sticky'} top={0}>
        <Stack direction={'row'} spacing={2}>
          {showVariables &&
            variableDefinitions.map((v) => (
              <Box key={v.spec.name} display={v.spec.display?.hidden ? 'none' : undefined}>
                <TemplateVariable key={v.spec.name} name={v.spec.name} />
              </Box>
            ))}
        </Stack>
      </Box>

even if I put position={'sticky'} top={0} in the previous box, it doesn't work too.

@sjcobb @saminzadeh I added the optional props variableIsSticky. By default, the variable list is not sticky. And it is explicitly set at true in the app.
Should be good to merge right ?
I noticed in others PRs, we started to complete the Changelog with unrelease section. Should I do the same ?

I added a changelog entry, we should be good to merge @sjcobb @saminzadeh

authors: Nexucis saminzadeh

repo: perses/perses


text:
text is not centered inside rings (d3 v4)

The text displayed inside the rings is not being centered properly for D3 version 4.  This is working for version 3.

fixed in https://github.com/personality-insights/sunburst-chart/pull/38

repo: personality-insights/sunburst-chart


text:
Spark does not start w/ only static file location set

I have just started learning about Spark with the intention of using it as a lightweight application server that mostly serve static files and occasionally use templates for pages with data. I created a simply main method in my application class as follows:
public static void main(String[] args) {
    staticFiles.location("/public");
}

When I start my application, it seems that Spark will not start and immediately exits with RC 0. However, if I add a route (e.g. using get() or even adding the route overview module, then Spark would ignite and start as expected.
I can also get the server to start by calling Spark.ignite() but according to the code comment I am only to call this method directly when websocket is used.
I am pretty sure that I'll add a route to my application eventually so this is not really a problem here. But I'd still like to know 1) If this is a bug, or 2) if it is not a bug, what is the correct way to get Spark to ignite/start when serving only static files.
Thanks.

I just added a get method inside so the server is listening.
import static spark.Spark.*;
public class FileServer {
    public static void main(String [] args){
        staticFiles.location("/public");
        get("/", (res, req) -> "hello world");
    }
}

Just spent a bit more time looking at the code, and the behavior seems to be by design. As with  webSocket(), staticFileLocation() or externalStaticFileLocation() must be called before init() is run for the first time. Meanwhile init() is called by any of the routing methods via addRoute(), so Spark is ignited properly whenever a route is added. Otherwise init() must be manually called in the correct sequence.
The requirement of method call sequence has been documented for the WebSocket case in http://sparkjava.com/documentation.html#websockets, but would be nice if the same can be mentioned in http://sparkjava.com/documentation.html#static-files. That means:

staticFileLocation() or externalStaticFileLocation() must be called before init() is called or routes are added
If using only static file and WebSocket, init() must be called manually.

Please consider this as a doc update. Thanks.

Added to docs (but not currently live)

authors: acwwat s-rajaraman tipsy

repo: perwendel/spark