topMargin is abnormal

1.version:
androidx.constraintlayout:constraintlayout:2.1.3
2.Under these conditions：
view_black is constrainted to view_red (toToTop, bottomToBottom)
height of view_red height is 100dp now
height of view_black height is 200dp now
3.when i set height of view_black to 100dp or 50dp (<=view_red' height), view_black shows correctly, as i want

4.but when i set height of view_black to 101dp (> view_red' height), something amazing happened, view_black just disappears!!!

when i use constraintlayout:2.0.2, It's not going to happen, Is this a new feature or a bug?
This caused problems with some of my code that had previously worked well online, Looking forward to a reply🙏🙏

bottomMargin has the same problem😢

I am not able to reproduce the effect.
What am I missing ?
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#FFF">

    <View
        android:id="@+id/view_red"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:background="#F00"
        android:alpha="0.5"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.5" />

    <View
        android:id="@+id/view_black"
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:layout_marginTop="50dp"
        android:background="#000"
        android:alpha="0.5"
        app:layout_constraintBottom_toBottomOf="@+id/view_red"
        app:layout_constraintTop_toTopOf="@+id/view_red" />
</androidx.constraintlayout.widget.ConstraintLayout>

I am not able to reproduce the effect. What am I missing ?
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#FFF">

    <View
        android:id="@+id/view_red"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:background="#F00"
        android:alpha="0.5"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.5" />

    <View
        android:id="@+id/view_black"
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:layout_marginTop="50dp"
        android:background="#000"
        android:alpha="0.5"
        app:layout_constraintBottom_toBottomOf="@+id/view_red"
        app:layout_constraintTop_toTopOf="@+id/view_red" />
</androidx.constraintlayout.widget.ConstraintLayout>

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#FFF">

    <View
        android:id="@+id/view_red"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:background="#F00"
        android:alpha="0.5"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.5" />

    <View
        android:id="@+id/view_black"
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:layout_marginTop="122dp"
        android:background="#000"
        android:alpha="0.5"
        app:layout_constraintBottom_toBottomOf="@+id/view_red"
        app:layout_constraintTop_toTopOf="@+id/view_red" />
</androidx.constraintlayout.widget.ConstraintLayout>

Oh, thank you for your reply👍，here's what happens if I use the same code as you，view_black just disappears

**By the way, I'm using constraintlayout:2.1.3. What's your version?**👀

I was able to reproduce it. It is an oddly unstable condition.
Now that I was able to play with it.
I understand what happens.
When you cannot connect the top to an anchor below the bottom.  (It was remove in 2.0->2.1 transition)
When you add a margin to top it is effectively lowering what it is connected to.
at layout_topMargin=100 you are connecting top and bottom to the same point.
at  101 they cross. top is connected to a point below bottom.
Connecting top to the top of a widget with a margin big enough to push it below the widget and connecting to the bottom a very unusual pattern (first we encountered)
In general we will not be supporting this use case / fixing this issue. We will consider it in the next major rewrite of the solver.

solver

Oh, thanks😀, we had a few similar cases with our released app. After I upgraded the version, the problem started to appear, but fortunately only a small amount of business was affected.
So I'll have to manually adjust the layout to fix the problem first. Finally, Looking forward to your repair😉

You might not know but we support negative margins now.
Which might come in handy for you. layout_bottomMargin="-100dp"

You might not know but we support negative margins now. Which might come in handy for you. layout_bottomMargin="-100dp"

This is a good solution👍


Create issue and PR templates.

Ideally we'd have issue templates which encourage inclusion of specific information in issues and Pull Requests. To me this is part of maturing the project and making sure we're more consistent in our processes.

Done!


Remove full URL from *_metadata_tarball.json

I think having the URL in the tarball presents an encapsulation issue. If the store ever moves (as a whole), the metadata would become invalid and needs an update. I propose to turn
{
  "size": 792207360,
  "md5": "985e680a221e47db05063a12b91d7d89",
  "path": "icf/P000624_dicom.tar",
  "url": "https://data.inm-icf.de/dl-Z03/P000624_dicom.tar"
}

into something lilke
{
  "size": 792207360,
  "md5": "985e680a221e47db05063a12b91d7d89",
  "dspath": "icf/P000624_dicom.tar",
  "storepath": "dl-Z03/P000624_dicom.tar"
}

The full URL can be generated by completing it with the base URL of the day when generating a catalog or a dataset.
Ping @jsheunis

makes sense to me. I'll do a quick PR.


Write documentation for creating themes

Zeppelin's README.MD as a reference.

It's the same as Zeppelin. But I'll work on it after the GIF support.

Done.


[confused] formula to make calculate the width of a text box

Hi all :) I am trying to calculate the width of a text box so I can animate a second text box next to the first one, leaving enough space for what ever content is put in the first. How should I go about doing this?
this is what I have so far but its not working. The text just disappears with no errors in the console:
text2.x = text1.textWidth + 500;

text2.x = text1.width + 500;

Thank you!

Is there a way to add this with y position in one line? Thanks!

text1b.position.set((text1a.width + 520), 0)
never mind :)


Updated README.md

Description:
Added more badges to README.md file (stars, forks, issues, and license badge)
Tests:"
Tests have been run to ensure code does not interfere with code.
Code is up to date with master branch.

Thanks for the PR! We typically only accept PR's for existing issues that have been accepted by the team via either the bug or help-wanted labels. We are not looking to add more badges to the readme at this time (there's already a lot), so I'm going to close this out.


Elevation ruler integration

The module doesn't work with the Elevation ruler module enabled.
Maybe it's because the Elevation ruler adds a second row of distance on its own (the second row shows the elevation of the token).
In fact, where there's no elevation involved (like in the AoO templates) the Metric ruler labels module works flawlessly despite the Elevation ruler.

Heyho.... Never used elevation ruler personally. Will take a look maybe on the weekend if I have some time :)

Thank you for your time.

Hmmm seems to work for me.... can you give me a screenshot?

Hi there.
I'm attaching three images: one with an AoE template (that shows the metric), one with a ruler measurement (that shows the metric as well), and the last one with a token mevement (which doesn't show it in metrics).

Thanks again for your time and effort.

Ahhh ok... Then it's the dragruler ... You have dragruler installed, right?

Sorry for the late reply.
Yes, I have Dragruler installed.

Should be fixed on 3.1.5 :)
I will add a conversion for the elevation itself to my future feature list :)  But the normal distance conversions should be displayed again.

It works perfectly!
Thank you again!


Proposal: TryMyUI review period

What is the problem you are seeing? Please describe.
Occasionally bugs in the Blockstack browser will block a user from successfully logging in to an app, or cause friction for that user. That user may give the app a decreased score on TryMyUI.
How is this problem misaligned with goals of app mining?
Apps may have lower scores than they should otherwise.
What is the explicit recommendation you’re looking to propose?
We already have a review and audit period for the scores/ranking. Can we extend this review period to the videos? And app developers can flag issues if they spot any?
** Describe your long term considerations in proposing this change. Please include the ways you can predict this recommendation could go wrong and possible ways mitigate.**
One clear issue: Apps can spuriously claim a bug when in-fact they just have low scores. Or they might claim a bug and then it takes days of investigation to track down exactly what happened. This will lead to delays in the overall App Mining payout timeline.
Additional context
I'm suggesting this change at the request of @jehunter5811

@trotolo can you please share thoughts?

Assigning @hstove simply because you ultimately kick off review period.

Sounds like next step here is a chat with Tim.

It will also be helpful to have some documentation around how trymyui scores are processed from raw score. Right now it is just mentioned that highest and lowest are excluded to help with the variance.


Title bar gets smaller (becomes compact) when navigating from an extended view controller to a non-extended view controller and coming back.

Here’s a visualization of the problem to supply you with further guidance.
Note: the type of navigation bar is still the large one, you can scroll up to see the big title, but you come back to the view seeing the navigation bar compacted down, as if it scrolled down a bit, artificially.
https://user-images.githubusercontent.com/17903236/106367297-2a19dd80-634a-11eb-8426-a45b01f1c29c.MP4

Turns out my constraints were wrong.


Uncaught (in promise) Error: Bad state: Cannot fire new event. Controller is already firing an event

Hello, have you already faced this exception ?
I checked your example within a cubit (as singleton) and extras to release webcam.
Describe the bug
Uncaught (in promise) Error: Bad state: Cannot fire new event. Controller is already firing an event
To Reproduce
Steps to reproduce the behavior:

Make a first call (video stream in my case)
Close
Make a new call
exception is thrown

Best regards,

Hello, i'm aware of this issue and will make new release that fixes this issue. As for now when closing a call it basically destroys the instance which throws a error later on. Quick workaround for this is creating new instance on destroy.


fix(api): create TLS object on app create

This PR creates a TLS object when an application is created, fixing the issue where a server error is shown after deis tls:info is called after deis create.
closes #1042

With this fix:
><> deis create www --no-remote
Creating Application... done, created www
If you want to add a git remote for this app later, use `deis git:remote -a www`
><> deis tls -a www
=== www TLS
HTTPS Enforced: not set


still does not compile correctly in linux

src/Fade02.cpp: In constructor ‘Fade02Bank::Fade02Bank()’:
src/Fade02.cpp:76:21: error: no matching function for call to ‘rack::Module::Module(Fade02::ParamIds, int, int, Fade02::LightIds)’
Fade02::NUM_LIGHTS)
^
In file included from ../../include/rack.hpp:6:0,
from src/Gratrix.hpp:10,
from src/Fade02.cpp:1:
../../include/engine.hpp:43:2: note: candidate: rack::Module::Module(int, int, int)
Module(int numParams, int numInputs, int numOutputs) {
^~~~~~
../../include/engine.hpp:43:2: note:   candidate expects 3 arguments, 4 provided
../../include/engine.hpp:41:2: note: candidate: rack::Module::Module()
Module() {}
^~~~~~
../../include/engine.hpp:41:2: note:   candidate expects 0 arguments, 4 provided
../../include/engine.hpp:33:8: note: candidate: rack::Module::Module(const rack::Module&)
struct Module {
^~~~~~
../../include/engine.hpp:33:8: note:   candidate expects 1 argument, 4 provided
src/Fade02.cpp:78:3: error: ‘lights’ was not declared in this scope
lights[Fade02::IN1AP_LIGHT].value = -1.0f;
^~~~~~
src/Fade02.cpp:78:3: note: suggested alternative: ‘glLighti’
lights[Fade02::IN1AP_LIGHT].value = -1.0f;
^~~~~~
glLighti
src/Fade02.cpp: In member function ‘virtual void Fade02Bank::step()’:
src/Fade02.cpp:115:3: error: ‘lights’ was not declared in this scope
lights[Fade02::OUT1AP_LIGHT].value = 2.0f * blendAB - 1.0f;
^~~~~~
src/Fade02.cpp:115:3: note: suggested alternative: ‘glLighti’
lights[Fade02::OUT1AP_LIGHT].value = 2.0f * blendAB - 1.0f;
^~~~~~
glLighti
src/Fade02.cpp: In constructor ‘Fade_G2_Widget::Fade_G2_Widget()’:
src/Fade02.cpp:190:13: error: ‘createLight’ was not declared in this scope
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46-rad_led()), module, i++));
^~~~~~~~~~~
src/Fade02.cpp:190:13: note: suggested alternative: ‘GreenRedLight’
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46-rad_led()), module, i++));
^~~~~~~~~~~
GreenRedLight
In file included from src/Fade02.cpp:1:0:
src/Gratrix.hpp:13:23: error: ‘RedLight’ was not declared in this scope
#define GreenRedLight RedLight
^
src/Fade02.cpp:190:36: note: in expansion of macro ‘GreenRedLight’
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46-rad_led()), module, i++));
^~~~~~~~~~~~~
src/Gratrix.hpp:13:23: note: suggested alternative: ‘glLighti’
#define GreenRedLight RedLight
^
src/Fade02.cpp:190:36: note: in expansion of macro ‘GreenRedLight’
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46-rad_led()), module, i++));
^~~~~~~~~~~~~
src/Gratrix.hpp:13:23: error: template argument 1 is invalid
#define GreenRedLight RedLight
^
src/Fade02.cpp:190:36: note: in expansion of macro ‘GreenRedLight’
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46-rad_led()), module, i++));
^~~~~~~~~~~~~
src/Fade02.cpp:190:110: warning: right operand of comma operator has no effect [-Wunused-value]
GreenRedLight>>(led(gx(x)+rad_led()/2+28, gy(y+1)-46-rad_led()), module, i++));
^~
In file included from src/Fade02.cpp:1:0:
src/Gratrix.hpp:13:23: error: type/value mismatch at argument 1 in template parameter list for ‘template struct rack::SmallLight’
#define GreenRedLight RedLight
^
src/Fade02.cpp:191:36: note: in expansion of macro ‘GreenRedLight’
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46+rad_led()), module, i++));
^~~~~~~~~~~~~
src/Gratrix.hpp:13:23: note:   expected a type, got ‘RedLight’
#define GreenRedLight RedLight
^
src/Fade02.cpp:191:36: note: in expansion of macro ‘GreenRedLight’
addChild(createLight<SmallLight>(led(gx(x)+rad_led()/2+28, gy(y+1)-46+rad_led()), module, i++));
^~~~~~~~~~~~~
src/Fade02.cpp:191:110: warning: right operand of comma operator has no effect [-Wunused-value]
GreenRedLight>>(led(gx(x)+rad_led()/2+28, gy(y+1)-46+rad_led()), module, i++));
^~
make: *** [../../compile.mk:55: build/src/Fade02.cpp.o] Error 1

The first error is because I'm using the dev version of rack which has a different api to 0.4. See https://github.com/VCVRack/Rack/issues/258#issuecomment-339675761


Fix Issue 1142 - .stringof performs semantic analysis

@thewilsonator @wilzbach does the tag "72h no objection -> merge" automatically merge, or there's still a need for a human to push the button?

@andralex no, it doesn't merge automatically. Only the auto-merge{-squash|-rebase} labels do.


fixed SeqCst error (#15) and updated to 0.2.4

rustbox now builds with latest rust nightly.

Great, thank you!

Just published 0.2.4 to the cargo registry.

@gchp : Thanks... I was doing this to fix the iota build, but I see that you did it already... :+1

Beat you to it :smile: Let me know if you find other issues!


Does it work on android and ios?

Your api is very good, but I would like it to work on android and ios, to make mobile applications.

It's designed to work with MySQL so no.
On Fri, 20 May 2022, 10:49 pm lpemeg, @.***> wrote:

Your api is very good, but I would like it to work on android and ios, to
make mobile applications.
—
Reply to this email directly, view it on GitHub
https://github.com/bsutton/simple_mysql_orm/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAG32OC2H4RYSI2LTXACRF3VK6C3ZANCNFSM5WPLV3NQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Table shows horizontal scrollbar since v6.0.0-beta-5

Bug, feature request, or proposal:
After updating to version 6.0.0-beta-5 our tables started to show horizontal scrollbar.
It is either bug or undocumented behavior - I looked into changelog and it mentions table only here:

table: move padding from rows to cells (#10499) (e0321db)

If there are any other changes in tables, please note them in changelog.
What is the expected behavior?
There shouldn't be horizontal scrollbar.
Old version - without scrollbar

New version - with scrollbar

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Any version since 6.0.0-beta-5

Looking at the screenshot, this doesn't look like a scrollbar in the table but actually within the tabs. Please provide a stackblitz of your markup in order to reproduce the problem and see what is actually going wrong.

Would love to help; please re-open with a reproducible example on stackblitz so we can investigate a solution

Two points which should fix your problem:

Your headers combined should not be more than 100% (they are right now)
You did not allow your flex boxes to shrink, which is a problem now, as first and last cell have paddings.
Use something like this to allow shrinking for your headers flex: 0 1 14%; instead of flex: 0 0 14%;


Rename tutorial chatper "Termination" to "Chat Termination"

Why are these changes needed?

Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

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

Project coverage is 4.27%. Comparing base (11df53b) to head (13424a7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #1962       +/-   ##
==========================================
- Coverage   37.39%   4.27%   -33.13%
==========================================
  Files          64      62        -2
  Lines        6913    6904        -9
  Branches     1518    1518
==========================================
- Hits         2585     295     -2290
- Misses       4106    6600     +2494
+ Partials      222       9      -213

Flag
Coverage Δ

unittests
4.27% <ø> (-33.13%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Fundamental incompatibility with ints, UINT64 and where they are used

Description
In order to detect the end of an Epoch, I had to write this code:
long epoch_length = Integer.toUnsignedLong(Constants.EPOCH_LENGTH);
long zero = Integer.toUnsignedLong(0);
UINT64 slot = state.getSlot();
if( slot.modulo(epoch_length).equals(UInt64.valueOf(zero)) ){
     System.out.println("New Epoch")
      epochProcessor(state);
}

This is just a simple example.  Our Constatnts.java are ints, which need to perform a modulus on UINT64s, and our helper functions in BeaconState.java all expect ints. The state transition logic cannot be completed without a fix here.
Acceptance Criteria

Would it help to make the constants types that compatible with UINT64 operations?
add more helper functions to UINT64?

Pantheon seems to use long for BlockNumber....


Information request: How to connect to the database

Hello,
I have created a database with external access = false.
Please kindly let me know how I can access it.
k get db -A
NAMESPACE   NAME        SIZE   READY   STATUS   HOSTNAME                    AGE
everest     sajeevadb   2      2       ready    sajeevadb-haproxy.everest   16m

k get services -n everest

NAME                              TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)                                 AGE
percona-xtradb-cluster-operator   ClusterIP   <IP_ADDRESS>    <none>        443/TCP                                 31m
sajeevadb-haproxy                 ClusterIP   <IP_ADDRESS>   <none>        3306/TCP,3309/TCP,33062/TCP,33060/TCP   15m
sajeevadb-haproxy-replicas        ClusterIP   <IP_ADDRESS>   <none>        3306/TCP                                15m
sajeevadb-pxc                     ClusterIP   None           <none>        3306/TCP,33062/TCP,33060/TCP            15m
sajeevadb-pxc-unready             ClusterIP   None           <none>        3306/TCP,33062/TCP,33060/TCP            15m

Hi @nvsajeeva, since you didn't enable external access, the provisioned DB is only accessible by clients living inside your k8s cluster.
Gathering connection info
In order to connect to it you'll need 2 things:

hostname or IP address
root user's password

You can easily get both of these from the UI but if you want to do it through the shell here's how:

kubectl get db <YourDBName> -n <YourDBNamespace> -o jsonpath='{.status.hostname}' But you already found this out, it's sajeevadb-haproxy.everest(<IP_ADDRESS>).
kubectl get secret everest-secrets-<YourDBName> -n <YourDBNamespace> -o go-template='{{.data.root|base64decode}}'

Connecting
For testing purposes, you can run a container with mysql tool and connect its console output to your terminal. In a real scenario, you'd configure your application instead. Here's how to test it:

Run the client application, naming it percona-client:

kubectl run -n everest -i --rm --tty percona-client --image=percona:8.0 --restart=Never -- bash -il

Executing it may require some time to deploy the corresponding Pod.

Now run the mysql tool in the percona-client command shell using the password obtained from the Secret instead of the  placeholder.

mysql -h <YourDBHostname> -uroot -p'<RootPassword>'


implement Multiagent Debate

Feature request
Improving Factuality and Reasoning in Language
Models through Multiagent Debate - looks very promising
Motivation
This method is orthogonal to other methods like CoT. It looks like, this method is beneficial almost in any case when we need the highest quality answer.
Your contribution
I can help with testing. Not sure about quick implementation.

@rick2047 Hi, any news on the PR?


Incorrect Text config values after creation

Description of bug / unexpected behavior

When you create a Text object, the settings are incorrect.
Expected behavior

The values to be the same as I passed in the constructor.
The results in the animation are correct. The Text gets created with the correct color, for example. What seems to be happening is that these properties are lost after the vectors are created.
How to reproduce the issue

Code for reproducing the problem
t = Text('abc', color=RED)
print(t.color) # <Color black>
print(t.fill_color) # <Color black>
print(t.stroke_color) # <Color black>

Additional media files

Images/GIFs

Logs
Terminal output

PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications
System Details

OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Arch Linux
RAM: 16GB
Python version (python/py/python3 --version): 3.11.5
Installed modules (provide output from pip list):

Package             Version
------------------- ---------
certifi             2023.7.22
charset-normalizer  3.2.0
click               8.1.7
click-default-group 1.2.4
cloup               0.13.1
colour              0.1.5
decorator           5.1.1
glcontext           2.4.0
idna                3.4
isosurfaces         0.1.0
manim               0.17.3
ManimPango          0.4.3
mapbox-earcut       1.0.1
markdown-it-py      3.0.0
mdurl               0.1.2
moderngl            5.8.2
moderngl-window     2.4.4
multipledispatch    1.0.0
networkx            2.8.8
numpy               1.25.2
Pillow              9.5.0
pip                 23.2.1
pycairo             1.24.0
pydub               0.25.1
pyglet              2.0.9
Pygments            2.16.1
pyrr                0.10.3
requests            2.31.0
rich                13.5.2
scipy               1.11.2
screeninfo          0.8.1
setuptools          65.5.0
skia-pathops        0.7.4
srt                 3.5.3
svgelements         1.9.6
tqdm                4.66.1
urllib3             2.0.4
watchdog            2.3.1

LaTeX details

LaTeX distribution (e.g. TeX Live 2020):
Installed LaTeX packages:

FFMPEG
Output of ffmpeg -version:
PASTE HERE

Additional comments

What I'm trying to achieve is Text transformation, i.e. creating some text with some properties, then transforming it into another one with the same properties.
I need to use this type of animation a lot in my project so I needed something to help me write less boilerplate.
So what I did was, create a TransformText function that takes a Text object and a string.
def TransformText(t: Text, text: str):
    new_text = Text(text, color=t.color) # and other properties like font_size for example
    return Transform(t, new_text)

However, all the properties have incorrect values, not the ones provided when the original Text was created.
I also would appreciate if someone has a better workflow for transforming text like this.

Not quite sure what the issue is, because if i run the code i get a red text

Now I finally understand what you actually want, your wording was a bit confusing.
There is a function called match_style which is probably what you want.
So you would just create your new text and match the style of the old text. @felipefcm


Unable to get Ring Retrofit device working properly

Hi
Is this something you can help me with?
Can't get it to work.
https://products.z-wavealliance.org/products/3696?selectedFrequencyId=-1

Please make a driver log, loglevel debug and attach it here as a file (drag & drop into the text field).
While that log is running, re-interview the device. Based on what you posted in the other issue, I suspect we may either not need the association definitions in the config file or we'll have to extend them.

I will get the logs soon. In the mean time:
It looks like there is a problem with the multi association thingy. (I am totally new to this)
I can get notifications when cover is removed. When zone 1 changes state I get the "Intrusion Notification" and that's it.
Changes in state of of zones 2 through 8 do not give me notifications.
This is my notification table.

This is my group table

Another fellow reports this:
https://community.home-assistant.io/t/ring-retrofit-hardwire-kit/430619
His group table looks like this:

But I can't add other endpoints.

Is this one that you need?
zwavejs_current.log

Ok I think I know what the problem is. The driver attempts to communicate with the endpoints without S2-encryption and gets no response for its queries. I'll have to figure out why it does that.

Unfortunately, It didn't work.
I still cannot change endpoints 1-8 associations.

zwave-js-ui: 8.8.0
zwave-js: 10.4.0

Device in question is Node 35
zwavejs_current (2).log

https://support.ring.com/hc/en-us/articles/360038043371-Retrofit-Alarm-Kit-Z-Wave-Technical-Manual-
Manual says:
Association
This sensor has two Association groups with only one node for each group. Group one is a lifeline group who will receive unsolicited messages relating to case tamper notifications, battery level notifications, Wake-Up notifications, and Device Reset Notifications. Group two is intended to be used with multi-channel association for a controller to subscribe to contact switch open/close notifications sent encapsulated from each of the eight endpoints one for each contact switch. Each endpoint must be enabled by putting the controller’s node ID into the device’s Association Group 2 with either an Association Set encapsulated with Multi-Channel Encapsulation OR a Multi-Channel Association Set encapsulated with Multi-Channel Encapsulation.

hmm doesn't look like the fix did what it was supposed to.

Does it matter that the device is showing
Only S2 Authenticated
instead of S2 Authenticated, S2 Unauthenticated
as Security classes?

Hope that helps
Here is the thing. I added the device using the "Z-Wave PC Controller" from SiliconLabs.
It seems that I got the correct associations showing in the controller. It shows a lot more items than when I added with ZwaveJS.

This is when it is added with zwaveJS

But then if I connect the stick to zwavejs, the node is interviewed again and there are no options for the other endpoints.
I have no idea how that works but isn't just a matter of reading the node info already included?

I know what the issue is, I don't yet know why it happens. Unfortunately, my working hours are pretty limited atm. Give me a bit of time to reproduce and solve it.

Ok. Just wanted you to have as much info as possible.


Workbench does not support setting the empty prefix

Inside the Workbench, binding the empty prefix to a namespace causes the definition of a prefix named "namespaces".
This behavior may be determined by a bug in the server-side implementation the REST API for setting the namespace for prefixes
To set the empty prefix, the relevant URL has this form: http://....../rdf4j-server/repositories/mem-rdf/namespaces/
(Note that this URL differs from the one for bulk operations on namespaces, which does not end with a trailing slash)
The buggy behavior may be determined by the following piece of code:
https://github.com/eclipse/rdf4j/blob/releases/2.0.x/core/http/server-spring/src/main/java/org/eclipse/rdf4j/http/server/repository/namespaces/NamespaceController.java#L54
String pathInfoStr = request.getPathInfo();
String[] pathInfo = pathInfoStr.substring(1).split("/");
String prefix = pathInfo[pathInfo.length - 1];

Based on the documentation of String.split(String),  in case of a path such as ".../mem-rdf/namespaces/", the last element in the array would be "namespaces" (because trailing empty strings are ignored)

Hi @jeenbroekstra, I've noticed that you assigned this issue to yourself. In fact, I've developed a solution to this issue together with an associated test. However, I didn't make a PR because of the issue #280, which prevents me from compiling the whole project, and thus execute all the tests.
If you haven't already solved this issue by yourself, I could make a pull request by tomorrow.

@manuelfiorelli ok that'd be great, saves me some time :)
I'll have a quick look at #280 as well to see if I can disable it for the time being.

Hi @jeenbroekstra I've pushed my proposed solution to a dedicated branch in my fork of the rdf4j project.
I can compile the whole project (after disabling the tests), and then the relevant tests for the issue pass.
(Also, I've manually checked that now the workbench works)
Do you think that this is enough to make a PR?

Sounds good to me - just put it up and we can take a look.

I've created the PR #285

Marking this as resolved. Can be reopened if you do decide to tweak the csv parsing.


List of supported assemblies

Hi,
while mostly the same, there are a few differences between the supported assemblies listed on https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/database-objects/supported-net-framework-libraries?view=sql-server-ver15#supported-libraries and here. (e.g. System.Xml.Linq.dll). What is the right set? Is this SQL Server-version dependent?
Best regards

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

ID: c06ceefc-d551-9564-a753-c4148150f5d0
Version Independent ID: bb433cbe-c273-d066-482c-2d6423003586
Content: Designing Assemblies - SQL Server
Content Source: docs/relational-databases/clr-integration/assemblies-designing.md
Product: sql
Technology: clr
GitHub Login: @rothja
Microsoft Alias: jroth

@TheConstructor -- Matthias, thank you for your questions.
@rothja -- Jason, please look into this issue.

@TheConstructor Thanks for the question. So, what version of SQL Server are you using right now? 2019? And you're wondering if this list gets changed as new versions are released or as the framework is updated?

@rothja yes I am on 2019 and I saw that the lists in https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/database-objects/supported-net-framework-libraries?view=sql-server-ver15#supported-libraries and https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/assemblies-designing?view=sql-server-ver15#restrictions-on-assemblies differ. So I really have two questions:

Why do the two lists differ?
What is "the list" for 2019?

Thanks for looking into this!

Hello @TheConstructor (and @rothja ). The list found on the Supported .NET Framework Libraries page is correct. The Assemblies - Designing page (the one that you created the issue on) is missing 3 libraries, and I believe this is due to timing and the sheer volume of documentation that exists (i.e. who knows which pages to update when things change when info is duplicated in multiple places?). The missing libraries are:

System.Deployment
This was added in SP1 for SQL Server 2005 as noted in this blog post by Bob Beauchemin:
New “SQLCLR-approved” assembly in SP1
System.Core and System.Xml.Linq
These were added in SQL Server 2008.

So, as far as I'm aware, the list has not changed between SQL Server 2008 and SQL Server 2019 (current). Hence, that is the list unless you are using SQL Server 2005, in which case you wouldn't have System.Core and System.Xml.Linq.
For more info, please see the following article that I wrote:
Stairway to SQLCLR Level 5: Development (Using .NET within SQL Server)
While that article only covers up through SQL Server 2014, the only change since then is the (rather unfortunate) addition of the "CLR strict security" server-level configuration option. You can read about that here:
SQLCLR vs. SQL Server 2017, Part 1: “CLR strict security” – The Problem
Take care,
Solomon...
https://SqlQuantumLift.com/
https://SqlQuantumLeap.com/
https://SQLsharp.com/

@TheConstructor and @rothja : please see PR #4638 . I fixed both pages. And, to help prevent the lists from getting out of sync again in the future, I added an HTML comment below the "Supported Libraries" list (on the "Supported .NET Framework Libraries" page that was being updated) indicating the other page containing the same list (i.e. the "Designing Assemblies" page that hasn't been updated since SQL Server 2005 went RTM) so that hopefully it will be easier to maintain consistency across future updates.

@TheConstructor I have merged @srutzky 's changes in his PR, and we should see the list updated soon. @srutzky your help here is much appreciated and the comment in the article for the future is a great idea. Thank you!!


Add cpb-aacip-81-2908ksv8 to FixITPlus

Can we please add this record (GUID is cpb-aacip-81-2908ksv8)? I've already added the organization and transcript status annotations so it should be good on that front! Thanks!

Done already


[Bug] Minor - podkrepi.bg/support checkbox validation under "Включете се в организацията като" and the sequential pages appears before the "Напред" button is used

Describe the bug
When I check and then uncheck a checkbox  from mandatory group, a validation message "Моля, изберете си роля" appears
To Reproduce
Steps to reproduce the behavior:

Go to podkrepi.bg/support
Click on "Дарител" checkbox
Then uncheck the same checkbox
Validation error appears  before the "Напред" button is used

Expected behavior
I expect the validation is triggered after "Напред" button is used. This bug was observed all over the sequential pages
Screenshots

Desktop (please complete the following information):
OS: Windows 10
Browser Edge
Version Version 98.0.1108.50 (Official build) (64-bit)
Additional context
Please double check that the behavior is not by design with front end expert before fixing

This behavior is by design, validation is triggered on touch of the checkbox fields or on Next page button


Display campaigns to signup for on the onboarding experience

FEATURE OVERVIEW
User Story
As a user on the first screen of onboarding I can sign up for other campaigns
Additional Information (optional)
Use solr to grab the campaigns

display open, published, staff pick campaigns
boost by field_active_hours (smallest values first)
boost if has a partner that is a sponsor

Do not display campaigns that user has already signed up for

Update: we're debating on whether to boost by field_active_hours before/after boosting by sponsor. Will keep you posted.

@jessleenyc feel free to edit the issue description once the decision has been made!

I wanted to provide an alternative approach that could help save some time, at least for a v1 rollout.
Would we be able to gather info on user's signups from Drupal and add it to the Drupal.settings.dsUser.activity object, so it's available for us in React.
Instead of using Solr (which I've heard can be rather complicated, but I don't know offhand other than some of the stuff I worked with during the campaign finder), and having to process that data in a fashion that is ready for use in JavaScript easily, we use the /campaigns endpoint instead, which responds with a ready to use JSON response, that is fully formatted and ready to use for JS.
I understand that it will not be nearly as smart as a Solr search, but we could grab all staff pick campaigns and then filter out the ones that match IDs from the signups the user already has (which would be found in Drupal.settings.dsUser.activity).
Just a suggestion, but could make things easier, particularly for a v1 build.
Thoughts?

we could also sort the results locally if field_active_hours and sponsor are in the API response

yeah... field_active_hours was renamed to time_commitment cause the term "active hours" made no sense to me. And sponsor info is in the affiliates object :)

Let's sort by: staff pick -> sponsored -> time

@jessleenyc can you update the order in the issue?

Updated ^

some useful links
https://gist.github.com/deadlybutter/c3577c9690e6af93297306bc66d6a072
https://gist.github.com/mankyKitty/5905740

@deadlybutter When ready, please send over the list of campaigns (in the order they're displayed) based on the logic we're using. Want to confirm it's pulling the right ones.

@jessleenyc this won't be the same list from staging/production

@angaither got it -- as long as we have the feature flag -- we can test in staging without worrying the feature gets deployed into production the next day, right?

@jessleenyc yes, that's the idea. however if we launch the second screen, and then merge this, we either need to write new logic to turn just this part off, or fully test this before deploying

@angaither assuming there are no major bugs, we can test in one day on thor if we merge early. but if there's a big bug, would we be able to rollback to get more time to test the next day?

@jessleenyc yeah, though rolling back should only be used in extreme cases

sorry want to make sure im following this right -- we want to be able to merge code related to the feature card / campaign signup without showing it to users?
easy! the array in onboarding.js just needs to be changed from const slides = [ContextSlide, InstructionSlide]; to const slides = [InstructionSlide];
as for the API call, I can give you the production list since thats the only one which really matters

@angaither the 'staff pick' checkbox is not a good indicator of which campaigns are staff picked because the campaigns team uses it to toggle the 'staff pick' label. We generally have all staff picks + more campaigns on the home page. Since we don't want an overwhelming number of 'staff pick' labels on the homepage, certain staff pick campaigns are not marked in drupal.
Are we able to 1) change the way the labeling works or 2) create an additional checkmark box that's used for our actual staff pick campaigns for us to pull into the suggested campaigns?

@jessleenyc I'm more interested in changing the way the label works.
Is it something we only want if there's a partner who is also sponsor?


Finish basic functionality.

[ ] Add functionality from older (unreleased) app:

[ ] App "pre-process" folders in selected directory;

[ ] Check for folders with 8 images;
[ ] Rename images so they start with numbers from 1 to 8.

[ ] Join images in folder with 8 images into a "template";
[ ] Upload the "edited template";
[ ] Automatically update labels as iterates through folders.

[ ] Update menu bar:

[x] Remove the first "test" button;
[ ] Add background removing options for using other networks;
[x] Add "placeholder" settings button (as per #3);
[ ] Think of other placeholder menu bar buttons.

Worked on menu bar in 59511acf5a42cca07b98ffb01295fd27e1ff9faf

Added different background removing options with more networks in cfd535e258d6931035d381b2f3740092ec7dfa2d

Menu bar removed as per 080ce7cc6bf7f1e102105b95536d28b4305a7ba3. So I removed tasks related to it.


Block move channels commands if one is currently in progress

If two people type the move channels command at once, it will run twice and potentially cause issues. Risks are that it will end up unintentionally skipping moving some people, or that it'll end up moving multiple people at the same time (one from each running instance of the command) which will reintroduce the issue where people in voice channels can't hear each other.
This may be handled by the singleton now but that runs the risk of threading/async issues, and the singleton pattern is suboptimal design anyway. Use some sort of lock to handle this instead.

Blocked by #37

Left 4 Dead games are dead, so won't fix.


Regenerate bootstrap protos with previous version of protoc_plugin

As protoc_plugin is not null-safe yet, I cannot publish it to pub with
mixed sources, so downgrading bootstrap protos until protoc_plugin is
migrated to null safety

LGTM
Another option would have been to add a
// @dart=2.11

language marker in all protoc_plugin's own files and up the sdk constraint in protoc_plugin/pubspec.yaml.


Training with different image size

Hi,
I have followed the tutorial to train on my own dataset, getting quite good masks. I wanted them though to be better, and tried to train on larger image size (2560x2048) as i want the final masks to be predicted in this size and I I thought that training with the final image size could help getting the final mask better. I changed the config option INPUT: MAX_SIZE_TRAIN: 2560 MIN_SIZE_TRAIN: 2048 MAX_SIZE_TEST: 2560 MIN_SIZE_TEST: 2048 and redone my dataset, training seemed fine but when doing inference the results are really bad, getting just few of the masks expected with really low confidence threshold. Should i change more parameters on the config file? Is there any problem on custom layer's dimension?
I attach the training config file used. Number of classes on my dataset is 3.
Thanks a lot for you're help!
2019-05-24 14:24:05,621 maskrcnn_benchmark INFO: Using 2 GPUs
2019-05-24 14:24:05,621 maskrcnn_benchmark INFO: Namespace(config_file='/shared/configs/e2e_ms_rcnn_R_50_FPN_1x_from_scratch_HQ_images.yaml', distributed=True, local_rank=0, opts=[], skip_test=False)
2019-05-24 14:24:05,621 maskrcnn_benchmark INFO: Collecting env info (might take some time)
2019-05-24 14:24:07,236 maskrcnn_benchmark INFO:
PyTorch version: 1.1.0.dev20190516
Is debug build: No
CUDA used to build PyTorch: 9.0.176
OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
CMake version: Could not collect
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration:
GPU 0: GeForce GTX 1080
GPU 1: GeForce GTX 1080
Nvidia driver version: 384.130
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.5.0
Versions of relevant libraries:
[pip] numpy==1.16.3
[pip] torch==1.1.0.dev20190516
[pip] torchvision==0.2.1
[conda] blas 1.0 mkl
[conda] mkl 2019.3 199
[conda] mkl_fft 1.0.12 py37ha843d7b_0
[conda] mkl_random 1.0.2 py37hd81dba3_0
[conda] pytorch-nightly 1.1.0.dev20190516 py3.7_cuda9.0.176_cudnn7.5.1_0 pytorch
[conda] torchvision 0.2.1 pypi_0 pypi
Pillow (6.0.0)
2019-05-24 14:24:07,236 maskrcnn_benchmark INFO: Loaded configuration file /shared/configs/e2e_ms_rcnn_R_50_FPN_1x_from_scratch_HQ_images.yaml
2019-05-24 14:24:07,236 maskrcnn_benchmark INFO:
MODEL:
META_ARCHITECTURE: "GeneralizedRCNN"
WEIGHT: https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl
#~ WEIGHT: "/shared/Pre-weights/R-50.pkl"
PRETRAINED_MODELS: 'pretrained_models'
BACKBONE:
CONV_BODY: "R-50-FPN"
OUT_CHANNELS: 256
RPN:
USE_FPN: True
ANCHOR_STRIDE: (4, 8, 16, 32, 64)
PRE_NMS_TOP_N_TRAIN: 2000
PRE_NMS_TOP_N_TEST: 1000
POST_NMS_TOP_N_TEST: 1000
FPN_POST_NMS_TOP_N_TRAIN: 1000
FPN_POST_NMS_TOP_N_TEST: 1000
ROI_HEADS:
USE_FPN: True
ROI_BOX_HEAD:
POOLER_RESOLUTION: 7
POOLER_SCALES: (0.25, 0.125, 0.0625, 0.03125)
POOLER_SAMPLING_RATIO: 2
FEATURE_EXTRACTOR: "FPN2MLPFeatureExtractor"
PREDICTOR: "FPNPredictor"
NUM_CLASSES: 3
ROI_MASK_HEAD:
POOLER_SCALES: (0.25, 0.125, 0.0625, 0.03125)
FEATURE_EXTRACTOR: "MaskRCNNFPNFeatureExtractor"
PREDICTOR: "MaskRCNNC4Predictor"
POOLER_RESOLUTION: 14
POOLER_SAMPLING_RATIO: 2
RESOLUTION: 28
SHARE_BOX_FEATURE_EXTRACTOR: False
MASK_ON: True
MASKIOU_ON: True
DATASETS:
TRAIN: ("D42-20_HR", "D42-19_HR", "D42-18_HR", "D42-17_HR", "D42-16_HR",)
TEST: ("D42-02-val",)
DATALOADER:
SIZE_DIVISIBILITY: 32
SOLVER:
BASE_LR: 0.005
IMS_PER_BATCH: 2
WEIGHT_DECAY: 0.0001
#~ STEPS: (60000, 80000)
STEPS: (10000, 20000)
#~ MAX_ITER: 90000
MAX_ITER: 29000 #20000 1 epoch
CHECKPOINT_PERIOD: 2500
TEST:
IMS_PER_BATCH: 1
INPUT:
MAX_SIZE_TRAIN: 2560
MIN_SIZE_TRAIN: 2048
OUTPUT_DIR: "/shared/Training/T-13_HQ"
2019-05-24 14:24:07,237 maskrcnn_benchmark INFO: Running with config:
DATALOADER:
ASPECT_RATIO_GROUPING: True
NUM_WORKERS: 4
SIZE_DIVISIBILITY: 32
DATASETS:
TEST: ('D42-02-val',)
TRAIN: ('D42-20_HR', 'D42-19_HR', 'D42-18_HR', 'D42-17_HR', 'D42-16_HR')
INPUT:
MAX_SIZE_TEST: 1333
MAX_SIZE_TRAIN: 2560
MIN_SIZE_TEST: 800
MIN_SIZE_TRAIN: 2048
PIXEL_MEAN: [102.9801, 115.9465, 122.7717]
PIXEL_STD: [1.0, 1.0, 1.0]
TO_BGR255: True
MODEL:
BACKBONE:
CONV_BODY: R-50-FPN
FREEZE_CONV_BODY_AT: 2
OUT_CHANNELS: 256
DEVICE: cuda
MASKIOU_LOSS_WEIGHT: 1.0
MASKIOU_ON: True
MASK_ON: True
META_ARCHITECTURE: GeneralizedRCNN
PRETRAINED_MODELS: pretrained_models
RESNETS:
NUM_GROUPS: 1
RES2_OUT_CHANNELS: 256
RES5_DILATION: 1
STEM_FUNC: StemWithFixedBatchNorm
STEM_OUT_CHANNELS: 64
STRIDE_IN_1X1: True
TRANS_FUNC: BottleneckWithFixedBatchNorm
WIDTH_PER_GROUP: 64
ROI_BOX_HEAD:
FEATURE_EXTRACTOR: FPN2MLPFeatureExtractor
MLP_HEAD_DIM: 1024
NUM_CLASSES: 3
POOLER_RESOLUTION: 7
POOLER_SAMPLING_RATIO: 2
POOLER_SCALES: (0.25, 0.125, 0.0625, 0.03125)
PREDICTOR: FPNPredictor
ROI_HEADS:
BATCH_SIZE_PER_IMAGE: 512
BBOX_REG_WEIGHTS: (10.0, 10.0, 5.0, 5.0)
BG_IOU_THRESHOLD: 0.5
DETECTIONS_PER_IMG: 100
FG_IOU_THRESHOLD: 0.5
NMS: 0.5
POSITIVE_FRACTION: 0.25
SCORE_THRESH: 0.05
USE_FPN: True
ROI_MASK_HEAD:
CONV_LAYERS: (256, 256, 256, 256)
FEATURE_EXTRACTOR: MaskRCNNFPNFeatureExtractor
MLP_HEAD_DIM: 1024
POOLER_RESOLUTION: 14
POOLER_SAMPLING_RATIO: 2
POOLER_SCALES: (0.25, 0.125, 0.0625, 0.03125)
POSTPROCESS_MASKS: False
POSTPROCESS_MASKS_THRESHOLD: 0.5
PREDICTOR: MaskRCNNC4Predictor
RESOLUTION: 28
SHARE_BOX_FEATURE_EXTRACTOR: False
RPN:
ANCHOR_SIZES: (32, 64, 128, 256, 512)
ANCHOR_STRIDE: (4, 8, 16, 32, 64)
ASPECT_RATIOS: (0.5, 1.0, 2.0)
BATCH_SIZE_PER_IMAGE: 256
BG_IOU_THRESHOLD: 0.3
FG_IOU_THRESHOLD: 0.7
FPN_POST_NMS_TOP_N_TEST: 1000
FPN_POST_NMS_TOP_N_TRAIN: 1000
MIN_SIZE: 0
NMS_THRESH: 0.7
POSITIVE_FRACTION: 0.5
POST_NMS_TOP_N_TEST: 1000
POST_NMS_TOP_N_TRAIN: 2000
PRE_NMS_TOP_N_TEST: 1000
PRE_NMS_TOP_N_TRAIN: 2000
RPN_HEAD: SingleConvRPNHead
STRADDLE_THRESH: 0
USE_FPN: True
RPN_ONLY: False
WEIGHT: https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl
OUTPUT_DIR: /shared/Training/T-13_HQ
PATHS_CATALOG: /home/maskscoring_rcnn/maskrcnn_benchmark/config/paths_catalog.py
SOLVER:
BASE_LR: 0.005
BIAS_LR_FACTOR: 2
CHECKPOINT_PERIOD: 2500
GAMMA: 0.1
IMS_PER_BATCH: 2
MAX_ITER: 29000
MOMENTUM: 0.9
STEPS: (10000, 20000)
WARMUP_FACTOR: 0.3333333333333333
WARMUP_ITERS: 500
WARMUP_METHOD: linear
WEIGHT_DECAY: 0.0001
WEIGHT_DECAY_BIAS: 0
TEST:
EXPECTED_RESULTS: []
EXPECTED_RESULTS_SIGMA_TOL: 4
IMS_PER_BATCH: 1

There was a problem with the bounding box of training images, as it was not correct.
I could improve masks training in high res with ResNext-101 and increasing MASIOU_WEIGHT.
I am getting really good results.


Some formatting fixes

The value of attribute [ href ] must be in double quotes. Improved readability of code.

please don't create pr without being assigned an issue

Was based on [STYLE CHANGE] Want to improve the styling of navbar and footer #753

What is the process of getting assigned an issue?


Replace use of deprecated lifecycle method componentWillReceiveProps

Summary & motivation
When rendered in React Strict mode, this library generates warnings because it is using the deprecated lifecycle method componentWillReceiveProps.  I moved the code inside of componentWillReceiveProps into componentDidUpdate, as suggested in this React blog post.
Testing & documentation
The changes to the the code needed to remove cWRP was pretty straightforward.  However, Enzyme v2 does not call cDU, so I migrated the tests to enzyme v3 in order to get them to pass.  There are other ways to keep the tests passing without upgrading Enzyme (namely switching from shallow rendering to full mounting), but this seemed the simplest.
I also fixed a bug in the demo page that was exposed by strict mode, where a request was being fired in the constructor, and the handler was running before the component had been mounted (which threw an error).  Moving the request into componentDidMount fixed it.

@rynobax thanks for this PR! On a cursory look, it seems like a change worth making. Can you look into the CI error and get things green so we can do a full review? Thanks!

CI is passing now

👍

Hi, now Rect 16.9 deprecates componentWillReceiveProps, it would be useful to merge this!

@yohannprigent: good point! Looks like I need to rebase and review this, since it's a bit old, but we should get 16.9 support working soon.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Add support for Windows Server 2019

The Windows Server Core Docker image is GA now  at mcr.microsoft.com/windows/servercore:1809 - it would be great to get ASP.NET images for 1809 (we already have them for ASP.NET Core via PR 719).

I'm with you @sixeyed , actually I'm waiting, and ready to test my apps on it.
Please put it at Docker Hub too!

We have the PR staged at https://github.com/Microsoft/aspnet-docker/tree/RS5update and are working on bootstrapping new infrastructure to publish to Windows Server 2019

Excellent, looking forward to download it once it's ready

Any ETA on this?
Thanks

Thanks a lot!! I've been refreshing docker hub everyday checking for it to be available :smile:

Any ETA on this?
Thanks

it's here: docker image pull mcr.microsoft.com/dotnet/framework/aspnet:4.7.2-windowsservercore-ltsc2019

Still not on docker hub yet

@Mozanrath The images are already live.
As you may have noticed in the docker pull command, the image is now being served from the Microsoft Container Registry (MCR). Starting with Windows Server 2019 and going forwards, all new tags will be published exclusively to MCR. All existing tags have been syndicated from DockerHub to MCR.
If your existing Dockerfile begins by specifying microsoft/iis as the base layer as shown below-
FROM microsoft/aspnet:4.7.2-windowsservercore-ltsc2016
…

Our guidance is to move to adopting MCR as your base layer. You should change your Dockerfile to what’s shown below-
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.7.2-windowsservercore-ltsc2016
…

As part of this transition, we are only changing the source from where you download your images to MCR. DockerHub continues to be the preferred medium for container image discovery.
Take a look this blog post for the motivation behind this change.

Where can we see a list of images on mcr? Is there a web UI like docker hub?

@rotata Could you help answer with that question?

Starting with Windows Server 2019 and going forwards, all new tags will be published exclusively to MCR. All existing tags have been syndicated from DockerHub to MCR.

Hey @shirhatti, or @rotata, how can I list or explore all images and tags from mcr.microsoft.com?

@sanguedemonstro as I've read elsewhere, Docker Hub is still the place to explore/search images and mcr is just a place where they get pulled from. It's kind of weird and unexpected, but makes sense in a way

@biiiipy from ltsc2019 on, tags are no longer in the docker hub. So now it is hard to know if there is any variant of ltsc2019, like other languages as pt-BR... Maybe there is but who knows?!


To be able to change the next, done and skip button colors ?

Hi mate, thanks for this awesome package, is it possible to change the colors of the buttons ? Or if I create my own widget for next, a callback to the next button function ? Also I would love to be able to set a gradient color for the backgroundColor which I couldn't.
Also a small bug, if I define my own done widget (TextButton(child: Text('Let's go'), on the last page where done appears, dotIndicator changes position.

Thank you for the report. I'll fix this issue ASAP.


BUG: Big Sur compat

More of an FYI than anything else -- PyQt5 appears not to work on Big Sur. I've tried 5.12 and 5.15.1, and both basically hang as soon as you make a mayavi, PyVista, or matplotlib Qt5Agg window.
So those thinking about upgrading, don't do so if you want to be able to use Python. For matplotlib at least we can use the MacOSX backend in the meantime, but 3D plotting is now (hopefully temporarily) totally broken for people who have upgraded. :(
Or maybe I'm the only one with this issue. If someone else upgrades, feel free to try it out and let me know!

Closing because there isn't really anything for us to do. But we can keep any discussion about this here as things progress

Thanks for the heads up. I think this time I will upgrade as late as possible (this is the first time I haven't upgraded on day 1, and just like the new CPUs the macOS update doesn't really hype me).

os.environ['QT_MAC_WANTS_LAYER'] = '1' (stackoverflow) at least gets the GUIs to open, will do some more testing.

I've done the upgrade and of course things don't work.
https://github.com/numpy/numpy/issues/17784

I have been running Big Sur for over a week or so and no problems besides the Qt this be. I'm using conda-forge.

Yes, it's a pip issue. I know we recommend/support conda, but pip is still the default package manager and currently that doesn't work.

Yep. Didn't mean to suggest otherwise, just wanted to share that it works well for me with conda-forge :)

The latest releases of pip and Homebrew fixed all issue, so everything is working on macOS/Homebrew.

I'm constantly running into this issue if I forget to update my VS Code Run/Debug configuration accordingly. I thought we had added a workaound (setting the variable on macOS automatically) a while back, but cannot find any reference anymore?

I'm constantly running into this issue if I forget to update my VS Code Run/Debug configuration accordingly. I thought we had added a workaound (setting the variable on macOS automatically) a while back, but cannot find any reference anymore?

Never mind, it's mentioned right above:
https://github.com/mne-tools/mne-python/pull/8554
But like I said, this apparently doesn't fix the problem for me.

Never mind, it's mentioned right above:
https://github.com/mne-tools/mne-python/pull/8554
But like I said, this apparently doesn't fix the problem for me.

But like I said, this apparently doesn't fix the problem for me. Only setting the variable manually has helped so far.

That PR only fixed it for mne coreg and related GUIs that use traits+mayavi, not for code that uses matplotlib. For that, people should look to a matplotlib-generic solution such as setting this env var in their dev environment.

But like I said, this apparently doesn't fix the problem for me. Only setting the variable manually has helped so far.

That PR only fixed it for mne coreg and related GUIs that use traits+mayavi, not for code that uses matplotlib. For that, people should look to a matplotlib-generic solution such as setting this env var in their dev environment.

@hoechenberger are you using an old PyQt5 version? This has been fixed in 5.15.2.

@hoechenberger are you using an old PyQt5 version? This has been fixed in 5.15.2.


Should test files be moved next to source files ?

Did I not understand the question?

@mvallim
Instead of having a /test folder, test files could be located next to source.
Example:

This (current)

|- src/
....|- main/
........|- hashset.js
....|- test/
........|- hashset.test.js

To this (proposal)

|- src/
....|- main/
........|- hashset.js
........|- hashset.test.js

I think core and test artifacts should stay in separate packages.
It would be another form that one is accustomed to work, but in my opinion the artifacts must be in different packages.
What do you think?

Understood your point!
In a project view, IMO my option scales better but here we are talking about a library, so maybe it's better to keep into separate package.
I'm closing this issue! ;-)


AST/stdlib: Introduce and adopt experimental feature NoncopyableGenerics2

The .swiftinterface of the standard library must remain compatible with some older compilers. Unfortunately, some of those older compilers do not allow the experimental feature NoncopyableGenerics to be enabled in production. To allow the stdlib to build with non-copyable generics enabled and still have the older compilers consume its interface, we have to use a new experimental feature identifier that they do not know about.
Partially resolves rdar://125138945

@swift-ci please smoke test

This builds on top of https://github.com/apple/swift/pull/72604 (it should be a stacked PR but I can't make it one because the branch for #72604 is in a fork).

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test Linux

@swift-ci please smoke test

@swift-ci please smoke test


Update 1_0_2.md

Adding release notes per @Itay4 's request

Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status

[x] In Progress
[ ] Ready
[ ] In Hold - (Reason for hold)

Related Issues
fixes: link to the issue
Description
A few sentences describing the overall goals of the pull request's commits.
Screenshots
Paste here any images that will help the reviewer
Minimum version of Cortex XSOAR

[ ] 5.5.0
[ ] 6.0.0
[ ] 6.1.0
[ ] 6.2.0

Does it break backward compatibility?

[ ] Yes

Further details:

[ ] No

Must have

[ ] Tests
[ ] Documentation

modified the release notes in https://github.com/demisto/content/pull/13616


500 Server Error (after a few days)

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Install the container
Set a password
Run it for a few days
Get 500 Server Error when you go to the webUI
Reboot the container
Works fine
A few days later same error
Absolutely nothing in the logs to describe a problem

Expected behavior
I expect it to work without dying.
Logs
Here's the logs, I can't see anything remotely useful.
How are you creating the container? docker-compose.yaml file? Please show that.

Correct this looks like a sqlite DB issue.
I strongly suggest using MySQL/MariaDB or Postgresql for your database instead of sqlite as it's going to be removed for new installs in the next release.

Sorry for boarding on, but I have the same "500 Error" but with MariaDB!


Rich text resolver > URL resolver - Incorrect link text passed when formatting is used

Brief bug description
When a link inside a rich text element uses formatting, only a part of the link text is passed in the urlResolverAsyc method.
Repro steps

In the Kontent app, in a rich text element, create a link and add formatting inside the link text (ie. italic or bold).

When resolving URLs in a Rich text resolver, only the text in front of the formatting is passed in the linkText variable.

Expected behavior
The whole link text is passed in the method.
Test environment

Versions:

"@kentico/kontent-delivery": "^11.13.0"
"@kentico/kontent-delivery-node-parser": "^1.1.0"

Tested in a Next.js project
The text is resolved in Node.js using asyncNodeParser as a parameter passed in the createAsyncRichTextHtmlResolver method.

Hey @MilanLund,
I've made some changes to the parser and it should now include the entire link content as a plain text. Can you try the "@kentico/kontent-delivery-node-parser": "2.0.0" ?

Hi @Enngage,
I am afraid your changes broke it a little bit more :) I tried version 2.0.0 in my project and got TypeError: Cannot read property 'value' of undefined on almost every page. I dug a bit in your code and found an issue.
Here you are testing if there are any childNodes: https://github.com/Kentico/kontent-delivery-node-parser/blob/48456ca8380ca329a3b5509bb68ed1d9c12301f7/lib/parser/implementation/node-async-parser.ts#L233
And then if there are none you are obtaining a first childNode which obviously is undefined: https://github.com/Kentico/kontent-delivery-node-parser/blob/48456ca8380ca329a3b5509bb68ed1d9c12301f7/lib/parser/implementation/node-async-parser.ts#L238

Thanks @MilanLund ! Yeah, you're right ;)  I've updated the condition in 2.0.1, can you try again?
I was changing the code quite a bit (due to parse5 API changes) and didn't notice this as test were passing correctly. I'm honestly not sure what are all possible link syntaxes and it's strange that I didn't see the same error as you did. I only wonder how your links differ from the ones I have in tests:)


error to warning when using Kokkos and Eigen

This changes the preprocessor directive when compiling with kokkos + Eigen to a #warning, so that the code will not halt compilation in this case.
This is a temporary fix for #125  . Ideally this (and other) directives will be superseded by the build configuration stage.

I like this. Kokkos and Eigen aren't incompatible, only if enabling the gpu backend of kokkos is kokkos-kernels required and Eigen a problem. It also enables to test both the kokkos and non-kokkos portability strategies w/o the need to pull in kokkos kernels.


Add prettier config to libs

What does this change?
Adds the existing @guardian/prettier config package to the csnx monorepo.
To do this we have:

used nx to generate a new libs project using the name prettier
gutted the generated tsconfig files to remove unused rules
removed generated test files
replaced the generated package.json with the existing prettier package.json
replaced the default executor in project.json with @csnx/npm-package:build
updated the prettier dependency to use: "@guardian/prettier": "workspace:*",
updated the readme

Note: running make build is currently outputting esm and cjs folders correctly, however within those folders we have multiple index files: (index.js and index2.js, where index2.js is imported by index.js).
Maybe this is fine? If this is not fine the following seem to resolve it:

set preserveModules to false in the rollup config
make the file index.ts
use export default rather than module.exports in src/index.js

How to test
run make build
do a release via changesets
consume the lib

I've updated this use the updated @csnx/npm-package:build (#36) – this enables us to do away with the wierd boiler plate stuff that's only useful in a package you actually want to build.
this should now be the same at the existing one in https://github.com/guardian/configs/tree/<EMAIL_ADDRESS>


Fix test suite duplicate instance.

quickcheck-instances since 0.3.17 already defines the instance for short ByteStrings, giving
an error when trying to test the library with that version.
Also: fixed some compatibility issues, like missing Semigroup instances (which are required in new GHC versions).

Apologies for taking so long to merge your pull request!
Are you using 'flat' for some project?

Never mind... this PR hasn't even been open for very long...
I'm using flat for a screen presentation engine, namely for wrapping the information of where in the presentation the user is in a URL. (Which is much more than just a slide number in this case, because the engine allows fine-grained sequencing of e.g. individual images within a slide, doing algebraic manipulation in-place and such stuff; thus the need for a tight binary encoding to handle all this without needing to store anything on the server.)


Font color is black in iOS but Gray/Grey in Android

In Android all text color (time, sender name, message) are grey. Which doesn't look good.

@zulipbot claim

This might be considered fixed by #519

Yup! it is fixed.


Add dataset name and version to leaderboard tables

Is your proposal related to a problem?
Each leaderboard table have a column called Dataset Version. The value display in this column is the concatenation of a dataset name (e.g. "2014-i2b2") and version (e.g. "20201203").
Describe the solution you'd like
We want to be able to filter separately by dataset name and dataset version. MCW is working on preparing a private dataset that will be hosted on their own data node. Ideally we should support the case where one data hosting site can evaluate one submission on more than one dataset. For example, we may shutdown Sage Data Hosting site one day and move the i2b2 dataset to MCW data hosting site.

Here are information that we want to surface in the leaderboard table or on the website
Dataset name and version
Two pieces of information that we want to use to explore/filter submissions
Dataset schema version
It is important to know the version of the schemas used by the dataset, but not to explore submissions. The dataset schema version could be specified in the changelog of the dataset. For example, we would say that the dataset "awesome-dataset" version "2020-02-15" implements the NLP Sandbox schemas version x.y.z.
Submitted tool schema version
This information could have several use:

Check the tool API version before evaluating its performance. We could specify to the controller that for the dataset "awesome-dataset" version "2020-02-15" relies on the NLP Sandbox schemas "x.y.z" and that tools evaluated on it must implement this version of the schemas.
A user of the PHI Deidentifier may want to replace its tool dependencies by the best-performing tool. This user would look at the leaderboard table for the Date Annotation task, for example, and look for a tool that implement the Date Annotator API version that the PHI Deidentifier uses.

Tool license
This is a neat information to show in the leaderboard table
More
It would be nice to annotate the submission entities with the metadata returned by /api/v1/tool, for example for future more comprehensive tool exploration/filtering. The metadata properties would be named using a common prefix.

Workflow input:
dataset_name: 2014-i2b2
dataset_version: 2013...
api_version: 1.0.0


feat(android): add "Don't keep activities" functionality

This allows you to turn on/off "Don't keep activities" setting in the Developer options for Android.

Ping @SvetoslavTsenov and @sis0k0.


Add jsDelivr hits badge

Hey, I noticed that punycode.js gets 171k hits per month on jsDelivr, so I thought you might like this badge.

Nice.


qwik, routeloader vs signal store as loader for useForm

On https://modularforms.dev/qwik/guides/create-your-form loader is suggested to be routeLoader, but technically any store (using signals) should work, correct?
Great library btw. I first started doing things manually but soon realised it is better in the long run to use this approach. Thank you.

Hey, thanks a lot! Yes that is correct. You can also just pass { value: { /* initial values here */ } } to loader. I am aware that this is currently not optimal for static values and I am in the process of improving this. What do you think about the following solution?
const [loginForm, { Form, Field }] = useForm<LoginForm>({
  loader: staticValues({ email: '', password: '' }),
});

With the name, I am not sure yet. Instead of staticValues it could also be staticLoader or useStaticLoader.
Alternatively it is also possible to use useSignal. However, I find this somehow a bit confusing, since it is basically not a reactive state.
const [loginForm, { Form, Field }] = useForm<LoginForm>({
  loader: useSignal({ email: '', password: '' }),
});

Hmm well in my case I was simply looking for a way to set initial values on a form. since it is a form that is not directly attached to a route but instead receives data from a parent component, I initialised a loader "store":
  const loader = useSignal<AddressFormType>({
    firstName: address?.firstName || '',
    lastName: address?.lastName || '',
    streetAddress1: address?.streetAddress1 || '',
    streetAddress2: address?.streetAddress2 || '',
    city: address?.city || '',
    postalCode: address?.postalCode || '',
    phone: address?.phone || '',
  });

and then attached this to useForm. I don't see a big issue with doing it this way. A signal is a signal, right? It seems to work, anyways. ;-)
Of course, for DX, you could provide an immediate handler and name it something smart like "initialValueLoader({...})" but it would essentially be syntactical sugar.

Thank you for your further feedback. You misunderstood me, I meant the following:
const [loginForm, { Form, Field }] = useForm<LoginForm>({
  loader: { value: { email: '', password: '' } },
});

Correct, internal should not be used, as there is a risk that the state becomes inconsistent. Instead, the various methods should be used for modifications.
You are right, a separate function like staticValues would only be syntax sugar, but in the long run we should choose a uniform procedure and document it that way. Alternatively I could add initialValues next to loader, where the initial data can be passed directly.
Here another tip: To change the initial values afterwards, the reset method should be used.

For simplicities sake, I would prefer to set a form value on an existing form object.
Let's say I setup a form like this:
  const [addressForm, { Form, Field }] = useForm<AddressFormType>({
    loader,
  });

To set a form field's value later it would be much more convenient to use something like
addressForm.update('fieldname', value);

and let the form handle the rest by itself. Right now it is not entirely clear to me how I should set up a form if I need to change values dynamically. Do I need to initialise using useFormStore instead of useForm? Or a separate instance? how do I get my values into useFormStore? It feels a little bit unintuitive.

The library is built with a modular design. Thus the bundle size is small and you can decide yourself which functionality you need. You can find more information here.
The store of your form is therefore the core, because it holds all the information. To make changes to it, you use methods like setValue. You can find more about this here.
setValue(addressForm, 'fieldname', 'New value');

Thank you for elaborating. I appreciate it.

Currently it is required. But you're right, there are ways around it. I'm planning a major update in January that will simplify the API and increase stability.


Update simulator state documentation

Added function-level documentation to the simulator core state.h
header.

I'll add questions when I create the request.

I've rebased against latest master, and made some updates to the comments on those two sets of functions.


How to change the menu order of the pages

If I create a new page I would like to place it in the menu where I like. Now it seems it has some default order.

It is ordered alphabetically I think
    public function findMenuItems()
    {
        return $this->createQueryBuilder('p')
            ->select('p.title', 'p.slug')
            ->andWhere('p.show_in_menu = 1')
            ->orderBy('p.title', 'ASC')
            ->getQuery()
            ->getResult();
    }

Maybe it is an option to add a weigth paramater to order the menu-items.

Menu editor is implemented in version 1.4.0


Not able to pass output from earlier step as text

Hello,
I'm trying to read a file and then send it in Text section but it's not working. Here is the sample:

name: Read scan results summary
id: scan-results
run: |
SAST_SUMMARY=$(cat sast-summary.txt)
echo "::set-output name=SAST_SUMMARY::${SAST_SUMMARY}"
name: Send a message to Microsoft Teams
if: ${{ steps.pipeline-scan.outcome == 'failure' }}
uses<EMAIL_ADDRESS>with:
webhook_uri: ${{env.WEBHOOK_URI}}
title: 'Veracode Pipeline Scan found vulnerabilities in ${{ env.REPOSITORY_NAME }}'
summary: 'Flaws Summary: '
text: 'Flaws text: ${{steps.scan-results.outputs.SAST_SUMMARY}}'
theme_color: a72828
actions: '[{ "@type": "OpenUri", "name": "View Results", "targets": [{ "os": "default", "uri": "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" }] }]'

Am I missing anything? Or this is not supported with the current version?

Is this the content of your YAML file?
jobs:
  your-job:
    runs-on: ubuntu-latest
    steps:
    - name: Read scan results summary
      id: scan-results
      run: |
        SAST_SUMMARY=$(cat sast-summary.txt)
        echo "::set-output name=SAST_SUMMARY::${SAST_SUMMARY}"
    - name: Send a message to Microsoft Teams
      if: ${{ steps.pipeline-scan.outcome == 'failure' }}
      uses<EMAIL_ADDRESS>      with:
        webhook_uri: ${{env.WEBHOOK_URI}}
        title: 'Veracode Pipeline Scan found vulnerabilities in ${{ env.REPOSITORY_NAME }}'
        summary: 'Flaws Summary: '
        text: 'Flaws text: ${{steps.scan-results.outputs.SAST_SUMMARY}}'
        theme_color: a72828
        actions: '[{ "@type": "OpenUri", "name": "View Results", "targets": [{ "os": "default", "uri": "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}" }] }]'

(I have added the jobs to steps paragraphs)
Do you get any errors?
From my experience the workflow files are pretty fragile when it comes to single and double quotes. If your output SAST_SUMMARY contains single quotes this might break the second step since text is also single-quote-escaped.

Correct that's the step configured in yaml file and SAST_SUMMARY may or may not contain single quotes.
I can give a try with double quotes, but then if for some reason SAST_SUMMARY has double quotes, then it will fail again.

Yup, unfortunately that is something one must be aware of. I think you should opt for either double or single quotes and then take every action you can think of to make sure that the quotes are properly escaped.


Vendor guidelines

This is my first attempt. This isn't intended to replace the CoC for vendors, but helps to clarify the CoC as it applies to vendors.

Good one, thanks!
I like the idea of adding Guidelines, which clarify the intent we had while writing the CoC.
I would add a link to the CoC, to ensure it is read too. What do you think?

Yes, I was going to do that once merged, as I’m rubbish at working out what the URL will be.


[Rendering] UWP not visualize card actions

Target Platforms
UWP
SDK Version
3.0.2
Application Name
UWP app
Problem Description
I developed an uwp chat client long time ago where i was using uwp 2.7 but now i want to use 3.0.2. Updating code i found that AdaptiveCardRender doen't render adaptive card actions while it render perfectly actions if you use actionsset
To do some test i wrote a very simple test. here is the codebehind of mainpage:
using AdaptiveCards.ObjectModel.Uwp;
using AdaptiveCards.Rendering.Uwp;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Data.Json;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.Storage;
using Windows.System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409

namespace TestCardRendering
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        private AdaptiveHostConfig hostfile = null;
        public MainPage()
        {
            this.InitializeComponent();

        }

        private async void Button_Click(object sender, RoutedEventArgs e)
        {

            if (CardContainer.Children.Count > 0)
            {
                CardContainer.Children.Clear();
            }
            AdaptiveCardRenderer renderer = new AdaptiveCardRenderer();
            renderer.HostConfig= hostfile;
            RenderedAdaptiveCard rac = null;

            JsonObject.TryParse(CardJson.Text, out JsonObject jsonObjectCard);
            if (jsonObjectCard != null)
            {
                rac = renderer.RenderAdaptiveCardFromJsonString(CardJson.Text);
                var err = rac.Errors;
                var war = rac.Warnings;
                rac.Action += Rac_Action;
            }
            if(rac != null && rac.FrameworkElement != null)
            {
                CardContainer.Children.Add(rac.FrameworkElement);
            }
        }

        private async void Rac_Action(RenderedAdaptiveCard sender, AdaptiveActionEventArgs args)
        {
            if (args.Action is AdaptiveOpenUrlAction openUrlAction)
            {
                await Launcher.LaunchUriAsync(openUrlAction.Url);
            }

            else if (args.Action is AdaptiveShowCardAction showCardAction)
            {
                // This is only fired if, in HostConfig, you set the ShowCard ActionMode to Popup.
                // Otherwise, the renderer will automatically display the card inline without firing this event.
            }

            else if (args.Action is AdaptiveSubmitAction submitAction)
            {
                // Get the data and inputs
                string data = submitAction.DataJson.Stringify();
                string inputs = args.Inputs.AsJson().Stringify();

                // Process them as desired
            }
        }

        private async void Button_Click_1(object sender, RoutedEventArgs e)
        {

            Uri uri = new Uri("ms-appx:///HostConfig/HostConfig.json");
            StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(uri);
            string payload = await FileIO.ReadTextAsync(file);
            var newHostConfig = AdaptiveHostConfig.FromJsonString(payload).HostConfig;
            if (newHostConfig != null)
            {
                hostfile = newHostConfig;

            }

        }
    }
}

and here the xaml of the same page:
<Page
    x:Class="TestCardRendering.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TestCardRendering"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <TextBox x:Name="CardJson" HorizontalAlignment="Left" Margin="593,46,0,0" TextWrapping="Wrap"  VerticalAlignment="Top" Width="484" Height="338" RenderTransformOrigin="0.681,0.53"/>
        <Button Content="LoadCard" Margin="1096,46,0,0" VerticalAlignment="Top" Width="95" Click="Button_Click"/>
        <StackPanel x:Name="CardContainer" BorderThickness="2" BorderBrush="Black"  Margin="24,46,932,616"/>
        <Button Content="Load Host" Margin="1096,129,0,0" VerticalAlignment="Top" Width="95" Click="Button_Click_1"/>

    </Grid>
</Page>

To simulate the issue just copy a payload of a card generate from designer(simplest as possible) and try. Just the body content is rendered
Screenshots
No response
Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "test",
                    "wrap": true
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Action.Submit"
        }
    ],
    "id": "card1"
}

Sample Code Language
No response
Sample Code
No response

After a lot of test i understand that the problem is related to the not correct handling of dark theme in the sample host files but also in default settings. By default the background is white but actions (buttons ) are follow the theme settings: this means white over white. Also let me higlight that there are a lot of new feature to manage renderer, parsers, split among actions and elements that documented. Question: have you a hostconfig file that works with templates?


[release-1.21] Make sure unknown vhosts fall through and get added eventually (if on port 80)

Manual cherrypick required.
#49403 failed to apply on top of branch "release-1.21":
Applying: Make sure unknown vhosts fall through and get added eventually (if on port 80)
Using index info to reconstruct a base tree...
M	pilot/pkg/networking/core/v1alpha3/route/route.go
Falling back to patching base and 3-way merge...
Auto-merging pilot/pkg/networking/core/v1alpha3/route/route.go
CONFLICT (content): Merge conflict in pilot/pkg/networking/core/v1alpha3/route/route.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Make sure unknown vhosts fall through and get added eventually (if on port 80)
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Fixed in https://github.com/istio/istio/pull/49529


Setup gitlab ci

Fixes #13 #28

Why does the current check fail? @evilpeach

@sorawit It's ok right now. However, I found they are caching while go test.
https://gitlab.com/bandprotocol/d3n/-/jobs/381020259


Add Last-Modified and ETag headers on HTML responses

Right now, HTML pages on docs.rs get no caching headers at all:
$ curl -iL docs.rs/regex | less
...
HTTP/2 200
content-type: text/html; charset=utf-8
content-length: 136585
server: nginx/1.14.0 (Ubuntu)
date: Fri, 26 Nov 2021 19:34:01 GMT
vary: Accept-Encoding
x-cache: Miss from cloudfront
via: 1.1 eece508272520f70691e4eebdc5a6dea.cloudfront.net (CloudFront)
x-amz-cf-pop: HIO50-C1
x-amz-cf-id: sDMQ3tIHBbZPLMSUynsQRoBTkxdeWH6pc_QqwGzxHSvGQe71aaccEw==

That's in part because they could be updated at any time. However, there's no need for the user's browser to load the whole thing every time. If we set Last-Modified and/or ETag, the browser can send a request with the If-None-Match and/or If-Modified-Since headers. In the common case when the document hasn't been updated, the server can reply with 304 and the browser will use what it has stored locally, saving a lot of bytes downloaded.
Note that doc.rust-lang.org already serves both ETag and Last-Modified, thanks to S3:
$ curl -i https://doc.rust-lang.org/nightly/std/string/struct.String.html | less
HTTP/2 200
content-type: text/html
content-length: 614892
date: Fri, 26 Nov 2021 19:58:13 GMT
last-modified: Fri, 26 Nov 2021 00:50:39 GMT
x-amz-version-id: 5q36d4E6SPVJsJeZ4l4N32_CxCLiRRwj
etag: "0a1f4a4cb8c158e2a3e92972a5c86673"
server: AmazonS3
vary: Accept-Encoding
x-cache: Miss from cloudfront
via: 1.1 87cff53a3b3c669d865b820d148e2d63.cloudfront.net (CloudFront)
x-amz-cf-pop: HIO50-C2
x-amz-cf-id: ThqtuTVHKIHpQxwJNpkzEuDXD4pFvshCbivyVGE55y2t9sp9mIyqkQ==

The only easy implementation here would be doing that for static assets.
Implementing a last-modified date for rustdoc pages is harder, since every new release changes the content for the old releases. Also, an easy E-tag calculation (based on the MD5 for example) might have a performance impact on the webserver for bigger rustdoc files.
The performance advantage would likely be only be perceivable for US users, since for other users most of the time is spent in the roundtrip, and e-tag/last-modified caching still does the roundtrip.

Also, an easy E-tag calculation (based on the MD5 for example) might have a performance impact on the webserver for bigger rustdoc files.

We could use the crate version + rustdoc version as the ETag.

Implementing a last-modified date for rustdoc pages is harder, since every new release changes the content for the old releases.

This suggests perhaps an ETag of crate version + rustdoc version + latest crate version.
All that said, it seems like Last-Modified would also work pretty well and would be simple to calculate.

The performance advantage would likely be only be perceivable for US users, since for other users most of the time is spent in the roundtrip, and e-tag/last-modified caching still does the roundtrip.

That's only true if you assume a full download happens in a single roundtrip. If (at a guess) a typical page is 150kB, and a starting receive window size of 16kb (the Windows default), there will be at least a few roundtrips beyond the first. We could measure this with Wireshark!
Another potential benefit, besides end-user speed, is that this could reduce bandwidth costs.

We could use the crate version + rustdoc version as the ETag.

This needs to include the docs.rs version too, in case the header has changed.
Actually that reminds me, we also need to include the latest version in the ETag, so the drop-down gets updated with all newer versions.

Here's a webpagetest result for https://docs.rs/serde_json/1.0.72/serde_json/struct.Deserializer.html, from Milan, on Chrome, with Cable internet speed:
https://www.webpagetest.org/result/211126_AiDcNW_f655e755ab2f15dbb0c7886b76f7b16f/1/details/#waterfall_view_step1
You can click on the waterfall for a detailed view, but I'll copy the details of the first request here for convenience:
URL: https://docs.rs/serde_json/1.0.72/serde_json/struct.Deserializer.html
Loaded By: https://docs.rs/serde_json/1.0.72/crates-20211124-1.58.0-nightly-b426445c6.js:
Document: https://docs.rs/serde_json/1.0.72/serde_json/struct.Deserializer.html
Host: docs.rs
IP: <IP_ADDRESS>
Error/Status Code: 200
Priority: Highest
Protocol: HTTP/2
HTTP/2 Stream: 1, weight 256, depends on 0, EXCLUSIVE
Request ID: B306C410314E1DEE8995BA169B82D0C5
Discovered: 0.012 s
Request Start: 0.124 s
DNS Lookup: 35 ms
Initial Connection: 29 ms
SSL Negotiation: 47 ms
Time to First Byte: 233 ms
Content Download: 446 ms
Bytes In (downloaded): 16.5 KB
Uncompressed Size: 149.0 KB
Bytes Out (uploaded): 1.8 KB
CPU Time: 2 ms

The most relevant bit here is "Content Download: 446ms", which is 56% of the total time for that request (790ms). The total page load was ~1900ms. That suggests to me that we could save a good amount of time with this technique.
If you click over to the Response tab for that request you can see x-amz-cf-pop: MXP63-P1, which AFAICT is in Milan. That's presumably why the Initial Connection and SSL Negotiation numbers are so good.
The Time to First Byte: 233 ms probably represents a combination of roundtrip from Milan to the US, and internal processing in the docs.rs webserver. I think that's the amount that would be reduced by #1552. Of course, #1552 would improve performance for first load and subsequent loads alike, while this would only improve performance for repeat loads.

We could use the crate version + rustdoc version as the ETag.

This needs to include the docs.rs version too, in case the header has changed.
Actually that reminds me, we also need to include the latest version in the ETag, so the drop-down gets updated with all newer versions.

btw, if we can calculate the etag and last-updated without generating the page, that would also save processing time on the server.
Both E-tag and last-modified would have to change when any of these change:

rustdoc version
requested crate version
latest crate version
docs.rs version
yanked versions
rebuilt versions (while we could assume the rustdoc version changes too when we rebuild, most of the time)

rebuilt versions (while we could assume the rustdoc version changes too when we rebuild, most of the time)

Yeah, I don't think this needs to be track explicitly, even if we do a rebuild it shouldn't change the page unless the docs.rs or rustdoc version have changed.

Only implementing a valid E-tag is probably easier than trying to make up a usable last-modified timestamp based on these inputs. And for caching in the browser it shouldn't matter.

The most relevant bit here is "Content Download: 446ms", which is 56% of the total time for that request (790ms). The total page load was ~1900ms. That suggests to me that we could save a good amount of time with this technique.
If you click over to the Response tab for that request you can see x-amz-cf-pop: MXP63-P1, which AFAICT is in Milan. That's presumably why the Initial Connection and SSL Negotiation numbers are so good.

Valid points, this could be a real improvement, if we can keep calculating the ETag simple, and check if cloudfront caches these too.

The Time to First Byte: 233 ms probably represents a combination of roundtrip from Milan to the US, and internal processing in the docs.rs webserver. I think that's the amount that would be reduced by #1552. Of course, #1552 would improve performance for first load and subsequent loads alike, while this would only improve performance for repeat loads.

I'm not sure why I didn't think about this earlier, but when we count in CloudFront into the ETag, then theoretically subsequent requests from any other browser to the CDN should also be reduced do just the roundtrip to check the latest ETag.

We now have control over the cache and we could continue on this story.

This suggests perhaps an ETag of crate version + rustdoc version + latest crate version.

This needs all versions btw, the latest server is not necessarily the most recently published crate.

two points I want to add:

as @jsha described, setting last-modified can affect how browsers cache when there are no other cache-control headers. Since we use "no cache-control headers" as marker for cloudfront to apply the default TTL (see #1856), we probably shouldn't set it.
the "simple" ETag implementation I see often is just generating an MD5 hash of the content, and returning 304 if the new hash matches. While this doesn't help with server response times, it might help saving the data transfer between the server, cloudfront, and the users. And the transfer especially from the US takes a big chunk of the time.


revisit idea of using the terminal as network energy storage

first thought about in #165
the biggest advantage this has over reverse charging is that it allows the Energy Acceptor to accept more energy in a tick
it would also somewhat  fix the admittedly rather weird behavior of rapidly draining the terminal to half power

probably not worth it with #222


adding in some C++ solutions

Liked what you all started, added in an inheritance solution. Should be able to provide all solutions for practice areas in C++ if helpful. :)

Tryed to follow your current standards, made sure people reviewing would understand the difference between the code expected for the solution and the original code provided. Will provide more for C++. :)


Error definitions

Part of #4681.
Pydantic Error Definitions V2

[x] Added PydanticErrorMixin Class
[X] Added constructor methods for each error type

Looks good, but better to use a common mixin for all the error types.

Looks like a good start.
Please can you remove the default PR body and put some details on that you're working on.

This should be good for Issue #4681

please update.

I think that is what you are looking for. Please let me know what you think. Thanks for the help! @samuelcolvin

Is there anything else you would like modified @samuelcolvin?

We need tests passing, and as I said above, we need to actually use these everywhere.

When running make I keep getting these errors
pydantic\errors.py:25: error: Argument 1 for "super" must be a type object; got a non-type instance  [arg-type]
pydantic\errors.py:27: error: Argument 1 for "super" must be a type object; got a non-type instance  [arg-type]

I am not sure how else to initialize the TypeError/NameError constructors. Does anyone have any ideas?

sorry for the slow reply, did you fix your issue?

I see some emails with questions, but I can't see them here.
If you need help, please ask here.

I see some emails with questions, but I can't see them here.
If you need help, please ask here.

Most of the errors seem to be occurring here @samuelcolvin
                                                                      Summary of Failures
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃  File                       ┃  Function                                                                 ┃  Function Line  ┃  Error Line  ┃  Error           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
│  tests\test_forward_ref.py  │  test_forward_ref_auto_update_no_model                                    │  40             │  67          │  AssertionError  │
│  tests\test_forward_ref.py  │  test_undefined_types_warning_1a_raised_by_default_2a_future_annotations  │  891            │  892         │  AssertionError  │
│  tests\test_forward_ref.py  │  test_undefined_types_warning_1a_raised_by_default_2b_forward_ref         │  905            │  906         │  AssertionError  │
└─────────────────────────────┴───────────────────────────────────────────────────────────────────────────┴─────────────────┴──────────────┴──────────────────┘

test/test_forward_ref.py 67:69
 # but Foo is not ready to use
    with pytest.raises(PydanticUserError, match='`Foo` is not fully defined, you should define `Bar`,'):
        module.Foo(a={'b': {'a': {}}})

Does this need to be changed from match to "code"?

The new error messages look weird. Let me finish the thing I'm currently working on, and I'll look into it.

Sounds good @samuelcolvin

There errors here are because str(name_error) returns the name which we rely on when formatting warning_string.
you could probably add
@property
def name(self) -> str:
    self.message

to PydanticUndefinedAnnotation. Then Like I said before, you need to change the calls to these error messages to set code correctly.

There errors here are because str(name_error) returns the name which we rely on when formatting warning_string.
you could probably add
@property
def name(self) -> str:
    self.message

to PydanticUndefinedAnnotation. Then Like I said before, you need to change the calls to these error messages to set code correctly.

Yes. I will work on that. I am still not too familiar with the code base, but I am learning more as I go @samuelcolvin.

Thanks so much for this.

Thanks so much for this.

No problem. Thanks for helping me with my first PR! Hopefully, I can be able to help with more PRs.


Petrinet

This is outdated now with the new state machine. If the swap state is supposed to be refactored as a series of implementable traits instead of enums, this PR needs to be re-done from scratch, so I'm closing this now.


utf-8 problem with NanonisFile

I have a sxm file, that causes some problems when reading it with NanonisFile:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 67: invalid start byte

I found that the relevant part differs from nanonispy by
try:
    entry = line.strip().decode()
except UnicodeDecodeError:
    warnings.warn('{} has non-uft-8 characters, replacing them.'.format(f.name))
    entry = line.strip().decode('utf-8', errors='replace')

In particular these lines are missing in pycroscopy. Is there a reason for this? Adding these lines solves my problem.

Pycroscopy is currently using it's own version of nanonispy.  When we first added it, the package hadn't been updated in years.  Now that it's been updated, we will likely add it to the requirements list and remove our copy of the code.

Updating nanonispy files seems to have fixed this.  Closing issue


add integer parser

Summary
General information about what this PR is all about. If it fixes any issues
please don't forget to tag them.
Thanks for contributing!

@donrestarone  Please close this PR. And please review this Pull Request


Breaking Twitch API Changes

Looks like the bot no longer progresses drops. Might want to pull in changes from this fork
https://github.com/Windows200000/TwitchDropsMiner_2024-5-fix/commit/e3881f12cc9c15e7af51fc8630c4914ee3ebe111

Seems to be working again with the merged changes. Thanks!