Handle both minimum and maximum duration for a turn

This is the PR promised in #117. It is an overhaul of NanoTimer, extending it to have both a minimum and maximum wait time. My understanding of the desired game logic is as follows:

A turn takes AT MOST as long as permitted by the timeout.
A turn takes AT LEAST as long as 1s/TPS to make sure the game does not run faster than the desired tick speed.
A turn completes as soon as all bot intents are available.

The old implementation had no notion of two separate bounds. It simply set the turn timeout to max(1/TPS, turnTimeout). The timer did not enforce a lower bound. However, a turn was only completed when the timer elapsed, making it both upper and lower bound at the same time.
While this does mean the game did not run faster than it should, it limits the maximal speed of the game. For the sake of this argument, let's assume we have configured max tick speed, meaning the configured turn timeout is active. Because we always needed to wait for the timer to elapse, the game could run no faster than 1/turnTimeout, even if the bot intents were all available much earlier.
The new implementation rectifies this and permits the game to run as fast as it can. It also makes the strategy for avoiding concurrent calls to onNextTurn more robust. As a general note, I am not convinced that the server in its entirety doesn't currently have concurrency issues unrelated to this PR. I'll need to do a more thorough investigation.

I refactored the run method! I started with your changes and fixed the issues I pointed out above. While I was working on that, I spotted some other possible changes that I felt made sense. I know loops with empty bodies are sometimes controversial, but I like them better than putting the last condition as if (foo) break in the body. I'm open to other changes, though.

I refactored the run method! I started with your changes and fixed the issues I pointed out above. While I was working on that, I spotted some other possible changes that I felt made sense. I know loops with empty bodies are sometimes controversial, but I like them better than putting the last condition as if (foo) break in the body. I'm open to other changes, though.

I like all your changes. So I will merge it in now.
I plan to do a release soon including this one. 😊👍


feat(partitioning-adapter): add partitioning-adapter as separate package

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/LokiJS-Forge/LokiJS2/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
[ ] Yes
[ ] No

Other information

Coverage decreased (-0.001%) to 94.708% when pulling 0a7ec85fa5fffa41b82f984bacc0e53d970e64ac on partitioning-adapter into cbcb0ab38b1f74fd67deba3024862209bae50904 on master.

Coverage remained the same at 94.709% when pulling 67aee34b9763b5b19ad770675b52291fbe73bf5d on partitioning-adapter into cbcb0ab38b1f74fd67deba3024862209bae50904 on master.


iOS: Firebase Messaging is not calling onMessage when sending a data only message.

Hi,
When the app is in the background, and I'm sending a data only message firebase_messaging is calling onResume callback, and when I resume/lunch the app it is not calling onMessage callback.
onResume is being called even without tapping on the notification.
But when the app is in foreground, the onMessage is being called.
Is this the expected behavior? Because in the documentation it is saying that onMessage will be called when the app is brought back to foreground.
On Android, it is working as expected, this issue is only on iOS.
I'm using version 5.1.2
firebase_messaging: ^5.1.2
FYI, I'm not using any other push messaging plugin.

@arsen
The issue at https://github.com/flutter/flutter/issues/36745 has been closed and moved here. Future collaboration on this issue will be done here.

@arsen Is the issue still relevant? Can you please check it using current stable flutter version v1.9.1+hotfix.2 and firebase_messaging 5.1.6?

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


Updates for Node version 4.x

There is still more to do with the source, so I don't expect this to be merged, but I wanted to get the conversation started.
The things that are still remaining are:

Check compilation for other preprocessor definitions (DEBUG, UNICODE, dynodbc)
Verify that it builds on OSX and Linux (I performed the update on a Windows machine)
Verify the tests

Right now, it builds correctly with the default settings, but most of the tests are failing, but I don't have the all of the test databases and ODBC connections configured correctly yet.

This looks GREAT!
I made the changes I mentioned above and it compiled and most tests succeeded on my Linux box with v4.0.0. Even though NAN is supposed to support v0.8, 0.10, 0.12, none of those compile for me. Just a few errors thrown though. Should be able to figure it out.

Here are some fixes I made that were working but now they are not: b15cbea9f787892adb761f1d6eb75d5b487a56c0. Have to run, but wanted to get these out there.

Correction, this branch works with 0.12.7 and 4.0.0: https://github.com/wankdanker/node-odbc/tree/fix-for-node-v0.12.7

This branch contains the remaining fixes for node 0.10.40 and 0.8.28: https://github.com/wankdanker/node-odbc/tree/fix-for-node-v0.10.40

Thanks! I'll integrate those changes into this pull request.  What should we change the version number of the package to? 1.1.9? 1.2.0? 2.0.0?

I'll take care of the version bump. It's going to be 1.2.0 though. Working on merging and releasing now.

Great, thanks!

Published<EMAIL_ADDRESS>to npm.


DEPLOYMENT

#Deployment
##User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information.
##Acceptance Criteria
GIVEN a Prework Study Guide website,
WHEN I visit the website using the URL,
THEN I can access my website from any browser

Hey,
Rahul! My apologies. Kind of new here. I was messing around, that was pre-work to a bootcamp class i am taking. Thanks for the offer!

okay, no issues,
keep enjoying codding :)


Can't find rewards of my delegators

In the database, I've found my pool, delegators of my pool but not rewards of delegators ( by addr_id found in the delegation table for my pool )

Please provide the SQL queries you are using.

select * from pool where hash='\xf784138ce22b62919022ca3439bef0b0d25518da4427bc5beabf4334';
=> 3 pools with the same hash, only the first has delegations
select * from delegation where pool_id = 124;
select * from stake_address left join delegation on stake_address.id=delegation.addr_id where pool_id=124;
=> 5 results
the first one is pool's owner addr_id = 22878;
"581de00115d7c23fd22a60d4306fe148752b41a71256c103465cd2e631c10a"
cardano-cli shelley query stake-address-gives
"581de00115d7c23fd22a60d4306fe148752b41a71256c103465cd2e631c10a": {
    "delegation": "f784138ce22b62919022ca3439bef0b0d25518da4427bc5beabf4334",
    "rewardAccountBalance":<PHONE_NUMBER>234
}

but "select * from reward where addr_id = 22878;" gives nothing

I have a work-in-progress branch at erikd/pool-fix . This splits the pool table into two separate tables pool_hash and pool_update and all other foreign references point to the pool_hash.
Hopefully this makes more sense. Comments welcome.

shelley-test=# select * from pool_hash where hash='\xf784138ce22b62919022ca3439bef0b0d25518da4427bc5beabf4334';
 id  |                            hash
-----+------------------------------------------------------------
 105 | \xf784138ce22b62919022ca3439bef0b0d25518da4427bc5beabf4334
(1 row)

shelley-test=# select * from pool_update ;
shelley-test=# select * from pool_update where hash_id = 105 ;
 id  | hash_id |   pledge    | reward_addr_id | meta | margin | fixed_cost | registered_tx_id
-----+---------+-------------+----------------+------+--------+------------+------------------
 124 |     105 |<PHONE_NUMBER>0 |          22878 |   82 |   0.05 |  100000000 |             2799
 277 |     105 |<PHONE_NUMBER>0 |          23200 |   82 |   0.05 |   10000000 |            19285
 298 |     105 |<PHONE_NUMBER>0 |          23200 |   82 |   0.05 |   10000000 |            27823
(3 rows)

Its seems good for me, pool updates are easier to understand. Rewards not inserted were related to a wrong pool_id due to pools updates ?

Yes, it seems that was the case.


Problems - icons are broken

Hi, using fontello for centuries now 👍
But since today when I download icons from fontello they are broken.
A complete new package, with cookies cleard, or using my config file, many icons are broken.
Like when you search for "person" and download them and open the demo.html.
1 is flat (1px height), the other is placed way too low:

What is going on?

Sorry, I see now that there already is a topic about this issue


PropTypes is now deprecated as of React 15.5

This PR adds the prop-types library to the package.json dependencies and updates index.js accordingly

Fixed with #483


nixosModules.MooseFS: Improve

Improvements to MooseFS NixOS module
This PR enhances the MooseFS module with the following improvements:
Key Changes :

Add CGI Server Service
Add Auto Initialize MooseFS
Fixed proper permissions and ownership handling
Improved directory creation management
Cleaner code structure

Testing :
Module have been testd with :

Master server configuration
Multiple chunkservers configuration
CGI web interface accessibility

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

How to use now :
services.moosefs = {
    masterHost = "<IP_ADDRESS>";
    master = {
      enable = true;
      autoInit = true;  # Active l'initialisation automatique
      openFirewall = true;
      exports = [
        "<IP_ADDRESS>/24 / rw,alldirs,admin,maproot=0:0"
      ];
    };
  };

or
services.moosefs = {
    masterHost = "<IP_ADDRESS>";
    master = {
      enable = true;
      # autoInit is false by default
      openFirewall = true;
      exports = [
        "<IP_ADDRESS>/24 / rw,alldirs,admin,maproot=0:0"
      ];
    };
  };

And you can run : mfsmaster-init

@GrahamcOfBorg test moosefs


protobufjs v7.3.3 removed dist directory causing Cesium build to fail when resolving protobufjs/dist directory

What happened?
Version 7.3.3 has removed the dist directory causing Cesium to fail in the build process. This happened in v7.3.1 and a similar issue was created here (#12034). v7.3.2 brought back the dist folder and that issue was ignored.
✘ [ERROR] Could not resolve "protobufjs/dist/minimal/protobuf.js"
 node_modules/@cesium/engine/Source/Core/GoogleEarthEnterpriseMetadata.js:1:26:
 1 │ import * as protobuf from "protobufjs/dist/minimal/protobuf.js";

This can be fixed by manually installing v7.3.2.
As suggested in the previous issue, it would be ideal to lock the protobufjs version, especially since this happened a second time.
Reproduction steps

Update/install latest cesium version with v7.3.3 of protobufjs.
Build. (vite)
Error is shown.

Sandcastle example
No response
Environment
Browser: Firefox 129.0.2
CesiumJS Version: 1.120.0
Operating System: Ubuntu 22.04

I aslo hava some question !!!!!!!!!

Thanks for bringing this up @stevethewright. We'll lock the working version of protobufjs in package.json.

Opened https://github.com/protobufjs/protobuf.js/issues/2022.

protobuf already released an updated version including the dist directory again so I'm going to close this https://github.com/protobufjs/protobuf.js/pull/2023
Please update your npm packages


Crypto::Subtle.constant_time_compare leaks whether size is equal

I looked at the source of Crypto::Subtle.constant_time_compare and the early return jumped into my eyes. This potentially leaks whether the strings are equal length.
If this is wanted then not advertising the method as constant time would be good.
require "benchmark"
require "crypto/subtle"
Benchmark.bm do |x|
  x.report("length equal"){ Crypto::Subtle.constant_time_compare("foo","bar") }
  x.report("length unequal"){ Crypto::Subtle.constant_time_compare("fo","bar") }
end
# returns
#                      user     system      total        real
# length equal     0.000000   0.000000   0.000000 (  0.000088)
# length unequal   0.000000   0.000000   0.000000 (  0.000005)

Best Regards

I would generally distrust anything "constant time" that is run through an optimiser.

It gives at least the impression of constant time runtime which I think is bad, what if some user of crystal depends on this feature.
I searched for uses and only found one in Crypto::Bcrypt::Password#== which compares hash's so this seems fine.
@RX14 true, is there something one could do in this case? I'd love to see a constant_time keyword for methods which fails the build when something is not constant time (after being optimized).

@madblobfish that isn't really feasible, considering that sometimes even assembly hand-crafted by experts is affected by the internals of different CPU architectures.

I looked at the libsodium equivalent function (sodium_memcmp) and both buffers must have the same length, by design. Since we accept slices/strings, they may both have a different length.
I think we should enhance the documentation to state that both arguments must have the exact same size. Maybe we should raise too, instead of returning false?

I thought some more about Crypto::Bcrypt::Password#== and got to the point that for hash functions the change in the output should be as large a possible for even small input changes.
This makes constant time comparing obsolete (There is no information gained from early finishing the compare, as long as the hash function is strong).
So the method could also be removed if not needed any more (I don't know if there are other plans for this function).

Huh... no? AFAIK comparing hashes for Bcrypt and similar code, requires a constant time compare function. Otherwise, this is an attack vector.
Can you point us to any literature that would say otherwise?

I'm happy to try to verify my claim, so I looked at some implementations:

JBCrypt: constant time
OpenBSD constant time
twin-bcrypt.js: L783  & L805: non constant time
crypt_blowfish (original source) non constant time

Only JBCrypt and OpenBSD do constant time compare. crypt_blowfish is extracted from the Jack The Ripper password cracking software and it makes sense to exit as early as possible there (no security problem).
Additionally I have looked though the original paper and found nothing indicating need for constant time compare. Also I didn't find a reference implementation. What I know is that cryptographic hash functions should exhibit the behaviour of big unpredictable change on small input changes (I derived this property from the pre-image resistance).
My conclusion: when unsure stay with the safer variant. This could protect against successful timing attacks when bcrypt is partly broken. I'm sorry for all the off-topic talk.

Thanks! I found a few sources that claim the same as you too, but still say that constant time compare is a good practice, and since both libsodium and OpenBSD use it, let's keep it :-)
I would still implement my above suggestions: document that the compared strings/slices must be of equal length, and raise if they're not.

This was already resolved with #3752 in 2016.

Uh, #3752 was never merged...

@jhass Whops I misread the icon :+1: thanks for catching

both arguments must have the exact same size. Maybe we should raise too, instead of returning false?

Please no.  This will create more security vulnerabilities and makes the code path & testing ternary instead of binary.

Consider any protocol where user/network supplied verifiers are compared (example: any shared secret hashing protocol like CRAM-MD5).

Now take a typical login example

http_server.handle_request do |req|
  # validate uses constant_time_compare
  if cram_md5.validate req["auth"]
    # success
  else
    auth_log.info { "#{user} login failed" }
    failed_login_counter.increment user, remote_addr
end

Logging, login failure thresholds, ip/user account blocking, etc are now bypassed.  The impact may be minimal as the comparison will never succeed, but it may allow stealth scanning.

Security did not improve.  raise still leaks the same (if not larger) timing info.


Upgrade to Scala 2.11

I would double check that things that use this library still work. Apart from that, :shipit:

I bumped the version to 0.9.0, so I suspect most things will need to opt-in to pulling it down.
I can bump to 1.0.0 if you think that would be better.  Though doing that feels kind of weird just to show a binary incompatibility, since 1.0 is special.


Use rails new feature Active Storage

With the update to rails 5.2 we could use the build in feature Active Storage.
https://blog.heroku.com/rails-active-storage
http://edgeguides.rubyonrails.org/active_storage_overview.html
https://evilmartians.com/chronicles/rails-5-2-active-storage-and-beyond
https://www.engineyard.com/blog/active-storage

It's done


[BUG]: Failed to Save LLMs

How are you running AnythingLLM?
Docker (local)
What happened?
When model selected, click save changes only to get the failed to save LLMs error.
Are there known steps to reproduce?

pull a  docker
run with the suggested command, adding  two more
--add-host=host.docker.internal:host-gateway --net=host
docker container error logs  (see below)
[TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.
prisma:info Starting a sqlite pool with 21 connections.
fatal: not a git repository (or any of the parent directories): .git
getGitVersion Command failed: git rev-parse HEAD
fatal: not a git repository (or any of the parent directories): .git

[TELEMETRY SENT] {
event: 'server_boot',
distinctId: 'bad38249-92b4-4bc4-9ef3-65431751adda',
properties: { commit: '--', runtime: 'docker' }
}
Primary server in HTTP mode listening on port 3001
[Event Logged] - update_llm_provider
[Event Logged] - update_llm_provider
[Event Logged] - update_llm_provider
[Event Logged] - update_llm_provider

I do not see an error log in those logs, only that the event for update was stored in the DB. There should be an error message in addition to Failed to Save LLM Settings. What LLM are you attempting to connect to?

llama2

@hittle2015 Using which provider? LMStudio, LocalAi, Ollama, etc etc

closed as stale


Update default index name to .kibana instead of .opensearch-dashboards

Fixes #607
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Ok, I think I've got it right this time!


Support AWS cfncluster definition in distributed_runtime

This seems like a reasonable feature to add in contrib/....

Automatically closing due to lack of recent activity. Thanks!


ERROR  Nuxt module should be a function in Nuxt 3.14.159

Environment

Operating System: Darwin
Node Version:     v20.17.0
Nuxt Version:     3.14.159
CLI Version:      3.15.0
Nitro Version:    2.10.3
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      default
Runtime Modules:  ./modules/test
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-5vkxur
Describe the bug
I'm using a local module (not 3rd party) that uses defineNuxtModule from @nuxt/kit and I get the following error: [09:20:27]  ERROR  Cannot start nuxt:  Nuxt module should be a function: ./modules/test
Additional context
I've seen a few more error reports like this, but none for local modules. Hence this ticket.
Logs
npm run dev

dev
nuxt dev

Nuxt 3.14.159 with Nitro 2.10.3                                                                                9:25:07 AM
9:25:07 AM
➜ Local:    http://localhost:3000/
➜ Network:  use --host to expose
ERROR  Cannot start nuxt:  Nuxt module should be a function: ./modules/test                                                          9:25:08 AM
at loadNuxtModuleInstance (node_modules/@nuxt/kit/dist/index.mjs:2460:11)
at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2389:47)
at async initNuxt (node_modules/nuxt/dist/index.mjs:4669:5)
at async NuxtDevServer._load (node_modules/nuxi/dist/chunks/dev2.mjs:1894:5)
at async NuxtDevServer.load (node_modules/nuxi/dist/chunks/dev2.mjs:1828:7)
at async NuxtDevServer.init (node_modules/nuxi/dist/chunks/dev2.mjs:1823:5)
at async Object.run (node_modules/nuxi/dist/chunks/dev-child.mjs:104:5)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1648:16)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1639:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.bd0a2fa0.mjs:1777:7)

for now you can use ./modules/test/module

let's track in https://github.com/nuxt/nuxt/issues/29838.

Apologies for not referencing: https://github.com/nuxt/nuxt/issues/29838


How to reload a page

I am using this pod to show card which are having textfields, i wanted to update only that specified page instead of creating all pages again.
can you help me on how to load some XYZ index instead of recreating all pages to update edited value.
Thanks,
Shabana

I think in this version, It can't reload pages because all properties relate to pagemenu is not open.
Is author @kitasuke considering to make this a feature to publish in the future?


Modular Java app can't create tensor object

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): YES
OS Platform and Distribution (e.g., Linux Ubuntu 16.04 x86_64): Windows 10 Pro
TensorFlow installed from (source or binary): Gradle dependence
TensorFlow version (use command below): 2.10.1
Java version (i.e., the output of java -version): 17.0.2
Java command line flags (e.g., GC parameters):
Python version (if transferring a model trained in Python):
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 12.3
GPU model and memory:

Describe the current behavior
Java Gradle project, as built from IntelliJ IDEA pattern, repeatedly reports a fatal warning on attempt to create a tensor object. See the code and log below. The error raises exception that is effectively intercepted by JavaFX runtime.
The project was found having Java module support. After this support has been removed from the project, code runs just fine. However, modularity is highly desired for the application.
Describe the expected behavior
After module access permissions (exports, open's) get fixed in tensorflow-core-platform, etc., all Java objects should be created just fine, as they are in non-modular edition of the project.
Code to reproduce the issue
excerpt from file src/main/java/module-info.java:
module com.varankin.ocrc.jfx
{
    requires org.tensorflow.ndarray;
    requires org.tensorflow;
}

excerpt from file build.gradle (remove shown lines to let code run with no error):
plugins
{
    id 'org.javamodularity.moduleplugin' version '1.8.12'
}
dependencies
{
    implementation 'org.tensorflow:tensorflow-core-platform:0.5.0'
}

excerpt from file src/main/java/com/varankin/ocrc:
package com.varankin.ocrc;
import org.tensorflow.*;
import org.tensorflow.ndarray.*;
import org.tensorflow.types.TFloat32;
import org.tensorflow.types.TInt32;

public class Inferencer
{
    public void image( float[][] data )
    {
            FloatNdArray data_nda = NdArrays.ofFloats( Shape.of( data.length, data[0].length ) );
            data_nda.elements( /* 0, */ 1 ).forEachIndexed( (ix,nda) -> nda.setFloat( data[(int)ix[0]][(int)ix[1]] ) );
            // OK before this line; any next line fails;
            TInt32 tdata_is = TInt32.scalarOf( 24 );
            TInt32 tdata_i = TInt32.tensorOf( Shape.of( 24, 24 ) );
            TFloat32 tdata_0 = TFloat32.tensorOf( Shape.of( 24, 24 ) );
            tdata_0.set( data_nda );
            TFloat32 tdata = TFloat32.tensorOf( data_nda );
    }
}

Other info / logs

Warning: Could not create an instance of class org.tensorflow.internal.c_api.presets.tensorflow: java.lang.IllegalAccessException: class org.bytedeco.javacpp.ClassProperties (in module org.bytedeco.javacpp) cannot access class org.tensorflow.internal.c_api.presets.tensorflow (in module org.tensorflow) because module org.tensorflow does not export org.tensorflow.internal.c_api.presets to module org.bytedeco.javacpp

Call stack has been wiped off by JavaFX, below is manual reproduction

com.varankin.ocrc.Inferencer.image
org.tensorflow.types.TInt32.scalarOf:44  -- same for TFloat32 methods
org.tensorflow.Tensor.of:128
org.tensorflow.RawTensor.allocate:109

Please do not hesitate to ask for runnable example if needed. Current project cannot be presented as-is because of IP protection requirements, and because it's bulky.

Can you build the head of the bazelcism branch and see if that works? I recall changing stuff in the module-info on that branch but I'm not sure if it's sufficient. If it still doesn't work try adding exports org.tensorflow.internal.c_api.presets to org.bytedeco.javacpp to the module info of tensorflow-core-native.

Oops, things start to go beyond my experience...
I have created sample project, based on official example. Please check with public GitHub link for branch "modular".
It reproduces the problem at commit 918567b97809afac605d6de57de5b5ffe2a1aebc. Failure points out to another issue, on a different API call, namely "TensorFlow.version()". That hints my problem was masked by another one. See attached call stack.
run202401071640.txt
As a work-around, I've added dependence on TensorFlow API for Windows, my current platform. That fixes the problem, as you can see at revision b66d7456fad9100dadeef4a44aa19bded2879767. There's hint in the doc for that topic, possibly I didn't understand it.
excerpt from file build.gradle
dependencies
{
    implementation 'org.tensorflow:tensorflow-core-platform:0.5.0'
    implementation("org.tensorflow:tensorflow-core-api:0.5.0:windows-x86_64")
}

If anybody thinks that the final fix was my extra action and selection of platform must happen automatically, please submit another ticket or repurpose this one. Anyway, all warnings mentioned in ticket description, still exist and are numerous.


DOCS DUMMY TEST

Pull request template

Describe the purpose of the change, the specific changes done in detail, and the issue you have fixed.
Motivation and context

[ ] Dependencies. If any, specify:
[ ] Open issue. If applicable, link:

Type of change

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that causes existing functionality to not work as expected)
[ ] Change requires a documentation update

What is the destination branch of this PR?

[ ] Main
[ ] Other. Specify:

How has this been tested?

Tests performed according to testing guidelines:
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review on my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] New and existing unit tests pass locally with my changes.

:warning: Only for Empathy members :warning: Sorry if there is any inconvenience :wink: Check your eDocs preview

⚠ Only for Empathy members ⚠ Sorry if there is any inconvenience 😉
Check your eDocs preview


Add functional tests

Is your feature request related to a problem? Please describe.
At the moment does not exist any test.
Describe the solution you'd like
The first step could be add functional tests on the current flow. Maybe is not necessary on django views, only test the apis. Because the views will desapear.
Describe alternatives you've considered
Nope
Additional context

At the moment we can test de API.

Login
Get jobs

I take this issue.


Can send private message to yourself,hide that button

I don't know whether that's a bug or not but it will be nice if we don't get any "send private message" button when we are viewing our profile

Can I work on this issue?

This isn't a bug; it's a fully-functional feature. Self-PMs are useful as a scratchpad for testing out Zulip formatting features, or as a notepad for self-reminders.
Closing.


feat: pass GNAP continue-token value to gnap client.continue()

Signed-off-by: Filip Burlacu<EMAIL_ADDRESS>

small PR, talwinder will need this for https://github.com/trustbloc/wallet/issues/1701


New Tabs styles

fixes #516
@laiseing Please update zeplin to include an example with multiple tab items side by side, so we can inspect the margin between them (I used 8px for now).

Zeplin screen: https://zpl.io/ad5ZvmK  with 4px margin

@laiseing Sizing fixed now, could you check again?


Upgrade Checkstyle 10.2 -> 10.16.0

This PR contains the following updates:

Package
Type
Update
Change

Checkstyle (source)
build
minor
10.2 -> 10.16.0

[ ] If you want to rebase/retry this PR, check this box

Warning
Renovate's suggested commit message is being replaced with improved initial commits to enable automerging. As a side effect, these suggested commit messages might have changed. Consider comparing the initial commit message and this message to determine the most suitable one. Please leave feedback in #sys-renovate.

Suggested commit message:
Upgrade Checkstyle 10.2 -> 10.12.0

See:
- https://checkstyle.sourceforge.io/releasenotes.html
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.3
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.3.1
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.3.2
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.3.3
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.3.4
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.4
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.5.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.6.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.7.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.8.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.8.1
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.9.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.9.1
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.9.2
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.9.3
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.10.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.11.0
- https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.12.0
- https://github.com/checkstyle/checkstyle/compare/checkstyle-10.2...checkstyle-10.12.0

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


Make use of ethrpc disconnect function in Augur Node

Story details: https://app.clubhouse.io/augur/story/13939

Scott said this is ok to merge as part of the other PRs related to the new ethrpc disconnect function.
https://github.com/AugurProject/augur.js/pull/527
https://github.com/ethereumjs/ethrpc/pull/105


dartdoc can't handle sky_engine containing SDK sources

dartdoc doesn't generate good docs (see http://docs.flutter.io and missing 'empty' link, "sky_engine" library, etc) because it has lost track of where the Dart SDK is.  This is likely related to a known issue in dartdoc (https://github.com/dart-lang/dartdoc/issues/1367) where we don't obey analysis option files or the other hints that the analyzer uses to figure these things out.
I believe it is likely that this PR triggered the problem:  https://github.com/flutter/engine/pull/3575.
This interacts badly with the canonicalization improvements in dartdoc 0.10.0, because it now matters more to dartdoc that it can find the SDK. @sethladd @Hixie @devoncarew

dart-lang/dartdoc#1385 addresses this


Inner grid gets default width and not parent grid's width

I'm not sure if this is a bug or feature but in any case, help is appreciated :)
My structure is like this:
Grid 1 with 12 columns
    div using all 12 cols
         Grid 12 columns
              ....

Now grid 1 gets the full width of the window but grid 2 for some reason defaults to 1280px. However if I resize the window grid 2 correctly sets itself to grid 1's width.
I tried initialWidth={window.innerWidth} with grid 2 but it politely ignored it and used 1280px.

I'll give this a shot - to be honest I haven't tried nested grids but of course there's no reason why it shouldn't work, aside from some potentially weird dragging issues.

By the way, this may help you get to the bottom of it - both ReactGridLayout and ResponsiveReactGridLayout mix in the WidthListeningMixin: https://github.com/STRML/react-grid-layout/blob/master/lib/mixins/WidthListeningMixin.js

There seems to be some sort of bug here in play but I got it to work with
componentDidMount: function(){
	setTimeout(function(){
		window.dispatchEvent(new Event('resize'));
	},1)
}

Not pretty but seems to work. I wonder if grid executes before DOM has been properly processed so it can't get width and goes to the default? Btw, jQuery $(window).trigger('resize') doesn't seem to work for this.

Please reopen if this is still an issue for you; these problems should be more or less solved with the new WidthProvider HOC.


nu_scripts: unstable-2024-03-20 -> unstable-2024-04-12

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for nu_scripts is: A place to share Nushell scripts with each other
meta.homepage for nu_scripts is: https://github.com/nushell/nu_scripts
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-04-02 in filename of file in /nix/store/y3a65ybqkxdpr93bsnmf2dqj89xpc61h-nu_scripts-unstable-2024-04-02

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
nu_scripts

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/y3a65ybqkxdpr93bsnmf2dqj89xpc61h-nu_scripts-unstable-2024-04-02 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nu_scripts https://github.com/r-ryantm/nixpkgs/archive/a2336a087f452cc151dac804c29158ae797e46d9.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a2336a087f452cc151dac804c29158ae797e46d9#nu_scripts

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/y3a65ybqkxdpr93bsnmf2dqj89xpc61h-nu_scripts-unstable-2024-04-02
ls -la /nix/store/y3a65ybqkxdpr93bsnmf2dqj89xpc61h-nu_scripts-unstable-2024-04-02/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

nu_scripts

Maintainer pings
cc @CardboardTurkey for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for nu_scripts is: A place to share Nushell scripts with each other
meta.homepage for nu_scripts is: https://github.com/nushell/nu_scripts
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-04-07 in filename of file in /nix/store/30k3g4nz0mbrhy7wv1zn1rzxm7fisisa-nu_scripts-unstable-2024-04-07

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
nu_scripts

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/30k3g4nz0mbrhy7wv1zn1rzxm7fisisa-nu_scripts-unstable-2024-04-07 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nu_scripts https://github.com/r-ryantm/nixpkgs/archive/e1e4b4ac95a5c6e8afb29a9e286e5b43b3621427.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/e1e4b4ac95a5c6e8afb29a9e286e5b43b3621427#nu_scripts

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/30k3g4nz0mbrhy7wv1zn1rzxm7fisisa-nu_scripts-unstable-2024-04-07
ls -la /nix/store/30k3g4nz0mbrhy7wv1zn1rzxm7fisisa-nu_scripts-unstable-2024-04-07/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

nu_scripts

Maintainer pings
cc @CardboardTurkey for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for nu_scripts is: A place to share Nushell scripts with each other
meta.homepage for nu_scripts is: https://github.com/nushell/nu_scripts
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-04-12 in filename of file in /nix/store/p1ph8zy69hfl7bl72m4f3hnarkgbhfk1-nu_scripts-unstable-2024-04-12

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
nu_scripts

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/p1ph8zy69hfl7bl72m4f3hnarkgbhfk1-nu_scripts-unstable-2024-04-12 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nu_scripts https://github.com/r-ryantm/nixpkgs/archive/eddbc23a925227d28aa6d51c1f9f319cae5bc1f6.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/eddbc23a925227d28aa6d51c1f9f319cae5bc1f6#nu_scripts

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/p1ph8zy69hfl7bl72m4f3hnarkgbhfk1-nu_scripts-unstable-2024-04-12
ls -la /nix/store/p1ph8zy69hfl7bl72m4f3hnarkgbhfk1-nu_scripts-unstable-2024-04-12/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

nu_scripts

Maintainer pings
cc @CardboardTurkey for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for nu_scripts is: A place to share Nushell scripts with each other
meta.homepage for nu_scripts is: https://github.com/nushell/nu_scripts
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-04-19 in filename of file in /nix/store/9jyf406alic15wbkzhr7nx5saykdskjk-nu_scripts-unstable-2024-04-19

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

nu_scripts

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/9jyf406alic15wbkzhr7nx5saykdskjk-nu_scripts-unstable-2024-04-19 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nu_scripts https://github.com/r-ryantm/nixpkgs/archive/73eb3e2b5d133ab7027c268174abe0e19f86a67e.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/73eb3e2b5d133ab7027c268174abe0e19f86a67e#nu_scripts

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9jyf406alic15wbkzhr7nx5saykdskjk-nu_scripts-unstable-2024-04-19
ls -la /nix/store/9jyf406alic15wbkzhr7nx5saykdskjk-nu_scripts-unstable-2024-04-19/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

nu_scripts

Maintainer pings
cc @CardboardTurkey for testing.


Mapping of cells output with actual inference image

Hi,
I am using inference for extracting cells objects. The output of detect is cropped and passed as an input to recognize. Now, recognize produces the cell objects for cropped table image. I want to map these cell bboxes on the actual image that was fed into the detection model. If you could provide some guidance on How should I map these to actual image input?

You will need to resize the bboxes. You can use the following formulas:
old_width > size of your cropped image
new_width > size of your original page image

new_xmin = int((xmin / old_width) * new_width)
new_ymin = int((ymin / old_height) * new_height)
new_xmax = int((xmax / old_width) * new_width)
new_ymax = int((ymax / old_height) * new_height)


Broken after 7th January commit

Hi there,
First of all thanks for your code, it's been very useful to me.
I noticed that it's not working on my side anymore since the commit you made on the 7th of January:
Here's my test:
echo '<?xml version="1.0" encoding="UTF-8"?><hello>ciao</hello>' | xml2json

Output:
{"hello":{}}

While it should be:
{"hello":"ciao"}

If I pull this version then it works.

@fracasula  Sorry for the trouble caused by my carelessness. Hope, it's already been fixed.
Check :)

@Cheedoong cool, it works now! Thanks :smile:


Request: passthrough as an option to parse rather than a property of the type

Consider making passthrough a property of the parse operation rather than of the type.
If you have some zod types and want to parse some nested structure without stripping out unrecognized keys (analogous to the usual TS type-checking behavior on anything but literals), then currently, I believe you have to add .passthrough() to every type and construct a parallel family of types. Simply doing .passthrough().parse() on the top-most type doesn't seem to do it.
If you want some parse operations to strip and others to not, it's impossible without creating two parallel families of types.

Sorry this is by design. I don't like "modes" or parse parameters, schemas in Zod are designed to be self contained. If you need both variants, just assign the "passthrough version" to a separate variable
const schema = z.object({ name: z.string() });
const passthroughSchema = schema.passthrough();

But it's not that simple, since you have to do this for every type, which is why you end up with two parallel DAGs of types - is this the intended DX?


Module not found: Default condition should be last one

Hello,
I am trying to use the library with React and Next npx create-next-app@latest
and I get
Failed to compile

./app/page.tsx:2:0
Module not found: Default condition should be last one
  1 | import Image from "next/image";
> 2 | import { RTCPeerConnection } from 'werift';
  3 |
  4 | export default function Home() {
  5 | 	const pc = new RTCPeerConnection({});

https://nextjs.org/docs/messages/module-not-found

After some digging around I found a solution that worked for me.
I went into the node_modules/werift/pacκage.json and changed the order of the exports like this
  "exports": {
    ".": {
      "types": "./lib/webrtc/src/index.d.ts", <------ Moved types first.
      "default": "./lib/webrtc/src/index.js" <------ Default second.
    },
    "./nonstandard": {
      "types": "./lib/webrtc/src/nonstandard/index.d.ts", <----- Same for non standard exports.
      "default": "./lib/webrtc/src/nonstandard/index.js"
    }
  },

and it seems to work. I am quite novice with typecript, I don't know if this happens to anyone else but I leave it here for others who may face the same issue.
(feel free to close the ticket if you deem staying open doesn't help anyone)

Thank you for your report.  I Fixed it


Update functions-dotnet-dependency-injection.md

While going through code snippet, I found a minor issue, which can cause issue to other who copy code from here.

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

Thanks, @ivj!
#sign-off


Add a "just deliver this notification to all current console users" mode

--once-and-done or something.
This would be for use when a management tool needs to tell people it's about to restart or something like that. All current console users get the notification (iterate over who looking for console users or use the PyObjC way).

+1!


feat: Compute args hash with comptime length

Benchmark results
Metrics with a significant change:

app_circuit_witness_generation_time_in_ms (FPC:fee_entrypoint_public): 14.6 (-73%)
protocol_circuit_input_size_in_bytes (private-kernel-init): 16,529 (-22%)
avm_simulation_time_ms (Token:constructor): 79.0 (-58%)
avm_simulation_time_ms (Token:_increase_public_balance): 15.8 (+225%)
avm_simulation_bytecode_size_in_bytes (FPC:constructor): 3,978 (-16%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,731
1,539
696 (-1%)
742 (-1%)
767

proof_construction_time_sha256_30_ms
22,700
6,069
2,762
2,775
2,794

proof_construction_time_sha256_100_ms
43,964
11,938 (+1%)
5,387
5,361 (-1%)
5,355 (-1%)

proof_construction_time_poseidon_hash_ms
78.0
34.0
34.0
59.0 (+2%)
87.0 (-1%)

proof_construction_time_poseidon_hash_30_ms
1,525
419
201
233 (+4%)
271 (-1%)

proof_construction_time_poseidon_hash_100_ms
5,659
1,514
670
738 (+4%)
750

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
4,612
8,260
15,556

l1_rollup_calldata_gas
52,876
97,736
187,180

l1_rollup_execution_gas
822,466 (-1%)
1,559,348 (-1%)
3,351,943

l2_block_processing_time_in_ms
267 (+7%)
442 (+2%)
786 (-4%)

l2_block_building_time_in_ms
4,558 (+1%)
8,946
17,836 (+1%)

l2_block_rollup_simulation_time_in_ms
4,558 (+1%)
8,946
17,835 (+1%)

l2_block_public_tx_process_time_in_ms
4,534 (+1%)
8,916
17,805 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
2,792 (+3%)
3,692 (+1%)

node_database_size_in_bytes
12,415,216
16,339,184

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
simulation_time_in_ms
input_size_in_bytes
output_size_in_bytes

private-kernel-init
62.3 (-13%)
:warning: 16,529 (-22%)
45,629 (+2%)

private-kernel-inner
126 (-8%)
66,177 (-8%)
45,629 (+1%)

private-kernel-reset-tiny
287 (-9%)
58,649 (-9%)
45,629 (+2%)

private-kernel-tail
151
49,925 (-1%)
60,715 (+2%)

public-kernel-app-logic
52.5 (+1%)
114,697
79,670

public-kernel-tail
493 (+1%)
487,098
16,414

public-kernel-setup
51.8
114,697
79,670

private-kernel-reset-small
292 (+1%)
66,345
45,629

public-kernel-teardown
52.0
114,697
79,670

Stats on running time collected for app circuits

Function
input_size_in_bytes
output_size_in_bytes
witness_generation_time_in_ms

ContractClassRegisterer:register
1,344
11,731
342 (-1%)

ContractInstanceDeployer:deploy
1,408
11,731
35.2

MultiCallEntrypoint:entrypoint
1,920
11,731
421 (-4%)

SchnorrAccount:constructor
1,312
11,731
102 (+2%)

SchnorrAccount:entrypoint
2,336
11,731
398 (-3%)

Benchmarking:create_note
1,344
11,731
100 (-2%)

FeeJuice:deploy
1,376
11,731
414

FeeJuice:claim
1,344
11,731
52.5 (+3%)

Token:privately_mint_private_note
1,280
11,731
112 (-3%)

Token:transfer
1,312
11,731
152 (-7%)

FPC:fee_entrypoint_public
1,344
11,731
:warning: 14.6 (-73%)

SchnorrAccount:verify_private_authwit
1,280
11,731
25.4 (-4%)

Token:unshield
1,376
11,731
560 (-1%)

FPC:fee_entrypoint_private
1,376
11,731
749 (-1%)

AVM Simulation
Time to simulate various public functions in the AVM.

Function
time_ms
bytecode_size_in_bytes

Benchmarking:increment_balance
9.30 (-5%)
1,404 (-2%)

FeeJuice:_increase_public_balance
6.07 (-13%)
1,038 (-1%)

FeeJuice:set_portal
6.66 (-7%)
1,042 (-3%)

Token:constructor
:warning: 79.0 (-58%)
6,525 (-11%)

FPC:constructor
12.4 (-7%)
:warning: 3,978 (-16%)

FeeJuice:check_balance
3.03 (-10%)
922 (-1%)

Token:assert_minter_and_mint
4.75 (-23%)
1,232 (-2%)

Token:mint_public
7.34 (-9%)
1,900 (-2%)

AuthRegistry:set_authorized
2.65 (-16%)
464

FPC:prepare_fee
50.6 (-19%)
1,063 (-1%)

FPC:pay_refund
30.2 (-11%)
1,480 (-1%)

Token:_increase_public_balance
:warning: 15.8 (+225%)
1,083 (-1%)

FPC:pay_refund_with_shielded_rebate
44.8 (+11%)
1,369 (-1%)

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.685 (+16%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
2.12 (-3%)
3.86 (-1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.110 (-3%)
0.108 (-1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
10.8 (-2%)
18.4 (-1%)
30.6 (+1%)
59.7 (+2%)
112 (-1%)

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.104 (-2%)
0.107 (-1%)
0.0996
0.103 (+1%)
0.101

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
14.1 (-2%)
25.5 (-3%)
43.0 (-2%)
82.9 (+1%)
159 (-1%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
108
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.110 (-1%)
0.103 (-3%)
0.0992 (-2%)
0.103 (+1%)
0.100 (-1%)

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
16.1 (-2%)
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
131 (-1%)
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.104 (-2%)
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
68,762 (-5%)
666,728 (-1%)

Transaction size based on fee payment method
| Metric |  |
| - |  |


Computational Social Scientists

Yuki Shiraito, UMichi
https://lsa.umich.edu/polisci/people/faculty/shiraito.html
Daniel Hopkins, UPenn
https://live-sas-www-polisci.pantheon.sas.upenn.edu/people/standing-faculty/daniel-hopkins
Dean Knox, UPenn
https://oid.wharton.upenn.edu/profile/dcknox/
Naijia Liu, Harvard
https://www.gov.harvard.edu/directory/naijia-liu/
Melissa Dell, Harvard
https://dell-research-harvard.github.io/
Kenneth Benoit, Singapore Management University
https://kenbenoit.net/
Francisco Cantu, University of Houston
https://franciscocantu.github.io

Thank you for the info. Added and closed the issue for now


[DRAFT] Add external texture support (Vulkan)

This builds on top of PR https://github.com/godotengine/godot/pull/96982 to add external texture support for Vulkan.
This is an unfinished work-in-progress.
I ended up splitting this off into its own PR to finish later after I discovered that this will only work with Android API level 26 or higher. Presently, we have an API minimum of 21, which prevents this code from compiling.
So, I'll save this until after we increase the API minimum to 21 or higher. (Another option is including the code, but then requiring users to build with scons ndk_platform=android-26 in order to support this feature, but it wouldn't be included in official builds.)

According to https://composables.com/android-distribution-chart, we go from 99.7% to 95.4% coverage if we raise the min API from 21 to 26.

I think we can do that, it might take a while for us to bump min version to android-26 I fear, given the current metrics. Phasing out old devices is taking a very long time, and a number of users would be upset if we cut off 5% of the addressable market.

That makes sense!
We discussed this at the XR team meeting last night (as the primary use case for this is ARCore support), and one solution we discussed was just having the 'godot_arcore' project distribute its own Android export templates that were compiled with scons ndk_platform=android-26, since folks will already need to download the ARCore GDExtension from there.
I personally like this solution: it keeps Godot's base Android support widely compatible (which is what is needed by most people), while having all the tools for doing ARCore (which is a much less common use-case) easily available for those who need them.


Additional Information

Testing to see if it's worth adding links to TFA's spec sheet & components list when the ingredient quanitities are disclosed.

Great idea, just needs to be done at the database level!


catalyst ingest-exchange hangs randomly

Happens randomly.
Maybe on connection-interruptions(have a bad connection at the moment) but there is no Error or so.
Just The Progress-Bar and the Time will not changed anymore.
There should be an Error-Message or an automatic continue when an error occurs
I use catalyst 0.5.18

@avolution, thanks for reporting this.
Have you noticed if this behaviour is unique to a special set of parameters (like an exchange)?
Thanks

@special parameter
It was with Bitfinex as the exchange
otherwise it happen with start and end parameter also without start and end (so whole history)

Hi @avolution , are you still experiencing this issue?

@EmbarAlmog
I do not working in backtesting at the moment.
So I do not come in touch with it again currently.
Do you was able to reproduce it?

@EmbarAlmog :
I will do

@EmbarAlmog :
I am now back to that topic and it failed again many times.
For reproduction you can use something like this:
https://nshipster.com/network-link-conditioner/
Then you can setup a bad connection and it should fail.
A logging with more informations would be also great as an improvement.
There is this “—verbose” mode but there it will be only one entry per pair instead of all in one progress bar.

Here an output of a failed execution
Maybe it will help to find the reason
First i have cleared the env with
catalyst clean-exchange -x bitfinex
Then the execution
user$ catalyst ingest-exchange -x bitfinex -f minute --verbose
Trying to ingest exchange bundle bitfinex...
[====================================]  Ingesting minute price data for agi_btc on bitfinex:  100%
[====================================]  Ingesting minute price data for agi_eth on bitfinex:  100%
[====================================]  Ingesting minute price data for agi_usd on bitfinex:  100%
[====================================]  Ingesting minute price data for aid_btc on bitfinex:  100%
[====================================]  Ingesting minute price data for aid_eth on bitfinex:  100%
...
[====================================]  Ingesting minute price data for bat_btc on bitfinex:  100%
[====================================]  Ingesting minute price data for bat_eth on bitfinex:  100%
[====================================]  Ingesting minute price data for bat_usd on bitfinex:  100%
[===================                 ]  Ingesting minute price data for bch_btc on bitfinex:   53%  0d 00:00:22

**** Now nothing happens anymore *****
^C
Aborted!

Hi @avolution,
are you still experiencing this issue?
If so, please feel free to reopen..
Thanks!


Match/Case API in 2.0.1

Hi Daniel,
I see you removed the Case(T, Supplier<R>) method in 2.0.1.
Can you explain why?
In my mind think isn't only useful but also the preferred way of using the Match API.
  Match(dbtype).of(
   Case("h2", H2Templates::new),
   Case("mysql", MySQLTemplates::new)
  )

In 2.0.1 we are forced to wrap the value with a $(...) pattern.
Thanks

Hi Edgar,
there where ambiguities (see #1207). I had to remove Case methods to fix it.
I looks like I removed too many methods. In fact I can add more methods having a Supplier.
Only the Case(T, Function) needs to be removed because it introduces ambiguities.
I will fix that and prepare a 2.0.2 today. It will be available tomorrow. I have also a For fix in the pipeline.
Greets
Daniel
import javaslang.API.Match.Case;
import javaslang.API.Match.Pattern0;

import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;

import static javaslang.API.$;

public class Test {

    public static void main(String[] args) {

        // Case("1", o -> "ok"); // Not possible, would lead to ambiguities
        Case("1", () -> "ok");
        Case("1", "ok");

        Predicate<String> p = s -> true;
        Case(p, o -> "ok"); // Ambiguous, if Case *XXX* is present (see below)
        Case(p, () -> "ok");
        Case(p, "ok");

        Case(o -> true, o -> "ok"); // Ambiguous, if Case *XXX* is present (see below)
        Case(o -> true, () -> "ok");
        Case(o -> true, "ok");

        Case($("1"), o -> "ok"); // Ambiguous, if Case *XXX* is present (see below)
        Case($("1"), () -> "ok");
        Case($("1"), "ok");

    }

    // -- R

//    // *XXX* => leads to ambiguities (see above)
//    public static <T, R> Case<T, R> Case(T value, Function<? super T, ? extends R> f) {
//        return null;
//    }

    public static <T, R> Case<T, R> Case(T value, Supplier<? extends R> f) {
        return null;
    }

    public static <T, R> Case<T, R> Case(T value, R retVal) {
        return null;
    }

    // -- Predicate

    public static <T, R> Case<T, R> Case(Predicate<? super T> predicate, Function<? super T, ? extends R> f) {
        return null;
    }

    // not part of 2.0.1 but may be added
    public static <T, R> Case<T, R> Case(Predicate<? super T> predicate, Supplier<? extends R> f) {
        return null;
    }

    public static <T, R> Case<T, R> Case(Predicate<? super T> predicate, R retVal) {
        return null;
    }

    // -- Pattern0

    public static <T, R> Case<T, R> Case(Pattern0<T> pattern, Function<? super T, ? extends R> f) {
        return null;
    }

    // not part of 2.0.1 but may be added
    public static <T, R> Case<T, R> Case(Pattern0<T> pattern, Supplier<? extends R> f) {
        return null;
    }

    public static <T, R> Case<T, R> Case(Pattern0<T> pattern, R retVal) {
        return null;
    }
}

What if you provide a Case(T, *) where * is a Function or Supplier. Then inside the Case(T, *) you test for predicate or not:
Case(T value, Supplier supplier) {
  final Predicate predicate;
  if (value instanceof Predicate) {
     predicate = (Predicate) value;
  } else {
     predicate = $(value);
  }
  return Case(predicate, supplier);
}

does it help?
Also, think a built-in default case will be helpful too:
Match(value).of(
  Case(1, "1"),
  Case(2, "2"),
  Case_("?"),
);

Or:
Match(value).of(
  Case(1, "1"),
  Case(2, "2"),
  Case_(() -> {
    throw new IllegalArgumentException(value);
  }),
);

I suggest Case_ but this is just an example, you can pick a better name.
Ideally/Optionally, the special Case_ could throw an Exception:
Match(value).of(
  Case(1, "1"),
  Case(2, "2"),
  Case_(IllegalArgumentException::new);
  }),
);

What do you think?

does it help?

We don't need it. All the Case methods which are not commented out in the example I provided above are valid. Only the method I marked with *XXX* is not possible.

Also, think a built-in default case will be helpful too

We write the default case like in Scala:
// scala
o match {
    case _ => "?"
}
```

```java
// javaslang
Match(o).of(
    Case($(), "?")
)

Match(o).option(
    // cases
).getOrElse("?")

Match(o).option(
    // cases
).getOrElseThrow(IllegalArgumentException::new)

Ideally/Optionally, the special Case_ could throw an Exception

Actually it does. If no Case matches a MatchError is thrown.

my bad!
I didn't get the comments on XXX methods and yes! Match().option is what I need it!
Looking forward for 2.0.2
Thanks!

Many thanks for your finding. Next time I will take more care when changing APIs.

Edgar, I can't manage to publish 2.0.2 today. I'm on vacation with my family starting tomorrow for one week. I want to get the time to test it before it gets released.
- Daniel

I can wait :)
Enjoy it!

Thx! :)

@jknack I managed to release it today. See https://github.com/javaslang/javaslang/releases/tag/v2.0.2

hehehe you rock man!

:-)


Implement proposal detail vote and deposits panels

Made custom vote option enum for gql to match with the ones in server
Created navigation tabs using NavLink
Created subrouter for the tabs for ProposalDetailScreen
Integrated proposal votes and proposal deposit queries
Created ProposalVotesPanel and ProposalDepositsPanel
Fixed the NaN values on TallyResultIndicator

Screenshots

Desktop
Mobile

based on #187 #195
refs #128

merge for hotfix to tally result and vote options first


Check event filter if null or blank.

This change is

Current dependencies on/for this PR:

main

PR #1035   👈

This comment was auto-generated by Graphite.


[docs] Outdated FeaturedPost component?

Duplicates

[X] I have searched the existing issues

Related page
https://github.com/mui/material-ui/blob/685c72dfaf840f4d5b7a3ab738ddcabd74418823/docs/data/material/getting-started/templates/blog/FeaturedPost.tsx#L26
Kind of issue
Other
Issue description
I think the {{flex:1}} is unnecessary here, as the display for the element computes to block in the browser, so either it should change to `{{display:'flex', flex: 1}} or get removed.
https://github.com/mui/material-ui/blob/685c72dfaf840f4d5b7a3ab738ddcabd74418823/docs/data/material/getting-started/templates/blog/FeaturedPost.tsx#L26
Context 🔦
No response

The flex prop should be used on a child of an element with display: flex, not on the element itself.
In this particular case, it seems that the layout looks the same without the flex property. The flex-basis is auto by default and the CardContent tries to occupy the entire available width. Feel free to create a PR to remove the sx prop.

Hi @behrangsa , may i go ahead with it? if anyone is not working on it

@Vivek-Prajapatii let me do it in a min... Helps me with learning React. :)

This CSS property is required. If removed, and with a short tex, the layout looks like this:

:man_facepalming:


When pyiceberg loads Iceberg tables data into memory, dictionary encoding is not applied for columns

Apache Iceberg version
0.7.0
Please describe the bug 🐞
When I try to load large dataset as below, string columns data is stored in its original, uncompressed form, leading to increased memory usage which leads to out-of-memory errors.
from pyiceberg.catalog import load_catalog
from pyiceberg.expressions import GreaterThanOrEqual
catalog = load_catalog("default")
table = catalog.load_table("test.table1")
table.scan(
selected_fields=("id", "string_cols1", "string_cols2"),
).to_arrow()
To avoid these issues, it's best to use dictionary encoding, especially for columns with low cardinality, where values are repeated frequently.

@learningkeeda Thanks for opening this issue. I would love to understand more about how the data is stored. I'm not an Arrow expert, but I would suspect when data is dictionary encoded in Parquet, Arrow would also do this for their memory model, but we would need to do some checks there.


Read-only widget attributes

This enables read-only widget attributes, for widget attributes that are only set from the JavaScript side.
from ipywidgets import *
from traitlets import Int

class Foo(Widget):
    bar = Int(read_only=True)

foo = Foo()

foo.bar = 3  # Raises a TraitError

Although, one can still use the following context manager, which is used internally when setting state from the JavaScript side.
with foo._disable_read_only_ness():
    foo.bar = 3

@jdfreder let me know what you think of this.

I think this is a cool idea.  I'm a bit hesitant, in that

I'm surprised there isn't already a read-only property of traits, i.e. config=true stuff may benifit from something like this.
It's unclear to me how this would be done in Javascript.  I definitely don't think that needs to be done here, but it would probably be in our best interest to do it in Javascript too eventually.

I need this for values that are set by the JavaScript side.
Besides, I guess that we are too close to 4.0 to ship this in traitlets, but it should be possible to move it to the traitlets in the future, in a backward compatible way, if it is useful there.

No, I don't think it's necessary to move it upstream, I was just surprised something like it didn't already exist.  It's okay here, for now.

Renamed to _allow_write.

This is great, thanks @SylvainCorlay .


CreateProject: when the last part of the path is not a valid APL name...

... then that should not become the default for a missing project name.

Fixed in 0.40.0: throws an error now.


Support creating symbolic links to dynamic destinations

There is a general interest in supporting dynamic filesystem locations based on values such as versions, and platform OSes and CPU architectures.  In #312, we discuss implementing this for the pkg_filegroup framework.
Users may want to create symbolic links to these dynamically-named destinations.  To do this, they either need to share a template, or either have or be directly provided with information via a label.  Template sharing should be avoided, as this can place an additional maintenance burden on users.
The other options potentially come with complexity of actually calculating the desired destination without arbitrarily restricting the user.  Such restrictions should be avoided if possible, but it may not be avoidable to do so w/o creating additional complexity.
Some potential options and pitfalls are discussed in https://github.com/bazelbuild/rules_pkg/pull/293#discussion_r584810551, specifically this comment.

From https://github.com/bazelbuild/rules_pkg/pull/293#discussion_r585190693, and alluded to in the ticket summary, an option might be to associate links directly with basic parameters, but

Another option would be to create a links attribute associated with mapping rules (pkg_files), and then the individual rules could return a provider that represents symbolic links.  This is not supported by the provider we have currently have, though.  It would also make setting attributes difficult if not impossible.

The difficulties come in because there is nothing like a label_keyed_string_list_dict attribute supported by bazel at this time.

What about using PackageVariablesInfo for the template dict, in the same way we can dynamically create file names.
That seems like a win if we are dynamically naming, for example, an executable by CPU, and then we want a symlink to that. Using the same substitution dict will be easy to understand.


no data showing even though it says there are photos

see https://ccsearch.creativecommons.org/search?q=galium&provider=floraon&li=&lt=&searchBy

This is going to be fixed by https://github.com/creativecommons/cccatalog-api/issues/244


Spoke template needs update for v3.0.0

https://github.com/awslabs/aws-centralized-logging/blob/2a396e4633e07fccafb1937ed7564dca5c2b1120/deployment/centralized-logging-spoke.template#L135
It looks like the spoke template didn't get updated to v3.0.0, and breaks when deploying against the main v3.0.0 template.
The fix looks fairly simple, just update the environment variables to match the main template.
  LogStreamer:
    Type: AWS::Lambda::Function
    Properties:
      Description: Centralized Logging - Lambda function to stream logs cross account on ES Domain
      Environment:
        Variables:
          # V56536055 - 10/08/2018 - better logging capabilities
          LOG_LEVEL: 'INFO' #change to WARN, ERROR or DEBUG as needed
          DOMAIN_ENDPOINT: !Sub ${ESDomain}
          MASTER_ROLE: !Sub ${MasterRole}
          SESSION_ID: !Sub ${AWS::AccountId}-${AWS::Region}
          OWNER: Spoke
          SOLUTION: SO0009s
          CLUSTER_SIZE: !Ref ClusterSize
          UUID: !Sub ${CreateUniqueID.UUID}
          ANONYMOUS_DATA: !FindInMap [InstanceMap, send-data, SendAnonymousData]
      Handler: index.handler
      Role: !Sub ${LogStreamerRole.Arn}
      Code:
        S3Bucket: !Join ["-", [!FindInMap ["SourceCode", "General", "S3Bucket"], Ref: "AWS::Region"]]
        S3Key: !Join ["/", [!FindInMap ["SourceCode", "General", "KeyPrefix"],  "clog-indexing-service.zip"]]
      Runtime: nodejs8.10
      Timeout: 300

Thanks for bringing this to our notice, we will push the fix with our next release.

This issue has been addressed in the latest commit.


Add information about the docs being open source and that people can contribute

I didn't think about the best way to do that yet, but we should have somewhere that is a bit in your face (the footer maybe?) that mention the fact that the docs is open source and that anyone can contribute with a link to this repository. Sometimes that focus on the fact people can contribute, even if it means "just" creating an issue to help us fix typos or clarify a section.

Added a paragraph to the intro page. Also check in with Donna about adding a contribute button to the new Konstruct toolbar.


Dark Mode addition

Hello,
Can I add a dark mode feature to the weather app? @avinash201199

Hi ,
Can i also add some Dark mode features in the Weather app with @YashaKirad ? @avinash201199


You can't make Discord fullscreen by dragging the top bar to the top of your screen [Bug]

Describe the Bug

After installing BetterDiscord you can't make the window fullscreen by dragging the top of the Discord window, like you can for instance many browsers, and Discord before installing BetterDiscord. Why I'm frustrated is because if you use two screens and click the button to make your Discord fullscreen it might go to the wrong screen if only a sliver is on the one you don't want.
Expected Behavior
Discord is supposed to go fullscreen once you drag the top of it to the top of the screen.
Screenshots

It doesn't do anything as you can see, And it's supposed to go fullscreen

Like this

This is because you have enabled the transparent window setting. It is a bug with electron and something I cannot fix.


Update ksp-block-mysql-dump-in-pods.yaml

Not enforceable. @deepakcys

Changed BlockWithAudit to Block


Fix cloning when the same object instance is referenced from multiple nodes (and introduce structural cloning)

I ran into a problem with purifying some asts created by espree, where the loc property of multiple nodes will refer to the same object instance. This currently causes some of the cloned loc objects to come out empty -- see the failing test introduced in the first commit.
Looked into fixing it and found that the seen Map was actually used as a Set instead of holding the already cloned value, which seemed like a missed opportunity, so I tried implementing that. It required creating the clone before recursing in several cases.

@papandreou Ah Good catch!
Looks good to me so I'll cut a new patch release ASAP.
Thank you for your contribution!

v2.0.1 has been released. Thanks!


WEB: [DOM] Password field is not contained in a form

Displaying a password TextField on web results in console output that reads:
[DOM] Password field is not contained in a form

Flutter version:
Flutter 1.26.0-17.2.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision 79b49b9e10 (13 days ago) • 2021-02-03 15:33:39 -0800
Engine • revision 2c527d6c7e
Tools • Dart 2.12.0 (build 2.12.0-259.8.beta)

Hi @matthew-carroll
Is there any minimal reproducible code sample? I'm not sure how to create a password TextField.
Thank you

I believe a TextField that is set to obscure will automatically use a password field on web.

Hi @matthew-carroll
I cannot reproduce this issue on latest Dev channel using the code bellow. Could you please provide the steps to reproduce the issue?

code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
          appBar: AppBar(),
          body: Center(
            child: TextField(
              obscureText: true,
            ),
          ),
        ),
      );
}

flutter doctor -v
[✓] Flutter (Channel master, 1.27.0-5.0.pre.45, on macOS 11.2.1 20D74 darwin-x64, locale en-AO)
    • Flutter version 1.27.0-5.0.pre.45 at /Users/pedromassango/Code/flutter_master
    • Framework revision 90531179f5 (15 minutes ago), 2021-02-17 23:21:02 -0800
    • Engine revision 6993cb229b
    • Dart version 2.13.0 (build 2.13.0-30.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 53.1.5
    • Dart plugin version 203.6912

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (3 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • macOS (desktop)            • macos         • darwin-x64     • macOS 11.2.1 20D74 darwin-x64
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 88.0.4324.182

! Doctor found issues in 1 category.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Emmet > Wrap Individual Lines With Abbreviation erases $1

Issue Type: Bug
Applying the Emmet > Wrap Individual Lines With Abbreviation to text that contains a $1 or $2 erases the $ character and first digit after it.
For instance, we would expect  Emmet > Wrap Individual Lines With Abbreviation with a p*, when applied to this text:
more than $ billion in proceeds
more than $x billion in proceeds
more than $1 billion in proceeds
more than $2.1 billion in proceeds

to produce this result:

more than $ billion in proceeds

more than $x billion in proceeds

more than $1 billion in proceeds

more than $2.1 billion in proceeds

but actually it produces this unexpected result:

more than $ billion in proceeds

more than $x billion in proceeds

more than  billion in proceeds

more than .1 billion in proceeds

The $1 and $2 characters are unexpectedly erased!
The interim, preview state of the text, before committing the change, looks like this:

more than \$ billion in proceeds

more than \$x billion in proceeds

more than | billion in proceeds

more than |.1 billion in proceeds

The $1 and $2 appear to be changed to the | (cursor) character.
Please help!
thanks,
Marc
VS Code version: Code 1.24.1 (24f62626b222e9a8313213fb64b10d741a326288, 2018-06-13T17:41:50.128Z)
OS version: Darwin x64 15.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz (8 x 2300)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledvideo_decode: enabledvideo_encode: enabledvpx_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (2.08GB free)

Process Argv
/Applications/Visual Studio Code.app/Contents/MacOS/Electron

Screen Reader
no

VM
0%

Extensions: none

Thanks for reporting!
I have pushed a fix that will fix this.
One side effect is that during preview the $ will show a preceding . But the final value will be the right one.

Thanks for your fast action! You guys are great!


The workflow does not encode 'AVC' file

Hi,
I tried passing a video which had avc as a video stream, and the encode lambda was not able to recognise it. It gave, 'missing parameter' error.
When I created a manual job of the same video, it converted successfully.
I was wondering if there is any problem with the function in identifying the 'avc' file?
Thank You!!

The missing parameter error message is likely coming from the mediaconvert.createJob API call.
One thing you can do is compare the settings from the two jobs (the one that failed and the one that didn't) to see what's different between them. Here's how you can do that in the console:

Hi Daniel,
The problem is, jobs which have AVC or MOV are not even reaching the Mediaconvert, they are failing at Encoding.

Sorry for the misunderstanding, I thought the MediaConvert job was throwing an error.
Looking at the create-job API (https://docs.aws.amazon.com/cli/latest/reference/mediaconvert/create-job.html), the only option that has a name property is OutputGroups, so here's what I'd do to double check:
Modify the encode function to log the parameters before calling create-job, that is, change this:
https://github.com/awslabs/video-on-demand-on-aws/blob/97049f1d9a551f7dd357e1eedc3f075d11fa67ce/source/encode/index.js#L228
To this:
console.log(`SETTINGS:: ${JSON.stringify(job.Settings, null, 2)}`);
let data = await mediaconvert.createJob(job).promise();

By doing that, you should be able to get the failings parameters (in CloudWatch), compare them with a successful job, and (hopefully) spot the difference.


Amplitude With userid no any event reporting

When we use "amplitude-js": "8.21.2" for web tracking
We tracked the createProfiled of users, but found that some users only had userids and did not report any events.

Related Tracking Properties
Total Events
Total Sessions
First Seen
Last Seen
All "-"
Environment

JS SDK Version:"amplitude-js": "8.21.2"
Browser and Version: chrome
amplitude version: v1

Hi @arianshirepublik thanks for using Amplitude.
The Event Explorer and User Lookup tools only show "Events", not "Identify" operations. The state you described is possible if the user is only tracked with identify() or setUserId() calls which will dispatch an Identify to the server with the user identity updates (user_id, user_properties).
You can view user_properties on Events in the User Lookup, but they represent the current User state (from the server) applied to an Event at the time it was received.
More details here:
https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/#user-properties
Hope this helps!


error<EMAIL_ADDRESS>install: gulp bundle

Here is the error when i try to npm install (lncliweb):
https://justpaste.it/6na7b
Im using raspberry with raspbian.
node version: v8.11.3
npm: 6.2.0
gulp: [12:42:54] CLI version 3.9.1, [12:42:54] Local version 3.9.1

Ok closing. Node v10 was the couse. After installing v8 still had this problem, but afte removing whole directory and cloning it once more from repo, npm install went ok.


TypeError: Could not locate class 'adam'. Make sure custom classes are decorated with @keras.saving.register_keras_serializable()

Hi everyone,
I think there is a problem with the loading of a model that has been compiled providing the optimizer as a dict.
This does not happen if optimizer="adam" or optimizer=keras.optimizers.Adam()
Here the code that reproduces the issue:
model = keras.models.Sequential()
model.add(keras.layers.Dense(64, input_dim=3, activation='relu'))
model.add(keras.layers.Dense(32, activation='relu'))
model.add(keras.layers.Dense(1, activation='linear'))

model.compile(
    optimizer={
      "class_name": "Adam",
      "config": {
        "learning_rate": 0.01,
        "beta_1": 0.9,
        "beta_2": 0.999,
        "epsilon": 1e-7
      }
    },
    loss='mse'
)

keras.saving.save_model(model, 'model.keras')
loaded_model = keras.saving.load_model("model.keras")

The full traceback is:

Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/keras/src/saving/saving_lib.py", line 152, in load_model
return _load_model_from_fileobj(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/keras/src/saving/saving_lib.py", line 170, in _load_model_from_fileobj
model = deserialize_keras_object(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/keras/src/saving/serialization_lib.py", line 734, in deserialize_keras_object
instance.compile_from_config(compile_config)
File "/venv/lib/python3.11/site-packages/keras/src/trainers/trainer.py", line 870, in compile_from_config
config = serialization_lib.deserialize_keras_object(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/keras/src/saving/serialization_lib.py", line 594, in deserialize_keras_object
return {
^
File "/venv/lib/python3.11/site-packages/keras/src/saving/serialization_lib.py", line 595, in
key: deserialize_keras_object(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/keras/src/saving/serialization_lib.py", line 694, in deserialize_keras_object
cls = _retrieve_class_or_fn(
^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/keras/src/saving/serialization_lib.py", line 812, in _retrieve_class_or_fn
raise TypeError(
TypeError: Could not locate class 'adam'. Make sure custom classes are decorated with @keras.saving.register_keras_serializable(). Full object config: {'class_name': 'adam', 'config': {'learning_rate': 0.01, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07}}

I think that this is due to the fact that in this case the class_name field is serialized as "adam" (lowe case) and not "Adam" (capitalized) and thus in serialization_lib.py at line 803 obj is no resolved.
Thanks for your help.

Thanks for the report, this is fixed at HEAD. Note that passing optimizers as dicts isn't an officially supported API (officially supported APIs are to pass it as a string or as an Optimizer instance).


add parent-child relationship into Elasticsearch

check it here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-parent-field.html

the parent-child relationship does not allow to get get as response both documents from index. It will allow only to filter based on both documents. So at the moment we will stay with duplicats and probably get back to this issue later.


Hardcoded Alt keycode 56 prevents using another key

In function hkOnKeyboardKey() at line 206 of globaleventhook.cpp, the keycode 56 is hardcoded:
  if(g_enable_alt_release_exit && g_isOverView && e->keycode == 56 && e->state == WL_KEYBOARD_KEY_STATE_RELEASED) {

This prevents the shortcuts to be mapped with other keys like:
$mainMod = SUPER
bind = $mainMod,tab,hycov:toggleoverview

I suggest reading the equivalent of keycode 56 from the toggleoverview bind, so that it can be different from the Alt key

This doesn't seem to be a very high priority, I will support him when I have time, of course welcome to pr if you have time

当前插件接口并不支持从配置中查找某个命令绑定了什么按键,如果要这个就要自己做大量的工作去解析配置文件,而且每次触发都去解析哦一次太过于低效,我更倾向于在hycov中加一个选项去指定替代按键.like:
hycov {
  alt_release_key_replace = SUPER
}

done


Vxe-table Tree Data Virtual Scroll does not work when tree-config / transform = false

可复现的链接：
https://codesandbox.io/s/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-0tdjsm?file=/src/views/Demo1.vue
问题描述与截图：
In the codepen you will find 2 TreeTables. One with flat data with
:tree-config="{
transform: true,
rowField: 'id',
parentField: 'parentId',
expandAll: true,
}"
and one with hierchical data with
:tree-config="{
transform: false,
expandAll: true,
}"
The virtual scroller does not work for the second treetable (check in the inspector the class of the vxe-table. The first has is--virtual-y the second not)
期望的结果：
Both tables should have the virtual scolling available.
操作系统：
Windows 11
浏览器版本：
Edge Version 100.0.1185.50
vue 版本：
3.2.33
vxe-table 版本：
4.2.3

tree virtual scrolling can only be used if tree-config.transform is set.


Documentation example gallery

I wanted to ask how it's preferable to make the demonstrations section in the docs, three ways currently as I see it:

https://juliaimages.org/latest/examples/ using DemoCards.jl
https://beautiful.makie.org/dev/
Tutorial format like sciml: https://docs.sciml.ai/ModelingToolkit/stable/tutorials/acausal_components/

We can discuss that when we actually have things to demo/show off. For now it is perhaps a bit premature.
The simplest currently is to stick to tutorials that go more in depth for certain applications, and later we can try to organize that better.


Running in Docker container behind nginx-proxy, white screen on real-time-HTML

Hello,
I have your container running as part of my nginx-proxy setup, and I can get the report.html output just fine, but when I try to go get to the realtime HTML output, it's a white screen.  Important bits of the setup included below, can you please help me discern what I'm doing wrong?
Compose to bring up container:
goaccess:
image: allinurl/goaccess
container_name: goaccess
expose:
- "7890"
environment:
- VIRTUAL_HOST=goaccess.mydomain.com
- VIRTUAL_PORT=7890
- VIRTUAL_PROTO=http
volumes:
- "/opt/goaccess/data:/srv/data"
- "/opt/goaccess/html:/srv/report"
- "/var/log/nginx:/srv/logs:ro"
- "opt/goaccess/data/"
Config file:
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %v %h %^ %^ [%d:%t %^] "%m %q %H" %s %D "%U" "%u"
log-file /srv/logs/access.log
output /srv/report/index.html
real-time-html true
Stdout/stderr from the docker container:
Parsing... [30] [0/s]
.. [845] [0/s]
WebSocket server ready to accept new client connections

Sounds like the browser is not able to establish a connection to the WebSocket server. Please take a look at your browser's console (Ctrl+Shift+j in Chrome) and post back any error messages that may appear in there. Thanks.

@jskii Any updates on this?

Hey @allinurl. Sorry for the delay.
Nothing showing in the console whatsoever, excepting a 400 for favicon.ico for the subdomain.

@jskii Since I haven't played with nginx-proxy, would you be able to post exactly the steps to set it up  and how you run goaccess through it? that way I can try to reproduce the problem from my side. Thanks.

Similar issue. I'm running the docker Goaccess and access it via an Ngnix reverse proxy.
To replicate run the docker Goaccess images and configure a Nginx a similar reverse proxy
server {
        listen 443;
        server_name www.site.com
        location / {
             proxy_pass http://localhost:7890/;
             proxy_set_header Host $host;
             proxy_redirect http://localhost:7890/ /;
        }
}

When accessing the URL via Nginx i get an error 400 with no log.
curl https://www.site.com
< HTTP/1.1 400 Bad Request
< Server: nginx
< Content-Length: 0

I try using different origin and ws-url in the goaccess.conf with no luck.
Would you happen to have sample config of reverse proxy for Nginx or Apache?


[HC-797] CLI to generate JWT authentication tokens for service auth

CLI to manually generate JWT authentication tokens for secure service-to-service communication.
As of this change, we're not tracking these tokens server-side, therefore there's no way to revoke a token once issued except to change the signature secret.
Update:
Added config for "service" user type restrictions to allow unrestricted access for services.

PS. I will also soon need to a more JWT options for the OpenCRVS project like different algorithm support and asymmetric signing support rather than just a HMAC secret.

@rcrichton will do.
Let's have a blacklist for tokens as apposed to tracking all tokens. We 401 the tokens on that list. We can optimize that for users with tokens with expiry dates by dropping off tokens which would have expired.


Add header to changelog

All device repositories CHANGELOG files have this header and it is used by some automation scripts.
Changelog-entry: add header to CHANGELOG file
Signed-off-by: Alex Gonzalez<EMAIL_ADDRESS>

@balena-ci I self-certify!


🐛 An endpoint can only access the parameters defined during its registration.

Cf: #13

As the routing system does not evaluate all its potential routes, this bug seems not reproductible yet.
When the rework of the routing system is done, try to test this case:
    test "Parameters do not leak when falling back to wildcard route":
            var tree = Tree[string].new()
            tree.insert("/{api_version}/login/", "Logged In")
            tree.insert("/users/{id}/books/{title}", "I like this book")

            let result = tree.retrieve("/users/10/books/harry-potter").get()
            check(result.value == "I like this book")
            check(result.parameters.get("id") == "10")
            check(result.parameters.get("title") == "users") # But it should be "harry-potter"


Replace authentication with Cognito on DOI UI and DOI service

This should not require any dev team action, except for testing.
The basic authentication currently setup in the apache proxy will be replaced by a cognito authentication.

@ramesh-maddegoda is having inputs on how to use Cognito for:

react.js front-end
api backend through AWS api gateway

See ticket https://itsd-jira.jpl.nasa.gov/servicedesk/customer/portal/16/DSIO-1985

The cognito connection has been successfully tested on pds-gamma


Cloudflare Pages adapter

Describe the problem
Cloudflare Workers are now supported inside Cloudflare Pages as Functions.
Describe the proposed solution
Is it worth making an adapter for? Would there be any advantage over the Cloudflare Workers adapter?
Alternatives considered
No response
Importance
nice to have
Additional Information
No response

This already exists and was merged yesterday.

More information can be found here: https://github.com/sveltejs/kit/tree/master/packages/adapter-cloudflare


Some issues about generic_programming lecture

There are some differences between HTML and ipynb notebooks: line 250 in rst file:

Is it intentional or a mistake? line 260 rst file

difference between HTML and rst (jupyter notebook generated in jupyter lab)

I think "Understanding Multiple Dispatch in Julia" should be before "Exploring Type Trees". I found it more clear if I started with this section.

which style is correct: "i.e." or "i.e.," ?

Also the quoted link is broken:
Deducing and Declaring Types
We will discuss this in detail in "this lecture"

I am not sure where the OP got his lecture file from but in mine it looks a little bit different. So, I list the errors I find in my version, namely: [(http://compare-lectures.quantecon.org/jl/generic_programming.html#)]
Quoted links are broken

"When programming in Julia
There is no "encapsulation") and most custom types." And the general structure is badly formatted with unnecessary brackets etc

"In mathematics, a "Ring")".

This bracket problem persists across the lecture, I suspect there is a problem in structuring the links in .rst file

Thinking back to the mathematical motivation, "a Field)" is

@yolsever  Yes, I addressed this problem in https://github.com/QuantEcon/lecture-source-jl/issues/345#issue-381940232
and in https://github.com/QuantEcon/lecture-source-jl/issues/249#issue-377037499.

Since this involves lists in Jupinx, I think we can hold off on it for now.

Done

Same as 1.

I disagree. Multiple dispatch is when Julia will look at your tuple of argument types and traverse the method signatures to find the lowest parent tuple. That requires knowing what types are, how they have children and ancestors, etc. Also what methods and functions are.

The commas are more precise, done.