Text input has different gesture/cursor interaction compared to the native one

TextField
Tap Hitting Cursor
Tap Not Hitting Cursor
Long Tap Hitting Cursor
Long Tap Not Hitting Cursor

Flutter's Implementation
Move Cursor to Word Edge
Move Cursor to Word Edge
Move Cursor To Tapped Position
Move Cursor To Tapped Position

Native
Show Toolbar
Move Cursor to Word Edge
Move Cursor To Tapped Position (By grabbing the cursor)
Highlight Tapped Word

This is somehow an extension of this issue: https://github.com/flutter/flutter/issues/48434
The key point here is that flutter's implementation doesn't recognize hitting the cursor on tap down gesture.
I tried implementing custom gesture detector but the tricky part was finding out if cursor is hit or not. I first thought of checking if the hit point position is passing through the cursor's area, but found out that the native text field has some offset around the cursor to help user to grab the cursor even just by hitting the surrounding of it. I still couldn't figure out the surrounding offset and it would be great if there's a state that indicates whether the cursor in the text field is hit or not.
Is this a known issue and being implemented?

Code Sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: CupertinoTextField(),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel dev, 1.21.0-1.0.pre, on Mac OS X 10.15.6 19G73, locale en-GB)
    • Flutter version 1.21.0-1.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision f25bd9c55c (12 days ago), 2020-07-14 20:26:01 -0400
    • Engine revision 99c2b3a245
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 20bf2fcf56)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • 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-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (4 available)
    • iPhone 11 (mobile) • 7863E29F-EEE8-499E-BB28-6B111B76E3EE • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
    • macOS (desktop)    • macos                                • darwin-x64     • Mac OS X 10.15.6 19G73
    • Web Server (web)   • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome
      84.0.4147.89

• No issues found!

Related https://github.com/flutter/flutter/issues/32171

Same problem

Cursor drag behaviour related to gesture
Current behaviour:
long press before cursor can be draggable
Expected behaviour:
the cursor is already draggable, no long-press needed before

flutter doctor -v
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2021, locale en-GB)
    • Flutter version 1.20.2 at /Users/tahatesser/Code/flutter_stable
    • Framework revision bbfbf1770c (11 days ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • 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-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (1 available)
    • iPhone 11 (mobile) • A63D6F51-59F3-4A75-961F-3769709F3A92 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)

• No issues found!

Is this issue still prevalent in master? The text selection behavior described in the original post was recently updated in #111995

这是来自邮箱的自动回复。来信已收到，我会尽快回复给您。


Update visualizer.py - Cleaned message and terminal issue.

OS module imported for detecting OS and clearing terminal.

Used print to print the message.

It looks good. Thank you for your contribution ohksith!


fix: fix incorrect porting notes

These notes were correct in #604, but the addition in #1426 made them (and the workaround they describe) no longer necessary.

maintainer merge

bors merge


[RemoteCacheMetrics] Fix percentage bug and improve stats

This change

fixes the percentage shown, it was showing the inverse value (cache miss % instead of cache hit %)
adds absolute numbers for how many cache checks were performed and how many were misses
filters out local actions that don't do remote cache checks, as these are not relevant

Contributes to #90

Output before:
RemoteCacheMetrics: Collection of remote cache related metrics.
Total Remote Cache Check Duration: 24m 41s
Total Remote Download Outputs:     1h 1m 30s
Total Remote Upload Outputs:       16s
Percent cached remotely:           5,08%

Output after:
RemoteCacheMetrics: Collection of remote cache related metrics.
Number of cache checks:              12917
Number of cache misses:                921
Cache hit percentage:               92,87%
Time spend checking for cache hits: 24m 41s
Time spend downloading outputs:     1h 1m 30s
Time spend uploading outputs:       16s


Removed old node versions from AppVeyor and add node 9, 10 to CI

Fixes #591.

Coverage remained the same at 91.453% when pulling 071f0f86c6be87504c925c340677fcf94f76bd1a on fix-ci-appveyor into 1c5c2a208c8e448164549d770d360266f7230976 on master.

Coverage remained the same at 91.453% when pulling 8e7a9a6d8f779e116894a6d907c742f99fd3ea48 on fix-ci-appveyor into 1c5c2a208c8e448164549d770d360266f7230976 on master.


Consolidate the Rule and Task classes

These have diverged to the point that they now have different names. We should reunify them and move the resulting class into FileawayCore.

Crucial part of adding iOS support.

Finally done!


Feature: Checkpointing for T8codeMesh

This PR adds checkpointing for T8codeMesh. By this, routines like save_mesh and load_mesh are supported.
Closes #2044

Do you think the MPI failures are really unrelated?

No, I am not sure. I just know that we had stalling CI jobs before. And, looking trough the recent failures, I think it was not always the same elixir.

I get the feeling that the MPI tests are too big now and take too long. We probably have to split them up similar to the serial tests.

Yes, could be related to OOM issues, cf. https://github.com/trixi-framework/Trixi.jl/issues/1471.

I get the feeling that the MPI tests are too big now and take too long. We probably have to split them up similar to the serial tests.

Yes, could be related to OOM issues, cf. #1471.

I could narrow it down. It has something to do with Julia 10.1.4. With Julia 10.1.2 it does not stall. Investigating ...

Are you able to reproduce the problem locally?

Yes! With Julia 1.10.2 the t8code MPI tests run successfully. However, with Julia 1.10.4 the MPI test for elixir_advection_restart.jl 2D stalls for whatever reason. Running the elixir with MPI directly does not stall. No idea, right now, what's going on ...

Yes! With Julia 1.10.2 the t8code MPI tests run successfully. However, with Julia 1.10.4 the MPI test for elixir_advection_restart.jl 2D stalls for whatever reason. Running the elixir with MPI directly (not wrapped in a test set) does not stall. No idea, right now, what's going on ...

Are you sure it's related to the patch version bump? Are you using an identical Manifest.toml for both tests?

Yes! With Julia 1.10.2 the t8code MPI tests run successfully. However, with Julia 1.10.4 the MPI test for elixir_advection_restart.jl 2D stalls for whatever reason. Running the elixir with MPI directly (not wrapped in a test set) does not stall. No idea, right now, what's going on ...

Are you sure it's related to the patch version bump? Are you using an identical Manifest.toml for both tests?

Yes! Working from the exact same project folder. Just pointing the Julia binary to either 1.10.2 or 1.10.4.

So it consistently stalls with Julia 1.10.4, but consistently works with Julia 1.10.2 in multiple runs? Did you monitor RAM usage during the simulation?

So it consistently stalls with Julia 1.10.4, but consistently works with Julia 1.10.2 in multiple runs? Did you monitor RAM usage during the simulation?

Yes! RAM usage is not out of ordinary.

I think I found the bug causing the stalls in the MPI runs. It was a silent memory leak/segfault. I added the fixes in the last commit. Furthermore, I changed the t8code C interface a tiny bit to simplify the code on Trixi side. This PR has to wait for the next breaking t8code release and specifically for the merge of this PR: https://github.com/DLR-AMR/t8code/pull/1115.
I'll try to push for a major t8code release by the end of next week.

t8code 3.0.0 has been released and @jmark already updated t8code_jll.jl. Does T8code.jl need an update? Or is this good to go?

t8code 3.0.0 has been released and @jmark already updated t8code_jll.jl. Does T8code.jl need an update as well?

Yes, indeed! Working on that.

Concerning the failing invalidations check, see https://github.com/timholy/SnoopCompile.jl/issues/397

@benegee As expected, several tests fail since some routines became obsolete with the breaking t8code 3.0.0 release. We have to iron out these issues first.
I suggest we fix these problems in this PR https://github.com/trixi-framework/Trixi.jl/pull/1939 first since the changes a minimal on Trixi side. Then merge in this PR into the checkpointing PR.


Feature: Make numeric-sort handle numbers that have commas in them.

Make sure this class also handles numbers with commas in them; the default doesn't handle this nor does numeric-sort class.
https://kirka.lukeskywalk.com/pricelist.html

Done in PR: https://github.com/LeeWannacott/table-sort-js/pull/116


Will "/v1/history/get_actions" be deprecated ?

I'm currently on v1.4.1, and started my nodeos with command:

nodeos --http-server-address <IP_ADDRESS>:8888 --data-dir ~/eos/data --config-dir ~/eos/config --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --plugin eosio::net_api_plugin --filter-on xxx:transfer:

I've noticed that in EOSIO v1.4.3 Release, (#6220) Failed Deferred Transactions Were in History Plugin Results is fixed, and states that history_plugin was DEPRECATED in version 1.2.0 , implying future removal of this plugin.
I rely on api /v1/history/get_actions to get the actions of interest, so I wanna know:  Is this api part of history_plugin and affected by the #6220 bug ? If so, will this api removed in the future ?  Or is there an equivalent api can do its job ?

All APIs with the prefix /vi/history/ are indeed deprecated, and yes, the results you were retrieving using it were affected by #6220.  You should replay to be assured of clean results from that API.
You may expect the API to be removed in some future release.  Efforts to replace it are ongoing.  The Jungle Testnet is testing a version of the mongo plugin that can provide the history plugin APIs.  That may or may not be the solution that is eventually adopted into the base repository.

@jgiszczak Thank you for replying.
The release note said This does not affect the state of the chain.
I only use the api /v1/history/get_actions to see EOS coins people sent to  me , I don't submit anything.
In this case,  do I still need to replay ?


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_62311c98-a6ce-4de9-80bf-ea66cc5e37af/pull/1 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target_62311c98-a6ce-4de9-80bf-ea66cc5e37af.git

Docs Build status updates of commit 9d37201:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Archive_master_2019-09-27-03-31-06 has been deleted or has been force pushed: fatal: Couldn't find remote ref Archive_master_2019-09-27-03-31-06

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Jai/TLI 101.g -- QR Code Functionality to collaborate and show detailed graph and CSS

This PR introduces a collaborative feature to the dashboard that allows users to scan QR codes to access shared graphs with detailed analysis. Upon scanning the QR code, users are redirected to a new page where they can view graphs, their descriptions, and a detailed report on them collaboratively.
Key Features:

QR Code Generation: Users can generate QR codes linked to collaboration URLs, which can be shared with others.
QR Code Scanning: A clean, user-friendly interface is added to scan QR codes and display shared graphs and data.
Graph Display: Once the QR code is scanned, users are directed to a page where the graph is displayed with detailed analysis.
CSS Styling: Improved the interface's look and feel with custom CSS for a better user experience.
Clean Architecture: Ensured Clean Architecture is maintained throughout this whole process
Mobile Optimization: Optimized the CSS so that it looks good on phones as well

Backend:

APIs were designed for QR code generation and scanning.
Endpoints handle retrieving and sharing dashboard data, with robust error handling for invalid or unauthorized QR codes.
Backend functionality integrated using SOLID principles to follow Clean Architecture

SOLID Principles Used

Single Responsibility Principle (SRP)
SRP was followed as the share functionality was added to the UserRepository, which is responsible for user-related tasks like login, share, sign-up, etc. By including the share functionality within the UserRepository, the class maintains a single responsibility related to user management.

Open/Closed Principle (OCP)
OCP was applied as the new functionality of sharing was added to the code by introducing a new function within the existing interface. This allows for the extension of functionality without modifying the existing codebase, making it easier to add new features in the future.

Dependency Inversion Principle (DIP)
DIP was implemented by using an interface that is implemented by the UserRepository. The share function is called by a use case, which is further utilized by controllers. This ensures that high-level modules (controllers) depend on abstractions (interfaces), while low-level modules (UserRepository) depend on these abstractions, maintaining the appropriate dependency flow.

Interface Segregation Principle (ISP)
ISP is followed by using smaller, specialized interfaces that include only the required functionality. This prevents any class or client from being forced to implement methods that are irrelevant to its purpose. The interfaces are kept focused, ensuring a clean and modular design.

Clean Architecture
Clean Architecture principles are followed, where the code is divided into distinct layers: interfaces, repositories, use cases, entities, and controllers. Each layer has a clear responsibility, with dependencies flowing in the correct direction. This separation ensures that:

Each component is independent, making the codebase more modular and maintainable.
High-level modules depend on abstractions, while low-level modules depend on the details of the implementation.
The code remains flexible and easy to extend, allowing for changes without breaking existing functionality.

Acceptance Criteria:

QR Code Generation and Scanning: Users can generate QR codes for collaboration links and others can scan them to access the shared dashboard.
Data Access and Display: Collaborators can view graphs with a detailed analysis.
Security and Authentication: Only authenticated users can generate or scan QR codes. Shared links are secured with tokens to control data access.
Error Handling: Invalid or expired QR codes trigger proper error messages. Unauthorized access is prevented with clear feedback.
Usability: The QR code scanning interface is intuitive and responsive, with collaboration setup completed in under 10 seconds on average.
Visuals: The page looks visually good with proper styling on phones as well

Additional Notes:

This feature improves the collaborative functionality of the dashboard, enabling users to work together and analyze graphs effectively.

Extra Feature

Optimized frontend and backend to make the graph handle generate function much faster

Looks good Jai! were you able to figure out the dimension issue in mobile devices?

Ya, I tested out various mobile device sizes and wrote specific media queries for each mobile size in order to optimize the visuals.


Jump to extracted method

Windows
Testing #33282
On extraction to global scope expected to jump to extracted method (in global scope) but did not.  So it was hard to know what happened.  The gutter indicator did help.

I think that jumping to the extracted method could also be confusing, perhaps even more so. Usually in the extract method workflow, you want to continue working in the current function after the extraction, not inside the method
Let me know if you have any other thoughts on how we could make it more clear to users that the method has been successfully extracted


added nyc in dev dependencies, changed npm cache directory lookup

/approve-snapshots

/approve-snapshots

/approve-snapshots


List indexes

Added the ability to list indexes from a collection.
How Has This Been Tested?
It's not, but it should be. I'd like to refer to #228 for now.
Checklist:

[x] If applicable, I have updated the documentation accordingly.
[ ] If applicable, I have added tests to cover my changes.

Looks good!!

@Andrewangeta Is this API as good as can be, in your opinion?

I think it's good and follows a similar API as listCollections.

Can you merge & tag it? Since you're a member I think you should be able to do it, but let's verify :)

Will do!


Training the mix PPCA model

@murphyk and @mjsML please review this. It trains the model for 30 epochs and saves the checkpoint.

Please factor out the 'MFA' and 'Utils' code into a file that can be shared with your inference colab, as I explained in the comments at #9

Do you really need all these paclages?!
! pip install torchvision pytorch-lightning torchmetrics  torch test-tube lightning-bolts umap-learn einops

Please only install what you need, not what Ming needed.

Please refactor to use https://github.com/probml/pyprobml/blob/master/scripts/mfa_celeba_helpers.py
Also only pip install needed packages


Orchestrator not detecting intermediate master failure with relay_log_space_limit.

Because of MySQL Bug#97345 (1), Orchestrator might miss that an intermediate master has failed.
The scenario go like this:

the IO Thread is in state "Waiting for the slave SQL thread to free enough relay log space"

the intermediate master (IM) fails

Orchestrator is not able to connect to the IM, but the slaves are not seeing the IM as failed because of Bug#97345, so Orchestrator does not failover.

Discussed with Sholmi, the solution would be to run "STOP SLAVE IO_THREAD; START SLAVE IO_THREAD" on the slaves, which would trigger the slave to detect the failure (it is shown in Bug#97345 that this trigger the slave to detect the failure).

Thank you! The solution would be similar to the already existing solution for Masters (I applied the logic to masters, but not to intermediate masters), as per:

UnreachableMasterWithLaggingReplicas

https://github.com/github/orchestrator/blob/5c80b6aaba9ba83fa8c1fe8bf8fe6df99e7c4d24/go/inst/analysis_dao.go#L330-L333
https://github.com/github/orchestrator/blob/5c80b6aaba9ba83fa8c1fe8bf8fe6df99e7c4d24/go/logic/topology_recovery.go#L1524-L1525
https://github.com/github/orchestrator/blob/5c80b6aaba9ba83fa8c1fe8bf8fe6df99e7c4d24/go/logic/topology_recovery.go#L1409-L1418

Fix suggested in https://github.com/github/orchestrator/pull/1005


fix(helm): Correct lint error in preflight template

Currently, chart-testing lint is used for checking the template, and it
is running for main chart only (e.g. cilium). However, chart-testing is
working well for individual chart with custom values placing in ci root
directory of chart under test. Hence, if we want to keep chart testing,
we need to keep copy of cilium/values.yaml in ci/ dir of each and every
sub-charts, otherwise all related global* params cannot be resolved.
This is a little bit tedious and repetitive.
Considered that sub-chart  is unlikely installed separately, we can
just run helm lint --with-subcharts --values values.yaml to check for
all charts.
Closes #11670
Signed-off-by: Tam Mach<EMAIL_ADDRESS>helm: correct lint error in preflight template

Coverage decreased (-0.006%) to 36.89% when pulling 7678c2dcbaa1cbbb7bdd909e8d52903fa3e51097 on sayboras:feature/helm-gh-action into 5a8501a9565591c1c2897ba8cf0e433429f37469 on cilium:master.

PR only affects GitHub actions, thus merging without running CI tests.


Thoughts on Svero 2.0

When I first drafted this project, there were almost no Svelte-based routes around. Svelte 3 was brand new, and I felt the need to have an easy, lean and simple way to actually handle routes using Svelte own component's syntax.
It's been some time now and there are plenty of Svelte-based route projects around. Some focusing on speed, others on bundle size, and others on having lot's of features and complexity. Meanwhile, it seems to me that Svero tried to embrace every aspect of a successful router, aiming at all sides, but barely hitting any.
That being said, I believe it's time to define the future of Svero and it's 2.0 version, and this is what I think it should not be:

Svero should not be a Svelte equivalent to react-router;
Svero should not be bounded by react-router API/nomenclatures;
Svero should not focus on advanced router features (nesting, super-crazy regex routes, hash subroutes, etc).

What I think Svero should be:

A simple and reliable library for routing in Svelte 3;
As lean and small as possible without having to opt-out of Svelte syntax;
Something focused for projects without advanced and fancy routing requirements.

With all that being said, I will start working on the new 2.0 version that may end up dropping some features, adding others, and making the library simpler, smaller and reliable. For those who feel the need to use something more robust, here is a list of alternatives:

abstract-state-router
svelte-routing
yrv
svelte-spa-router

Totally agree with this. Nesting, regex routes, hash subroutine is not so frequently used features. Simple fast and small router with basic routing support imho that's what the good router have to do

Do you have a plan for it? Issues/PRs are starting to accumulate @kazzkiq

I will only have time to work on 2.0 in the next month, just can't promise anything before due to lack of time, has been quite a year.

React Router is nothing but trouble! Please make the equivalent of Reach Router instead: https://reach.tech/router

Svero is now deprecated. Check #68 for alternatives.


How to efficiently deliver real-time image data？

I am trying to establish a real-time connection，and I tried to pass the real-time camera image to the xviz server, but the bmp image is too big. Is there any good way to pass the data quickly?

The way I can think of is to perform jpeg compression on the image, although the encoding requires a certain amount of time cost, affecting the real-time nature of the system.

@truewhite This is always going to be a challenging problem.  The best options are to encode efficiently, and reduce size (size or resolution).  Of course, this assumes you are sending the data in the binary efficient GLB format and not JSON with base64 encoding.

@truewhite Is there anything else you think to be done on this issue?   I will restate that sending as png/jpeg with the GLB format should greatly improve your performance.  However, now matter what you do, there will be some lag introduced, so that really needs quantified and then measured for your use-case.   Is 100ms delay ok, for example.

I also recommend a two level approach:

By default send a reduced resolution and/or lower rate image to provide context
When needed send a configuration command to your server to have it switch into high resolution mode, generally for just a single image/camera stream instead of all of them

In reality most users are looking at images at a reduced resolution on screen, so it does not make sense to send the raw large image over.

What I am doing now is to reduce the resolution to transfer images. I didn't think of other good methods. The general jpg/png encoding is too slow. If you can speed up encoding through gpu, it might be better, but it has not been done yet.

@jlisee This may be a good approach, and I am currently using a way to reduce the resolution.

The general jpg/png encoding is too slow.

We have not tried this but since any image the browser supports should work, you should be able to send bmp images too.  Which don't require any image compression, just at most pixel format conversion, so it should be considerably faster, at the cost of a 2-10x bandwidth jump.


add support for namespaces for workspace builds

Features Description
workspace builds use the do-on-members task to invoke a task on all members.
need to ensure the name holds the namespace as well and to enable invocation of private tasks on the cli.
as part of it create 2 new env vars
CARGO_MAKE_CORE_NAMESPACE
CARGO_MAKE_CORE_NAMESPACE_TASK_PREFIX

handled #201 for workspaces


Added userid and chatid based auth with example usage

Hi, I improved this code with respect userid and chatid authorization.
With this improves, users can be granted authorization to access to bots HandleFuncs.

Looks good, but auth_test.go file needs to be updated too.


⚠ Bofrost.at has degraded performance

In fc7c49c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1111 ms

Resolved: Bofrost.at performance has improved in 22a616d after 6 minutes.


Streaming from nats Jetstream into the rerun web gui

I have a multi modal sensor fusion project where we need to train a convolution neural network .
the data is streamed in real time using nats Jetstream from various platforms like cars and trucks and airplanes.
I have never used rerun , and discovered the project via open pilot / comm.ai.
Nats Jetstream is 100% open source and has has golang, rust and other language sdk, but it can also stream using web sockets .
it is sort of like bgp anycast in that a client connects directly to the nearest geo physical server and then starts streaming data up and down. There is no dns or other stuff in the way.
I am hoping that someone could point me to the sone code and example data where I can see the data frames that rerun gui needs ? I read that the viewer can also take a file and the plugins fingerprint it to work out which plugin will handle the decoding of the “ file type “ so over web sockets I would like help on knowing that data feed structure ..
there is no golang sdk st the moment I assume ?

No goland bindings yet, only rust, c++, and python.
Although Rerun does have websocket support, the viewer only knows how to receive rerun-encoded data over the websockets.
Most users working with similar structure (such as ROS graphcs) end up implementing a separate "bridge" application that reads data in the native-format and then uses the Rerun logging-API to send the transformed data to rerun.
Here's an example of a C++ app that does this for ROS data:
https://github.com/rerun-io/cpp-example-ros-bridge/blob/main/rerun_bridge/src/rerun_bridge/visualizer_node.cpp
Our doc-pages for the respective types: https://rerun.io/docs/reference/types/archetypes all have examples of using the logging APIs in the different languages to send data to Rerun.


Prepare 6.5.5

See diff https://github.com/guzzle/guzzle/compare/6.5.4...6.5

https://github.com/guzzle/guzzle/pull/2694 is ready now. I think we should merge that PR, and then merge this one, and tag the release. :)

Thank you @GrahamCampbell and @gmponos for your work.


Fix another tsan issue

Scope & Purpose
We can read _nextStart only under _condition mutex lock

[ ] :hankey: Bugfix
[ ] :pizza: New feature
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification

Checklist

[ ] Tests

[ ] Regression tests
[ ] C++ Unit tests
[ ] integration tests
[ ] resilience tests

[ ] :book: CHANGELOG entry made
[ ] :books: documentation written (release notes, API changes, ...)
[ ] Backports

[ ] Backport for 3.10: (Please link PR)
[ ] Backport for 3.9: (Please link PR)
[ ] Backport for 3.8: (Please link PR)

Related Information
(Please reference tickets / specification / other PRs etc)

[ ] Docs PR:
[ ] Enterprise PR:
[ ] GitHub issue / Jira ticket:
[ ] Design document:

https://jenkins01.arangodb.biz/job/arangodb-ANY-linux-san.x86-64/1439/EDITION=enterprise,SAN_MODE=TSan,STORAGE_ENGINE=rocksdb,TEST_SUITE=single,limit=linux&&test&&x86-64/


Draft: Enable storing tool history and function calling with groq

Whoops meant to create this in my fork to see if I could rebase easily

We can either close this or just keep it up until I finish the pr

Was able to rebase, working of a new branch, closing this


Fix package.json - add dependencies: {}

More info: https://github.com/voronianski/esnextbin/issues/12#issuecomment-183284575

Fixed and released as version 2.1.4


Allow image download from Self-Signed SSL Server

As the library uses react-native-fetch-blob for the download and by default, react-native-fetch-blob does NOT allow connection to unknown certification provider since it's dangerous.
It is not a suprise that cached image also not support that. But sometimes it is needed to accept also self signed stuff. To connect a server with self-signed certification, you need to add trusty to config for react-native-fetch-blob explicitly.
RNFetchBlob.config({
  trusty : true
})

The cached image actually just use the path property.
It is easy to add the trusty flag, but I would like to ask the community what they would like to have.

A own property for the image or
a configuration you can add the the headers. So that the download function just checks if the header has an option to allow SSC via SSL and set the trusty flag.

I would like to add a PR for that but first would like to ask you :D

@markusguenther I think we can add some customizability to the RNFetchBlob.config method.
I think it's best to wait for v1.4.0 with the PR, do you agree?

@kfiroo Ok sounds good. Fixed that for me actually, but I only need this pro the development time. In production this flag is not needed at all.


Add deprecation information

If an inspector is deprecated, we should include a warning that says its deprecated, and list the version that it was deprecated in in the "support" section.

This would probably help with cases like:
https://relevance.io/reference/types/application.html#application-string-application
https://relevance.io/reference/types/filesystem-object.html#application-string-filesystem-object
Where it looks like the resultType of the application <string> inspector changed at some point.

Also I'm not sure "deprecated" is the right word because that might mean that it still exists, it just shouldn't be used. Maybe "removed" is a better word.

I think deprecated is ok.


How to invoke the COPY Event?

thanks for the donation, i learned the project for a while, it is wonderful,and then  i found the Clipboard function, i knew little about when and how invoke COPY Event,just get Clipboard but no action to COPY. expect for your reply,thanks.

in a addition, i mean Clipboard from device to PC

i found this,AKEYCODE_COPY


Change WindowSize hook to ComponentSize

Describe the bug
Currently we use a media query to identify how large the window is, and size things appropriately. This doesn't work well because the width of the calendar could very well be unrelated to the window size. This causes bizarre rendering behavior in certain situations.
To Reproduce
Steps to reproduce the behavior:

Assign a small width the the calendar's parent container

Expected behavior
The sizing hook should instead use the root Schedulely container for media queries. This should yield much more accurate size information.

Regression on this. ResizeObserver is only present on the client, so it would break this component in SSR scenarios. Rethinking how to handle it.


Invalid username and password combination on signup

Description
Users that want to create an account some times receive the error invalid username and password combination” “failed to authenticate with password
Get rid of the handle input on sign up (it is generated automatically). We have duplicated checks on emails as well, we will just make sure that the auto-generated handle will not be duplicated (or at least it will not trigger an error).

@KinyaElGrande Can you please check the PR?


How to Run to Windows OS ?

How to Install, Configure and Run on Windows ?

Hi! You only need a web browser to view this grafana instance. Open up your browser and visit: https://dashboard.chia.net

Closing for inactivity and I believe the answer was provided.


Polish & fix editor help cache generation

Isolated the generation of extensions's docs. They're now not cached and refreshed as needed.
Removed superfluous sorting of the class list.
Removed some superfluous/unused elements.
Renamed some items for clarity.

Fixes #82817.

The Mono glue generation is crashing: https://github.com/godotengine/godot/actions/runs/6731199052/job/18295441262?pr=84354
It reports that it's missing GlobalScope, not sure if that's the source of the crash.

Should be fixed now.

Thanks!


Invalid string representation for bytes outside ASCII range

Currently output from Should be Equal as well as Should Contain for bytes is not useful.
Consider following tests:
*** Test Cases ***
Test Should be Equal
    ${binary1Var} =    Convert To Bytes    \x00\x01\x02\xA0\xB0
    ${binary2Var} =    Convert To Bytes    abc

    Should Be Equal    ${binary1Var}    ${binary2Var}

Test Should Contain
    ${binary1Var} =    Convert To Bytes    \x00\x01\x02\xA0\xB0
    ${item} =    Convert To Bytes    \xC0

    Should Contain    ${binary1Var}    ${item}

output is:
==============================================================================
Test Should be Equal                                                  | FAIL |
☺☻\xa0\xb0 != abc
------------------------------------------------------------------------------
Test Should Contain                                                   | FAIL |
'☺☻\xa0\xb0' does not contain '\xc0'
------------------------------------------------------------------------------
Test                                                                  | FAIL |
2 tests, 0 passed, 2 failed
==============================================================================

it would be better to have b'\x00\x01\x02\xa0\xb0' instead of ☺☻\xa0\xb0
inside log some values are invisible:

I agree the current representation of bytes in error messages isn't great. It's leftover from Python 2 times when the str type was actually bytes and people used it for representing both binary data and text. It would be easy to use Python's normal b'...' format, but I'm slightly worried the quotes may cause some confusion. I'm not sure is there any better syntax, though, and the Python syntax is at least familiar for many Python users.
Changing this requires changing the ´safe_str` function we use for converting objects to strings so that possible exceptions are handled gracefully. It's used pretty widely, possibly too widely, and touching it may thus have unexpected effects. Better to thus do this in a major release even though I don't see real backwards incompatibility risks.

Issue #5259 and the discussion we had about it on Slack made me look at this issue again. It made me realize the current behavior is quite a bit worse than discussed above. I'll explain why below.
Why the string representation looks so strange is that our string conversion code is strange. It basically maps all bytes in the ASCII range (0-127) to Unicode code points with the same value and escapes other bytes (128-255). For example, bytes b'\x00\xFF' is converted to a string '\x00\\FF'. This makes absolutely no sense, because now there's no easy way to convert this string back to bytes. We should handle all bytes the same way. I'll write a separate comment about alternatives.
Why this is so severe is that the problem isn't limited to error messages as initially reported. For example, a keyword getting Hello, ${x}! as an argument where ${x} contains bytes b'\x00\xFF' will get a string Hello, \x00\\FF!.

It's clear that converting b'\x00\xFF' to '\x00\\FF' isn't a good idea. Here are some alternatives:

Just convert bytes to strings with str(). This isn't great because the string representation of bytes in Python contains b''  and the earlier Hello, ${x}! example would thus be converted to Hello, b'\x00\xFF'!.

Map all bytes to matching Unicode code points. Bytes are handled consistently and the resulting string can be converted back to bytes by Convert To Bytes and with all keywords that have bytes as a type hint. Our example would be converted to Hello, \x00\xFF!. A problem is that lot of the bytes don't have visible representation and with others the string representation can be strange. For example, our example would actually look like Hello, ÿ! in the log file.

Escape all bytes. The result would depend on the escaping mechanism, but with the style we currently use our example would become Hello, \\x00\\xFF! which in the log file would look like Hello, \x00\xFF!. This would have a benefit that all bytes are seen, but it wouldn't be easy to convert it back to bytes. In addition to that, also bytes having a readable string representation like R would be converted to \\x52.

I pretty strongly believe that the option 2. above is the best. It's only downside is that seeing byte values or even seeing some bytes is hard, but it is possible to use repr(x) in Python or Log    ${x}    formatter=repr in Robot to see the details. We can also consider adding new keywords for pretty printing bytes if needed.
A nice benefit of the option 2. is that it allows using something like Header: ${header}\n\n${body} where ${header} and ${body} contain bytes. This value itself would be a string, but if it's passed to a keyword accepting, for example, message: bytes, it is converted to bytes automatically without problems.

I moved this to RF 7.2 scope even though the change isn't backwards compatible. The reason I believe it won't cause problems, and also the reason I believe this should be fixed ASAP, is that the current string representation is invalid.


Conversion to Pytorch Mobile

Hi I'm trying to convert pretrained EfficientNet model to Pytorch Mobile. I follow official instructions from here. While scripting model using: scripted_model = torch.jit.script(model) I get:
"Tried to access nonexistent attribute or method 'saved_variables' of type 'torch.efficientnet_pytorch.utils.SwishImplementation'. Did you forget to initialize an attribute in init()?:"
I'm new to PyTorch, maybe someone knows this issue or can hint me how to fix it?

Code to reproduce:
from efficientnet_pytorch import EfficientNet
import torch

model = EfficientNet.from_pretrained('efficientnet-b0')
scripted_model = torch.jit.script(model)

Environment:
efficientnet-pytorch      0.6.3                    pypi_0    pypi
pytorch                   1.6.0           py3.6_cuda102_cudnn7_0    pytorch

Thanks
Tomek

For regular torchscript exporting, you need to set the 'memory_efficient' attribute to False prior to exporting. I'm assuming this is the case for mobile as well.
from efficientnet_pytorch import EfficientNet
import torch

model = EfficientNet.from_pretrained('efficientnet-b0')
model.set_swish(memory_efficient=False)
scripted_model = torch.jit.script(model)

Hi, unfortunately after adding model.set_swish(memory_efficient=False) I get the following error when trying to do torch.jit.script(model):
Tried to access nonexistent attribute or method 'expand_ratio' of type 'Tuple[int, int, int, int, int, bool, List[int], float]'.:
File "C:\Users\topc\AppData\Local\Continuum\anaconda3\envs\long-island\lib\site-packages\efficientnet_pytorch\model.py", line 76
# Expansion and Depthwise Convolution
x = inputs
if self._block_args.expand_ratio != 1:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
x = self._swish(self._bn0(self._expand_conv(inputs)))
x = self._swish(self._bn1(self._depthwise_conv(x)))
It seems to be the same issue as here. Maybe you have an idea how to fix it?

Using torch.jit.trace instead of torch.jit.script helped.


New version of build approval ui

This is the new version of the tutorial that replaces the current one in the tutorials group

Please do not yet publish. I am waiting for confirmation to publish.


Cannot create a statement with both resources and principals

I'm using the package

[ ] iam-floyd
[x] cdk-iam-floyd

I'm using the package in language

[ ] TypeScript/JavaScript (npm)
[x] Python (pip)

Describe the problem
Creating a statement that contains resources and a principal does not work.
endpoint_policy_statement = (
    statement.Secretsmanager()
    .to_get_secret_value()
    .on_secret(
        account=self.account,
        region=self.region,
        secret_id=credentials.secret_name,
    )
    .for_cdk_principal(
       iam.AnyPrincipal()
    )
)

# this fails
assert endpoint_policy_statement.has_principals()

@udondan can you reproduce this?

Thanks for the ticket @gshpychka and bringing this to my attention.
The .hasXxx() methods currently don't work. That's because all actions/resources/principals/conditions are only stored internally and will be applied to the statement, when it is rendered - that is, when the .toJSON() method is called, which CDK does when it's writing the CFN template.
I will need to override those hasXxx methods and additionally check the internal store.
In the meantime you could just call .toJSON() (not sure what it's called in Python, might be to_json) before the assertion.

Oh wait, actually I already have those methods. 😕 Got to check.

The issue is when I pass this statement to a CDK construct that requires resources and principals, it complains that the statement doesn't have principals.

sorry, i currently do not possess the time to look into this. failing to set up a working python env to deploy a CDK stack.

sorry, i currently do not possess the time to look into this. failing to set up a working python env to deploy a CDK stack.

That should be easy, can I help? All you need is create a virtualenv and create a single python file with a rudimentary app that deploys a single stack.

Hi @udondan, any progress on this? Can I help with the environment?

Hi @udondan, can I help with this somehow?

@udondan any updates?

Closing this as I have dropped jsii and with that Python support completely. The project was completely stuck for a year because of jsii problems and i decided to rather build a good TypeScript project than to deal with jsii issues over and over again.


can call local method inside constructor method

For some reason when I try to call a local method inside a local constructor method, it fails to find the method call.  It also reports only seeing only one function total.  So method_call_in_method is definitely only getting one method(the constructor itself passed in when evaluating the method)

Initialize printer was only passing in the derived constructor method body.
I fixed it, by appending the derived constructor body to the list of other methods in CodeLang structure, and passing that in to the method printer instead.


v1.22.5 SQL statement regression

Description
We spotted weird SQL statements when gorm upgraded to v1.22.5 such as:
-UPDATE "products" SET "deleted_at"=$1 WHERE "products"."id" = $2 AND "products"."deleted_at" IS NULL
+UPDATE "products" SET "deleted_at"=$1 WHERE "products"."id" = $2 AND "products"."id" = $3 AND "products"."deleted_at" IS NULL

with this test https://github.com/DataDog/dd-trace-go/blob/v1/contrib/gorm.io/gorm.v1/gorm_test.go#L221
and
-UPDATE "products" SET "price"=$1,"updated_at"=$2 WHERE "id" = $3
+UPDATE "products" SET "price"=$1,"updated_at"=$2 WHERE "id" = $3 AND "products"."deleted_at" IS NULL

with this test https://github.com/DataDog/dd-trace-go/blob/v1/contrib/gorm.io/gorm.v1/gorm_test.go#L197
Given how the first one looks like, having twice the product.id clause, it felt like a regression to me and wanted to confirm it.

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨

ok


Empty callback After Login

Once the Login is done, the returned payload is mostly empty:
{"authorizationCode": null, "authorizedScopes": [], "email": null, "firstName": null, "identityToken": null, "lastName": null, "realUserStatus": 1, "state": null, "user": "000466...."}

Found the issue.

The object passed from index.js file has key "scopes" and in AppleAuthentication.m file it is parsed as "requestedScopes". Change either and make them same then apple will ask you full name and email to share.

Tried. Does not work.

@aryaminus I had the same issue and it was fixed by removing app from Apple Sign In on my phone.
Just go to [Settings] -> [Apple ID] -> [Apple ID logins] and remove your app from the list.
Apple will request scope again, where you can choose not hide email.

It happens because It authorise you once and then just send you user ID that means that this user has been authorised before.

It happens because It authorise you once and then just send you user ID that means that this user has been authorised before.

Glad to say that this works! Apparently i could have saved quite some time had I read the documentation. Thanks.


Implement non-binary Sparse Block Codes

A follow up feature to the support of Binary Sparse Block Codes. See discussion in #146.

Hi, new to torchhd but would be really interested in contributing. Is this problem still open? As I understand is it related to implementing the data structure to hold vectors as sparse arrays and then implementing MAP operations for sparse vector data structures @mikeheddes?

Hi, thank you for your interest in Torchhd. Yes, this feature has yet to be added to the library and as far as I'm aware no one is working on it yet.
One aspect that is a bit unique about this model is that we have to decide wether to use torch.sparse tensors (which I suspect will be more efficient when working with small bundles of vectors) or to use dense tensors (which could be more efficient when working with large bundles of vectors). The main reason for this is because I'm not sure how to implement sparse circular convolution efficiently, i.e., in O(k log n) vs O(k^2) for two sparse vectors of length n with k non-zero elements. With dense vectors we can use the fast Fourier transform to compute the circular convolution in O(n log n), thus when n log n < k^2, the dense model should be more efficient.
I think it is worth trying both ways and perhaps giving users an option to convert between them if it is indeed the case that one is more efficient than the other in different settings. A good start for you before starting the implementation into Torchhd as a new VSATensor would be to benchmark the two implementations in isolation. For this, you can start with the implementations of the random, bundle, and bind methods.
Here are some example PRs to help you get started:

https://github.com/hyperdimensional-computing/torchhd/pull/174
https://github.com/hyperdimensional-computing/torchhd/pull/146
https://github.com/hyperdimensional-computing/torchhd/pull/149

If you have any questions don't hesitate to ask.

Sounds like an interesting problem! I'll have a go.
Could it be useful to add conversions to non binary sparse array conversions either way?

Hi @mikeheddes,
So I've been having a bit of a think about this and my thoughts for implementation are we could go down two routes with how to sparsify the arrays of hypervectors:

treating -1 as implicit (in the same way 0 is implicit in binary sparse arrays) and use either coo, csr or ccs formats), in this situation we could use torch.sparse implementations
another thought I had is we could use run-length encoding (same compression format that parquet uses), then we wouldn't need to treat anything as implicit.

For the MAP operations this should be easy enough with torch.sparse, however permutation is slightly annoying as torch.sparse doesn't let you modify indices inplace, so we'd have to recreate the sparse array object each time, if we used this.
I need to do some benchmarks on circular convolution but I guess the big O would just be dependent on how much compression we get, would probably need to implement some thinning to compress more

Apologies for the delayed response. I think these are two good options for the implementation. I find the second one quite clever. One downside is that PyTorch doesn't support run-length encoding right now (as far as I know) which means that we will have to implement all the operations ourselves whereas for the COO format many operations are supported already.
I would not worry about having to create a new sparse array for every operation, I believe it is PyTorch's default to create a new tensor for every operation.
As for the thinning operations, I think we should provide this as a separate method on the inherited VSATensor class to give the users more flexibility.


Can't load GRUCell weights from TensorFlow 1 to TensorFlow 2

Issue 💻
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): True
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: False
TensorFlow installed from (source or binary): pip install tensorflow
TensorFlow version (use command below): v2.3.0-rc2-23-gb36436b087 2.3.0
Python version: 3.8.3
Bazel version (if compiling from source): None
GCC/Compiler version (if compiling from source): None
CUDA/cuDNN version: None
GPU model and memory: None

Current Behavior
I migrated a code written with tensorflow 1 to tensorflow 2. In addition I would like to convert the checkpoints of my tensorflow 1 model too. However, the GRUCell seems really different from tensorflow 1 to tensorflow 2 implementation, and can't load the saved weights from a compat.v1.nn.rnn_cell.GRUCell to a keras.layers.GRUCell.
The error is:
W tensorflow/core/framework/op_kernel.cc:1767] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Not found: Key gru_cell_1/bias:0 not found in checkpoint

So the error comes from the weights initialization. By looking closer to the structure of the GRUCell from the 1 and 2 versions, I noticed major differences:

The compat.v1.rnn_cell.GRUCell has four weights:

gru_cell/gates/kernel:0 of shape (S + H, 2 x H),
gru_cell/gates/bias:0 of shape (2 x H, ),
gru_cell/candidate/kernel:0 of shape (S + H, H),
gru_cell/candidate/bias:0 of shape (H, )

The tf.keras.layers.GRUCell has three weights:

gru_cell/kernel:0 of shape (S, 3 x H)
gru_cell/recurrent_kernel:0 of shape (H, 3 x H)
gru_cell/bias:0 of shape (2, 3 x H)

So the issue is that tensorflow struggles to load weights from the first version to a keras.layers.GRUCell - of course, the shape and length of the weights are different.
Is there a function to migrate compat.v1.nn.rnn_cell.GRUCell weights to keras.layers.GRUCell ? I have not seen in the documentation.
To illustrate
1. Weights of compat.v1.nn.rnn_cell.GRUCell layer
import tensorflow as tf

SEQ_LENGTH = 4
HIDDEN_SIZE = 512
BATCH_SIZE = 1
inputs = tf.random.normal([BATCH_SIZE, SEQ_LENGTH])

# GRU cell
gru = tf.compat.v1.nn.rnn_cell.GRUCell(HIDDEN_SIZE)
# Hidden state
state = gru.zero_state(BATCH_SIZE, tf.float32)
# Forward
output, state = gru(inputs, state)

for weight in gru.weights:
    print(weight.name, weight.shape)

Output:
gru_cell/gates/kernel:0 (516, 1024)
gru_cell/gates/bias:0 (1024,)
gru_cell/candidate/kernel:0 (516, 512)
gru_cell/candidate/bias:0 (512,)

2. Weights of keras.layers.GRUCell layer
import tensorflow as tf

SEQ_LENGTH = 4
HIDDEN_SIZE = 512
BATCH_SIZE = 1
inputs = tf.random.normal([BATCH_SIZE , SEQ_LENGTH])

# GRU cell
gru = tf.keras.layers.GRUCell(HIDDEN_SIZE)
# Hidden state
state = tf.zeros((BATCH_SIZE, HIDDEN_SIZE), dtype=tf.float32)
# Forward
output, state = gru(inputs, state)

# Display the weigths
for weight in gru.weights:
    print(weight.name, weight.shape)

Output:
gru_cell/kernel:0 (4, 1536)
gru_cell/recurrent_kernel:0 (512, 1536)
gru_cell/bias:0 (2, 1536)

Note
I tried _convert_rnn_weights tensorflow function to convert the desired weights. It works but only for CuDNN weights, so I can't use it in my case.

Was able to reproduce the issue with TF v2.3 and TF-nightly. Please find the attached gist. Thanks!

Thanks for reporting the issue.
In short, the weights between compat.v1.nn.rnn_cell.GRUCell and keras.layers.GRUCell are not compatible between each other. We don't have a function to convert between them, and if you really want to do it, you will need to do it manually.
Math wise, if you have the numpy value of the v1 weights, the formula are:
B = batch_size
H = state_size

all_kernel = np.concat([gru_cell/gates/kernel, gru_cell/candidate/kernel], axis=1)  # shape (B+H, 3 * H)
kernel = all_kernel[:B]  # shape(B, 3 * H)
recurrent_kernel = all_kernel[B:] # shape (H, 3 * H)
bias = np.concat([gru_cell/gates/bias, gru_cell/candidate/bias], axis=0)  # shape (B, 3 * H)
zero_bias = np.zeros([B, 3 * H])
bias = np.concat([bias, zero_bias], axis=0)


Browsing MySQL 5.7.20 tree gives error

Browsing a MySQL 5.7.20 instance (on compose.com) we can connect and descend the tree this far...

but no deeper. On attempting to expand a table node we get:

"(3065, "Expression #2 of ORDER BY clause is not in SELECT list, references column 'information_schema.c.ORDINAL_POSITION' which is not in SELECT list; this is incompatible with DISTINCT")"
Unsure what the actual error is, but would suggest making error messages wrap anyway.

Hi @codepope,
I was able to reproduce the issue. It happens in some specific situations for version 5.7. The fix will come in the next release, on May 17.
Feel free to suggest features you would like to see in terms of MySQL management.

Hi @codepope ,
We fixed this in 2.8, which we just published. Can you please try? We will keep this issue open for a few more days in case you want to give us your valuable feedback.
Thanks and regards,
William Ivanski

Hi, I just want to confirm that there was the bug, and now there isn't :) I.e. the 2.9 version works fine.
Thanks for the app! Seems pretty cool.

Hi @kpion ,
Thanks very much for your feedback! I'm closing this issue now.
Regards,
William Ivanski


Add onSpawnerSpawn event

It should be possible to cancel the event.
For context tags, I am looking for the location of the spawner.
It would also be neat to get the entities or the amount it tries to spawn.

This event: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/SpawnerSpawnEvent.html
Which is Spigot-API specific (not Bukkit).


bug with username in access tab

@AdheipSingh mentioned he'll pick it up today.

fixed in 0.6.9


Add default value to the isAbsolute function of utils

Hello, and thank you for your pull request. If possible, please add a test to demonstrate what this is fixing. Typically these are internal functions only used by Express.js, though there are published modules on npm who are reaching in and using these. If possible, we don't want to touch these unless it is a critical bug fix, and this particular utility is already removed in 5.0, so this change would only be for the 4.x line which we are trying not to change unless critical. Can you elaborate on the purpose of the change, and if it is critical to get in the 4.x line?

Hello,
Thank you for your feedback and considerations regarding the pull request. I understand that the proposed change may not be critical and that modifications to internal functions should be avoided unless necessary. I agree that it is important to prioritize critical bug fixes and avoid unnecessary changes, especially considering that the utility in question will be removed in the 5.0 version of Express.js.
Upon further evaluation, I realize that the issue addressed by the proposed change does not fall into the category of critical bug fixes. Therefore, I agree that it would be appropriate to postpone this change in the 4.x line unless it becomes critical.
I apologize for any inconvenience caused, and I appreciate your guidance and insights regarding the best practices for modifying internal functions in Express.js.


Build boost 1.78

WARNING: PRs from forks of the repo won't pass the CI, because they have no permission to access the github registry.

@benjaminhuth is this still needed, or can we close this?

I think that can be closed


Add support for plugin dependencies

Plugin dependencies aren't resolved when loading plugins.

This will be implemented when we have https://github.com/SpongePowered/SpongeAPI/issues/624 figured out

What about dependencies specified in the manifest?

@Minecrell
Will this issue be moving forward soon?

@Flibio It depends on SpongePowered/SpongeAPI#1070 and SpongePowered/SpongeAPI#624

Fixed with https://github.com/SpongePowered/SpongeVanilla/pull/225


fix: enroll verb builder backward compatibility

- What I did

added removed param back - encryptedDefaultEncryptedPrivateKey in enroll verb builder
- How I did it
Modified EnrollVerbBuilder class
- How to verify it
run unit tests
- Description for the changelog

Was this done before 3.0.58 was published?

@sitaram-kalluri @murali-shris Was this done before 3.0.58 was published?


Please add example for J305 tube

Please add an example for J305 tube.
In example, I found for other board with j305 tube there is "offset: -12.0" filter because J305 has background noise 0.2 pulses / sec x 60 sec = 12 CPM (Counts per minute), should I use this filter?

Thank you for your question. You are correct. If you have a J305 tube, the documentation for the tube indicates that the internal noise of the tube is 0.2 pulses per second. That is, these are pulses that occur in the complete absence of external radiation. Thus, this is the number of false-positive pulses that should be filtered out. Within the measurement period, i.e. 60 seconds, you need to discard 0.2 * 60 = 12 pulses per minute.
Please also note that for some reason, it is not common for SBM20 tubes to filter out false-positive pulses, although the tube documentation indicates that SBM20 tubes will have 1 such pulse per second. This value is much higher than that of the J305, which, frankly, makes the SBM20 tube not very suitable for measuring background radiation in normal conditions. However, SBM20 is very popular and we see it in our statistics as well. However, we recommend choosing J305 for our part. We even wrote an article about it.
https://iot-devices.com.ua/en/comparison-of-geiger-muller-tubes-sbm20-j305-and-lnd712/
As for individual examples for different tubes, of course, we plan to post them as well asap.
Best Regards,
Oleksii
Team IoT-devices, LLC


Generalize factory patterns for use outside of NSValue

cc @norio-nomura, after looking at this a bit further I think we can do some really neat things. Other than the bare init case did you find any other caveats worth mentioning?

@swift-ci please test

@swift-ci please test

Wow! ❤

oh I have more incoming. Prior to your approach we had two major differentials between the general behavior of the objc version of Foundation and swift-corelibs-foundation; factory patterns and bridging. This method effectively catches 90% of the factory pattern side of things. I have a version for NSString and NSMutableString an I am currently working on getting a few more types.
Overall this approach will vastly improve performance for swift-corelibs-foundation and dramatically get closer to the expected behavior for abstract base classes.

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

@phausler can you rebase this onto the latest? In particular, the project.pbxproj has recently had conflicts (which @ianpartridge resolved elsewhere) so would be good to make sure this doesn't conflict.

There are a number of other changes I have pending for this - namely it does not yet work fully on Linux, once I get back to the office next week I will revise those changes onto master and attempt to get this landed

@swift-ci please test

@phausler there was a lot of work done on this branch, but it's got out of step. Can you rebase and re-run the tests please?

@phausler This pull request has gone stale, and there are a number of conflicts which prevent it moving forward at this stage. I'm going to tentatively close it, and we can re-open in the future once the conflicts have been fixed.


Update grpc-netty-shaded to 1.40.1

Updates io.grpc:grpc-netty-shaded from 1.39.0 to 1.40.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.grpc", artifactId = "grpc-netty-shaded" } ]

labels: library-update, semver-minor

Superseded by #196.


Fix iOS download of remote files zmxv/react-native-sound#199

Currently the remote playing of .aac/.mp3 files etc is broken on iOS. This patch fixes that. It may not necessarily be the best way to fix it though... however, it does work!

@mikeknapp Thanks Mike. We just merged a commit that performed the exact opposite to this. #188 - presumably this'll break what that fixed. I'm unsure which of the two methods is best at present!

@mikeknapp Well, you are right! #188 did indeed break require() calls for audio in debug mode on iOS and playback of remote mp3 files (I'm testing using a github URL from the demo repo: https://raw.githubusercontent.com/zmxv/react-native-sound-demo/master/advertising.mp3).
Thanks for this. Merging.


Trigger for "box update"

Is it possible to hook into the various "box" commands? We would like to have a trigger for vagrant box update, but that doesn't seem to be possible.

Hello,
It's not currently possible, since an action hook is not defined for that machine action.
If that action hook should be implemented in upstream vagrant, the plugin would start hooking automatically.
Cheers :smiley:


chore: Update snapshots

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.10%. Comparing base (cbe2f70) to head (74b9baf).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1328      +/-   ##
==========================================
- Coverage   68.19%   68.10%   -0.10%
==========================================
  Files         178      178
  Lines       17226    17234       +8
==========================================
- Hits        11748    11737      -11
- Misses       4837     4855      +18
- Partials      641      642       +1

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


Add batch daml example as a code snippet

@JoaoSa-da is this PR still open? I see you didn't stage Batching.daml, so I assume that's blocking the CI build.

@dylant-da yes it is failing because it cannot find this file. What do you mean by staging Batching.daml. Do I need to do something in particular in the daml repo?


Check all urls in the content in all languages and regions

We have a script for this
Acceptance Criteria

[x]  Run the script to detect broken URLs
[x] Find unbroken URLs to the corresponding pages
[x] Update the content with the new URLs

did not check every single link but appears good.


[Windows] JS-WebView messaging bridge & multiple WebViews fixes

Summary
This PR contains also important changes from my other PR https://github.com/react-native-community/react-native-webview/pull/1603
Adds JS-WebView messaging bridge WinRT component that overwrites old postMessage messaging api window.ReactNativeWebView = {postMessage: function (data) {window.external.notify(String(data))}};
Now messaging works in any kind of source of webview html. Messaging is handled via WebView.AddWebAllowedObject WinRT component "bridge". Same kind of bridge implementation exists in old legacy C# implementation of webview in react-native 0.59. See ReactWebViewManager.cs and line 390
Bridge is enabled after developer defines WebView.onMessage handler.
This PR fixes issue https://github.com/react-native-community/react-native-webview/issues/1600
Bridge is implemented into new Windows Runtime Component (C++/WinRT) component named WebViewBridgeComponent
Test Plan
Module and bridge component tested in C# and C++ application.
You can test postMessaging using modules examples app. Message from JS is received in native side by new bridge:

Setup
ReactNativeWebView and WebViewBridgeComponent have to added into your solution .sln file, for example:
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WebViewBridgeComponent", "..\node_modules\react-native-webview\windows\WebViewBridgeComponent\WebViewBridgeComponent.vcxproj", "{FCB612AD-FACC-410C-828C-24B5940B2762}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeWebView", "..\node_modules\react-native-webview\windows\ReactNativeWebView\ReactNativeWebView.vcxproj", "{729D9AF8-CD9E-4427-9F6C-FB757E287729}"
EndProject

Add project reference to ReactNativeWebView into your project file, for example .csproj file:
    <ProjectReference Include="..\..\node_modules\react-native-webview\windows\ReactNativeWebView\ReactNativeWebView.vcxproj">
      <Project>{729d9af8-cd9e-4427-9f6c-fb757e287729}</Project>
      <Name>ReactNativeWebView</Name>
    </ProjectReference>

Compatibility
Windows
Checklist

[x] I have tested this on a device and a simulator

This PR closes https://github.com/react-native-community/react-native-webview/issues/1600

Hi @tero-paananen
I've tested this PR, as I do need onMessage for my project. Added ReactNativeWebView and WebViewBridgeComponent to my solution but cannot receive messages from my html part using window.ReactNativeWebView.postMessage('Message from javascript');

Hi @tero-paananen
I've tested this PR, as I do need onMessage for my project. Added ReactNativeWebView and WebViewBridgeComponent to my solution but cannot receive messages from my html part using window.ReactNativeWebView.postMessage('Message from javascript');

Maybe you do something wrong. Try the example app in example folder, there is Messaging test for the postMessaging

Cannot get the example app to run.
Building the app throws an error because it cannot find the .winmd file at the specified location.

Cannot get the example app to run.
Building the app throws an error because it cannot find the .winmd file at the specified location.

I managed to build the example from fresh. I have latest Visual Studio 16.7.2.
I did install one extension into VS to get bridge WinRT Component done, see more from https://microsoft.github.io/react-native-windows/docs/native-modules-setup#development-environment and there is extension https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264 can it be that you have to install that extension also, i am not sure, i guess that it is not needed but now i cannot say anything else for helping you.

In VS press Build->Build solution, do not press Play button

Hi @tero-paananen
I've tested this PR, as I do need onMessage for my project. Added ReactNativeWebView and WebViewBridgeComponent to my solution but cannot receive messages from my html part using window.ReactNativeWebView.postMessage('Message from javascript');

Do not try to call window.ReactNativeWebView.postMessage() too early, that messaging API is injected to webiew after content is loaded, see/debug fuction void ReactWebView::OnNavigationCompleted()

In VS press Build->Build solution, do not press Play button

Wow  - simple fix. But very cool @tero-paananen. Messaging works in your PR. Really looking forward for this PR to be merged :)

Hello @tero-paananen
When executing npm i  github:showell-labs/react-native-webview#add-web-allowed-object-cpp-winrt
from my Mac, i cannot get it to install. sharing the package.json in a cross-plattform project, this is how i ran into the issue.
I've attached my crash log.
2020-09-25T12_20_14_122Z-debug.log

Set something like below into your package.json and then call for example npm install ?
"react-native-webview": "https://github.com/showell-labs/react-native-webview.git#add-web-allowed-object-cpp-winrt"
That is about how i use that...

And i have not tested this with react-native-macos that you seems to use?

No I didnt use react-native-macos.
I'm using my macbook to build my react-native project for ios and android. I also changed the reference in my package.json jsut to make sure, but it didnt work. It seems some dependency that you are loading is causing this issue. Funnily, a similar issue appears when installing a async-storage fork. see: https://github.com/react-native-community/async-storage/issues/444
the issue is reproducable when installing these forks (which are meant for react-native-windows only) but they cause issue when building for non-windows targets.

When i build my app for ios and android i remove react-native-windows from package.json and under node_modules folder to get my project build

exotexot<EMAIL_ADDRESS>kirjoitti 25.9.2020 kello 16.02:

No I didnt use react-native-macos.
I'm using my macbook to build my react-native project for ios and android. I also changed the reference in my package.json jsut to make sure, but it didnt work. It seems some dependency that you are loading is causing this issue. Funnily, a similar issue appears when installing a async-storage fork. see: react-native-community/async-storage#444
the issue is reproducable when installing these forks (which are meant for react-native-windows only) but they cause issue when building for non-windows targets.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

What @jamonholmgren thinks about this important PR for me at least to get messaging work?

What @Titozzz thinks about this important PR for me at least to get messaging work?

I have to try. I must start to study WebView 2 and WebView 3. This my solution is good fix for current impl, can we fix first this and then try to start ilmp the new one? I am not sure how long it may take for me

Alexander Sklar<EMAIL_ADDRESS>kirjoitti 10.10.2020 kello 6.28:

@asklar requested changes on this pull request.
thanks for this PR - could you re-work it to not rely on AddWebAllowedObject which is being removed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

I'll remove my "request changes" since I don't want to hard block but at the same time we should make sure we aren't creating more work for people down the line that want to use WebView (and may not need WebGL).
In other words: when we add WebView2 support to react-native-webview, the easy thing will be to #ifdef out the AddWebAllowedObject call, which if I understand correctly, the WebGL functionality will rely upon. At that point, WebGL will be broken with WebView2.

I will start fixing these on next week, i am on holiday currently.
Thank you for fast review!
Tero

Alexander Sklar<EMAIL_ADDRESS>kirjoitti 10.10.2020 kello 8.51:

@asklar approved this pull request.
approving for webview v1, but note that this approach will break soon with webview 2 (see my other comment)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@NickGerleman and @asklar  this PR is ready from my side.
I am planning to later implemented this module (new PR for that later) to use WebView2.  That is done via WebUI 3 and it is only and wanted solution? Do you know how i should implemented messaging between js and react native on WebView2 if there is no possibility to use AddWebAllowedObject ?

i did new issue about WebView2 https://github.com/react-native-webview/react-native-webview/issues/1703

@NickGerleman and @asklar this PR is ready from my side.
I am planning to later implemented this module (new PR for that later) to use WebView2. That is done via WebUI 3 and it is only and wanted solution? Do you know how i should implemented messaging between js and react native on WebView2 if there is no possibility to use AddWebAllowedObject ?

WebView 2 will be available to React Native for Windows via WinUI 3. Here are instructions on opting a RNW app to WinUI 3 (still in preview): https://microsoft.github.io/react-native-windows/docs/winui3
For WebView2 - which will be included as part of WinUI 3 - you would be able to do something similar to AddWebAllowedObject by using AddHostObjectToScript. I'm not sure if there is a nicer WinRT API so you might need to use the COM API instead.

I noted that webview.postMessage() does not work at all, currently i use webview.injectJavascript() to send message from RN to JS. I try to fix that issue into this PR

Now webView.postMessage() call from RN is received into message handler in JS. Example also updated to call into both direction. I think that this does not work on master.
Ok, it is ready again :-)

@asklar  @NickGerleman it would be nice if you have time to merge my PRs to master? I would then continue with the new tasks for these, for example i will port module to use rn-windows 0.63.x and later examine that WebView2

@tero-paananen everything looks good to me, but I don't think Alex or I have merge permissions for this repo. @Titozzz could you take a look.

nice work. Is it possible to have one document within a WKWebview, which then calls a window.open(url) via javascript, to then open another WKWebview and have cross-window messaging to work via window.parent.postMessage() ?


Add mode for continous parsing (not on-save)

One of the rough aspects of using scala over other languages like TypeScript is how sluggish it feels in the IDE, which I think is primarily due to Metal's not providing error detection / type analysis in real-time, instead requiring you to save the file every time.
And enabling interval auto-save for my IDE is also not a solution as I work in hot-reloaded contexts where I don't want to be distracted by broken code errors in the output half-way through, and also there are simply many contexts where this doesn't work.
For example
suppose function foo has 3 arguments, and I am in the middle of typing it, only provided one argument so far
if foo(bar.baz,

but I am not quite sure if .baz is the right property on bar. I can't do ctrl + save yet, because I know for sure that the whole line will error because I am missing the next two arguments of foo. But until I ctrl + save, I won't know if bar.baz is an error.
In TypeScript an Python where syntax and type analysis is continuously provided on every keystroke, this is not an issue and it feels very fluid.
Regardless, this is a clear divide in preference among developers so supporting both is a good idea.
It would be great if you provided a setting flag to enable this method for the many developers who prefer it.

Thanks for reporting. Do you mean that you would want to see type errors from the compiler instead of only parsing error in metals?
I will move it to metals feature request as this repository really only deals with parsing


No release version tagged in 3+ years

FreeRDP has not had an actual release tagged, as far as I can tell, in over 3 years. This makes it difficult for users who want to submit/update bugs to the project to tell if they have already been fixed, but are just not in the package for our distribution since everything shows up as 2.0.0-dev, and it's hard to tell what commit the build is based off of. Providing tagged milestones for packagers to work off of will make it much easier to identify if fixes for specific bugs are or are not present in the packaged version a user is using.
Even if you just arbitrarily choose a stable point in the tree, increment the minor version number and tag it, that would be a huge improvement over the current system of never having a new "stable" release and constantly working off of unversioned nightly builds.

@ardichoke thare are multiple issues regarding this subject. Please have a look to #2839

Sorry, a lot of results came up when I was searching for an existing issue that this would fall under. Must have missed that.


how to import new airport and flight data?

Hello, how to import China's airport and flight data into this project, and how to generate new aptsurface.p files. I've tried to modify the data in the apt.zip file, but it didn't work.

Hi! The airport surface data comes from XPlane, which has an extensive editor that you can use to create your own data. Have a look at docs/XP-APT1000-spec.pdf to learn more about this data file. Bluesky doesn't have a readymade import function (yet), but you could just replace the current data file with the one you create.

Thanks a lot！

@astrznaut hello, have you figured out how to import our own data from Xplane? Thanks


Create datecomparison.js

Create date comparison validator
I find a problem when I use parsley.js to compare between two inputs with type month or date
<input type="month" id="from" name="from">

or
<input type="date" id="from" name="from">

the problem is that parsley.js compares just between years but it doesn't take into consideration days or months when it compares
for example :
I want to make sure that the date in the input from must be near than the input to
<input type="month" id="from" name="from">
<input type="month" id="to" name="to">

so I write these two functions to try to fix this problem

Hi! Thanks for the PR.
For the first time if my life, I don't have my computer with me, as I'm trekking the Annapurna circuit! I will be reunited with my laptop in about two weeks; I'll either look at this on a plane or when I'm back home in early December...
I don't recall anything about type=month, so I'm also wondering if Parsley couldn't deal with this better, without the need of an extra validator...


[efr32, cc1352, cc2538, cc2650, cc2652] Remove -nostartfiles

There's currently no custom __START defined anywhere and this causes the startup code for the C/C++ standard library to be skipped, causing Message::Settings::kDefault along with other globally-scoped objects to not be constructed.
Relates to  https://github.com/openthread/ot-br-posix/issues/559

@jwhui can you add @romacdon as a reviewer too?

@jwhui I asked @lmnotran to split this PR into 2.  One for Silabs and one for TI.  This will become the Silabs PR. I didn't feel comfortable tying the two sets of changes together as we are not capable of testing the TI changes.  We'll leave the new TI PR to @srickardti to test and approve if he thinks it an appropriate change.  I removed @srickardti as a reviewer of this one. @lmnotran will be modifying this PR soon.


[TASK] 🚀 Pre-launch audit: Page switching performance is slow

Overview
When I click, I want to go to that page not wait.
https://www.loom.com/share/d1a79031bb814c7a9372fb35993a3ac0?sid=d480a95f-8f11-4448-8dfd-7a6fa92f0837

Navigating between pages is slow because  of data loading from the server is heavy.
One way to fix this is to to create loading screen for the pages when the data is fetching. This feature already provided by Next.js here.
I will implement this in 3 pages: Home (Account), Nomination and Claim since the Service Overview and Restake pages will most likely be hidden when launching
Here is an simple example (the page is load instantly when navigating):
https://github.com/webb-tools/webb-dapp/assets/69841784/0617ea57-e03e-42e1-875a-247d49751f38


Solve an issue where Element selector crashes the XCTestRunner

Proposed Changes
Remove the XCUIElement based text input variant because it crashes with apps with big view hierarchies (react native).
Testing
Manual

did it ever happened in prod? asking because 45+ symbols input + RN app with complex hierarchy sounds like edge-case scenario.
Yes I see it with a customers app that I'm testing.

the downside is the input will be slow and might even timeout
Slow is better than broken. Let's do a real copy/paste implementation instead of falling back to element selectors.


self.to_k_style and self.to_v_style

https://github.com/GongyeLiu/StyleCrafter/blob/8d7ce622964ae63667ecb5fbd0013744e3558ce4/lvdm/modules/attention.py#L628
Hello, did self.to_k_style and self.to_v_style  need to be trained with Query-transformer? Or do you directly use to_k and to_v in latent-diffusion?

Yes, both are trained during the Stage 1. Please refer to our technique report for details.
The to_k_style and to_v_style refer to the style branch of the cross-attention layer, whereas to_k and to_v represent the original text branch of the cross-attention, they are different components.

Hello,  are to_k_style and to_v_style trained from scratch? Or they fine-tuned based on to_k and to_v?
从 Windows 版邮件发送
发件人: Liu Gongye
发送时间: 2024年8月24日 11:44
收件人: GongyeLiu/StyleCrafter
抄送: dmmSJTU; Author
主题: Re: [GongyeLiu/StyleCrafter] self.to_k_style and self.to_v_style(Issue #10)

Yes, both are trained during the Stage 1. Please refer to our technique report for details.
The to_k_style and to_v_style refer to the style branch of the cross-attention layer, whereas to_k and to_v represent the original text branch of the cross-attention, they are different components.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

No, they are initialized from the to_k and to_v's parameters. Then to_k and to_v are fixed, to_k_style and to_v_style are finetuned(along with other parameters).

Got it. Thank you very much.
In the paper, “for target image, we scale the shorter side of the image to 512 and then crop the target content
from the central area;”  假如原始图像H=300 w=1024，根据文中的说法就是w不变，H resize为512。是这样理解吗？
从 Windows 版邮件发送
发件人: Liu Gongye
发送时间: 2024年8月24日 23:43
收件人: GongyeLiu/StyleCrafter
抄送: dmmSJTU; Author
主题: Re: [GongyeLiu/StyleCrafter] self.to_k_style and self.to_v_style(Issue #10)
No, they are initialized from the to_k and to_v's parameters. Then to_k and to_v are fixed, to_k_style and to_v_style are finetuned(along with other parameters).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

No, the aspect ratio will be maintained.
Maybe this repo can help you? We just released the training code of StyleCrafter-SDXL, detailed training settings are available in the code.

I got it. That’s great work. Thank you.
从 Windows 版邮件发送
发件人: Liu Gongye
发送时间: 2024年8月25日 1:19
收件人: GongyeLiu/StyleCrafter
抄送: dmmSJTU; Author
主题: Re: [GongyeLiu/StyleCrafter] self.to_k_style and self.to_v_style(Issue #10)
No, the aspect ratio will be maintained.
Maybe this repo can help you? We just released the training code of StyleCrafter-SDXL, detailed training settings are available in the code.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Lerna doesn't bootstrap after yarn install

When first cloning the repository and running the tests, the repository is not bootstraped by lerna.
Lerna should bootstrap postinstall.

Thanks for the report and PR
Because this change didn't cause a version changed (which is a good thing 😄 ) I'm gonna manually close this
Thanks again!


[GHSA-8g2p-5pqh-5jmc] .NET Information Disclosure Vulnerability

Updates

References

Comments
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41064 seems just reserved, but I think it's also the same as https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-41064

Hi there @carlossanlop! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our highly-trained Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

Hi @shanrath, thanks for contributing some reference links. We usually wait until CVE records are populated before adding them as references, but the Microsoft advisory is useful now and you'll get credit for contributing it.


Added swaggo operation ID & renamed handlers

[x] I've added a new note in the CHANGELOG.md file, according to docs:
https://iver-wharf.github.io/#/development/changelogs/writing-changelogs

Summary

Added Swaggo // @id comment field, which adds Swagger operation IDs to the endpoints.
Changed name of Gin handler methods to correlate with the new Swagger op IDs

Motivation
Closes #67

Wouldn't this potentially count as a MAJOR version bump, since the function names when generating rest clients over at wharf-web will change? Or is it decoupled in a way that makes it not really count?

Wouldn't this potentially count as a MAJOR version bump, since the function names when generating rest clients over at wharf-web will change? Or is it decoupled in a way that makes it not really count?

The endpoints stay the same. So older versions will still work with the new version.


Unified way to handle links

I'm struggling with inline links to other pages in Notion content. Contrary to what one might expect, those aren't reported as link_to_page, but will silently be passed to md.link():
if (content["href"])
  plain_text = md.link(plain_text, content["href"]);

parsedData += plain_text;

See /src/notion-to-md.ts#L398-L401
In this case, href might be /fae18db43ae240bbb05771a6e531b494, which makes it hard to detect valid links and replace them with references to the local pages.
A good solution would be to pass those to some kind of (new?) link transformer, if available.

Currently saving child pages as a separate file is a work in progress (#71). I hope that'll fix this issue.

The feature is now live in v2.6.0. Does it solve the issue?


[Ethfinex] Added unit tests

Related to #9
Description

Added initial Jest config for testing
Add unit tests for Ethfinex
Simplify pricing calculation in OrderBookExchange

@grahamperich I left a couple comments regarding some small issues I ran into / config decisions, but the tests are working and the coverage is pretty solid.  🎉 To see the coverage report:
$ yarn test && open coverage/lcov-report/index.html

Evidence
Lint
[01:35:31 AM] @stefanmendoza ➜  ethereum-dex-prices-service git:(ethfinex-tests_issue-9) git log -1
commit 77042bf8a06c46a42c86c03c57366e3eb0500a22 (HEAD -> ethfinex-tests_issue-9, origin/ethfinex-tests_issue-9)
Author: Stefan Mendoza<EMAIL_ADDRESS>Date:   Tue Feb 12 01:32:51 2019 -0600

    [Ethfinex] Added unit tests

    - Added initial Jest config for testing
    - Add unit tests for Ethfinex
    - Simplify pricing calculation in OrderBookExchange
[01:35:51 AM] @stefanmendoza ➜  ethereum-dex-prices-service git:(ethfinex-tests_issue-9) yarn lint && yarn prettier:check
yarn run v1.13.0
$ eslint .
✨  Done in 2.77s.
yarn run v1.13.0
$ prettier '**/*.js' -l
✨  Done in 1.29s.

Tests
[01:36:01 AM] @stefanmendoza ➜  ethereum-dex-prices-service git:(ethfinex-tests_issue-9) git log -1
commit 77042bf8a06c46a42c86c03c57366e3eb0500a22 (HEAD -> ethfinex-tests_issue-9, origin/ethfinex-tests_issue-9)
Author: Stefan Mendoza<EMAIL_ADDRESS>Date:   Tue Feb 12 01:32:51 2019 -0600

    [Ethfinex] Added unit tests

    - Added initial Jest config for testing
    - Add unit tests for Ethfinex
    - Simplify pricing calculation in OrderBookExchange
[01:36:04 AM] @stefanmendoza ➜  ethereum-dex-prices-service git:(ethfinex-tests_issue-9) yarn test
yarn run v1.13.0
$ jest
 PASS  tests/exchanges/Ethfinex.test.js
  Ethfinex
    ✓ defines the proper markets endpoint (3ms)
    ✓ defines the proper orderbook endpoint
    computePrice
      ✓ returns the average and total prices for a buy order across price levels (1ms)
      ✓ returns the average and total prices for a sell order across price levels
      ✓ returns the average and total prices with full liquidity at one price level
      errors with no price data
        ✓ when an error occurs while getting the available markets (2ms)
        ✓ when an ETH market for the token does not exist (1ms)
        ✓ when an error occurs while retrieving the order book (1ms)
      errors with not enough liquidity
        when selling
          ✓ when there are no bids
          ✓ when the total amount is greater than all bids
        when buying
          ✓ when there are no asks (1ms)
          ✓ when the total amount is greater than all asks

-------------|----------|----------|----------|----------|-------------------|
File         |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
-------------|----------|----------|----------|----------|-------------------|
All files    |    86.84 |      100 |    77.78 |    86.49 |                   |
 Ethfinex.js |    86.84 |      100 |    77.78 |    86.49 |    37,44,48,50,57 |
-------------|----------|----------|----------|----------|-------------------|
Test Suites: 1 passed, 1 total
Tests:       12 passed, 12 total
Snapshots:   0 total
Time:        2.768s
Ran all test suites.
✨  Done in 4.38s.

I will take a closer look this afternoon and address your comments. Thanks for the PR!


Important issue: Minhash mash files are out of date

The following genome, made public in January does not find itself in the similar genome finder.

Bob, what is the current process for generating the minhash sketches for the public genomes? Is it automated or do you generate them manually after every release?
If latter, I can make it part of the same update process as generating download files and BLAST databases, so that you have one less thing to worry about. This is not automated either, but I have been thinking about it as part of consolidating the whole data update cycle.
-Maulik

It is not automated but mostly scripted.
I need to get some of this stuff checked in.
The quick story is
minhash-build-sketches -p 12  /vol/patric3/downloads/genomes /disks/patric-common/data/minhash/sketches
mkdir /disks/patric-common/data/minhash/combined.2018-0806
minhash-create-combined-sketches /disks/patric-common/data/minhash/sketches /disks/patric-common/data/minhash/combined.2018-0806
Visually check, and then swing the symlink /disks/patric-common/data/minhash/combined to point at the new directory. This happens on gum.mcs.anl.govhttp://gum.mcs.anl.gov.
—bob
On Aug 16, 2018, at 4:09 PM, Maulik Shukla <notifications<EMAIL_ADDRESS>wrote:
Bob, what is the current process for generating the minhash sketches for the public genomes? Is it automated or do you generate them manually after every release?
If latter, I can make it part of the same update process as generating download files and BLAST databases, so that you have one less thing to worry about. This is not automated either, but I have been thinking about it as part of consolidating the whole data update cycle.
-Maulik
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/PATRIC3/patric3_website/issues/2080#issuecomment-413685743, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACDXIp5f6W6aGRJErE24ZW1gYjlQhRB1ks5uRd-hgaJpZM4WAJ5g.


Fixed broken Flags and Choices default properties

When building a map, if an entity is missing key value pairs due to not being filled out in Trenchbroom (grayed out key values) then Qodot will attempt to fill the missing properties with their defaults.
Flags and Choices are set up using Arrays and Dictionaries. If the value is found, they correctly apply integers to the property. If the value isn't found, they become the Arrays and Dictionaries defined in the FGD Class resource.
With the fix, Flags will now sum up properly to the default Flag settings, and Choices will automatically be set to the correct choice if the optional default is provided.

Hmm... must've missed something. The values get entered correctly in properties, but I may have broken origins in the process.


Spooky Scary Skeletons!

Not tested 100% sure it works

@GunHog All ready to go boss :+1:

Did you test it? All of it? I want screenshots.

:-1: will test

:-1: doesn't work apparently and not enough room in the script editor

This is why I tell you to test things, and why I told you not to waste space :)

Not borken!

@GunHog Skeleton was tested and works

Bueno. Do not disappoint me, Nex!

D: I forgot the proof of it working


Adding video about sound classifier to tutorial

What kind of change does this PR introduce?
Adding this sound classification video tutorial! https://youtu.be/cO4UP2dX944

Does this PR introduce a breaking change?
I'm making this change / pull request via the GitHub interface so I haven't tested building the site. Hopefully my YAML is correct!

@shiffman - awesome! just tested it and it works!

Just waiting for the tests to pass, then we can merge :)


Fix : Use RegEx based splitting instead of space character

This PR solves the problem of treating each space as an argument .

thank you @Eniamza! would you be interested in developing this regularly? happy to share LBC :)


Create CloudWatch dashboard

Can try an internet monitor for CloudFront: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html
Or a synthetics canary to track API Gateway requests: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-synthetics-canary.html

Was reading this blog about Lambda Powertools and it got me thinking about how we could collect metrics in this app.

from aws_lambda_powertools import Logger, Metrics, Tracer

tracer = Tracer()

@metrics.log_metrics(capture_cold_start_metric=True)
def lambda_handler(event, context):
...
check_out_cart() # Function to process the checkout
metrics.add_metric(name="CartCheckedOut", unit="Count", value=1)

This is the easiest method I've seen for sending business metrics (instead of server metrics like execution time or CPU usage) in CloudWatch. We create a namespace, one or more dimensions, and metrics for each dimension. Then we just call a method to record a unit and value for a metric, simple as it should be.

Alternative: Pinpoint Analytics
Endpoints: https://docs.aws.amazon.com/pinpoint/latest/developerguide/integrate-endpoints.html
Events: https://docs.aws.amazon.com/pinpoint/latest/developerguide/integrate-events.html
$ aws pinpoint put-events --application-id AWSShopApp --events-request file://events.json

{
  "BatchItem": {
    "UserId": {
      "Endpoint": {},
      "Events": {
        "EventId": {
          "AppPackageName": "com.example.app",
          "AppTitle": "AWS Shop",
          "AppVersionCode": "v1.2.1",
          "Attributes": { "service": "DeepRacer" },
          "ClientSdkVersion": "v3.198.0",
          "EventType": "EventName",
          "Metrics": { "count": 1 },
          "SdkName": "aws-sdk",
          "Session": {
            "Duration": 1000,
            "Id": "SessionId",
            "StartTimestamp": "ISO datetime",
            "StopTimestamp": "ISO datetime"
          },
          "Timestamp": "ISO datetime"
        }
      }
    }
  }
}

Payload details: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/pinpoint/put-events.html
The events pricing is generous, but the endpoints (monthly targeted audience, MTA) pricing is limited if the free tier is really for the first 12 months. Though, I don't think endpoints are required if we don't need to target specific users or devices.