raix:push-update -> server generates record id rather than client

I'm proposing a breaking change to simplify the push-update method and thus bumping the version to 2.6.0.
The main change is to raix:push-update method.
Currently the user must supply the id parameter in the call. They are forced to generate this before sending the request.
With my change, this process becomes simpler. The client can send only the appName, token, and userId to create a new application record on the server.  If the id field is included in the call to raix:push-update then it will attempt to find that specific record and update it if its found, which makes sense for the name push-update, otherwise will return a 404 if that id does not yet exist. I think this is much more intuitive behavior.
All other logic of locating by token/appName is left intact. The method still returns the recordId to the client for use in any future calls to raix:push-update or raix:push-setuser or raix:push-metadata as the id param.
Also includes some added documentation and cleanup.

what do you think @raix ?

This looks like an improvement for sure.

Looks good @alexcorre, I'll review and publish later - Thanks!


haskellPackages.{pattern-arrows,cheapskate,aeson-better-errors:}: unbreak

Description of changes
Part of my quest to make purescript compile from source. Now only fixing mtl 2.3 support should be enough to make it work
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

I'm not a huge fan of having these patches here but (a) these packages are not maintained upstream and (b) they're just a single line changes to include imports that used to be re-exported from base in old mtl versions


Not able to identify names of who is in the group chat

The bot cannot tell who is in the chat, which makes it address inaccurately time to time. There already some context added to the chat which makes me wonder why not add the participants names? Can this be added as feature? or something like this in src\handlers\context\chat.ts
const participantNames = await Promise.all(
groupChat.participants.map(async(participant) => {
//For other uncaught errors
                    if (participant.id && participant.id._serialized) {
                        const participantId = participant.id._serialized;
                        const participantContact = await whatsapp.getContactById(participantId);
                        return participantContact.pushname;
                    } else {
                        // Handle the case where participant.id or participant.id._serialized is undefined or not valid
                        //return "Unknown Participant";
                    }

                }));

        chatContext = stripIndents `- You are in a group chat
- There are ${groupChat.participants.length} participants in the group
- The group's name is '${groupChat.name}'
- '${publicUserName}' is who sent this message
- Participants in group: '${participantNames.join(', ')}' `;

I haven't tested for long period of time but been for more than a day, here is my suggested code for chat.ts(Might need improvement since I did it very quickly because of curiosity):

import { GroupChat, Message } from "whatsapp-web.js";
import { stripIndents } from "common-tags";
import { whatsapp } from "../../clients/whatsapp";

export async function getChatContext(message: Message) {
    let chat = await message.getChat();
    let chatContext = "";
    let publicUserName: string;

    if (chat.isGroup) {
        const groupChat = chat as GroupChat;
        const contact = await whatsapp.getContactById(message.author as string);
        publicUserName = contact.pushname;
// start of added code for group Participants
        try {
            const participantNames = await Promise.all(
                    groupChat.participants.map(async(participant) => {
                        //For other uncaught errors

                        if (participant.id && participant.id._serialized) {
                            const participantId = participant.id._serialized;
                            const participantContact = await whatsapp.getContactById(participantId);
                            return participantContact.pushname;
                        } else {
                            // Handle the case where participant.id or participant.id._serialized is undefined or not valid
                            //return "Unknown Participant";
                        }

                    }));

            chatContext = stripIndents `- You are in a group chat
    - There are ${groupChat.participants.length} participants in the group
    - The group's name is '${groupChat.name}'
    - '${publicUserName}' is who sent this message
	- Participants in group: '${participantNames.join(', ')}'
  `;

        } catch (error) {
            console.log("Error retrieving participant code: ", error);
            //return possible errors;
        }
// end of added code for group Participants
    } else {
        publicUserName = (await message.getContact()).pushname;
        chatContext = stripIndents `- You are in a private chat
    - The user's name is '${publicUserName}'
    `;
    }

    return chatContext;
}

I will try to add it together with OpenRouter

Done, should be added tonight along with others things
I ended up with:
import { GroupChat, Message } from "whatsapp-web.js";
import { stripIndents } from "common-tags";
import { whatsapp } from "../../clients/whatsapp";

export async function getChatContext(message: Message) {
  let chat = await message.getChat();
  let chatContext = "";
  let publicUserName: string;

  if (chat.isGroup) {
    const groupChat = chat as GroupChat;
    const contact = await whatsapp.getContactById(message.author as string);
    publicUserName = contact.pushname;
    const groupContacts = await Promise.all(
      groupChat.participants.map((participant) =>
        whatsapp.getContactById(participant.id._serialized)
      )
    );
    const groupContactNames = groupContacts
      .map((contact) => contact.pushname)
      .join(", ");

    console.log("groupContactNames:", groupContactNames);

    chatContext = stripIndents`- You are in a group chat
    - There are ${groupChat.participants.length} participants in the group
    - The group's name is '${groupChat.name}'
    - The group's participants are: ${groupContactNames}
    - '${publicUserName}' is who sent this message
  `;
  } else {
    publicUserName = (await message.getContact()).pushname;
    chatContext = stripIndents`- You are in a private chat
    - The user's name is '${publicUserName}'
    `;
  }

  return chatContext;
}

Added in #248


chore(web-server): use a rewriting server to get rid of bower dependency

Here is the alternative approach discussed above: #389

Closing as there is no interest in landing this.


Navigator, How to navigate between screen?

Currently the push only support url parameter, can I use navigator to show component?

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.
Feel free to ask question in new repository and thanks for your contribution.

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.


feat: add (Algebra|IntermediateField).lift_cardinalMk_adjoin_le

Also add FreeAlgebra.cardinalMk_eq_max_lift, etc. parallel to MvPolynomial.
Also fix the name cardinal_lift_mk_le_max -> cardinalMk_le_max_lift for MvPolynomial.

[x] depends on: #19286

Dependency changes
File	Base Count	Head Count	Change
Mathlib.LinearAlgebra.FreeAlgebra	1179	1194	+15 (+1.27%)

Oops, seems that this result should moved to another file

After the proof changes, #find_home IntermediateField.lift_cardinalMk_adjoin_le suggests that
[Mathlib.FieldTheory.NormalClosure, Mathlib.RingTheory.Nullstellensatz, Mathlib.FieldTheory.Fixed, Mathlib.RingTheory.WittVector.FrobeniusFractionField, Mathlib.LinearAlgebra.Eigenspace.Triangularizable, Mathlib.RepresentationTheory.FDRep]

But none of them seems appropriate. Perhaps Mathlib.FieldTheory.Cardinality is OK, or is it too late?

Importing Mathlib.SetTheory.Cardinal.Subfield into FieldTheory.Adjoin only adds 3 trans imports (1261 to 1264), which is reasonable to me. Mathlib.FieldTheory.Cardinality imports 1307 files so indeed seems a bit "late".

Importing Mathlib.SetTheory.Cardinal.Subfield into FieldTheory.Adjoin only adds 3 trans imports (1261 to 1264), which is reasonable to me. Mathlib.FieldTheory.Cardinality imports 1307 files so indeed seems a bit "late".

Done.

Thanks 🎉
maintainer merge


Wrong example

The path of the Json variable is wrong in the sample of
Import JSON data into SQL Server tables
See the right path below.
SELECT SalesOrderJsonData.*
FROM OPENJSON (@jsonVariable, N'$')
WITH (
Number   varchar(200) N'$.Order.Number',
Date     datetime     N'$.Order.Date',
Customer varchar(200) N'$.AccountNumber',
Quantity int          N'$.Item.Quantity'
)
AS SalesOrderJsonData;

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 991167bc-4e0e-1fc8-d0bb-f282b51b3321
Version Independent ID: 0b5cf834-d452-dd57-d51d-268083011e33
Content: Work with JSON data in SQL Server - SQL Server
Content Source: docs/relational-databases/json/json-data-sql-server.md
Product: sql
GitHub Login: @jovanpop-msft
Microsoft Alias: jovanpop

@AlainBorletHote -- thank you for your feedback.  We are looking into this now.

@jovanpop-msft -- Jovan, please review my change in https://github.com/MicrosoftDocs/sql-docs-pr/pull/11389.

@AlainBorletHote Thank you for your feedback.  We have updated the documentation and it should be live by tomorrow.
I am closing this issue now.  You are welcome to @ mention me for any followup.
We hope to hear from you again.


Timer improvement

Improved timer for review as discussed with @vidalmaxime : instead of a per-slice timer, it is now global and can be paused when needed. That time amount is recorded in the review csv and recovered on subsequent review sessions

Codecov Report

Merging #27 (6039936) into main (e462c4e) will increase coverage by 0.50%.
The diff coverage is 64.10%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   37.34%   37.84%   +0.50%
==========================================
  Files          37       37
  Lines        3449     3464      +15
==========================================
+ Hits         1288     1311      +23
+ Misses       2161     2153       -8

Impacted Files
Coverage Δ

napari_cellseg3d/utils.py
35.85% <ø> (+2.80%)
:arrow_up:

napari_cellseg3d/plugin_dock.py
76.74% <64.10%> (+2.18%)
:arrow_up:

napari_cellseg3d/interface.py
86.02% <0.00%> (-0.37%)
:arrow_down:

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


这个翻译结果有点糟糕，不知道为什么。

这个翻译结果有点糟糕，不知道为什么。

When I read the comments section, I am deeply aware of the diversity and uniqueness of the post-80 generation. Some of them have taken on parental responsibilities, some are unmarried and free, and others are actively engaged in the new phase of child-rearing. This fully reflects the unique pace and choices of each individual at different stages of life. In any case, the essence of life is an individual experience, and no fixed pattern of life can be applied to all. Above all, each person should live his or her life in accordance with his or her inner pursuit and rhythm, and as long as he or she is happy and full, that is the best way of life. Life is, after all, the most comforting when it suits itself, as if it were water. What do you have to say about that

Actually.
The trails were deep in mud, the long grass soaking, leaves overhead sending down random showers even in those moments when there was no actual downpour from the sky and the clouds looked like clearing
----------
踪迹深处是泥地,长长的草地被浸去,从上而下地向下流出随机的淋浴,即使在当时没有从天而降的实际倒流,而云层看起来像是清澈.

这个翻译结果有点糟糕，不知道为什么。

When I read the comments section, I am deeply aware of the diversity and uniqueness of the post-80 generation. Some of them have taken on parental responsibilities, some are unmarried and free, and others are actively engaged in the new phase of child-rearing. This fully reflects the unique pace and choices of each individual at different stages of life. In any case, the essence of life is an individual experience, and no fixed pattern of life can be applied to all. Above all, each person should live his or her life in accordance with his or her inner pursuit and rhythm, and as long as he or she is happy and full, that is the best way of life. Life is, after all, the most comforting when it suits itself, as if it were water. What do you have to say about that

把最后的Life is, after all,的Life改为小写的life就可以了，这个Life好像是和程序内部语言冲突了还是怎样

这个翻译结果有点糟糕，不知道为什么。

When I read the comments section, I am deeply aware of the diversity and uniqueness of the post-80 generation. Some of them have taken on parental responsibilities, some are unmarried and free, and others are actively engaged in the new phase of child-rearing. This fully reflects the unique pace and choices of each individual at different stages of life. In any case, the essence of life is an individual experience, and no fixed pattern of life can be applied to all. Above all, each person should live his or her life in accordance with his or her inner pursuit and rhythm, and as long as he or she is happy and full, that is the best way of life. Life is, after all, the most comforting when it suits itself, as if it were water. What do you have to say about that

把最后的Life is, after all,的Life改为小写的life就可以了，这个Life好像是和程序内部语言冲突了还是怎样


controller: add govc binary

Issue #, if available:
Description of changes:
This is slightly overkill for the specific case, but I just moved over some of the common scripts/patterns from eks-a-build-tooling to keep it as consistent as possible.
Also adds:

improves latest handling to match build-tooling
buildkit helper function
buidctl caching to match build-tooling

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


Make fullOptJS work for ES6 modes (but not using Closure).

For ES6 modes, ScalaJSClosureOptimizer simply forwards to the underlying ScalaJSOptimizer. This allows to run fullOptJS even with these modes. At this point, this is mostly useful to get the optimized Semantics.

Review by @gzm0 or @nicolasstucki

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/1676/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2170/
Test PASSed.

I think this is a terrible solution to a good idea:
IMO, whatever we do, we should satisfy the following:

fullOptJS should always work and optimize as good as possible (for the given modes)
The ScalaJSClosureOptimizer calls the Google Closure compiler (by its definition)

Therefore, I think we should implement this in the sbt plugin, rather than hacking ScalaJSClosureOptimizer to not call Closure. We could also add another layer of abstraction to the tools (basically a fastOptJS and a fullOptJS function). However, I'd consider much more removing ScalaJSClosureOptimizer altogether and making the linking pipeline of ScalaJSOptimizer better configurable (and maybe call it ScalaJSLinker?).
WDYT?

I agree. The whole naming and organization of things in the optimizer package is broken. ScalaJSClosureOptimizer should not be named as such. ScalaJSOptimizer no more so.
In this PR I have taken the option to consider how these classes are used rather than How they're named to decide where to put things.
A bigger refactoring of all of this is needed, but not right now.

@gzm0 If you're still up, it would be good to have an answer here. I'd like to start the release process today, and this PR should get in.
(2.12.0-M1 is less critical for this release.)

The ScalaJSClosureOptimizer calls the Google Closure compiler (by its definition)

Not necessarily. It is equally reasonable to say that it calls the Closure optimizer if it makes sense/is possible.

I'm wondering if it is so important that fullOpt works in ES6 immediately. Because it is true that it's hard to find a nicer solution to this which does not require either of:

A lot of code

I'm wondering if it is so important that fullOpt works in ES6 immediately.

That's another way to look at it, I guess.

Sorry, glitched on phone.
...

A lot of unnecessary code  (in sbt olugin)
A real refactoring

So I'm honestly wondering whether we should change anything (otoh, these output modes are experimental, so if closure is unable to handle them again later, it's OK)

OK well then let's just not include this in 0.6.3.

I agree. I'd rather have this done cleanly once.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/1677/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2172/
Test PASSed.

LGTM


Add Background Images or Gradients

The previous iteration of the website features only a white background, which is visually unappealing. This issue aims to enhance the aesthetic quality of the site by adding background images or gradients. Implementing these changes will make the interface more attractive and engaging for users.

Background images and gradients have been added.


somebody have any exist  traffic_control rpm ?

somebody have any exist  traffic_control rpm ?

There is no single rpm with all traffic control components, but the individual comp

sorry ...
The individual components can be found at http://traffic-control-cdn.net/downloads/index.html


No MaterialLocalizations found

[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: No MaterialLocalizations found.
QuizApp widgets require MaterialLocalizations to be provided by a Localizations widget ancestor.
The material library uses Localizations to generate messages, labels, and abbreviations.
To introduce a MaterialLocalizations, either use a MaterialApp at the root of your application to include them automatically, or add a Localization widget with a MaterialLocalizations delegate.
The specific widget that could not find a MaterialLocalizations ancestor was:
QuizApp
The ancestors of this widget were:
[root]
#0      debugCheckHasMaterialLocalizations. (package:flutter/src/material/debug.dart:69:7)
#1      debugCheckHasMaterialLocalizations (package:flutter/src/material/debug.dart:89:4)
#2      MaterialLocalizations.of (package:flutter/src/material/material_localizations.dart:515:12)
#3      Alert.show (package:rflutter_alert/src/alert.dart:76:35)
#4      _QuizAppState.checkAnswer.<anonymous closure<…>

Hi @githubusar, when filing issues please try to fill some or all of the information requested in the issue template. The issue description doesn't seem to make any sense to me.
Please update the issue description describing the steps to reproduce the issue along with the output of flutter doctor -v and a minimal and complete reproducible code (if applicable).

Hi @githubusar, when filing issues please try to fill some or all of the information requested in the issue template. The issue description doesn't seem to make any sense to me.
Please update the issue description describing the steps to reproduce the issue along with the output of flutter doctor -v and a minimal and complete reproducible code (if applicable).

hi i have updated my issue description

@githubusar I saw your code sample and I see that you are directly using the flutter widgets  inside the MaterialApp
home: Scaffold(...)

so the context that gets passed down the widget tree does not have  MaterialLocalizations, so there are two ways you can deal with this either instantiate another flutter Widget and pass it to home.

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

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

class QuizApp extends StatefulWidget {
  const QuizApp({Key? key}) : super(key: key);

  @override
  _QuizAppState createState() => _QuizAppState();
}

List scorekeeper = [];

class _QuizAppState extends State {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(debugShowCheckedModeBanner: false, home: QuizHome());
  }
}

class QuizHome extends StatefulWidget {
  const QuizHome({Key? key}) : super(key: key);

  @override
  _QuizHomeState createState() => _QuizHomeState();
}

class _QuizHomeState extends State<QuizHome> {
  QuizBrain quizObject = QuizBrain();

  void checkAnswer(bool userPickedAnswer) {
    bool correctanswer = quizObject.getquestionAnswer();
    setState(() {
      if (quizObject.isfinished() == true) {
        Alert(
          context: context,
          title: 'Warning',
          desc: 'You have reached the end of the questions',
        ).show();

        quizObject.reset();
        scorekeeper = [];
      } else {
        if (correctanswer == userPickedAnswer) {
          scorekeeper.add(Icon(
            Icons.check,
            color: Colors.green,
          ));
        } else {
          scorekeeper.add(Icon(
            Icons.close,
            color: Colors.red,
          ));
        }
        quizObject.nextQuestion();
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: SafeArea(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Expanded(
              flex: 5,
              child: Center(
                child: Text(
                  quizObject.getquestiontext(),
                  textAlign: TextAlign.center,
                  style: TextStyle(
                    fontSize: 30,
                    color: Colors.white,
                  ),
                ),
              ),
            ),
            Expanded(
              child: Padding(
                padding: const EdgeInsets.all(15.0),
                child: TextButton(
                  onPressed: () {
                    checkAnswer(true);
                  },
                  style: TextButton.styleFrom(
                    backgroundColor: Colors.green,
                  ),
                  child: Center(
                    child: Text(
                      'True',
                      style: TextStyle(
                        fontSize: 20,
                        color: Colors.white,
                      ),
                    ),
                  ),
                ),
              ),
            ),
            Expanded(
              child: Padding(
                padding: const EdgeInsets.all(15.0),
                child: TextButton(
                  onPressed: () {
                    checkAnswer(false);
                  },
                  style: TextButton.styleFrom(
                    backgroundColor: Colors.red,
                  ),
                  child: Center(
                    child: Text(
                      'False',
                      style: TextStyle(
                        fontSize: 20,
                        color: Colors.white,
                      ),
                    ),
                  ),
                ),
              ),
            ),
            Row(
              children: scorekeeper,
            ),
          ],
        ),
      ),
    );
  }
}

or
wrap the Scaffold in a builder.
 home: Builder(
     builder: (context) {
        return Scaffold(...);
      }
 );

And that should solve the issue.
Closing this issue as invalid, If you disagree feel free to write in the comments and I will reopen it.
Thank you.

@githubusar I saw your code sample and I see that you are directly using the flutter widgets inside the MaterialApp
home: Scaffold(...)

so the context that gets passed down the widget tree does not have  MaterialLocalizations, so there are two ways you can deal with this either instantiate another flutter Widget and pass it to home.
modified code sample
or
wrap the Scaffold in a builder.
 home: Builder(
     builder: (context) {
        return Scaffold(...);
      }
 );

And that should solve the issue.
Closing this issue as invalid, If you disagree feel free to write in the comments and I will reopen it.
Thank you.

Thank you very much.


Preview of CompositionalGrounder

This is not yet intended for master

I'm probably going to resubmit this shortly without all the intermediate steps so that the final changes are more obvious, but one can inspect and test it already  The most important changes are to OntologyHandler.scala and OntologyGrounder.scala.  I'm not terribly happy with the change to Map[String, Seq[OntologyGrounding]) because it has some long-distance effects.  This may still be influenced by how the CompositionalGrounder really works in contrast with how I guessed it might work.

FWIW I changed my mind again and am slightly changing how these are stored in the EidosMention.  It shouldn't affect doing the actual grounding, though.

I'm closing the pull request so that it doesn't get merged into main.  For further discussion, see issue #671.


Testing with the Firestore emulator

This is a wonderful contribution. I want to use it in the Firestore version of my Datastore library for AppEngine. In that library I'm using the AppEngine test doubles for Datastore but there is no such thing for Firestore. Only the emulator. How do you write good tests with this thing?

I'm not sure how to do use Firestore emulator. This lib is based on the Java Admin SDK and AFAIK only Android, iOS, Web, and Node.js Admin SDK support emulators (see here). Manye functions here take a com.google.cloud.firestore.Firestore instance as an argument, maybe there's an undocumented way get an instance connecting with the emulator. How be glad to add a function for it if there's one.
The hack I'm doing by now is using a dev project with a Firestore instance and performing populate-test-delete against it. We have purge! to delete collections and documents recursively. Not great, but that's what we have for now.

Ah, you're right, sadly. Ideally we would be able to find the Firestore test doubles in the package com.google.appengine.tools.development.testing where you already find a LocalDatastoreServiceTestConfig which works flawlessly when testing local datastore writes and reads for tests. Ideally there would be a LocalFirestoreServiceTestConfig in there too...
I think I'm going to do it like you: just create a dev project, use a service account for that and write my tests against that. Thank you very much. Great contribution.

Hi @nickbauman! @codestiff made a great contribution and managed to make the emulator work with firestore-clj, you can already try it in 1.2.1. Since it's experimental, any feedback would be appreciated. Thanks!

Wow this is great. I scanned the contribution. Will report back.

I got a basic error:
user=> (require '[firestore-clj.core :as f])
Syntax error (ClassNotFoundException) compiling . at (firestore_clj/google.clj:32:15).
io.grpc.ManagedChannel

Does [io.grpc/grpc-core "1.24.1" :scope "provided"] need to be added to profiles.clj ?

I just made a new test project and this error hasn't shown up, require worked fine. It probably has to do with grpc-core, the dependency tree is messy and has version ranges, so if you're using other google libs this is probably the cause. But anyway I'd like to have a solution or at least a hack for that so users don't suffer.

Does [polvo/firestore-clj "1.2.1" :exclusions [io.grpc/grpc-core]] help?

Yeah, I'm not sure what the "correct" way to handle the grpc dependency tree

Yeah I monkeyed around with exclusions earlier to no avail. I’ll try again tomorrow after work.

I'm really sorry for the inconvenience. That's a very weird problem, does that happen even in a project where firestore-clj is the only dependency? I even deleted my local .m2 folder and downloaded the dependencies again, but wasn't able to reproduce your error. It's even weirder because we have not added dependencies (only in the :dev profile).


Python: switch to wheel format

It has been accepted as the binary format for Python.
See:

https://pypi.python.org/pypi/wheel/0.15.0
http://www.python.org/dev/peps/pep-0427/

Basically we switch from bdist_egg to bdist_wheel.

There's a proposal at the numpy discussion mailing list to break python setup.py install and instead requiring pip install. I thought it might be relevant for this discussion.

Yeah, we should move to pip and use wheels asap. It would fix a lot of bugs. Now that I'm working on Nix+Python, I might get a chance to do that.

As #11086 is practically ready, I'm happy to close this after 2 years ;)


Update Chromium to 77.0.3865.120

there's 121 already xD https://chromium.googlesource.com/chromium/src.git/+refs
oh wait, actually, nevermind, i forgot this project uses .tar.xz instead of git (and I don't recommend trying to use git, there's stuff downloaded from google and ran as executable before building)

welp, gonna build this once I get home.


Indexed images with more than 16 colors aren't being converted automatically.

          [scene11fans.zip](https://github.com/haroldo-ok/choice4genesis/files/10483995/scene11fans.zip)

sure here it is. i was playing around with different graphic settings . ok thanks!
Originally posted by @zartan9 in https://github.com/haroldo-ok/choice4genesis/issues/66#issuecomment-1401062019

Fixed on v0.14.3: https://github.com/haroldo-ok/choice4genesis/releases/tag/v0.14.3


Added command for generating certs

Description
A new command was added, that can be used for generating certificates and updating the env-file.
Common code between the command for generating secrets and certs has been refactored into a trait.
Checklist:

[x] I've added tests for my changes or tests are not applicable
[x] I've changed documentations or changes are not required
[x] I've added my changes to CHANGELOG.md

@mfn @leon0399 would you like to review the PR? Or should we merge @Messhias ?

@mfn @leon0399 would you like to review the PR? Or should we merge @Messhias ?

let's merge, they've already approved it.


InsecurePlatformWarning

It downloaded only one song.
Before and after the download there are these errors.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
ailed to download song. Will retry after other songs.
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.
Failed to download song. Will retry after other songs.

Using this in Windows 10 Bash

@rudolphos As it says, I'll suggest you to upgrade your python 2 version (to at least 2.7.9) and then follow instructions in README again. That should hopefully fix your problem.


Basic tutorial

Add a basic in-memory postprocessor for watershed.
It doesn't seem to be working that well because prediction seems broken. Here's a picture:

I expect the postprocessor to work significantly better if the predictions are done with enough context to avoid the block artifacts and the predictions are post processed properly so that high affinity within objects leads to an affinity of 1 (it looks like its set to 0 here), and a low affinity in the background leads to an affinity of 0 (looks like it is set to 0.5 here)

i think the reason of the error is this hardcoded line
https://github.com/janelia-cellmap/dacapo/blob/f1fdef3814fa1e20a7b9d33b8607e02b440b8059/dacapo/predict_local.py#L39
this code is made to work on my upsample unet
@pattonw @rhoadesScholar


Different form in user credentials insertion and edition

Hi,
The form when inserting a new user credential in database is a normal textarea, as expected:

However, when editing the inserted user credential, the form is a "code" form, with line numbers, whatever its type (whereas such a form could be expected for a "JavaScript" credential, but not for a plaintext one).

Hey @Phyks. I hadn't realized it wasn't using the rich editor for the creation form too. The original intention was to allow you to write snippets of code and such to be used in multiple agents, but now that the JavaScriptAgent has the editor inline, it's less needed. Maybe we should remove it from Credentials, where it kind of doesn't make any sense to be.

I was contemplating removing the rich editor and the modes from the credential form. I wish I knew if people use it there at all to write JS or larger text blobs. I'd also be open to just removing the text mode. What about it was bothering you?

What about the text mode was bothering you?

Hey @Phyks, okay if I close this, or were there more issues with the text mode?

I think it is all right by now, sorry for the late reply :/


java.lang.NoSuchMethodError: No static method decodeHex(Ljava/lang/String;)[B in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/org.apache.http.legacy.boot.jar)

Describe the bug
java.lang.NoSuchMethodError: No static method decodeHex(Ljava/lang/String;)[B in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/org.apache.http.legacy.boot.jar)
at com.emv.qrcode.core.model.cpm.BERTLBinary.toPrimitives(BERTLBinary.java:35)
at com.emv.qrcode.core.model.cpm.BERTLBinary.(BERTLBinary.java:26)
To Reproduce
Steps to reproduce the behavior:

Downgrade API Level to 26

I am getting this error while targeting to android 8 and 8.1

Android ships an old version of commons-codec internally, which is the one found before any libraries shipped with an app. Hence the error above. The fix is to not use commons-codec internally to convert Hex to String (or to use a method available on the really old version of commons-codec that is shipped with Android).


markdown to pdf fails on links on relatively simple markdown doc

Using the sample from here: https://sdsawtelle.github.io/attachments/resume.md, shiva fails to correctly handle the links at the top of the page:

confirm
are you redy to fix it?

No sorry, I don't know this crate well enough and don't have availability right now. If this doesn't get resolved and I find the time I'll let you know.


Reorder checks in _dispatch_unote_create

Because the second conditional implies the first is false, we can move the second conditional upwards, since they both have conditional overlapping.

@compnerd

Hi, it's unclear what you're trying to do with this patch. It doesn't provide any apparent gain, while being potentially breaking. Re-ordering the conditions is not meaningful. Additionally, the flipping of the short-circuiting &&  operands is making it difficult for me to determine whether this results in the same behavior.
If you have measurable performance numbers and there is a statistically significant improvement, or the change meaningfully improves the readability of the code, we could have a discussion about merging this patch, but as far as I can tell, it does neither. My vote is to close this PR. @rokhinip, I'll let you make the final call here.


Suggestion: Add diamond tier to GitHub Sponsors

What problem do you want to solve?
Add diamond tier to GitHub Sponsors
What do you think is the correct solution?
Add diamond tier to GitHub Sponsors
Participation

[ ] I am willing to submit a pull request for this change.

Additional comments
No response

I guess only TSC have this option?

Yes. That's why it's assigned to me.

Completed.


Endpoint that returns Company: will the 2.0 discovery/me endpoint work for 1.4 API?

To call the GetEndpoint method, a Company is needed as a parameter (https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/admin-api/methods/company/r_GetEndpoint.md).
What endpoint can I call that returns a list of Company names, so our customers can select the correct company name and not have to type it in?
Specifically, would the companyName returned by the 2.0 discovery/me endpoint https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/discovery.md serve this function for the 1.4 API?

Better late than never but can confirm that the Discovery API will give you the parameter you can use in the Endpoint API.
Discovery API will return something like:
{
    "imsUserId": "<techaccountId>",
    "imsOrgs": [
        {
            "imsOrgId": "<imsOrgId>",
            "companies": [
                {
                    "globalCompanyId": "<globalCompanyId>",
                    "companyName": "<companyName>",
                    "apiRateLimitPolicy": "aa_api_tier10_tp",
                    "dpc": "<dpcValue>"
                }
            ]
        }
    ]
}

Then use https://api.omniture.com/admin/1.4/rest/?method=Company.GetEndpoint&company=<uriencoded companyName> to get the endpoint, which should look like
"https://api5.omniture.com/admin/1.4/rest/"


Double quotes when joining with USING

q = Query.from_(Table('t1')).join(Table('t2')).using(Field('f')).select(Field('f'))

str(q)

Returns:
SELECT "f" FROM "t1" JOIN "t2" USING (""f"")

Similarly,
q.get_sql(quote_char=None)

Returns:
SELECT f FROM t1 JOIN t2 USING (""f"")

I'm trying to get USING (f) instead of USING (""f"") (obviously, I can remove the double quotes myself).
Am I doing something wrong, or is this a bug?

You shouldn't need to use the Field class directly. Try saving the references to the tables and referencing attributes of those tables to produce instances of Field :
t1 = Table('t1')
t2 = Table('t2')

q = Query.from_(t1).join(t2).using('f').select(t1.f)


Add ability to set RUSTC_WRAPPER for Cargo invocations

This PR resolves issue #10 by enabling the optional use of sccache in builds.

Merging.


v21.1.7 refactor tests: GameResultModel

[Current coverage][cc-pull] is 100%

Merging [#528][cc-pull] into [master][cc-base-branch] will not change coverage

@@           master   #528   diff @@
====================================
  Files          28     28
  Lines         429    429
  Methods       108    108
  Messages        0      0
  Branches        0      0
====================================
  Hits          429    429
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last updated by [9396698...b715295][cc-compare]
[cc-base-branch]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/compare/9396698b0a2bcaf10967c62798c2f9762cd1c18e...b715295386d229bd117e93f0cba599d9ad947d65
[cc-pull]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/pull/528?src=pr


Dynamic styling inside css block selected with parent selector

There appears to be an issue with dynamic styling in a css block that uses a parent selector in non-initial position. For example:
const MyComponent = styled.div`
  .container-a & {
    /* Dynamic styling here */
  }

  .container-b & {
    /* Maybe some other dynamic styling here */
  }
`

I included a code sandbox that probably more easily shows the issue.
Environment

## System:
 - OS: macOS 11.6
 - CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
 - Memory: 44.26 MB / 16.00 GB
 - Shell: 5.8 - /bin/zsh
## Binaries:
 - Node: 15.10.0 - ~/.asdf/installs/nodejs/15.10.0/bin/node
 - Yarn: 1.22.5 - ~/.asdf/shims/yarn
 - npm: 7.5.3 - ~/.asdf/plugins/nodejs/shims/npm
## npmPackages:
 - babel-plugin-styled-components: ^1.12.0 => 1.12.0
 - styled-components: ^5.3.1 => 5.3.1

Reproduction

https://codesandbox.io/s/suspicious-haze-4fp2f?file=/src/App.js
Steps to reproduce

Create a styled component: Parent
Create another styled component: Child
In the Child component, use Parent as a selector.
Inside the css block of Parent component selector, apply a style based on a props that the Child might receive.
Render multiple Child components inside the Parent component, with some of the children applying the prop that affects the style and some of the children not applying it.
See that All the children are styled the same.

Expected Behavior
The children should be styled based on the props that that particular instance received.
Actual Behavior
There is a collision in the CSS generated and all children are styled the same regardless of the props that they received.

Looking into it more, I see that this was already reported and is a dupe of https://github.com/styled-components/styled-components/issues/3265 so I'll close this one.


Graduate Teleport Hotspot Documentation

Add documentation for Teleport Hotspot feature.

Phase 1 PR located here: https://github.com/MicrosoftDocs/mixed-reality-pr/pull/2865

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


feat: Add ability to view version of the individual OSCAL object

Types of changes

[ ] Hot fix (emergency fix and release)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation (change which affects the documentation site)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Release (develop -> main)

Quality assurance (all should be covered).

[x] My code follows the code style of this project.
[ ] Documentation for my change is up to date?
[x] My PR meets testing requirements.
[x] All new and existing tests passed.
[x] All commits are signed-off.

Summary
Added ability to view the metadata version of the individual OSCAL objects.
trestle version -n <object_name> -t <type> will return metadata version of that object.
trestle version has the same logic as previously
Key links:

Sonar coverage

Before you merge

Ensure it is a 'squash commit' if not a release.
Ensure CI is currently passing
Check sonar. If you are working for a fork a maintainer will reach out, if required.

Closes #1292

The validate command also allows model name and model type, but it finds the model using get_models_of_type in model_utils.  See line 62 in validator.py  This would allow support for all (and future) model types, but it does require spelling out the full model type.  See the -h help command for validate.
We could use some kind of lookup based on short names like ssp but if so the validate command should be similarly changed.
So I would avoid using the term 'folder' and just refer to model name and model type - with the full type.
For test coverage you can just generate models on the fly, set the version or whatever as you like, and save them out - then query the version.  This could even be done in a loop over all model types, generate random strings for version et al., and not rely on existing test data.
If there is a reason you only want to support a subset of types then the above may not apply, but I would aim to keep things consistent with validate.

@fsuits , good suggestions will address it.

@fsuits I have addressed the comment and now the trestle version will support all models similarly to validate.
Also did a small refactoring (mostly renaming) of existing functionality in model_utils. This class will need further revision.
As for the tests, I think we can postpone the generation of the models on the fly until the #1282 is completed


Compile custom c++ calculators for use in Javascript

I am trying to implement a custom graph and calculators into javascript framework. The graph seems to run fine on ios and android. Where are the instructions on how to build the custom calculators and graph for javascript?

@jimwinkpresage,
All Wasm files are prebuilt. We do not support the custom model using the Calculators and Graphs, And We do not have any documentation to build the model in JavaScript Framework. Thank you!!

I think it needs to reopen this issue. Is there any specific reason not to open the ways to make wasm from this project?
This project is open-source, hence many developers might want to make their own wasm from their modifications for many reasons.

@kuaashish


oauth2_proxy redirecting to mydomain.com/common/authorize

Using Azure provider.   I've got the following settings:
--provider=azure --cookie-secure=false --upstream="file:///dev/null" --http-address="<IP_ADDRESS>:4180" --cookie-domain="mydomain.com" --redirect-url="https://mydomain.com/oauth2/callback" --email-domain="mydomain.com" --login-url="https://login.microsoftonline.com/common/oauth2/authorize"
When I hit my page, I get the "Sign in with Azure Account" page.  When I hit the Sign In button, I get redirected to:
https://mydomain.com/common/oauth2/authorize
Shouldn't this be https://login.microsoftonline.com/common/oauth2/authorize  ?

i believe this is a reverse proxy problem upstream. Closing.


InkWell behaves differently between Android and Web applications (same code)

Steps to Reproduce

Navigate to this URL: https://api.flutter.dev/flutter/material/InkWell-class.html
Modify the example: add type: MaterialType.circle to the Material object, and comment out the call to setState, leave onTap empty, like this:

  Widget build(BuildContext context) {
    return AnimatedContainer(
      height: sideLength,
      width: sideLength,
      duration: Duration(seconds: 2),
      curve: Curves.easeIn,
      child: Material(
        color: Colors.yellow,
        type: MaterialType.circle,  // *** add this
        child: InkWell(
          onTap: () {},   // *** modify this
        ),
      ),
    );
  }

Run example and notice how InkWell works,
Copy this command line snippet from below the example: $ flutter create --sample=material.InkWell.1 mysample and execute it on local development machine,
Perform the same modification of source code as in step 2 (add MaterialType.circle, and remove the setState() call),
Start Android emulator, run this example on Android: $ flutter run
Observe that when this example code is executed under the emulator, the animation of ink is different than advertised on the example page.

Expected results:
I think that animation of InkWell should be the same when executed on Android, as it's shown in the web version.
Actual results:
Animation of InkWell is different between Android version and Web version.
Here's the example video demonstrating the difference: https://www.youtube.com/watch?v=1VHvTGp_SJs

Logs
$ flutter analyze
Analyzing inkwell_sample...
No issues found! (ran in 11.8s)

$ flutter doctor -v
[✓] Flutter (Channel stable, 1.20.1, on Linux, locale en_US.UTF-8)
    • Flutter version 1.20.1 at /home/antek/dev/android/flutter_sdk_newest/flutter
    • Framework revision 2ae34518b8 (4 days ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/antek/dev/android/sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /home/antek/dev/android/sdk
    • Java binary at: /home/antek/data/apps/androidstudio/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions.

[✓] Android Studio (version 4.0)
    • Android Studio at /home/antek/data/apps/androidstudio/android-studio
    • 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)

[✓] IntelliJ IDEA Community Edition (version 2019.3)
    • IntelliJ at /home/antek/data/apps/idea/ideaIC-2019.2/idea-IC-192.5728.98
    • Flutter plugin version 45.0.2
    • Dart plugin version 193.6911.31

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at /home/antek/data/apps/idea-IU-193.6015.39
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.45.1)
    • VS Code at /usr/share/code
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • sdk gphone x86 64 arm64 (mobile) • emulator-5554 • android-x64 • Android 11 (API 30) (emulator)

! Doctor found issues in 3 categories.

Mobile

Web

code sample
// Flutter code sample for InkWell

// Tap the container to cause it to grow. Then, tap it again and hold before
// the widget reaches its maximum size to observe the clipped ink splash.

import 'package:flutter/material.dart';

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

/// This Widget is the main application widget.
class MyApp extends StatelessWidget {
  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: Scaffold(
        appBar: AppBar(title: const Text(_title)),
        body: Center(
          child: MyStatefulWidget(),
        ),
      ),
    );
  }
}

class MyStatefulWidget extends StatefulWidget {
  MyStatefulWidget({Key key}) : super(key: key);

  @override
  _MyStatefulWidgetState createState() => _MyStatefulWidgetState();
}

class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  double sideLength = 50;

  Widget build(BuildContext context) {
    return AnimatedContainer(
      height: sideLength,
      width: sideLength,
      duration: Duration(seconds: 2),
      curve: Curves.easeIn,
      child: Material(
        color: Colors.yellow,
        type: MaterialType.circle, // *** add this
        child: InkWell(
          onTap: () {
            setState(() {
              sideLength == 50 ? sideLength = 100 : sideLength = 50;
            });
          },
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.21.0-10.0.pre.159, on Mac OS X 10.15.6 19G2021,
    locale en-GB)
    • Flutter version 1.21.0-10.0.pre.159 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 86d2fe9f20 (2 hours ago), 2020-08-18 21:48:04 -0700
    • Engine revision 0b330467da
    • Dart version 2.10.0 (build 2.10.0-38.0.dev)

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

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

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

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

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

[✓] Connected device (3 available)
    • macOS (desktop)  • macos      • darwin-x64     • Mac OS X 10.15.6 19G2021
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome
      84.0.4147.125


Executor should use a more reliable mechanism to observe files

Currently if we want to observe a log file we stream the content into a separate file in the executor container itself. The file is therefor a kind of mirrored and that mirrored file inside the executor container is observed by logstash. To limit the file size of these mirrored/streamed files we cut of the content after (currently fixed) 5 MegaBytes. That means after reaching that limit we delete the mirrored file and start from position 0. With that approach we can not assure that the content before deleting the file and start from position 0 was processed by logstash. Some lines in the log file might not observed and therefor not monitored.
Replace the current file mirroring and cutting of with something more reliable...

lguminski [9:35 AM]
you could also investigate how monitoring tools hook into containers - read this
https://blog.ruxit.com/how-to-monitor-docker-containers/
I think they make a LD_PRELOAD trick similar to stdbuf http://www.pixelbeat.org/programming/stdio_buffering/

Not monitoring files any more


Matching touch input to rotated screen - how to find my output device name

I have a kiosk PC with a touchscreen that's meant to be mounted in portrait mode, but the hardware is unaware of this fact. In every OS I've put on the machine I had to rotate the screen.  However the touch input still thinks the screen is in landscape.
This Wiki page deals with the issue:
(https://github.com/cage-kiosk/cage/wiki/Troubleshooting#touch-input-isnt-transformed-correctly-to-my-transformed-touch-output)
It says I'm supposed to create a file under /etc/udev/rules.d, and I need to know the input device path in /dev, and the name of the output device.
This is the example line provided:
KERNEL=="event[0-9]", SUBSYSTEM=="input", ATTRS{name}=="FT5406 memory based driver", ENV{WL_OUTPUT}="DSI-1"
It says the output device name "is printed by Cage (look for a log line "Scanning DRM connectors")". I've looked through the logs using journalctl, I wasn't able to find a line that said "Scanning DRM connectors" (Am I looking in the wrong place?)
Also, what do I need the path of my input device for? Where do I put it in the file?
Finally I would like to ask, is there a support forum or chat for this project? Cause I feel like I'm misusing this Issues page a little bit. (Normally Issues pages should be for issues with the code, not support questions) Or is it OK if I continue asking questions here?

Duplicate of #243


Support for deploying to multiple stages with single command

It would be great to have feature which allows to deploy to multiple stages with single command. Example use case - application with servers in multiple countries with different languages/payment methods/content etc sharing same code base and the only difference between countries during deployment is IP and RAILS_ENV. Currently I use simple bash script that invokes deployment for each stage separately (one stage is one country with it's specific RAILS_ENV). I was trying to put all countries servers to single stage, but can't find way to correctly pass corresponding RAILS_ENV.

I agree this would be nice to have. However it's not a high priority, considering the code changes required are not trivial, and a workaround exists (the bash script you mentioned).
If someone wants to take a shot at a PR, I think the way to do it would be to modify setup.rb to reset the Capistrano state (Configuration.reset!) when invoking each stage, so that variables or task overrides declared in one stage don't clobber the other. That might have some unforeseen consequences, though, and would require careful testing.

Actually, what I proposed will not work. It seems like you want a single deploy, but depending on which stage a server is defined, that server is deployed using different environment variables.
I can't think of a way to accomplish this that doesn't require massive changes to how Capistrano works. The bash script you have is probably the simplest and best way to approach it.
You may also want to try Stack Overflow to see if another developer has encountered a similar scenario and has a different solution.
As it stands I don't think this is something we can accommodate in Cap itself. Thanks for the idea, though!

@mattbrictson I'm ok to define single stage with all the production servers for all countries, but I need to have a way to pass corresponding RAILS_ENV to each server in that single stage (each country has different RAILS_ENV). So looks like it's too hard to achieve?

Yes, capistrano-rails sets RAILS_ENV based on the stage, and this can only be set once. You can't override this per server. You could possibly modify the capistrano-rails gem itself to set RAILS_ENV in a different manner, perhaps by using a Proc that takes the host as an argument. But that seems like a pretty confusing hack for something so easily solved with a bash script.
But, like I said, there is a good chance someone else has a more creative solution; Stack Overflow might be worth checking out.

@mattbrictson thanks, I'll try on Stack Overflow.


⚠ Bofrost.de has degraded performance

In 90cbd95, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 926 ms

Resolved: Bofrost.de performance has improved in 21df9ef.


Use lodash.once instead of unlicensed/unmaintained cb

I am trying to get all our dependencies (including transient) to have proper license info, so we can automate the checking. We found that 'cb' doesn't have a license set (in the published version), and haven't seen any activity for over 3 years.
This switches to use lodash.once instead, which should be as small and as efficient.

Thanks a lot!


Recommended Image Size

Request
Hi
my eyes hurt from a lot of information but still have no idea what are the proper  / recommended image sizes we should use .
like for the story background ?  featured image ?
so
please what are the recommended image sizes / proportions ? minimum required and max allowed ?
Thanks

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Hello @aaronmspelling! The specification for cover images can be found here. Note the following recommended minimum requirements:
Each poster image should meet the recommended minimum size:
Portrait: 640px x 853px
Landscape: 853px x 640px
Square: 640px x 640px
Publisher logo images should be at least 96x96 pixels.
Hope this helps!

thank you
what about the background image or the featured image for the Web Story ?

The recommendation is to use at least 828 x 1792 sized fullscreen/ background images as mentioned in this best practices documentation. Cover image in Web Stories is both the poster image and featured image. Featured image sizes should be at least 1200px wide to meet structured data requirements.

thank you

read all the details you sent so if i would use 828 x 1792  images as background image for my slides
Portrait: 640px x 853px
Landscape: 853px x 640px
Square: 640px x 640px   for any image i want to use on / in the slides
1200*728  as feature image ( this is the structured data requested size )
and for  publisher logo 96X96  everything should be ok ?
one more thing ( sorry )  Gutenberg editor or classic editor would be the best to use ? ( of course using the Web Stories beta plugin )
sorry but ...

read all the details you sent so if i would use 828 x 1792 images as background image for my slides
Portrait: 640px x 853px
Landscape: 853px x 640px
Square: 640px x 640px for any image i want to use on / in the slides
1200*728 as feature image ( this is the structured data requested size )
and for publisher logo 96X96 everything should be ok ?

We recently received some updates about Search Console image size guidelines for Web Stories and there are a few details we are clarifying. We will update you as soon as possible.
Gutenberg allows you to easily embed your Web Story URL quickly in the same place on the interface. We are considering shortcode support for the classic editor as suggested in #3135.

thank you

Hi @aaronmspelling Following up on your question about image sizes. You shouldn’t have to worry about the correct aspect ratio since the plugin will crop the image to the right aspect ratio, but users should follow the AMP guidelines to use a 3x4 aspect ratio for the featured image to ensure the story's appearance in search is good.  You can download the beta 2 version of the plugin which will automate resizing the poster-portrait-src images.
These guidelines apply to the cover image. Each poster image should meet the recommended minimium size:

Portrait: 640px x 853px
Landscape: 853px x 640px
Square: 640px x 640px

The recommendation is to use at least 828 x 1792 sized fullscreen/ background images as mentioned in this best practices documentation.
Thanks again for submitting this topic!


📱🔧 React Native

Current Status

Codebase in progress:github.com/claytonschneider/realworld-react-native

Interested in helping out? Say hello! 🎉 gitter.im/realworld-dev/react-native

Todo:

[x] 🏁 Fork the starter repo & post the link in this issue
[x] 🎨 Create logo for repo & update issue status (@ericsimons)
[ ] 🔨 Implement all of Conduit's functionality per the spec & API
[ ] 👀 Peer review of final codebase by RealWorld admins & community (RFC)
[ ] 🎉 Tag v1 release, move repo to main org, and officially list it on the README!

Anyone out there interested in this? Many folks have been asking for a RealWorld React Native codebase. We haven't created any RealWorld based mobile apps (yet), so this would potentially be the first one :)

I got it

Awesome! Since we don't have any mobile versions (yet), you'll actually be creating the standard experience for all the future RealWorld mobile apps 🙌

@EricSimons Would you be able to help make some app icons for this using the original RealWorld image files? I've used https://makeappicon.com/ before for this -- free and it works pretty well.

@claytonschneider I'm on it. Will also put those assets in the starter kit once they're ready 👍

@claytonschneider I will be happy to work on React native implementation. Need a helping hand?

@claytonschneider as promised, icons have been uploaded! You can find the link to them in our new mobile specs section  🎉

Just set up the Gitter chatroom for this! Lets do collaborator coordination in there 👍
cc/ @claytonschneider @akshatgoel

What is the progress for this? Thanks!

I am willing to take over the task. :)
I had created a react-native repo which copied the redux and http code from react redux real world example app. It successfully retrieved tags, so I would expect it to be working fine.
What I am going to do

Wireframes for the Mobile App, get approval from the community;
React Navigation to replace the react-router;
implement the UI.

Is this two screen okay?

Hi @cylim , Do you have a progress about this?

I had created two screens component and stopped.
Even though React Native can use React Redux store, the React app example from RealWorld is using page-specific redux state. To create good practices React Native app, the redux have to rewrite.
I didn't receive any messages on Gitter and Github Issues; it seems like the community is inactive, that's why I stopped.

Hello, we moved the addition of new implementations to this website : https://codebase.show/projects/realworld
Please submit your implementation there.


Some sort of module not found error on the terminal

This contains the screenshot of error that appeared on my terminal. I first went npx create-react-app my-first-app. It successfully created a folder my-first-app and bunch of files inside the folder. After that I went cd my-first-app and then npm start. That is when it showed this error. I've tried uninstalling and reinstalling node. Deleting the folder entirely. Also, npm install and then going npx create-react-app. Nothing seems to work at this point. I'm using windows 11 OS.

I tried reproducing the error, but everything ran fine, you are missing some dependencies in your system which is causing the issue.

if you are not missing any dependencies then try to keep every react dependencies of same version like:
react:-
react-dom:-
react-scripts:-
keep all these of same version.
i hope it will work fine!

Try to delete package-lock.json
and then run npm install --legacy-peer-deps


Image slider doesn't work in dittany and dragon tree

Dittany paragraph 7 uses a slider in labs site, but images are separate on Juncture. Also applies to dragon tree paragraph 3

Changed ve-image curtain tags to ve-compare


S3 - Allow uploads using a PUT request without content-type

Fixes #3363

@spulec This is ready for review - the failure is simply because code coverage submits its report before the tests finish.
Coverage should be 100% for this patch.


Regression: istio.io external-controlplane test fails after #31410 was merged

(NOTE: This is used to report product bugs:
To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities
To ask questions about how to use Istio, please visit https://discuss.istio.io)
Bug description
Investigation into the newly found setup/additional-setup/external-controlplane/test.sh  failure finds it started after #31410 was merged.
Looking at https://storage.googleapis.com/istio-prow/pr-logs/pull/istio_istio.io/9325/doc.test.multicluster_istio.io/1374050056495173632/artifacts/tests-setup-multicluster-f10181/TestDocs/setup/additional-setup/external-controlplane/test.sh/test.sh/_test_context/test.sh_output.txt the instructions have the user creating some sample applications, but they do not start.
VERIFY FAILED snip_deploy_a_sample_application_3 (timeout after 120s):
received:
"No resources found in sample namespace."
expected:
"NAME                             READY   STATUS    RESTARTS   AGE
helloworld-v1-5b75657f75-ncpc5   2/2     Running   0          10s
sleep-64d7d56698-wqjnm           2/2     Running   0          9s"

I do see in: https://storage.googleapis.com/istio-prow/pr-logs/pull/istio_istio.io/9325/doc.test.multicluster_istio.io/1374050056495173632/artifacts/kind/doc-cluster3-control-plane/containers/kube-controller-manager-doc-cluster3-control-plane_kube-system_kube-controller-manager-7d004a783057e86dfa3c10fc24f2f0431e618b312264f92f7c68ba90c1ac49c8.log
021-03-22T17:37:56.949320046Z stderr F I0322 17:37:56.949126       1 event.go:278] Event(v1.ObjectReference{Kind:"Deployment", Namespace:"sample", Name:"helloworld-v1", UID:"2343e445-5c37-4e44-afd0-8ea298c5d206", APIVersion:"apps/v1", ResourceVersion:"2004", FieldPath:""}): type: 'Normal' reason: 'ScalingReplicaSet' Scaled up replica set helloworld-v1-5b75657f75 to 1
2021-03-22T17:37:56.96019023Z stderr F I0322 17:37:56.959851       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"fc0c3fce-9e73-4286-a462-c3a59e338e4a", APIVersion:"apps/v1", ResourceVersion:"2005", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.965634218Z stderr F E0322 17:37:56.965348       1 replica_set.go:535] sync "sample/helloworld-v1-5b75657f75" failed with Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.97264379Z stderr F E0322 17:37:56.972448       1 replica_set.go:535] sync "sample/helloworld-v1-5b75657f75" failed with Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.972662135Z stderr F I0322 17:37:56.972522       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"fc0c3fce-9e73-4286-a462-c3a59e338e4a", APIVersion:"apps/v1", ResourceVersion:"2010", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.980246226Z stderr F E0322 17:37:56.980090       1 replica_set.go:535] sync "sample/helloworld-v1-5b75657f75" failed with Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.980511454Z stderr F I0322 17:37:56.980088       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"fc0c3fce-9e73-4286-a462-c3a59e338e4a", APIVersion:"apps/v1", ResourceVersion:"2010", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.991311461Z stderr F E0322 17:37:56.991073       1 replica_set.go:535] sync "sample/helloworld-v1-5b75657f75" failed with Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:56.991336937Z stderr F I0322 17:37:56.991072       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"fc0c3fce-9e73-4286-a462-c3a59e338e4a", APIVersion:"apps/v1", ResourceVersion:"2010", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:57.042890482Z stderr F E0322 17:37:57.042693       1 replica_set.go:535] sync "sample/helloworld-v1-5b75657f75" failed with Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:57.043149039Z stderr F I0322 17:37:57.042689       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"fc0c3fce-9e73-4286-a462-c3a59e338e4a", APIVersion:"apps/v1", ResourceVersion:"2010", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:57.131483417Z stderr F E0322 17:37:57.131327       1 replica_set.go:535] sync "sample/helloworld-v1-5b75657f75" failed with Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority
2021-03-22T17:37:57.131559262Z stderr F I0322 17:37:57.131431       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"fc0c3fce-9e73-4286-a462-c3a59e338e4a", APIVersion:"apps/v1", ResourceVersion:"2010", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post https://<IP_ADDRESS>:15017/inject?timeout=10s: x509: certificate signed by unknown authority

[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
Existing test should continue to pass
Steps to reproduce the bug
Run the MC test locally, or I can show how to create a PR to test within the pipeline
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
Latest from main branch
How was Istio installed?
via pipeline
Environment where the bug was observed (cloud vendor, OS, etc)
Additionally, please consider running istioctl bug-report and attach the generated cluster-state tarball to this issue.
Refer cluster state archive for more details.

Looking at the logs for a passing test I see:
2021-03-22T18:12:38.640555165Z stderr F I0322 18:12:38.640093       1 event.go:278] Event(v1.ObjectReference{Kind:"Deployment", Namespace:"sample", Name:"helloworld-v1", UID:"55b80d0a-5691-4bb2-bf7d-0fc3b0872014", APIVersion:"apps/v1", ResourceVersion:"2598", FieldPath:""}): type: 'Normal' reason: 'ScalingReplicaSet' Scaled up replica set helloworld-v1-5b75657f75 to 1
2021-03-22T18:12:38.727299659Z stderr F I0322 18:12:38.727018       1 event.go:278] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"sample", Name:"helloworld-v1-5b75657f75", UID:"4c405719-9080-4d48-942c-57f7258061bf", APIVersion:"apps/v1", ResourceVersion:"2599", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' Created pod: helloworld-v1-5b75657f75-fb9jn

This issue was fixed by https://github.com/istio/istio.io/pull/9356


MODINREACH-44 Rollback OpenAPI generator version to 4.3.1

Purpose
There is an issue with generating Java classes from OpenApi spec with new version (5.1.0) of openapi-generator-maven-plugin. It only happens on Windows but not Unix systems. Have to rollback to previous working version, which is 4.3.1, as temporary solution.
Learning
Generation fails with:

INFO: api-schema-lint: Using api-schema-lint version: 1.0.4
INFO: api-schema-lint: Assessing schema files (https://dev.folio.org/guides/describe-schema/)
INFO: api-schema-lint: Found 5 JSON schema files under directory 'src/main/resources/swagger.api'
ERROR: api-schema-lint: src/main/resources/swagger.api/schemas/innReachLocationsDTO.json: Missing "description" for: locations
ERROR: api-schema-lint: There were processing errors. See list above.

Note: When those ERRORs are fixed, then any INFO and WARNING messages will be gone too. See Jenkins "Artifacts" tab for ApiSchemaLintReport.


Command prompt goes black after awaking from sleep

Ported out from customer feedback bug MSFT:21308307.
I haven't managed to reproduce or investigate this at all yet.

I have 2 open command prompts (regular, and admin powershell). I locked my computer last night, and it went to sleep automatically. After waking from sleep this morning, both terminals were showing black screens instead of the text that should be on them. Scrolling the window seems to cause a repaint and fixes the issue.
This also seems to affect 3rd party terminal apps as well (e.g. Terminus).

Roughly the same, mine crashes if my PC goes to sleep, the display turns off or I lock it.

Similar, twice now WT has crashed on sleep - everything else resumes.  I should note, I assumed it was WSL2 that crashed, but I think it's just the sessions in WT (using Ubuntu 18.04).  The reason I suspect that is because other processes such as Docker are still up and running, which I didn't expect to see.

Hey so we ported this out of the OS issue tracker like, 3 years ago. It was specifically referencing the vintage console window, not the Terminal window. That being said, we haven't gotten more reports of this for the console since then. There also wasn't more info in the original issue (internally) which we could really use to investigate.
I'm inclined to close this out. Niksa can veto if he wants.


maxflow: init at 3.0.5

Motivation for this change
Package the maxflow library. This is required for gegl 0.4.28, which in turn will be required for gimp 3.x.
cc @jtojnar @jonringer for the gimp 3.x implications.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Looks good, thanks.


Outdated example of static serving / LiveDirectory

The example at docs/LiveDirectory.md is outdated
The Server.get handler uses the extension property from the LiveFile class in Live Directory which issn't included in version 3 of Live Directory, latest version with this extension is Version 2

Hi, good catch. Do you want to make a PR with the fix or would you like me to make the change? I believe version 2 used to simply split by . and take the last part as the extension, possibly something similar could be done now.


Remove the local DynamicallyAccessedMembersAttribute definition

I think that the PR to change it all to use System.Text.Json and source generators removed the need for this?

True. Thanks 🙏


Echo - subcontroller in a subfolder

This will be a controller found by convention
Make the target link /echo/must/wehave
We want this handled by a conventional controller, i.e. controllers/echo/Must::wehave()
The body of that method should invoke the inherited show method, with the key "5"

Closed


run erro about  InvalidArgumentError

Hello, I generated the data according to the instructions of your project, but the following error occurred when running run.py.Perhaps you could advise how to solve the problem?

The reason is that the number of speakers you generated is different from the default number. You can adapt them to the same number, e.g., 13 (12 speakers + unknown speaker).


[Blog Contribution] Which technical route should I choose to build cloud-native microservices?

MicroProfile.io WordPress
MicroProfiler
To new Contributors who need to gain access to the WordPress site, please provide:

[ ]   Name:
[ ]   Email:

**Content copy/edit review (available & optional)

[x]  Draft in WP

Social Media Description

[ ]   构建云原生微服务，我该选择哪种技术路线？By @emilyfhjiang. 翻译： 赵欣

(That text is the title plus the name of the original author (in English; Emily) and the translator (into Chinese).
Design Card  (for MicroProfile designer)

[ ]  Minimal requirements highlight the MicroProfiler & the title of the blog

Notes
I'm tagging in @Emily-Jiang as she should be able to help if you have any questions about content itself. Emily wrote the original article for the Eclipse Newsletter in English. It's been translated into Chinese (by someone else) and the Chinese version is now published on the Open Liberty blog (which is what this MP blog entry links to). It's a post about how to write cloud-native microservices using MP/Spring.

Hola @lauracowen,
The article is from 2019 which requires an updated version before it can be imported to MP.io content.
Reasons for rejection of contributing blog:

the 2019 article has good information, yet a lot has changed since then that goes beyond code and requires attention with potentially a revision of content if @Emily-Jiang chooses to own such work :)
MicroProfile reverted to its original name on Oct 1st, 2020. For this or any MP content contributions, the name of the Project is MicroProfile.   If 2022 and onwards we continue to accept the Eclipse MP, it will violate the project trademarks and will continue to cause issues with branding and the Mark.

I will close this ticket for now with the hopes that the information provide is helpful and provides insight about YES. Old MP posts are welcomed with re-writes that pay close attention to the current status. :)
Thank you, Laura!


Using browser actions raises a TypeError

Hi team.
Following the example to use Browser Actions, we're getting the following error:
File ".../lib/python3.11/site-packages/scrapy_zyte_api/_annotations.py", line 62, in <genexpr>     return tuple(frozenset(action.items()) for action in value) TypeError: unhashable type: 'dict'
We're using the same code from the documentation:
from typing import Annotated

from scrapy_zyte_api import Actions, actions

@attrs.define
class MyPageObject(BasePage):
    product: Product
    actions: Annotated[
        Actions,
        actions(
            [
                {
                    "action": "click",
                    "selector": {"type": "css", "value": "button#openDescription"},
                    "delay": 0,
                    "button": "left",
                    "onError": "return",
                },
                {
                    "action": "waitForTimeout",
                    "timeout": 5,
                    "onError": "return"
                },
            ]
        ),
    ]

https://github.com/scrapy-plugins/scrapy-zyte-api/pull/188


Plugins in flutter/plugins should use Hybrid Composition by Defualt

Currently, google_maps_flutter and webview_flutter use Virtual Displays by default, but offers a way to switch to Hybrid Composition.
google_mobile_ads also only supports Hybrid Composition.
Since Virtual Displays and Hybrid Composition can't be used simultaneously and Hybrid Composition is growing in adoption, we should eventually change the default in the flutter/plugins repo.

cc @blasten

@blasten We're considering switching the default for webview_flutter next month; do you know of any reason we wouldn't want to do that?

Per offline discussion, we can go ahead and flip the default for webview_flutter (as a breaking change). /cc @mvanbeusekom


About K700 openset split

Thanks for your wonderful work~ I want to know the details about your K700 openset split.
Is it right that videos of 400 classes in the original K700 training split are used for openset training, and videos of the other 300 classes in original K700 val splits are used for openset validation?
Or you directly gather all videos of K700 in both training and val list, and pick 400 classes for training and use the left videos of 300 classes for validation?

I have the same question.
Can you please publish the lists for these two sets of classes?

Sorry for the late reply.
We use videos of 400 classes in the original K700 training split for training, and videos of the other 300 classes in original K700 val splits for evaluation.

But which 400? First 400 or random 400?

Please see ./datasplits/Open-set Action Recognition/K700/


Discussion forum

Codecov Report

Merging #16 (b2f7a5c) into main (ea8a2c0) will decrease coverage by 0.18%.
The diff coverage is 0.23%.

@@           Coverage Diff            @@
##            main     #16      +/-   ##
========================================
- Coverage   0.82%   0.64%   -0.19%
========================================
  Files         19      20       +1
  Lines        603     779     +176
========================================
  Hits           5       5
- Misses       598     774     +176

Impacted Files
Coverage Δ

frontend/lib/component/side_menu.dart
0.00% <0.00%> (ø)

frontend/lib/component/swipe_animation.dart
0.00% <0.00%> (ø)

frontend/lib/dataModal/question.dart
0.00% <ø> (ø)

frontend/lib/main.dart
5.26% <0.00%> (-0.62%)
:arrow_down:

frontend/lib/page/answer_page.dart
0.00% <0.00%> (ø)

frontend/lib/page/discussion_forum.dart
3.03% <0.00%> (-0.20%)
:arrow_down:

frontend/lib/page/home.dart
0.00% <0.00%> (ø)

frontend/lib/page/item_list.dart
0.00% <0.00%> (-0.43%)
:arrow_down:

frontend/lib/page/login_screen.dart
0.96% <0.00%> (-0.15%)
:arrow_down:

frontend/lib/page/order_history.dart
1.26% <0.00%> (-0.35%)
:arrow_down:

... and 2 more

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 55ef1d1...b2f7a5c. Read the comment docs.


Update pipeline op & event tests to follow new pattern

This has a few related changes:

Moved pipeline_test_fixtures.py into the pipeline folder and renamed.  Changed how these fixtures got included in tests.
Moved and renamed pipeline_test.py
Wrote helpers to make pipeline_ops_* and pipeline_events_* tests consistent.  Found a few bugs along the way.  Now, all tests for these data objects look like this:

DisableFeature - Instantiation
 [x] Accepts 1 positional arguments that get assigned to attributes of the same name: feature_name
 [x] Accepts the following keyword arguments that get assigned to attributes of the same name: feature_name, callback
 [x] Has the following default attributes: needs_connection=True, error=None, name='DisableFeature', callback=None

While doing ##3, I discovered that we were inconsistently mixing the names "rid" and "request_id", and this was causing confusion, especially when we had self.rid = request_id or self.request_id = rid.  I changed all variable names to be request_id.  The only time rid is used now is inside topic names (e.g. topics with $rid={request_id} in them)

[pipeline_ops_base.Connect, []],

Unclear what the second element of these lists represents/is used for. Perusing the way these lists are used, I can't seem to find a use of the second element.

Refers to: azure-iot-device/tests/common/pipeline/helpers.py:17 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

@pytest.mark.describe("PipelineStage run_ops_serial function")

This is not a function, it's a method
Given that it isn't anywhere in this PR, I'm assuming you aren't yet converting to the <classname> - .<methodname>() syntax yet?
Given that you have to structure tests a bit differently (different configs, lead to different behaviors), we should find some way to bring that into the standardized syntax.

I say leave the syntax alone (for now) until the standardized syntax is A) documented B) extended to support your needs

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:92 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

class TestPipelineStageRunOpsSerial(object):

Again, I thought this was an AbstractBaseClass though?

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:93 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

Some of these test directories had __init__.py files added - why?

[pipeline_ops_iothub.SetAuthProvider, [None]],

Again, unclear on what this second element of the lists is, and why it is needed

Refers to: azure-iot-device/tests/iothub/pipeline/helpers.py:9 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

When I was running tests under 2.7, it was failing to import modules from those directories and the empty init.py fixed that.

In reply to: 499969634 [](ancestors = 499969634)

@pytest.mark.it("Sets pipeline_root attribute to None on instantiation")

Still has stacked .its here

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:70 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

@pytest.mark.it("calls _run_op")

Is this a meaningful requirement?

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:78 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

class TestPipelineStageRunOpsSerial(object):

Yes, that's still on my queue of things to change.  Hold your horses, I'm getting to it eventaully.

In reply to: 499969222 [](ancestors = 499969222)

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:93 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

@pytest.mark.describe("PipelineStage run_ops_serial function")

Yes, all true.  I'm batching my UT changes and I haven't gotten here yet.

In reply to: 499969089 [](ancestors = 499969089)

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:92 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

@pytest.mark.it("Sets pipeline_root attribute to None on instantiation")

yes, I'm not fixing everything in this one commit.

In reply to: 499974622 [](ancestors = 499974622)

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:70 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

@pytest.mark.it("calls _run_op")

Good point.  Still haven't had a chance to refactor these tests yet.

In reply to: 499974709 [](ancestors = 499974709)

Refers to: azure-iot-device/tests/common/pipeline/test_pipeline_stages_base.py:78 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

[pipeline_ops_iothub.SetAuthProvider, [None]],

This is the args array for instantiation.  I've change my @pytest.param patterns since I wrote this and it will be more explicit once I get to revisit the rest of the pipeline tests.

In reply to: 499970266 [](ancestors = 499970266)

Refers to: azure-iot-device/tests/iothub/pipeline_test.py:9 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

[pipeline_ops_base.Connect, []],

It's an arg list for instantiation.  I will be revisiting this once I get to the stage tests.  We're not there yet.

In reply to: 499966551 [](ancestors = 499966551)

Refers to: azure-iot-device/tests/common/pipeline_test.py:17 in d50542c. [](commit_id = d50542c33800051ecfa8ba781a04f7dcba30867f, deletion_comment = False)

Hm, okay.

In reply to: 499973088 [](ancestors = 499973088,499969634)


Milestone 4 feedback

Sandra: Prototype 1: I'm not sure what the last screen is telling me or when it would be displayed to me.
Prototype 2: Would be nice to include Lyft Line and Uber Pool options since I usually use those options. Perhaps include a bus option if they are near me and I would wait < 5 minutes for them. Not sure what 44% savings means-- savings compared to an Uber I take from my current location? What does the "-" suggestion mean?
Prototype 3-1: Not a fan of having to open an external app (Google Maps) if it's avoidable.
Prototype 3-2: It's not clear where the alternate locations are on this prototype. Is it possible to get the data of knowing when the surge will die down?
Prototype 4 (1): What would the (i) button do? What kind of information would it show me?
Prototype 4 (2): Would be helpful to include street names. What is the radius of these hexagons? Are hexagons the most user-friendly way to display this information and does the data you get lend itself to being displayed in this grid-like format?
Yacoub: Prototype 1 doesn't show a preview of the better options, so it makes me wonder if there are any.
The layout of Prototype 2 is unclear.
Prototype 3-2 is very similar to 3-1, but the zone view is much more intuitive. Users might be upset to be sent to a specific point as opposed to a zone. Additionally, the filters don't seem like a value add. I imagine there aren't that many different price zones in your proximity that you need filters. You may as well just show the user all of their options.
Link to Prototype 4 does not work.
Ryan: (1) I can’t really tell what you click or what any of the menu options are. It seemed like other prototypes let you segment rides but I don’t see how to do that here
(2) Is this all one screen? Are the suggestions and map their own screens or are they combined? What platform is this? I can’t tell if I’m looking at web or mobile.
(3-1) I’m confused what functionality this adds on to Uber. It seems like your app lets you filter surge charges, but you would be able to see what the effective surge is if you were using Uber itself. It’s definitely not clear what value add this platform would have based on the prototype. Even the numbered steps seem to have me just call an Uber.
(3-2) So the value here is a bit more clear than any of the other prototypes, and I think I get what the app actually does from this – it seems like the idea is piecing together Uber rides to make an overall cheaper ride through multiple trips. Still, I believe that surge pricing is constantly changing and I’m not sure you can predict it this well. 5 minutes later all of the Ubers will have moved, and this will surely change the price. It also seems odd that across the apps, there isn't an agreement on how surge zones are divided – are you sure this works?
The 4th linked paper-prototypes has an expired URLs
Greg: 4) I think the UI lends to a desktop, however I think that the users who will want to min/max their Uber or Lyft prices will be on mobile devices. The hexagon format I do not think will lend to the actual distribution of prices across a city. The data itself should help define the spaces based on pricing.

Team 19; Team Pokeboops, K1
Peter:
I like the idea of being able to pick your preferences including between walking and services. I really like the last idea where it filters everything out before displaying your route. What I'm confused about is which service is displayed to / used by the users in this app. I'm also confused on whether it has to be a hexagon or it could be any shape that represents an area, but otherwise it is a wonderful idea.
Inkan:
I was confused on how the app can measure the prime time/surge in certain areas? Also must the user use Uber or Lyft or is public transportation an option to the users? How would showing the less crowded time different than Google Maps showing the fastest route? I think the fact this app is helping users avoid crowded areas to get to somewhere faster is a great idea though, it can be very helpful to users!
Austin:
I was confused by the overall interaction between strictly navigation (google maps, as mentioned) and services that physically get a user from point A to point B (Uber and Lyft). Is this application meant to just show the most cost-effective route (based on money, time, energy/willingness, etc.) or does it further order them and actually help the user get there? I like the consolidated graphics (hexagons to represent prices, sliders to visualize trends) in the map interface, since there is a lot of information that has the possibility of cluttering the screen and overwhelming the user.
Andrew:
I was confused by the UI a bit. If I'm understanding it correctly, this is for users that are debating on whether to wait for a ride or walk to a particular destination or waiting for a better time to fetch a ride? I think this is a super cool idea though. I wonder if an non-UBER/Lyft service could be noted too like if a friend were to drive over, or if they had a DD that could drive them.