Small changes to readme.

Due to permissions error with spark pools and more explanation.

Hi @Bertverbeek4PS
Are you sure it does not work with the reader role? We have already tried this out,

and SQL endpoint works well for Reader role.
Cheers,
Dutta.

Hi @DuttaSoumya when I run the pipelines I got the error about permissions.
When I changed the reader into contributor the pipelines where running OK and I can read the data from the SQL endpoint.


Check if the page is busy with pending Promises, near setTimeouts, or recent network and main thread activity before taking screenshots

This PR addresses the issue #22

Squashed and merged as we verified the change together with @vinodkumarsharma276 and @sunilsurana 👍 Thank you folks


works with existing native project

hi,
can I use framework7 as part of iOS native project?
so some views use native,some views use framework7

Not really. You can use f7 in webviews in native app


App crashes when uploading an image using webview (Android only)

Whenever you try to upload a file (tried with image) into webview the app crashed with the following error:
FATAL EXCEPTION: main
Process: fi.hsl.appdev, PID: 15154
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:32 flg=0x1 }} to activity {fi.hsl.appdev/fi.hsl.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.bridge.Promise.resolve(java.lang.Object)' on a null object reference
	at android.app.ActivityThread.deliverResults(ActivityThread.java:5015)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:5056)
	at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7656)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Happens only on Android, real device and emulator and I have react-native-webvew v.11.0.0
Issue related: https://github.com/react-native-webview/react-native-webview/issues/1121

Any update to this?

the same problem yet

Any update to this?

to all those who had the same problem in my case the problem did not come from react native webview but rather from another package which used onActivityResult and which did not check if the response was really for its package
check your stacktrace e depth to check who received the onActivityResult method


run_tests.sh: Load vsock_loopback module for vsock-proxy tests

The connection_test test runs the vsock-proxy on the parent instance for testing the connection between a server and a client on the same instance, in which case the vsock loopback must be enabled on the parent instance.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

How did this work until now?

How did this work until now?

It stopped working a while ago.


Feature request: defaults

I'd like there to be a way to set default parameter values for all areas that don't specifically have that parameter defined. There are a fair few parameters (from enabled features through presence event timeouts, minimum number of entities to create aggregates, even night-state entities, etc., that I want to be the same for every area (or every interior/exterior area) except when specifically changed, and it would be nice to have a place to change all the not-set-explicitlies in one go.

As a side note: this might be a bit of a breaking change now, but since I mentioned minimum number of entities to create aggregates, I might also suggest that the system default for this one might be better as 1 than 2?
(Having had occasion recently to redesign my configuration after a server crash, one of the first changes I made in every area was to set this to 1, on the grounds that that way, I would never again have to go through all my templates, automations, etc. fixing up the references just because I added a second temperature sensor to a room... 😄 )

That's a really good idea. Some kind of global overrides, but I'm not sure how easy will be to implement. Will keep on the list.
Changing defaults isn't quite breaking as once you've created the area in any form (either by installing it first time or by editing it), it will save the current configuration (using the current default whenever it was created/updated). I also like to use these as 1 because I like to use aggregators directly as well. This was set to 2 for the expectations (Why there's a group with a single entity?). I try to follow a less-spammy approach to not freak users out when they first install.


Running non fused models with flash-attn

Hi,
When using 0.1.8 you could load most AWQ models using from_pretrained and use an Attention implementation like flash-attn. It would be slower than loading from from_quantized and fusing layers but the quality of the answers are better using the attention implementation. We know that it's not possible to use Fused Layers with Attention.
Now the issue is that when using 0.1.8 it works but after 0.1.8 loading from_pretrained with or w/o attention inference is broken. It goes into this state where VRAM just keeps growing and it finishes inference like 15min later. Where as using 0.1.8 the same prompt, etc takes 10 secs.
First are you aware of this issue? and can I do something so I can use the latest version with pytorch 2.2.1 etc. Or if not Is it possible to implement in the from_quantized class a way to run the model not fused and with an attention implementation. At the moment the two models I tried don't even work with fused set to false. They do work set to true with latest release, pytorch 2.2.1 cuda 12.1
Note: I tried quantizing the model using the latest release and latest Pytorch, CUDA 12.1 and its the same behavior as above.

Hi @christian-ci, this might be caused by changes in other libraries like accelerate. If you use from_pretrained and specifically set device_map="auto", does this solve your issue?

@casper-hansen Was already using device_map="auto"

@casper-hansen It was accelerate that was broken. New release out it works. Thanks so much!


[Quick Search] Can't search input text in fallback command.

Extension
https://www.raycast.com/iwfan/quick-search
Description
Can't search input text in fallback command.
Steps To Reproduce

Setting Quick Search become to fallback command.

Add Quick Search to the default search.
Enter keywords to search.
Quick Search does not use the entered keywords to search, but the clipboard or selected text to search.
Sample video:
https://cln.sh/4JKR7rdk

Current Behaviour
No response
Expected Behaviour
No response

@kunpehx Sorry for the slow response.
I've added support for fallback command, and will publish a new version soon.

@kunpehx The new version has been published here
@raycastbot close this issue


Add chinese-dictionary extension

Description

A Raycast extension that explains text using a Chinese dictionary.
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi!
Thank you for your contribution! My name is Milena and I will be reviewing it today.
I have a few comments about your extension:

We already have a few dictionary extensions at Raycast. A differential for yours would be the service you are using. Do you mind adding it to the extension name?
Is there a way to create an account being outside of China? I didn't manage to create one to get an API key.
The Motivation part on your README sounds a bit odd. Could you please rephrase it or remove it? I don't think we need motivation to use a dictionary.

Hi Milena,
Thank you for reviewing my pull request and providing your feedback.
Here are my responses to your comments:

I have updated the README to highlight the use of the Educational Encyclopedia in the description and features section to better differentiate my extension.
Users can follow the link in the README to the login page of the Educational Encyclopedia, they can sign in using a
Google or Apple account.
Additionally, they can obtain a test API key from the Educational Encyclopedia’s Swagger page.
I have removed the Motivation part from the README and added more detailed usage instructions.

Try entering 樂不思蜀 and you will get the meaning of the term along with an example sentence.
Thank you again for your valuable feedback.

Hey!
Thanks for the instructions, I managed to use it now!
But, I'm missing the changes on the README on this PR.
Also, on the first state, the default action is to open Github. Is that expected? If so, why?

Hi @mil3na,
Sorry, it took me a while to figure out how to update my local commit to here.
I already updated the README.
Thanks to @LitoMore suggestion, I renamed the extension, but this led to the creation of a new PR. Should I close this current one?

@CofCat456 Yes. Let's move to that PR and close this one.


@7.0.0 resolveLocalFileSystemURL a content uri get a FileError

Bug Report
Problem
resolveLocalFileSystemURL a content uri get FileError
What is expected to happen?
const uri = 'content://com.android.providers.media.documents/document/image%3A189210';
// or
// const uri = 'https://localhost/__cdvfile_content__/com.android.providers.media.documents/document/image%3A189210';
window.resolveLocalFileSystemURL(uri, function (fileEntry) {
    console.log(fileEntry);
}, function(err) {
    console.log(err)
});

It got a FileError (code 1, not found)
What does actually happen?
It should log the fileEntry in the console
Information
Environment, Platform, Device
Redmi K30 pro, Android 11
Version information
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Checklist

[x] I searched for existing GitHub issues
[x] I updated all Cordova tooling to most recent version
[x] I included all the necessary information above

Reason
The code below inside function toNativeUri in org\apache\cordova\file\ContentFilesystem.java
String authorityAndPath = inputURL.uri.getEncodedPath().substring(this.name.length() + 2);

got e_content__/com.android.providers.media.documents/document/image%3A189210
It should be
com.android.providers.media.documents/document/image%3A189210
The right code is:
String encodedPath = inputURL.uri.getEncodedPath();
String authorityAndPath = encodedPath.substring(encodedPath.indexOf(this.name) + 1 + this.name.length() + 2);

I've implemented this change here: https://github.com/mWater/cordova-plugin-file.git#fix-issue-525 so feel free to use this until this gets fixed.
I started to make a pull request, but the overhead to do so was too high (run tests, without clear instructions in README, etc). If someone else would like to, please go ahead. This is a pretty serious bug.

@grassick I suggest to open a PR, I agree that this is a serious bug. I'm surprised there isn't a test to check that toNativeUrl and toLocalUrl are symmetric - i.e. that you can create a situation where this basically fails.
If there is a PR then someone can help pushing it to be merged by helping out with the tests.
In any way, thanks for sharing your solution!
I also guess that reverting to version 6.x will also solve this, right?

I've created a PR at https://github.com/apache/cordova-plugin-file/pull/534

Yea, thanks! Saw that only after posting here...

Believe it's a regression of https://github.com/apache/cordova-plugin-file/pull/513 but not 100% sure. PR doesn't describe changes to content:// scheme specifically but I believe any scheme other than the http/https scheme has issues when using the WebViewAssetLoader.
PR looks good though.

Any ETA when this gets merged / fixed ?

When will this gets merged?

@grassick I tried your fork but I still get error 1.
file_URI = 'content://com.android.providers.downloads.documents/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2F00052123047880195188.pdf'
 window.resolveLocalFileSystemURL(file_URI, _onSuccess, _onError);

always error 1.
Works in 6.0.2, by using the default android file picker, but it fails again (error 1) when using a third-party one, like Solid Explorer.


grub modification

Hello ,
So i have unlocked the filesystem , added aur and compiled yay in order to install corectrl .
In order to unlock the advanced corectrl options i need to add an entry in /etc/default/grub which doesn't seem to exist.I suppose is because what i am seeing is the frzr-root and not the actual root.
Is there a way to add that entry ?
THank you in advance

you need to edit the syslinux.cfg in /boot to modify the boot parameters.
Be aware that all these changes you are making will be wiped out when the system updates. What are you attempting to do with corectrl? I might be able to add it to an upcoming feature.

so basically i want to be able to to have access to the gpu power limits and voltage in order to undervolt and OC .better performance lower power consumption which is something you want to have on a SFF console pc .
I was able to do everything by unlocking the fs except the last section "Full AMD GPU controls"as described here : https://gitlab.com/corectrl/corectrl/-/wikis/Setup#full-amd-gpu-controls
Ofc the corectrl service wont start on boot unless you switch to desktop mode ( i suppose it could be fixed by modifying the target for the service maybe ) so i am simply adding it to steam and just running it from there once i boot up the system.

If you know what you want undervolted, you can write to the sysfs files directly. Also the amdgpu.ppfeaturemask=0xffffffff can be acchieved by setting a configuration file for modprobe, here is how

Thank you for the recommendation , although i am familiar with the theory i haven't messed modprobes before .I ll research on that


Update Format Enum

The list of Formats that Metron supports doesn't match the list that this schema has:

[ ] Canceled Series
[ ] Hard Cover

It'd also be good if the 2 had matching values to easily handle converting Metron to schema such as:

[ ] Limited (Schema) - Limited Series (Metron)

The list of Formats that Metron supports doesn't match the list that this schema has:
* [ ]  Canceled Series

I didn't include this, since my thinking is the Series type would be used for Ongoing and Cancelled series. I've thought about making this change on Metron also but wanted to give it more thought before implementing the change.

It'd also be good if the 2 had matching values to easily handle converting Metron to schema such as:
* [ ]  `Limited` (Schema) - `Limited Series` (Metron)

I think it makes more sense to change this at Metron to Limited, since the Series is a bit redundant.


[question] few questions while reading README.md

hello, I'm really interested in this project, and respect it.
I'm trying translating the README.md into Japanese.
While this, I got some questions( might be a fool one) so can I ask some?
(I'm not a native English speaker, I'm still learning English at school. So, I apologize that there might be some rude words/sentences)
1. the meaning of lossless dumping
In Passing arrays, maps and objects as parameters section:
The Variable utility offers lossless dumping of arrays and associative array (referred here to as `maps`) declarations by the use of the `@get` command.

I couldn't get the meaning of lossless dumping.
I googled a lot, but there's no info...
Is it almost the same meaning of 'dumps perfect copy of arrays' ?
2. what's the meaning of 'groups'?
In the README.md, Standard Library section, there's such comments
# lists all matches in group 1:
$var:matchGroups every 2 1

but based on my codereading, I couldn't understand what the 'group 1' is.
what I got is "every method choose every $everyth value starting from $startingIndex. and return it as an array"
## group 0, match 1
$var:someString match '([0-9]+) [a-zA-Z]+' 0 1

this also confuse me...
Functional/operational chains
is it a word of functional languages?

I'm not sure those are because I don't know other meaning of 'group', or I don't know C#/Java/javaScript languages...
I'm glad if you answer me, thanks.

Hi @Cj-bc these are some good points I could improve on in the README.
1. "lossless dumping"
in this context means the capturing of the descriptor of any given variable, so that it can be recreated in any context.
The "dump" is the result of the @get operation.
I'll have to get back to you about 2 and 3 as I don't have time to make up good examples for this now. Thanks for understanding!

Thank you for your answer!!
I'm really happy whenever I receive the reply.I'm glad if you reply me on your pace.
Now, I understand what the ' lossless dumping' is.
I'll read codes of @get for more understanding.


TinyGo Support and Cloudflare Workers Example

$ GOOS=js GOARCH=wasm go build -ldflags '-s -w' -o go-rv.wasm ./examples/wasm/main.go && du -h go-rv.wasm
12M    go-rv.wasm
$ tinygo build -target wasm -no-debug -gc leaking -o tinygo-rv.wasm ./examples/wasm/main.go && du -h tinygo-rv.wasm
1.5M    tinygo-rv.wasm

~88% size reduction before compression
Also, updated sqlite module to not use transactions, because Cloudflare D1 does not support them.
Tracking upstream PRs that need to be merged and released first:

[x] SQLite BLOB support: https://github.com/syumai/workers/pull/128
[x] Non-chunked HTTP responses: https://github.com/syumai/workers/pull/129
[x] HTTP and Cron in same Worker: https://github.com/syumai/workers/pull/130
[x] Add a couple reflect methods and fix reflect.Copy: https://github.com/tinygo-org/tinygo/pull/4543

Other tasks:

[ ] Remove usage of (*http.Request).PathValue in non-TinyGo code
[ ] Document required TinyGo version
[x] Remove syumai/workers fork replace statement in examples/go.mod
[ ] Add TinyGo CI tests for at least ., ./cbor, and ./http
[x] Investigate upsert in SetRVBlob setting rv to []byte{0x00}

TinyGo 0.35.0 has been released, so this PR can now be tested and finalized!


[feat] warn when OneToOne does not define an owner

If mikro can't figure out the relationship, it should give a good error message.

Additionally...
Thing:
	@OneToOne({owner: true})
	dog: Dog;

Dog:
	@OneToOne({entity: () => Thing, mappedBy: 'dog', inversedBy: 'thing'})
	thing: Thing;

Without the inversedBy, things fail. Seems like that could be inferred in several other ways.
Ideally, the api would be simpler too (assuming this is possible with TS):
Thing:
	@OneToOne()
	dog: Dog;

Dog:
	@OneToOne(() => Thing, (thing) => thing.dog)
	thing: Thing;

The fact that Dog refers back to Thing should make thing the automatic owner.

There is a lot of validation when you define things badly, but as I see it now, it works only for collections on this level, as I was making it before I added 1:1 associations.
https://github.com/mikro-orm/mikro-orm/blob/dev/lib/metadata/MetadataValidator.ts

Consider me your number one dumbest user. I'll find all the edge cases of stupidity. =)

Added validation, also the proposed less verbose way is now supported (for both 1:1 and m:n).


final Stream.Cons.tail

Current coverage is 95.09%

Merging #993 into master will increase coverage by +0.02% as of 4758afb

@@            master    #993   diff @@
======================================
  Files           74      74
  Stmts         9007    9007
  Branches      1711    1711
  Methods          0       0
======================================
+ Hit           8563    8565     +2
+ Partial        109     108     -1
+ Missed         335     334     -1

Review entire Coverage Diff as of 4758afb

Powered by Codecov. Updated on successful CI builds.

yep


Add a prettier configuration file

Let's ensure that we're using consistent versions of prettier everywhere (package.json, pre-commit, Github Actions)
Let's set up prettier-plugin-tailwindcss and clean up existing files
Let's set up the npm format and npm lint commands as well.

Hey @ChetanXpro - thanks for the suggestion, would you like to tackle this one? Thanks!

Hey @ChetanXpro - thanks for the suggestion, would you like to tackle this one? Thanks!

Sure, I can take this one.

Hey @virajmehta, I noticed we have a .prettierrc config file in the project root directory. should I set up an npm command to format at the root, or move this config to the dashboard and run prettier in dashboard only?

Let's run it in the dashboard only for now—down the line we'll want to build a typescript client as well but we can deal with that as it arises.
On Tue, Dec 31 2024 at 9:41 AM, Chetan < @.*** > wrote:

Hey @virajmehta ( https://github.com/virajmehta ) , I noticed we have a
.prettierrc config file in the project root directory. should I set up an
npm command to format at the root, or move this config to the dashboard
and run prettier in dashboard only?
—
Reply to this email directly, view it on GitHub (
https://github.com/tensorzero/tensorzero/issues/691#issuecomment-2566417731
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/ACGQ6BCSMNMQBQQNVKE7M3D2IKGI7AVCNFSM6AAAAABUMI4MCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRWGQYTONZTGE
).
You are receiving this because you were mentioned. Message ID: <tensorzero/tensorzero/issues/691/2566417731
@ github. com>


tokenize phrasal-verbs

is there is a way to tokenize a sentence taking into consideration phrasal-verbs.
example:
"The flight take off at three o'clock"
output should be:
[the, flight, take off, at, three,  o'clock]
take off should be tokenized as one word.

Imho that is not what tokenization is meant for. Tokenization splits a text into words (and punctuation, if necessary) and "take off" consists two words. Combining them into a phrasal verb requires partial parsing or chunking.

@Hugo-ter-Doest
Ok, do you know if there's a way to combine phrasal verbs in natural library ?

You could tokenize your sentence, tag each token's part of speech, and then find patterns. For example, VERB + DET or VERB + PREPOSITION. I use that to find noun phrases (JJ|NN+).

You can implement that, for now, using some sort of pattern matching (e.g. spaCy) such as you would walk the array of tokens, and find whatever patterns you are looking for (e.g. NOUN followed by PREP, or as many NOUNS/ADJ followed by PREP, etc).
You can look at spaCy's code (python) and port it to Node and Natural's token structure: https://github.com/explosion/spaCy/tree/master/spacy/matcher


warning for init_score in save_binary

fix #2639

I can confirm that the warning is shown as expected:

However, I believe that not many users read logs and the most of them are used to set verbose=-1 and do not see any warnings at all. Therefore, I think it's worth to duplicate this warning in the docs.

@guolinke Can we merge?


How did you group your navbar by category under documentation?

How did you group your navbar by category under documentation?
http://camaleon.tuzitio.com/documentation/category/
I'm trying to do something like this, but having a hard time grouping everything together.
What I see is...
the image list:
http://camaleon.tuzitio.com/group/40747-documentation.html
how do you find the category url?

Hi @williamrussellajb
categories or posts or posttypes or ... yo can do it by:
my_cat.the_url # returns the full url for this category

return front url for this category
args:
locale: language (default current language)
as_path: return the path instead of full url
Also, you can pass extra attributes as params for the url, sample: page.the_url(my_param: 'value', other: "asd")
=> http://localhost.com/my-page.html?my_param=value&other=asd
Return String URL

I'm currently trying to implement a data-filter.
I wanted to use "tags" as the id for grouping, or category.
category =<EMAIL_ADDRESS>%>
    <% category.the_posts.decorate.each do |post| %>
    <div class="card"  data-filter=".<%= post.the_tag %>">

Im not sure where or how to grab the tags that are on a post.
Thanks!

I'm currently trying to implement a data-filter.
I wanted to use "tags" as the id for grouping, or category.
category =<EMAIL_ADDRESS>%>
    <% category.the_posts.decorate.each do |post| %>
    <div class="card"  data-filter=".<%= post.the_tag %>">

Im not sure where or how to grab the tags that are on a post.
Thanks!

Tags are relationships like categories:
has_many :categories, class_name: "CamaleonCms::Category", through: :term_relationships, :source => :term_taxonomies
  has_many :post_tags, class_name: "CamaleonCms::PostTag", through: :term_relationships, :source => :term_taxonomies

Sample:
my_post.post_tags ===> return all tags for this post
my_post.categories ==> return all categories for this post


Remove lodash.clonedeep dependency

This pr removes lodash.clonedeep dependency
Why is src/package.json needed?

Closing this PR in favor of this:
https://github.com/cloudinary/js-url-gen/pull/447


deployment CR reconcile of containers

Ensure that only containers that are managed by the limitador-operator can be added to the limitador deployment CR.
Verification

Run this branch

make local-setup

Add a limitador deployment

echo "
   apiVersion: limitador.kuadrant.io/v1alpha1
   kind: Limitador
   metadata:
     name: limitador-sample
   spec:
     listener:
       http:
         port: 8080
       grpc:
         port: 8081
     limits:
       - conditions: ["get_toy == 'yes'"]
         max_value: 2
         namespace: toystore-app
         seconds: 30
         variables: []
   " | kubectl apply -f -

Check: There should only be one container in the deployment spec

kubectl get deployment limitador-sample -o jsonpath='{.spec.template.spec.containers}' | jq 'length'

Add new container to the deployment CR

kubectl patch deployment limitador-sample -n default --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/-", "value": {"name": "hello-sidecar", "image": "quay.io/podman/hello"}}]'

Expected: The patch will be complete and kubectl will not return an error. But the operator will revert the changes to only have one container present.

kubectl get deployment limitador-sample -o jsonpath='{.spec.template.spec.containers}' | jq 'length'

Resolves  #90

Changes looks good 👍
Any thoughts on adding a controller test for this also? 🤔

https://github.com/Kuadrant/limitador-operator/blob/main/controllers/limitador_controller_test.go#L244-L283

If ginkgo is only to be used for e2e tests I don't mind switching the golang built in test framework. When it comes to the drawbacks of using one over the other. Personal I like ginkgo. Being able to configure the beforeEach and afterEach on at every level is great and allows for clean tests as the test set ups do not need to be part of the test case. Using Gomega which goes hand in hand ginkgo, puts a clear understanding in the test case but of course Gomega can be used as part with the standard test frame work. Some other features of ginkgo that super usefully is being able to randomize not only the test suites but all the tests with a suite. This can highlight flaky tests. There is a also the retry function that can be added to know flaky tests. Being able to build a binary of the test suite would be more usefully for sharing e2e test images with qe. I will mention that Ginkgo does allow running test in parallel, while this can be done in gotest it does require code changes.
So then why use go test. There is better support for go test in IDEs. For instances goland can generate the test skeleton for a function which the user only has to add test case to. This make is super easy to get unit test up and working. But the biggest advantage is it is part of the language.
I am all for using one style.  @eguzki not sure if I answered your question. Do you want me to rewrite the test I created to use the go test framework?


CSS overflow-x/y disables print preview in Chrome

We had the same issue in Durandal https://github.com/BlueSpire/Durandal/issues/557. A possible workaround is to include the following in the stylesheet:
@media print
{
  .page-host {
    position: absolute;
    left: 10px;
    right: 0;
    top: 10px;
    bottom: 0;
    overflow-y: inherit;
    overflow-x: inherit;
  }
}

Closing this since it got merged


Update gitfast plugin

Updates git completion and git-prompt to v2.10 (partially fixes #6137)
Stops loading the git plugin (fixes #6206)

@felipec can you check out if I didn't break anything, and also if we could update the completions to a newer version?
TODO:

[ ] fix GPL incompatibility (#4413)

The only thing you missed is a change for $OSTYPE. I added a script to automatically update the version of upstream (87b435b7128dfa6e070bff2669d039c143d409ad) to avoid those issues. Not that it matters much.


No debug adapter found

Issue Type: Bug
While debugging VS Code (using the Debug VS Code Main, Renderer & Extension Host config), I sometimes see this error:

I think it is related to the extension host dying (or restarting and the debugger loses connection to it).
Here is the debug adapter log: vscode-debugadapter.zip
VS Code version: Code - Insiders 1.42.0-insider (be9c72410acc677070685a616773b122f4c5e141, 2020-01-29T05:39:07.145Z)
OS version: Windows_NT x64 10.0.19041

System Info

Item
Value

CPUs
AMD Ryzen 9 3900X 12-Core Processor             (24 x 3800)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.95GB (18.15GB free)

Process Argv
--folder-uri file:///c%3A/Users/Eric/code/microsoft/vscode

Screen Reader
no

VM
0%

Can someone look into this? We have an internal VS Code extension that also has this issue. It first happened in VS Code 1.39(or 1.38 I don't remember) and now it happens to 1.42.0 again.
My case is every time when I hit the Stop button then this error pops up. This is not really blocking something but just annoying.
If you have changed your api or something we would like to change our extension to make sure this works in latest version. But the error message doesn't really show any useful information.

It ends with several Lost connection to debugee, reconnecting in 10000ms so I think we were trying to reattach to the EH process and not finding it. I tried different ways of running that config and killing the EH but don't see any issues.
@isidorn can you give us a hint about what would trigger that error? It seems like basically when vscode tries to send a DAP message but the debug adapter has stopped?

@roblourens this error is coming from here.
It seems that it can happen if we try to send something to the debugAdapter and the debugAdapter was already stopped. I have improved this error message that we also log what command we are trying to send.
What I suspect is happening: is that the debug adapter goes down, but not 100% correctly thus VS Code does not properly clear out all DebugSession state. Because if the debugAdapter went down the DebugSession object should be inactive.

From @parovbroadcom
"The problem appears when we are trying to terminate the debug session. We first use the "exited" method with the expected ExitedEventArguments and directly after that, the "terminated" method with the expected TerminatedEventArguments. The error comes from the terminated method. I repeat that the problem appeared directly when the version of VSCode was updated to 1.42. By the way this problem doesn't appear on Theia."

Does somebody have exact reproducable steps? @eamodio @parovbroadcom @roblourens
I tried reproducing this with latest vscode insdiers with starting debug and quickly stopping it but was unsuccessful in reproducing...

This bug arises a few times per year. @weinand could we have a regression test for this? We have the same problem with PlatformIO extension. Every time users stop debugging session, VSCode complains about "no adapter". See screenshot below:

We have decided to not throw the error if we are in "shutdown" mode (where we expect that the debug adapters goes away).

Also in case you see the error again let us know it should have more detail (like the command that is about to be sent).

Thank you so much for the quick fix!!!

I used to see this sometimes (never had a solid repro on it) but haven't seen it in the last month. @eamodio please unmark as verified if you think this isn't fixed.

I haven't seen it in a while. :thumbsup:


Latest muon causes syntax errors in unrelated files

vscode-meson generates tons of syntax errors for any open files that aren't meson build files (any c source file or settings.json would do) if the muon linter is enabled in the settings. This seems to happen since muon commit b60b5196.

@annacrombie

One of the syntax errors I see: unexpected character: '"'

Should be fixed by #131 I think.  The bug was that this plugin was running muon analyze on all of your files.  It didn't cause any issues with older versions of muon since in those versions unrecognized files were just ignored.


Docker compose flags

Such as -V

Hi @caeus. Could you please give some more details? What is your use case?


Create a openzipkin user for publishing

Configs in travis.yml
improve docs around injecting these credentials into travis

Is this still an issue? I suspect we have an openzipkin user now, but I'm not so sure.


go tool trace not work

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

$ go version
go version go1.11.13 linux/amd64
or
go version go1.14
or
go version go1.15

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build933204170=/tmp/go-build -gno-record-gcc-switches"

What did you do?
wget -O trace.out  <IP_ADDRESS>:5555/debug/pprof/trace?seconds=5
# go tool trace trace.out
2020/09/09 21:31:18 Parsing trace...
failed to parse trace: no consistent ordering of events possible

# docker version
Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10

What did you expect to see?
2020/09/09 21:31:18 Parsing trace...
2019/12/17 10:19:28 Opening browser. Trace viewer is listening on http://<IP_ADDRESS>:42335

I want to analyse dockerd, so  trace pragram is very imporant.
beacuse of the dockerd Goroutines is :  29003976

Hello, and thanks for opening this issue! The trace tool seems to be working correctly on my end with the latest release and Go tree.
The error that's produced comes from this function, which is responsible for ordering the trace events into a single consistent stream.
Can you provide more information on the code that's running to produce your trace, or a reproductible example?
It might help to check whether #29707 is a dupe, a simple case of how you're closing your trace, or a new bug.

@tpaschalis  thanks your reply.
sorry , i have no code, the <IP_ADDRESS>:5555/debug/pprof/trace?seconds=5 is dockerd sock
or you can use socat -d -d TCP-LISTEN:5555,fork,bind=<IP_ADDRESS> UNIX:/var/run/docker.sock  for test

I understand. The fact that the issue appears with CGO makes me think it's a dupe of #29707, since people are reporting reproducibility with CGO.

thanks. so.  trace tool is not support cgo ?

@tiny1990 It is not cgo, it's calling go code from threads not created by go.
See the code in https://github.com/golang/go/issues/29707#issuecomment-489290457

Duplicate of #29707
Feel free to comment or open a new issue if this is not the case.


Add unit tests AutoCertManager

Add unit tests for pkg/object/autocertmanager.

Codecov Report

Merging #469 (5322023) into main (519b6bb) will decrease coverage by 0.42%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #469      +/-   ##
==========================================
- Coverage   79.97%   79.55%   -0.43%
==========================================
  Files          79       83       +4
  Lines        8850     9631     +781
==========================================
+ Hits         7078     7662     +584
- Misses       1365     1517     +152
- Partials      407      452      +45

Impacted Files
Coverage Δ

pkg/object/autocertmanager/dnsprovider.go
95.23% <0.00%> (ø)

pkg/object/autocertmanager/storage.go
56.62% <0.00%> (ø)

pkg/object/autocertmanager/domain.go
63.96% <0.00%> (ø)

pkg/object/autocertmanager/autocertmanager.go
93.65% <0.00%> (ø)

pkg/cluster/cluster.go
52.89% <0.00%> (+1.02%)
:arrow_up:

Continue to review full report at Codecov.

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


fixed several issues

Hi Cedric,
Thanks for the Docker compose template for SuiteCRM. We tried this on an Azure Ubuntu 14.04 LTS VM with the latest docker and docker-compose and ran into several issues, fixed here:

Fixed bug where envtemplate.py is not executable which would kill container on startup. Also upgrades source to SuiteCRM 7.2.1 MAX
Fixed bug where SuiteCRM wouldn't be able to talk to MariaDB container due to IP address changes. Fixed by pulling in current IP address latest into SuiteCRMs config override file
Fixed bug where mysql (mariadb) write-volume was actually orphaned by mounting at unused location. switched port to 8080 and also refreshed passwords to newer random ones (ok for public viewing, they are unused anywhere else)
Fixed bug with Apache not starting on subsequent runs due to remnant process lock file

Regards,
Sid

thanks so much for the fixes. they look good.


dotnet command not found!

Issue Title
I just installed dotnet ( build app https://dotnet.microsoft.com/download)  on high sierra 10.13.6. However, when I type dotnet in the terminal, it says: command not found!
After I installed the .Net Core SDK 2.2.401 (x64), I got the completion note:
The following was installed at /usr/local/share/dotnet
•	.NET Core SDK 2.2.401
•	.NET Core Runtime 2.2.6
•	ASP.NET Core Runtime 2.2.6
This product collects usage data
•	More information and opt-out
Resources
•	Core Documentation
•	SDK Documentation
•	Release Notes
•	Tutorials

I guess I should have searched it first. Issue this at terminal
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/


[ru] Localize client-server-architecture.md

Description
This PR adds RU localization of Client-Server Architecture
Checklist before opening this PR (put x in the checkboxes)

[x] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[x] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO. If you are working locally, you could add an alias to your gitconfig by running git config --global alias.ci "commit -s".

@tym83 hi! This one is ready for your approval 😎


Wrong Output format

@TURROKS On windows is problem on output formatting
it looks like this:
CVE-2021-44228    ←[31mPriority 1+←[0m

Thanks for creating an issue, this is a duplicate of issue #15 I have added an option to the menu --no-color or -nc to avoid the formatting issues, you can follow the updates on that one, thanks again


Deprecation warning appear after upgrade from ember-cli 2.5.1 to 2.6.2

DEPRECATION: Overriding init without calling this._super is deprecated. Please call this._super(), addon: ember-frost-core

this error doesn't not allow to upgrade to latest ember-cli version
please see this issue Unable to run ember init after upgrading to 2.6.0 from ember-cli repository
thank you

We're working on a mass fix across our repos for this, should be ready shortly - thanks for the heads up!

Fixed via this commit - https://github.com/ciena-frost/ember-frost-core/commit/74677b453b8ea7e42776ae8ac3d8120d81f70d10


img_tools.pxi: Support pitch alignment in bgr->rgb conversion

Adds support for pitch alignment in BGR pixel data. I think this is okay, but I didn't actually test it in-place.
It handles a couple of hand-crafted 3x1, 3x2, 4x1, 4x2 with and without alignment.

Does this need to support 2- and 8-byte alignment as well? SDL2 won't give us that, but I don't know about others.


[Question] can we modify the content of the recovered alert?

I have set up some alert rules, and they can correctly trigger the start and recovery notifications. However, the content of the recovery notifications always shows the rule expression. I would like to change it to display the content from the start of the alert instead. Is this possible?

I want the content of the recovery notification to be:
Alert Resolved Notice: 服务器连接异常, test.endpoint无法连接

Hi, @tomsun28. I reviewed the code and found that only a small modification is needed to use the description from the starting alert as the description for the recovered alert. May I make this change and submit a PR?

@loong95 hi welcome 👍


Anyway to make the mod not required to play on the world?

Is there anyway i can generate a skyblock world but not have the mod be required to play on the world? I tried making a world and then removing the mod but it wont let me play on the world saying its missing some datapacks? And also it has happened to me that i tried to open a world download of a farm and it would not let me open it and kept saying the same error that some datapacks are missing even tho the world was not a sky block one, Also im sorry if this is not the right place for this type of question i searched for like a discord support but couldn't find one :(
Essentially what i want is to be able to make a skyblock world and keep everything else vanilla MC i don't want any of the extra features or stuff and i want to be able to access the world without having to have the mod installed, because i might want to upload it somewhere or send it to a person and i don't want to have them be forced to install a mod to play on a world ig.

With the mod, you can disable all datapack features in the mod by disabling/not enabling the built in datapack. All mod features can be disabled using the /carpetskyadditions command or deleting carpetskyadditions.conf in the world folder. You can also customize which structures generate (if any) using the command.
While a SkyBlock world can be played without the mod, no new skyblock chunks can be generated because the mod contains the custom chunk generator carpetskyadditions:skyblock. "Errors in the data packs" cryptically means Minecraft is not finding the chunk generator. In order to fully remove the mod, you would have to pre-generate a large number of chunks (maybe with something like https://www.curseforge.com/minecraft/mc-mods/chunk-pregenerator-fabric) and save that world, then change chunk generators in the world's nbt file to a vanilla ones such as minecraft:noise. Pregenerating chunks may create a large save file, depending on the size of the area generated. This is how downloadable skyblock maps work -- if you were to travel over 10000 blocks or whatever in one direction, the chunks would generate like a normal world.
I believe it is possible to make a void world using purely datapacks, but I'm not sure how well it would work wrt biomes, structure bounding boxes, etc.

Darn i pressed the close issue button by mistake my bad... I wanted to say thank you for the explanation appreciate it! I have one more thing to ask and that is why wont some world downloads wont load with the mod installed??
gold farm_xp_looting.zip
hc7-iskal_golf_farm.zip
These are 2 example of worlds that wont load with the mod installed but will load with it removed, they are just world downloads from gnembon's gold farm, when i try to load them i get the same issue log with datapacks missing or something.

That sounds like a bug in the mod. I'll look into it.


Change %-formatting to {}-formatting

So I'm told that %-formatting is officially a thing that should not be
used in new code(tm), and I figured this was a half-decent way to
acquaint myself with the codebase.

That's interesting! Where is its deprecated-ness stated?

@ProgramFOX  This seems to be the official source https://www.python.org/dev/peps/pep-3101/
It seems one has to be careful around Unicode vs non-Unicode strings, but all of ours are already Unicode: http://stackoverflow.com/a/12252460

Where is its deprecated-ness stated?

It's not deprecated yet, it's just preferred to use the new string.format over the old overloaded % operator.
You might find the following interesting: Pythons many ways of string formatting — are the older ones (going to be) deprecated?

I think this can be merged. Does everyone else agree?

@ProgramFOX  Looks good to me.

@ProgramFOX  No objections from me.

In that case, I'm doing it. Let's break stuff.

Late :+1: from me. ;)


Update fips.yml

Where possible, switches deps from @floooh 's personal repos to the fips-libs organization's copy

Thanks! That was an oversight on my part.


Detect whether the GitHub token is read-only and fallback to logging command if needed

Describe the feature or problem you’d like to solve
The (future) gh-pull-review reporter will need a GitHub token with write permissions of the GitHub Review API.
This is because it needs to be able to write stuff into the pull request.
Proposed solution
If the GitHub token is read-only we could fallback to report via the logging command and create annotations similar to the gh-pull-check reporter.
Additional context
NONE

This is also needed for when the lstn action is installed in a github repo and a PR is opened from a fork.

This was done long ago


Active plots show - 1/4 phase and - 1%

@squizzling
Seeing reports from users, saying the active plot table now show '-1/4' phase and -1% progress.  Can you double check.
Thanks

I'll take a look, -1 means there was no "/" in phase, and Progress was "" though.

I can't see any obvious reason for it, my best guess is the addition of PlotSize has confused the Gob encoding if the client and server has a mismatch of datatypes,  I don't know if that's actually a thing or not though, I was unable to reproduce it with either size being downrev.
Can you ask them to check the server output? It writes the raw string with its summary, both for phase and progress, for each active plot.  If they're invalid then it's something on the server failing to parse it, if they're valid then it's probably the encoding, because we're reading an empty string.

thanks for looking into this.  I may well be version mismatch between server and ui.  I will do more investigation on my side.

I see similar behaviour on my Ubuntu machine, with plotng version I got on 22nd of May.
Additional symptom: plotng server does not send logs to console after 5 initial lines. Last line i see is this:
Starting plotting progress into temporary dirs: /mnt/nvme/chiatemp1 and /mnt/ntfs1/chia_plots
I see in debug that problem happens here:
func (ap *ActivePlot) processLogs(in io.ReadCloser)
...
>		if s, err := reader.ReadString('\n'); err != nil {

If I do "Step over" on this line after ap.Tail already have 5 strings, it never return control back, something hangs.
Chia process keeps writing to disk. Not sure how to interpret it though...
If I start chia from cli it show logs normally.
Hope it helps. I can some other debug info if needed.

thanks, I think for some reason the log file can not be created.  PlotNG needs to able to continue to provide logging otherwise the chia plot create process will hangs.  I will push a fix soon and a release


Feature request: unearth should return released date for a package

Is your feature request related to a problem? Please describe.
I would like to automatically fetch dependnecies that we use and see when was specific version released.
I am trying to create a rule that we should upgrade 1 month after dependency is released.
Describe the solution you'd like
Package objekt should contain release date for this version.
packagefinder could have a switch fetch_metadata if this is expesnive operation.
pypi = PackageFinder(index_urls=["https://pypi.org/simple/"], fetch_metadata=True)
result = pypi.find_best_match("django==4.2.7")
print(result.best.released_date)

Describe alternatives you've considered
Fetching raw html and parse the output.
Additional context
/

https://pypi.org/pypi/django/json
https://pypi.org/pypi/django/4.2.7/json
If getting already the json you could fill all the fileds available (size, packagetype, upload_time, etc).

Hi, we try to not rely on the JSON API since it is implementation-specific. Instead we only read from the Simple API.


Provide test name in message for conformance test

Provide test name in message for conformance test

@dwsupplee can you please review?


updated some dependencies

 Update Some Deps

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 13 (0.0%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.009%) to 79.638%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

services/src/error.rs
0
1
0.0%

services/src/bin/main.rs
0
12
0.0%

Files with Coverage Reduction
New Missed Lines
%

services/src/bin/main.rs
1
0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.009%

Covered Lines:
18504

Relevant Lines:
23235

💛  - Coveralls


how to visualize the FCM based approaches

Hi there,
I noticed that the FCM methods don't produce a Graph object.
from causallearn.search.FCMBased import lingam
model = lingam.DirectLiNGAM(random_state=None, prior_knowledge=None, apply_prior_knowledge_softly=False, measure='pwling')
model.fit(dataset)

print(model.causal_order_)
print(model.adjacency_matrix_)

Why they are not following the other approach like in Constrained based and in Score Based?
Cheers.

Yea you are right, at least for these LiNGAM-based methods we could definitely visualize them in a similar way as follows:
from causallearn.search.FCMBased import lingam
model = lingam.ICALiNGAM()
model.fit(data)

from causallearn.search.FCMBased.lingam.utils import make_dot
make_dot(model.adjacency_matrix_, labels=labels)

We will include these usages into the doc, and preferably make the visualization way consistent with other methods. For ANM or PNL, the multivariate version could be a little bit more tricky, see e.g. https://proceedings.mlr.press/v177/uemura22a/uemura22a.pdf.

Hello,
that worked:
https://colab.research.google.com/drive/1BZ2idQWgr7Ed6d09fk9bYi4a5RoOiu3g?usp=sharing
is there a way to save it into a file?

I can save the dot file
from causallearn.search.FCMBased.lingam.utils import make_dot
my_dot = make_dot(model.adjacency_matrix_)
my_dot.save(filename="test.gv")


src/ipfs.io/docs/getting-started: Add webui screenshot

Going to http://localhost:5001/webui actually brings up the home tab
listing some dry information about your node.  This view is much more
exciting ;).

:+1:


[SMALLFIX] Restore default worker memory size to 1GB.

128 MB is too small, most machines have at least 1 GB memory to spare.

+1 LGTM


node v8.8 - HTTP2 issue?

Having some issues with upgrade to node 8.8
Bankai falls over when a website reloads ... I don't get much more in the logs other than an ELIFECYCLE error.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>dev: `bankai start index.js`
npm ERR! Exit status 1

Think you're on the right track
NODE_NO_HTTP2=1 npm start seems to not crash

Ref #238

Dang, yeah tried it too today, and things aren't working the way it's supposed to be. On my end we're experiencing a double close error, which might be an artifact from the pre v8.8.x days. Going to dig into this a bit soon.

I'm having trouble reproducing this consistently on master. Just published master as v9.0.0-rc9 — could you check if that still causes issues? Worst case it should now have a clearer error message on failure. Thanks!

Downloaded a new choo app with npx create-choo-app. It has<EMAIL_ADDRESS>Here is the result .. I like the new hot pink button!

2017-10-31T15_11_06_201Z-debug.log

@shotlom could you perhaps just post a screenshot with the output? I'm having trouble with the log file; it seems it's mostly outputting verbose npm output, and I'm looking for the error bankai returned. If there wasn't any, that's fine too — but at the moment I don't quite know how to further assist haha. The gif cuts out before I can really look at the error (:

Yeah, I'm also having trouble finding a good debugging output for you to help with the diagnosis. The screenshot above has logs written to multiple command lines which doesn't help ... not sure if that's a configuration problem at my end, or a feature of the bankai error.

So the issue comes when reloading the browser window ...

But it also seems to come when I save an adjustment to a file. By this I mean that when bankai attempts to reload the browser after I've made a change to a source file, bankai is lost.

btw ...  I also just tested in Node v9.

Argh; alright. Looks like this code is no longer working as intended https://github.com/choojs/bankai/blob/master/http.js#L194-L199

Opened up an issue on Node core to figure this out how to fix this https://github.com/nodejs/node/issues/16666

@yoshuawuyts you could add a little extra safety check to write that only fires if !res.finished.


RFC: support batch authorization requests

While the vast majority of requests likely operate on a single resource and can be handled efficiently by the current implementation, depending on the permission model that an application has list operations may need to check authorization against multiple resources and it is inefficient to do a full Python-to-Rust roundtrip for each check.
This is a proposal to modify the is_authorized signature from:
def is_authorized(request: dict,
                  policies: str,
                  entities: Union[str, List[dict]],
                  schema: Union[str, dict, None] = None,
                  verbose: bool = False) -> AuthzResult:
    ....

where request looks like
{
  "principal": "...entity ID",
  "action": "... action entity ID",
  "resource": "... resource entity ID",
  "context": [JSON-encoded dict or a dict]
}

to take a list of resource entity IDs and return a list of AuthzResult.
An alternative approach suggested by @skuenzli that would maintain backwards compatibility would be to create a new is_batch_authorized or is_authorized_batch (inspired by is_authorized_partial in the existing Cedar API) that takes a list of requests and returns a list of results. To reduce code duplication, internally both functions could call the same underlying Rust implementation. This alternative would also allow more flexibility for the caller to provide alternative principal / action / resource / context in each request. A potential downside of providing a batch of requests is that the context content would need to be provided for each, possibly making the amount of data sent from Python to Rust much larger.
With a naive implementation, the batch call in the test below is about 5x faster on my test machine and is able to perform a batch of 1000 authorization checks in ~134ms, compared to 688ms for 1000 individual calls. A brief test with more entities shows that the performance improvement only gets better.

#entities
individual1000 calls / 1 resource
batch1 call / 1000 resources
speedup

2
688ms
134ms
5.13x

4
915ms
167ms
5.48x

8
1315ms
188ms
6.99x

Naive test script
import json
import cedarpy

from timeit import default_timer as timer

from typing import List

policies: str = """
permit(
    principal,
    action == Action::"edit",
    resource
)
when {
    resource.owner == principal
};
"""

entities: List[dict] = [
    {
        "uid": { "__expr": "User::\"alice\""},
        "attrs": {},
        "parents": [],
    },
    {
        "uid": { "__expr": "Photo::\"alices-photo-1\""},
        "attrs": {
            "owner": { "__expr": "User::\"alice\"" }
        },
        "parents": []
    },
    {
        "uid": { "__expr": "Photo::\"bobs-photo-1\""},
        "attrs": {
            "owner": { "__expr": "User::\"bob\"" }
        },
        "parents": []
    }
]

request = {
    "principal": "User::\"alice\"",
    "action": "Action::\"edit\"",
    "resource": "Photo::\"alices-photo-1\"",
    "context": json.dumps({})
}

print("starting")
start = timer()

# make 1000 individual calls to validate alice's access to `alices-photo-1` and `bobs-photo-1`
for i in range(0,500):
    result = cedarpy.is_authorized(
        {"principal":"User::\"alice\"",
        "action":"Action::\"edit\"",
        "resource":"Photo::\"alices-photo-1\"",
        "context":{}},
        policies, json.dumps(entities), None, False)
    result = cedarpy.is_authorized(
        {"principal":"User::\"alice\"",
        "action":"Action::\"edit\"",
        "resource":"Photo::\"bobs-photo-1\"",
        "context":{}},
        policies, json.dumps(entities), None, False)

end = timer()
print("done")

print(end-start, "seconds")
# 0.6880448180017993 seconds

start = timer()

# make 1 batched call with 1000 resources to validate alice's access to `alices-photo-1` and `bobs-photo-1`
result = cedarpy.is_authorized_batch(
    "User::\"alice\"",
    "Action::\"edit\"",
    ["Photo::\"alices-photo-1\"", "Photo::\"bobs-photo-1\""]*500,
    {},
    policies, entities, None, False)

end = timer()
print("done")

print(end-start, "seconds")
# 0.13395986999967135 seconds

Yes, I think there should be an is_authorized signature that accepts a batch of requests.
I don't know if the primary overhead is FFI, parsing, or something else yet, but the Cedar authorizer.is_authorized execution time in Rust is dwarfed by what it takes to get there and back.
From some internal unit tests:

total authz time (micros) (Python): 45473 (Rust) 345

The time observed in Python is consistently 2 orders of magnitude greater than the authorizer.is_authorized call.
These particular requests use a simple policy, a simple schema, and ~170 entities
As far as an actual batch impl goes, I think we should identify key use cases and see how the requests vary.  I think there's a good chance we'll need to provide a way for people to provide a list of requests while keeping their policies and entities static.
In my own access analysis use cases, we need build requests that vary actions (primarily) and resources (might be a nice to have).
Another fun bit is that batching means you'll need to correlate the request in the input to the AuthzResult in the output.

Craig Disselkoen (Cedar Team) suggested we may want to offer methods to load and return opaque PolicySet and Entities objects so that we can cache them across is_authorized calls.
I think this is potentially a really good idea based on my first encounter with larger sets of entities.
However it really drove home that we really don't know how is_authorized inputs drive execution time.  So I've entered #14 to find out.

I extracted a sample of is_authorized execution metrics from production today.
Here are summary statistics for 1000 executions of is_authorized in microseconds:

Summary   Stats (micros)
average
p50
p90
p99
max

total_duration
4685
442
16471
64434
81317

parse_policies_duration
3375
132
13155
61384
77503

parse_schema_duration
348
109
131
12252
16257

load_entities_duration
461
108
128
16240
16522

authz_duration
289
15
168
13002
18049

For our workload, is_authorized execution time is dominated by parsing policies.  Now I think our workload might be a bit unusual for Cedar/AVP.  We're generating policies and schemas, not crafting them by hand.  It's almost certain that there are cases where we should generate 'better' policies.  (We already implemented a change to minimize the schema and that worked well.) But it's data.
Here's a scatterplot with each request's total and components plotted in sequence:

My main takeaway from looking at these (and other) metrics is that if we can amortize the cost of parsing policies and building the entityset+schema, we should be able to improve the performance of an individual is_authorized request by +10x.
For our workload, we generally use a given policyset, schema, and entities for more than 30 is_authorized requests.
Currently that costs 140550 micros (30*4685).
But if we only built the policies, schema and entities once, that'd be: 12883 micros (3375+348+461+(30*289))

Implemented is_authorized_batch in #17

Merged initial is_authorized_batch implementation from #17 .
Will keep this open until (at least) we adopt the batch API internally.  That will help discover whether we need an explicit request-response correlation mechanism.

When integrating is_authorized_batch into our own codebase, we really wanted a way to explicitly correlate authz request to result.  So added an optional correlation_id in #18.


add cleanup components

Extremely huge fan, and frequent user of this boilerplate.  So first off, thank you for creating and maintaining this.
As a frequent user of the boilerplate, I had to remove a lot of the (necessary and appropriate) sample code for the boilerplate (mostly surrounding the counter components).  I think this is necessary so that you can quickly and easily see a working application.
But I wanted a way to be able to quickly and automatically clean up the boilerplate so that I can start custom dev as soon as possible.  So I created boiler-room-custodian (GitHub repo), which is a little utility that allows boilerplate maintainers to specify a configuration for cleanup, and then run mop to do the cleanup.
In the case of this specific boilerplate, I wanted to use it not only as a testing ground for this utility but also as a constant user of this boilerplate I benefited from creating the config.
Let me know your thoughts and what value you think this could bring to the boilerplate.  If this PR is merged, users would only need to run npm run cleanup to remove the sample code and then start custom development.
Thank you for your time and consideration!  And thanks again for your hard work on this boilerplate!

I think changing the filename cleanup.js to boiler-room-custodian.js would be better.

Ok I can see why you think that, and I'm not against changing it away from cleanup.js.  I think boiler-room-custodian.js would be a bit of a long string for any filename, much less a config filename.  How about brcustodian.js?  Or brc.js?  Let me know your thoughts.  I'll make the necessary changes on the module as it is hard-coded to look for cleanup.js.
Thanks for the input! 👍  😄

How aboutbr-custodian.js? brcustodian.js is less readable IMO

Ok yeah I can see how brcustodian.js is bad.  I don't like the "remove" in remove-boilerplate.js, as there are modifications and even file adds that happen.  Maybe cleanup-boilerplate.js?  Or sanitize-boilerplate.js?  Not sure I love "sanitize" though.  If neither of these sound good to you, I'd be willing to go with boiler-room-custodian.js as a fall back just to have something finalized. :smile:
Let me know your thoughts!

So here's my judgement on the naming.
When I first used this project, I was really confused about how the project worked. "Why is this this way? What does this do?" Those are the kinds of questions that I feel a lot of other people experience with this project and boilerplates in general.
A solution to this is adding comments and explanations to each significant file. Users should feel they know their way around the project even without having much experience with the technologies that this project uses.
Another solution is, as trivial as it might sound, is the naming of files. The user should know what that file does just by reading the filename.
How about a more general filename, like bootstrap.js?

Totally agreed! My only fear of "bootstrap" is that they'll confuse it with the popular bootstrap library. That's why I originally thought "cleanup" was pretty descriptive. How about just "sanitize.js"? Or "square-one.js". Or "minimize.js"? Thanks again :-)

setup.js?

That works for me! I'll make the code changes tomorrow, and they'll reflect in this pull request.
Thanks for the recommendation!! :smile:

Great! And sorry for being so picky!

No need to apologize at all, naming is so hard and frustrating. 😄
Changes made, let me know your thoughts!

LGTM! Merging 🎉

Awesome, thanks!!! :+1: :smile:

Also here's something that would be a great addition to boilerplate custodian: removing boilerplate comments. I'm planning on adding comments to this another boilerplates, including react-boilerplate and others. Comments are needed to explain the decisions of the boilerplate and how things work. Ideally, the comments would be removed automatically with a single script, like boilerplate-custodian. Thoughts?

That's a really good idea!  How would you like to see that implemented?  Removing all comments in a specified file?  Or just specified comments?

How about something like this:
/**
 * Some Boilerplate Here!
 * An example of a comment that should be removed
 * To make it easier to distinguish, we could add an annotation like so:
 * @boilerplate
 */

/**
 * Example of a comment that won't get deleted because it doesnt have a `@boilerplate` annotation
 */

I love it ❤  I'll integrate that functionality!  Super great suggestion. 👍


update set headerfilter

The set headerfilter must return a dropdown, not a select input element.
Select input elements have severe restrictions in regards to styling. A select element util would have to be written if a select style input element is required. We don't want to construct custom elements but use element utils throughout.
The dropdown and dropdown_multi element methods have been updated to return an element node. The styling has been updated for the UL element to be positioned fixed in order to visible outside the constraints of the header container. The width of the UL is assigned in the dropdown click method, taken from the offsetwidth of the [dropdown]header element.
The placeholder param is used to set the [dropdown]header text.
The options array populates the dropdown.
"headerFilter": "set",
"headerFilterParams": {
  "placeholder": "Filter in",
  "options": [
    "Sainsburys",
    "Lidl",
    "Aldi",
    "Tesco",
    "Waitrose"
  ]
}

By default a tabulator 'in' filter is applied to the tabulator table data. The 'layerFilter' flag will apply a layer filter instead.
The default type, for layerFilter is 'in'. The type can be set to 'ni' for layerFilter only.
Distinct field values will be queried for the options array if the 'distinct' flag is set.
"headerFilter": "set",
"headerFilterParams": {
  "distinct": true,
  "layerFilter: true,
  "type": ni
}

Like it - this will be really useful!


[BEAM-14487] Make drain & update terminal states.

Add drained and updated to states the Dataflow runner package is aware of in the WaitForCompletion loop, and log and terminate appropriately. Make the handling more consistent between states.
Tested manually against Dataflow.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

SDK can express little a joy, as a treat.


NeoForge only recognizing 1.20.1 as valid version.

I think it's an issue with the maven repo used, but I couldn't find a more accurate one.

Looks like a more accurate one is here? https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.xml Not sure if it's a problem that it doesn't have MC versions listed

MC version is part of neogorge version number, not having it separately repeated isn't an issue.
examples:
MC 1.21.0 -> neoforge 21.0.x
MC 1.20.4 -> neoforge 20.4.x

on the neoforge version selector, it doesn't even have the 1.20.1 versions that page might be pulling from the newer metadata https://projects.neoforged.net/neoforged/neoforge


fix: Keep the previous selected certifications after editing

Co-authored-by: Shawn Templer<EMAIL_ADDRESS>Co-authored-by: Vanessa Valle<EMAIL_ADDRESS>Co-authored-by: Seth Villa<EMAIL_ADDRESS>Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)

Closes #226

Hi Qianru & team, great work! Could you also fix something I just noticed? Inside the ClassInviteTable.js file, we set up our modal for editing classes. However, I noticed that the button that we are using inside of that edit modal says Create rather than Update. Would you or someone on the team be able to fix this before we approve the change since this is something related to the modal?
I have attached a picture to show what I am talking about just in case I was not 100% clear.
Thanks!

Hi Guillermo, thank you for the review. We've edited the "Create" button into "Update".

Hi Qianru & team, great work! Could you also fix something I just noticed? Inside the ClassInviteTable.js file, we set up our modal for editing classes. However, I noticed that the button that we are using inside of that edit modal says Create rather than Update. Would you or someone on the team be able to fix this before we approve the change since this is something related to the modal?
I have attached a picture to show what I am talking about just in case I was not 100% clear.
Thanks!

Hi Guillermo, thank you for the review! We've edited the "Create" button into "Update".

Awesome, thanks for this fix. LGTM!


Examples integrating gross and RHEL7-STIG-Audit

Can the documentation for either this repo or both RHEL7-STIG-Audit be expanded, to include examples?
I'm seeing downloading from github with a proxy fails in ansible but works on the command line.  Also Ansible copying from the git repos from the ansible server also appears to fail.
Can RHEL7-STIG-Audit be run manually to resolve auditing issues?

hi @Michael-Angel-Sec
Thank you very much for your feedback,  I would very much like to discuss this further with you to see where this can be improved based upon different setups that people may have.
I have been working on creating some documentation to enhance what is there. I have therefore uploaded a new branch to help demonstrate this into the rhel7-stig-audit repository that may help called docs.
re proxy:
I have not added the extra steps for the proxy happy to work with you so this can all be run from the remediation role.
For running goss standalone this is possible although the goss vars will need to be set accordingly for the system accordingly.
If you have any questions if particular and would like to discuss this further please send an email via https://engage.mindpointgroup.com/try-ansible-counselor if you state this issue, I will be able to work with you to improve this.
Alternatively, we are looking to add the community options to the repos so we can discuss this with the wider community in the future.
Thanks again
uk-bolly

@Michael-Angel-Sec
Apologies i didn't get to push the branch up i have now added this.
Please let me know if this helps?
Thanks
uk-bolly

Hi @Michael-Angel-Sec
Hopefully the docs help with things?
I will look to add make these accessible to this and other repos going forward.
Many thanks
uk-bolly

Closing Issue


Support instant sealing

Add support instant sealing which is useful for testing contracts.
NOTE: Although I creating a MockProvider to make waffle works, I still have to add a little delay (0.1s) between transaction to make it work but it's better then 6s

Looking good IMO @ermalkaleci Two more thoughts I'll share:

I wonder if "Timestamp" should be in the name of your struct. like maybe it should be MockTimestampInherentDataProvider or something shorter, but with Timestamp included. I don't feel strongly, just sharing the idea.

This is my first time encountering static mut but I did read over https://doc.rust-lang.org/reference/items/static-items.html . I wonder if using a field on the struct is a better idea and can avoid the unsafe block. Something like this:

pub struct MockTimestampInherentDataProvider {
  current_timestamp: u64,

Well, I guess my idea #2 above won't work because we can't mutate the instance. Maybe an alternative approach would be to read the timestamp inherent of the previous block? I'm just thinking of ways to remove the unsafe. But if @sorpaas is okay with it, I am too.

@JoshOrndorff I think unsafe is fine since this is going to be used only for testing mode. Anyway we can also do
thread_local! {
	static CURRENT_TIMESTAMP: RefCell<u64> = RefCell::new(0);
}

and get rid-off unsafe


実装

Codecov Report

Merging #12 (a446a09) into master (f5c63c4) will decrease coverage by 45.11%.
The diff coverage is 26.78%.

@@              Coverage Diff              @@
##             master      #12       +/-   ##
=============================================
- Coverage     71.42%   26.31%   -45.12%
- Complexity        6       12        +6
=============================================
  Files             1       13       +12
  Lines            21      171      +150
  Branches          3        8        +5
=============================================
+ Hits             15       45       +30
- Misses            3      123      +120
  Partials          3        3

Impacted Files
Coverage Δ

.../main/kotlin/io/jenkins/plugins/lgtm/EntryPoint.kt
0.00% <0.00%> (ø)

...s/lgtm/domain/git/BitbucketServerAuthentication.kt
0.00% <0.00%> (ø)

...s/lgtm/domain/git/BitbucketServerPullRequestApi.kt
0.00% <0.00%> (ø)

...o/jenkins/plugins/lgtm/domain/git/BitbucketUser.kt
0.00% <0.00%> (ø)

.../io/jenkins/plugins/lgtm/domain/git/PullRequest.kt
0.00% <0.00%> (ø)

...jenkins/plugins/lgtm/presentation/JenkinsLogger.kt
0.00% <0.00%> (ø)

...ns/plugins/lgtm/usecase/PostLgtmlPictureUsecase.kt
0.00% <0.00%> (ø)

...va/io/jenkins/plugins/lgtm/ApproveLgtmBuilder.java
12.50% <13.79%> (-58.93%)
:arrow_down:

...kins/plugins/lgtm/infrastructure/HttpClientImpl.kt
44.44% <44.44%> (ø)

...otlin/io/jenkins/plugins/lgtm/domain/HttpClient.kt
50.00% <50.00%> (ø)

... and 4 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Evaluate using a logger interface instead of golang stdlib log package

Is your feature request related to a problem? Please describe.
As stated in https://github.com/wneessen/go-mail/pull/102#issuecomment-1411956040, we should rather use a logger intreface, so the user can decide which kind of logger they want to use.
Describe the solution you'd like
TBD
Describe alternatives you've considered
No response
Additional context
No response

Theoretically multiple can be supported relatively easily using the method described in the comment. As users can just provide a decorator that implements the Logger for their particular logging provider. So overall this is a really nice idea.


[Android] Course Access Level Error Handling Improvements

Implement Comprehensive Error Handling for Course Access
To improve the user experience and ensure robust functionality, we need to implement comprehensive error handling for course access within the edX mobile app. This will involve detecting and handling various error scenarios that users may encounter when attempting to access their courses, providing clear and actionable feedback, and ensuring the app remains stable and user-friendly.
Error Handling Scenarios
Case 1

Schema Design Figma

Case 2

Schema Design Figma

Case 3

Case 4

Schema Figma Design
Acceptance Criteria

Error detection mechanisms are in place for all identified course access scenarios.
The app remains stable and responsive during error conditions, with fallback mechanisms in place.
Comprehensive testing is conducted, and all scenarios are validated for proper error handling.

Blocked due to 500 error handling. Waiting on API to be merged so we can handle the error case related to that.


Using RocksDB range deletion to truncate a continuously huge range of data

Feature Request
Is your feature request related to a problem? Please describe:

Currently, we use RocksDB DeleteFilesInRange to truncate a continuously huge range of data, and delete those keys not deleted by DeleteFilesInRange. If there are many left keys, the delete operation will hurt the online QPS.
Describe the feature you'd like:

A candidate solution to this issue is using range deletion to cleanup these left keys.

Call DeleteFilesInRange to delete those SST files covered by this range. This step is necessary because it can reclaim most of the disk space ASAP, and will extremely reduce the amount of the following compaction job.
Call DeleteRange to mark this range is deleted.
Call CompactRange to trigger manual compaction for this range. This step will reclaim the left disk space ASAP, also will make there are not too many range deletion marks, because too many range deletion marks will hurt read performance.

Describe alternatives you've considered:

@Little-Wallace is working on a workaround that collects these keys into an SST file, and then using IngestExternal SST to insert these delete keys. It relief this issue, but still needs to write these keys into RocksDB(although using ingest SST).
Teachability, Documentation, Adoption, Migration Strategy:

Can we call DeleteRange directly instead of calling DeleteRangeInFiles + DeleteRange together?

another risk is the stability of DeleteRange, we have met some problems before.
can we use this feature in production now? @ajkr

I am biased but I think it is usable in production. We have a few FB users (open source ones include Rocksandra, EdenFS, osquery; there are at least two internal users as well). One of the internal users has good correctness verification abilities - not sure about the rest. Also cockroach uses it heavily in the most recent few releases and has good correctness verification. We also run it in CI correctness/crash tests that combine it with various options and verify correct result.
Still I expect to find feature interaction bugs when a user tries a new combination of DeleteRange+other options/features. I'm not really sure what to do about it besides ask users to test their specific use case a lot and in the meantime strengthen our correctness tests for random feature interactions.

Hi guys
Does tikv use the DeleteRange with DeleteFileInRange and CompactRange now?
And where should I look into if I want to learn more about how tikv deletion work?
Thanks!


Markdown Linter

Is it worth looking into options for Linting markdown? To ease with contributing?
This looks fairly decent https://github.com/DavidAnson/markdownlint but there may be better options?
An added bonus would be checking image tags, especially ones that make reference to a static resource, e.g:
![](/static/images/pages/posts/1970-01-01-test-post/image.jpg)

Another great option: https://github.com/remarkjs/remark-lint


Misc text fixes

/botio reftest

/botio test

Current reference image for firefox-textfield-align-ref-item1 is wrong. A more accurate result will be generated after merging.


v1.3 Road Map (Jasper)

Features

[x] Have additional pane to show self (current user) - integration with Timetable v1.2

Tests

[ ] TagCommand Tests
[x] FriendCommand Tests
[ ] UnfriendCommand Tests

Closed.
Please update/migrate remaining tasks to v1.4, thanks.


Using iron_nuggets as denomination causes plugin to crash

Issue:
All works fine until I try to add iron_nugget as a denomination. When I do, plugin doesn't seem to load, and if I try to type /money I get the following error in console:
https://pastebin.com/cm7HPZn4
Server startup:
https://pastebin.com/bCSLuWpw
Gringotts config:
https://pastebin.com/10CNhAYn
Gringotts messages:
https://pastebin.com/MxAshQr2
Thanks for reading. Looking forward to using this awesome plugin!

I can't really look into this, but maybe it works if you use the numerical id for iron nugget?

Just tried 452 instead of iron_nugget and I received this error:
[10:56:36 ERROR]: [Gringotts] Encountered an error parsing currency. Please check your Gringotts configuration. Error was: null

I can't reproduce this so it may be resolved. Please comment if still an issue.


[WIP] Implement vouch component

Hey there,
In this PR, the main changes are the vouch and unvouch features. Apart from this, a major refactor on the account API is done, resulting in the removal of the fetchAccounts.tsx file, which was no longer needed after I understood better how to fetch, store and parse the accounts directly from the extension, not needing the local storage anymore.

 Implement the vouch component

This PR was moved to this one: https://github.com/KappaSigmaMu/kappasigmamu.github.io/pull/103

Implemented in https://github.com/KappaSigmaMu/kappasigmamu.github.io/pull/103


Cant use in Bash/Python

I have a perfect running command, but every time I try and run an mcrcon command in either bash or python, it dousnt accept any of the parameters and just says:
mcrcon: error: argument -p/--port: invalid int value: 'password'
This is what its running:
mcrcon -P 23943 -p paassword spigot:tps

Aha, turns out I had mcrcon installed via pip too! So it was a conflic.
pip uninstrall mcrcon solved this. if anyone else has the issue.

Hi,
Yeah I think there is unfortunate conflict with naming.
Pip actually installs Python implementation of rcon client.
I have contemplated if I should change the project name or executable name to make it distinct from Python implementations but it is hard to come up with new decent name (perhaps just "rcon" since I am in process of making it work with all rcon protocol variants).

I was looking into clients, so installed both and was using both bash and python to experiment, I went with this one and just parse what I want from commands.
You have the best google search results, so keep the name.
Might be worth the note on the readme page about conflicts maybe?
You could even show examples of how to use in bash/python/php too, to show people they don't need a python package installed.
Ive just ended up using bash as its no extra overhead, not that I need the response time im just building a crappy API to show TPS/Players/Donations on a small 4x20 display from a raspberry pi from my main server!

Might be worth the note on the readme page about conflicts maybe?

 I am still gringing for the fact that passwords are cleartext.
I have plans to include small config file parser so passwords could be at least stored in user defined config file with appropriate permissions.

I'm down for a config to  it need to pass the password each time! I do have 4 servers, so it would be nice to just have a parameter to say what server you want command output from.

What else do people use rcon for? I can't see it being used as a console replacement as I don't get any live in game thing like chat or errors when it's in client mode. Unless that's the point of rcon to use it as I am as a type of middle man for grabbing output


Replace recipe-cms with framework/admin in composer requirements

I’ve stuck with 4.4 (and the equivalent admin version) just in case something doesn’t work in earlier versions.
There’s some code relating to versioned in this module, but at a glance I don’t think any of it actually depends on versioned being installed.


RLN ZK-Proof Generation For Light Clients

TLDR: Using a LazyIMT + a change we contributed upstream, we can have Merkle roots and Merkle proofs onchain in the RLN contract with an assumable gas increase. This will allow light client to generate and verify RLN proofs without having to keep any state, with a very low impact in development. An end-to-end PoC is presented in Go using light push and the new RLN contract.
Previous Work
Some background of the previous work that has been done in relation to RLN in light clients:

Everything started with https://github.com/waku-org/research/issues/45, acknowledging that light clients currently require synchronizing the RLN membership Merkle tree, which is not practical for resource-restricted clients.
In here https://github.com/waku-org/research/issues/72 we introduced an approach using BinaryIMT that partially solved the issue by having the Merkle root onchain. This helped RLN proof verification but increasing the membership registration to from 80k to 700k. Not feasible. Moreover, it didn't address the problem of proof generation. Sync times improved but light clients still needed to keep the tree.
Later in https://github.com/waku-org/research/issues/79, we proposed a "Merkle Proof Provider" service, that could serve Merkle Proofs to light clients. Using this service, light clients no longer needed to sync/store the tree. They could use other nodes in the network offering such service to get the Merkle proof so that they could then generate the RLN proof locally. However, this approach required to implement a new libp2p protocol and involved trust since a light client could not verify that the given Merkle proof was valid.

New Proposal
The latest proposal is showcased with a PoC that integrates and showcases the end-to-end solution:

It only requires a minor modification in the RLN contract deployed in Polygon zkEVM testnet.
And can be used by any light client, see go-waku-light. This PoC showcases how a light client can use it end-to-end.

Key features:

New function in the contract: root() function that allows to get the Merkle root of the membership tree. A light client can use it to verify RLN proofs. Synchronizing the tree is no longer needed.
New function in the contract: merkleProofElements(index) that provides the Merkle proof given an index in the tree. A light client can use it to create RLN proofs. Synchronizing the tree is no longer needed.
New function in the contract:getCommitments(start, end) which allows to sync the tree faster. No longer needed to fetch events wasting time in ranges of blocks without any events. Syncing the tree is not really needed, but if someone wants to do it, it will be faster.
Since these features are part of the contract, any RPC provider (eg Infura) will offer these services by default. Once fluffy is ready and Ethereum light clients are, this data can be verified. Note also that this approach doesn't require the development of a new libp2p protocol, which was the initial idea. Everything would be onchain.
The smart contract uses a LazyIMT instead of a BinaryIMT using an upstream change that we introduced to allow Merkle proofs.
Good news is that membership insertion cost goes from 90k see TWN to 120k see new contract. Some variations are expected but this is 7 times less than the initial approach. And note that we have some gas optimizations pending.

Conclusion and Future

Based on the above-explained features, I would say this is the end game for RLN, allowing for frictionless proof generation and verification using nothing but the contract itself. No development needed on nwaku side, and contract already done. Peer review pending.
This feature has been prioritized on the app level, but these proposal might want to reconsider that.
Since this will require a breaking change in the RLN smart contract, I would suggest waiting for RLN V2 so that in the same "fork" we can include RLN v2 + Merkle Proofs/Roots onchain.
Feel free to play around with go-waku-light

Thanks @rymnc for his help.

err, maybe we want to include the subtree strategy in previous work? :)

I would say this is the end game for RLN

💯

closing since this has already been researched, implemented and delivered to TheWakuNetwork
see:
https://github.com/waku-org/pm/issues/168
https://blog.waku.org/2024-07-10-rln-v2-stateless-light-clients/


Cannot create variant 'android-lint' after configuration ':material-intro-screen:debugRuntimeElements' has been resolved

getting this error when importing the project. seems like gradle4.4 not supported yet as I am on android studio 3.1
Cannot create variant 'android-lint' after configuration ':material-intro-screen:debugRuntimeElements' has been resolved

Same Issue Occur when updating the gradle

Same Issue here

same here :(

any updates on this issue?

Same Issue Here

Firstly dont update the project when prompted. Keep gradle version to 4.4 and build tool version to 3.1.0. Also update classpath of nova to classpath 'com.novoda:bintray-release:0.8.0'.
Next navigate to build.gradle file of material-intro-screen library and look for classpath = project.files(variant.javaCompile.classpath.files) + project.files(ext.androidJar) replace it with doFirst {
classpath = project.files(variant.javaCompile.classpath.files) + project.files(ext.androidJar)
}
Also add lintOptions {
abortOnError false
} in the file above stated
And sync the project.


Kotlin register Plugins

Hi,
my problem when i install a plugin (example Cloud Firestore) the plugin is not working/found in the flutter part.
Thanks,
Thomas

Hi, is that specific to this project?  This project is not doing anything special with plugins.

No i want to take your demo and extend it for me. I want only add cloud firestore and save the scan code to the database.
Maybe you have a solution for me , how i can use flutter plugins.
When i comment out the koltin code , the plugins works.
  My guess would be to add cloud_firestore to the pubspec.yaml file and then re-run the flutter run process based on https://pub.dev/packages/cloud_firestore#-readme-tab- and https://github.com/flutter/flutter/issues/10912 but that's just a guess.

ok in the MainActivity you miss to load all other Plugins:
import io.flutter.plugins.GeneratedPluginRegistrant;
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine);
Thanks Thomas


[EPIC] Start minimal cosmos-sdk with minimal state

[ ] #572
[ ] #573

https://github.com/rollkit/rollkit/issues/1632#issuecomment-2408212822


Missing frsky_telemetry in px4fmu-v2-default.px4

since version 1.4.4 there is no frsky_telemetry command or binary.
when the option is enabledin SYS_COMPANION system is stuck.

This module was disabled [0] due to flash restrictions. You can enable it and disable something else, then compile it yourself. If you have a board that support the full 2MB flash (like pixhawk mini), you can also use the px4fmu-v3_default target.
[0] https://github.com/PX4/Firmware/blob/master/cmake/configs/nuttx_px4fmu-v2_default.cmake#L42

Hi @samo1234
frsky_telemetry was temporarily removed from the px4fmu-v2_default build due to flash constraints, but it's back in now.


fix: gov changeable param typo

Overview
Commit Summary:
Fix Typo in CIP-13 Regarding consensus.evidence.MaxAgeDuration
Commit Message:
This commit addresses a documentation error in cips/cip-13.md concerning the consensus.evidence.MaxAgeDuration parameter.
The current documentation incorrectly suggests that consensus.evidence.MaxAgeDuration is changeable via governance. This is a discrepancy because consensus.evidence.MaxAgeDuration should be identical with the staking.UnbondingTime, which is not changeable on-chain as indicated by its governance changeability status being set to False.
Additional comment: Allowing consensus.evidence.MaxAgeDuration to be modified on-chain poses a security risk. Such flexibility could enable a node to reduce this duration to under 3 days, which is problematic. In such a scenario, evidence older than this reduced period (less than 3 days) would be deemed invalid, potentially opening a attack window for fraud proofs to be submitted to the rollup. (Especially, the common setting of challenge period of rollup is 3-14 days).
To maintain consistency with staking.UnbondingTime, the parmeter consensus.evidence.MaxAgeDuration should remain unchanged by on-chain governance. This commit fixes the typo.

Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

We shouldn't merge this PR because it isn't a typo. I agree the param likely shouldn't be changeable by governance but it currently is changeable by governance. See this test.
Instead of this PR, we should make a CIP to convert this param from governance modifiable to unmodifiable.

Agreed on closing this PR. The celestia-app specifications also list it as one that is modifiable by governance.

Contributor

Yeah you are right, I agree with you. Simply modifying this CIP would cause the implementation not to match the protocol.
I am interested in these settings (such as consensus.evidence.MaxAgeDuration and consensus.evidence.MaxAgeNumBlocks), because I realized that these settings may introduce security risk (Long Range Attack for PoS). Is there any chance we can come up with a new CIP on this issue?

Yes, absolutely. Please feel free to do so in the forum: https://forum.celestia.org/c/celestia-improvement-proposal-cip/31

what is your ID on the forum @caomingpei ?


[BUG] Invalid migration file. Must contain exactly one 'Migration' subclass

Describe the bug
cannot add some initial datas using migration file at the first time
To Reproduce

after setup models and create database within postgresql,
run cmd: conduit db generate
writing code that add entries into database in the migration file.
run cmd: conduit db upgrade --connect postgres://heroes_user:Abc@1234@localhost:5432/heroes
see the error Invalid migration file. Must contain exactly one 'Migration' subclass. File: '..../projectroot/migrations/00000001_initial.migration.dart'.

Expected behavior
adding some entries into database.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS:  window 10
Browser chrome
Version: 3.2.9

@MansonLuo I've released 3.2.10, can you check that this issue is resolved?

I checked on Windows version 3.2.10, everything works fine. Thanks a lot  @j4qfrost

everything work fine, all fixed. thank you.

all fixed.

but, after run cmd 'conduit db upgrade --connect postgres://heroes_user:password@localhost:5432/heroes' from tutorial, it did connectting to sql server, and create the database, but it did't insert initial data defined in seed() method.
and after rerun 'conduit serve', navigate broswer to url '/heroes', it shows me '{"error":"unable to connect to database"}'
i cannot found solutino, maybe it need run connecting db cmd by manully?

this is my postgres.

@j4qfrost

it need config.yaml to keep database connection info.

close


Android Basics issue: Incorrect instruction and function name

URL of codelab
https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fandroid-basics-kotlin-write-instrumentation-tests#3
In which task and step of the codelab can this issue be found?
Write Instrumentation Tests - 4. Writing Your First Instrumentation Test - Step 4 of first section
Describe the problem
The testing function is initially called 'calculate_20_percent_tip()' but is later referred to and given in code as 'calculate_default_tip()
Steps to reproduce?

Go to... https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fandroid-basics-kotlin-write-instrumentation-tests#3
Scroll to... step 4
See error... Crossreferencing with later instructions in code in subsection "Implement the Test function"

Versions
Android Studio version: Android Studio Bumblebee | 2021.1.1 Patch 2
API version of the emulator:
Additional information
Initial instruction:

Later code:

Duplicate of #306, #286, #280, #277, #269, #251, #250, #249
@profess
Thank you for reaching out to us. The typo is fixed and will be published soon.


Sidebar draggable

Hello.
How can I make a draggable sidebar on mobile, as in this example of materializecss?
Thank you
http://materializecss.com/side-nav.html

Up :)


php5-fpm : unrecognized service

It looks like the latest version of the original homestead now uses PHP7, so php7.0-fpm has been installed instead, and the scripts in this project might need to be updated to reflect that.

Indeed - working on it! Thanks!

Fixed


CVE displayed twice on a package page

If a CVE is included in two open groups, then the CVE is displayed twice in the 'open' section instead of grouped by.

fixed in master