DetailedApiRequestError, Could not resolve the package 'flutter_web'

I ran the flutter examples of Basic Flutter layout concepts on Chrome browser. But it was not working.
It showed the bellow error message on the console.

Error compiling to JavaScript:
DetailedApiRequestError(status: 400, message: Error: Could not resolve the package 'flutter_web' in 'package:flutter_web/material.dart'.
Error: Could not resolve the package 'flutter_web_test' in 'package:flutter_web_test/flutter_web_test.dart'.
Error: Could not resolve the package 'flutter_web_ui' in 'package:flutter_web_ui/ui.dart'.
/tmp/dartpadWDNGRD/main.dart:1:8: Error: Not found: 'package:flutter_web/material.dart'
import 'package:flutter_web/material.dart';
^
/tmp/dartpadWDNGRD/main.dart:2:8: Error: Not found: 'package:flutter_web_test/flutter_web_test.dart'
import 'package:flutter_web_test/flutter_web_test.dart';
^
/tmp/dartpadWDNGRD/main.dart:3:8: Error: Not found: 'package:flutter_web_ui/ui.dart'
import 'package:flutter_web_ui/ui.dart' as ui;
^
/tmp/dartpadWDNGRD/main.dart:5:24: Error: Type 'StatelessWidget' not found.
class MyWidget extends StatelessWidget {
^^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:7:3: Error: Type 'Widget' not found.
Widget build(BuildContext context) {
^^^^^^
/tmp/dartpadWDNGRD/main.dart:7:16: Error: Type 'BuildContext' not found.
Widget build(BuildContext context) {
^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:16:21: Error: Type 'StatelessWidget' not found.
class MyApp extends StatelessWidget {
^^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:18:3: Error: Type 'Widget' not found.
Widget build(BuildContext context) {
^^^^^^
/tmp/dartpadWDNGRD/main.dart:18:16: Error: Type 'BuildContext' not found.
Widget build(BuildContext context) {
^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:7:16: Error: 'BuildContext' isn't a type.
Widget build(BuildContext context) {
^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:8:12: Error: The method 'Row' isn't defined for the class 'MyWidget'.

'MyWidget' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Row'.
return Row(
^^^
/tmp/dartpadWDNGRD/main.dart:9:26: Error: The getter 'MainAxisAlignment' isn't defined for the class 'MyWidget'.
'MyWidget' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MainAxisAlignment'.
mainAxisAlignment: MainAxisAlignment.center,
^^^^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:11:9: Error: The getter 'Image' isn't defined for the class 'MyWidget'.
'MyWidget' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Image'.
Image.network('https://urlzs.com/RsqCz'),
^^^^^
/tmp/dartpadWDNGRD/main.dart:18:16: Error: 'BuildContext' isn't a type.
Widget build(BuildContext context) {
^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:19:12: Error: The method 'Directionality' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Directionality'.
return Directionality(
^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:20:22: Error: The getter 'TextDirection' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'TextDirection'.
textDirection: TextDirection.ltr,
^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:21:14: Error: The method 'Container' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Container'.
child: Container(
^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:22:16: Error: The method 'Color' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Color'.
color: Color(0xffeeeeee),
^^^^^
/tmp/dartpadWDNGRD/main.dart:23:16: Error: The method 'Center' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Center'.
child: Center(
^^^^^^
/tmp/dartpadWDNGRD/main.dart:24:18: Error: The method 'Container' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Container'.
child: Container(
^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:26:20: Error: The method 'Color' isn't defined for the class 'MyApp'.
'MyApp' is from '/tmp/dartpadWDNGRD/main.dart'.
Try correcting the name to the name of an existing method, or defining a method named 'Color'.
color: Color(0xffcccccc),
^^^^^
/tmp/dartpadWDNGRD/main.dart:35:9: Error: Method not found: 'webOnlyInitializePlatform'.
await ui.webOnlyInitializePlatform();
^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:37:3: Error: Method not found: 'runApp'.
runApp(MyApp());
^^^^^^
/tmp/dartpadWDNGRD/main.dart:39:43: Error: Getter not found: 'WidgetsBinding'.
final controller = LiveWidgetController(WidgetsBinding.instance);
^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:39:22: Error: Method not found: 'LiveWidgetController'.
final controller = LiveWidgetController(WidgetsBinding.instance);
^^^^^^^^^^^^^^^^^^^^
/tmp/dartpadWDNGRD/main.dart:41:50: Error: Getter not found: 'Row'.
final rows = controller.widgetList(find.byType(Row));
^^^
/tmp/dartpadWDNGRD/main.dart:41:38: Error: Getter not found: 'find'.
final rows = controller.widgetList(find.byType(Row));
^^^^
/tmp/dartpadWDNGRD/main.dart:53:29: Error: 'Row' isn't a type.
final row = rows.first as Row;
^^^
/tmp/dartpadWDNGRD/main.dart:55:27: Error: Getter not found: 'MainAxisSize'.
if (row.mainAxisSize != MainAxisSize.max) {
^^^^^^^^^^^^
)

Sorry. I am Flutter Korea Oranizers and the maintainer of flutter-ko.dev .
I will fix this issue.

Thanks for taking a look, @techhtml!
I'm closing this, as it's not a DartPad issue per se, and will be fixed once flutter-ko.dev has been updated.

I am facing issue while running
Running Gradle task 'assembleDebug'...
Invalid depfile: D:\development\flutter\database_intro.dart_tool\flutter_build\6482f2549a69e1729e6d4888d6470c00\kernel_snapshot.d
Invalid depfile: D:\development\flutter\database_intro.dart_tool\flutter_build\6482f2549a69e1729e6d4888d6470c00\kernel_snapshot.d
Compiler message:
Error: Could not resolve the package 'database_intro' in 'package:database_intro/models/user.dart'.
Error: Could not resolve the package 'database_intro' in 'package:database_intro/utils/database_helper.dart'.
lib/main.dart:1:8: Error: Not found: 'package:database_intro/models/user.dart'
import 'package:database_intro/models/user.dart';
^
lib/main.dart:2:8: Error: Not found: 'package:database_intro/utils/database_helper.dart'
import 'package:database_intro/utils/database_helper.dart';
^
lib/main.dart:9:16: Error: Method not found: 'DatabaseHelper'.
var db = new DatabaseHelper();
^^^^^^^^^^^^^^
lib/main.dart:12:26: Error: Method not found: 'User'.
await db.saveUser(new User("Genyy", "musician"));
^^^^
lib/main.dart:69:39: Error: The getter 'User' isn't defined for the class 'Home'.

'Home' is from 'package:databaseintro/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'User'.
child:  Text("${User.fromMap(_users[position]).username.substring(0, 1)}"),
^^^^
lib/main.dart:71:46: Error: The getter 'User' isn't defined for the class 'Home'.
'Home' is from 'package:databaseintro/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'User'.
title: new Text("User: ${User.fromMap(_users[position]).username}"),
^^^^
lib/main.dart:72:46: Error: The getter 'User' isn't defined for the class 'Home'.
'Home' is from 'package:databaseintro/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'User'.
subtitle: new Text("Id: ${User.fromMap(_users[position]).id}"),
^^^^
lib/main.dart:74:47: Error: The getter 'User' isn't defined for the class 'Home'.
'Home' is from 'package:databaseintro/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'User'.
onTap: () => debugPrint("${User.fromMap(_users[position]).password}"),
^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-
uri:package%
3Adatabase_intro%2Fmodels%2Fuser.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_s
ystem.dart:33:7)
#1      asFileUri (package:vm/kernel_front_end.dart:604:37)
#2      writeDepf
ile (package:vm/kernel_front_end.dart:799:21)

#3      Fronten
dCompiler.compile (package:frontend_server/frontend_server.dart:472:15)

#4      _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server
.dart:38:22)
#5      starter (package:flutter_frontend_server/server.dart:149:27)
#6
main (file:///C:/b/s/w/ir/cache/builder/src/flutter/flutter_fr
ontend_server/bin/starter.dart:8:30)
#7      _startIsolate. (dart:isolate-patc
h/isolate_patch.dart:305:32)
#8      _RawReceivePortImpl._handleMe
ssage (dart:isolate-patch/isolate_patch.dart:174:12)

Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.

Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 14s
Finished with error: Gradle task assembleDebug failed with exit code 1


Documetation usability bug -

The online docs e.g. https://lxd.readthedocs.io/en/stable-4.0/instances/#keyvalue-configuration currently have some formatting issues which makes the instance key/value configuration section very difficult to read.
The key value information is presented as a large table, and the full width of it cannot be viewed horizontally (a horizontal scroll-bar appears at the bottom of the table) zooming out to reduce the text size in an effort to increase the visibility, just squashes the table onto the left side of the web page rather than making more of it visible (tested with Firefox 79 and Chrome 84 on a 16:9 15" 4k display).

Yeah, the bad style is one of the reason why we've moved away from readthedocs.io.
https://linuxcontainers.org/lxd/docs/master/instances renders a fair bit better here and is where we've moved the documentation for the main branch and will soon follow with the stable branches (I'll add 4.0 now as it has the needed metadata).
Horizontal scrolling is likely to be a necessary evil though as wrapping makes it even harder to read and the alternative would be a paragraph per key which makes it almost impossible to search.

OK, that's better thanks.
At least I can fit it all on screen by zooming out (although that's not viable for lower resolution displays).  If there were some way to optionally/temporarily hide the left and right contents bars, that would make this sort of wide table more usable for more people.
It's a tricky problem, but in the case of this particular table, the layout forces a lot of white-space in the centre of the table.
If it is possible to wrap only certain columns (or limit the max height of each row), then the columns that usually contain a single word, but might contain two words (e.g. the "Default"  "Live Update" "Condition" columns), could shrink horizontally, and claw back a lot of dead whitespace (a key thing for many users would be to simultaneously be able to read the "description" and "key" text visible at the same time.
If that's not possible currently, please let me know and I'll suggest it at https://github.com/canonical-web-and-design/vanilla-framework to see what they think.

We'd need the various columns to have a specific class so we can then change the behavior in our custom CSS, currently that's not the case and may be more of a limitation of python-markdown

https://linuxcontainers.org/lxd/docs/stable-4.0/ has stable-4.0 now


fix(templates): enable ESM in all templates

Description
ESM is not enabled in most templates, which causes an error when the project is started (except for Svelte, fixed by https://github.com/vitejs/vite/pull/3835).
import { defineConfig } from 'vite'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1025:15)
    at Module._compile (node:internal/modules/cjs/loader:1059:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Object.require.extensions.<computed> [as .js] (...\node_modules\vite\dist\node\chunks\dep-11db14da.js:75452:13)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at loadConfigFromBundledFile (...\node_modules\vite\dist\node\chunks\dep-11db14da.js:75457:17)14da.js:75457:17)

What is the purpose of this pull request?

[X] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[X] Read the Contributing Guidelines.
[X] Read the Pull Request Guidelines and follow the Commit Convention.
[X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

I wouldn't count that as a bug-fix but as a feature request due to you are always able to set this on your own after initial setup

I wouldn't count that as a bug-fix but as a feature request due to you are always able to set this on your own after initial setup

It should be able to work well after setup without throwing exception and need further configures.

It should be able to work well after setup without throwing exception and need further configures.

Could you provide a reproducible?
In example: I never had issues with template-vue-ts :thinking:
Even I think I read something about that lit-element doesn't work with it currently
So I currently question myself if you had even tested all this?!

Even I think I read something about that lit-element doesn't work with it currently

Yes, it works. I had this problem with lit-element, and by activating ESM, it worked

So I currently question myself if you had even tested all this?!

Only lit-element, but if you want, I can test them all

Only lit-element, but if you want, I can test them all

That would be nice :slightly_smiling_face:

[x] Vanilla / Vanilla TS
[x] Vue / Vue TS : blank page & Uncaught SyntaxError: import not found: default in the browser (also reproducible with CJS, the problem does not come from this PR)
[x] React / React TS
[ ] Preact / Preact TS (cf. https://github.com/preactjs/preset-vite/issues/11, can be fixed by preact() -> preact.default()). There is also the Uncaught SyntaxError: import not found: default error in the browser, same as above (& blank page)
[x] Lit Element / Lit Element There is also the Uncaught SyntaxError: import not found: default error in the browser, same as above, but the page isn't blank

How did you test these templates? Any code examples?

I used my create-vite (with this commit).
node ../path/to/vite/packages/create-vite/index.js for each template.

How did you test these templates? How are the errors thrown?

I installed the dependencies and ran npm run dev for each template.
For Preact, the error is thrown when I npm run dev. For the rest it is in the browser console.

That doesn't sound right. I never heard that the vite templates is failing right after scaffolding. Could you please open an issue for this problem? I think I need more context for this situation.

Please also see e.g. this issue https://github.com/vitejs/vite/issues/4307
So if we change it in every template suddenly it will break unexpected things
I'm not very quite satisfied at the moment with this PR/change 😬

Yes I know, the ESM support of Yarn PnP is still in draft.
It is always possible for them to disable ESM anyway. And it's only a minority that will have to switch to CJS.

I've seen issues caused by type: "module", but I still don't know what exactly this PR fixes.
Could you please also open an issue for the problem in your original PR description?

My hesitations on this PR:

I don't know what it fixes, because there are no related bug reports
I don't know what and how many bugs it might bring, because there are already other issues people are complaining about, yet there's #4302 that I can't even reproduce. It's a risk.

I don't know what it fixes, because there are no related bug reports

I couldn't use Lit Element without enabling ESM, which should have been done in the template.

I couldn't use Lit Element without enabling ESM

Which I never heard of. Please open an issue before submitting the fix.

Indeed, this error (SyntaxError: Cannot use import statement outside a module) did not come from the templates, but from a symlink.
https://github.com/vitejs/vite/issues/4302#issuecomment-882510807


dhcp6c No Release Option

dhcp6c sends a release signal on exit by default. This can cause the loss of the allocated prefix or address and a new one on the next connection. This is the case with many ISPs especially Sky UK.
This option allows the user to disable the release send.
I added the  -n option to the FreeBSD dhcp6c quite a while back.

What the f***...
Hold on, looks like copy did not work, my appols!

Ok, that was stupid.... fixed.

@marjohn56 can you please reuse your PR branches? GitHub supports this, we don’t mind squash and (force) push :)


Ios app get previous token FCM version

Describe the bug
Only on iOS, notifications are not displayed after installing, uninstalling and reinstalling the application.
This problem is caused by the fact that the build token is taken first when the application is started.
If the build were redone without uninstalling the app, the notifications would work again.
Because precisely the token is updated to the right version and no longer in the canceled one.
To Reproduce
Steps to reproduce the behavior:

Install application
Uninstall application
Reinstall application
Now there is the previous token FCM
If you reinstall application withouth uninstalling application it works

Expected behavior
I would like the token to be updated to the right version without having to install the application twice.
Flutter doctor
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.5 19F101, locale it)
• Flutter version 1.17.1 at /Users/brian/Development/flutter
• Framework revision f7a6a7906b (4 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/brian/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/brian/Library/Android/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.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.8.4
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.45.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.11.0
[✓] Connected device (1 available)
• iPhone di Brian  • 00008020-000E790E0A04002E • ios • iOS 13.4.1
• No issues found!
Process finished with exit code 0

Closing in favour of trying the latest messaging version which has since this issue was created been heavily reworked to improve it along with detailed documentation: https://firebase.flutter.dev/docs/messaging/overview
If you still have a problem please raise a new GitHub issue with up to date information and code snippets if possible. Thanks.


Jm update readme

Updated the README to reflect the latest changes: added PYTHONPATH export and how to clone with git; update the conda install line to use the appropriate channels. All badges now work as expected.
This should resolve #4 as much as is possible currently.
For future: Once the package is at a more developed stage we will need to add a setup.py and setup.cfg so we can install using pip/setuptools.

Pull Request Test Coverage Report for Build 4

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 74.981%

Totals

Change from base Build 3:
0.0%

Covered Lines:
1010

Relevant Lines:
1347

💛  - Coveralls


missing reference

I'm porting one services, from the preview in krl using EntityFrameWork 7.0.0-Beta4, to the new version with Dnx, and using EntityFramework 7.0.0-Beta6, i can't find the way to set the relation betwen my entities, i try to follow the examples but theres is always something missing.
var alm = Builder.Model.GetEntityType(typeof(Almacen));
var fkAlm = alm.ForeignKeys.Single(k => k.ReferencedEntityType == tras);
The error is:
Error	CS1061	'EntityType' does not contain a definition for 'ForeignKeys' and no extension   method 'ForeignKeys' accepting a first argument of type 'EntityType' could be found (are you missing a using directive or an assembly reference?)

Try replacing alm.ForeignKeys to alm.GetForeignKeys()

i make the change to someting like this, i have to run migration proces tosee how does it generate the model.
        var tras = Builder.Model.GetEntityType(typeof(Traspaso));
        var alm = Builder.Model.GetEntityType(typeof(Almacen));
        var fkAlm =( (List<ForeignKey>) alm.GetForeignKeys());
        tras.AddNavigation( "Almacen", fkAlm[0], pointsToPrincipal: true);

I see other method, is GetForeingKey(), but i don't know wich param send it, or how to send it.

You probably want something like:
builder.Entity<Post>()
    .Reference(p => p.Blog)
    .Collection(b => b.Posts)


Support reading rows from a specified rows area.

It seems that excel mapper need data rows filled to the last row of the sheet , but sometime I only want to read a rows area(eg. rows 10~20).

Exposed as
public class ExcelSheet
{
    /// <summary>
    /// Maps each row within the range specified to an object using a registered mapping. If no map is registered for this
    /// type then the type will be automapped. This method will not read the sheet's heading.
    /// </summary>
    /// <param name="startIndex">The zero-based index from the first row of the document (including the header) of the range of rows to map from.</param>
    /// <param name="count">The number of rows to read and map.</param>
    /// <typeparam name="T">The type of the object to map each row to.</typeparam>
    /// <returns>A list of objects of type T mapped from each row within the range specified.</returns>
    public IEnumerable<T> ReadRows<T>(int startIndex, int count)
    {
        // ...
    }
}


Add backend support for AMD performance counters.

This adds a new counter backend for the AMD GPUPerfAPI. Nothing is hooked up to the UI at this point, but only infrastructure work to expose them.
It's only implemented for D3D11 for now; the counter handling should be probably abstracted away into a separate interface.

Thanks! Manually merged in (with small follow-up commit) so closing this.


Add stats to WASM VMs.

Signed-off-by: John Plevyak<EMAIL_ADDRESS>For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description: Add stats to WASM VMs including active and number created.  Make V8 VMs clonable.
Risk Level: Low
Testing: Unit
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

@jmarantz can you take a pass on this, given your deep stats knowledge and recent discussions with @jplevyak on this subject?

hi -- can you give some more context to this PR? I'd like to understand better the relationship between threads & VM instances, and what exactly is the semantics when you clone a VM.
Thanks!
/wait

As per our discussions, the stats are going to be initialized infrequently should outlive the restarted VMs so that creation costs can be amortized and so that they do not get reset (to zero for counters).   This PR decouples the lifetime of stats from listeners and VM and also adds individual stats for active VMs and created VMs providing insight into VM life cycles.  A coming PR will use these mechanisms to add stats for VM startup issues as the current xDS configuration mechanism which is used for all filter/listener configurations (not just WASM) makes a configuration active even if there are issues (e.g. exceptions) and these stats will improve visibility of configuration issues (i.e. they can be be alerted on).

@mandarjog and @kyessenov have  context on this issue

The particular issue we were debugging was accumulation of Wasm VMs attached to draining listeners. Since draining listeners are removed on a timer basis, we may have quite a number of VMs alive at any point (including their onTick callbacks). A counter on the number of active VMs would help us here.

very cool. The comments form @jplevyak and @kyessenov would both be appropriate for the PR description.

Updated PR description.   PTAL

Ping.  This PR is largely independent of the Architecture doc and I have answered all the comments.
PTAL


Remove text "Testnet is now launched" from homepage

In this PR, I am going to update docs homepage to remove text "Testnet is now launched" as the mainnet has been live for 6 months.
Before the change:

After the change:

/staging


Add Pangeo Forge Feedstocks to the LEAP data Catalog

Supersedes #74

It works!
Couple of things though:

Right now there is a dataviewer link for all datasets (and it does not work in some cases). Can we switch that off for now until we have a separate PR with the ability to 'check for public/closed' at catalog creation time?
I am purposefully deploying this from a PR branch to check it. I need to still change some of the meta.yaml stuff.

thank you, @jbusecke / @norlandrhagen! i'm going to merge this


OCPEDGE-821: chore: disable leader election for single replica deployment

/lgtm

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

Comparison is base (2254a18) 81.74% compared to head (db13c96) 81.74%.
Report is 2 commits behind head on main.

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #557   +/-   ##
=======================================
  Coverage   81.74%   81.74%
=======================================
  Files          24       24
  Lines        1819     1819
=======================================
  Hits         1487     1487
  Misses        218      218
  Partials      114      114


TwigBridge 0.14.* not compatible with Twig 3.9.0

This commit in Twig 3.9.0 https://github.com/twigphp/Twig/commit/54d34b969b256ecd1c7aa3416205206d87686ef7 removes functions that TwigBridge is using like the call to twig_get_attribute() from src/Node/GetAttrNode.php
I think some code is going to need to be rewritten.  For now probably the thing to do is update twigbridge's composer.json to maybe require something like:
     "twig/twig": "~3.0 <=3.8.0",

So we just have to replace that call with \Twig\Extension\CoreExtension::getAttribute right?

Seems like it.
I was just now looking for other twig_*() functions that TwigBridge was calling and didn't find any.
If you make that change then you'd have to require twig >= 3.9.0 because the CoreExtension::getAttribute() isn't present in older twigs.

Faced the same issue, the workaround is to add that extra twig dependency at the root level instead of relying on TwigBridge to require it with the too broad ~3.0

If you make that change then you'd have to require twig >= 3.9.0 because the CoreExtension::getAttribute() isn't present in older twigs.

Yes. But if you wanna keep backward compatibilty, just do:
if (! function_exists("twig_get_attribute")) {
    function twig_get_attribute(
        $env,
        $source,
        $object,
        $item,
        $arguments,
        $type,
        $isDefinedTest,
        $ignoreStrictCheck,
        $sandboxed,
        $lineno
    )
    {
        return \Twig\Extension\CoreExtension::getAttribute($env,
            $source,
            $object,
            $item,
            $arguments,
            $type,
            $isDefinedTest,
            $ignoreStrictCheck,
            $sandboxed,
            $lineno);
    }
}

Fixed in https://github.com/rcrowe/TwigBridge/releases/tag/v0.14.3


showModalBottomSheet closes when dragging upwards to expand

Is there an existing issue for this?

[X] I have searched the existing issues
[x] I have read the guide to filing a bug

Steps to reproduce

Open modal sheet
Drag sheet down near the bottom
Drag up fast and release the finger inside the area occupied by the bottom half of the extended sheet.

Expected results
The sheet should expand after dragging it up.
Actual results
The sheet closes.
Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          child: const Text('Open sheet'),
          onPressed: () => _showModalSheet(context),
        ),
      ),
    );
  }

  Future<dynamic> _showModalSheet(BuildContext context) {
    return showModalBottomSheet(
      isScrollControlled: true,
      context: context,
      builder: (context) {
        return SizedBox(
          height: MediaQuery.sizeOf(context).height * 0.8,
          child: const Padding(
            padding: EdgeInsets.all(24),
            child: Stack(
              children: [
                Text(
                    'Drag the sheet down and then drag it up fast. Releasing the sheet near the bottom, under half of the sheet height, should expand the sheet to full height. Instead, it closes the sheet.'),
                Center(
                  child: Text('Release finger under this | 0.5*height '),
                ),
              ],
            ),
          ),
        );
      },
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.0, on macOS darwin-arm64)
    • Flutter version 3.16.0 on channel stable at /Users/_/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (6 days ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/_/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_HOME = /Users/_/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.13.0

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

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

[✓] Connected device

[✓] Network resources
    • All expected network resources are available.

Thanks for filing this.
Can you help with a screen record of how this behaves on your end?
Testing this on my end, this seems to work as expected (see video below)
https://github.com/flutter/flutter/assets/53122008/a4373756-de80-48b6-8ebe-bc574fab26c2
flutter doctor -v

[!] Flutter (Channel stable, 3.16.0, on macOS 14.0 23A344 darwin-arm64, locale
    en-NG)
    • Flutter version 3.16.0 on channel stable at
      /Users/damilolaalimi/sdks/flutter
    ! Warning: `dart` on your path resolves to
      /opt/homebrew/Cellar/dart/3.1.5/libexec/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/damilolaalimi/sdks/flutter.
      Consider adding /Users/damilolaalimi/sdks/flutter/bin to the front of your
      path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (7 days ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/damilolaalimi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/damilolaalimi/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.12.1

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

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)

[!] Android Studio (version unknown)
    • Android Studio at /Users/damilolaalimi/Downloads/Android Studio
      Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

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

[✓] VS Code (version 1.83.1)
    • VS Code at /Users/damilolaalimi/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        •
      android-arm64  • Android 14 (API 34) (emulator)
    • Damilola’s iPhone (mobile)  • 00008110-001964480AE1801E            • ios
      • iOS 17.1.1 21B91
    • iPhone 15 (mobile)          • F17D2919-6D61-4295-8408-1719692FE958 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)             • macos                                •
      darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)                • chrome                               •
      web-javascript • Google Chrome 119.0.6045.159

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Sure, the first half is the current behavior. The second half is the expected behavior with the fix.
https://github.com/flutter/flutter/assets/114481466/54fef48d-bccf-4da8-bb46-7576b372bab3

https://github.com/flutter/flutter/pull/138841 has a partial fix for this issue, if anyone would like to pick that up as a head start to resolve this.


Ban peers sending blocks with duplicate transactions

trying to solve the issues raised in
https://github.com/stratisproject/StratisBitcoinFullNode/issues/1278
I think some of the previous unit tests were using a whitelisted peer where it should have been a normal one, making it less relevant, so I changed it, please let me know if that is a mistake
there is still the issue mentioned at the end by @noescape00 for blocks below the last checkpoint

After little more thinking, I realised that it is not that simple and if we want to move rule, any rule, we need to think much more about the consequences. Good rule of thumb here would be to keep the rules in the same order as bitcoin core has it.

Good rule of thumb here would be to keep the rules in the same order as bitcoin core has it.

Yes unless we have a good reason and have properly discussed moving a rule.

@monsieurleberre please fix the conflict

Ah @Aprogiena if you are happy then push after the conflict is merged.

I agree with https://github.com/stratisproject/StratisBitcoinFullNode/pull/1353#discussion_r185796429
otherwise it is OK, but wait for @noescape00

otherwise it is OK, but wait for @noescape00

I believe @monsieurleberre is still working on the integration test that will imitate a real life exploit for that bu so I'll wait for that one.

OK Dan let me quickly change according to your comments and resolve the conflict if I can.
I was thinking of adding the integration test in a separate PR, it is currently showing no banning and chain progress when syncing from the malicious peer. I hope that my test is not realistic and that you guys can help me :)


added sysdig secure and sysdig falco to the security section.

added sysdig secure and sysdig falco to the security section.

[Insert the URL to be listed]
[Explain what the project is about and why it should be listed]
By submitting this pull request I confirm I've read and complied with the below requirements.
Please read it multiple times. I spent a lot of time on these guidelines and most people miss a lot.

I have read and understood the contribution guidelines

The project submitted conforms to the quality standards outlined in the contribution guidelines

Go to the contribution guidelines and read it again.

RULES (because you probably didn't read the guidelines):
Links will be tested with awesome_bot. Please make sure your URL to be listed is unique (do some search queries), otherwise put a link at the end of README.md file.

FORMAT

Use the following format: [Name](Link) - Description.
[Name] should be the title of the project
(Link) should be pointing to a GitHub repository, not to a website
Description. should end with a full stop/period
For GitHub repositories, add the name of the author with a link to its GitHub account after the description, like By [@author](GitHub account)

ORDER: The entries are in lexical order (English letter order)
LABEL (Optional): Add one of the following icons next to the project name like [Name](Link) :icon: - Description.

:heavy_dollar_sign: indicates if one needs a paying subscription to use the project.
:construction: indicates that the project is a work in progress/beta release.
:skull: indicates that the project is obsolete, but still worth mentioning it.

Hi @apurvadave,
I see you are working at Sysdig. It seems like a nice project.
The URL are not conform to the guidelines:
  1. [L245] 301 https://www.sysdig.org/falco  → https://www.sysdig.org/falco/
  2. [L246] 301 https://www.sysdig.com/product/secure  → https://sysdig.com/product/secure/

We prefer to list the github project instead of a website. Could you make those change please ?
It is recommended to read the guidelines so that you will get the most out of the list.
Thank you and let us know if you need any assistance,
The Awesome Docker team

Congratulations for holding up! 😄


add ARM64 windows support

Describe the feature
Initial request from aws-sdk-cpp
Use Case
So the aws-sdk-cpp can be build on ARM64 windows platforms
Proposed Solution
This involves adding support for atomics on ATM64 windows builds. Current exception seen here:
#if !(defined(_M_IX86) || defined(_M_X64))
#    error Atomics are not currently supported for non-x86 MSVC platforms

Other Information
No response
Acknowledgements

[ ] I may be able to implement this feature request
[X] This feature might incur a breaking change

I would like to add that this support would be helpful for our team. Reason we need ARM64 support is for Hololens 2 devices (ARM64 Windows Architecture)


Add support for (Atom) feeds

Allows an (Atom) feed to be added to the <head>, if specified in options.

Looks good. Need to add documentation for this new option, too.
Am also wondering if the template added in https://github.com/x-govuk/x-govuk.github.io/pull/109 should instead be upstreamed into this project, with guidance similar to that we have for adding a site search.
Could take a collection to include in the feed:
---
eleventyExcludeFromCollections: true
layout: feed-xml
permalink: /posts.xml
collection: posts
---

@paulrobertlloyd @stevenjmesser ok I've upstream the Atom feed layout into this plugin, and added some initial docs. Let me know what you think.
I've set up a feed for the docs site itself for testing purposes, but given that the docs site doesn’t have any (chronological) posts, it’s empty.

@paulrobertlloyd re-review please! I've updated the documentation to also mention creating the post collection in the config file. You could do this with tags, but we’ve moved away from that to avoid every post having a "post" tag, which is annoying if you display the tags.

@paulrobertlloyd I think this is good to merge now? Then I'll do a release.


Fix missing comma

Thanks for the fix.
You'll need to sign-off the commit for checks to pass.

Thanks for the fix.
You'll need to sign-off the commit for checks to pass.

Codecov Report

Merging #446 (4780e62) into master (a637209) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #446   +/-   ##
=======================================
  Coverage   96.97%   96.97%
=======================================
  Files          55       55
  Lines        4068     4068
=======================================
  Hits         3945     3945
  Misses        123      123

Continue to review full report at Codecov.

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

Codecov Report

Merging #446 (4780e62) into master (a637209) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #446   +/-   ##
=======================================
  Coverage   96.97%   96.97%
=======================================
  Files          55       55
  Lines        4068     4068
=======================================
  Hits         3945     3945
  Misses        123      123

Continue to review full report at Codecov.

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

Thanks for the fix.
You'll need to sign-off the commit for checks to pass.

Thanks. Done.

Thanks for the fix.
You'll need to sign-off the commit for checks to pass.

Thanks. Done.


Update Adopters - Update Glovo

Signed-off-by: Yaser Toutah<EMAIL_ADDRESS>Hey, I just made a Pull Request!
Update Adopters - Update Glovo
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Hi @YasserToutah, I opened up #12088 to help you out with DCO. If you can leave a comment on that PR saying that it looks good we can merge that one instead.

Alternatively, I think the DCO check is failing because you don't have that email bound to your GitHub account


Sealer fails to deploy k8s cluster on rocky linux

What happen?
I use sealer to deploy k8s cluster on rocky linux, it fails.
enable debug,I found an error when starting  the sealer-registry.
The following is the system related information
kernal: 5.14.0-70.13.1.el9_0.x86_64
os: Rocky Linux release 9.0 (Blue Onyx)
k8s version: v1.21.14
docker version: 19.03.14-sealer
sealer: v0.8.6
Relevant log output?
+ docker run -d --restart=always --net=host --name sealer-registry -v /var/lib/sealer/data/my-cluster/rootfs/certs:/certs -v /var/lib/sealer/data/my-cluster/rootfs/registry:/var/lib/registry -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/sea.hub.crt -e REGISTRY_HTTP_TLS_KEY=/certs/sea.hub.key registry:2.7.1
docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.
+ startRegistry
+ n=1
+ ((  n <= 3  ))
+ echo 'attempt to start registry'
attempt to start registry
+ docker start sealer-registry
Error response from daemon: OCI runtime create failed: container with id exists:: unknown
Error: failed to start containers: sealer-registry

What you expected to happen?
I want k8s cluster to deploy correctly
How to reproduce it (as minimally and precisely as possible)?
No response
Anything else we need to know?

Rocky Linux release 9.0 (Blue Onyx)
What is the Kernel version?
5.14.0-70.13.1.el9_0.x86_64
Other environment you want to tell us?

Cloud provider or hardware configuration:
Install tools:
Others:

@BearDare I think it's a system compatibility issue.
Try using centos or ubuntu?

@BearDare I think it's a system compatibility issue.
Try using centos or ubuntu?

@BearDare Cloud you please make sure that you can use the docker community Version 19.03.14 normally on your operating system?

@BearDare Cloud you please make sure that you can use the docker community Version 19.03.14 normally on your operating system?
Thanks, I konw why.
because docker engine 20.10 support cgroup v2.
The built-in docker version of sealer is 19.03.14-sealer.
This issus can be closed


For Mobile SDKs, Create a Documentation website or GH-Pages

Starting a GitHub Project for a Documentation web site for GL Native docs (similar to maplibre/maplibre-gl-js-docs).
Examples of how it could be designed:

MapLibre.org/docs/android
MapLibre.org/docs/ios

or,

docs.maplibre.org/mobile/ios
etc.

or, it could simply be hosted on the branch gh-pages

maplibre.github.io/maplibre-gl-native/ios
maplibre.github.io/maplibre-gl-native/android

Tasks

[ ] Review existing docs and rebrand for MapLibre
[ ] Setup hosting (determine web site architecture, CNAME, GH-pages, etc)
[ ] Update GitHub Actions to publish based on a release

Notes on making docs
Android

GitHub Action

make android-javadoc

iOS

maplibre-gl-native/platform/ios/platform/ios/scripts/document.sh
make idocument

Would it also cover updating links in README - https://github.com/maplibre/maplibre-gl-native/tree/master/platform/android#getting-started ? Or is it a different documentation?

isn't the documentation here https://docs.maptiler.com/maplibre-gl-native-android/ up-to-date?

Oh nice we should build this :)

I guess building the iOS docs only works on macos...

@wipfli Are there any plans to create a quickstart tutorial (e.g. anything similar to https://maplibre.org/maplibre-gl-js-docs/api/#quickstart)?

@wipfli I am afraid we cannot, as we are not that familiar with the library.
We kind of hoped we can find such tutorial that helps us adopting this maps solution in our apps, so we haven't started using the library yet.


feat: implement optimized Serialize and Deserialize for Schedule

Scope
This PR is meant to supersede #118.
Its goal is to implement serde's Serialize and Deserialize for Schedule.
This feature request has been mentioned in https://github.com/zslayton/cron/issues/67#issuecomment-1514514631 but is not otherwise recorded in the project issues.
Commits
45115e1f31fad86a7c84530539e8fdd77accca55 — Add Serde compatiblity for type Schedule
This is a rebase of #118 by @max-huster onto the current master.
abdb52515aeceba7a11ca716161f434dc51094c6 — fix: impl Deserialize behind feature gate
This change fixes #118 by guarding impl Deserialize for Schedule behind the "serde" feature flag.
7520221e187c8a0473502c6d3ee367e1e14b6433 — feat: implement optimized Serialize and Deserialize for Schedule
This changeset improves upon #118 by making use of the recently merged https://github.com/zslayton/cron/pull/128:
Serialization
Serialization uses a direct reference into the Schedule::source.
Previously, the blanket implementation of ToString::to_string had been used, which unnecessarily allocated a string and leveraged format! machinery.
Deserialization
Deserialization suggests the Deserializer to provide an owned String to the visitor, as the Schedule will take ownership of the String after successful decoding.
Deserializers not incapable of providing owned Strings may pass a &str, which is decoded, then cloned into an owned String for storage in Schedule::source.
Public API changes
Beside implementing Serialize and Deserialize behind the "serde" feature flag, this changeset also adds a new public method Schedule::source(&self) -> &str.
This new public method is generally useful and therefore not guarded by the "serde" feature flag.
3cb0fa310182ebe8b838995f14abe4a30992233f — feat(ci): run tests for default features and all features separately
The tests for #[cfg(feature = "serde")] had not been run in CI.
This change creates separate CI jobs for testing with default features and testing with all features, to spot incompatibilities, dead code and incorrect feature gates.
Open questions
In https://github.com/zslayton/cron/pull/118#pullrequestreview-2023579873 you had asked for some unit tests for patterns beyond "* * * * * * *".
I wonder if this request still holds? Decoding of patterns is unit-tested elsewhere.
The serialization and deserialization unit tests appear to me to be covered by a successful serde_test::assert_tokens and an intentionally failing serde_test::assert_de_tokens_error.
If you would like to see further patterns used in the serde tests regardless, then I would ask you to point me to specifics regarding which kinds of patterns you would like to see tested.  I would then push a fourth commit adding the requested tests.

This looks great!

In https://github.com/zslayton/cron/pull/118#pullrequestreview-2023579873 you had asked for some unit tests for patterns beyond "* * * * * * *".
I wonder if this request still holds? Decoding of patterns is unit-tested elsewhere.
The serialization and deserialization unit tests appear to me to be covered by a successful serde_test::assert_tokens and an intentionally failing serde_test::assert_de_tokens_error.
If you would like to see further patterns used in the serde tests regardless, then I would ask you to point me to specifics regarding which kinds of patterns you would like to see tested. I would then push a fourth commit adding the requested tests.

My concern on this front was that it would be possible for the serde impl to erroneously match part of the input string (for example, reading * * * * * * * as * * * * * *) and report success even though going on to use it would produce unexpected results. Having unit tests that used a specific starting .after(datetime) and confirming that the next() fire time was correct would demonstrate not only that the deserializer accepted the string, but that the whole process worked end-to-end as well. I agree that extensive testing of the decoding is not necessary. It's possible that serde_test covers the input matching concern. What do you think?


Test write geom

Tests for just the function write_geometry() in isg.py. Two test- one to capture normal behavior, and another to capture the warning.

suggested changes have been addressed + added more robust check for the warnings

suggested changes have been addressed + added more robust check for the warnings


Automatic detection when the network is gone

possible, but all tested options block the UI/Main Thread when running the speed test.

current speed (if available through apples APIs) - similar to statmenu.


⚠ Bofrost.si has degraded performance

In 9927476, Bofrost.si (https://www.bofrost.si) experienced degraded performance:

HTTP code: 200
Response time: 2145 ms

Resolved: Bofrost.si performance has improved in ad513fc after 10 minutes.


[mvk-error] VK_POLYGON_MODE_POINT is not supported for render pipelines.

I'm trying to draw points using VK_PRIMITIVE_TOPOLOGY_POINT_LIST and VK_POLYGON_MODE_POINT but I get the following error:
[mvk-error] VK_ERROR_FORMAT_NOT_SUPPORTED: VkPolygonMode value VK_POLYGON_MODE_POINT is not supported for render pipelines.
fillModeNonSolid is set to VK_TRUE and supported. Vulkaninfo show the fillModeNonSolid Device Feature as supported.
gl_PointSize is set in the vertex Shader
I'm missing something or is this a bug? I'm linking against the VulkanSDK  <IP_ADDRESS> (using the vulkan.framework)
The following line inside the MVKPipeline.mm is for me not clear:
line 415:
if (pCreateInfo->pInputAssemblyState && !isRenderingPoints(pCreateInfo))
If you look into the function, this will return true if VK_PRIMITIVE_TOPOLOGY_POINT_LIST or VK_POLYGON_MODE_POINT are set.
Why is this function in line 415 than negated?

Because Metal doesn't have a MTLTriangleFillModePoints. I guess Apple just figured you'd use MTLPrimitiveTypePoint if you wanted to draw points. Although, rendering triangles and lines as points gives subtly different results than just drawing points straight up, mostly around primitive culling behavior. That is, if the triangle is the wrong winding, the points shouldn't be drawn at all, but with MTLPrimitiveTypePoint, they will be. We can't work around this, because Metal also doesn't support shader-controlled culling (CullDistance built-in in SPIR-V). Also, it gives different results for PrimitiveId. But Metal only got that fairly recently (macOS 10.15, iOS 13).
We used to actually use MTLPrimitiveTypePoint for this case, but then @kvark pointed out those discrepancies, so we added a bit to VK_KHR_portability_subset (now public) which indicates support for VK_POLYGON_MODE_POINT, which MoltenVK does not enable.


Increase test coverage

There should be more unit and integration tests.

I can do some unit tests to increase your tests coverage :)

Cool!

@Weysan I've added some integration tests recently, maybe you can extend those. :+1:

I will update my fork @kelunik thanks

@kelunik I tried to run the test locally with my command line :
AMP_TEST_BEANSTALK_INTEGRATION=1 phpunit --coverage-text
But I have that error on my console :
`Amp\Beanstalk\Test\IntegrationTest::testPut
Amp\Beanstalk\ConnectException: Connection attempt failed
/var/www/html/perso/beanstalk/src/Connection.php:98
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Failure.php:26
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:118
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:147
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Coroutine.php:93
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:41
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:118
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Deferred.php:48
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/functions.php:208
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:123
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Deferred.php:48
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/NativeDriver.php:203
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/NativeDriver.php:68
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/Driver.php:130
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/Driver.php:70
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop.php:53
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/functions.php:158
/var/www/html/perso/beanstalk/test/IntegrationTest.php:43
/root/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:206
/root/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:135
Caused by
Amp\Socket\ConnectException: Connection to tcp://<IP_ADDRESS>:11300 refused
/var/www/html/perso/beanstalk/vendor/amphp/socket/lib/functions.php:122
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Coroutine.php:74
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:41
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:118
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Deferred.php:48
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/functions.php:208
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Internal/Placeholder.php:123
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Deferred.php:48
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/NativeDriver.php:203
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/NativeDriver.php:68
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/Driver.php:130
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop/Driver.php:70
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/Loop.php:53
/var/www/html/perso/beanstalk/vendor/amphp/amp/lib/functions.php:158
/var/www/html/perso/beanstalk/test/IntegrationTest.php:43
/root/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:206
/root/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:135`
Any clue what could happen?
I will open the pull request, I have a coverage of 100% on the parser. If I manage to run the integration test, would be easier for me to add more tests for the other classes (difficult to do unit tests on Connection.php)

You need a running BeanstalkD instance for running it.

Okay, it works :) Will extends integration tests


Enrich mix test

Current mix test only targets on only basic functions. We need to support the behavior of all APIs as much as possible.

#113 has satisfied part of this issue. I think the remaining is to verify the creation and communication of the topic using a custom message type such as Twist.

I know. Tests are not rich yet. However, refactoring affect the test code. I will add tests with refactoring.

We close this issue with big thanks to the awesome contributions by @pojiro (e.g., #136)


Input doesn’t work (sometimes)

Attaching a video to better explain this, but sometimes, input fields don’t display what’s being entered, on mobile.
https://user-images.githubusercontent.com/5381764/218708262-ecc898da-cd02-4fb6-949b-4e0a6cb22540.MOV

Fixed here #103

Merged. Thanks.


when is _hasCache updating?

When does _hasCache in EditorSceneHelper update to false?
I couldn't find any reference about it, and I think EditorSceneHelper functions are not working correctly because its not updating.
e.g buildSettingsOptions = EditorSceneHelper.ScenesInBuildSettings.ToDisplayOptions() on SceneGroupEditor.OnEnable()
buildSettingsOptions  is not updating properly when new scene is added on buildsettings.

Hi,
Good catch here, I totally didn't notice this when I made that system, may bad. I'll take a look at this and get a fix up ASAP

Just committed a hotfix to the repository which should rectify this issue, the only edited files are:

EditorSceneHelper.cs
SceneGroupEditor.cs


Make --api-address option of ockam node create default to <IP_ADDRESS>:0

Current Behavior
ockam node create

define here https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_command/src/node/create.rs
currently has a default --api-address value of <IP_ADDRESS>:62526
This means that the second time ockam node create is run a new address must be specified.
Desired Behavior
We want it to be possible to:
ockam node create
ockam node create
ockam node create
ockam node create

where a new port is automatically picked for each node.

Would love to take a crack at this one

@tmuro17 a few quick notes:
We can't simply change the value to <IP_ADDRESS>:0
https://github.com/build-trust/ockam/blob/ee3919eaf07ed0bb6c02171cfa05e9970101a3d8/implementations/rust/ockam/ockam_command/src/util/mod.rs#L16
since the TCP listen is done by the spawned node and the command embedded node needs to know the address to speak with the spawned node
https://github.com/build-trust/ockam/blob/20da0a4112c9ffd6a08ff37d48ec0f544d5018d9/implementations/rust/ockam/ockam_command/src/node/create.rs#L154-L156
The only way I can think of is to create a function that does a TcpListener::bind on <IP_ADDRESS>:0 to find an unused port and then immediately stops listening to find an unused port. Then pass that port along when spawning a node.

@mrinalwadhwa You answered the question before I had time to look at the code and ask it.  And I like your solution to find an open port.

added in https://github.com/build-trust/ockam/pull/3064


Linux ARM packages are not compiled

ARM Linux modules fail (silently, which my be linked to #38). See RTK test e.g. here. The error message is
Building wheels for aarch64 using manylinux_2_28
+ sudo ldconfig
/opt/rh/gcc-toolset-11/root/usr/bin/sudo: line 41: /usr/bin/sudo: No such file or directory
Cleaning up artifacts from module build

and in the Publish Python package as GitHub Artifact:
Run actions/upload-artifact@v3
  with:
    name: LinuxWheel38
    path: dist/*.whl
    if-no-files-found: warn
Warning: No files were found with the provided path: dist/*.whl. No artifacts will be uploaded.

I probably did something wrong but that's not obvious to me what...

Hi @SimonRit , it looks like the GitHub runner encountered a connection issue while trying to install sudo on the aarch64 image during the run:
Status: Downloaded newer image for quay.io/pypa/manylinux_2_28_aarch64:2022-11-19-1b19e81
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
AlmaLinux 8 - BaseOS                             54 kB/s | 296 kB     00:05
Errors during downloading metadata for repository 'baseos':
  - Status code: 404 for http://mirrors.cat.pdx.edu/alma/8.7/BaseOS/aarch64/os/repodata/92157d88cc011d93db8ee5c5f73c3983de90180863e3111794ac0e7cacbb9785-primary.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://westus2.azure.repo.almalinux.org/almalinux/8.7/BaseOS/aarch64/os/repodata/d43f6d3a153ef11cc11bc936e10ec1aee97c0b3272921b37305c608dac295780-filelists.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://westus2.azure.repo.almalinux.org/almalinux/8.7/BaseOS/aarch64/os/repodata/92157d88cc011d93db8ee5c5f73c3983de90180863e3111794ac0e7cacbb9785-primary.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://eastus.azure.repo.almalinux.org/almalinux/8.7/BaseOS/aarch64/os/repodata/39fb15d25936ba34e0318ec264407348094fd096a46d95df80772cd14c6264bc-updateinfo.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://cvo.almalinux.osuosl.org/8.7/BaseOS/aarch64/os/repodata/d43f6d3a153ef11cc11bc936e10ec1aee97c0b3272921b37305c608dac295780-filelists.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://eastus.azure.repo.almalinux.org/almalinux/8.7/BaseOS/aarch64/os/repodata/92157d88cc011d93db8ee5c5f73c3983de90180863e3111794ac0e7cacbb9785-primary.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://mirrors.cat.pdx.edu/alma/8.7/BaseOS/aarch64/os/repodata/d43f6d3a153ef11cc11bc936e10ec1aee97c0b3272921b37305c608dac295780-filelists.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://westus2.azure.repo.almalinux.org/almalinux/8.7/BaseOS/aarch64/os/repodata/39fb15d25936ba34e0318ec264407348094fd096a46d95df80772cd14c6264bc-updateinfo.xml.gz (IP: 20.83.88.[250](https://github.com/RTKConsortium/RTK/actions/runs/3910081483/jobs/6681868066#step:5:251))
  - Status code: 404 for http://mirrors.cat.pdx.edu/alma/8.7/BaseOS/aarch64/os/repodata/39fb15d25936ba34e0318ec264407348094fd096a46d95df80772cd14c6264bc-updateinfo.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://eastus.azure.repo.almalinux.org/almalinux/8.7/BaseOS/aarch64/os/repodata/d43f6d3a153ef11cc11bc936e10ec1aee97c0b3272921b37305c608dac295780-filelists.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://dfw.mirror.rackspace.com/almalinux/8.7/BaseOS/aarch64/os/repodata/d43f6d3a153ef11cc11bc936e10ec1aee97c0b3272921b37305c608dac295780-filelists.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://cvo.almalinux.osuosl.org/8.7/BaseOS/aarch64/os/repodata/92157d88cc011d93db8ee5c5f73c3983de90180863e3111794ac0e7cacbb9785-primary.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://dfw.mirror.rackspace.com/almalinux/8.7/BaseOS/aarch64/os/repodata/92157d88cc011d93db8ee5c5f73c3983de90180863e3111794ac0e7cacbb9785-primary.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://cvo.almalinux.osuosl.org/8.7/BaseOS/aarch64/os/repodata/39fb15d25936ba34e0318ec264407348094fd096a46d95df80772cd14c6264bc-updateinfo.xml.gz (IP: <IP_ADDRESS>)
  - Status code: 404 for http://dfw.mirror.rackspace.com/almalinux/8.7/BaseOS/aarch64/os/repodata/39fb15d[259](https://github.com/RTKConsortium/RTK/actions/runs/3910081483/jobs/6681868066#step:5:260)36ba34e0318ec264407348094fd096a46d95df80772cd14c6264bc-updateinfo.xml.gz (IP: <IP_ADDRESS>)
Error: Failed to download metadata for repo 'baseos': Yum repo downloading error: Downloading error(s): repodata/92157d88cc011d93db8ee5c5f73c3983de90180863e3111794ac0e7cacbb9785-primary.xml.gz - Cannot download, all mirrors were already tried without success; repodata/d43f6d3a153ef11cc11bc936e10ec1aee97c0b3272921b37305c608dac295780-filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/39fb15d25936ba34e0318ec264407348094fd096a46d95df80772cd14c6264bc-updateinfo.xml.gz - Cannot download, all mirrors were already tried without success

Would you please try re-running the job and see if the build succeeds on retry?
I agree that a silent failure is not ideal. As part of https://github.com/InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/issues/38 we should add a sanity check to at minimum verify that a wheel is generated in dist/.

Sure, I have launched it again...

Same result, https://github.com/RTKConsortium/RTK/actions/runs/3910081483/jobs/6691993707.  But for a different reason it seems
2023-01-14T01:34:44.1371139Z c++: fatal error: Killed signal terminated program lto1
2023-01-14T01:34:44.1371471Z compilation terminated.
2023-01-14T01:34:44.1382174Z lto-wrapper: fatal error: /opt/rh/gcc-toolset-11/root/usr/bin/c++ returned 1 exit status
2023-01-14T01:34:44.1386395Z compilation terminated.
2023-01-14T01:34:44.1386924Z /opt/rh/gcc-toolset-11/root/usr/bin/ld: error: lto-wrapper failed
2023-01-14T01:34:44.1389567Z collect2: error: ld returned 1 exit status

No clue why. I'll disable ARM for the time being and keep that for later...

I have opened a new PR with the same result.

@SimonRit Thanks for re-running to reproduce the error. Unfortunately I am not familiar with the lto-wrapper issue. It seems that something is going wrong with LinkTimeOptimization (lto) but the error message doesn't leave us much to go on. Perhaps @thewtex or @jcfr might have additional thoughts here?
It would be helpful if you could attempt the following:

Try configuring with CMAKE_VERBOSE_MAKEFILE:BOOL=ON to see if you can get any more details on the failure;
Try stepping through the build procedure in ITKRemoteModuleBuildTestPackageAction on your local system to reproduce;
The GitHub Actions approach uses ARM emulation on an x64 machine, so try building on an ARM machine and see whether the error persists. If you don't have an ARM machine readily available I've had a good experience with ARM instances on AWS EC2.

Additional notes:

It looks like the Python 3.8 ARM build timed out at the GitHub runner limit of 6 hours before it could reach the lto-wrapper failure. If RTK ARM builds are consistently approaching the timeout limit then it might be worthwhile to investigate self-hosting for a faster build, preferably on an ARM machine.
I will follow up in https://github.com/InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/issues/38 regarding the silent failure.

Thanks a lot for the suggestions. I have pushed a commit for 1. I might try the rest later on but this does not have the highest priority on my side... And I don't have an ARM machine and I have never used AWS so that might not be easy. To be continued...

Link Time Optimization is memory heavy, so we may be running out of memory. LTO can be disabled, so that may be one option for some modules.

@SimonRit silent failures are now addressed in https://github.com/InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/commit/1b946ca387df0df7873c3be84dcd3f9d78980c42, please update the next time you push changes.


Your whole foundation.zurb website is going down

What should happen?
I should be able to access your website and building blocks and internal links
...
What happens instead?
I get sent to a 502 bad gateway page
...
Test Case and/or Steps to Reproduce (for bugs)
Just try and access your website none of the links are working

How to reproduce:

https://foundation.zurb.com/
you will get the 502 bad gateway

Context
really hard to use your wonderful foundation when I can't get to documentation or anything
Checklist

[x ] I have read and follow the CONTRIBUTING.md document.
[ x] There are no other issues similar to this one.
[ x] The issue title and template are correctly filled.

Hi @jackelynkjerstie,
I can not reproduce this. Does it still happen for you?
Related: https://techcrunch.com/2019/07/02/a-cloudflare-outage-is-impacting-sites-everywhere/
See https://bgp.he.net/dns/foundation.zurb.com#_ipinfo

Hi Daniel,
It looks like it's been resolved. Thank you for your help
On Tue, Jul 2, 2019, 1:16 PM Daniel Ruf<EMAIL_ADDRESS>wrote:

Hi @jackelynkjerstie https://github.com/jackelynkjerstie,
I can not reproduce this. Does it still happen for you?
Related:
https://techcrunch.com/2019/07/02/a-cloudflare-outage-is-impacting-sites-everywhere/
See https://bgp.he.net/dns/foundation.zurb.com#_ipinfo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zurb/foundation-sites/issues/11783?email_source=notifications&email_token=AE2BQ3EUW4VUTHAHTJLS6OLP5OENNA5CNFSM4H44FZ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZB6XIQ#issuecomment-507767714,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2BQ3FHZIWKTX6QDAGY6J3P5OENNANCNFSM4H44FZ5Q
.


Incorrect use of Uniswap accumulators.

https://github.com/AugurProject/augur/blob/602a716c5cda08b28c8f66596f6658c384d88265/packages/augur-core/source/contracts/reporting/RepPriceOracle.sol#L70-L79
_cashAmount is a price accumulator, which means its unit is cash * all_time / rep.  This means _cashDelta is cash * time_delta / rep, leading to _deltaPrice being (cash * time_delta / rep) / (rep * time_delta / cash) which I believe simplifies to cash^2 / rep^2... which I don't think is what you actually want.
I think what you want is something along the lines of:
_repPriceAccumulator = cash < reputationToken ? token1Amount : token0Amount;
_repPriceAverageSinceLastUpdate = _repPriceAccumulator / (block.number - _exchangeData.blockNumber);
_repTwap = _repPriceAverageSinceLastUpdate * weightSinceLastUpdate + _previousRepPriceAverage * (totalWeight - weigthSinceLastUpdate);

Note, I think that last line is actually wrong for other reasons, but I believe the above will get you a lot closer to correct.  I think the last line is wrong because I think the value will change based on update frequency with that mechanism.  I believe what you are attempting here is an exponential moving average, but I think the algorithm is wrong.  Someone better with these sorts of things should take a look at it.

FWIW, Uniswap has an example implementation of a usage of the price accumulator.  Easiest solution would be to just crib their code.


New tab is created when user replies to your first message.

For example Alice and Bob connects to chat with:
Candy.Core.connect(current_user.login + '@' + self.xmppDomain + '/Mycompany', current_user.token);
Bob start chat to Alice with:
Candy.View.Pane.PrivateRoom.open(user.login + '@' + self.xmppDomain + '/Mycompany', user.login, true, true);
Then new tab opens at Alice's side, and when she replies into this tab, the second tab with Alice opens at Bob's side where they can talk further. So Bob has two tabs with Alice. Is this a bug or is there a tricky way to fix that and receive messages in the tab opened first?

Please provide full debug logs from both browsers.

So here is the log from B party (starting chat):
candy.bundle.js:214 [View:Pane:Roster] join
candy.bundle.js:214 [View:Pane:Roster] join
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 1 requests
candy.bundle.js:246 [Strophe][DEBUG]: _processRequest: first request has readyState of 1
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 2 requests
candy.bundle.js:246 [Strophe][DEBUG]: _processRequest: first request has readyState of 1
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.0 posting
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.0 state changed to 1
candy.bundle.js:214 SENT: <message<EMAIL_ADDRESS><EMAIL_ADDRESS>type='chat' id='12' xmlns='jabber:client'>hi a<x xmlns='jabber:x:event'><composing/></x></message>
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 state changed to 2
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 state changed to 3
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 state changed to 4
candy.bundle.js:246 [Strophe][DEBUG]: removing request
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 1 requests
candy.bundle.js:246 [Strophe][DEBUG]: _processRequest: first request has readyState of 1
candy.bundle.js:246 [Strophe][DEBUG]: request id 20 should now be removed
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 got 200
candy.bundle.js:246 [Strophe][INFO]: _dataRecv called
candy.bundle.js:214 RECV:
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.1 state changed to 2
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.1 state changed to 3
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.1 state changed to 4
candy.bundle.js:246 [Strophe][DEBUG]: removing request
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 0 requests
candy.bundle.js:246 [Strophe][DEBUG]: request id 21 should now be removed
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.1 got 200
candy.bundle.js:246 [Strophe][INFO]: _dataRecv called
candy.bundle.js:214 RECV: <message xmlns='jabber:client'<EMAIL_ADDRESS><EMAIL_ADDRESS>id='12' type='chat'>hi b<x xmlns='jabber:x:event'><composing/></x></message>
candy.bundle.js:214 [Jabber] Message
candy.bundle.js:214 [Jabber:Room] Message
candy.bundle.js:214 [View:Pane:Roster] join
candy.bundle.js:214 [View:Pane:Roster] join
candy.bundle.js:246 [Strophe][INFO]: no requests during idle cycle, sending blank request
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 1 requests
candy.bundle.js:246 [Strophe][DEBUG]: request id 22.0 posting
candy.bundle.js:246 [Strophe][DEBUG]: request id 22.0 state changed to 1
candy.bundle.js:214 SENT:

And here is from A party:
candy.bundle.js:246 [Strophe][DEBUG]: request id 19.1 state changed to 2
candy.bundle.js:246 [Strophe][DEBUG]: request id 19.1 state changed to 3
candy.bundle.js:246 [Strophe][DEBUG]: request id 19.1 state changed to 4
candy.bundle.js:246 [Strophe][DEBUG]: removing request
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 0 requests
candy.bundle.js:246 [Strophe][DEBUG]: request id 19 should now be removed
candy.bundle.js:246 [Strophe][DEBUG]: request id 19.1 got 200
candy.bundle.js:246 [Strophe][INFO]: _dataRecv called
candy.bundle.js:214 RECV: <message xmlns='jabber:client'<EMAIL_ADDRESS><EMAIL_ADDRESS>id='12' type='chat'>hi a<x xmlns='jabber:x:event'><composing/></x></message>
candy.bundle.js:214 [Jabber] Message
candy.bundle.js:214 [Jabber:Room] Message
candy.bundle.js:214 [View:Pane:Roster] join
candy.bundle.js:214 [View:Pane:Roster] join
candy.bundle.js:246 [Strophe][INFO]: no requests during idle cycle, sending blank request
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 1 requests
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.0 posting
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.0 state changed to 1
candy.bundle.js:214 SENT:
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 1 requests
candy.bundle.js:246 [Strophe][DEBUG]: _processRequest: first request has readyState of 1
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 2 requests
candy.bundle.js:246 [Strophe][DEBUG]: _processRequest: first request has readyState of 1
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.0 posting
candy.bundle.js:246 [Strophe][DEBUG]: request id 21.0 state changed to 1
candy.bundle.js:214 SENT: <message<EMAIL_ADDRESS><EMAIL_ADDRESS>type='chat' id='12' xmlns='jabber:client'>hi b<x xmlns='jabber:x:event'><composing/></x></message>
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 state changed to 2
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 state changed to 3
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 state changed to 4
candy.bundle.js:246 [Strophe][DEBUG]: removing request
candy.bundle.js:246 [Strophe][DEBUG]: _throttledRequestHandler called with 1 requests
candy.bundle.js:246 [Strophe][DEBUG]: _processRequest: first request has readyState of 1
candy.bundle.js:246 [Strophe][DEBUG]: request id 20 should now be removed
candy.bundle.js:246 [Strophe][DEBUG]: request id 20.1 got 200
candy.bundle.js:246 [Strophe][INFO]: _dataRecv called
candy.bundle.js:214 RECV:


Keep current tab when profile changes with compatible layout

This is a suggestion for a small enhancement that is similar to how such change is handled for entities and keeping the current tab if resetTabOnEntityChange==false. In my app we change the profile frequently and would be great to keep the current selected between profile changes.
When the profile changes, previously we automatically reset the tab to "about" uncoditionally.
In this implementation we change to "about" if resetTabOnEntityChange==true or if the new profile doesn't have a layout matching the currently selected one. In this case we fall back to "about".
Here I used resetTabOnEntityChange but maybe we should introduce a resetTabOnProfileChange or have just one such flag to control any tab changes, eg. resetTabOnChange

This is a great idea. Since we have properties for everything else I think it makes sense to add another property resetTabOnProfileChange to specifically target this behaviour. I'll merge this pull request and then add that property.


⚠ ClamAV has degraded performance

In d63a214, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 81 ms

Resolved: ClamAV performance has improved in c1f5ca5.


Feature request - Motion time zones

I use the original BOND bridge (wifi).
I use Somfy blind.
The problem is that the percentage of the blind position isn't true, even though the "Motion Time" and "Response Lag" and lag. Let me explain.
You probably think that we cannot control the current position on the original bond (not the pro version) - but we can.

Times
A = time till the blind opens to 1% from the floor (as in my case 10sec)
This time is the time it gets from full closed to "MY" mode (a close mode with only open between shutters)
B= time till it goes from the floor to the top. (as in my case 15sec)
A+B = Motion time (25sec)
Now if I set the blind to 50% it really opens 6%
If I set it to 70% I get really 50%.
It's because A time -  We should count the percentages from "MY mode" to the top.
To fix it we need set "motion time" that be from 0%-1% (A)
and another "motion time" from 1%-100% (B)
Please let me know if you think it is possible.
Thank you for your time, I hope you can make it.

@barzoock -- wow, I enjoyed your photos and discussion. Have you seen #43? :)
That being said, I am somewhat concerned about this statement:

A = time till the blind opens to 1% from the floor (as in my case 10sec)

It takes 10 seconds to open to 1%? In this case, your motor is not calibrated properly. You can find instructions to do this online, but you basically control/set the upper and lower limit of your blinds. If you have extra fabric there it can make a huge difference.
I would definitely start there. The other thing that I've seen is that the Bond Pro, for example, does this differently.  It sends a complete "up" or "down" command and waits for the blind to return to the closest position. Then it sends the command for percentage again.
I think that may be a better strategy, because if you try to adjust from 44% to 45% for example, it isn't possible to have something happen that quickly. The logic to do that is a bit more complicated of course, but anyway, please try starting with the motor calibration and let's see how things are after that.

about #43 - I want to try. How can I enter the "motiontime" and the "extratimes" in the confing? I don't understand
Thank you
by the way-
The purpose is to get slight light. like if you just wakeup in the morning or watching a movie... etc...
If you open 10% (from the floor) you get slight light only from the bottom of the window and the light doesn't fill the room equally.
You should try it one day...

#43 isn't done, it was just an idea. By the way, this isn't a bug, this is a a feature request. You have unusual blinds that move at a different rate at different parts.
Do you read javascript? I'm thinking of something like this, where we can define a series of time-based zones. Not sure how to implement it yet. Probably best if motionTime becomes a function or expression.
function motionUpTime(startPos, endPos) {
  let currPos = startPos;

  // define motion ranges here
  // motionStep = milliseconds per % of motion
  const zones = [
    { pos: 1, motionStep: 10000 },
    { pos: 90, motionStep: 100 },
    { pos: 100, motionStep: 5000 },
  ];

  const motionTime = zones
    .map((zone) => {
      if (currPos <= zone.pos) {
        const zoneTarget = Math.min(zone.pos, endPos);
        const moveDist = zoneTarget - currPos;
        currPos = zoneTarget;
        return moveDist * zone.motionStep;
      }

      return 0;
    })
    .reduce((partialSum, a) => partialSum + a, 0);

  return motionTime;
}

It looks amazing solution.
I wish i knew how to implement it.
I'm here to be a tester for you :)

We could try something at least roughly in a beta version, hardcoded for now, to make sure it's working on your end.
I will need 2 lists from you, will look like this:

Position
Time (in seconds or ms)

0% - closed
0

1%
10.0

etc.
I need it when opening and when closing. The point is, we need to figure out which time ranges are linear. Once you know which ranges are linear, you can simplify the list.
One easier way to do this is by recording a video of your blinds and then going back to the exact points using the timestamps in the video.

Position
Time up
Time down

0%
0
0

1%
9.25
0.55

10%
11.09
1.58

25%
14.02
3.38

50%
18.16
6.8

75%
21.76
10.76

90%
23.62
13.42

99%
24.72
15.35

100%
24.87
23.72

https://user-images.githubusercontent.com/108406822/176699128-cccd23d2-4e0a-4ff6-86bf-537fc90b0ef8.mp4

@dxdc Hey! anything new?

I appreciate your excitement, but I only work on this project in my free time. This isn't a paid service, and when I have something to share, I will let you know. In the meantime, you're welcome to submit a PR for review.

Thank you! How can I submit a PR review? I'm a pretty beginner

Just write the code and submit a pull request...
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests

Just write the code and submit a pull request...
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests

Sorry I still don't get it. When I click "new pull request" it opens "Compare changes" ??
Thank you

I have a version available for testing. I've also made several updates so you may see warnings about deprecated parameters, but everything should work properly.

Add motion_time_graph parameter to your homebridge-blinds config. You can remove motion_time, since this will replace it.

	"motion_time_graph": {
		"up": [
		    { "pos": 0, "seconds": 0 },
			{ "pos": 1, "seconds": 9.25 },
			{ "pos": 10, "seconds": 11.09 },
			{ "pos": 25, "seconds": 14.02 },
			{ "pos": 50, "seconds": 18.16 },
			{ "pos": 75, "seconds": 21.76 },
			{ "pos": 90, "seconds": 23.62 },
			{ "pos": 99, "seconds": 24.72 },
			{ "pos": 100, "seconds": 24.87 }
		],
		"down": [
		    { "pos": 100, "seconds": 0 },
			{ "pos": 99, "seconds": 0.55 },
			{ "pos": 90, "seconds": 1.58 },
			{ "pos": 75, "seconds": 3.38 },
			{ "pos": 50, "seconds": 6.8 },
			{ "pos": 25, "seconds": 10.76 },
			{ "pos": 10, "seconds": 13.42 },
			{ "pos": 1, "seconds": 15.35 },
			{ "pos": 0, "seconds": 23.72 }
		]
	},

Install the latest version of homebridge-blinds, e.g., sudo npm -g install<EMAIL_ADDRESS>

Restart homebridge

Please share your feedback when you can.

@dxdc WOW! it works!!!!!!!
User Tip: In fact you need to calculate the seconds more than once and adjust averages as this may vary between opening and closing by a few milliseconds. (Expect 99% accuracy, You won't get 100%).
I have an extra idea. maybe add a button for setting it to 1% (or another % at user's choice) Tell me what do you think.
Thank you

Even add the ability to create a dummy button for personal use

WOW! it works!!!!!!!

Great! I've officially published this as v2.0.0.

In fact you need to calculate the seconds more than once and adjust averages as this may vary between opening and closing by a few milliseconds. (Expect 99% accuracy, You won't get 100%).

Even 99% accuracy, particularly over time, is not going to happen. I think you'll be lucky to get 90% or so.
There are too many factors to be able to get 100% accuracy, including:

battery life of the motor decreases over time / between charges
someone uses the remote control, and HK is unaware, it will be out of sync
variations in network delays
variations in RF delays (if your network command bridges to an RF device)
initial acceleration of motor may depend on weight of blind, so will be slowest at the fully closed position.

The plugin works by sending the "up/down" command, followed by a timer, followed by the "stop" command. Each of these commands have potential delays and variation associated with it external to the plugin. You can also imagine that changing from 53% to 54% will have such a small delay, that the network delay will likely exceed this value. It could not possibly send all the commands quickly enough to have that kind of control, since the HTTP-based API you are using will be too slow.
The only way to make it perfectly accurate is to send the target position to the blinds, and let the blinds control it and update the plugin with its current position. There are blinds with motors that support this feature.

I have an extra idea. maybe add a button for setting it to 1% (or another % at user's choice)

This kind of functionality is already enabled by HomeKit scenes. You can add as many devices as you like, and then force-press on the blinds to set a preferred position for that scene. I think this is a more appropriate use for Scenes... particularly since, most people have multiple blinds, and creating individual buttons to control each blind seems cumbersome.
You can also use the webhook functionality of this plugin (see: Wiki) and then create an unlimited number of buttons with another plugin to send it any commands you like using homebridge-http-switch or a similar method.
For example, http://<IP_ADDRESS>:51828/?pos=1.
You would have to use separate ports for each instance of the blinds plugin.

@dxdc
BTW, these shutters are widely used in Israel. Actually, it is hard to find electric shutters in the country that are not of this type.
Mine are the same.
This update is very helpful!
Thank you so much for this great plugin and an amazing support! ❤

@dxdc BTW, these shutters are widely used in Israel. Actually, it is hard to find electric shutters in the country that are not of this type. Mine are the same.
This update is very helpful! Thank you so much for this great plugin and an amazing support! ❤

hahahah... Yes, I was thinking the same thing this morning, I'm from Israel.
@dxdc This feature of "the 1%" is highly used - we would appreciate having a dummy switch option anyway...
Thanks a lot

Awesome! I'm glad to know that we have a good market for future homebridge-blinds users :)
I've been to Israel many times and seen these in residential places, but never knew about you 1%'ers.
As far as the "1%" button, it's possible, I just feel there are so many existing solutions for it.

HomeKit Scenes
Siri (tell blinds to open to 1%)
NodeRED (via homebridge-automation plugin)
Webhook
homebridge-http-switch + Webhook

Can you tell me why native installation is somehow better?
For example, here's how to do it with http-switch, and you can add/remove as many buttons as you like. If this is helpful, I can add to the Wiki:

Install hombridge-http-switch plugin. Add to config.json like this, customized for your blinds, and change the IP address to match your device.

You will need to choose an open port on your device, 51828 in this example (see: Step 2), but choose something to match. Each set of blinds will use a different port.
	{
	  "accessory": "HTTP-SWITCH",
	  "name": "Kitchen Window Shortcuts",
	  "switchType": "stateless",
	  "onUrl": [
		{
		  "url": "http://<IP_ADDRESS>:51828/?pos=1"
		},
		{
		  "url": "http://<IP_ADDRESS>:51828/?pos=50"
		}
	  ]
	}

Add webhook_port to your existing blinds configuration.

Note: You may wish to add basic authentication for security on your local network, this would be up to you. See the Wiki for details

"webhook_port": 51828

Restart homebridge and test

@dxdc Well, it would make it easier if all blinds' buttons were in one place and weren't separated into many different buttons (like now: blind slider + to stop button + on/off toggle).
I came up with a solution for myself - I don't use the "on/off" toggle, so I made an automation that when the toggle hits, It sets the blind to 1%.
It's a little confusing for the blind since I'm sending 2 requests at the same time, but it's the best I can do for at the moment

OK. Can you explain why HomeKit Scenes doesn't work for your purpose? @slavikme would you find this valuable as well?

@barzoock OK.
Add this to your config. You can define an array here of an unlimited number of favorite positions. Please test/report.
"show_favorite_buttons": [1, 50],

@barzoock This will definitely be convenient to have such features in the Home app, BUT, unfortunately, AFAIK HomeKit does not support these types of shutters, the protocol only support blinds, which is a simple version of shutters (without the significant delay, before it starts to open the shutters). HomeKit protocol also support Garage door, which is another type of shutters with a similar behavior, but still in its simple way.

@barzoock OK.
Add this to your config. You can define an array here of an unlimited number of favorite positions. Please test/report.
"show_favorite_buttons": [1, 50],

I love it. WORKS PERFECTLY!
I greatly appreciate you. thank you so much


cannot query usernames with spaces

i.e. https://www.openstreetmap.org/user/Das Fantom
http://mapbox.github.io/osm-comments-frontend/#/changesets/?q=users:Das Fantom

So right now space is used as delimiter between parts of the query.
eg. if you query users:manings,pratikyadav foobar it will search for notes / changesets by manings or pratikyadav that have the word foobar in them.
This will require coming up with desired syntax for usernames with spaces, as well as adding that logic to the tokenizer. My guess is it would have to be something like users:manings,"user with spaces",pratikyadav search terms.


Fix test issue with .NET 5.0

/azp run net - servicebus - tests

/azp run net - servicebus - tests


Clean up JDK 18 installer stuff

As a contributor I would like to proceed working only on the currently relevant JDKs for the installer builds in order to not spend time on outdated parts of the code base.

Please assign to me, @smlambert


xcode 9.4.1 swift 4.1 DKCamera framework error

hi, My pod like :  pod 'DKImagePickerController', :git => 'https://github.com/zhangao0086/DKImagePickerController.git', :branch => 'Swift4'
but DKCamera gives me an error that uiview has no member animation option
please help !

@ismailtosun Try building your project again using Xcode 10

Please provide your updates in your previous issue. The maintainer is a busy person and it would be helpful if we have clean and easy to read/follow issue threads.
@zhangao0086 Close this. It's the same person and issue in #527

@sorianog Thanks for your help! I appreciate it!
Closing this thread.


Add HeadingsTemplate component

In the components/templates folder add a HeadingsTemplate.tsx file. Copy the structure of one of the other templates (they're all currently the same apart from name - contents will be added later). Update the component name so it matches the file name.
In the pages/[content].tsx file import the template and add it alphabetically in the correct place between the layout tags {page === "headings" && <Headings />}
Add the template data to the config file in data/pages.tsx: { name: "Headings", href: "/headings", content: "headings" }

Hello ma'am,
I have gone through the repository and the given instructions. The issue seems to attract my interest and excites me to work on it. I humbly wait for you to assign the task to me if your analysis of my profile allows.
Yours Sincerely,
Giriraj Roy.

Hey @EmmaDawsonDev would love to do this task. Can you assign me please?😄

@EmmaDawsonDev
Hey Emma I've committed changes to this issue as u mentioned, please check them and let me know if you can merge them into the main branch.
😊😊

Hello @EmmaDawsonDev . I  am a first time contributor and would like to do this task. Could you assign it to me ?

@kartikver15gr8 is assigned to this one (they asked elsewhere) but feel free to comment on another issue

Hey @EmmaDawsonDev shall I reopen my PRs

Okay so should I delete this branch and then start fresh one.
Right??

Hey @EmmaDawsonDev I've made pull requests for this issues. Kindly check them and merge them too😎😊😁😀


Bad SST error when reading XLS File

Hi,
Just come across an issue when using exceldatareader to convert an xls file provided by a customer to CSV format, and we're getting the message "Bad SST Format", which appears to be related to this issue from a year ago https://github.com/ExcelDataReader/ExcelDataReader/issues/392
I've asked the customer for some more information on what they're using to save the file. Its set template that gets sent out, filled out by people and then when it's received, convert it to CSV and process it, so I'd assume it's directly related to whatever software the customer is using.
It's a fairly small file but I can't send it over directly as it has payer address & bank details in but I'm seeing if I can get the customer to re-save the template file without any personal data in. If I re-save the file they sent over using Excel from Office 365, the error goes away so I'd assume it was from
Any ideas why the character count would be 0 in such a column where the bad SST message is triggered?
https://github.com/ExcelDataReader/ExcelDataReader/blob/22e24602a7baaa7e95b988a3392ce46dbb6e025a/src/ExcelDataReader/Core/BinaryFormat/XlsSSTReader.cs#L87
Thanks,
Luke

Hi,
I'd really like to have a look at that file to be sure whats going on. Is it possible to remove any personal information in a hex editor before zipping and uploading the xls here? You could also email me the file, but I'm not giving out my email so you have to poke me f.ex through the "Contact Owners" form on Nuget first and I'll get back to you.
That exception appears to be more of an internal assertion than a real error, as it shouldn't happen under normal circumstances. I guess perhaps it would trigger if there is a mismatch between the BIFF record length and string length in the file.  There's a chance it would work to just remove the code block which throws "Bad SST format". The following code does not appear harmful.

I'm getting the same error on a file I'm trying to read in.  I was able to read it with version <IP_ADDRESS>, but I get the error in <IP_ADDRESS>.
If I load the file in Excel and save it, Excel cleans up whatever is causing the problem and then it can be read.
I can send the file to you, but don't want to post it publicly.

Thanks @TechSavvySam ! Looks like your file specified a wrong number of strings in the SST. Also found some related bugs using hex edited files, so the SST parser got an overhaul in 9383b470f282508c37176d7421bfb69ff7f01d21

Thanks @andersnm -- that fixed my issue.  I figured it was a problem with an imperfection in the XLS file--I've seen this a lot with XLSX files where Excel can "clean up" some issues with the input file that can't be read by 3rd party APIs.
I hope this fixes it for @LukeKirbyDG too!

This issue has been fixed in their Pre-release build - v3.7.0-develop00310
Not sure when the stable build will be released.

@andersnm , is there any plan to release the new build with this fix?