Multiple dashboards broke

Describe the bug
Loading the Drives dashboard produces an error
To Reproduce
Steps to reproduce the behavior:

Open Grafana
Click Drive dashboard
Error (see screenshot)

Expected behavior
Table of drives
Screenshots

Operating environment (please complete the following information):

OS: [Raspbian]
Version [V1.13]

Seems to carry over to the Efficiency dashboard as well.

That's weird. These dashboards haven't changed with the latest update. It could be an issue with Grafana.

 If the latter is the case, what's your Grafana version?
Does it work with other browsers?

Docker images. It was working prior to the update. For what it is worth, here is the version Grafana v6.5.0 (24a5d2f).
Tried in Safari (desktop and mobile) and Chrome (mobile) - neither work. Same error.

I uploaded an alternative docker image that is based on an older version of Grafana. Could you temporarily change the docker-compose file to see if it works?
You'd have to change the following line:
  # ...

  grafana:
    image: teslamate/grafana:latest

  # ...

to
  # ...

  grafana:
    image: teslamate/grafana:1.13.0-6.3

  # ...

Can confirm that works. You likely already have this, but here is the Grafana version: Grafana v6.3.7 (f77a692)

I got the same issue when I got the latest and tried multiple browsers - it doesn't seem like a browser thing.
If it will help debug, here is the error (on the drives dashboard):
Object
state:"Done"
series:Array[1]
0:Object
error:undefined
request:Object
requestId:"Q100"
timezone:""
panelId:2
dashboardId:5
range:Object
timeInfo:undefined
interval:"20m"
intervalMs:1200000
targets:Array[1]
maxDataPoints:1920
scopedVars:Object
cacheTimeout:undefined
startTime:1574732970178
rangeRaw:Object
endTime:1574732970389
timeRange:Object
from:p
to:p
raw:Object

And can confirm after changing the image to v1.13.0-6.3 as suggested it is working. So it seems like a Grafana issue. Might make sense to get back to that image.
Also in the container log for grafana, I see the following two lines, but I am not sure if this is related to this issue or something else:

t=2019-11-26T01:49:41+0000 lvl=warn msg="phantomJS is deprecated and will be removed in a future release. You should consider migrating from phantomJS to grafana-image-renderer plugin." logger=rendering,
t=2019-11-26T01:49:41+0000 lvl=info msg="Backend rendering via phantomJS" logger=rendering,
t=2019-11-26T01:48:50+0000 lvl=info msg="Initializing InternalMetricsService" logger=server

Thanks.

All right, seems like some of the ARM-compatible Grafana docker images are still broken. I replaced the latest teslamate/grafana images with the previous version (v6.3.7). You can undo the changes made to the docker-composite files.
Thanks for your help @bahree, @cwanja.


chapter 8 filter-arrays.html example done filter not working.

chapter 8 filter-arrays.html example done filter not working.

Hi,
Could you provide some details on what is not working in this example?


Apply range headers to rpc

I believe this adds consistency for a very small cost.
Using the same mechanism to paginate the result of procedure calls makes it easier to reuse front end pagination code.

This will be really convenient for the client, and it didn't take much code either.
What do you think about adding a response range header as well? It would create more parity between tables and rpc if the rpc response included a Content-Range. See the tests in RangeSpec.hs for examples.

Oh sure, forgot about that! Will add tonight ;)

I believe it's ready for merging :D

@begriffs I just rebased after #503
Should be good to merge again ;)

Great stuff!


License Question

Hi, great template, thanks for making it!
I have a question about the license. I've seen a project (generated from this template) that changed the license to GPL 3. However, the MIT license present in the template explicitly states that it should be included in works derived from it.
My question is whether I can or can't change the MIT license to something else.
Best,
Luís

Uhhh, not a lawyer, but I think MIT is permissive, so that's fine fine. The requirement is that original license and any license notice in the files (which pamp doesn't really have) stays intact. So maybe you can just stuff the GPL 3 or whatever on top of the original MIT? I'm not sure what's best practice really!

So I googled about it and read a bit here. It seems that legally I should keep the template code MIT, but can license whatever I add with GPL. But would be a lot of work to do this correctly, as described here in 2.1 and 2.2.

The second link describes a file-by-file approach to licensing, but since pamplejuce only has a single license in the top directory, it may suffice to simply add the GPL on top of the MIT, like you said!


When taking prevAtx as positioning, need to check that prevAtx epoch is correct

Overview / Motivation
in the following code, need to check if b.prevAtx is in the correct epoch before using it as positioning.
Or drop this optimisation al together.
// GetPositioningAtx return the atx object for the positioning atx according to requested epochId
func (b *Builder) GetPositioningAtx(epochId types.EpochId) (*types.ActivationTx, error) {
	posAtxId, err := b.GetPositioningAtxId(epochId)
	if err != nil {
		if b.prevATX != nil {
			//if the atx was created by this miner but have not propagated as an atx to the notwork yet, use the cached atx
			return b.prevATX, nil
		} else {
			return nil, fmt.Errorf("cannot find pos atx id: %v", err)
		}
	}

The Task
TODO: Clearly describe the issue requirements here...
Implementation Notes
TODO: Add links to relevant resources, specs, related issues, etc...
Contribution Guidelines
Important: Issue assignment to developers will be by the order of their application and proficiency level according to the tasks complexity. We will not assign tasks to developers who have'nt introduced themselves on our Gitter dev channel

Introduce yourself on go-spacemesh dev chat channel - ask our team any question you may have about this task
Fork branch develop to your own repo and work in your repo
You must document all methods, enums and types with godoc comments
You must write go unit tests for all types and methods when submitting a component, and integration tests if you submit a feature
When ready for code review, submit a PR from your repo back to branch develop
Attach relevant issue to PR

The function calls GetPositioningAtxId(), which "returns a randomly selected atx from the provided epoch epochId".
You should not take any ATX from the previous ATX. Ideally you should 'build upon' you previous ATXs, as they should always have exactly one epoch of difference.
If there is no previous ATX in the previous epoch, then we need to take either the latest ATX in the previous epoch, or something with similar layer index to our ATX (so the difference would be of an epoch)

Obsolete.


feature requestion

I found one thing that was a little inconvenient about slowDown.
Consider the following:
adder = Add T_Int
adder4 = speedUp 4 adder
adder1 = slowDown 4 adder4
The input type signature of adder and adder1 are not the same
adder : T_Int -> T_Int -> T_Int
adder1 : T_Array 1 T_Int -> T_Array 1 T_Int -> T_Array 1 T_Int
So technically slowdown 4 $ speedup 4 is not the identity.  It would be nice if was.  However, this would require identification of when map 1 f can be safely replaced with f.  However, it's a little nuanced, since consider this case, where f initially begins with a map 1 ...
f = Map 1 (Add T_Int)
f1 = speedup 4 slowDown 4 f
And now f and f1 have the same signature.  So speedup 4 slowDown 4 on f is ID, but not on adder.
I suspect the answer is to say that speedup x slowdown x should be the identity if the program is in some canonical form.  That form should probably not contain unnecessary map 1 f's.

We had previously discussed assuming there was a pass that removed all map 1s that would remove


Create a readme file

This is an old project I did for fun to learn web development.
As a first issue I need to add a readme file to this repo.

I can do this

Any specific content you would like included?

Please add a short description with a picture/gif, contribute section and add this markdown for the contributors bot.

PR opened #3

@all-contributors please add @trybick  for 📖

https://github.com/all-contributors please add @trybick for doc


Default username/password for cluster example

Is there an existing issue already for your request/idea?

[X] I have searched for an existing issue, and could not find anything. I believe this is a new documentation enhancement to be evaluated.

What problem in the existing documentation this issue aims to solve?
user the example yaml to build a cluster:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cluster-example
spec:
instances: 3
storage:
size: 1Gi
I can not find username/password. What is it and How I can custom them
Describe what additions need to be done to the documentation
tell users the default username/password and teach How to custom them
Describe what pages need to change in the documentation, if any
No response
Describe what pages need to be removed from the documentation, if any
No response
Additional context
No response
Backport?
Yes
Code of Conduct

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

This is already documented. See:

https://cloudnative-pg.io/documentation/current/applications/
https://cloudnative-pg.io/documentation/current/bootstrap/#bootstrap-an-empty-cluster-initdb

Also, you might find useful this blog article that I wrote: https://gabrielebartolini.it/articles/2024/03/cloudnativepg-recipe-2-inspecting-default-resources-in-a-cloudnativepg-cluster/
I hope this helps.


ptrace() API support for Android

Everything is cross-compiled with official Android NDK toolchains. As such users can build from both Linux & OSX boxes (haven't tested Windows). Has been tested under a few Nexus (4, 5, 6, 10) Lollipop devices and emulator setups.
libunwind was a bit tricky in some places (and still is for x86_64 ABI), although all core functionality should be covered now. An alternative to manual patches, would be to fetch AOSP libunwind (which is supported by Android dev team), although that would require a lot of Makefile work to build as standalone and not as part of an AOSP build env.
x86_64 ABI is in the todo list, although I need to first resolve some AOSP qemu build issues and setup an emulator env before start investigating the libunwind issues.
Capstone is built with matching arch support. As such the overhead is minimal.
In case we want support for APIs < 21, a workaround for getdelim() usage should be coded as it's not present in Android libc (bionic) for older APIs. However, I don't think it's worth the effort.
I've also put some notes on the top of the doc/Android.md together here:
https://gist.github.com/anestisb/afb85fd90276acc786ab
Let me know in case you need additional comments or testing for certain bits.

btw I thought that Android CLA (signed long time ago) was covering all project contributions, but apparently it's not the case. So I've signed the other one too to get this covered.

Merged! Thanks for taking time and making this happen.


Typos in startDemo.sh: job-archive.tar.xz should be job-archive-dev.tar.xz

I found two typos in startDemo.sh:
tar xJf job-archive.tar.xz
rm ./job-archive.tar.xz

should be
tar xJf job-archive-dev.tar.xz
rm ./job-archive-dev.tar.xz

Thanks for the notice, and sorry for those obvious errors! It is fixed now.


Create MdcCoreModule for core library

Create MdcCoreModule. Provides idiomatic import of MdcTypography, MdcElevation and material-icon; eliminates the need for developers to import each individually.
MdcRipple service will be moved; it will not be a breaking change.

Just need to migrate MdcRipple before closing issue.


Upgrading to Production

StackOverflow posts suggest hitting a different loginApi endpoint to authenticate, and then getting a "base path" from that request. The included recipes default the base path to:
demo.docusign.net/restapi instead of using the returned value (which causes issues when upgrading to production)
Can we get some modified examples around to handle this new happy-path?

@csengineer13 We'll be adding examples soon to the unit tests and recipes, however please the note on the readme that describes some of this.  Specifically, right under the Usage section of the readme we have the following:

Authentication
Service Integrations that use Legacy Header Authentication
(Legacy Header Authentication uses the X-DocuSign-Authentication header.)

Use the Authentication: login method to retrieve the account number and the baseUrl for the account.
The url for the login method is www.docusign.net for production and demo.docusign.net for the developer sandbox.
The baseUrl field is part of the loginAccount object. See the docs and the loginAccount object
The baseUrl for the selected account, in production, will start with na1, na2, na3, eu1, or something else. Use the baseUrl that is returned to create the basePath (see the next step.) Use the basePath for all of your subsequent API calls.
As returned by login method, the baseUrl includes the API version and account id. Split the string to obtain the basePath, just the server name and api name. Eg, you will receive https://na1.docusign.net/restapi/v2/accounts/123123123. You want just https://na1.docusign.net/restapi
Instantiate the SDK using the basePath. Eg ApiClient apiClient = new ApiClient(basePath);
Set the authentication header as shown in the examples by using Configuration.Default.AddDefaultHeader

User Applications that use OAuth Authentication

After obtaining a Bearer token, call the OAuth: Userinfo method. Obtain the selected account's base_uri (server name) field.
The url for the Userinfo method is account-d.docusign.com for the demo/developer environment, and account.docusign.com for the production environment.
Combine the base_uri with "/restapi" to create the basePath. The base_uri will start with na1, na2, na3, eu1, or something else. Use the basePath for your subsequent API calls.
Instantiate the SDK using the basePath. Eg ApiClient apiClient = new ApiClient(basePath);
Create the authentication_value by combining the token_type and access_token fields you receive from either an Authorization Code Grant or Implicit Grant OAuth flow.
Set the authentication header by using Configuration.Default.AddDefaultHeader('Authorization', authentication_value)

@dannyrb Our unit tests have an example on how to update the base path. Let us know if you are still having issues.
https://github.com/docusign/docusign-csharp-client/blob/ngopala/v2.1.7/test/SdkTests/UnitTests.cs#L54


Update user-overrides.js

https://github.com/yokoffing/Betterfox/blob/master/user.js#L28

Removing pref in my next push: https://github.com/yokoffing/Betterfox/pull/113/files
Also, please note:
https://github.com/yokoffing/Betterfox/blob/9143e5db366a7ff27e8e986078c6884037a36eda/user-overrides.js#L1-L12

thanks!


location is not defined

Note
Before you submit your issue, make sure that:

You're using the latest version of Salesforce CLI.
You've searched both open and closed issues for related posts.
You've used the doctor command to diagnose common issues.
You understand that GitHub Issues don't adhere to any agreement or SLA.

If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

When attempting to run sf force apex test report -i <TEST_ID> the following error occurs:
Error (1): location is not defined
Steps To Reproduce

IMPORTANT
Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
We may close your issue if you don't include proper instructions.

Generate a project with sf project generate or fork dreamhouse-lwc.
Provide detailed step-by-step instructions on how to reproduce the issue.

Run an apex test job.
Grab the apex test job id
Run the above command with that id

Expected result

The test job information is retrieved
Actual result

This error is displayed.
System Information

Using zsh on mac
{
  "architecture": "darwin-arm64",
  "cliVersion"<EMAIL_ADDRESS>  "nodeVersion": "node-v18.15.0",
  "osVersion": "Darwin 23.0.0",
  "rootPath": "/usr/local/lib/sf",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.3.9 (core)",
    "@oclif/plugin-commands 2.2.28 (core)",
    "@oclif/plugin-help 5.2.20 (core)",
    "@oclif/plugin-not-found 2.4.3 (core)",
    "@oclif/plugin-plugins 3.9.1 (core)",
    "@oclif/plugin-search 0.0.23 (core)",
    "@oclif/plugin-update 3.2.4 (core)",
    "@oclif/plugin-version 2.0.1 (core)",
    "@oclif/plugin-warn-if-update-available 2.1.1 (core)",
    "@oclif/plugin-which 2.2.34 (core)",
    "@salesforce/cli 2.13.9 (core)",
    "apex 2.3.19 (core)",
    "auth 2.8.20 (core)",
    "data 2.5.16 (core)",
    "deploy-retrieve 1.19.0 (core)",
    "info 2.6.49 (core)",
    "limits 2.3.38 (core)",
    "login 1.2.35 (core)",
    "marketplace 0.3.0 (core)",
    "org 2.10.12 (core)",
    "schema 2.3.29 (core)",
    "settings 1.4.33 (core)",
    "sobject 0.2.11 (core)",
    "source 2.10.40 (core)",
    "telemetry 2.3.6 (core)",
    "templates 55.5.14 (core)",
    "trust 2.6.18 (core)",
    "user 2.3.36 (core)"
  ]
}

Additional information

Full error message:
{
  "code": 1,
  "context": "Test",
  "commandName": "Test",
  "message": "location is not defined",
  "name": "ReferenceError",
  "status": 1,
  "stack": "ReferenceError: location is not defined\n    at Object.parse (/usr/local/lib/sf/node_modules/faye/src/util/uri.js:36:36)\n    at klass.initialize (/usr/local/lib/sf/node_modules/faye/src/protocol/dispatcher.js:21:28)\n    at new klass (/usr/local/lib/sf/node_modules/faye/src/util/class.js:13:28)\n    at Dispatcher.create (/usr/local/lib/sf/node_modules/faye/src/protocol/dispatcher.js:180:10)\n    at klass.initialize (/usr/local/lib/sf/node_modules/faye/src/protocol/client.js:43:35)\n    at new klass (/usr/local/lib/sf/node_modules/faye/src/util/class.js:13:28)\n    at new StreamingClient (/usr/local/lib/sf/node_modules/@salesforce/apex-node/lib/src/streaming/streamingClient.js:39:23)\n    at AsyncTests.<anonymous> (/usr/local/lib/sf/node_modules/@salesforce/apex-node/lib/src/tests/asyncTests.js:77:33)\n    at Generator.next (<anonymous>)\n    at /usr/local/lib/sf/node_modules/@salesforce/apex-node/lib/src/tests/asyncTests.js:14:71",
  "exitCode": 1,
  "warnings": []
}

I have tried reinstalling sfdx and rebooting my machine with no effect.

@drd0013 are you able to repro the issue with a different org? can you get a sample repo to try replicate this locally?

@cristiand391 I did not have an error with another org so removing and reauthenticating the org did fix it. Thanks for the tip!


Bjorncs/sia backed http client

Introduce a wrapper for Apache httpclient to be used in clients that requires credentials from a ServiceIdentityProvider. Does not rely on the listener interface in ServiceIdentityProvider.
FYI @freva

@hakonhall PTAL


Uncaught TypeError: e.reframe is not a function

Hi
There is an issue with $ shorthand function.
window.$ is undefined in my case, instead window.jQuery works for me.
To fix this issue i did changed plugin code from,
if (window.$) {
     window.$.fn.extend({
       reframe: function reframeFunc(cName) {
         return reframe(this, cName);
      }
  });
}

To
if (window.jQuery) {
     window.jQuery.fn.extend({
       reframe: function reframeFunc(cName) {
         return reframe(this, cName);
      }
  });
}

Why not just use, reframe(el) & use plain javascript.

Its not handy to write javascript selector so prefer jQuery way.

@mohandere you can write the selector the same way b/c the javascript using document.querySelectorAll. https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll

@mohandere thanks again for your notes & time. V0.3.2 should work better for the use case you pointed out. 👌

@mohandere good catch on the zepto vs Zepto. I'm going to update that soon - next day or so. ~THANKS 🙏


U - Fix CSS linter errors: data.constituent_properties errors

For shorthand properties we've defined a new ingredient "data.constituent_properties". The linter will check that shorthand property pages correctly include this ingredient.
Acceptance criteria

[ ] There are zero errors reported by the linter for the "data.constituent_properties" ingredient, when run against https://developer.mozilla.org/en-US/docs/Web/CSS

According to the spreadsheet there are 58 pages that generate this error. However, this includes prefixed properties, some of which we might want to archive. So, as in all these stories, it makes sense to work on the unprefixed properties first, while we work out which prefixed ones we might want to archive.
In effect this error is because we have introduced a new mandatory section for all CSS shorthand properties. The section is named data.constituent_properties and its syntax is defined in the spec: https://github.com/mdn/stumptown-content/blob/master/project-docs/linter-spec.md#dataconstituent_properties.
The section is placed after the interactive example and before the "Syntax" section, as defined in the recipe for CSS shorthand properties: https://github.com/mdn/stumptown-content/blob/master/recipes/css-shorthand-property.yaml.
I've made an example here: https://wiki.developer.mozilla.org/en-US/docs/User:wbamberg/shorthand-property#Constituent_properties of what it might look like.

@wbamberg these are all done except for:

all, which we'vealready discussed.
-moz-outline-radius, which is a non-standard thing, and therefore we are probably going to archive it?

Do you want me to leave this open, or close and record the stragglers somewhere else?

Thanks for doing all these Chris!

@wbamberg these are all done except for:

all, which we'vealready discussed.

Yes, let's file a separate issue to update the linter for this case.

-moz-outline-radius, which is a non-standard thing, and therefore we are probably going to archive it?

I don't think just being nonstandard is a reason to archive something. I believe the general rule is that they have to be unavailable to web content in any browsers for at least 2 years (see also https://github.com/mdn/sprints/issues/3491). -moz-outline-radius is available to web pages, as the live sample shows.

Do you want me to leave this open, or close and record the stragglers somewhere else?

I'd like to keep this open until these 2 are addressed.

I've filed https://github.com/mdn/stumptown-content/issues/526 for dealing with all.

Nice one @wbamberg. Yup, I was a bit hasty on -moz-outline-radius — I've fixed that one too now.

As discussed in https://github.com/mdn/stumptown-content/issues/526, I've re-tagged all to be a normal property and removed the "Constituent properties" section. We now get zero "data.constituent_properties" errors and this story can be closed :).


IntelliSense to find matches in all open files including word suggestions

Feature Request:
Any vscode settings or extension that support  autocomplete to find matches in all open files?
like sublime one: https://github.com/alienhard/SublimeAllAutocomplete

@Vernando05 the symbol search in VS Code is accessible via Ctrl+T (or Cmd+T on Mac).

Symbol search is just for specific context/code, it's nice to have a code completion based on word that exist across files, in my case re-typing font-family value again and again is little bit annoying.

Ah ok now I understand.

Users of SublimeText know that this feature is a killer-one.
It's not a 'smart' autocompletion : just a completion with allow words existing in all open files, but it turns out to be deadly efficient.
It's the thing I miss the most in VSCode comparing with ST.

Well, previously I created vscode-less and vscode-scss to give users more autocomplete «Symbols» from all project files.
If you want this feature – I can create this plugin. This is very simple, but you want suggestions from all open files or from all project files?

@mrmlnc wow that's nice! 😮
I suggest feature comparison with https://github.com/alienhard/SublimeAllAutocomplete which is
the plugin. It's auto complete from all open files.
Would be nice to elaborate if auto complete from all project files is a) running fast enough to not slow down VSCode too much (or too much CPU?) b) if it is useful or too much (don't know, never had that feature in my editors) and c) make it maybe as option if you can? 😄
But auto complete on all open files would be first step 👍

I agree, autocomplete on all open files it is more than enough. I think can be confusing to have suggestions from all the files in the project :)
Usually when working on a feature I keep those 5/6 files open so autocompleting words from those would be very helpful.
And, as already said, It will be very helpful specially for css/html classes or other words in pseudo-code (templates, data files etcetc)

Agree with @NKjoep.
It's much better to complete with words in open files (as SublimeAllAutocomplete does), not with all project files, because it lets the user to decide the scope of autocompletion.
For exemple, with Sublime, I used to open a file with the model database definition, and an other one where I write my queries. So I can benefit from completion of db fields.

+1
I'm trying VsCode coming from sublime.. It's really a blocker for me. I'm really used to https://github.com/alienhard/SublimeAllAutocomplete

+1
This is a useful feature for those languages that lack auto-completion support, for example Lua.

+1
I shifted from sublime to vscode, I am really missing this feature.
https://github.com/alienhard/SublimeAllAutocomplete
It should suggest all keywords from open files (but not from whole project)

I just created: https://marketplace.visualstudio.com/items?itemName=Atishay-Jain.All-Autocomplete.
Can you all please try this out and leave feedback.

@atishay The plugin looks fantastic! For me it's just what I want. Thanks much!

Maybe a duplicate of #5312?

@atishay Thanks dude

+1
Recently I switched from Atom to VSCode and it is one of 2 things I miss in VSCode.

in Atom autocomplete also support in string but vscode do not supported.
for Example :
User.save()
   .then((userSaved) => {
        console.log('userSaved from userAuthentication', userSaved);
    })

atom suggest userSaved in both two places in log command but vscode only suggested after comma

Any news, on this ?

+1 from me. I really miss this feature. It is the last blocker for me to pull the trigger on VSCode! Please!
I have tried the plugin All AutoComplete for VScode, and it is just straight up broken...

👍


Typescript error from safe-web3-lib

Description
Typescript errors from safe-web3-lib
Environment

Safe Core SDK version: 1.3.0
Safe contract version: n/a
Environment: node.js / yarn

Steps to reproduce
use Web3Adapter in your code somewhere
import Web3Adapter from<EMAIL_ADDRESS>
run typescript checks:
yarn run tsc --noEmit --pretty

get this output:
node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.1.1/multi_send.ts:5:1 - error TS6133: 'BN' is declared but its value is never read.

5 import BN from "bn.js";
  ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.1.1/multi_send.ts:11:3 - error TS6133: 'PayableTransactionObject' is declared but its value is never read.

11   PayableTransactionObject,
     ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.1.1/multi_send.ts:14:3 - error TS6133: 'ContractEventLog' is declared but its value is never read.

14   ContractEventLog,
     ~~~~~~~~~~~~~~~~

node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.3.0/multi_send.ts:5:1 - error TS6133: 'BN' is declared but its value is never read.

5 import BN from "bn.js";
  ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.3.0/multi_send.ts:12:3 - error TS6133: 'NonPayableTransactionObject' is declared but its value is never read.

12   NonPayableTransactionObject,
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.3.0/multi_send.ts:14:3 - error TS6133: 'ContractEventLog' is declared but its value is never read.

14   ContractEventLog,
     ~~~~~~~~~~~~~~~~

Found 6 errors in 2 files.

Errors  Files
     3  node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.1.1/multi_send.ts:5
     3  node_modules/@gnosis.pm/safe-web3-lib/dist/typechain/src/web3-v1/v1.3.0/multi_send.ts:5

Expected result
There should be no errors during typescript checks.
Additional context
Is there any way for me to ignore these files during typescript checks?

I'm closing this issue as the mentioned files are autogenerated by TypeChain.


a question about the tracking part

Hello, I think your work is really fantastic.
But I am a little curious that why you use  SORT rather than the Deep SORT to realize the tracking mission?

Thanks you.
Because the Deep SORT needs additional training, the SORT can be used directly. And for this easy  job, the ability  of SORT is enough.


Org level 2 and 3 colors

Could org level 2 and 3 be different colors? Currently they are hard to tell apart.

Sure. Just pushed an update.

Thanks, that looks nice!


[Bug fix] commerce-sdk-react hooks missing API errors

Description

See https://github.com/SalesforceCommerceCloud/pwa-kit/issues/1659
The commerce-sdk-isomorphic errors are not being catched, causing the API errors missing from query.error. This PR checks if the error is in the form of a Response, if it is, then await the json response and throw it.
Before

After

Question: is this a breaking change?? 🤔
Types of Changes

[x] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

Removing a public function or component or prop
Adding a required argument to a function
Changing the data type of a function parameter or return value
Adding a new peer dependency to package.json

Changes

Serialize API response errors

How to Test-Drive This PR

npm start in test-commerce-sdk-react pacakge and go to the query error page

Checklists

General

[ ] Changes are covered by test cases
[ ] CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance
You must check off all items in one of the follow two lists:

[ ] There are no changes to UI

or...

[ ] Changes were tested with a Screen Reader (iOS VoiceOver or Android Talkback) and had no issues
[ ] Changes comply with WCAG 2.0 guidelines levels A and AA
[ ] Changes to common UI patterns and interactions comply with WAI-ARIA best practices

Localization

[ ] Changes include a UI text update in the Retail React App (which requires translation)

Should we do the same in useMutation.ts?
    const authenticatedMethod = useAuthorizationHeader(hookConfig.method)

Had a chat with @bendvc and we both agreed that maybe this change should be done at the commerce-sdk-isomorphic level.


WIP: Auth in 80 lines of code :-)

Attempt to do simple #19 without doing too much.
WIP!

Codecov Report

Merging #114 (1287594) into main (aab705f) will decrease coverage by 1.69%.
The diff coverage is 30.27%.

@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
- Coverage   65.10%   63.41%   -1.70%
==========================================
  Files          25       26       +1
  Lines        2247     2340      +93
==========================================
+ Hits         1463     1484      +21
- Misses        593      663      +70
- Partials      191      193       +2

Impacted Files
Coverage Δ

server/auth_sqlite.go
0.00% <0.00%> (ø)

server/errors.go
100.00% <ø> (ø)

server/server.go
51.56% <50.00%> (-0.49%)
:arrow_down:

server/cache_sqlite.go
67.93% <75.00%> (ø)

cmd/serve.go
65.35% <77.77%> (+0.94%)
:arrow_up:

server/config.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


In some cases wait_partitions does not work as expected

Initially found in https://github.com/modin-project/modin/pull/5713. Found while trying to use this function to wait for remote computation to finish for read functions.
  # at the moment it is not possible to use `wait_partitions` function;
  # in a situation where the reading function is called in a row with the
  # same parameters, `wait_partitions` considers that we have waited for
  # the end of remote calculations, however, when trying to materialize the
  # received data, it is clear that the calculations have not yet ended.
  # for example, `test_io_exp.py::test_read_evaluated_dict` is failed because of that

For Dask, this can be solved by making pure parameter False by default. The problem was also observed for ray and unidist.
It seems that if engines cache the result of a function call with the same parameters, then features pointing to the same object (or to a copy of it) should be returned. But now it turns out that the features are in the state of the end of the calculations, however, the calculations are actually still going on (very similar to a bug). Further research is needed.

The current workaround of materializing dtypes can be problematic: for example, if you load a dataset with a very large pd.Categorical that can't fit into memory of a single worker. This works fine in AsyncReadMode but not in the default, synchronous mode, because _ = query_compiler.dtypes will crash the worker.
This is obviously quite an edge case. However, I am a bit surprised that synchronous reading is the default; I see why it is necessary in the test suite but I can't imagine it is common to delete data files as soon as they have been loaded.


Provide a FileBasedGroupProvider

Now that we have GroupProviders we should add a default implementation.

A rules files could be structured like this:
{
   "users": [
      {
         "user": <pattern>,
         "groups": [group1, group2, ...]
      },
      {...}
   ]
}

If a user matches multiple pattern the set of groups would be the superset of all matching rules.

If a user matches multiple pattern the set of groups would be the superset of all matching rules.

This is something contrary to what we do in other places. Typically we traverse rules from top to bottom and first one applies, when no one applies then we raise an error.

@kokosing I agree that's easier to reason about.

This was done in #4493


Default colormap should be gray

I know this sounds boring, but once we add the viewing of subsets, it will be clear that the default colormap should be a grayscale one (so we can show the subsets in colors). We should leave all the other colormaps, but the default should be grayscale.

Solved, thanks!


Fix upgrade test

Explanation:

https://github.com/longhorn/longhorn/issues/6200#issuecomment-1610031861
https://github.com/longhorn/longhorn/issues/6200#issuecomment-1610274243

longhorn/longhorn#6200

Test result https://ci.longhorn.io/job/private/job/longhorn-tests-regression/4353/

cc @yangchiu @khushboo-rancher

@PhanLe1010 test result link seems broken and did you abort the https://ci.longhorn.io/job/private/job/longhorn-tests-regression/4353/ by mistake by any chance?

@khushboo-rancher https://ci.longhorn.io/job/private/job/longhorn-tests-regression/4353/ uses the wrong Jenkin pipline so I aborted it. The one https://ci.longhorn.io/job/public/job/master/job/sles/job/amd64/job/longhorn-upgrade-tests-sles-amd64/514/ is waiting to be run in queue

@mergify backport v1.5.x


nydus-test: don't fetch iostats per file metrics

The files' metrics have a large size ending up with uncompleted json string. The root cause why the buffer is so uncomleted is still in fog. Moreover, we are going to remove files's metrics in the future.
Signed-off-by: Changwei Ge<EMAIL_ADDRESS>

Aha, the dbs-uhttps has a limitation of message size, is it caused by that?

Aha, the dbs-uhttps has a limitation of message size, is it caused by that?

It's possible, however, due to de fact that metrics of all files' iostats might be removed in the future. Shall we just remove the test observations points?


Unable to continue generating code

Hi, could you give me more context? Any errors/logs?

Closing this issue due to inactivity.


Create 0.10 tag/release

This is really just an issue to communicate that we are intending the tag the next release shortly so we can start rolling it out during the NSLS-II August shutdown.
We should decide on a different communication forum/platform for this type of thing as the project grows outside of Brookhaven.

Perhaps gitter.im ?
On Aug 4, 2017 8:29 AM, "Stuart Campbell"<EMAIL_ADDRESS>wrote:

This is really just an issue to communicate that we are intending the tag
the next release shortly so we can start rolling it out during the NSLS-II
August shutdown.
We should decide on a different communication forum/platform for this type
of thing as the project grows outside of Brookhaven.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NSLS-II/bluesky/issues/724, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACLKMNH8zPOSKzsq7BUJ4rC-a4f1jrcGks5sUxyugaJpZM4Ott7w
.

@prjemian We have started using https://gitter.im/NSLS-II/DAMA. Some non-branded gitter.im room would be fine too. Do you have any set up already?


Add token sequence support to syntax level

Currently sequences of tokens can be parsed/printed using the many :: AbstractSyntax delta => delta alpha -> delta [alpha]. This mean that input stream will be disassembled to tokens and list of results will be constructed. Some high performance parser libraries (such as attoparsec) support specialized parsers when the result type of a parser matches the input type and only simple predicate should be checked (see attoparsec takeWhile and string). Invertible-syntax-poly can provide support for such functions by introducing it on class level and providing default implementation via many combinator. scan-like parser could serve as nice generalization.
This function will also speed-up printing by allowing to print predefined sequence of tokens instead of constructing lists.

Firstly performance tests should be created to proove that it will be any gain from this.


make_watershed_bem - IOError: [Errno 13] Permission denied: 'brain'

System:
Python 2.7.12
Ubuntu 16.04.1 LTS
MNE version 0.14.git
I have been running into a few problems with this function. Initially I had the same problem as #3274 where freesurfer was not being found/setup correctly. I thought this was fixed in 0.14 but I ran into the same issue. I manually modified the utils.py to setup freesurfer before it ran the command. That fixed the problem but I get this new problem, Permission denied, 'brain'
The following shows the error. I have editted a few things such as subject directory for privacy reasons.
Saving /SUBJECT_DIR/bem/watershed/ws
done
Triangle file: created by USER on Tue Oct 18 15:30:33 2016 nvert = 10242 ntri = 20480
Triangle neighbors and vertex normals...
Traceback (most recent call last):
File "pythonScripts/pipeline.py", line 208, in <module>
main()
File "pythonScripts/pipeline.py", line 169, in main
bem.make_watershed_bem(URSI, subjects_dir=MRISubjectDirectory, overwrite=True)
File "<string>", line 2, in make_watershed_bem
File "/usr/local/lib/python2.7/dist-packages/mne/utils.py", line 708, in verbose
return function(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mne/bem.py", line 1081, in make_watershed_bem
write_surface(s, surf['rr'], surf['tris'], volume_info=volume_info)
File "/usr/local/lib/python2.7/dist-packages/mne/surface.py", line 764, in write_surface
with open(fname, 'wb') as fid:
IOError: [Errno 13] Permission denied: 'brain'
I hope this gives enough information!
Extra information, I was getting these issues previously using an older system:
CentOS release 6.7
Python 2.6.6
MNE version 0.12
Upgraded system to get newer version of MNE but the problems still exist

If you do import pdb; pdb.pm() then p fname (then q to quit debugging) you can see what filename it was trying to write. Can you write a file to that directory yourself using e.g. touch /path/to/file?

I am not at the computer right now to check this. But when I had the problem on the old system it was trying to create a file brain. No file type or directory with it. Will confirm this tomorrow when I am back in!

/bin/sh: 1: source: not found

Hmm, this might be a shell difference. But before we go there...
Try using postmortem debugging (let it hit the error, then do import pdb; pdb.pm()) to getting the path to the file, and try to manually write something yourself at that location using the shell. If the fname is something short like brain, you can use p os.getcwd() to get the path where it's actually trying to write it, or better yet just do p os.path.abspath(fname).

apparently you don't have write access to the bem folder.
to me it's not an MNE problem

Okay, I will run the script as an admin. Will see if that helps. Eric. I am trying to get permissions to debug in the surface.py file which is why it is taking a while

In the SUBJECT_DIR/bem/watershed directory I have 4 files.
SUBJECTURSI_brain_surface
SUBJECTURSI_inner_skull_surface
SUBJECTURSI_outer_skull_surface
SUBJECTURSI_outer_skin_surface
in the bem.py file the lines being run before write surface is:
'surfs = ['brain', 'inner_skull', 'outer_skull', 'outer_skin']'
for s in surfs:
surf_ws_out = op.join(ws_dir, '%s_%s_surface' % (subject, s))
    surf, volume_info = _read_surface_geom(surf_ws_out, read_metadata=True)
    volume_info.update(new_info)****  # replace volume info, 'head' stays
    write_surface(s, surf['rr'], surf['tris'], volume_info=volume_info)
the values of surfs are not edited before write_surface and write_surface is trying to open them. As far as I am aware there is no file brain with no file type after it.

I am trying to get permissions to debug in the surface.py file which is why it is taking a while

You shouldn't need write permissions to do post-mortem debugging. Run the code in a python interpreter in interactive mode, and when you hit an error do pdb.pm(). Like:
>>> import pdb
>>> import mne
>>> mne.bem.make_watershed_bem('foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 2, in make_watershed_bem
  File "/home/larsoner/custombuilds/mne-python/mne/utils.py", line 682, in verbose
    return function(*args, **kwargs)
  File "/home/larsoner/custombuilds/mne-python/mne/bem.py", line 1022, in make_watershed_bem
    requires_mne=True)[:2]
  File "/home/larsoner/custombuilds/mne-python/mne/bem.py", line 1504, in _prepare_env
    raise RuntimeError('I cannot find freesurfer. The FREESURFER_HOME '
RuntimeError: I cannot find freesurfer. The FREESURFER_HOME environment variable is not set.
>>> pdb.pm()
> /home/larsoner/custombuilds/mne-python/mne/bem.py(1504)_prepare_env()
-> raise RuntimeError('I cannot find freesurfer. The FREESURFER_HOME '
(Pdb) p subjects_dir
None

Progress! os.getcwd() and os.path.abspath(fname) both returned the location of my last os.chdir location in my script +/brain which does not exist. I am passing the subject directory in the make_watershed_bem call. But it seems to be working in a folder that i previous redirected to.

So you're saying that at line 1081, in make_watershed_bem, your os.getcwd is something invalid / nonexistent? It should be trying to write to ./brain (where ./ refers to the directory from which you issued the command) but you're saying that instead it's trying to write to some other (probably read-only) directory? That would be a bug at our end, probably related to our handling of paths. There are some os.chdir calls in there. Probably we need to refactor those, or more easily add an os.abspath somewehre.
Does that summarize it?

If there are some os.chdir calls in make_watershed_bem then yes there must be a bug. Lets say i am using the directory test/directory/here/. I change to test/directory/here/ a few lines before calling make_watershed_bem.
Then make_wateshed_bem is failing with IOError: [Errno 13] Permission denied: 'brain'
where i would get:
os.getcwd()
test/directory/here/
os.path.abspath(fname)
test/directory/here/brain
my os.chdir() is a valid path for an operation i previously worked on. But your mne functions never seem to bring me out of that directory.

I just changed my directory to the specific subject directory before calling it and it worked! it seems that it does not correctly pick up the specified subject directory.

@WilliamCollishaw can you write a simple description of how to reproduce the error, and how to fix it? e.g. "run mne make_watershed_bem from ~/, it will fail. Run it from $SUBJECTS_DIR/$SUBJECT and it will pass"?

We now run this in a tempdir so this should be fixed


Do we have PubSubWebSocket sample similar to android sample?

We have AndroidPubSubWebSocket sample where we just need to configure
CUSTOMER_SPECIFIC_ENDPOINT = "<CHANGE_ME>";
COGNITO_POOL_ID = "<CHANGE_ME>";
MY_REGION = Regions.US_EAST_1;
Do we have similar sample in iOS? I'm unable to find!

Hi @SanyasiraoM,
Thanks for reporting to us.
We have IoTTemperatureControl Sample App here:
https://github.com/awslabs/aws-sdk-ios-samples/blob/master/IoTTemperatureControl-Sample/Swift/IoTTemperatureControlSample/
You can look up the Constants.swift to specify the configuration information:
https://github.com/awslabs/aws-sdk-ios-samples/blob/master/IoTTemperatureControl-Sample/Swift/IoTTemperatureControlSample/Constants.swift
The App connects via WebSocket here:
https://github.com/awslabs/aws-sdk-ios-samples/blob/master/IoTTemperatureControl-Sample/Swift/IoTTemperatureControlSample/ViewController.swift#L310
Please let us know if you have any further questions.

Thank you @kvasukib.


Corrected the wrong return type in gatt-client.md

GattCharacteristic.WriteValueAsync returns IAsyncOperation<GattCommunicationStatus> per doc https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.genericattribu

@eliotcowley: The PR passed the acceptance checklist. Please evaluate further and approve/complete the PR if appropriate. Thanks!

@sakamoto-poteko : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks @sakamoto-poteko, I've merged your changes and they should be live soon.


273 / Rename Dahl to Author

What is the context of this PR?
Trello

swapped logo
renamed "Dahl" to "Author" in relevant code that deals with meta title

How to review

check logo has changed
ensure page titles no longer contain "Dahl"

 Change product name Dahl to Author (0.5)


System prompt to be used with OpenAI models

Hi!
Thanks for the paper and this code. Really insightful for Text2SQL work!
I want to clarify if my understanding of the setup as described below is correct:
Given the parameter messages in a format as shown here: https://platform.openai.com/docs/api-reference/chat/create,
In your work for the role: system, the content is set as the default value of "You are a helpful assistant." and the content corresponding to role: user is what is modified using the different prompt templates like ODp and others.
OR
Do you change the content corresponding to role: system to some other value?

Hi,
Thank you for your interest in our paper and code. We're glad to hear that you found it insightful for Text2SQL work.
 Maybe, it will be more helpful to change the content both in role: system and role: user.

Thank you for the confirmation!


"Web forms — Working with user data" - Links problem

Request type

[ ] Correction or update

Details

Hello,
I am going through the "Web forms — Working with user data" (https://developer.mozilla.org/en-US/docs/Learn/Forms) section and there is an inconsistency with the left menu on the different articles in this section.
On some articles, like "Client-side form validation" (https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation), this section is on the left menu just under the "JavaScript — Dynamic client-side scripting" section.
On other child articles there are no links to this section on the left menu: For example on the "Web forms — Working with user data" (https://developer.mozilla.org/en-US/docs/Learn/Forms) there is no link to itself or any of its child articles on the menu.
Another example is the "Sending form data" (https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_and_retrieving_form_data) where there is no link to be found.
Hope this can be fixed quickly as this causes a lot of confusion,
Thank You

Hi there @ronygozes — this is because not all of the static pages have been regenerated since I updated the nav menu.
@escattone, please can you refesh everything under /Learn?

@chrisdavidmills This is done. I re-rendered all of the documents under (and including) /Learn, including all of the translations.

@escattone thanks so much! And now the sidebars look correct on the cited pages. I think we can close this one now.


Persistence of rabbitMq messages

The queue si already created "durable" and persist over rabbitMq server restart but messages in it doesn't by default.
We need to flag messages as persistent with delivery_mode.
source : https://www.rabbitmq.com/tutorials/tutorial-two-python.html

Hi, I'm kind of busy and indeed it would be great if you could do it, thank you ;-)

wrapping it up in https://github.com/RasaHQ/rasa/pull/5211


docs: attempt to fix table layout

Removes : from table formatting markdown
Fixes #153 🦕

In theory LGTM but @parthea or @busunkim96 - is this going to be overwritten by owlbot? (I don't think so because I didn't see a template in synthtool repo but I'd love a confidence check)

TBH, if there is a better path re: templates, that would be fine too! This issue just hit our out-of-SLO, so wanted to fix. I'm open to recommendations.


Fix the loss computation bug.

It seems the order of prior and post is wrong because in "rnns.py" the "rollout_representation" function returns "prior" and "post", but here we got "post" and "prior".

Awesome! Thanks for finding this!


Small bug

Hi,
I was looking for a color picker addon for Codemirror with support for Alpha channel too and I your colorpicker.
I was using previously https://github.com/enjalot/Inlet but it don't support Alpha channel transparency.
The bug:  I was trying your demo at https://store.jui.io/v2/view.php?id=58930a1a94976c9b562541a6
and I pasted this LESS/CSS code inside to see what will happen:
// The main font color controls the color of the text and the icons (font icons)
@main-font-color: #CCCCCC; // e.g. rgb(255, 255, 255) or #ffffff

// The default color of control backgrounds is mostly black but with a little
// bit of blue so it can still be seen on all black video frames, which are
// common.
@control-bg-color: #07141E; // e.g. rgb(255, 255, 255) or #ffffff
@control-bg-alpha: 0.7; // 1.0 = 100% opacity, 0.0 = 0% opacity

// The slider bar color is used for the progress bar and the volume bar
@slider-bar-color: #66A8CC; // e.g. rgb(255, 255, 255) or #ffffff
// The background of the progress bar and volume bar have a lined pattern that
// is created from a base64 encoded image. You can generate your own pattern at
// http://www.patternify.com/ then replace the value in the quotes with your own
@slider-bar-pattern: ~'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC';
// The color of the slider background
@slider-background-color: #333333;
@slider-background-alpha: 0.9; // 1.0 = 100% opacity, 0.0 = 0% opacity

The problem is that when I paste the code inside the editor the "code" is NOT processed so there is no swatch beside the color to edit them.
But if I put my cursor near a color code and I enter a space it will be parsed for this line and add the color swatch.
Sometime it did not work when I was editing/writing by hand the color code pasted.
Here's a Screencast to show you the bug since english is not my first language and look carefully at the last 25 seconds it will show that even when I input the color code "by hand" with the keyboard inside the  pasted code it did not work,
SCREENCAST:  http://screencast-o-matic.com/watch/cbeqFi6pgD
Best Regards :octocat:

@mikhoul
Thanks for your reporting.
paste is not yet implements.
I'll implement it soon and let you know.

@mikhoul
1.0.4 version is released for support paste event.
Use npm or bower.

update sample : https://store.jui.io/v2/view.php?id=58930a1a94976c9b562541a6


PAUSE_PATH should be configurable

As CNI plugins require the namespaces are viewable under /var/run/netns
In pinns, the parent directory was passed /var/run and then pinns created sub-directories for each namespace type based on name. we could do something similar

sorry I didn't catch this in reviews @saschagrunert . I have one more too I'll be submitting. I can take either if you're too busy

Working on it as part of https://github.com/containers/conmon-rs/pull/1067


Chocolatey package missing VERIFICATION.txt

The Chocolatey package is missing a VERIFICATION.txt file.
https://github.com/chocolatey/package-validator/wiki/VerificationFileMissing

Fixed by d505f18cf50b2f6ed417aacb5d3b89dac658b19c.


Bootstrap 4

Any news about bootstrap 4 resources?
The validators { } from fields object not works showing red label (when invalid) using bootstrap 4.
Thanks a lot.

I have the same questions. Any news?


[dart2wasm] Investigate switching to JS strings: What are perf/size implications?

Now that we have a js-string builtin proposal implemented and optimized in Wasm runtimes (e.g. V8), we should investigate switching to JS strings: What are perf/size implications?
If we cannot switch, we may look into having a bi-directional cache of strings, so repeated <dartString>.toJS will only do work on the first invocation and use the cached version afterwards. See also https://github.com/flutter/flutter/issues/159400

Thanks @mkustermann for filing this issue.
Since the source of this issue, here https://github.com/flutter/flutter/issues/159400, is auto locked (apologies, I was busy and did not have time to respond in time before it got locked), I added some replies to it here.

Looking at the code in flex_color_scheme/example/lib/shared/widgets/universal/syntax_highlighter.dart it's obvious why this is slow: For every token it scans, it uses a regexp to match it. And every time we match a regexp we copy the entire dart source (which is very large compared to the actual token) to JS. So effectively this is O(n^2) instead of O(n).

Yes I'm aware it is not performant. It is a copy of Google's short and simple syntax highlight code from the old Flutter Gallery app. As it only deals with very short code to highlight, it never needed to be very efficient.
Regardless, in Javascript and native VM builds it handles theme transitions well enough, and even manages to animate color changes in the highlight colors as theme changes, without any major issues. Sure it is not super fast, but works well enough. It thus felt kind of expected that if it worked fast enough in Javascript that it should run as fast, if not even faster, in a WASM build. It was surprising to learn that using WASM makes the entire app build not viable, since it is in a pretty critical part for the app in question. Which of course imo, makes it an interesting find.

One unrelated thing that sticks out most in the profile is e.g. ColorTools.nameThatColor, which is implemented by linear scan over colors and doing lots of math operates for each, see here. This seems not very ideal, better would be a cache (if it's called often for same color) or spacial index (to avoid linear scan), ...

Yeah not related, still yes I agree and 100% aware of this one being very sub optimal. A cache would help, but it would take some time to warm it up for it to have an impact. Every color in the RGB space, will get one of the 1565 named colors assigned as its "name", the one being "visually closest" to the actual named color value. Since we do not know which one it will be and the app can use any color in RGB space, potentially for a fully cached situation it would mean a map with every color in RGB space and its resulting name. We could thus even pre-compute the cache map for every color in RGB space, it would use a bit of memory, but it could certainly be done and would be fast to use. BTW, this naming tool is a port Javascript "Name That Color". It's usage is not at all critical for the app, but kind of fun that all colors get some name :)
That the color names lerp animate during theme transition is not at all important, just a fun thing, and while quite heavy in its current form, still works well enough, even in the WASM build.

At the moment it does however sound like that the only way we can make a viable WASM build of the Themes Playground is by removing/disabling features that work well enough already in JS and VM builds.
What could be done do is to only change the theme highlight colors once, after a theme change animation transition is complete, so they do not animate during the theme change. This is of course the kind of ugly transition I'm trying to avoid. It would not be so bad in light-to-light or dark-to-dark theme changes, but in light to dark and vice versa, it would look horrific.
Additionally, since there is no built-in event in Flutter for when a Theme transition has completed, I would have to make my own hacked trigger for that, doable, but not pretty.
Alternatively, we could of course also investigate other Dart code highlight packages that might not have this performance issue in a WASM build, when theme transition animating its code highlight colors. Who knows, I might find one. The point with the used approach was originally that, while it was a naive approach, it was short and did not require any package, and worked well enough for a few hundred lines of code, which was all that was needed.
The same solution, to only update once, after a theme transition, could of course also be used with the lerp animated "Name that color" changing names, and only update their names ones a Theme transition has completed. Here it would not matter so much visually, so for them it would not really matter and it would work well as an alternative to caching. That the names also lerp animate with the theme transitions was actually a bit of fun side effect when the name lookups were originally added. Since it worked well enough (still kind of does in WASM too), I left it in there, despite the perf hit.

@kevmoo, if you happen to drive by. Here is a little teaser. We got a pretty cool WASM-GC build going public soon. It has roughly 400kLoC Flutter code, plus even more C++ code compiled to WASM and using WebGPU with a custom renderer. Also interesting, on Android the newer Flutter builds will finally use Impeller/Vulcan as well, so we can use our newer custom renderer there too. More later ;)
We got some useful insights into the Flutter WASM builds via the issues I posted concerning the Playground, so the helpful assists and replies have been welcome there too :)

Again, thanks so much for digging in here @rydmike! Excited to see what you end up with.


Keyboard Manager: Remap keys and shortcuts to any Unicode character

In Keyboard Manager, it should be possible to remap keys and shortcuts to any Unicode character, even those that are not present in the current keyboard language.
For example, I would like to remap Ctrl+Shift+4 to € when using a U.S. English keyboard and language. Since the € is not present in this keyboard/language, there does not currently appear a way type € in the "Remap To" field. If I try to type the usual sequence Alt+0128, only the last key-press of the sequence "sticks" and it does not work.
As another example, I would like to remap Ctrl+Alt+C in my U.S. English keyboard to the Lithuanian letter č. If I try to enter č in the "Maped To" field by temporarily switching the language to Lithuanian in order to type č, the remapping does not work as desired. Instead, when I subsequently type Ctrl+Alt+C (once back in U.S. English), I get "2" instead of "č" (because the letter č on a Lithuanian keyboard is where the number 2 is on a U.S. English keyboard).
To me, the main point of using Keyboard Manager in this way is to avoid having to recall a Unicode sequence or change keyboard languages every time I want to insert a single foreign character, like € or č, when typing mostly in U.S. English. Please extend the current functionality by permitting the entry of any Unicode character in the "Mapped To" field, or by making the current cross-language behavior optional.
Thank you.

this is tracked in #3826


Add RBI for Ruby 3.1's Array#intersect?(other_ary)

This adds an RBI entry for Array#intersect?(other_ary), which was added in Ruby 3.1, as per https://bugs.ruby-lang.org/issues/15198.
other_ary is typed as T.untyped as it can be any object that implicitly converts into an Array (i.e. responds to to_ary).
Motivation

The method exists, so Sorbet should know about it. 😄
Test plan

I am unfamiliar with how RBIs are tested, if at all. I'm glad to add tests if appropriate.
I did check the docs and try out intersect? in the console and can confirm that in addition to any Array, it will accept objects responding to to_ary:
arbitrary_object = Object.new
def arbitrary_object.to_ary = [1, 2, 3]
[3, 4, 5].intersect?(arbitrary_object) # => true

However, it rejects object that don't:
[].intersect?(Object.new) # no implicit conversion of Object into Array (TypeError)
[].intersect?(nil)        # no implicit conversion of nil into Array (TypeError)

If you like, tests for RBIs are written like any other tests and placed in the test/testdata/rbi/ folder. The README describes how to create such testdata tests. We generally don’t require tests for RBI methods especially simple ones like this.


Reads take approximately 10x longer than BDF.jl

Using bdf_test.bdf file (https://github.com/beacon-biosignals/EDF.jl/blob/master/test/data/bdf_test.bdf) and the following MWE:
using BDF
using EDF
using BenchmarkTools

# BDF and EDF have very different APIs

get_ch1_using_BDF(fn) = readBDF(fn)[1][1,:]

get_ch1_using_EDF(fn) = EDF.decode(EDF.read(fn).signals[1])

test_filename = "bdf_test.bdf"

println("using BDF:")
@btime get_ch1_using_BDF(test_filename)
println("\nusing EDF:")
@btime get_ch1_using_EDF(test_filename)

I obtain the following:
using BDF:
  755.700 μs (305 allocations: 2.61 MiB)

using EDF:
  17.460 ms (146253 allocations: 2.87 MiB)

Hint: EDF is allocating once for every 3 bytes of data (this file has 24-bit data)

EDF is allocating once for every 3 bytes of data

Indeed, this seems to boil down to the read method from BitIntegers.jl allocating once per read. I'm not sure why just yet.
BDF.jl doesn't bother with maintaining the 24-bit on-disk representation and instead reads and converts directly to Int32, which does not incur any extra allocations.

I'm not sure why just yet.

Alignment padding


Upstream the fixes and improvements made by @mcharo

A list of improvements so far include:

A fix for patches in macOS
Added support for arm64
Initializes submodules in the download phase instead of the installation phase

If I'm missing anything, please do comment.
Also, please do comment on your success of fixing the macOS issues, I don't have the machines to test it.
I'll merge once I get approval from the author.

There seems to be an error regarding the patching procedure on Ubuntu.
Should I fork to fix it myself, or should I give you some time to figure that out?

I would love to see this merge.


My first commit to ios-exercises

Bloc assignment. Darktonian, please review.

Sorry, this is not correct.  See above where is says you want to merge into Bloc:master, it should say merge into bjwade1:.
You should delete this pull request and we can walk through it together.


V0.2.15

-
-

Issue
https://github.com/cycle-five/cracktunes/issues/XXX

Dependencies

Decisions

Codecov Report
Attention: 580 lines in your changes are missing coverage. Please review.

Comparison is base (ebcf6a8) 4.30% compared to head (f69e3d2) 4.10%.
Report is 2 commits behind head on master.

Files
Patch %
Lines

crack-core/src/handlers/event_log_impl.rs
0.00%
121 Missing :warning:

crack-core/src/commands/music/play.rs
0.00%
105 Missing :warning:

crack-core/src/handlers/event_log.rs
0.00%
102 Missing :warning:

crack-core/src/db/guild.rs
0.00%
67 Missing :warning:

crack-core/src/handlers/serenity.rs
0.00%
52 Missing :warning:

crack-core/src/guild/settings.rs
0.00%
48 Missing :warning:

crack-core/src/commands/settings/set_prefix.rs
0.00%
17 Missing :warning:

crack-core/src/commands/admin/unmute.rs
0.00%
15 Missing :warning:

crack-core/src/commands/admin/mute.rs
0.00%
13 Missing :warning:

crack-core/src/commands/admin/random_mute_lol.rs
0.00%
8 Missing :warning:

... and 7 more

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #125      +/-   ##
=========================================
- Coverage    4.30%   4.10%   -0.21%
=========================================
  Files          56      58       +2
  Lines        3388    3727     +339
=========================================
+ Hits          146     153       +7
- Misses       3242    3574     +332

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Orientation portrait => landscape bug on Coordinates

Version

Phaser Version<EMAIL_ADDRESS>

Operating system: Windows 11

Browser: Opera GX ( but i don't think it's browser specific)

Description

I try to develop a game in landscape only, I think there's a bug when starting to portrait going into landscape (using resizing game scale mode)
I start in portrait mode (using browser built in phone emulator in console), then i switch to lanscape mode using the "rotate" button, on rotating, if it's in landscape mode, my phaser scenes starts another one, but the logo that should be displayed in the center, doesn't appear (even tho the console log after displaying the logo appears, meaning it's a coordinates issue, the scene still works fine)
what makes me think it's a bug is that if i directly start in landscape (so no resizing), the logo is in the right place, everything works, even if i rotate as much as i want after.
my resize function is only about setting the right coords for the logo and updating world boundaries (see code below)
I also got a similar bug not long ago using the same method, a game i made trying to do some adaptative desing, where going from landscape to portrait worked well to resize and replace every object, image, etc... But not starting from portrait to landscape, where every resizing failed it's job . (even going back from landscape to portrait then landscape worked, it's the starting in portrait only that bugs)
Example Test Code

i use in the code a pleaserotate.js file made on a MIT license jsut to display a "rotate your screen" message if it's in portrait, you can get rid of it, since the rotating listener is made by phaser, it's just graphical and does not take part in this bug.
i made a repo for you to look at the code :
https://github.com/M3K0PZ/BugReport_phaser
Additional Information

I fixed a bug with the orientation check today that will resolve this. Sometimes the orientation change event would fire after the Scale Manager had refreshed, causing it to fail to update the bounds and orientation settings. Now, an orientation event will directly trigger the Scale Manager refresh, meaning all values should be immediately correct. This is now in the main branch and will be part of v3.80 release.


Console & My Account doesn't get logged out when the token is revoked.

Describe the issue:
When the token is revoked, portals are not getting logged out and can observer multiple error notifications on the UI.
How to reproduce:

Log in to My Account or Console.
Revoke the access token using the revocation endpoint.
Try to navigate inside the application.
Observe the UI error notifications and network failures.

Expected behavior:
Portal should be logged out successfully.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS 5.11.0-beta5
OS: Mac
Database: H2
Userstore: LDAP

Related https://github.com/wso2/product-is/issues/10371


chore(deps): bump https://github.com/jenkins-x/jx-cli to 3.0.302

Update jenkins-x/jx-cli to 3.0.302
Command run was ./promote/main

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign macox
You can assign the PR to them by writing /assign @macox in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gke
d06c42acc1d8850af4964d4c7e9c0e4fdbdd7f97
link
/test gke

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.


Update and rename red-hat.yml to redhat.yml

Adds or updates the following companies, events, or universities:

Checklist
Company updates

[x] I have put the most recent relevant date in the "Last Update" column
[ ] I have linked to the article about the change, not the company's homepage (Please put N/A if there is no public post)

Event updates

[ ] I have linked to the article about the change, not the event's homepage

University updates

[ ] I have linked to the article about the change, not the university's homepage

Got a wrong understanding from #819. Sorry - reject this PR, please, @drewbrew

It's all good. Thanks for addressing the issues!


adding testcases for ap2 and ap3

Adding examples for AP2 and AP3 yosys synthesis

@mkurc-ant Yes initial test to validate if yosys is synthesizing . later i will add the golden edif as well.
I see that the Travis is failing: https://travis-ci.com/github/QuickLogic-Corp/yosys/jobs/431090517 , but does not look like its due to the changes from this !

@kkumar23 Ok.


Investigate gas estimation with large amounts of gas

A user on Discord is reporting gas estimation issues when fulfillment uses a large amount of gas:

for this kind of behavior, you must keep the gas of the fulfillment less than 1.6M. the problem is that; when the estimated gas increases, the estimation gets a little less than what the transaction uses.

I don't think it's you guys problem because i've checked the airnode code and you guys are doing the estimation like everybody else does, but you can just start out by creating an fulfillment that has like 2M gas

As a note, the user reporting this seems to be using base-sepolia-testnet
https://sepolia.basescan.org/tx/0xff1400c4eb0fbcede0b01a456060f3702b0ae4504268d29fdcf44a8359671029#eventlog

As a note, the user reporting this seems to be using base-sepolia-testnet
https://sepolia.basescan.org/tx/0xff1400c4eb0fbcede0b01a456060f3702b0ae4504268d29fdcf44a8359671029#eventlog

The problem does not only happen in Base Sepolia, It also happens in Ethereum Sepolia as well.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>
contract MockedRequester is
    Ownable
{
    address internal _airnodeRrp;
    address internal _airnode;
    address internal _sponsorWallet;
    bytes32 internal _endpointIdUint256;

    event Requested(bytes32 requestId);

    constructor() {}

    function setSettings(
        address airnodeRrp,
        address airnode,
        address sponsorWallet,
        bytes32 endpointIdUint256
    ) external onlyOwner {
        _airnodeRrp = airnodeRrp;
        _airnode = airnode;
        _sponsorWallet = sponsorWallet;
        _endpointIdUint256 = endpointIdUint256;

        IAirnodeRrpV0(_airnodeRrp).setSponsorshipStatus(address(this), true);
    }

    struct Request {
        uint256 fromId;
        uint256 toId;
        uint256 timestamp;
        bool hasReferral;
    }

    struct Response {
        uint256 rawSeed;
        uint256 timestamp;
        bool hasReferral;
    }

    function requestUint256(uint256 tokenIdCount) external onlyOwner {
        bytes32 requestId = IAirnodeRrpV0(
            _airnodeRrp
        ).makeFullRequest(
            _airnode,
            _endpointIdUint256,
            address(this),
            _sponsorWallet,
            address(this),
            this.fulfillUint256.selector,
            ""
        );

        _expectedRequests[requestId] = Request(0, tokenIdCount, block.timestamp, false);

        emit Requested(requestId);
    }

    mapping(bytes32 => Request) private _expectedRequests;
    mapping(bytes32 => Response) private _requestToResponse;
    uint256 private _totalProbability;

    function fulfillUint256(bytes32 requestId, bytes calldata data) external {
        // validate request
        Request memory seedRequest = _expectedRequests[requestId];
        if (msg.sender != _airnodeRrp) {
            revert();
        }

        // decode seed
        uint256 rawSeed = abi.decode(data, (uint256));

        // set request's response
        _requestToResponse[requestId] = Response(rawSeed, seedRequest.timestamp, seedRequest.hasReferral);

        // iterate over token ids
        for (uint256 i = seedRequest.fromId; i < seedRequest.toId; i++) {
           _totalProbability += (rawSeed ^ i) % type(uint32).max;
        }
        delete _expectedRequests[requestId];
    }
}

You can use this contract to test out the fulfillment as I did. This is the mocked version of how my actual fulfillment is happening.

@tarik0 - what sorts of values are representative for your tokenIdCount?

@bbenligiray / @Siegrift  - I spun up a local Airnode and local hardhat network, deployed the contract (with a few slight variations), and tested increasingly large tokenIdCount values, which are critical to the gas consumption as this value dictates the loop iteration count in the fulfillment function (seedRequest.toId). Gas estimation was fine for values of 500 and 1000 as shown by the following Airnode DEBUG log snippets, respectively:
INFO Gas limit is set to 554767 (AirnodeRrp: 41995 + Fulfillment Call: 512772)
INFO Gas limit is set to 955425 (AirnodeRrp: 42019 + Fulfillment Call: 913406)
However, when I tried 2000, it failed due to a timeout, and the source of the error was here:
https://github.com/api3dao/airnode/blob/228d91d7fd08f370dd852787c8eae1174d84aefa/packages/airnode-node/src/evm/fulfillments/api-calls.ts#L188-L196
indicating that there is a timeout occurring when trying to estimate the fulfillment call overhead. Full logs here:
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] DEBUG Attempting to estimate required gas to fulfill API call for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84... Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] DEBUG Attempting to estimate AirnodeRrp overhead to fulfill API call for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84... Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] DEBUG Attempting to estimate fulfillment call overhead to fulfill API call for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84... Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] ERROR Fulfillment call overhead estimation failed for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84 with Error: Operation timed out Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] ERROR Error: Operation timed out
2024-05-21 00:10:14     at createGoError (/usr/local/share/.config/yarn/global/node_modules/@api3/promise-utils/build/cjs/index.js:49:30)
2024-05-21 00:10:14     at /usr/local/share/.config/yarn/global/node_modules/@api3/promise-utils/build/cjs/index.js:112:16
2024-05-21 00:10:14     at Generator.throw (<anonymous>)
2024-05-21 00:10:14     at rejected (/usr/local/share/.config/yarn/global/node_modules/@api3/promise-utils/build/cjs/index.js:6:65) Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] DEBUG Attempting to fulfill API call for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84... Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] INFO Submitting API call fail for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84... Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
2024-05-21 00:10:14 [2024-05-21 07:10:14.791] INFO Transaction:0x6a0a56b5188c4b62e7af3ff6b594886e8f38da44cadd3a6f0050588337fc43ae submitted for Request:0xe26cb0ec67ecbbd1fad28023b6e8715e7725c7f7561abfc8fcac94921e1a1f84 Coordinator-ID:161e98b7836ea821, Chain-ID:31337, Provider:exampleProvider, Endpoint-ID:0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4, Sponsor-Address:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

@dcroote The amounts you've entered are almost the same as mine. I also had problems with more than 500 token IDs.
I bet the simulation gets timed out since the transaction flow gets bigger but I don't know why this suggests a gas limit instead of throwing some error.

I offered @tarik0 a 1 ETH bounty if he can prototype a solution that gets rid of the unexpected gas limit estimation discrepancy with larger fulfillment transactions, he's currently looking into it

Certainly! Here's a refined version of your GitHub comment:

Issue: Inaccurate Gas Estimation for RRP Fulfillments
Background
Our RRP fulfill gas limit is determined by summing two eth_estimateGas RPC calls:

Dry Run Simulation
Fulfillment Address Fulfill Call

In theory, this sum should slightly overestimate the actual gas usage, ensuring that the fulfillment won't revert due to an out of gas error. This approach works adequately for fulfillments requiring less than approximately 1.5M gas. However, for more extensive fulfillments, the gas estimation proves insufficient.
Investigation
Initially, we suspected some OPCODE costs were missing from our calculations. Using Tenderly, I analyzed the fulfillment transactions. Upon comparing the dry run transaction with an empty RRP fulfillment transaction, I identified that the calculation missed an SSTORE (2,900 gas) opcode. Nonetheless, this was not the only discrepancy, as the gas difference varied across transactions of different sizes (10K, 20K, 30K).
We considered adding a fixed or dynamic gas buffer but opted for a deeper investigation. To trace the transactions, we employed debug_traceCall and debug_traceTransaction. Due to the absence of an archive Geth node with the debug API enabled, and Alchemy's restriction to the callTracer, we simulated the transactions using a local Hardhat environment that forks the Sepolia testnet.
Findings
After comparing the dry run + fulfill transaction with the airnode rrp fulfill transaction, I discovered an additional gas cost of 3,238. Adding this extra gas to the estimation resolved the issue.
Upon informing @bbenligiray, I commenced testing the extra buffer on Base Sepolia, but it failed due to the missing gas not being entirely accounted for (tested with 10K, 20K, and 30K). This discrepancy may be due to differences in transaction flow computations between Hardhat and the mainnet. The only definitive way to confirm this is by conducting the same tests on a live Sepolia or Base Sepolia archive Geth node that permits debug namespace API calls.
The simplest solution would be to pass the gas limit as a parameter or use a dynamic gas buffer within certain boundaries to prevent the revert issue.
For detailed traces and comparisons, you can refer to:

Fulfillment Transaction Inspection
Simulation Repository
Sepolia Test Results

I've encountered an issue where gas estimation for the fulfill function using the RRP contract consistently results in an out of gas revert, even when trying to estimate gas as follows:
airnodeRrp.estimateGas.fulfill(
  request.id,
  request.airnodeAddress,
  request.fulfillAddress,
  request.fulfillFunctionId,
  request.data.encodedValue,
  request.data.signature,
  {
    ...options.gasTarget,
    nonce: request.nonce!,
  }
);

Despite using gas estimation, the transaction still fails with out of gas (see transaction: Sepolia BaseScan). Since the estimated and the actual transaction should have similar operations and gas costs, the issue might lie in the RPC estimation rather than the opcodes themselves.
The best workaround could be implementing a dynamic gas buffer with set boundaries to avoid these out of gas reverts.


External IP Error Handling - window clipping

Hi, I have a similar issue.  See attached screenshot...

I am behind a corporate firewall and guess that where you are going to get the external IP is being blocked....

Ah, that makes a lot of sense actually! I'll add something to make sure that the IP doesn't clip outside the gadget, and I'll add an option to hide the external IP for those who can't use it.

Sound good, thanks.
Just switched from Gadgets to MondernGadgets as your disk meter works better (less cpu overhead) and it will also show network drives.  Nice work!
Regards,
Stephen
P.S. noticed the cpu meter has problem reporting clock speed on one i5 laptop with the weird Intel Turbo clock speed.  Known issue with windows, so not specific to your implematation.  Can't install hwinfo to 'fix' it as no admin rights an that particular system.  Are you aware of any tweaks in Rainmeter to get correct clock speed for this Intel issue?
On Jan. 6, 2020, 11:20 a.m., at 11:20 a.m., raiguard<EMAIL_ADDRESS>wrote:

Ah, that makes a lot of sense actually! I'll add something to make sure
that the IP doesn't clip outside the gadget, and I'll add an option to
hide the external IP for those who can't use it.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/raiguard/ModernGadgets/issues/185#issuecomment-571203755

I am behind a corporate firewall and guess that where you are going to get the external IP is being blocked....

You can correct this by changing the URL of the provider (you need to edit the skin).  By default, ModernGadgets uses https://api.ipify.org/ which usually works, but if your corporate firewall blocks this, you can change to another.
One that is almost guaranteed to work is https://checkip.amazonaws.com.


how can i find the hidden stub after hiding it?

the question is in the title.

Its in the same folder, just hidden. To unhide the stub: open cmd in the folder and type attrib -s -h <filename>. Replace filename with your stub name.

ight thanks, does deleting the stub also causes the startup run to not work?

thr startup file is saved somewhere else so it would not affect it.

where's the startup file then?

https://github.com/Blank-c/Blank-Grabber/issues/55#issuecomment-1221999366

ahh gotchu, does this make the file to run on the victim's PC but not mines? cause ykyk, i don't wanna risk leaking my own info using the webhook.

ahh gotchu, does this make the file to run on the victim's PC but not mines? cause ykyk, i don't wanna risk leaking my own info using the webhook.

wdym??

If you are saying that as soon as you create the grabber, it automatically run on your pc, then I'd say, no thats not the case. It will not run automatically as soon as you build it. You can run it yourself if you wanna test.


[samplecode][Prepare][1/2]Add ResourceName map into ClassComposer prepare for the samplecode implementation

In order to compose default value in the sample code. We require ResourceName maps pass down to the SampleCodeComposer. See the reference at #573 use case

Is this PR still needed, since we're no longer adding the map to the interface?

In my opinion, yes. This PR is mainly for add resourceNames map into GapicClass where it is prepare work for the rest implementation.

Could we please change the PR's title? Also, can we include this changes with the PR that needs it, since the motivation for this change will not be clear to future readers?

I changed the PR's title. But feel free to change if you have better naming. Thanks a lot.

Also, can we include this changes with the PR that needs it, since the motivation for this change will not be clear to future readers?

Could we merge this into the PR that actually uses the resource name map? Would prefer this since the refactoring is relatively straightforward, and the usage will help provide the appropriate motivation for future readers.

All right. Close this PR, #573 will cover this. Thanks.


Meta-description for pages/events/pois

Motivation

To improve SEO, we want to add the possibility to add meta-descriptions for pages/events/pois.
Proposed Solution

[ ] Add a new field meta_description = models.TextField(blank=True) to AbstractBasePageTranslation, EventTranslation and POITranslation models.
[ ] Add this field to the PageTranslationForm, EventTranslationForm and POITranslationForm.
[ ] Add a new textarea beneath the text/description fields to the templates of that form (page_form.html, event_form.html, poi_form.html).

The challenge here is that our content creators do not know anything about SEO. Therefore we need to steer them into a direction that in the end results in a good meta information. We could have an additional input field that asks for a 1 to 3 sentences summary of the page content.


Should now be able to re-enable ppc64le for geospatial

libgdal has re-enabled ppc64le support in https://github.com/conda-forge/gdal-feedstock/pull/968.
Let me know if you all need help.  Otherwise, I'll leave it up to you since it's a tad more complicated than in other feedstocks.

Thanks, I had missed this. We need to basically revert all the PRs that link back to https://github.com/conda-forge/gz-common-feedstock/pull/31 , I will use this issue to track this.

I think we can close here @traversaro

Yes, fixed in https://github.com/conda-forge/gz-common-feedstock/pull/44 .


@mzikherman => no longer fetch all artworks in auctions or fair booths

Related to this discussion on your previous metaphysics PR, this updates the cases on the mobile web artwork page where we are fetching all artworks for a sale/partner show/fair booth to render underneath the artwork.
This updates to follow the pattern set by the Related works, Artist works and Partner works sections to only fetch 20 works and include a link to the relevant sale/partner show if applicable.
i.e.

cc @nicoleyeo

This is fantastic! 🎉
The slight design update to include that link is perfect IMO, really nice work!
An alternative might be to implement a proper infinite scroll w/ paginated requests, but that would require a much more significant refactor (implement something tiny reusing the existing Backbone/coffee, try to bring in Reaction, etc...). This definitely is awesome either way!


I cannot access the colors of .Xresources

Hello,
I am currently setting up polybar on debian 10 stable version. I struggled a bit to install it properly by compiling it. I am using i3wm as my desktop environment but have had a problem for several hours. I cannot change the colors of my bar with the colors defined in the .Xresources file. The polybar config does not access values like $ {xrdb: color3}. Everything else in the config works fine except that. However, the system recognizes the file since I use it to style my terminal.
My .Xresources :
! ===================!
!       urxvt
! ===================!

   Couleurs  !
! ============!
*secondary:  #444B6A
*active:     #C0CAF5

*.foreground:   #DDDDDD
*.background:   #1A1B26
*.cursorColor:  #C0CAF5
* fading: 20
*fadeColor: #5A638C

*.color0: #5A638C
*.color1: #DB4B4B
*.color2: #CAE797
*.color3: #F8CD7A
*.color4: #6183BB
*.color5: #BB9AF7
*.color6: #41A6B5
*.color7: #C0CAF5
*.color8: #5A638C
*.color9: #DB4B4B
*.color10: #9ECE6A
*.color11: #E0AF68
*.color12: #7AA2F7
*.color13: #BB9AF7
*.color14: #89DDFF
*.color15: #C0CAF5

My Polybar's config :
[colors]
active = ${xrdb:active}
background = ${xrdb:background}
foreground = #1E202E
urgent = ${xrdb:color9}
secondary = ${xrdb:secondary}
underline = ${xrdb:color3}

;

[bar/default]
height = 32
top = true
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}

line-size = 3

padding-left = 0
padding-right = 3
module-margin = 2

font-0 = DejaVu Sans Mono:size=10;2
font-1 = FontAwesome:size=11;3

modules-left = i3
modules-center = xwindow
modules-right = volume date powermenu

Does polybar print any errors?

How can I see the error file?

I found polybar errors :
warn: No built-in support to dereference ${xrdb:background} references (requires `xcb-util-xrm`)
warn: No built-in support to dereference ${xrdb:color3} references (requires `xcb-util-xrm`)
warn: No built-in support to dereference ${xrdb:active} references (requires `xcb-util-xrm`)
warn: No built-in support to dereference ${xrdb:secondary} references (requires `xcb-util-xrm`)
warn: No built-in support to dereference ${xrdb:active} references (requires `xcb-util-xrm`)
warn: No built-in support to dereference ${xrdb:color9} references (requires `xcb-util-xrm`)

That means the feature wasn't enabled during compilation, probably the package wasn't installed then. You need to do a clean recompile with those packages installed.

Ok I see to do a recompilation I reinstall completely polybar from ./build.sh?

Tanks for all ! Its works !

Tanks for all ! It works !


Added batch rule for (adaptive_)avg_poolNd

Description:

Added batch rule for adaptive_avg_pool{1d,2d,3d} and avg_pool{1d,2d,3d}
Enabled tests for adaptive_avg_pool{1d, 2d, 3d}, avg_pool{1d,2d,3d} and nn.functional.interpolate (mode="area")

Adresses #240

Please review @zou3519

@Chillee do you mean if we could use some other macros? I can take a look.

@vfdev-5 I was just curious whether we had to do this "expand" strategy, but I think this is fine.


Multi-line statements are sent line-by-line to radian terminal

Steps to reproduce:

Install radian and set it as your R console through the setting R: Rterm: Linux in vscode.
Create an R file and write some multi-line statement on it, such as this:

df <- data.frame(
    col1 = 1:3,
    col2 = c("a","b","c")
)

Press Ctrl + Shift + P and select R: Create R terminal.
Click on the first line of the multi-line statement in the R file so as to put the focus there.
Press Ctrl + Enter.

Expected behavior: should send the whole multi-line statement as one command to the terminal.
Actual behavior: sends the multi-line statement line-by-line to the terminal, making each individual line fail to execute as they aren't meant to be executed separately.

duplicate of #437

duplicate of #437

I think #437 describes a different issue which affects also the regular R terminal, while this only affects radian and has a different behavior when using the regular terminal.

Hi, try enabling the setting R: Bracketed Paste. That should fix it.

Hi, try enabling the setting R: Bracketed Paste. That should fix it.

Thanks, that solves it. Would be good to have it in the readme instructions.

@david-cortes Thank you for the feedback. It's in the Wiki here: https://github.com/REditorSupport/vscode-R/wiki/Installation:-Windows#radian
But perhaps it could be made more discoverable.


Process explorer double scrolling

The process explorer has both the window scrolling and list view scrolling. When window resizes, the list/tree view is not laid out properly and it's then impossible to view some rows.

Should be fixed now.

This was part of https://github.com/microsoft/vscode/issues/114040


nrf/uart: do not error on zero length transfers.

It's a perfectly fine thing to do, should be just a noop. Erroring is really annoying when you're writing a payload to uart that might be zero-length or not.
bors r+

bors r+


Expand MiningStatistic component functionality: Introduce BoxDisplayer

This PR, along with #535
resolves #448
Introduce the BoxDisplay component to display the percentage for the user.
Screenshot:

Green Background
Transparent Background

Updated from 8eadabd2dc3380a6befabdef54228331f03209b5 to 8852c948c97a12026a90871b9b7c7208e8ebd52b (pr540.01 -> pr540.02, diff)
Addressed @benalleng comment

Removed test commit.


feature request IDEnode with more than one output

Hello Alekpet, thanks for this extensions, I'm wondering if its possible to add more outputs in the same fashion that the inputs are added
thank you

Hello Alekpet, thanks for this extensions, I'm wondering if its possible to add more outputs in the same fashion that the inputs are added
thank you

Hi, yes, most likely it is possible, you will need to experiment.

Hello Alekpet, thanks for this extensions, I'm wondering if its possible to add more outputs in the same fashion that the inputs are added
thank you

Implemented https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/master/IDENode#ide-node


Initial WebApp setup

Configuring

nginx
react router
rspack
tailwind
React Aria Components
Bun

Summary & Motivation
Adding web app build setup with routing

reverse proxy - nginx, solid and large community
react router - stable, large community support
rspack - performant and large community (webpack compatible, federated module support)
react-aria-components - ARIA compliance, supported, built and used by Adobe
Tailwind - large community, under evaluation considering plain css or panda-css instead for readability
bun - using bun as a drop in replacement for node js etc. for better DX and less dependencies

Checklist

[x] I have added a Label to the pull-request
[ ] I have added tests, and done manual regression tests
[ ] I have updated the documentation, if necessary

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


[WFLY-5675] Upgrade wildfly-arquillian from 1.0.1.Final to 1.0.2.Final

This follows up on https://github.com/wildfly/wildfly-core/pull/1238 to ensure JVM options are replaced instead of added. The shrinkwrap descriptors bump is to keep this in line with what Arquillian and WildFly Arquillian use.

:100:

Linux with security manager Build 3596 outcome was UNKNOWN using a merge of 0df49cd09c05841f644a2f0e207946756f992633
Summary: Canceled Build time: 10:23:13


Global Command Prefix

What is this about
Added an option for a global command prefix
Checklist

[x] I've reviewed my own code
[x] I've executed go build ./... and confirmed the build passes
[x] I've run go test ./... and confirmed the tests pass

@alexandre-normand Ok, I think it's all good now. Give it a check.

Ok, I think the only problem left is emoji related in the failing test. My editor seems to be having issues with displaying (or even including a null) it.

@alexandre-normand Sorry for all the delay - you probably know how things can go ;)
Let me know if you see what's up with that emoji test.

I've been testing this PR with my own bot and I'm getting one bit of unexpected behavior: After a command with a prefix is given it'll always say I don't understand. Ask me for "help" to get a list of things I do even if it ran the command ok.

Ah, nvm, figured it out - Some of my commands don't return messages - they respond with a thumbs up emoji via an independent channel.

@pmcintyresfdc : I pushed two commits to your branch. One to fix the broken test (that was just the mission emoji in the expectation, as you had suspected) and another to add a simplification to the cacheSelfIdentity (there's no need to conditionally set the fields to selfIdentity if not already set as it should be acceptable to override them..and it also runs once on the ConnectedEvent).
I think that's ready to merge but I just wanted to give you a last chance to look at that extra commit before I merge.
Thanks again for the contribution and persevering through the review!

Going to merge?

Going to merge?

Done and released as v1.41.0.

Awesome!

Thanks again for the contribution, @pmcintyresfdc !


Do not publish some subtrees with specific tag.

If the subtree contains an attribute or tag defined by `org-static-blog-no-post-tag', then the subtree will not be published.
i.e.
* foo
* bar                 :nonpost:

Then only the subtree named foo will be published.
It it useful when you have some private parts(using with symbolic link) which do not to publish or some parts are not ready to publish.

Thank you for your contribution! I like it!
Could you add a note to the README that documents this behavior?

I'm glad you like it.
I have add the description for this feature, c1fc669c85c8c9aeb5009c1a41b3df559e303ba6, please check it.

I like it. Thank you!